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 7 + tab2.col0 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 801d0b04fea2429f9392c9c7eaaa3d1a
query I rowsort
SELECT DISTINCT + col1 + col0 * col2 AS col2 FROM tab1 AS cor0
----
188
3658
7693
query I rowsort
SELECT ALL - col0 * col2 + 97 FROM tab1 AS cor0
----
-3551
-65
-7583
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col1 * - col0 col1 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT + col2 + + 59 AS col2 FROM tab1
----
113
116
155
query I rowsort
SELECT col2 * col1 * col1 + + col2 AS col1 FROM tab1
----
16320
36558
5757
query I rowsort
SELECT ( 68 * col2 ) AS col1 FROM tab2
----
1768
1836
2584
query I rowsort
SELECT DISTINCT - 59 * col2 - + col1 FROM tab2
----
-1593
-1624
-2259
query I rowsort
SELECT ALL + col2 - + col0 AS col0 FROM tab1
----
-7
16
51
query I rowsort
SELECT ALL - 35 + col0 AS col0 FROM tab2 cor0
----
-28
43
44
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 62 col0 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 51dd2771d516ceb935483eded78a5fa0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-11
SELECT + - 13 + col1 * - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-11
SELECT + - 13 + col1 * - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-12
SELECT + + 3 DIV col2 AS col2 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-12
SELECT + + 3 / col2 AS col2 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT ALL + col0 + + 70 * col1 AS col0 FROM tab0 AS cor0
----
6044
6459
6825
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT CAST ( + col1 AS REAL ) AS col0 FROM tab0 AS cor0
----
86
91
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 72 col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 906b63c9adb7d9ac7355cab71a25fc49
query I rowsort
SELECT + + 4 * col2 FROM tab0 AS cor0
----
132
328
4
query I rowsort
SELECT ALL + 42 * + tab0.col0 AS col0 FROM tab0
----
1008
1470
3738
onlyif mysql # use DIV operator for integer division
query I rowsort label-18
SELECT ALL + col2 + + col1 DIV col1 AS col2 FROM tab0
----
2
34
83
skipif mysql # not compatible
query I rowsort label-18
SELECT ALL + col2 + + col1 / col1 AS col2 FROM tab0
----
2
34
83
query I rowsort
SELECT col1 + + col0 * + col0 AS col1 FROM tab2 AS cor0
----
6143
6258
80
query I rowsort
SELECT + col2 * - 66 AS col0 FROM tab0 AS cor0
----
-2178
-5412
-66
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + tab0.col1 + - col0 col2 FROM tab0
----
2
62
query I rowsort
SELECT ( col1 ) + ( + col1 ) + col0 FROM tab1
----
106
55
84
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-23
SELECT ALL ( + col1 ) * + CAST( NULL AS SIGNED ) * - col0 + + col1 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-23
SELECT ALL ( + col1 ) * + CAST ( NULL AS INTEGER ) * - col0 + + col1 FROM tab0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * + col2 + col1 col1 FROM tab0
----
194
2924
7553
query I rowsort
SELECT + ( + col0 ) * col1 AS col2 FROM tab2
----
1343
217
4602
query I rowsort
SELECT DISTINCT col2 + col2 * + ( col1 ) AS col1 FROM tab1
----
1344
1458
627
query I rowsort
SELECT ALL - col0 + + col1 * col2 FROM tab0 AS cor0
----
2814
62
7373
query I rowsort
SELECT DISTINCT cor0.col1 * col1 + col0 FROM tab2 AS cor0
----
3559
368
968
query I rowsort
SELECT + + col1 * ( cor0.col2 ) + - col1 + - col0 AS col2 FROM tab2 AS cor0
----
1397
550
799
query I rowsort
SELECT DISTINCT + + col2 * 86 FROM tab0 AS cor0
----
2838
7052
86
query I rowsort
SELECT - + col1 * + col0 * - col2 + cor0.col2 * col0 FROM tab0 AS cor0
----
3430
671416
68904
query I rowsort
SELECT ALL + - col1 * 11 + col0 FROM tab2 AS cor0
----
-108
-334
-571
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + col0 * CAST ( + 57 AS REAL ) FROM tab2 AS cor0
----
399
4446
4503
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col0 IN ( col1 + + tab1.col0 / - col1 ) AND NOT col1 * col1 + col0 IN ( tab1.col2 * + col0 * + col0 )
----
query I rowsort
SELECT + - col0 * col1 + col0 * col0 AS col0 FROM tab2 cor0
----
-168
1482
4898
query I rowsort
SELECT ALL col1 * + col0 + + col2 FROM tab2
----
1381
244
4628
query I rowsort
SELECT - cor0.col0 * - col2 + - col0 AS col2 FROM tab1 cor0
----
159
3584
7600
query I rowsort
SELECT ALL + cor0.col0 + col0 * + col2 * - cor0.col2 AS col0 FROM tab0 AS cor0
----
-26112
-598347
0
query I rowsort
SELECT DISTINCT col0 * cor0.col0 + + col2 AS col2 FROM tab1 AS cor0
----
4153
63
6496
query I rowsort
SELECT + + 95 * col2 AS col1 FROM tab1 AS cor0
----
5130
5415
9120
query I rowsort
SELECT - - col1 - col0 * - col0 FROM tab0 AS cor0
----
1322
662
8012
query I rowsort
SELECT + 57 * + col0 FROM tab1
----
171
3648
4560
query I rowsort
SELECT + col2 - cor0.col1 AS col2 FROM tab2 AS cor0
----
-33
-4
21
query I rowsort
SELECT ALL + - col1 * - cor0.col0 * 60 AS col2 FROM tab0 AS cor0
----
123840
203700
485940
query I rowsort
SELECT DISTINCT + col2 * col2 + ( col0 ) AS col1 FROM tab2 AS cor0
----
1523
736
754
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-46
SELECT - + 92 + cor0.col0 * + CAST( col2 AS SIGNED ) * - col0 AS col2 FROM tab0 AS cor0
----
-1317
-19100
-649614
skipif mysql # not compatible
query I rowsort label-46
SELECT - + 92 + cor0.col0 * + CAST ( col2 AS INTEGER ) * - col0 AS col2 FROM tab0 AS cor0
----
-1317
-19100
-649614
query I rowsort
SELECT ALL + - cor0.col0 * - col2 AS col1 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT - 3 + - col0 * col2 AS col1 FROM tab0 AS cor0
----
-38
-7301
-795
query I rowsort
SELECT ALL + + col1 + + col1 FROM tab1 cor0
----
20
26
52
onlyif mysql # use DIV operator for integer division
query I rowsort label-50
SELECT + ( col0 ) DIV col2 + col0 + - col0 * col2 * - col1 AS col1 FROM tab0 AS cor0
----
3465
664208
68136
skipif mysql # not compatible
query I rowsort label-50
SELECT + ( col0 ) / col2 + col0 + - col0 * col2 * - col1 AS col1 FROM tab0 AS cor0
----
3465
664208
68136
query I rowsort
SELECT - - ( + col1 ) * + 70 FROM tab2 AS cor0
----
1190
2170
4130
query I rowsort
SELECT ALL + col2 - + 45 FROM tab2
----
-18
-19
-7
query I rowsort
SELECT DISTINCT + col1 * col1 + + col2 FROM tab0 AS cor0
----
7429
8363
9410
query I rowsort
SELECT DISTINCT - 9 * + col2 * col0 AS col2 FROM tab2
----
-1701
-18252
-27018
query I rowsort
SELECT + 3 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 3cf1e377a943589897b8d431a834f1ba
query I rowsort
SELECT ALL - ( + tab0.col1 ) * 33 + - tab0.col1 * col2 + + ( + col1 * - tab0.col2 + + col1 ) AS col0 FROM tab0
----
-17836
-3298
-8428
query I rowsort
SELECT DISTINCT cor0.col2 AS col0 FROM tab0, tab1 AS cor0, tab2 cor1
----
54
57
96
query I rowsort
SELECT + - 69 + col0 * + col2 FROM tab1 AS cor0
----
3579
7611
93
query I rowsort
SELECT - + col2 + col2 + + col0 * - 67 FROM tab0 AS cor0
----
-1608
-2345
-5963
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-60
SELECT - col1 * cor0.col1 + CAST( col2 AS SIGNED ) * - cor0.col0 * - col1 AS col0 FROM tab1 AS cor0
----
3536
36380
99671
skipif mysql # not compatible
query I rowsort label-60
SELECT - col1 * cor0.col1 + CAST ( col2 AS INTEGER ) * - cor0.col0 * - col1 AS col0 FROM tab1 AS cor0
----
3536
36380
99671
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * cor0.col0 * + ( - 85 + - col0 ) col1 FROM tab0 AS cor0
----
-1378254
-147000
-62784
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-62
SELECT - CAST( NULL AS SIGNED ) + - 20 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-62
SELECT - CAST ( NULL AS INTEGER ) + - 20 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-63
SELECT - col2 * CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-63
SELECT - col2 * CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + col2 col2 FROM tab2
----
-33
-4
21
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-65
SELECT + CAST( NULL AS SIGNED ) * col1 - col1 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-65
SELECT + CAST ( NULL AS INTEGER ) * col1 - col1 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + ( 92 * tab0.col2 ) + - col0 - col1 FROM tab0
----
-40
2926
7364
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-67
SELECT ALL cor0.col0 * - col2 + - col2 * - CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-67
SELECT ALL cor0.col0 * - col2 + - col2 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + + 36 * - 41 + - col2 FROM tab0 AS cor0
----
-1477
-1509
-1558
query I rowsort
SELECT ALL 50 + col0 AS col0 FROM tab2 AS cor0
----
128
129
57
query I rowsort
SELECT ALL + 91 * + col0 FROM tab2 AS cor0
----
637
7098
7189
query I rowsort
SELECT 42 * col1 * - cor0.col2 AS col0 FROM tab0 cor0
----
-119196
-313404
-4074
query I rowsort
SELECT ALL + 96 * + col2 FROM tab1 AS cor0
----
5184
5472
9216
onlyif mysql # use DIV operator for integer division
query I rowsort label-73
SELECT - - col2 * col2 DIV + col0 - - col0 FROM tab2 AS cor0
----
111
86
97
skipif mysql # not compatible
query I rowsort label-73
SELECT - - col2 * col2 / + col0 - - col0 FROM tab2 AS cor0
----
111
86
97
query I rowsort
SELECT - col1 * 86 - - tab1.col0 FROM tab1
----
-1038
-2233
-796
query I rowsort
SELECT DISTINCT + ( 55 ) * col2 * + ( + col0 ) + + col1 FROM tab2 AS cor0
----
10426
111599
165127
query I rowsort
SELECT DISTINCT - - ( - ( col2 ) ) - - col1 FROM tab1 AS cor0
----
-28
-47
-83
query I rowsort
SELECT - - 14 + ( col0 ) AS col2 FROM tab0 AS cor0
----
103
38
49
query I rowsort
SELECT DISTINCT - cor0.col0 + + col2 AS col1 FROM tab1 AS cor0
----
-7
16
51
query I rowsort
SELECT ALL 21 * + 23 - + col0 AS col0 FROM tab2 AS cor0
----
404
405
476
query I rowsort
SELECT ALL cor0.col0 * cor0.col2 AS col1 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT col2 + - col1 * + cor0.col0 FROM tab0 AS cor0
----
-2031
-3394
-8017
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 71 * col2 col1 FROM tab2 AS cor0
----
1846
1917
2698
query I rowsort
SELECT ALL - + 45 * + col1 AS col1 FROM tab1 AS cor0
----
-1170
-450
-585
query I rowsort
SELECT ALL 61 + - col2 FROM tab1 AS cor0
----
-35
4
7
query I rowsort
SELECT DISTINCT col2 * col1 + 12 - 88 FROM tab2 AS cor0
----
1458
570
761
query I rowsort
SELECT ALL - 13 * - col2 FROM tab0 AS cor0
----
1066
13
429
query I rowsort
SELECT + + cor0.col1 - cor0.col1 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT ALL + col2 + cor0.col1 + + col0 FROM tab1 AS cor0
----
131
189
83
query I rowsort
SELECT - + 8 AS col1 FROM tab2 AS cor0
----
-8
-8
-8
query I rowsort
SELECT ALL - col0 * col1 * col2 FROM tab1
----
-36480
-4212
-99840
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-91
SELECT - col1 + - CAST( NULL AS SIGNED ) * col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-91
SELECT - col1 + - CAST ( NULL AS INTEGER ) * col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-92
SELECT + - col1 DIV + col0 + - col0 * + col0 AS col0 FROM tab0 AS cor0
----
-1227
-579
-7922
skipif mysql # not compatible
query I rowsort label-92
SELECT + - col1 / + col0 + - col0 * + col0 AS col0 FROM tab0 AS cor0
----
-1227
-579
-7922
query I rowsort
SELECT + + col2 * - ( + col1 ) * + cor0.col1 AS col2 FROM tab1 AS cor0
----
-16224
-36504
-5700
query I rowsort
SELECT ALL + col0 * - col1 + + col2 * - cor0.col2 FROM tab0 AS cor0
----
-14823
-3153
-3396
query I rowsort
SELECT - col2 * + ( + col0 ) FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT DISTINCT - + 24 * col2 FROM tab0 AS cor0
----
-1968
-24
-792
onlyif mysql # use DIV operator for integer division
query I rowsort label-97
SELECT ALL - + ( 3 ) * cor0.col2 DIV col2 AS col1 FROM tab0 AS cor0
----
-3
-3
-3
skipif mysql # not compatible
query I rowsort label-97
SELECT ALL - + ( 3 ) * cor0.col2 / col2 AS col1 FROM tab0 AS cor0
----
-3
-3
-3
query I rowsort
SELECT - + 32 * - col1 FROM tab2 cor0
----
1888
544
992
query I rowsort
SELECT DISTINCT - + 14 + + col1 * - col1 + - 16 AS col1 FROM tab1 AS cor0
----
-130
-199
-706
query I rowsort
SELECT ALL + + ( + col0 ) - + col0 * col2 FROM tab2 AS cor0
----
-182
-1950
-2923
query I rowsort
SELECT DISTINCT + col2 + ( - col1 ) * ( col1 ) AS col0 FROM tab1 cor0
----
-43
-622
-73
query I rowsort
SELECT + + col0 * - col2 * col0 FROM tab2 AS cor0
----
-1323
-158184
-237158
query I rowsort
SELECT DISTINCT - cor0.col0 AS col2 FROM tab1, tab2, tab1 AS cor0, tab1 AS cor1
----
-3
-64
-80
query I rowsort
SELECT col1 + - ( + 36 ) AS col1 FROM tab1
----
-10
-23
-26
query I rowsort
SELECT - col0 + 54 AS col1 FROM tab1
----
-10
-26
51
query I rowsort
SELECT - col1 + - 96 FROM tab1
----
-106
-109
-122
query I rowsort
SELECT DISTINCT - 34 FROM tab2, tab0 AS cor0, tab0 cor1
----
-34
query I rowsort
SELECT DISTINCT - + cor0.col0 FROM tab0, tab0 AS cor0
----
-24
-35
-89
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 3 col2 FROM tab1, tab2 cor0, tab1 AS cor1
----
3
query I rowsort
SELECT + + 95 FROM tab2, tab1 AS cor0
----
9 values hashing to e57d8ed879dfd04d04aae87725c970d3
query I rowsort
SELECT col2 * - ( - col2 ) * col1 FROM tab0
----
611884
93654
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-112
SELECT cor0.col0 DIV 16 + 78 * + col2 AS col1 FROM tab2 cor0
----
2032
2106
2968
skipif mysql # not compatible
query I rowsort label-112
SELECT cor0.col0 / 16 + 78 * + col2 AS col1 FROM tab2 cor0
----
2032
2106
2968
query I rowsort
SELECT + col0 + + col1 + col0 * col1 FROM tab0 AS cor0
----
2174
3527
8279
query I rowsort
SELECT - col1 + col2 + + col2 FROM tab1 AS cor0
----
104
179
82
query I rowsort
SELECT ( cor0.col1 ) * col2 * + ( col2 ) FROM tab0 AS cor0
----
611884
93654
97
query I rowsort
SELECT DISTINCT + col2 * + ( col2 ) * col2 FROM tab0
----
1
35937
551368
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-117
SELECT - CAST( NULL AS SIGNED ) * + col2 * + col2 + 97 + + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-117
SELECT - CAST ( NULL AS INTEGER ) * + col2 * + col2 + 97 + + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT col0 * - 86 * col2 FROM tab1 AS cor0
----
-13932
-313728
-660480
query I rowsort
SELECT - - 27 * - cor0.col2 + - col0 FROM tab1 AS cor0
----
-1461
-1603
-2672
query I rowsort
SELECT DISTINCT + 16 AS col2 FROM tab0, tab1 AS cor0
----
16
query I rowsort
SELECT - col0 * 8 * + 57 + - col0 FROM tab1
----
-1371
-29248
-36560
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col1 - col1 col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT + 11 * col2 + cor0.col1 AS col0 FROM tab2 cor0
----
328
345
435
query I rowsort
SELECT DISTINCT - 44 * + col1 AS col0 FROM tab2 AS cor0
----
-1364
-2596
-748
query I rowsort
SELECT + ( + col0 ) * + col1 FROM tab0 cor0
----
2064
3395
8099
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-126
SELECT DISTINCT cor0.col2 * - col1 + + CAST( col1 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-2752
-7371
0
skipif mysql # not compatible
query I rowsort label-126
SELECT DISTINCT cor0.col2 * - col1 + + CAST ( col1 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-2752
-7371
0
query I rowsort
SELECT ALL ( + 28 ) * + col1 FROM tab0
----
2408
2548
2716
query I rowsort
SELECT - - ( col1 ) * - col2 AS col2 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT ALL + cor0.col0 + + 12 AS col2 FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to 233dfb4e8be0140e4983585890e70046
query I rowsort
SELECT ALL ( - tab2.col0 ) * tab2.col1 AS col0 FROM tab2
----
-1343
-217
-4602
query I rowsort
SELECT ALL - 76 FROM tab0, tab2, tab2 AS cor0
----
27 values hashing to d90b4aa5f03b4a149aa925c4a88acca0
query I rowsort
SELECT DISTINCT + col0 + col1 + ( col0 ) FROM tab2
----
175
215
45
query I rowsort
SELECT - col0 * + 59 + + col0 * col0 + - col0 * + col2 AS col1 FROM tab0 cor0
----
-1632
-4628
-875
query I rowsort
SELECT DISTINCT + col0 + - col1 * + 2 FROM tab2 cor0
----
-40
-55
45
query I rowsort
SELECT ALL - + 46 * - col1 FROM tab2 AS cor0
----
1426
2714
782
onlyif mysql # use DIV operator for integer division
query I rowsort label-136
SELECT - + ( col0 ) * + 83 + 42 DIV + col0 FROM tab0 AS cor0
----
-1991
-2904
-7387
skipif mysql # not compatible
query I rowsort label-136
SELECT - + ( col0 ) * + 83 + 42 / + col0 FROM tab0 AS cor0
----
-1991
-2904
-7387
query I rowsort
SELECT - col0 * col0 * ( + 67 ) FROM tab0 cor0
----
-38592
-530707
-82075
query I rowsort
SELECT DISTINCT - ( + col1 ) + + tab0.col2 * col1 FROM tab0
----
0
2752
7371
query I rowsort
SELECT - tab0.col1 AS col0 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to d4c673b7444eb9927ec63175b43c6b84
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-140
SELECT + CAST( NULL AS DECIMAL ) FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif mysql # not compatible
query I rowsort label-140
SELECT + CAST ( NULL AS REAL ) FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
query I rowsort
SELECT col1 + col1 * + 43 + col0 * col2 FROM tab0
----
11302
4303
4576
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 63 + col0 * - col2 col2 FROM tab1
----
-3585
-7617
-99
onlyif mysql # use DIV operator for integer division
query I rowsort label-143
SELECT + col2 * col2 DIV col1 + col1 AS col0 FROM tab0 cor0
----
164
97
98
skipif mysql # not compatible
query I rowsort label-143
SELECT + col2 * col2 / col1 + col1 AS col0 FROM tab0 cor0
----
164
97
98
query I rowsort
SELECT - cor0.col0 - - cor0.col1 * - col0 AS col1 FROM tab2 AS cor0
----
-1422
-224
-4680
query I rowsort
SELECT + col1 + - 60 + col1 AS col2 FROM tab0 cor0
----
112
122
134
query I rowsort
SELECT col1 * ( + cor0.col1 ) + cor0.col0 * - 55 + col1 * col0 FROM tab2 cor0
----
-2713
3793
793
query I rowsort
SELECT ALL + col1 - + col2 * + col1 * col0 FROM tab1
----
-36470
-4186
-99827
query I rowsort
SELECT DISTINCT + ( + col0 ) * - col2 + + col2 AS col0 FROM tab0 AS cor0
----
-34
-7216
-759
query I rowsort
SELECT ALL + col0 - - 16 FROM tab0 cor0
----
105
40
51
query I rowsort
SELECT - + ( 50 ) FROM tab2 AS cor0
----
-50
-50
-50
onlyif mysql # use DIV operator for integer division
query I rowsort label-151
SELECT ALL - CAST( cor0.col0 AS SIGNED ) DIV + col0 + cor0.col2 FROM tab1 AS cor0
----
53
56
95
skipif mysql # not compatible
query I rowsort label-151
SELECT ALL - CAST ( cor0.col0 AS INTEGER ) / + col0 + cor0.col2 FROM tab1 AS cor0
----
53
56
95
query I rowsort
SELECT ( cor0.col2 ) * 67 + col0 * col2 FROM tab1 AS cor0
----
14112
3780
7467
query I rowsort
SELECT ALL + 77 AS col0 FROM tab1, tab0 AS cor0, tab1 cor1
----
27 values hashing to d7b027bca5d37c67e29013904def8125
query I rowsort
SELECT 11 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 69116737f3f57e2e3273f6dbb04d036c
query III rowsort
SELECT * FROM tab2 WHERE NULL IN ( - col0 / col2 + - col0 )
----
query I rowsort
SELECT DISTINCT col2 * col2 + + col2 + col1 AS col1 FROM tab2
----
1499
761
787
onlyif mysql # use DIV operator for integer division
query I rowsort label-157
SELECT tab1.col0 DIV - tab1.col1 + col0 DIV - col2 FROM tab1
----
-6
-7
0
skipif mysql # not compatible
query I rowsort label-157
SELECT tab1.col0 / - tab1.col1 + col0 / - col2 FROM tab1
----
-6
-7
0
query I rowsort
SELECT ALL + col0 + col2 * col1 FROM tab2
----
1612
725
844
query I rowsort
SELECT DISTINCT - col1 FROM tab0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND NULL
----
query I rowsort
SELECT + col2 * col0 AS col2 FROM tab1 WHERE NOT ( NULL ) >= NULL
----
query I rowsort
SELECT DISTINCT + col2 - tab2.col1 * - col2 AS col1 FROM tab2
----
1560
684
864
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab1.col2 + - col2 col2 FROM tab1
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 - + col0 col0 FROM tab0
----
-110
-132
-180
query I rowsort
SELECT ALL - + cor0.col0 + col1 * + ( cor0.col2 ) FROM tab1 AS cor0
----
1168
1401
506
query I rowsort
SELECT DISTINCT 43 * + col2 * + ( col2 + col1 ) AS col0 FROM tab2 AS cor0
----
67338
89870
95030
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 78 col1 FROM tab1 cor0
----
-78
onlyif mysql # use DIV operator for integer division
query I rowsort label-167
SELECT ALL - tab0.col0 * tab0.col0 DIV col0 FROM tab0
----
-24
-35
-89
skipif mysql # not compatible
query I rowsort label-167
SELECT ALL - tab0.col0 * tab0.col0 / col0 FROM tab0
----
-24
-35
-89
query I rowsort
SELECT col0 * tab1.col1 * tab1.col1 FROM tab1
----
13520
2028
6400
query I rowsort
SELECT col2 FROM tab0 WHERE NOT NULL NOT IN ( - tab0.col1 )
----
query I rowsort
SELECT ALL - col1 + col2 + + col2 AS col2 FROM tab2
----
-7
23
59
onlyif mysql # use DIV operator for integer division
query I rowsort label-171
SELECT + tab1.col2 DIV - col1 + col0 col2 FROM tab1
----
1
59
73
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-171
SELECT + tab1.col2 / - col1 + col0 col2 FROM tab1
----
1
59
73
onlyif mysql # use DIV operator for integer division
query I rowsort label-172
SELECT col2 DIV + tab0.col2 - col2 AS col2 FROM tab0
----
-32
-81
0
skipif mysql # not compatible
query I rowsort label-172
SELECT col2 / + tab0.col2 - col2 AS col2 FROM tab0
----
-32
-81
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-173
SELECT col0 * col1 DIV tab0.col2 AS col1 FROM tab0
----
3395
62
98
skipif mysql # not compatible
query I rowsort label-173
SELECT col0 * col1 / tab0.col2 AS col1 FROM tab0
----
3395
62
98
onlyif mysql # use DIV operator for integer division
query I rowsort label-174
SELECT DISTINCT + col0 DIV col2 AS col2 FROM tab0
----
0
1
35
skipif mysql # not compatible
query I rowsort label-174
SELECT DISTINCT + col0 / col2 AS col2 FROM tab0
----
0
1
35
onlyif mysql # use DIV operator for integer division
query I rowsort label-175
SELECT DISTINCT - tab1.col0 DIV + col2 FROM tab1
----
-1
0
skipif mysql # not compatible
query I rowsort label-175
SELECT DISTINCT - tab1.col0 / + col2 FROM tab1
----
-1
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-176
SELECT - col2 DIV col1 + - tab2.col2 FROM tab2
----
-26
-27
-40
skipif mysql # not compatible
query I rowsort label-176
SELECT - col2 / col1 + - tab2.col2 FROM tab2
----
-26
-27
-40
query I rowsort
SELECT DISTINCT col1 + + col0 * - col0 FROM tab2 cor0
----
-18
-6025
-6224
query I rowsort
SELECT ALL + col0 + col2 * col2 FROM tab1 AS cor0
----
2919
3313
9296
query I rowsort
SELECT ALL col1 FROM tab1 AS cor0 WHERE NOT NULL IN ( col2 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-180
SELECT col2 + + cor0.col0 DIV col0 FROM tab2 AS cor0
----
27
28
39
skipif mysql # not compatible
query I rowsort label-180
SELECT col2 + + cor0.col0 / col0 FROM tab2 AS cor0
----
27
28
39
query I rowsort
SELECT DISTINCT col2 + col1 + col2 FROM tab0 AS cor0
----
152
255
99
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col0 BETWEEN ( NULL ) AND NULL
----
query I rowsort
SELECT + col1 + - col1 * - tab1.col0 + col0 * - col1 AS col0 FROM tab1
----
10
13
26
query I rowsort
SELECT DISTINCT col0 - + col1 * + col2 FROM tab1
----
-1168
-1401
-506
query I rowsort
SELECT + col0 + col0 * + col1 - + col1 * col0 FROM tab1
----
3
64
80
query III rowsort
SELECT * FROM tab1 WHERE ( col1 ) <= NULL
----
query I rowsort
SELECT ALL col2 FROM tab1 cor0 WHERE NOT NULL <= ( NULL )
----
query I rowsort
SELECT col2 FROM tab1 AS cor0 WHERE NULL IN ( col0 )
----
query I rowsort
SELECT DISTINCT col0 / col2 AS col0 FROM tab2 cor0 WHERE NULL IN ( col1 * cor0.col1 * col0 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-190
SELECT DISTINCT col2 DIV + col1 + col0 AS col2 FROM tab2 AS cor0
----
7
78
81
skipif mysql # not compatible
query I rowsort label-190
SELECT DISTINCT col2 / + col1 + col0 AS col2 FROM tab2 AS cor0
----
7
78
81
query I rowsort
SELECT DISTINCT + + col0 + col0 * 37 FROM tab1 AS cor0
----
114
2432
3040
query I rowsort
SELECT ALL + col0 + - col0 + + col0 FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT col2 + + ( - 28 ) AS col0 FROM tab1
----
26
29
68
query I rowsort
SELECT - cor0.col1 AS col1 FROM tab1, tab0, tab0 AS cor0
----
27 values hashing to d4c673b7444eb9927ec63175b43c6b84
query I rowsort
SELECT DISTINCT 83 + 40 FROM tab2 AS cor0
----
123
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-196
SELECT DISTINCT - CAST( + col1 AS SIGNED ) FROM tab0
----
-86
-91
-97
skipif mysql # not compatible
query I rowsort label-196
SELECT DISTINCT - CAST ( + col1 AS INTEGER ) FROM tab0
----
-86
-91
-97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col2 + col2 * cor0.col2 col0 FROM tab0 AS cor0
----
0
1056
6642
query I rowsort
SELECT + 75 * - ( cor0.col2 ) FROM tab2 AS cor0
----
-1950
-2025
-2850
query I rowsort
SELECT ALL col2 + 63 * col1 AS col2 FROM tab2 cor0
----
1109
1980
3743
query I rowsort
SELECT ALL col2 + - col1 + - col2 AS col0 FROM tab0 AS cor0
----
-86
-91
-97
query I rowsort
SELECT DISTINCT + 43 + 45 * - col2 * + cor0.col2 FROM tab0 AS cor0
----
-2
-302537
-48962
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 42 * cor0.col2 * - col2 col2 FROM tab2 AS cor0
----
-28392
-30618
-60648
query I rowsort
SELECT DISTINCT 89 * col0 FROM tab2 AS cor0
----
623
6942
7031
onlyif mysql # use DIV operator for integer division
query I rowsort label-204
SELECT DISTINCT - cor0.col1 + col1 DIV col1 + + 14 AS col1 FROM tab2 AS cor0
----
-16
-2
-44
skipif mysql # not compatible
query I rowsort label-204
SELECT DISTINCT - cor0.col1 + col1 / col1 + + 14 AS col1 FROM tab2 AS cor0
----
-16
-2
-44
skipif mysql # not compatible
query I rowsort
SELECT ( + ( col1 ) ) * + CAST ( 43 AS REAL ) FROM tab0 AS cor0
----
3698
3913
4171
query I rowsort
SELECT DISTINCT - col2 * + col2 + - 24 FROM tab0
----
-1113
-25
-6748
query I rowsort
SELECT DISTINCT + 52 + - col0 FROM tab0
----
-37
17
28
query I rowsort
SELECT + 91 - - col0 AS col1 FROM tab0
----
115
126
180
query I rowsort
SELECT - - col2 + + col2 * - col2 FROM tab1 AS cor0
----
-2862
-3192
-9120
query I rowsort
SELECT ALL - 57 - + col1 AS col1 FROM tab1 AS cor0
----
-67
-70
-83
query I rowsort
SELECT ALL col2 + ( - ( - col0 ) ) AS col0 FROM tab1 AS cor0
----
121
176
57
query I rowsort
SELECT DISTINCT + col1 * ( - 75 * col1 + col1 ) FROM tab2 cor0
----
-21386
-257594
-71114
query I rowsort
SELECT col1 + - ( + cor0.col2 ) * + col1 FROM tab2 AS cor0
----
-1475
-629
-806
onlyif mysql # use DIV operator for integer division
query I rowsort label-214
SELECT DISTINCT + col2 * + cor0.col0 DIV - col0 AS col1 FROM tab1 AS cor0
----
-54
-57
-96
skipif mysql # not compatible
query I rowsort label-214
SELECT DISTINCT + col2 * + cor0.col0 / - col0 AS col1 FROM tab1 AS cor0
----
-54
-57
-96
onlyif mysql # use DIV operator for integer division
query I rowsort label-215
SELECT ALL + + col1 + - cor0.col2 DIV col1 FROM tab0 AS cor0
----
86
91
97
skipif mysql # not compatible
query I rowsort label-215
SELECT ALL + + col1 + - cor0.col2 / col1 FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT DISTINCT - + col1 * col2 - 71 * - col2 AS col1 FROM tab1 AS cor0
----
2430
3477
5568
query I rowsort
SELECT col1 + ( cor0.col1 ) FROM tab2 AS cor0
----
118
34
62
query I rowsort
SELECT + col0 + 66 AS col0 FROM tab1 AS cor0
----
130
146
69
query I rowsort
SELECT DISTINCT cor0.col0 * 63 + ( col0 ) + + 96 AS col2 FROM tab0 AS cor0
----
1632
2336
5792
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col0 - - cor0.col1 col2 FROM tab2 AS cor0
----
-19
-62
24
query I rowsort
SELECT ALL tab1.col0 + col2 * col1 FROM tab1
----
1328
1407
634
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 86 * - col1 col1 FROM tab1
----
-1118
-2236
-860
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-223
SELECT DISTINCT + 38 + + col0 * CAST( NULL AS DECIMAL ) AS col0 FROM tab2
----
NULL
skipif mysql # not compatible
query I rowsort label-223
SELECT DISTINCT + 38 + + col0 * CAST ( NULL AS REAL ) AS col0 FROM tab2
----
NULL
query I rowsort
SELECT - col0 + - col0 + + ( col0 ) AS col2 FROM tab1
----
-3
-64
-80
query I rowsort
SELECT - + col1 * 22 FROM tab1 AS cor0
----
-220
-286
-572
query I rowsort
SELECT + col1 + 34 AS col1 FROM tab1 cor0
----
44
47
60
query I rowsort
SELECT 39 AS col1 FROM tab0, tab2 AS cor0, tab1 cor1
----
27 values hashing to ed2ebd9def3e2c38aa46cb3af60fe229
query I rowsort
SELECT ALL + + cor1.col0 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870
query I rowsort
SELECT ALL 45 + col1 AS col1 FROM tab2
----
104
62
76
query I rowsort
SELECT + 64 + col0 FROM tab2 AS cor0
----
142
143
71
query I rowsort
SELECT + - 16 - + col1 * col2 FROM tab2 AS cor0
----
-1550
-662
-853
onlyif mysql # use DIV operator for integer division
query I rowsort label-232
SELECT DISTINCT + col1 DIV + ( col2 ) + cor0.col0 + - 98 AS col0 FROM tab1 AS cor0
----
-18
-34
-95
skipif mysql # not compatible
query I rowsort label-232
SELECT DISTINCT + col1 / + ( col2 ) + cor0.col0 + - 98 AS col0 FROM tab1 AS cor0
----
-18
-34
-95
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - CAST ( - col0 AS REAL ) + - col0 / - ( + 76 * col0 ) + - col0 AS col0 FROM tab1 AS cor0
----
0
query I rowsort
SELECT ALL - 69 * - col0 AS col2 FROM tab2 AS cor0
----
483
5382
5451
query I rowsort
SELECT + ( - col1 ) + + col1 AS col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT + col1 + col0 * 54 FROM tab0 AS cor0
----
1382
1987
4897
query I rowsort
SELECT ALL + col1 * col2 + col2 FROM tab0 AS cor0
----
2871
7544
98
query I rowsort
SELECT - ( col2 ) - ( 95 ) AS col2 FROM tab0 AS cor0
----
-128
-177
-96
query I rowsort
SELECT 63 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to 38764a6e696d1a6b5095e29ef84959c0
onlyif mysql # use DIV operator for integer division
query I rowsort label-240
SELECT ALL col2 DIV + col0 AS col2 FROM tab1
----
0
1
18
skipif mysql # not compatible
query I rowsort label-240
SELECT ALL col2 / + col0 AS col2 FROM tab1
----
0
1
18
onlyif mysql # use DIV operator for integer division
query I rowsort label-241
SELECT DISTINCT - - cor0.col1 DIV + 13 - + col1 * col2 AS col1 FROM tab1 AS cor0
----
-1247
-1402
-570
skipif mysql # not compatible
query I rowsort label-241
SELECT DISTINCT - - cor0.col1 / + 13 - + col1 * col2 AS col1 FROM tab1 AS cor0
----
-1247
-1402
-570
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-242
SELECT ALL - + col1 + + CAST( NULL AS SIGNED ) * - col0 * col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-242
SELECT ALL - + col1 + + CAST ( NULL AS INTEGER ) * - col0 * col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-243
SELECT + col0 + CAST( + cor0.col1 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
110
132
180
skipif mysql # not compatible
query I rowsort label-243
SELECT + col0 + CAST ( + cor0.col1 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
110
132
180
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-244
SELECT DISTINCT - + CAST( NULL AS SIGNED ) * + col2 + col1 AS col0 FROM tab1 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-244
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) * + col2 + col1 AS col0 FROM tab1 cor0
----
NULL
query I rowsort
SELECT DISTINCT + + 63 + col1 * - col0 * 48 FROM tab0 AS cor0
----
-162897
-388689
-99009
query I rowsort
SELECT - 45 + ( + col0 ) FROM tab0 AS cor0
----
-10
-21
44
query I rowsort
SELECT + col0 * col2 + col0 AS col0 FROM tab0 AS cor0
----
70
7387
816
query I rowsort
SELECT - - 41 + col0 AS col0 FROM tab2 AS cor0
----
119
120
48
query I rowsort
SELECT col0 * - 74 AS col1 FROM tab0 AS cor0
----
-1776
-2590
-6586
query I rowsort
SELECT 48 * + 73 FROM tab2 AS cor0
----
3504
3504
3504
query I rowsort
SELECT DISTINCT - ( col1 ) * col0 AS col1 FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT DISTINCT + + col2 * - col2 * col1 FROM tab2 AS cor0
----
-22599
-24548
-39884
query I rowsort
SELECT tab1.col0 + + tab1.col2 AS col2 FROM tab1, tab1 cor0
----
9 values hashing to 8733ba2dd568938e338b27ad757d3e3b
onlyif mysql # use DIV operator for integer division
query I rowsort label-254
SELECT tab2.col2 DIV tab2.col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 83c163442931d28e4160369d40047ea7
skipif mysql # not compatible
query I rowsort label-254
SELECT tab2.col2 / tab2.col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 83c163442931d28e4160369d40047ea7
query I rowsort
SELECT DISTINCT - col2 * + col1 + 39 * + 19 AS col0 FROM tab2 AS cor0
----
-793
-96
95
query I rowsort
SELECT DISTINCT - 31 * col0 + col2 FROM tab2 AS cor0
----
-190
-2392
-2411
query I rowsort
SELECT DISTINCT + 54 + 78 AS col0 FROM tab1, tab2, tab2 AS cor0
----
132
query I rowsort
SELECT + 28 - - tab0.col2 AS col1 FROM tab0, tab2, tab2 AS cor0
----
27 values hashing to e07d09bd150ca977e272f2c015b6d2b5
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 89 col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 5c8428e9f1e7de3d09cb0814b4cc1743
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-260
SELECT + CAST( - col1 * col0 AS SIGNED ) AS col1 FROM tab2
----
-1343
-217
-4602
skipif mysql # not compatible
query I rowsort label-260
SELECT + CAST ( - col1 * col0 AS INTEGER ) AS col1 FROM tab2
----
-1343
-217
-4602
query I rowsort
SELECT col2 * - 58 AS col1 FROM tab2 AS cor0
----
-1508
-1566
-2204
query I rowsort
SELECT - col2 + 69 AS col1 FROM tab0 AS cor0
----
-13
36
68
query I rowsort
SELECT ALL + col1 * - col0 + col0 * col1 FROM tab0 cor0
----
0
0
0
query I rowsort
SELECT - cor0.col1 + - 47 FROM tab0 cor0
----
-133
-138
-144
query I rowsort
SELECT - col0 * - col1 + - col1 AS col0 FROM tab2 AS cor0
----
1326
186
4543
query I rowsort
SELECT ALL + 86 + - 5 - cor1.col2 * - cor1.col0 AS col2 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to a15bc0d3dfcaebde25bdb8312d8d31d9
query I rowsort
SELECT + 61 * col2 AS col0 FROM tab0
----
2013
5002
61
query I rowsort
SELECT + col1 * + ( cor0.col2 ) FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT + col0 * col2 + - cor0.col1 FROM tab2 AS cor0
----
158
1969
2985
onlyif mysql # use DIV operator for integer division
query I rowsort label-270
SELECT ALL + tab0.col1 DIV - col2 + + 42 FROM tab0
----
-55
40
41
skipif mysql # not compatible
query I rowsort label-270
SELECT ALL + tab0.col1 / - col2 + + 42 FROM tab0
----
-55
40
41
query I rowsort
SELECT DISTINCT + ( - col2 ) * col1 FROM tab2
----
-1534
-646
-837
query I rowsort
SELECT DISTINCT + col1 * col2 + + 63 * + 13 AS col1 FROM tab2 AS cor0
----
1465
1656
2353
query I rowsort
SELECT ALL - cor0.col1 * 62 * + col0 FROM tab1 AS cor0
----
-39680
-4836
-64480
query I rowsort
SELECT DISTINCT + col1 + cor0.col2 * 41 AS col1 FROM tab0 AS cor0
----
138
1439
3453
query I rowsort
SELECT DISTINCT col2 + + col1 * - col1 AS col0 FROM tab2 AS cor0
----
-251
-3455
-934
query I rowsort
SELECT ALL + cor0.col1 + + cor0.col2 AS col2 FROM tab1 AS cor0
----
109
67
80
query I rowsort
SELECT ALL - col2 * - 37 + 47 AS col1 FROM tab2 AS cor0
----
1009
1046
1453
query I rowsort
SELECT ALL cor0.col1 + col2 AS col2 FROM tab0 AS cor0
----
119
173
98
onlyif mysql # use DIV operator for integer division
query I rowsort label-279
SELECT ALL + col2 + col2 DIV + 29 AS col2 FROM tab2 AS cor0
----
26
27
39
skipif mysql # not compatible
query I rowsort label-279
SELECT ALL + col2 + col2 / + 29 AS col2 FROM tab2 AS cor0
----
26
27
39
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-280
SELECT ALL - cor0.col2 * CAST( - col0 AS SIGNED ) + - col1 FROM tab0 AS cor0
----
-62
706
7207
skipif mysql # not compatible
query I rowsort label-280
SELECT ALL - cor0.col2 * CAST ( - col0 AS INTEGER ) + - col1 FROM tab0 AS cor0
----
-62
706
7207
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-281
SELECT DISTINCT + col1 * + CAST( NULL AS SIGNED ) + - cor0.col1 AS col2 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-281
SELECT DISTINCT + col1 * + CAST ( NULL AS INTEGER ) + - cor0.col1 AS col2 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT + - col2 * + ( + ( - col2 ) + 90 ) FROM tab0 AS cor0
----
-1881
-656
-89
query I rowsort
SELECT ALL + col0 - + 25 AS col1 FROM tab2 AS cor0
----
-18
53
54
query I rowsort
SELECT DISTINCT cor0.col1 * + 75 * col1 FROM tab0 cor0
----
554700
621075
705675
query I rowsort
SELECT DISTINCT col2 * col1 + ( - col0 * col1 + + 7 * - col2 ) FROM tab2 AS cor0
----
-3250
-963
431
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 - + 63 col2 FROM tab2 AS cor0
----
-25
-36
-37
query I rowsort
SELECT DISTINCT - + col2 * - col0 AS col2 FROM tab0 cor0
----
35
7298
792
query I rowsort
SELECT - col1 + - col1 * col2 AS col0 FROM tab2 cor0
----
-1593
-663
-868
query I rowsort
SELECT + - 92 AS col0 FROM tab2 cor0
----
-92
-92
-92
query I rowsort
SELECT - col0 + ( - col0 ) AS col1 FROM tab1 AS cor0
----
-128
-160
-6
onlyif mysql # use DIV operator for integer division
query I rowsort label-291
SELECT + - col1 + col1 + - col0 DIV col1 FROM tab2 AS cor0
----
-1
-4
0
skipif mysql # not compatible
query I rowsort label-291
SELECT + - col1 + col1 + - col0 / col1 FROM tab2 AS cor0
----
-1
-4
0
query I rowsort
SELECT ALL ( 55 ) * col0 + - col0 AS col1 FROM tab2
----
378
4212
4266
query I rowsort
SELECT ALL + - ( + ( + col0 ) ) AS col0 FROM tab2 AS cor0
----
-7
-78
-79
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-294
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - col1 * col2 FROM tab0 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-294
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - col1 * col2 FROM tab0 cor0
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-295
SELECT DISTINCT + col2 + 80 DIV + col0 AS col1 FROM tab2 AS cor0
----
27
38
39
skipif mysql # not compatible
query I rowsort label-295
SELECT DISTINCT + col2 + 80 / + col0 AS col1 FROM tab2 AS cor0
----
27
38
39
query I rowsort
SELECT ALL - col0 - + cor0.col0 AS col2 FROM tab0 AS cor0
----
-178
-48
-70
onlyif mysql # use DIV operator for integer division
query I rowsort label-297
SELECT DISTINCT + col2 + + col0 DIV - col2 + + col0 AS col2 FROM tab1 AS cor0
----
120
176
57
skipif mysql # not compatible
query I rowsort label-297
SELECT DISTINCT + col2 + + col0 / - col2 + + col0 AS col2 FROM tab1 AS cor0
----
120
176
57
query I rowsort
SELECT + 91 + 63 FROM tab2 AS cor0
----
154
154
154
query I rowsort
SELECT DISTINCT + ( col2 ) * cor0.col2 AS col2 FROM tab1 cor0
----
2916
3249
9216
query I rowsort
SELECT ALL - col0 - + col0 * + col0 FROM tab2 AS cor0
----
-56
-6162
-6320
query I rowsort
SELECT DISTINCT ( - col2 ) * cor0.col0 * 56 FROM tab0 cor0
----
-1960
-408688
-44352
query I rowsort
SELECT - cor0.col0 * col1 + + col2 + ( - ( cor0.col1 ) ) FROM tab2 AS cor0
----
-1322
-221
-4635
query I rowsort
SELECT 50 * col0 AS col2 FROM tab1 AS cor0
----
150
3200
4000
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-304
SELECT DISTINCT + + CAST( NULL AS DECIMAL ) + - col2 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-304
SELECT DISTINCT + + CAST ( NULL AS REAL ) + - col2 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT ( col2 ) + 73 * col0 FROM tab0 AS cor0
----
1785
2556
6579
query I rowsort
SELECT DISTINCT - 80 * col2 * + col2 AS col1 FROM tab2 AS cor0
----
-115520
-54080
-58320
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + col2 + col2 col2 FROM tab1 AS cor0
----
1344
1458
627
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-308
SELECT DISTINCT - + 96 + col2 * - CAST( + 7 AS SIGNED ) FROM tab2 AS cor0
----
-278
-285
-362
skipif mysql # not compatible
query I rowsort label-308
SELECT DISTINCT - + 96 + col2 * - CAST ( + 7 AS INTEGER ) FROM tab2 AS cor0
----
-278
-285
-362
onlyif mysql # use DIV operator for integer division
query I rowsort label-309
SELECT + col0 DIV - 88 + + col1 AS col2 FROM tab0
----
86
90
97
skipif mysql # not compatible
query I rowsort label-309
SELECT + col0 / - 88 + + col1 AS col2 FROM tab0
----
86
90
97
query I rowsort
SELECT DISTINCT col2 * - col2 * - col0 AS col1 FROM tab2
----
114076
5103
52728
query I rowsort
SELECT DISTINCT - + col2 * col0 AS col0 FROM tab1 cor0
----
-162
-3648
-7680
query I rowsort
SELECT col0 + - col1 + col1 FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT - 16 + + cor0.col0 + + col0 * col0 AS col1 FROM tab1 AS cor0
----
-4
4144
6464
query I rowsort
SELECT DISTINCT - - col2 * + col2 FROM tab1 cor0
----
2916
3249
9216
query I rowsort
SELECT cor0.col0 * col1 + + 24 + cor0.col0 FROM tab2 AS cor0
----
1446
248
4704
query I rowsort
SELECT ALL + 44 + col1 AS col1 FROM tab1 AS cor0
----
54
57
70
query I rowsort
SELECT DISTINCT - cor0.col1 + - col1 * col2 AS col2 FROM tab0 AS cor0
----
-194
-2924
-7553
onlyif mysql # use DIV operator for integer division
query I rowsort label-318
SELECT ALL col0 DIV - cor0.col0 FROM tab0 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-318
SELECT ALL col0 / - cor0.col0 FROM tab0 AS cor0
----
-1
-1
-1
onlyif mysql # use DIV operator for integer division
query I rowsort label-319
SELECT ALL + 31 DIV + col2 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-319
SELECT ALL + 31 / + col2 FROM tab1 AS cor0
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-320
SELECT - CAST( NULL AS SIGNED ) + 36 * col0 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-320
SELECT - CAST ( NULL AS INTEGER ) + 36 * col0 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL tab1.col1 + - col1 * + col2 FROM tab1
----
-1235
-1378
-560
onlyif mysql # use DIV operator for integer division
query I rowsort label-322
SELECT ALL + col1 + + col2 DIV + tab1.col1 AS col2 FROM tab1
----
15
20
28
skipif mysql # not compatible
query I rowsort label-322
SELECT ALL + col1 + + col2 / + tab1.col1 AS col2 FROM tab1
----
15
20
28
query I rowsort
SELECT DISTINCT + 47 * + col0 FROM tab2 AS cor0
----
329
3666
3713
query I rowsort
SELECT - - 97 * col0 AS col1 FROM tab1 AS cor0
----
291
6208
7760
query I rowsort
SELECT + cor0.col1 + col1 + + 28 AS col2 FROM tab2 AS cor0
----
146
62
90
query I rowsort
SELECT - ( - col2 + 25 * col2 ) FROM tab0
----
-1968
-24
-792
onlyif mysql # use DIV operator for integer division
query I rowsort label-327
SELECT - tab1.col1 DIV - col2 + + col0 * col2 FROM tab1
----
162
3648
7680
skipif mysql # not compatible
query I rowsort label-327
SELECT - tab1.col1 / - col2 + + col0 * col2 FROM tab1
----
162
3648
7680
query I rowsort
SELECT + - 51 * + cor0.col0 FROM tab0 cor0
----
-1224
-1785
-4539
query I rowsort
SELECT DISTINCT - col0 + col2 * - cor0.col0 FROM tab1 AS cor0
----
-165
-3712
-7760
query I rowsort
SELECT DISTINCT col1 * 54 FROM tab2 AS cor0
----
1674
3186
918
query I rowsort
SELECT DISTINCT col1 - - ( - col1 + col2 ) FROM tab2
----
26
27
38
query I rowsort
SELECT col0 - - 75 AS col1 FROM tab0
----
110
164
99
query I rowsort
SELECT DISTINCT col2 + 71 * + col1 AS col2 FROM tab1
----
1019
1900
767
query I rowsort
SELECT DISTINCT col2 + + 84 FROM tab0
----
117
166
85
query I rowsort
SELECT DISTINCT + col0 * + 76 + + col1 + - 95 FROM tab2
----
468
5892
5926
query I rowsort
SELECT col2 * 41 + - col1 FROM tab0
----
-56
1267
3271
query I rowsort
SELECT ( - tab1.col0 ) * col2 AS col0 FROM tab1
----
-162
-3648
-7680
query I rowsort
SELECT DISTINCT - 24 FROM tab1, tab1 AS cor0
----
-24
query I rowsort
SELECT + col1 * 72 + - col2 AS col2 FROM tab2
----
1186
2205
4222
query I rowsort
SELECT ALL - 98 * 78 FROM tab0 AS cor0
----
-7644
-7644
-7644
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * - 59 + - col0 col2 FROM tab2
----
-420
-4680
-4740
query I rowsort
SELECT 42 + 12 * + col2 AS col0 FROM tab0 AS cor0
----
1026
438
54
onlyif mysql # use DIV operator for integer division
query I rowsort label-343
SELECT DISTINCT + - col1 + col2 DIV col1 AS col2 FROM tab2 AS cor0
----
-15
-31
-59
skipif mysql # not compatible
query I rowsort label-343
SELECT DISTINCT + - col1 + col2 / col1 AS col2 FROM tab2 AS cor0
----
-15
-31
-59
query I rowsort
SELECT ALL - 17 * col2 + col1 * col0 AS col1 FROM tab1 AS cor0
----
-329
-592
-840
onlyif mysql # use DIV operator for integer division
query I rowsort label-345
SELECT col0 + 31 DIV - ( - col0 ) FROM tab2 AS cor0
----
11
78
79
skipif mysql # not compatible
query I rowsort label-345
SELECT col0 + 31 / - ( - col0 ) FROM tab2 AS cor0
----
11
78
79
query I rowsort
SELECT DISTINCT + col1 + - ( col1 ) AS col2 FROM tab2
----
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-347
SELECT DISTINCT - col1 DIV + 28 + + col1 AS col2 FROM tab1 cor0
----
10
13
26
skipif mysql # not compatible
query I rowsort label-347
SELECT DISTINCT - col1 / + 28 + + col1 AS col2 FROM tab1 cor0
----
10
13
26
query I rowsort
SELECT ALL + - cor0.col1 * - col2 + + cor0.col0 FROM tab1 AS cor0
----
1328
1407
634
query I rowsort
SELECT 12 * col1 FROM tab2
----
204
372
708
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - col1 + + col1 ) * - col2 col2 FROM tab2
----
0
0
0
query I rowsort
SELECT DISTINCT + ( 31 ) AS col2 FROM tab2 AS cor0
----
31
query I rowsort
SELECT ALL 15 * col2 AS col1 FROM tab1
----
1440
810
855
query I rowsort
SELECT ALL - 8 * col2 AS col1 FROM tab0 AS cor0
----
-264
-656
-8
query I rowsort
SELECT DISTINCT + - col1 + cor0.col0 + cor0.col0 * - 98 FROM tab2 AS cor0
----
-710
-7625
-7680
query I rowsort
SELECT ALL + 14 - col2 FROM tab0 AS cor0
----
-19
-68
13
query I rowsort
SELECT DISTINCT + ( - col0 ) AS col2 FROM tab0 cor0
----
-24
-35
-89
query I rowsort
SELECT DISTINCT 94 AS col2 FROM tab2 AS cor0
----
94
query I rowsort
SELECT + + 96 AS col0 FROM tab2 AS cor0
----
96
96
96
query I rowsort
SELECT + 33 - - col1 AS col0 FROM tab1
----
43
46
59
query I rowsort
SELECT DISTINCT + ( col0 * tab0.col0 ) + + col0 FROM tab0
----
1260
600
8010
query I rowsort
SELECT DISTINCT tab2.col2 + + ( 27 ) AS col2 FROM tab2, tab2 cor0
----
53
54
65
query I rowsort
SELECT ALL 52 * - 40 FROM tab0, tab1 cor0, tab2 AS cor1
----
27 values hashing to d86ccfaa559b7d44837d264ff2aa529d
query I rowsort
SELECT - + col2 * - ( col0 ) FROM tab2 cor0
----
189
2028
3002
onlyif mysql # use DIV operator for integer division
query I rowsort label-364
SELECT ALL col1 + - col0 DIV col0 col1 FROM tab2 AS cor0
----
16
30
58
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-364
SELECT ALL col1 + - col0 / col0 col1 FROM tab2 AS cor0
----
16
30
58
query I rowsort
SELECT col1 * - 70 FROM tab1 cor0
----
-1820
-700
-910
query I rowsort
SELECT - col0 * + 75 AS col2 FROM tab1 AS cor0
----
-225
-4800
-6000
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col2 + + col2 col0 FROM tab1 cor0
----
108
114
192
query I rowsort
SELECT DISTINCT + col1 + 0 FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT - + 2 + + col2 AS col0 FROM tab0 AS cor0
----
-1
31
80
query I rowsort
SELECT + - col0 + - 41 + col2 * col0 * col1 FROM tab1 AS cor0
----
36375
4168
99719
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-371
SELECT CAST( NULL AS SIGNED ) * 60 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-371
SELECT CAST ( NULL AS INTEGER ) * 60 col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + col1 ) + col2 * col0 col2 FROM tab2 AS cor0
----
2087
220
3019
query I rowsort
SELECT - + ( 52 ) * + col1 - col1 FROM tab0 AS cor0
----
-4558
-4823
-5141
query I rowsort
SELECT ( col2 ) * + col2 - ( - 44 ) FROM tab0 cor0
----
1133
45
6768
query I rowsort
SELECT ALL - col2 + + ( col0 ) * - col2 AS col1 FROM tab1
----
-216
-3705
-7776
query I rowsort
SELECT col0 + - ( + col0 ) AS col0 FROM tab0
----
0
0
0
query I rowsort
SELECT ALL col2 + ( + 69 ) FROM tab0
----
102
151
70
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-378
SELECT + col0 + + col1 + - col2 * tab0.col0 * CAST( + col0 AS SIGNED ) col2 FROM tab0
----
-1093
-18898
-649342
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-378
SELECT + col0 + + col1 + - col2 * tab0.col0 * CAST ( + col0 AS INTEGER ) col2 FROM tab0
----
-1093
-18898
-649342
query I rowsort
SELECT DISTINCT tab2.col1 + 43 AS col2 FROM tab2
----
102
60
74
query I rowsort
SELECT DISTINCT + ( + col1 ) * col2 AS col0 FROM tab1
----
1248
1404
570
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1, tab0 AS cor0 CROSS JOIN tab0, tab0 AS cor1, tab0 AS cor2
----
3645 values hashing to e7ea8a30caeb35409d15d2ce0abbd5a6
query I rowsort
SELECT + cor1.col2 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8
query I rowsort
SELECT ALL + + col1 + + 67 AS col2 FROM tab2 AS cor0
----
126
84
98
query I rowsort
SELECT DISTINCT - + col1 * + 0 + + col0 AS col2 FROM tab1 AS cor0
----
3
64
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + + ( col1 * cor0.col2 + + col0 ) col2 FROM tab0 AS cor0
----
229
2948
7642
query I rowsort
SELECT DISTINCT 32 + - 98 FROM tab0 AS cor0
----
-66
onlyif mysql # use DIV operator for integer division
query I rowsort label-387
SELECT + - 47 DIV + col1 + col1 AS col0 FROM tab2 AS cor0
----
15
30
59
skipif mysql # not compatible
query I rowsort label-387
SELECT + - 47 / + col1 + col1 AS col0 FROM tab2 AS cor0
----
15
30
59
query I rowsort
SELECT DISTINCT + + cor0.col2 * col0 * col2 + - col1 FROM tab1 AS cor0
----
207926
737267
8722
query I rowsort
SELECT ALL - + col1 * + col0 AS col0 FROM tab2 cor0
----
-1343
-217
-4602
onlyif mysql # use DIV operator for integer division
query I rowsort label-390
SELECT col2 + col0 * tab2.col2 DIV + col0 AS col0 FROM tab2
----
52
54
76
skipif mysql # not compatible
query I rowsort label-390
SELECT col2 + col0 * tab2.col2 / + col0 AS col0 FROM tab2
----
52
54
76
query I rowsort
SELECT + col0 * col1 + - col2 * col0 AS col2 FROM tab0
----
1272
3360
801
query I rowsort
SELECT - col1 - + 5 FROM tab0
----
-102
-91
-96
query I rowsort
SELECT + 90 FROM tab0, tab2 AS cor0
----
9 values hashing to 96f7a90428db93f472e0d219bab64853
query I rowsort
SELECT col1 + 55 * + col1 - - col0 AS col2 FROM tab0
----
4840
5185
5467
query I rowsort
SELECT ALL - tab0.col2 + col1 * - col1 AS col2 FROM tab0
----
-7429
-8363
-9410
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1, tab2 AS cor0 CROSS JOIN tab2, tab1 cor1, tab2 AS cor2
----
3645 values hashing to a6775d4c5b4880512ff9492a52ee0905
query I rowsort
SELECT ( cor0.col1 ) * col2 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT ALL + 22 * 62 FROM tab0
----
1364
1364
1364
query I rowsort
SELECT ( ( col0 ) ) * col2 * - col0 AS col0 FROM tab2 AS cor0
----
-1323
-158184
-237158
query I rowsort
SELECT DISTINCT - ( 58 ) * col1 FROM tab2 AS cor0
----
-1798
-3422
-986
query I rowsort
SELECT + col1 * + col0 + col0 * - 12 FROM tab0 AS cor0
----
1776
2975
7031
query I rowsort
SELECT + + col0 * + col2 * - col1 FROM tab0 AS cor0
----
-3395
-664118
-68112
onlyif mysql # use DIV operator for integer division
query I rowsort label-403
SELECT DISTINCT 30 DIV col1 + - col2 FROM tab1 AS cor0
----
-53
-54
-94
skipif mysql # not compatible
query I rowsort label-403
SELECT DISTINCT 30 / col1 + - col2 FROM tab1 AS cor0
----
-53
-54
-94
query I rowsort
SELECT col2 + ( cor0.col1 ) FROM tab0 AS cor0
----
119
173
98
query I rowsort
SELECT ALL + - 18 + col1 + col0 AS col2 FROM tab1 AS cor0
----
11
56
75
query I rowsort
SELECT ALL - - 64 * - col0 AS col2 FROM tab0 AS cor0
----
-1536
-2240
-5696
onlyif mysql # use DIV operator for integer division
query I rowsort label-407
SELECT + - col1 DIV 66 AS col0 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-407
SELECT + - col1 / 66 AS col0 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT + col0 + col2 * - 77 + ( col0 ) AS col2 FROM tab2
----
-1846
-2065
-2768
query I rowsort
SELECT DISTINCT - col2 * col1 - + col0 FROM tab0
----
-132
-2862
-7551
query I rowsort
SELECT + col0 * + cor0.col2 - - 46 FROM tab1 cor0
----
208
3694
7726
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-411
SELECT - col2 * + col1 + CAST( col1 AS SIGNED ) - + col2 FROM tab1 AS cor0
----
-1331
-1432
-617
skipif mysql # not compatible
query I rowsort label-411
SELECT - col2 * + col1 + CAST ( col1 AS INTEGER ) - + col2 FROM tab1 AS cor0
----
-1331
-1432
-617
query I rowsort
SELECT DISTINCT - + col2 * + 46 FROM tab0 AS cor0
----
-1518
-3772
-46
query I rowsort
SELECT + col2 * 41 AS col1 FROM tab0 AS cor0
----
1353
3362
41
query I rowsort
SELECT DISTINCT + 70 AS col1 FROM tab1
----
70
query I rowsort
SELECT ALL 76 AS col0 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 7b2b08dd3f1adef028d3f40ef7c716da
query I rowsort
SELECT - - col2 + ( col1 ) * col0 AS col2 FROM tab0 AS cor0
----
2097
3396
8181
query I rowsort
SELECT DISTINCT 4 AS col2 FROM tab2, tab2 cor0, tab2 AS cor1
----
4
query I rowsort
SELECT - col1 + 69 AS col1 FROM tab2 AS cor0
----
10
38
52
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-419
SELECT ALL cor0.col2 * CAST( + 61 AS SIGNED ) FROM tab1 AS cor0
----
3294
3477
5856
skipif mysql # not compatible
query I rowsort label-419
SELECT ALL cor0.col2 * CAST ( + 61 AS INTEGER ) FROM tab1 AS cor0
----
3294
3477
5856
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + + ( col0 ) - + cor0.col2 col1 FROM tab0 AS cor0
----
131
77
98
query I rowsort
SELECT - - col2 * col0 * - col0 - col1 FROM tab2 AS cor0
----
-1354
-158243
-237175
query I rowsort
SELECT ALL - col2 + - 87 AS col2 FROM tab1 AS cor0
----
-141
-144
-183
onlyif mysql # use DIV operator for integer division
query I rowsort label-423
SELECT DISTINCT - col1 DIV col2 col1 FROM tab1 AS cor0
----
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-423
SELECT DISTINCT - col1 / col2 col1 FROM tab1 AS cor0
----
0
query I rowsort
SELECT + col0 * ( ( col0 ) * + 46 ) FROM tab0 AS cor0
----
26496
364366
56350
query I rowsort
SELECT DISTINCT - - col0 * - 39 FROM tab2 AS cor0
----
-273
-3042
-3081
onlyif mysql # use DIV operator for integer division
query I rowsort label-426
SELECT - + col1 + col0 - col2 * col0 DIV + col1 AS col0 FROM tab1 AS cor0
----
-29
-310
-523
skipif mysql # not compatible
query I rowsort label-426
SELECT - + col1 + col0 - col2 * col0 / + col1 AS col0 FROM tab1 AS cor0
----
-29
-310
-523
onlyif mysql # use DIV operator for integer division
query I rowsort label-427
SELECT - col2 DIV + ( + 8 ) AS col1 FROM tab1 AS cor0
----
-12
-6
-7
skipif mysql # not compatible
query I rowsort label-427
SELECT - col2 / + ( + 8 ) AS col1 FROM tab1 AS cor0
----
-12
-6
-7
query I rowsort
SELECT ALL + cor0.col1 + - cor0.col1 AS col2 FROM tab1 cor0
----
0
0
0
query I rowsort
SELECT DISTINCT col2 * cor0.col0 + col2 FROM tab0 AS cor0
----
36
7380
825
query I rowsort
SELECT + cor0.col2 * col0 + + col2 AS col0 FROM tab2 AS cor0
----
2054
216
3040
query I rowsort
SELECT - col2 * - 30 + + col0 AS col1 FROM tab1 AS cor0
----
1623
1774
2960
onlyif mysql # use DIV operator for integer division
query I rowsort label-432
SELECT ALL + cor0.col2 * col2 DIV col2 + - col2 * col0 + - col2 FROM tab1 AS cor0
----
-162
-3648
-7680
skipif mysql # not compatible
query I rowsort label-432
SELECT ALL + cor0.col2 * col2 / col2 + - col2 * col0 + - col2 FROM tab1 AS cor0
----
-162
-3648
-7680
onlyif mysql # use DIV operator for integer division
query I rowsort label-433
SELECT ALL - col0 + col2 DIV + col0 AS col0 FROM tab2 AS cor0
----
-4
-78
-79
skipif mysql # not compatible
query I rowsort label-433
SELECT ALL - col0 + col2 / + col0 AS col0 FROM tab2 AS cor0
----
-4
-78
-79
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-434
SELECT ALL col1 + - CAST( NULL AS DECIMAL ) * 41 AS col2 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-434
SELECT ALL col1 + - CAST ( NULL AS REAL ) * 41 AS col2 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT + col2 + - col0 + + col0 FROM tab2
----
26
27
38
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-436
SELECT + CAST( NULL AS DECIMAL ) AS col0 FROM tab2, tab0 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-436
SELECT + CAST ( NULL AS REAL ) AS col0 FROM tab2, tab0 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT ALL 80 AS col1 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 6dd5038be71dffa82f5ceba787caab91
query I rowsort
SELECT ALL - 40 + - col0 * col0 * - col2 FROM tab0 AS cor0
----
1185
18968
649482
query I rowsort
SELECT ALL col0 + - col2 * - col0 FROM tab1 AS cor0
----
165
3712
7760
query I rowsort
SELECT + + cor0.col2 * col1 AS col2 FROM tab0 cor0
----
2838
7462
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-441
SELECT - ( + cor0.col2 ) + col2 DIV 29 FROM tab2 cor0
----
-26
-27
-37
skipif mysql # not compatible
query I rowsort label-441
SELECT - ( + cor0.col2 ) + col2 / 29 FROM tab2 cor0
----
-26
-27
-37
query I rowsort
SELECT DISTINCT 71 AS col1 FROM tab0 AS cor0
----
71
query I rowsort
SELECT col1 * col0 * ( - col1 ) AS col0 FROM tab2 AS cor0
----
-22831
-271518
-6727
query I rowsort
SELECT ALL col0 * + col1 + col1 FROM tab0 AS cor0
----
2150
3492
8190
query I rowsort
SELECT cor1.col2 AS col0 FROM tab2, tab1 AS cor0, tab1 cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79
query I rowsort
SELECT - col1 * - 13 * - col0 AS col0 FROM tab1 AS cor0
----
-1014
-13520
-8320
query I rowsort
SELECT 28 AS col1 FROM tab1, tab0, tab2 cor0
----
27 values hashing to 8a39580587f2831072e93c319ff94bbf
onlyif mysql # use DIV operator for integer division
query I rowsort label-448
SELECT DISTINCT + ( + tab0.col2 ) * 92 + tab0.col2 * - tab0.col2 - ( 93 + - col0 ) * 0 DIV col2 AS col1 FROM tab0
----
1947
820
91
skipif mysql # not compatible
query I rowsort label-448
SELECT DISTINCT + ( + tab0.col2 ) * 92 + tab0.col2 * - tab0.col2 - ( 93 + - col0 ) * 0 / col2 AS col1 FROM tab0
----
1947
820
91
query I rowsort
SELECT ALL col1 - col1 * col1 FROM tab1
----
-156
-650
-90
onlyif mysql # use DIV operator for integer division
query I rowsort label-450
SELECT + col1 * col1 + 18 DIV col0 AS col1 FROM tab0
----
7396
8281
9409
skipif mysql # not compatible
query I rowsort label-450
SELECT + col1 * col1 + 18 / col0 AS col1 FROM tab0
----
7396
8281
9409
query I rowsort
SELECT col1 * - col1 * - 64 + + col2 FROM tab0
----
473377
530066
602177
query I rowsort
SELECT DISTINCT - 82 * col2 FROM tab2
----
-2132
-2214
-3116
query I rowsort
SELECT - + cor0.col2 + + col1 * col0 AS col2 FROM tab2 cor0
----
1305
190
4576
query I rowsort
SELECT - col1 + + col0 * 78 FROM tab0 AS cor0
----
1786
2633
6851
query I rowsort
SELECT 27 + - col0 * cor0.col0 * - col1 FROM tab2 AS cor0
----
106124
1546
358983
query I rowsort
SELECT - col0 + col1 * 58 + - col1 FROM tab1 AS cor0
----
1479
506
661
query I rowsort
SELECT 2 + - col1 * col1 FROM tab2 AS cor0
----
-287
-3479
-959
query I rowsort
SELECT ( + col2 ) * col0 + - col2 AS col1 FROM tab2
----
162
2002
2964
onlyif mysql # use DIV operator for integer division
query I rowsort label-459
SELECT DISTINCT cor0.col2 DIV + 66 col2 FROM tab0, tab1 AS cor0
----
0
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-459
SELECT DISTINCT cor0.col2 / + 66 col2 FROM tab0, tab1 AS cor0
----
0
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 + - col2 + cor0.col1 col1 FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT col1 * - 87 AS col2 FROM tab1 AS cor0
----
-1131
-2262
-870
query I rowsort
SELECT - 53 + 32 * col0 + + col2 AS col2 FROM tab0 AS cor0
----
1068
2877
748
query I rowsort
SELECT - ( ( col1 ) ) * + col1 FROM tab2
----
-289
-3481
-961
query I rowsort
SELECT ALL + col2 * 80 * col0 AS col0 FROM tab2
----
15120
162240
240160
query I rowsort
SELECT DISTINCT - + cor0.col2 * col2 + + col2 AS col0 FROM tab0 AS cor0
----
-1056
-6642
0
query I rowsort
SELECT ALL - 96 * col2 AS col2 FROM tab2 AS cor0
----
-2496
-2592
-3648
onlyif mysql # use DIV operator for integer division
query I rowsort label-467
SELECT + col1 * 21 DIV col2 AS col0 FROM tab0
----
2037
23
54
skipif mysql # not compatible
query I rowsort label-467
SELECT + col1 * 21 / col2 AS col0 FROM tab0
----
2037
23
54
query I rowsort
SELECT ALL + tab2.col0 * - cor0.col1 FROM tab2, tab2 AS cor0, tab1, tab1 AS cor1
----
81 values hashing to c42d62a12ef524ac9c406f441b8c8a7e
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 2 col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 84dbfaf9bc17dd097f15bc36b4186261
query I rowsort
SELECT DISTINCT ( tab2.col2 ) + - col2 FROM tab2
----
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-471
SELECT DISTINCT + col2 DIV - col2 + + ( col2 ) * col1 AS col2 FROM tab0
----
2837
7461
96
skipif mysql # not compatible
query I rowsort label-471
SELECT DISTINCT + col2 / - col2 + + ( col2 ) * col1 AS col2 FROM tab0
----
2837
7461
96
query I rowsort
SELECT DISTINCT 92 FROM tab0, tab2, tab1 AS cor0
----
92
query I rowsort
SELECT DISTINCT + 23 + - col0 + - col1 FROM tab1
----
-51
-6
-70
query I rowsort
SELECT - 32 * + col1 FROM tab0 AS cor0
----
-2752
-2912
-3104
query I rowsort
SELECT + 33 * 22 AS col1 FROM tab2, tab1, tab0 cor0, tab0
----
81 values hashing to 103544b39bafb956334c80dfc7e87c95
query I rowsort
SELECT cor0.col1 + 48 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 861e0798f5d0dd29725f9b058878df24
query I rowsort
SELECT - col2 - - 30 AS col0 FROM tab1
----
-24
-27
-66
query I rowsort
SELECT cor0.col0 * - 96 FROM tab2 AS cor0
----
-672
-7488
-7584
query I rowsort
SELECT + - 88 + cor0.col1 + col1 FROM tab0 cor0
----
106
84
94
query I rowsort
SELECT + - 27 * 40 FROM tab0 AS cor0
----
-1080
-1080
-1080
query I rowsort
SELECT ALL + + col0 - col0 AS col1 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT ( - 40 ) AS col0 FROM tab1, tab1 AS cor0
----
-40
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( cor0.col2 ) - + col2 col2 FROM tab2 AS cor0
----
-52
-54
-76
query I rowsort
SELECT DISTINCT col1 * + col0 + - col1 * col1 FROM tab0 AS cor0
----
-182
-5332
-6014
query I rowsort
SELECT - + 49 + col2 FROM tab1 AS cor0
----
47
5
8
query IIIIII rowsort
SELECT * FROM tab1, tab0 cor0 WHERE NOT NULL >= NULL
----
query I rowsort
SELECT ALL col0 * + col2 * - col0 FROM tab1
----
-233472
-486
-614400
query I rowsort
SELECT DISTINCT col0 * - col0 - col0 AS col1 FROM tab1 AS cor0
----
-12
-4160
-6480
query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col0 * + col1 <> NULL
----
query I rowsort
SELECT col0 + + tab1.col2 - - col2 * + col0 FROM tab1
----
219
3769
7856
query I rowsort
SELECT col2 * + col0 + - col2 + + col2 AS col0 FROM tab2 AS cor0
----
189
2028
3002
query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col1 * col0 + - col2 * col1 >= - col0
----
35
97
1
89
91
82
query I rowsort
SELECT + col2 * col0 * col0 AS col1 FROM tab0 AS cor0
----
1225
19008
649522
query I rowsort
SELECT cor0.col2 * + cor0.col0 AS col1 FROM tab2 AS cor0
----
189
2028
3002
query IIIIII rowsort
SELECT DISTINCT * FROM tab0, tab1 AS cor0 WHERE ( cor0.col1 ) = NULL
----
query I rowsort
SELECT - col0 + col2 - tab2.col0 AS col1 FROM tab2
----
-120
-130
13
query I rowsort
SELECT tab1.col2 * col1 - col0 AS col0 FROM tab1
----
1168
1401
506
query I rowsort
SELECT tab2.col2 + - col0 * col0 + col2 * - col2 FROM tab2
----
-6734
-751
-7647
query I rowsort
SELECT - tab0.col1 * + col2 * - col2 AS col2 FROM tab0
----
611884
93654
97
query I rowsort
SELECT - col1 + + col1 * + col1 FROM tab1
----
156
650
90
onlyif mysql # use DIV operator for integer division
query I rowsort label-501
SELECT - col1 + col0 * col2 DIV - col0 + - col1 FROM tab0
----
-195
-205
-264
skipif mysql # not compatible
query I rowsort label-501
SELECT - col1 + col0 * col2 / - col0 + - col1 FROM tab0
----
-195
-205
-264
query I rowsort
SELECT + col1 + col1 * - col1 * col0 AS col0 FROM tab1
----
-13507
-2002
-6390
query I rowsort
SELECT DISTINCT + + col2 + + col2 FROM tab2 cor0
----
52
54
76
query I rowsort
SELECT + col0 + tab2.col1 * - col1 FROM tab2
----
-210
-3403
-954
query I rowsort
SELECT + col1 + - col0 - - col2 FROM tab2
----
-24
51
7
query I rowsort
SELECT DISTINCT - col1 + - col0 - col1 AS col2 FROM tab0
----
-196
-229
-271
query I rowsort
SELECT ALL + col0 * col1 AS col0 FROM tab0 WHERE NOT NULL NOT IN ( + col0 + tab0.col2 )
----
query I rowsort
SELECT DISTINCT - tab0.col2 - col1 AS col0 FROM tab0
----
-119
-173
-98
query I rowsort
SELECT DISTINCT col0 - + col0 * col2 AS col1 FROM tab0
----
-7209
-768
0
query I rowsort
SELECT ALL col2 * - col2 + + cor0.col2 * - col1 FROM tab0 AS cor0
----
-14186
-3927
-98
query I rowsort
SELECT DISTINCT + col0 + - col1 + - col1 * - col2 FROM tab2 AS cor0
----
1553
708
813
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - tab2.col1 + - col2 + col1 col2 FROM tab2
----
-26
-27
-38
query I rowsort
SELECT - col2 * + col1 + col0 AS col1 FROM tab1
----
-1168
-1401
-506
onlyif mysql # use DIV operator for integer division
query I rowsort label-514
SELECT + + col0 * col0 DIV - col1 FROM tab1 AS cor0
----
-409
-492
0
skipif mysql # not compatible
query I rowsort label-514
SELECT + + col0 * col0 / - col1 FROM tab1 AS cor0
----
-409
-492
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-515
SELECT - col2 + CAST( + 39 AS SIGNED ) * + col0 FROM tab2 AS cor0
----
246
3016
3043
skipif mysql # not compatible
query I rowsort label-515
SELECT - col2 + CAST ( + 39 AS INTEGER ) * + col0 FROM tab2 AS cor0
----
246
3016
3043
query I rowsort
SELECT - + col2 * - col1 + + 87 AS col0 FROM tab1 AS cor0
----
1335
1491
657
query I rowsort
SELECT + col2 * col0 - - col2 FROM tab1 AS cor0
----
216
3705
7776
query I rowsort
SELECT DISTINCT + col2 + col2 * col0 AS col0 FROM tab2 AS cor0
----
2054
216
3040
query I rowsort
SELECT DISTINCT - col2 * - ( col1 ) + + col0 * + 25 AS col1 FROM tab1 AS cor0
----
1479
2170
3248
query I rowsort
SELECT ALL - cor0.col2 + + 58 * - col1 FROM tab1 AS cor0
----
-1562
-637
-850
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 74 col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 2ccf8ef3f477e1a1a3e30c8b8154ff31
query I rowsort
SELECT ALL + 71 FROM tab0 AS cor0 CROSS JOIN tab1, tab0 AS cor1, tab2 AS cor2
----
81 values hashing to 39b7515708f32e28b7b5a1bfec0df356
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-523
SELECT cor0.col2 * CAST( 65 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
2145
5330
65
skipif mysql # not compatible
query I rowsort label-523
SELECT cor0.col2 * CAST ( 65 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
2145
5330
65
onlyif mysql # use DIV operator for integer division
query I rowsort label-524
SELECT - col0 DIV 61 FROM tab1 AS cor0
----
-1
-1
0
skipif mysql # not compatible
query I rowsort label-524
SELECT - col0 / 61 FROM tab1 AS cor0
----
-1
-1
0
query I rowsort
SELECT col1 - ( ( - col1 ) ) FROM tab0 AS cor0
----
172
182
194
query I rowsort
SELECT ALL - col1 + + 56 * + col0 * col2 FROM tab0 cor0
----
1863
408597
44266
query I rowsort
SELECT + col0 * col2 + ( col2 ) * - cor0.col1 FROM tab1 AS cor0
----
-1242
3078
6432
query I rowsort
SELECT ALL col1 * - 43 FROM tab0 AS cor0
----
-3698
-3913
-4171
onlyif mysql # use DIV operator for integer division
query I rowsort label-529
SELECT ALL - - col2 DIV ( + cor0.col2 ) + col2 AS col1 FROM tab1 AS cor0
----
55
58
97
skipif mysql # not compatible
query I rowsort label-529
SELECT ALL - - col2 / ( + cor0.col2 ) + col2 AS col1 FROM tab1 AS cor0
----
55
58
97
query I rowsort
SELECT col2 * col2 + col1 * + col0 FROM tab0 AS cor0
----
14823
3153
3396
query I rowsort
SELECT DISTINCT - - cor0.col2 * + col0 + + 58 * col0 FROM tab1 AS cor0
----
12320
336
7360
onlyif mysql # use DIV operator for integer division
query I rowsort label-532
SELECT DISTINCT - col0 * col0 - + col1 DIV + col2 AS col1 FROM tab0
----
-1322
-578
-7922
skipif mysql # not compatible
query I rowsort label-532
SELECT DISTINCT - col0 * col0 - + col1 / + col2 AS col1 FROM tab0
----
-1322
-578
-7922
query I rowsort
SELECT DISTINCT + col2 AS col1 FROM tab2 WHERE NOT ( col0 ) > ( NULL )
----
query I rowsort
SELECT DISTINCT + tab0.col0 * + col2 - col0 AS col2 FROM tab0
----
0
7209
768
query I rowsort
SELECT + col0 * + tab0.col0 * + col2 + col1 AS col0 FROM tab0
----
1322
19094
649613
query III rowsort
SELECT * FROM tab1 WHERE ( - col0 ) NOT IN ( col1 - tab1.col0 )
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d
query I rowsort
SELECT DISTINCT - col1 - tab0.col1 AS col0 FROM tab0
----
-172
-182
-194
onlyif mysql # use DIV operator for integer division
query I rowsort label-538
SELECT + col1 + - tab0.col1 DIV col2 FROM tab0
----
0
84
90
skipif mysql # not compatible
query I rowsort label-538
SELECT + col1 + - tab0.col1 / col2 FROM tab0
----
0
84
90
query III rowsort
SELECT ALL * FROM tab1 WHERE ( NULL ) < + col1
----
query I rowsort
SELECT - col1 * - col0 - - tab2.col0 AS col0 FROM tab2
----
1422
224
4680
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 71 + col0 * + 62 col1 FROM tab0 cor0
----
1417
2099
5447
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( col1 ) + + col1 col2 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT cor0.col0 * col1 + - 43 AS col2 FROM tab1 AS cor0
----
35
597
997
query I rowsort
SELECT DISTINCT - col1 * + col1 + + col0 * - col2 - + col0 FROM tab1 AS cor0
----
-3812
-7929
-841
onlyif mysql # use DIV operator for integer division
query I rowsort label-545
SELECT ALL - col1 * + col2 DIV - col2 + col1 FROM tab1 AS cor0
----
20
26
52
skipif mysql # not compatible
query I rowsort label-545
SELECT ALL - col1 * + col2 / - col2 + col1 FROM tab1 AS cor0
----
20
26
52
query I rowsort
SELECT ALL + + 82 + + cor0.col2 FROM tab1 cor0
----
136
139
178
query I rowsort
SELECT col0 - + col0 * + tab2.col0 FROM tab2
----
-42
-6006
-6162
query III rowsort
SELECT ALL * FROM tab0 WHERE NULL = + col1
----
query I rowsort
SELECT DISTINCT col0 + col1 * col2 AS col0 FROM tab1
----
1328
1407
634
query I rowsort
SELECT - 95 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to cf302b83f15b730fe35c19bdd9363c13
query I rowsort
SELECT ALL tab2.col1 AS col1 FROM tab2 WHERE NOT NULL >= NULL
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-552
SELECT ALL col0 + + col2 * tab1.col1 DIV - col1 AS col1 FROM tab1
----
-16
-51
7
skipif mysql # not compatible
query I rowsort label-552
SELECT ALL col0 + + col2 * tab1.col1 / - col1 AS col1 FROM tab1
----
-16
-51
7
query I rowsort
SELECT - 7 AS col2 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 82db7c0390abae7ccf4512b1302a6466
query I rowsort
SELECT col1 * col2 + - cor0.col1 FROM tab0 AS cor0
----
0
2752
7371
query I rowsort
SELECT + col1 + 28 * - cor0.col2 FROM tab1 AS cor0
----
-1486
-1586
-2675
query I rowsort
SELECT DISTINCT - + 73 * + cor0.col0 FROM tab2 AS cor0
----
-511
-5694
-5767
query I rowsort
SELECT 52 AS col0 FROM tab2, tab0 AS cor0, tab1 cor1
----
27 values hashing to 76100d10f51995d20efdeb657e444d3c
onlyif mysql # use DIV operator for integer division
query I rowsort label-558
SELECT col2 + + col2 DIV - col0 FROM tab2 AS cor0
----
24
26
38
skipif mysql # not compatible
query I rowsort label-558
SELECT col2 + + col2 / - col0 FROM tab2 AS cor0
----
24
26
38
query I rowsort
SELECT DISTINCT - ( col0 ) + 61 * 34 * col2 FROM tab0
----
169979
2039
68418
query I rowsort
SELECT - + cor0.col2 * + 74 + col2 AS col1 FROM tab2 cor0
----
-1898
-1971
-2774
query I rowsort
SELECT ALL col1 + - col0 + col0 * col2 * + col0 FROM tab0
----
1287
19070
649524
query I rowsort
SELECT DISTINCT 49 AS col0 FROM tab0, tab1, tab0 AS cor0
----
49
query I rowsort
SELECT DISTINCT + 79 * col0 + 12 FROM tab1
----
249
5068
6332
query I rowsort
SELECT - tab2.col1 * + col0 AS col0 FROM tab2
----
-1343
-217
-4602
query I rowsort
SELECT ALL col1 * - col2 * 34 + cor0.col2 FROM tab2 AS cor0
----
-21926
-28431
-52130
onlyif mysql # use DIV operator for integer division
query I rowsort label-566
SELECT + - cor0.col0 DIV cor0.col1 FROM tab1 AS cor0
----
-6
-6
0
skipif mysql # not compatible
query I rowsort label-566
SELECT + - cor0.col0 / cor0.col1 FROM tab1 AS cor0
----
-6
-6
0
query I rowsort
SELECT ALL - - cor0.col2 AS col1 FROM tab0, tab1 cor0
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17
query I rowsort
SELECT cor0.col0 * cor0.col2 - col0 FROM tab1 AS cor0
----
159
3584
7600
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col0 * + 39 col0 FROM tab1 AS cor0
----
117
2496
3120
query I rowsort
SELECT col2 * - 88 AS col0 FROM tab0 AS cor0
----
-2904
-7216
-88
query I rowsort
SELECT ALL + ( col2 ) * col0 AS col0 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT + col2 * + 37 FROM tab2
----
1406
962
999
query I rowsort
SELECT col0 * - col1 + + col2 * - col2 + col2 AS col0 FROM tab0
----
-14741
-3120
-3395
query I rowsort
SELECT col0 + col2 * col2 * - col0 FROM tab1 AS cor0
----
-207872
-737200
-8745
query I rowsort
SELECT ALL col0 + ( 80 ) - + col2 * col1 FROM tab1
----
-1088
-1321
-426
query I rowsort
SELECT ALL + cor0.col0 * col2 + col1 FROM tab0 AS cor0
----
132
7389
878
query I rowsort
SELECT DISTINCT col2 + col2 * cor0.col0 FROM tab1 cor0
----
216
3705
7776
query I rowsort
SELECT ALL + 92 + - col1 FROM tab1 AS cor0
----
66
79
82
query I rowsort
SELECT ( + col1 + col1 ) AS col0 FROM tab0
----
172
182
194
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + tab1.col2 col1 FROM tab1, tab0 AS cor0
----
54
57
96
query I rowsort
SELECT col2 + + 20 AS col1 FROM tab0
----
102
21
53
query I rowsort
SELECT DISTINCT ( - 82 * - tab1.col2 ) AS col2 FROM tab1
----
4428
4674
7872
query I rowsort
SELECT 55 AS col2 FROM tab2, tab0, tab0 cor0
----
27 values hashing to 832128adb1ddc65c3105e29cc2c8b3a3
query I rowsort
SELECT + + 66 * col2 FROM tab1 AS cor0
----
3564
3762
6336
query I rowsort
SELECT - col2 * cor0.col0 * col0 AS col1 FROM tab0 cor0
----
-1225
-19008
-649522
onlyif mysql # use DIV operator for integer division
query I rowsort label-586
SELECT + + col2 DIV - col0 AS col1 FROM tab0 AS cor0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-586
SELECT + + col2 / - col0 AS col1 FROM tab0 AS cor0
----
-1
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-587
SELECT CAST( col0 AS SIGNED ) AS col0 FROM tab2
----
7
78
79
skipif mysql # not compatible
query I rowsort label-587
SELECT CAST ( col0 AS INTEGER ) AS col0 FROM tab2
----
7
78
79
query I rowsort
SELECT ALL + col1 - 10 FROM tab2
----
21
49
7
onlyif mysql # use DIV operator for integer division
query I rowsort label-589
SELECT DISTINCT - + 20 - - 17 DIV - col1 FROM tab1 cor0
----
-20
-21
skipif mysql # not compatible
query I rowsort label-589
SELECT DISTINCT - + 20 - - 17 / - col1 FROM tab1 cor0
----
-20
-21
query I rowsort
SELECT - ( 90 ) * cor0.col1 FROM tab0 AS cor0
----
-7740
-8190
-8730
onlyif mysql # use DIV operator for integer division
query I rowsort label-591
SELECT DISTINCT + - 97 DIV col1 - col1 col0 FROM tab2 AS cor0
----
-22
-34
-60
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-591
SELECT DISTINCT + - 97 / col1 - col1 col0 FROM tab2 AS cor0
----
-22
-34
-60
query I rowsort
SELECT DISTINCT + col0 * + 76 FROM tab2 AS cor0
----
532
5928
6004
query I rowsort
SELECT DISTINCT + - ( col0 ) * + cor0.col2 AS col1 FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT DISTINCT + + 14 * cor0.col2 AS col0 FROM tab1 AS cor0
----
1344
756
798
query I rowsort
SELECT - ( + col0 ) * col1 AS col2 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT 54 + - col1 AS col2 FROM tab2 AS cor0
----
-5
23
37
query I rowsort
SELECT DISTINCT + 14 * col2 + col2 FROM tab0 AS cor0
----
1230
15
495
query I rowsort
SELECT ALL + col1 + col2 * + 18 AS col1 FROM tab2 AS cor0
----
517
527
701
query I rowsort
SELECT DISTINCT - + col1 * - cor0.col0 + + col0 * - 55 - - col2 AS col2 FROM tab0 cor0
----
1471
3286
777
query I rowsort
SELECT DISTINCT + + col1 * col1 + - 78 FROM tab0 AS cor0
----
7318
8203
9331
query I rowsort
SELECT DISTINCT - 62 + col0 FROM tab2 AS cor0
----
-55
16
17
query I rowsort
SELECT 6 + col2 AS col2 FROM tab0 AS cor0
----
39
7
88
query I rowsort
SELECT ALL + + col2 * + cor0.col1 + col0 + + cor0.col0 FROM tab0 AS cor0
----
167
2886
7640
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 64 * col0 col2 FROM tab0 cor0
----
1536
2240
5696
query I rowsort
SELECT DISTINCT col2 + + cor0.col0 FROM tab0 AS cor0
----
171
36
57
query I rowsort
SELECT - col0 * + col1 + col0 * + cor0.col0 FROM tab0 AS cor0
----
-1488
-178
-2170
query I rowsort
SELECT DISTINCT - 92 + - col2 + cor0.col2 * + col2 FROM tab2 AS cor0
----
1314
558
610
query I rowsort
SELECT - ( 57 ) FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to 0b74bbd7631afe9b2eeb9f18b9dc6505
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab2.col1 col1 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d
query I rowsort
SELECT + + col1 - col2 * - 51 FROM tab2 AS cor0
----
1385
1408
1955
query I rowsort
SELECT ALL - - col2 * + col2 + ( + col1 ) + cor0.col1 AS col0 FROM tab0 cor0
----
1261
195
6906
query I rowsort
SELECT + col0 + col1 * 24 FROM tab1 AS cor0
----
304
392
627
query I rowsort
SELECT DISTINCT - - col2 + cor0.col0 * - col2 FROM tab0 AS cor0
----
-34
-7216
-759
query I rowsort
SELECT - - col2 + + ( + col2 ) * - col1 AS col2 FROM tab2 AS cor0
----
-1508
-608
-810
query I rowsort
SELECT ALL - col1 * 90 AS col0 FROM tab2 AS cor0
----
-1530
-2790
-5310
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 + 23 * col0 * cor0.col2 col1 FROM tab1 AS cor0
----
176736
3780
83961
query I rowsort
SELECT - col1 * col2 + - col1 AS col1 FROM tab1 AS cor0
----
-1261
-1430
-580
query I rowsort
SELECT DISTINCT col2 + 2 * col2 FROM tab0 cor0
----
246
3
99
query I rowsort
SELECT DISTINCT + 55 * + tab2.col2 FROM tab2
----
1430
1485
2090
query I rowsort
SELECT ALL - cor1.col0 - - 47 FROM tab0, tab0 AS cor0, tab2 AS cor1, tab2, tab2 AS cor2
----
243 values hashing to bd252c8886aa84f3b27440ce61bce4f3
onlyif mysql # use DIV operator for integer division
query I rowsort label-621
SELECT + 6 * col1 DIV + col2 FROM tab1 AS cor0
----
0
1
2
skipif mysql # not compatible
query I rowsort label-621
SELECT + 6 * col1 / + col2 FROM tab1 AS cor0
----
0
1
2
query I rowsort
SELECT - 10 * - col1 FROM tab2 AS cor0
----
170
310
590
onlyif mysql # use DIV operator for integer division
query I rowsort label-623
SELECT + + CAST( + col1 AS SIGNED ) DIV col0 col2 FROM tab1 AS cor0
----
0
0
8
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-623
SELECT + + CAST ( + col1 AS INTEGER ) / col0 col2 FROM tab1 AS cor0
----
0
0
8
query I rowsort
SELECT + 79 * - col1 FROM tab0 cor0
----
-6794
-7189
-7663
query I rowsort
SELECT ALL + col0 + + col2 * - cor0.col0 FROM tab1 AS cor0
----
-159
-3584
-7600
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-626
SELECT col0 + CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-626
SELECT col0 + CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT tab1.col0 + - col2 AS col1 FROM tab1
----
-16
-51
7
query I rowsort
SELECT + col1 + ( - col1 ) AS col1 FROM tab0
----
0
0
0
query I rowsort
SELECT + col1 + 27 FROM tab1
----
37
40
53
query I rowsort
SELECT DISTINCT col0 * + 38 * col0 FROM tab2
----
1862
231192
237158
query I rowsort
SELECT - - ( + col1 ) * + col0 FROM tab2 cor0
----
1343
217
4602
onlyif mysql # use DIV operator for integer division
query I rowsort label-632
SELECT ALL + cor0.col1 DIV + ( - col2 ) AS col2 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-632
SELECT ALL + cor0.col1 / + ( - col2 ) AS col2 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT + ( 88 ) * col0 AS col1 FROM tab1 cor0
----
264
5632
7040
query I rowsort
SELECT DISTINCT - ( - ( col1 ) ) * - ( ( - col1 ) + col1 ) AS col0 FROM tab1 AS cor0
----
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-635
SELECT ALL + CAST( col2 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
1
33
82
skipif mysql # not compatible
query I rowsort label-635
SELECT ALL + CAST ( col2 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT - ( - cor0.col0 ) + col2 FROM tab1 AS cor0
----
121
176
57
onlyif mysql # use DIV operator for integer division
query I rowsort label-637
SELECT DISTINCT + 28 DIV col2 + + cor0.col0 + - 31 DIV col2 FROM tab1 AS cor0
----
3
64
80
skipif mysql # not compatible
query I rowsort label-637
SELECT DISTINCT + 28 / col2 + + cor0.col0 + - 31 / col2 FROM tab1 AS cor0
----
3
64
80
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-638
SELECT DISTINCT - CAST( NULL AS SIGNED ) + 25 AS col0 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-638
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + 25 AS col0 FROM tab1 AS cor0
----
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-639
SELECT ALL + CAST( cor1.col2 AS SIGNED ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3
skipif mysql # not compatible
query I rowsort label-639
SELECT ALL + CAST ( cor1.col2 AS INTEGER ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3
query I rowsort
SELECT ALL tab0.col0 + col0 * - tab0.col1 FROM tab0
----
-2040
-3360
-8010
query I rowsort
SELECT 15 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to d1d280d38bf9c2d5d5ec90dd43aeaffd
query I rowsort
SELECT DISTINCT 67 + col0 * + col1 FROM tab2
----
1410
284
4669
query I rowsort
SELECT DISTINCT - ( + col1 ) * + col1 AS col1 FROM tab0 AS cor0
----
-7396
-8281
-9409
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 DISTINCT - col0 + + cor0.col1 + ( 97 * - col1 ) FROM tab2 AS cor0
----
-1711
-2983
-5742
query I rowsort
SELECT + col1 + + ( + 33 ) FROM tab0 AS cor0
----
119
124
130
query I rowsort
SELECT ALL - - col0 * + ( col0 ) + - col1 FROM tab0 AS cor0
----
1128
490
7830
query I rowsort
SELECT DISTINCT - col1 * - 12 FROM tab1 AS cor0
----
120
156
312
query I rowsort
SELECT + ( + 12 ) AS col0 FROM tab0, tab1, tab2 AS cor0, tab2
----
81 values hashing to c60b9398e29d6382e0d15363f9325811
query I rowsort
SELECT - cor0.col0 + + ( + col0 ) * col0 AS col0 FROM tab1 AS cor0
----
4032
6
6320
query I rowsort
SELECT + - col2 * + cor0.col2 + 92 FROM tab0 AS cor0
----
-6632
-997
91
query I rowsort
SELECT - 76 + cor0.col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 986f5af7cbfb404d2687978f7407695b
onlyif mysql # use DIV operator for integer division
query I rowsort label-653
SELECT ALL + col0 DIV ( col1 ) AS col0 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-653
SELECT ALL + col0 / ( col1 ) AS col0 FROM tab0 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * - col0 + cor0.col0 * col2 col0 FROM tab2 AS cor0
----
-2574
-28
1659
query I rowsort
SELECT DISTINCT - - ( col2 ) * 84 AS col2 FROM tab2 cor0
----
2184
2268
3192
query I rowsort
SELECT DISTINCT tab2.col2 + tab2.col0 + col1 AS col2 FROM tab2
----
134
163
65
query I rowsort
SELECT DISTINCT - 54 + col2 + - col2 AS col2 FROM tab0
----
-54
onlyif mysql # use DIV operator for integer division
query I rowsort label-658
SELECT col1 * - col0 + + 31 + cor0.col2 DIV - col1 FROM tab2 AS cor0
----
-1314
-186
-4571
skipif mysql # not compatible
query I rowsort label-658
SELECT col1 * - col0 + + 31 + cor0.col2 / - col1 FROM tab2 AS cor0
----
-1314
-186
-4571
query I rowsort
SELECT 23 * - cor0.col2 FROM tab0 AS cor0
----
-1886
-23
-759
onlyif mysql # use DIV operator for integer division
query I rowsort label-660
SELECT - col2 DIV + col0 - + 69 FROM tab0 cor0
----
-69
-69
-70
skipif mysql # not compatible
query I rowsort label-660
SELECT - col2 / + col0 - + 69 FROM tab0 cor0
----
-69
-69
-70
query I rowsort
SELECT + col2 * - col1 * - 58 AS col2 FROM tab0 AS cor0
----
164604
432796
5626
query I rowsort
SELECT col1 * - col0 + + col1 * - ( + cor0.col0 ) + col2 FROM tab1 cor0
----
-102
-1223
-1984
query I rowsort
SELECT - col0 + cor0.col1 + + cor0.col2 AS col2 FROM tab1 AS cor0
----
29
3
77
query I rowsort
SELECT + 32 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to cf4f01ac97eb83445b1721f3ae28961a
query I rowsort
SELECT + + cor0.col0 + 47 * col1 FROM tab1 AS cor0
----
1225
534
691
query I rowsort
SELECT ALL 45 * cor0.col1 * ( - 25 ) FROM tab1, tab0 AS cor0
----
9 values hashing to 39ce8feab38fd3b9f1b7ccd75e00b4fe
query I rowsort
SELECT - 43 FROM tab1, tab1 AS cor0, tab2 AS cor1, tab2 cor2
----
81 values hashing to 4f17f941ddb7d7f35d93196515cfe0f2
query I rowsort
SELECT - col1 * ( col0 ) FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT DISTINCT - ( + col1 ) * + col2 AS col2 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT + 48 * 33 AS col0 FROM tab0 AS cor0
----
1584
1584
1584
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-671
SELECT DISTINCT + + CAST( NULL AS SIGNED ) + - col0 * cor0.col0 AS col0 FROM tab1 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-671
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) + - col0 * cor0.col0 AS col0 FROM tab1 cor0
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-672
SELECT DISTINCT - 33 * cor0.col0 DIV col1 FROM tab0 AS cor0
----
-11
-32
-9
skipif mysql # not compatible
query I rowsort label-672
SELECT DISTINCT - 33 * cor0.col0 / col1 FROM tab0 AS cor0
----
-11
-32
-9
query I rowsort
SELECT ALL - - cor0.col0 + col2 * + col1 FROM tab2 AS cor0
----
1612
725
844
query I rowsort
SELECT - - 68 * + col0 FROM tab0 AS cor0
----
1632
2380
6052
query I rowsort
SELECT 66 + - col1 FROM tab1 AS cor0
----
40
53
56
query I rowsort
SELECT + 18 * col0 FROM tab0 cor0
----
1602
432
630
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-677
SELECT DISTINCT - + 3 * + col0 + - CAST( NULL AS SIGNED ) / + col1 AS col2 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-677
SELECT DISTINCT - + 3 * + col0 + - CAST ( NULL AS INTEGER ) / + col1 AS col2 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT ALL 98 * + col0 + col0 FROM tab1 AS cor0
----
297
6336
7920
query I rowsort
SELECT DISTINCT + 67 - + col2 AS col0 FROM tab1 AS cor0
----
-29
10
13
onlyif mysql # use DIV operator for integer division
query I rowsort label-680
SELECT + col2 DIV col0 + 15 DIV col1 FROM tab1 AS cor0
----
1
18
2
skipif mysql # not compatible
query I rowsort label-680
SELECT + col2 / col0 + 15 / col1 FROM tab1 AS cor0
----
1
18
2
query I rowsort
SELECT ALL + col2 * - ( + 23 + cor0.col0 ) * + col1 FROM tab2 AS cor0
----
-154934
-25110
-65892
query I rowsort
SELECT - cor0.col2 + + cor0.col1 + col0 FROM tab2 AS cor0
----
11
111
58
query I rowsort
SELECT + col1 + - col1 * - col2 + col2 AS col2 FROM tab0 cor0
----
195
2957
7635
query I rowsort
SELECT - col2 + + col2 + + col0 * col0 AS col2 FROM tab2 AS cor0
----
49
6084
6241
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-685
SELECT ALL + col0 * - CAST( ( - col0 ) * col0 AS SIGNED ) FROM tab0
----
13824
42875
704969
skipif mysql # not compatible
query I rowsort label-685
SELECT ALL + col0 * - CAST ( ( - col0 ) * col0 AS INTEGER ) FROM tab0
----
13824
42875
704969
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 20 + 45 col2 FROM tab0 cor0
----
25
query I rowsort
SELECT ALL + - col2 + - 96 - - col2 AS col2 FROM tab0 AS cor0
----
-96
-96
-96
query I rowsort
SELECT ALL - col1 * 28 + - col2 * col2 AS col1 FROM tab1 AS cor0
----
-3529
-3644
-9580
onlyif mysql # use DIV operator for integer division
query I rowsort label-689
SELECT + col1 * tab0.col1 + - col0 DIV tab0.col1 AS col0 FROM tab0
----
7396
8281
9409
skipif mysql # not compatible
query I rowsort label-689
SELECT + col1 * tab0.col1 + - col0 / tab0.col1 AS col0 FROM tab0
----
7396
8281
9409
query I rowsort
SELECT DISTINCT - col1 * ( tab2.col1 ) + + col0 * col1 * col0 + + col2 AS col2 FROM tab2
----
105846
355501
585
query I rowsort
SELECT ALL - col1 * 56 AS col0 FROM tab0
----
-4816
-5096
-5432
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-692
SELECT DISTINCT - col0 * CAST( - col0 AS SIGNED ) + col1 FROM tab1
----
35
4106
6413
skipif mysql # not compatible
query I rowsort label-692
SELECT DISTINCT - col0 * CAST ( - col0 AS INTEGER ) + col1 FROM tab1
----
35
4106
6413
query I rowsort
SELECT col0 + ( - col1 ) FROM tab0
----
-2
-62
-62
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + + 37 col1 FROM tab0 AS cor0
----
119
38
70
query I rowsort
SELECT - - 29 + - cor0.col2 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to d499425462444aa0370f4e254ec26f53
query I rowsort
SELECT + cor0.col2 + ( - col2 ) * - col0 FROM tab2 AS cor0
----
2054
216
3040
query I rowsort
SELECT DISTINCT col1 + - col0 * col1 * cor0.col1 AS col2 FROM tab1 AS cor0
----
-13507
-2002
-6390
query I rowsort
SELECT col1 * + 33 FROM tab2 AS cor0
----
1023
1947
561
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col2 + col0 + + col1 col0 FROM tab1 AS cor0
----
-25
-3
17
query I rowsort
SELECT + + col0 + - 89 FROM tab0 AS cor0
----
-54
-65
0
query I rowsort
SELECT DISTINCT - + cor0.col0 + - 13 * 4 * col0 FROM tab2 AS cor0
----
-371
-4134
-4187
query I rowsort
SELECT ALL + col1 + col1 * + col1 * col0 AS col0 FROM tab2 cor0
----
22848
271577
6758
onlyif mysql # use DIV operator for integer division
query I rowsort label-703
SELECT - col0 * col1 DIV - col2 FROM tab0 AS cor0
----
3395
62
98
skipif mysql # not compatible
query I rowsort label-703
SELECT - col0 * col1 / - col2 FROM tab0 AS cor0
----
3395
62
98
query I rowsort
SELECT ALL - 37 FROM tab0, tab1, tab0 cor0
----
27 values hashing to 395d44ccbce08828bc493e93ec3d9207
query I rowsort
SELECT ( tab1.col0 + - col2 ) FROM tab1
----
-16
-51
7
query I rowsort
SELECT - 1 * ( col2 ) * - ( + col1 * col2 ) + - ( ( - col2 ) ) FROM tab0
----
611966
93687
98
query I rowsort
SELECT DISTINCT 63 + tab2.col1 * - col2 AS col0 FROM tab2
----
-1471
-583
-774
query I rowsort
SELECT ALL - ( + 35 ) + + col0 FROM tab0 AS cor0
----
-11
0
54
query I rowsort
SELECT ALL - 43 AS col1 FROM tab1, tab0 AS cor0, tab0 AS cor1, tab0 AS cor2
----
81 values hashing to 4f17f941ddb7d7f35d93196515cfe0f2
query I rowsort
SELECT ALL + - ( - col1 ) * - col0 * ( col0 ) + col1 FROM tab1 AS cor0
----
-208
-40950
-83187
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( col0 * + col2 ) + col0 col2 FROM tab0
----
70
7387
816
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-712
SELECT CAST( NULL AS SIGNED ) + 58 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-712
SELECT CAST ( NULL AS INTEGER ) + 58 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 50 - + col1 col2 FROM tab1 cor0
----
-60
-63
-76
query I rowsort
SELECT DISTINCT + cor0.col2 + + col1 * + col0 FROM tab1 AS cor0
----
1136
132
697
onlyif mysql # use DIV operator for integer division
query I rowsort label-715
SELECT DISTINCT - col0 DIV - col1 AS col2 FROM tab2 cor0
----
0
1
4
skipif mysql # not compatible
query I rowsort label-715
SELECT DISTINCT - col0 / - col1 AS col2 FROM tab2 cor0
----
0
1
4
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 23 * + col1 col2 FROM tab0 cor0
----
-1978
-2093
-2231
query I rowsort
SELECT ALL + + ( cor0.col0 ) FROM tab1 AS cor0
----
3
64
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 * + cor0.col1 + + col2 col2 FROM tab1 cor0
----
157
265
730
query I rowsort
SELECT ALL - - 86 * col2 AS col0 FROM tab1 AS cor0
----
4644
4902
8256
query I rowsort
SELECT - - col0 * - cor0.col2 + col0 * - col1 AS col0 FROM tab0 AS cor0
----
-15397
-2856
-3430
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * col0 + col1 col0 FROM tab1
----
188
3658
7693
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-722
SELECT DISTINCT CAST( col1 AS SIGNED ) + col1 FROM tab2
----
118
34
62
skipif mysql # not compatible
query I rowsort label-722
SELECT DISTINCT CAST ( col1 AS INTEGER ) + col1 FROM tab2
----
118
34
62
query I rowsort
SELECT ( + col0 + tab1.col0 ) FROM tab1
----
128
160
6
query I rowsort
SELECT DISTINCT + 69 + col2 AS col0 FROM tab1 cor0
----
123
126
165
query I rowsort
SELECT ALL cor0.col1 + - col1 * + col0 FROM tab1 AS cor0
----
-1027
-52
-630
onlyif mysql # use DIV operator for integer division
query I rowsort label-726
SELECT ALL col2 DIV col1 + + cor0.col2 AS col0 FROM tab1 AS cor0
----
103
56
62
skipif mysql # not compatible
query I rowsort label-726
SELECT ALL col2 / col1 + + cor0.col2 AS col0 FROM tab1 AS cor0
----
103
56
62
query I rowsort
SELECT ALL + 71 + - col0 AS col1 FROM tab2 AS cor0
----
-7
-8
64
query I rowsort
SELECT ALL - col1 * - col0 + 78 + + 60 FROM tab1 AS cor0
----
1178
216
778
query I rowsort
SELECT ALL - col2 + col2 AS col1 FROM tab1 cor0
----
0
0
0
query I rowsort
SELECT ALL + - col1 + + col1 * + 89 AS col1 FROM tab0 AS cor0
----
7568
8008
8536
query I rowsort
SELECT DISTINCT - col1 + - cor0.col1 + + 95 AS col0 FROM tab2 cor0
----
-23
33
61
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 90 col0 FROM tab0
----
-90
-90
-90
query I rowsort
SELECT - + ( col2 ) + - 17 FROM tab1 AS cor0
----
-113
-71
-74
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-734
SELECT CAST( NULL AS SIGNED ) * - cor0.col1 FROM tab0, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-734
SELECT CAST ( NULL AS INTEGER ) * - cor0.col1 FROM tab0, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 89 col0 FROM tab2 AS cor0
----
-89
-89
-89
query I rowsort
SELECT 23 AS col2 FROM tab2 AS cor0
----
23
23
23
skipif mysql # not compatible
query I rowsort
SELECT - - cor0.col2 * - CAST ( 33 AS REAL ) FROM tab1 cor0
----
-1782
-1881
-3168
query I rowsort
SELECT - + col0 * 73 FROM tab1 cor0
----
-219
-4672
-5840
query I rowsort
SELECT ALL + col1 * - col0 * - col2 FROM tab0
----
3395
664118
68112
query I rowsort
SELECT ALL 79 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 4857f2e1b1dbd184de4827f145dd02a1
query I rowsort
SELECT - col2 + col1 * - tab1.col1 * tab1.col2 AS col2 FROM tab1
----
-16320
-36558
-5757
query I rowsort
SELECT ALL 5 + - 36 * + col0 * col0 FROM tab0 AS cor0
----
-20731
-285151
-44095
query I rowsort
SELECT 17 + - col2 AS col2 FROM tab2 AS cor0
----
-10
-21
-9
query I rowsort
SELECT ALL 8 * col2 AS col0 FROM tab0 AS cor0
----
264
656
8
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-745
SELECT - + CAST( 28 AS SIGNED ) - + col2 AS col0 FROM tab2 AS cor0
----
-54
-55
-66
skipif mysql # not compatible
query I rowsort label-745
SELECT - + CAST ( 28 AS INTEGER ) - + col2 AS col0 FROM tab2 AS cor0
----
-54
-55
-66
query I rowsort
SELECT + + 69 * col0 + col0 AS col2 FROM tab0 AS cor0
----
1680
2450
6230
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + CAST ( 92 AS REAL ) * col1 + + 66 * 65 * col1 - - col0 / col1 FROM tab2 AS cor0
----
135842
258539
74498
query I rowsort
SELECT - 62 - + 64 FROM tab0 AS cor0
----
-126
-126
-126
query I rowsort
SELECT + ( col2 ) + col2 * + col1 FROM tab0 AS cor0
----
2871
7544
98
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( col2 ) - cor0.col2 col2 FROM tab0 AS cor0
----
0
query I rowsort
SELECT + ( - col2 ) * col1 - + 83 * 51 AS col2 FROM tab0 AS cor0
----
-11695
-4330
-7071
query I rowsort
SELECT ALL + col0 + - col0 * col0 AS col2 FROM tab2 cor0
----
-42
-6006
-6162
query I rowsort
SELECT ALL cor0.col0 + 27 AS col0 FROM tab2 AS cor0
----
105
106
34
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-754
SELECT DISTINCT + CAST( NULL AS SIGNED ) + - cor0.col1 * - col0 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-754
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + - cor0.col1 * - col0 FROM tab2 AS cor0
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-755
SELECT 97 DIV col2 FROM tab0 AS cor0
----
1
2
97
skipif mysql # not compatible
query I rowsort label-755
SELECT 97 / col2 FROM tab0 AS cor0
----
1
2
97
query I rowsort
SELECT ( + col1 ) * + col0 AS col2 FROM tab0
----
2064
3395
8099
query I rowsort
SELECT DISTINCT + - 56 * - col2 FROM tab1 AS cor0
----
3024
3192
5376
onlyif mysql # use DIV operator for integer division
query I rowsort label-758
SELECT ALL - col1 DIV - 81 AS col0 FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-758
SELECT ALL - col1 / - 81 AS col0 FROM tab2 AS cor0
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-759
SELECT + CAST( NULL AS SIGNED ) * + col0 - col1 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-759
SELECT + CAST ( NULL AS INTEGER ) * + col0 - col1 col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-760
SELECT 18 DIV - tab1.col1 FROM tab1
----
-1
-1
0
skipif mysql # not compatible
query I rowsort label-760
SELECT 18 / - tab1.col1 FROM tab1
----
-1
-1
0
query I rowsort
SELECT cor0.col0 * - 6 FROM tab2 AS cor0
----
-42
-468
-474
query I rowsort
SELECT + col2 * + ( 31 + - col1 ) AS col0 FROM tab0 AS cor0
----
-1815
-4920
-66
query I rowsort
SELECT - col1 * - col2 * ( - col1 ) AS col0 FROM tab2 AS cor0
----
-10982
-25947
-90506
query I rowsort
SELECT ALL + col0 * col1 * - col0 AS col2 FROM tab2
----
-106097
-1519
-358956
query I rowsort
SELECT ALL + + 48 FROM tab0 AS cor0
----
48
48
48
query I rowsort
SELECT ALL col1 * ( col1 + col0 ) AS col2 FROM tab1
----
1209
740
754
query I rowsort
SELECT ALL + 9 AS col1 FROM tab2, tab1 AS cor0 CROSS JOIN tab0, tab1 AS cor1
----
81 values hashing to b7e6b25481699c3a4ee7381c7eae0817
onlyif mysql # use DIV operator for integer division
query I rowsort label-768
SELECT DISTINCT + 79 DIV col1 AS col1 FROM tab0
----
0
skipif mysql # not compatible
query I rowsort label-768
SELECT DISTINCT + 79 / col1 AS col1 FROM tab0
----
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + col2 ) * + tab1.col2 col2 FROM tab1
----
2916
3249
9216
query I rowsort
SELECT DISTINCT 70 FROM tab2, tab0, tab2 AS cor0
----
70
query I rowsort
SELECT + 33 * - col1 + - 26 AS col2 FROM tab2 AS cor0
----
-1049
-1973
-587
onlyif mysql # use DIV operator for integer division
query I rowsort label-772
SELECT cor0.col2 DIV - col1 AS col1 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-772
SELECT cor0.col2 / - col1 AS col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT - cor0.col1 * - col2 + + col0 FROM tab1 cor0
----
1328
1407
634
onlyif mysql # use DIV operator for integer division
query I rowsort label-774
SELECT DISTINCT + - col2 * col2 - - col2 DIV - col0 AS col0 FROM tab1 cor0
----
-2934
-3249
-9217
skipif mysql # not compatible
query I rowsort label-774
SELECT DISTINCT + - col2 * col2 - - col2 / - col0 AS col0 FROM tab1 cor0
----
-2934
-3249
-9217
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + col1 col1 FROM tab0 AS cor0
----
53
9
96
query I rowsort
SELECT ALL col0 + - col2 * col1 + + col2 AS col0 FROM tab1 AS cor0
----
-1072
-1347
-449
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * + col1 + col1 col1 FROM tab0 cor0
----
7482
8372
9506
query I rowsort
SELECT + col1 * + 71 FROM tab1 AS cor0
----
1846
710
923
onlyif mysql # use DIV operator for integer division
query I rowsort label-779
SELECT ALL ( + 70 ) - + tab0.col0 DIV tab0.col0 AS col0 FROM tab0
----
69
69
69
skipif mysql # not compatible
query I rowsort label-779
SELECT ALL ( + 70 ) - + tab0.col0 / tab0.col0 AS col0 FROM tab0
----
69
69
69
query I rowsort
SELECT - - ( cor0.col2 ) * + cor0.col1 FROM tab0 AS cor0
----
2838
7462
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + cor0.col1 ) - col2 col1 FROM tab1 AS cor0
----
-28
-47
-83
query I rowsort
SELECT col2 * - col1 + - cor0.col2 FROM tab2 AS cor0
----
-1560
-684
-864
query I rowsort
SELECT ALL 12 * - col0 FROM tab0 AS cor0
----
-1068
-288
-420
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col2 * col2 + col1 col1 FROM tab0 AS cor0
----
-1003
-6633
96
query I rowsort
SELECT ALL + + 54 - + col0 FROM tab0 cor0
----
-35
19
30
query I rowsort
SELECT DISTINCT + 47 * col1 + + col1 + col1 * col0 * cor0.col2 FROM tab0 AS cor0
----
668486
72240
8051
query I rowsort
SELECT DISTINCT - 61 * + col2 AS col0 FROM tab2 AS cor0
----
-1586
-1647
-2318
query I rowsort
SELECT ALL + cor0.col0 * - col1 - + col2 * - col2 AS col2 FROM tab0 cor0
----
-1375
-3394
-975
query I rowsort
SELECT + - 13 * + col1 FROM tab2 AS cor0
----
-221
-403
-767
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + ( + col2 ) + - cor0.col0 col0 FROM tab0 AS cor0
----
-171
-36
-57
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-791
SELECT ALL + CAST( NULL AS SIGNED ) * col0 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-791
SELECT ALL + CAST ( NULL AS INTEGER ) * col0 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - ( + ( - col0 ) ) AS col2 FROM tab2
----
7
78
79
query I rowsort
SELECT - + col0 * col1 + + cor0.col0 * + 75 + + cor0.col1 * - col1 AS col1 FROM tab2 AS cor0
----
-2233
-653
4293
query I rowsort
SELECT DISTINCT - + ( - 33 ) FROM tab0 AS cor0
----
33
query I rowsort
SELECT 30 + + ( - col1 ) FROM tab2 AS cor0
----
-1
-29
13
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-796
SELECT + + CAST( col0 AS SIGNED ) col1 FROM tab0 AS cor0
----
24
35
89
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-796
SELECT + + CAST ( col0 AS INTEGER ) col1 FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT DISTINCT - col1 + + col2 + - col1 FROM tab0
----
-100
-139
-193
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * 81 + 72 + tab1.col2 col0 FROM tab1
----
4500
4746
7944
query I rowsort
SELECT DISTINCT - 98 FROM tab1, tab1 AS cor0
----
-98
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 99 col0 FROM tab1
----
99
query I rowsort
SELECT 29 AS col2 FROM tab2, tab2 cor0
----
9 values hashing to 1e7120ba8e9191084172ddced17e5eb2
query I rowsort
SELECT + col1 + ( - tab2.col0 ) FROM tab2
----
-19
-62
24
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-803
SELECT - CAST( NULL AS DECIMAL ) + - 74 * + col1 AS col1 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-803
SELECT - CAST ( NULL AS REAL ) + - 74 * + col1 AS col1 FROM tab2
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( - col0 + tab0.col1 ) * col2 col0 FROM tab0
----
-164
-2046
-62
query I rowsort
SELECT - 25 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 40ac8fd000b2e49317aed2411077839e
query I rowsort
SELECT DISTINCT col2 - - col2 * - col2 AS col0 FROM tab0
----
-1056
-6642
0
query I rowsort
SELECT col1 + + col0 + + col2 AS col1 FROM tab2 AS cor0
----
134
163
65
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab1.col1 - - col2 * - col0 col0 FROM tab1
----
-136
-3638
-7667
query I rowsort
SELECT - col1 + col2 * col1 + - 49 FROM tab2 AS cor0
----
1426
580
757
query I rowsort
SELECT cor0.col2 + col1 + - col2 * cor0.col0 FROM tab1 AS cor0
----
-3581
-7571
-82
query I rowsort
SELECT - 85 + col0 * + col1 AS col0 FROM tab0
----
1979
3310
8014
query I rowsort
SELECT - 57 + col0 + col1 * 3 * col0 AS col2 FROM tab0
----
10163
24329
6159
onlyif mysql # use DIV operator for integer division
query I rowsort label-813
SELECT ALL 15 DIV - col1 - + 97 AS col0 FROM tab1
----
-97
-98
-98
skipif mysql # not compatible
query I rowsort label-813
SELECT ALL 15 / - col1 - + 97 AS col0 FROM tab1
----
-97
-98
-98
query I rowsort
SELECT col2 * + col1 + + ( col0 ) * cor0.col0 + + col0 AS col1 FROM tab2 AS cor0
----
6966
7696
893
query I rowsort
SELECT + 79 + 87 FROM tab1, tab1 AS cor0
----
9 values hashing to f26d9cba257d13697147f4af3021a3bb
query I rowsort
SELECT ALL 87 FROM tab0, tab0 cor0
----
9 values hashing to fa0cdd86483844cda3bb806e032d5c64
query I rowsort
SELECT + col1 * col2 + + 41 * + col1 FROM tab2 AS cor0
----
1343
2108
3953
query I rowsort
SELECT ALL - + col0 + col1 * col2 AS col1 FROM tab1 AS cor0
----
1168
1401
506
query I rowsort
SELECT ALL col0 + col0 + 15 FROM tab2 AS cor0
----
171
173
29
onlyif mysql # use DIV operator for integer division
query I rowsort label-820
SELECT DISTINCT col0 DIV ( - col1 ) col2 FROM tab0 AS cor0
----
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-820
SELECT DISTINCT col0 / ( - col1 ) col2 FROM tab0 AS cor0
----
0
query I rowsort
SELECT - - col2 + + ( - cor0.col2 * - col1 ) FROM tab1 cor0
----
1344
1458
627
query I rowsort
SELECT - col0 * + col1 + - cor0.col1 + - col0 FROM tab1 AS cor0
----
-107
-1133
-714
query I rowsort
SELECT DISTINCT col1 * - 56 FROM tab2 AS cor0
----
-1736
-3304
-952
query I rowsort
SELECT - col0 - + cor0.col0 AS col1 FROM tab1 AS cor0
----
-128
-160
-6
query I rowsort
SELECT DISTINCT + col0 + + col1 + col0 * - col0 FROM tab0 AS cor0
----
-1093
-466
-7741
query I rowsort
SELECT - col1 + ( col2 + col0 ) FROM tab1 AS cor0
----
111
163
31
query I rowsort
SELECT + col0 * col1 + - col0 AS col2 FROM tab2 AS cor0
----
1264
210
4524
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * - 15 + ( - col0 * + col0 ) col2 FROM tab2 cor0
----
-5671
-5694
356
query I rowsort
SELECT cor0.col1 * + ( cor0.col0 ) * 5 FROM tab1, tab0 AS cor0
----
9 values hashing to 99a5ad12679d1bdf9f6ae7824e94be21
query I rowsort
SELECT tab0.col1 * ( - 77 * - col1 + col0 ) FROM tab0
----
571556
645736
727888
query I rowsort
SELECT + col0 * - 93 AS col2 FROM tab1
----
-279
-5952
-7440
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-832
SELECT col0 + CAST( NULL AS SIGNED ) * 10 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-832
SELECT col0 + CAST ( NULL AS INTEGER ) * 10 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query IIIIIIIIIIII rowsort
SELECT * FROM tab0, tab1 AS cor0, tab0 cor1, tab2 cor2
----
972 values hashing to a9068b700464993db9fae6f630605fde
onlyif mysql # use DIV operator for integer division
query I rowsort label-834
SELECT DISTINCT col2 + ( - col0 ) * col0 + ( col2 ) DIV - cor0.col0 AS col1 FROM tab0 AS cor0
----
-1224
-544
-7839
skipif mysql # not compatible
query I rowsort label-834
SELECT DISTINCT col2 + ( - col0 ) * col0 + ( col2 ) / - cor0.col0 AS col1 FROM tab0 AS cor0
----
-1224
-544
-7839
query I rowsort
SELECT DISTINCT + + col2 * + 95 - col0 AS col1 FROM tab2 cor0
----
2392
2558
3531
query I rowsort
SELECT ALL + cor0.col1 * - 81 FROM tab1 AS cor0
----
-1053
-2106
-810
query I rowsort
SELECT DISTINCT col0 * - col2 AS col0 FROM tab0 cor0
----
-35
-7298
-792
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-838
SELECT ALL + col2 * 3 + cor0.col2 + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-838
SELECT ALL + col2 * 3 + cor0.col2 + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - cor0.col1 + - col1 AS col2 FROM tab1 AS cor0
----
-20
-26
-52
query I rowsort
SELECT + col1 * + 63 + - col0 FROM tab0 AS cor0
----
5394
5644
6076
query I rowsort
SELECT ALL - + col0 - - col0 AS col0 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT ALL + - col2 * + cor0.col0 * - col2 + + col0 FROM tab1 AS cor0
----
208000
737360
8751
query I rowsort
SELECT + 75 * + col0 AS col0 FROM tab2 AS cor0
----
525
5850
5925
query I rowsort
SELECT ALL - - col2 + col1 * 39 FROM tab1 AS cor0
----
1068
447
603
query I rowsort
SELECT - ( col1 ) * col2 + - 90 FROM tab1 cor0
----
-1338
-1494
-660
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-846
SELECT ALL + col0 + + cor0.col1 * CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-846
SELECT ALL + col0 + + cor0.col1 * CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - ( - col1 ) - col2 FROM tab0 cor0
----
53
9
96
query I rowsort
SELECT DISTINCT - - col1 + cor0.col1 FROM tab0 AS cor0
----
172
182
194
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * + cor0.col1 col2 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT col2 - 79 AS col0 FROM tab2 AS cor0
----
-41
-52
-53
query I rowsort
SELECT - ( tab1.col0 ) + - col2 * + 69 FROM tab1
----
-3729
-3997
-6704
query I rowsort
SELECT col0 + col0 * - col2 FROM tab0
----
-7209
-768
0
query I rowsort
SELECT DISTINCT + - 77 AS col2 FROM tab2, tab0, tab1 AS cor0
----
-77
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - cor0.col2 * col0 col0 FROM tab2 AS cor0
----
189
2028
3002
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-855
SELECT col1 * CAST( NULL AS SIGNED ) / 51 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-855
SELECT col1 * CAST ( NULL AS INTEGER ) / 51 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - col0 + 86 * col2 AS col2 FROM tab1 AS cor0
----
4641
4838
8176
onlyif mysql # use DIV operator for integer division
query I rowsort label-857
SELECT - + col2 DIV 4 AS col0 FROM tab2 AS cor0
----
-6
-6
-9
skipif mysql # not compatible
query I rowsort label-857
SELECT - + col2 / 4 AS col0 FROM tab2 AS cor0
----
-6
-6
-9
onlyif mysql # use DIV operator for integer division
query I rowsort label-858
SELECT ALL - col2 + col0 DIV col1 AS col2 FROM tab2 AS cor0
----
-25
-27
-34
skipif mysql # not compatible
query I rowsort label-858
SELECT ALL - col2 + col0 / col1 AS col2 FROM tab2 AS cor0
----
-25
-27
-34
query I rowsort
SELECT DISTINCT + cor0.col0 + + ( 39 ) FROM tab2 AS cor0
----
117
118
46
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-860
SELECT ALL + + col0 + + 35 - ( col1 + - CAST( col1 AS SIGNED ) ) * col0 * + ( col1 + col0 ) FROM tab0 AS cor0
----
124
59
70
skipif mysql # not compatible
query I rowsort label-860
SELECT ALL + + col0 + + 35 - ( col1 + - CAST ( col1 AS INTEGER ) ) * col0 * + ( col1 + col0 ) FROM tab0 AS cor0
----
124
59
70
query I rowsort
SELECT DISTINCT - + col2 * - col2 + col1 FROM tab1 AS cor0
----
2942
3259
9229
query I rowsort
SELECT - col0 + + ( cor0.col1 ) FROM tab2 AS cor0
----
-19
-62
24
query I rowsort
SELECT col0 * col1 + col0 * - col2 * col1 FROM tab0 AS cor0
----
-656019
-66048
0
query I rowsort
SELECT + + ( 8 ) * + col2 AS col0 FROM tab1 AS cor0
----
432
456
768
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 + + col1 col2 FROM tab0 AS cor0
----
172
182
194
query I rowsort
SELECT ALL + col2 * - col2 + col2 FROM tab0
----
-1056
-6642
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-867
SELECT - col0 * CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-867
SELECT - col0 * CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-868
SELECT - CAST( - ( + col0 ) AS SIGNED ) * ( - col1 ) * col2 AS col2 FROM tab1 AS cor0
----
-36480
-4212
-99840
skipif mysql # not compatible
query I rowsort label-868
SELECT - CAST ( - ( + col0 ) AS INTEGER ) * ( - col1 ) * col2 AS col2 FROM tab1 AS cor0
----
-36480
-4212
-99840
query I rowsort
SELECT + col2 - 6 AS col1 FROM tab0 AS cor0
----
-5
27
76
query I rowsort
SELECT + - 71 * col0 FROM tab0 cor0
----
-1704
-2485
-6319
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-871
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col1 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
NULL
skipif mysql # not compatible
query I rowsort label-871
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col1 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
NULL
query I rowsort
SELECT col1 * cor0.col1 + + col2 AS col1 FROM tab2 AS cor0
----
327
3507
988
query I rowsort
SELECT DISTINCT - 47 FROM tab2, tab1 cor0 CROSS JOIN tab1
----
-47
query I rowsort
SELECT ( col2 ) * tab0.col0 AS col1 FROM tab0
----
35
7298
792
onlyif mysql # use DIV operator for integer division
query I rowsort label-875
SELECT ALL cor0.col1 DIV col1 col1 FROM tab2 AS cor0
----
1
1
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-875
SELECT ALL cor0.col1 / col1 col1 FROM tab2 AS cor0
----
1
1
1
query I rowsort
SELECT - 13 + - cor0.col1 FROM tab0 AS cor0
----
-104
-110
-99
query I rowsort
SELECT DISTINCT 99 + cor0.col0 FROM tab0 AS cor0
----
123
134
188
onlyif mysql # use DIV operator for integer division
query I rowsort label-878
SELECT - col0 + col1 DIV 33 + col0 FROM tab2 AS cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-878
SELECT - col0 + col1 / 33 + col0 FROM tab2 AS cor0
----
0
0
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 25 col0 FROM tab0 AS cor0
----
25
query I rowsort
SELECT ALL col0 * col0 - cor0.col2 * + ( - col0 ) * 78 AS col2 FROM tab0 AS cor0
----
3955
577165
62352
query I rowsort
SELECT DISTINCT + cor0.col0 * + col1 AS col0 FROM tab0 AS cor0
----
2064
3395
8099
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 27 + + col0 + col0 col2 FROM tab0 AS cor0
----
205
75
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-883
SELECT DISTINCT + col2 * col2 DIV 80 + col2 AS col0 FROM tab2 cor0
----
34
36
56
skipif mysql # not compatible
query I rowsort label-883
SELECT DISTINCT + col2 * col2 / 80 + col2 AS col0 FROM tab2 cor0
----
34
36
56
query I rowsort
SELECT DISTINCT - 85 - col2 AS col0 FROM tab1 AS cor0
----
-139
-142
-181
query I rowsort
SELECT col1 * 6 AS col2 FROM tab0
----
516
546
582
query I rowsort
SELECT ALL + 97 AS col2 FROM tab2 cor0
----
97
97
97
query I rowsort
SELECT DISTINCT - 11 + + cor0.col1 * col1 FROM tab2 AS cor0
----
278
3470
950
query I rowsort
SELECT - 50 * + 26 FROM tab0
----
-1300
-1300
-1300
query I rowsort
SELECT DISTINCT col0 * 53 * tab2.col0 FROM tab2
----
2597
322452
330773
onlyif mysql # use DIV operator for integer division
query I rowsort label-890
SELECT ALL ( - col1 ) DIV - col1 FROM tab1
----
1
1
1
skipif mysql # not compatible
query I rowsort label-890
SELECT ALL ( - col1 ) / - col1 FROM tab1
----
1
1
1
query I rowsort
SELECT - 26 * + col2 FROM tab1 AS cor0
----
-1404
-1482
-2496
query I rowsort
SELECT - col1 * + col0 + col0 * + col0 * + col1 - col2 AS col0 FROM tab0
----
115429
47439
712630
query I rowsort
SELECT ALL col0 + col0 * 96 FROM tab0
----
2328
3395
8633
query I rowsort
SELECT ALL + col2 * + col2 AS col0 FROM tab2
----
1444
676
729
query I rowsort
SELECT DISTINCT - - ( col2 ) * - col0 FROM tab2 cor0
----
-189
-2028
-3002
query I rowsort
SELECT 5 * - ( + col2 + col0 ) * - col1 AS col1 FROM tab1 AS cor0
----
11440
6050
7410
query I rowsort
SELECT - col2 + 90 * + col0 FROM tab1
----
216
5703
7104
query I rowsort
SELECT - col0 + 42 FROM tab1 AS cor0
----
-22
-38
39
query I rowsort
SELECT ALL + + 27 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 701bf12d86392cb1585d9e4f3c72e9a8
query I rowsort
SELECT 27 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2, tab0 cor1, tab2 AS cor2
----
81 values hashing to 092918b9163061e291041d594b1a402a
query I rowsort
SELECT - + col0 * col2 - col2 FROM tab2 AS cor0
----
-2054
-216
-3040
query I rowsort
SELECT DISTINCT - cor0.col1 + col2 * col0 FROM tab2 AS cor0
----
158
1969
2985
onlyif mysql # use DIV operator for integer division
query I rowsort label-903
SELECT DISTINCT + cor0.col2 DIV + 1 FROM tab2 AS cor0
----
26
27
38
skipif mysql # not compatible
query I rowsort label-903
SELECT DISTINCT + cor0.col2 / + 1 FROM tab2 AS cor0
----
26
27
38
query I rowsort
SELECT - cor0.col1 * + ( col0 * - 79 ) - + col0 FROM tab1 AS cor0
----
50496
6159
82080
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( - 84 ) col2 FROM tab0 AS cor0
----
84
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-906
SELECT DISTINCT CAST( 49 AS SIGNED ) * - col2 FROM tab0 AS cor0
----
-1617
-4018
-49
skipif mysql # not compatible
query I rowsort label-906
SELECT DISTINCT CAST ( 49 AS INTEGER ) * - col2 FROM tab0 AS cor0
----
-1617
-4018
-49
query I rowsort
SELECT ALL - col2 * + col0 * col0 + 89 * col2 AS col2 FROM tab0 AS cor0
----
-1136
-16071
-642224
onlyif mysql # use DIV operator for integer division
query I rowsort label-908
SELECT ALL + col2 + - cor0.col1 DIV col0 AS col1 FROM tab1 AS cor0
----
46
57
96
skipif mysql # not compatible
query I rowsort label-908
SELECT ALL + col2 + - cor0.col1 / col0 AS col1 FROM tab1 AS cor0
----
46
57
96
query I rowsort
SELECT DISTINCT + col1 * - cor0.col0 - col2 FROM tab2 AS cor0
----
-1381
-244
-4628
query I rowsort
SELECT - cor0.col0 * col1 + col0 FROM tab1 AS cor0
----
-576
-75
-960
query I rowsort
SELECT - - cor0.col2 - col0 * col0 AS col2 FROM tab1 AS cor0
----
-4039
-6304
45
onlyif mysql # use DIV operator for integer division
query I rowsort label-912
SELECT ALL - col2 DIV - ( - 80 * col0 ) col1 FROM tab1 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-912
SELECT ALL - col2 / - ( - 80 * col0 ) col1 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT - col2 * - 61 + + col1 FROM tab2 cor0
----
1645
1678
2335
query I rowsort
SELECT + + col0 * col1 + - col0 FROM tab1 AS cor0
----
576
75
960
query I rowsort
SELECT DISTINCT col1 * - 51 - ( + col2 ) * + col0 AS col2 FROM tab1 AS cor0
----
-1488
-4158
-8343
query I rowsort
SELECT ALL col0 * + col0 - cor0.col1 FROM tab0 AS cor0
----
1128
490
7830
query I rowsort
SELECT col2 - - ( - col2 ) FROM tab2 cor0
----
0
0
0
query I rowsort
SELECT ALL - + col2 + - 43 AS col0 FROM tab1 AS cor0
----
-100
-139
-97
query I rowsort
SELECT DISTINCT - - col0 + + 9 + col2 AS col2 FROM tab0 AS cor0
----
180
45
66
query I rowsort
SELECT + cor0.col2 - + col1 * - 1 FROM tab2 cor0
----
55
58
85
query I rowsort
SELECT ALL ( - col0 ) * - col1 FROM tab1 cor0
----
1040
640
78
query I rowsort
SELECT ALL + ( 84 ) FROM tab1 AS cor0
----
84
84
84
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab2, tab0 AS cor1, tab0 AS cor2, tab1 AS cor3
----
3645 values hashing to ea1a922b7fccb9d184b31eb4689e063b
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1, tab2 AS cor1, tab0 AS cor2, tab1 AS cor3
----
3645 values hashing to 8bda8b9cf32f196464e0ee0b41a5162d
query I rowsort
SELECT - tab2.col0 + - 10 + col0 FROM tab2
----
-10
-10
-10
query I rowsort
SELECT ALL tab1.col0 + 65 * - ( - col1 ) FROM tab1
----
1693
714
925
query I rowsort
SELECT ALL - + ( col1 ) * - ( col0 ) - + cor0.col2 AS col0 FROM tab1 cor0
----
24
583
944
query I rowsort
SELECT ALL 99 FROM tab2, tab1 AS cor0, tab2 AS cor1, tab2 AS cor2
----
81 values hashing to c841a8d826151b422ecdb71db0250739
query I rowsort
SELECT ALL + 87 + col0 FROM tab1 cor0
----
151
167
90
query I rowsort
SELECT DISTINCT - col2 * - cor0.col1 * ( col0 ) + col2 AS col1 FROM tab1 AS cor0
----
36537
4266
99936
query I rowsort
SELECT ALL ( col1 ) * 27 - col1 FROM tab0 AS cor0
----
2236
2366
2522
query I rowsort
SELECT DISTINCT + 80 AS col0 FROM tab0 AS cor0
----
80
query I rowsort
SELECT + + 56 * + col2 AS col0 FROM tab0 AS cor0
----
1848
4592
56
query I rowsort
SELECT ALL + 14 - + tab1.col0 FROM tab1
----
-50
-66
11
query I rowsort
SELECT ALL col0 - col2 * col0 FROM tab1
----
-159
-3584
-7600
query I rowsort
SELECT ALL 93 * tab2.col1 - + 35 * + 48 AS col0 FROM tab2
----
-99
1203
3807
query I rowsort
SELECT - tab1.col1 * - tab1.col2 + - 78 * + col2 + col2 * + col2 * col0 AS col1 FROM tab1
----
204060
5940
731040
query I rowsort
SELECT - tab0.col0 FROM tab0, tab1, tab2 cor0
----
27 values hashing to c3ebf1695ca74567bdc173dbe15186a8
query I rowsort
SELECT ALL - 62 * tab0.col2 FROM tab0
----
-2046
-5084
-62
query I rowsort
SELECT ALL 93 * cor0.col0 FROM tab2 AS cor0
----
651
7254
7347
query I rowsort
SELECT - 0 FROM tab1, tab2 cor0, tab1 AS cor1
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2
query I rowsort
SELECT + col1 * ( col0 ) AS col0 FROM tab0 cor0
----
2064
3395
8099
query I rowsort
SELECT - col2 * - cor0.col2 * - col2 FROM tab2 AS cor0
----
-17576
-19683
-54872
onlyif mysql # use DIV operator for integer division
query I rowsort label-944
SELECT DISTINCT + tab0.col2 DIV 35 col2 FROM tab0, tab1, tab2 AS cor0
----
0
2
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-944
SELECT DISTINCT + tab0.col2 / 35 col2 FROM tab0, tab1, tab2 AS cor0
----
0
2
query I rowsort
SELECT DISTINCT + col2 * + ( - col0 ) + tab2.col1 * + ( 36 ) * col1 FROM tab2
----
123288
34407
7402
query I rowsort
SELECT tab0.col2 * - 83 FROM tab0
----
-2739
-6806
-83
query I rowsort
SELECT - ( - 13 ) FROM tab0, tab2 AS cor0
----
9 values hashing to 184e52d7aa5aa66591291e39c67a3dfb
query I rowsort
SELECT DISTINCT 76 AS col1 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
76
query I rowsort
SELECT - col0 * 44 AS col1 FROM tab0 cor0
----
-1056
-1540
-3916
onlyif mysql # use DIV operator for integer division
query I rowsort label-950
SELECT - col2 DIV - 96 FROM tab1 AS cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-950
SELECT - col2 / - 96 FROM tab1 AS cor0
----
0
0
1
query I rowsort
SELECT - col0 + ( col0 ) - - col1 AS col1 FROM tab0 cor0
----
86
91
97
query I rowsort
SELECT DISTINCT - col1 * 63 FROM tab2 cor0
----
-1071
-1953
-3717
query I rowsort
SELECT 21 * tab0.col1 AS col2 FROM tab0
----
1806
1911
2037
query I rowsort
SELECT + 53 AS col1 FROM tab1, tab2 cor0
----
9 values hashing to fede6033dee346dbd272085c05724fda
onlyif mysql # use DIV operator for integer division
query I rowsort label-955
SELECT 96 DIV cor0.col2 FROM tab0 AS cor0
----
1
2
96
skipif mysql # not compatible
query I rowsort label-955
SELECT 96 / cor0.col2 FROM tab0 AS cor0
----
1
2
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + cor0.col2 col2 FROM tab2 cor0
----
-26
-27
-38
query I rowsort
SELECT ALL + 19 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 3dac30dc82c9e5acbbd3a5c5d1aeee11
query I rowsort
SELECT DISTINCT - + cor0.col1 * - col2 AS col1 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT col1 + + cor0.col2 * + col0 AS col1 FROM tab0 AS cor0
----
132
7389
878
query I rowsort
SELECT ALL + col0 + col0 * - ( - col0 ) FROM tab2 cor0
----
56
6162
6320
query I rowsort
SELECT DISTINCT col2 * 68 AS col1 FROM tab0
----
2244
5576
68
onlyif mysql # use DIV operator for integer division
query I rowsort label-962
SELECT ALL + + col2 DIV - col2 FROM tab1 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-962
SELECT ALL + + col2 / - col2 FROM tab1 AS cor0
----
-1
-1
-1
onlyif mysql # use DIV operator for integer division
query I rowsort label-963
SELECT ALL + tab1.col1 * - col2 DIV - col2 FROM tab1
----
10
13
26
skipif mysql # not compatible
query I rowsort label-963
SELECT ALL + tab1.col1 * - col2 / - col2 FROM tab1
----
10
13
26
query I rowsort
SELECT DISTINCT - 62 AS col0 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
-62
query I rowsort
SELECT - col2 * ( + 16 ) AS col0 FROM tab1
----
-1536
-864
-912
query I rowsort
SELECT ALL col0 - - 28 FROM tab1
----
108
31
92
onlyif mysql # use DIV operator for integer division
query I rowsort label-967
SELECT col0 DIV 47 FROM tab2 AS cor0
----
0
1
1
skipif mysql # not compatible
query I rowsort label-967
SELECT col0 / 47 FROM tab2 AS cor0
----
0
1
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-968
SELECT - col1 * + col1 DIV - col1 AS col1 FROM tab1 AS cor0
----
10
13
26
skipif mysql # not compatible
query I rowsort label-968
SELECT - col1 * + col1 / - col1 AS col1 FROM tab1 AS cor0
----
10
13
26
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-969
SELECT ALL + CAST( col0 AS SIGNED ) + - col1 AS col1 FROM tab2 AS cor0
----
-24
19
62
skipif mysql # not compatible
query I rowsort label-969
SELECT ALL + CAST ( col0 AS INTEGER ) + - col1 AS col1 FROM tab2 AS cor0
----
-24
19
62
query I rowsort
SELECT DISTINCT + cor0.col2 + + col1 * + col1 FROM tab1 cor0
----
157
265
730
query I rowsort
SELECT - - 62 AS col0 FROM tab2 cor0
----
62
62
62
query I rowsort
SELECT + cor0.col2 * 7 + col1 FROM tab2 AS cor0
----
220
241
283
query I rowsort
SELECT ALL - 0 * 85 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT + col1 * 37 + + col0 FROM tab1 AS cor0
----
434
561
965
onlyif mysql # use DIV operator for integer division
query I rowsort label-975
SELECT - col0 * ( - col1 ) DIV - 30 + col1 * + col0 AS col0 FROM tab2 AS cor0
----
1299
210
4449
skipif mysql # not compatible
query I rowsort label-975
SELECT - col0 * ( - col1 ) / - 30 + col1 * + col0 AS col0 FROM tab2 AS cor0
----
1299
210
4449
query I rowsort
SELECT - 64 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 601ec439a72fb4786a9cb7a6547ace5e
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col0 * col2 + + col0 col1 FROM tab0 AS cor0
----
70
7387
816
query I rowsort
SELECT - + 92 * col1 FROM tab1 AS cor0
----
-1196
-2392
-920
query I rowsort
SELECT - + cor0.col0 * - cor0.col1 AS col0 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT DISTINCT + + 5 + cor0.col2 AS col1 FROM tab1, tab2 cor0
----
31
32
43
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-981
SELECT ALL + col0 + 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-981
SELECT ALL + col0 + CAST ( NULL AS INTEGER ) col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL col0 - - 18 FROM tab1 AS cor0
----
21
82
98
query I rowsort
SELECT DISTINCT col1 * - 69 + col2 AS col0 FROM tab0 AS cor0
----
-5901
-6197
-6692
onlyif mysql # use DIV operator for integer division
query I rowsort label-984
SELECT - col2 DIV - ( col2 ) FROM tab0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-984
SELECT - col2 / - ( col2 ) FROM tab0
----
1
1
1
query I rowsort
SELECT - cor0.col2 + - ( + col2 ) * col2 AS col1 FROM tab0 AS cor0
----
-1122
-2
-6806
query I rowsort
SELECT ALL - col2 * + 25 FROM tab2 AS cor0
----
-650
-675
-950
query I rowsort
SELECT + col2 * - cor0.col1 * + cor0.col2 FROM tab1 AS cor0
----
-119808
-32490
-75816
onlyif mysql # use DIV operator for integer division
query I rowsort label-988
SELECT ALL - col0 DIV - 94 AS col2 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-988
SELECT ALL - col0 / - 94 AS col2 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT + + cor0.col2 + col0 * - cor0.col1 * + col0 FROM tab0 AS cor0
----
-118824
-49503
-720729
query I rowsort
SELECT DISTINCT - col0 * + 68 AS col1 FROM tab0 AS cor0
----
-1632
-2380
-6052
query I rowsort
SELECT cor0.col1 * ( col1 ) FROM tab2 AS cor0
----
289
3481
961
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-992
SELECT DISTINCT - col2 / col0 + + col1 * + CAST( NULL AS SIGNED ) / ( + col1 ) AS col2 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-992
SELECT DISTINCT - col2 / col0 + + col1 * + CAST ( NULL AS INTEGER ) / ( + col1 ) AS col2 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT - cor2.col1 FROM tab2, tab1 AS cor0, tab1 AS cor1, tab0, tab0 AS cor2
----
-86
-91
-97
query I rowsort
SELECT + 63 * col2 + + col0 FROM tab1 AS cor0
----
3405
3655
6128
query I rowsort
SELECT ALL - 66 + col0 * - col2 FROM tab0 cor0
----
-101
-7364
-858
query I rowsort
SELECT - col2 + ( col1 ) + + tab0.col1 FROM tab0
----
100
139
193
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + + 82 * 62 - col1 col1 FROM tab1
----
5112
5131
5167
query I rowsort
SELECT ALL 67 * + col2 FROM tab0 AS cor0
----
2211
5494
67
query I rowsort
SELECT DISTINCT - 98 FROM tab0, tab0 AS cor0
----
-98
query I rowsort
SELECT + col2 * col0 - tab0.col0 * + tab0.col0 FROM tab0
----
-1190
-623
216
query I rowsort
SELECT + col0 + tab2.col0 * col0 FROM tab2
----
56
6162
6320
query I rowsort
SELECT + tab0.col0 - + col2 FROM tab0
----
-9
34
7
onlyif mysql # use DIV operator for integer division
query I rowsort label-1003
SELECT + cor0.col0 DIV + cor0.col0 AS col1 FROM tab2 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-1003
SELECT + cor0.col0 / + cor0.col0 AS col1 FROM tab2 AS cor0
----
1
1
1
query I rowsort
SELECT - 46 AS col2 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 5a5d45989dcc6a06d9ee5a08945518f9
query I rowsort
SELECT cor0.col2 * 15 FROM tab2, tab1 AS cor0
----
9 values hashing to 72fed7a9098e1b5b0fb7f9a5abdf3ec0
onlyif mysql # use DIV operator for integer division
query I rowsort label-1006
SELECT ( + col1 ) + - cor0.col0 DIV + ( col0 + - col2 ) AS col2 FROM tab0 AS cor0
----
79
88
96
skipif mysql # not compatible
query I rowsort label-1006
SELECT ( + col1 ) + - cor0.col0 / + ( col0 + - col2 ) AS col2 FROM tab0 AS cor0
----
79
88
96
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1007
SELECT ALL CAST( NULL AS SIGNED ) * 59 AS col2 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif mysql # not compatible
query I rowsort label-1007
SELECT ALL CAST ( NULL AS INTEGER ) * 59 AS col2 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
query I rowsort
SELECT + 69 + col0 FROM tab0
----
104
158
93
query I rowsort
SELECT ALL - 90 * + col1 FROM tab2
----
-1530
-2790
-5310
onlyif mysql # use DIV operator for integer division
query I rowsort label-1010
SELECT 88 + col1 DIV - col0 AS col2 FROM tab2
----
84
88
88
skipif mysql # not compatible
query I rowsort label-1010
SELECT 88 + col1 / - col0 AS col2 FROM tab2
----
84
88
88
query I rowsort
SELECT col0 + 7 FROM tab2 cor0
----
14
85
86
query I rowsort
SELECT ALL 31 * - ( col2 ) - + 86 * + 88 AS col0 FROM tab1 AS cor0
----
-10544
-9242
-9335
query I rowsort
SELECT DISTINCT - ( + 15 ) * + col0 FROM tab1 AS cor0
----
-1200
-45
-960
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1014
SELECT ALL + - CAST( NULL AS SIGNED ) + cor0.col1 * + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1014
SELECT ALL + - CAST ( NULL AS INTEGER ) + cor0.col1 * + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - + ( 90 ) + col2 FROM tab1 cor0
----
-33
-36
6
query I rowsort
SELECT ALL - + 15 AS col1 FROM tab1 AS cor0
----
-15
-15
-15
query I rowsort
SELECT DISTINCT 4 + + col2 + col1 FROM tab2 AS cor0
----
59
62
89
query I rowsort
SELECT + - col2 + + col2 AS col1 FROM tab1 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-1019
SELECT DISTINCT - col2 + cor0.col2 DIV + col2 FROM tab1 AS cor0
----
-53
-56
-95
skipif mysql # not compatible
query I rowsort label-1019
SELECT DISTINCT - col2 + cor0.col2 / + col2 FROM tab1 AS cor0
----
-53
-56
-95
query I rowsort
SELECT + 30 - col2 AS col0 FROM tab2 AS cor0
----
-8
3
4
query I rowsort
SELECT - 20 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to eb3a66728062963cccbd15bd2f5c9eee
query I rowsort
SELECT ALL col2 * + col0 + + col2 FROM tab2 cor0
----
2054
216
3040
onlyif mysql # use DIV operator for integer division
query I rowsort label-1023
SELECT + - col1 * col1 - ( - cor0.col1 ) DIV + cor0.col0 AS col0 FROM tab1 AS cor0
----
-100
-169
-668
skipif mysql # not compatible
query I rowsort label-1023
SELECT + - col1 * col1 - ( - cor0.col1 ) / + cor0.col0 AS col0 FROM tab1 AS cor0
----
-100
-169
-668
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - cor0.col2 * col1 col0 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT DISTINCT 52 AS col0 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
52
query I rowsort
SELECT ALL - 57 * + col1 - col0 FROM tab0
----
-4926
-5276
-5564
query I rowsort
SELECT ALL + col1 + col1 * col2 * col0 AS col1 FROM tab2 cor0
----
119711
51051
5890
query I rowsort
SELECT DISTINCT - col1 * + col2 - - col0 * col0 AS col2 FROM tab0 AS cor0
----
-2262
1128
459
query I rowsort
SELECT + - cor0.col2 * 93 FROM tab1 AS cor0
----
-5022
-5301
-8928
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 9 col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 03b93b53107e36cf7d524e48c509b17b
query I rowsort
SELECT DISTINCT + 38 AS col0 FROM tab1, tab0 AS cor0, tab0 cor1, tab2, tab1 AS cor2
----
38
query I rowsort
SELECT + cor0.col2 * col2 + - ( col2 ) + + col0 AS col0 FROM tab0 cor0
----
1080
35
6731
query I rowsort
SELECT ALL - col1 + - col0 * + 46 FROM tab1 AS cor0
----
-164
-2954
-3693
query I rowsort
SELECT 96 * tab1.col2 * ( + col1 + tab1.col1 ) FROM tab1
----
109440
239616
269568
onlyif mysql # use DIV operator for integer division
query I rowsort label-1035
SELECT DISTINCT + col1 DIV ( 49 * col0 + cor0.col2 ) FROM tab2 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-1035
SELECT DISTINCT + col1 / ( 49 * col0 + cor0.col2 ) FROM tab2 AS cor0
----
0
query I rowsort
SELECT DISTINCT - col1 + + col1 * + cor0.col1 FROM tab1 cor0
----
156
650
90
query I rowsort
SELECT DISTINCT + col1 * col1 * + cor0.col2 FROM tab0 AS cor0
----
244068
679042
9409
query I rowsort
SELECT ALL 14 AS col0 FROM tab2, tab2 AS cor0, tab1 cor1
----
27 values hashing to 409c1790b702540dd9dc067c1965b7c0
query I rowsort
SELECT ALL - 16 + 94 + col2 * col1 FROM tab1 AS cor0
----
1326
1482
648
onlyif mysql # use DIV operator for integer division
query I rowsort label-1040
SELECT DISTINCT + + col0 DIV 78 - + col2 * + col2 FROM tab1 AS cor0
----
-2916
-3249
-9215
skipif mysql # not compatible
query I rowsort label-1040
SELECT DISTINCT + + col0 / 78 - + col2 * + col2 FROM tab1 AS cor0
----
-2916
-3249
-9215
query I rowsort
SELECT ALL ( col2 ) + col0 AS col1 FROM tab2 AS cor0
----
104
117
34
query I rowsort
SELECT ALL - 29 + ( col0 ) FROM tab0 cor0
----
-5
6
60
onlyif mysql # use DIV operator for integer division
query I rowsort label-1043
SELECT DISTINCT + - 86 DIV col1 col1 FROM tab1 AS cor0
----
-3
-6
-8
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1043
SELECT DISTINCT + - 86 / col1 col1 FROM tab1 AS cor0
----
-3
-6
-8
onlyif mysql # use DIV operator for integer division
query I rowsort label-1044
SELECT DISTINCT - - col2 * col1 DIV cor0.col2 FROM tab0 AS cor0
----
86
91
97
skipif mysql # not compatible
query I rowsort label-1044
SELECT DISTINCT - - col2 * col1 / cor0.col2 FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT ( - 67 ) FROM tab2, tab2 cor0
----
9 values hashing to fbe03b15d6b951410b38f7e98895006f
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab1.col1 * 45 + + 33 col0 FROM tab1
----
1203
483
618
query I rowsort
SELECT - col1 + + col2 * tab2.col1 * col2 FROM tab2
----
22568
24531
39825
query I rowsort
SELECT col0 * tab1.col0 + col0 * col0 FROM tab1
----
12800
18
8192
query I rowsort
SELECT - 61 AS col1 FROM tab2, tab0 cor0
----
9 values hashing to 51f53697966a79d306a4570537cd91a1
query I rowsort
SELECT 13 * - 78 AS col2 FROM tab0 AS cor0
----
-1014
-1014
-1014
onlyif mysql # use DIV operator for integer division
query I rowsort label-1051
SELECT ALL + - ( - 52 ) DIV col0 FROM tab1 AS cor0
----
0
0
17
skipif mysql # not compatible
query I rowsort label-1051
SELECT ALL + - ( - 52 ) / col0 FROM tab1 AS cor0
----
0
0
17
onlyif mysql # use DIV operator for integer division
query I rowsort label-1052
SELECT DISTINCT - ( - col0 ) DIV col0 + cor0.col0 AS col0 FROM tab0 AS cor0
----
25
36
90
skipif mysql # not compatible
query I rowsort label-1052
SELECT DISTINCT - ( - col0 ) / col0 + cor0.col0 AS col0 FROM tab0 AS cor0
----
25
36
90
query I rowsort
SELECT DISTINCT - cor1.col2 FROM tab2, tab2 AS cor0, tab1 cor1
----
-54
-57
-96
query I rowsort
SELECT 7 + col1 AS col1 FROM tab0 cor0
----
104
93
98
query I rowsort
SELECT - + 64 + col2 AS col2 FROM tab0 AS cor0
----
-31
-63
18
query I rowsort
SELECT ALL + 79 AS col1 FROM tab1
----
79
79
79
query I rowsort
SELECT DISTINCT - 46 AS col0 FROM tab0, tab0 AS cor0
----
-46
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 57 col0 FROM tab0 AS cor0
----
57
57
57
query I rowsort
SELECT DISTINCT + - 10 * - col0 FROM tab2 cor0
----
70
780
790
query I rowsort
SELECT - cor1.col1 FROM tab2, tab1 cor0, tab1 AS cor1
----
27 values hashing to c7890469eabb2c6fc81454b35d2333b6
query I rowsort
SELECT - 31 AS col0 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to c6c8eebeb1a59f7c046402e25630c0ac
query I rowsort
SELECT + 30 FROM tab1, tab1 cor0
----
9 values hashing to da5de0c411a2c0f445400f1b63ea9f89
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + + col1 col0 FROM tab2
----
137
38
96
query I rowsort
SELECT - 46 + - col2 + - ( col0 ) FROM tab2
----
-150
-163
-80
query I rowsort
SELECT ALL + ( tab0.col2 ) + - col2 AS col2 FROM tab0
----
0
0
0
query I rowsort
SELECT + - col2 * col2 + 6 * + col0 AS col2 FROM tab2 AS cor0
----
-208
-687
-970
onlyif mysql # use DIV operator for integer division
query I rowsort label-1067
SELECT DISTINCT col2 DIV col2 + col2 FROM tab0
----
2
34
83
skipif mysql # not compatible
query I rowsort label-1067
SELECT DISTINCT col2 / col2 + col2 FROM tab0
----
2
34
83
onlyif mysql # use DIV operator for integer division
query I rowsort label-1068
SELECT ALL + 96 * col2 + col1 DIV col2 AS col1 FROM tab1
----
5184
5472
9216
skipif mysql # not compatible
query I rowsort label-1068
SELECT ALL + 96 * col2 + col1 / col2 AS col1 FROM tab1
----
5184
5472
9216
query I rowsort
SELECT + tab2.col0 * col1 * ( - col0 ) AS col0 FROM tab2
----
-106097
-1519
-358956
query I rowsort
SELECT 38 * col1 * + 59 + col2 FROM tab2
----
132304
38152
69529
query I rowsort
SELECT DISTINCT + 2 FROM tab0 AS cor0 CROSS JOIN tab1, tab2 AS cor1
----
2
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 86 + - cor0.col2 col2 FROM tab2, tab1 cor0
----
-10
29
32
onlyif mysql # use DIV operator for integer division
query I rowsort label-1073
SELECT ALL - col2 DIV col2 AS col0 FROM tab0 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-1073
SELECT ALL - col2 / col2 AS col0 FROM tab0 AS cor0
----
-1
-1
-1
query I rowsort
SELECT - - cor0.col2 * - 36 + col1 + + col2 FROM tab2 AS cor0
----
-1313
-851
-914
query I rowsort
SELECT ALL col0 * - 54 AS col1 FROM tab2 AS cor0
----
-378
-4212
-4266
onlyif mysql # use DIV operator for integer division
query I rowsort label-1076
SELECT + col1 DIV col0 AS col1 FROM tab1 cor0
----
0
0
8
skipif mysql # not compatible
query I rowsort label-1076
SELECT + col1 / col0 AS col1 FROM tab1 cor0
----
0
0
8
query I rowsort
SELECT DISTINCT - - ( cor0.col1 ) FROM tab2, tab1 AS cor0
----
10
13
26
onlyif mysql # use DIV operator for integer division
query I rowsort label-1078
SELECT DISTINCT - 89 DIV - col1 FROM tab0 AS cor0
----
0
1
skipif mysql # not compatible
query I rowsort label-1078
SELECT DISTINCT - 89 / - col1 FROM tab0 AS cor0
----
0
1
query I rowsort
SELECT 13 + col1 AS col0 FROM tab1 AS cor0
----
23
26
39
query I rowsort
SELECT - 20 AS col1 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to eb3a66728062963cccbd15bd2f5c9eee
query I rowsort
SELECT + cor0.col0 * col2 + 6 AS col1 FROM tab2 AS cor0
----
195
2034
3008
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 46 col1 FROM tab2
----
46
46
46
query I rowsort
SELECT + cor0.col2 * tab2.col1 FROM tab2, tab1, tab2 cor0
----
27 values hashing to ae9e2bb55fd656eb6c7fb22bc2bb0f90
query I rowsort
SELECT ALL - ( col1 ) + + tab2.col2 AS col0 FROM tab2
----
-33
-4
21
query I rowsort
SELECT ALL - col1 - + tab1.col1 * 93 FROM tab1
----
-1222
-2444
-940
query I rowsort
SELECT ALL - col1 - - col1 * col2 FROM tab1
----
1235
1378
560
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 11 col0 FROM tab0 AS cor0
----
-11
-11
-11
onlyif mysql # use DIV operator for integer division
query I rowsort label-1088
SELECT ALL - + col2 DIV - col2 + col0 AS col0 FROM tab1 AS cor0
----
4
65
81
skipif mysql # not compatible
query I rowsort label-1088
SELECT ALL - + col2 / - col2 + col0 AS col0 FROM tab1 AS cor0
----
4
65
81
query I rowsort
SELECT DISTINCT + col0 * - col1 * + 98 AS col0 FROM tab1
----
-101920
-62720
-7644
onlyif mysql # use DIV operator for integer division
query I rowsort label-1090
SELECT DISTINCT col2 DIV - col0 col1 FROM tab1
----
-1
-18
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1090
SELECT DISTINCT col2 / - col0 col1 FROM tab1
----
-1
-18
0
query I rowsort
SELECT + tab2.col1 * ( col2 * tab2.col2 ) - - 53 * 2 FROM tab2
----
22705
24654
39990
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1092
SELECT + col2 + - CAST( cor0.col0 AS SIGNED ) AS col1 FROM tab2 cor0
----
-41
-52
20
skipif mysql # not compatible
query I rowsort label-1092
SELECT + col2 + - CAST ( cor0.col0 AS INTEGER ) AS col1 FROM tab2 cor0
----
-41
-52
20
query I rowsort
SELECT DISTINCT - tab2.col0 FROM tab2, tab1, tab1 AS cor0, tab2 cor1
----
-7
-78
-79
onlyif mysql # use DIV operator for integer division
query I rowsort label-1094
SELECT ALL - col2 DIV - 14 AS col0 FROM tab2
----
1
1
2
skipif mysql # not compatible
query I rowsort label-1094
SELECT ALL - col2 / - 14 AS col0 FROM tab2
----
1
1
2
query I rowsort
SELECT col0 * + 27 AS col2 FROM tab1 AS cor0
----
1728
2160
81
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1096
SELECT ALL + CAST( + 2 AS SIGNED ) * col2 FROM tab1
----
108
114
192
skipif mysql # not compatible
query I rowsort label-1096
SELECT ALL + CAST ( + 2 AS INTEGER ) * col2 FROM tab1
----
108
114
192
onlyif mysql # use DIV operator for integer division
query I rowsort label-1097
SELECT + + 30 + - col1 DIV - col2 AS col1 FROM tab0 AS cor0
----
127
31
32
skipif mysql # not compatible
query I rowsort label-1097
SELECT + + 30 + - col1 / - col2 AS col1 FROM tab0 AS cor0
----
127
31
32
onlyif mysql # use DIV operator for integer division
query I rowsort label-1098
SELECT 39 + ( col2 ) DIV col1 AS col0 FROM tab0 AS cor0
----
39
39
39
skipif mysql # not compatible
query I rowsort label-1098
SELECT 39 + ( col2 ) / col1 AS col0 FROM tab0 AS cor0
----
39
39
39
onlyif mysql # use DIV operator for integer division
query I rowsort label-1099
SELECT - cor0.col1 * cor0.col0 DIV + col1 AS col0 FROM tab0 AS cor0
----
-24
-35
-89
skipif mysql # not compatible
query I rowsort label-1099
SELECT - cor0.col1 * cor0.col0 / + col1 AS col0 FROM tab0 AS cor0
----
-24
-35
-89
query I rowsort
SELECT 34 * + col2 + col2 * col1 * - col1 FROM tab2
----
-25029
-89622
-9690
onlyif mysql # use DIV operator for integer division
query I rowsort label-1101
SELECT col1 - - col2 DIV + col0 FROM tab2
----
17
34
59
skipif mysql # not compatible
query I rowsort label-1101
SELECT col1 - - col2 / + col0 FROM tab2
----
17
34
59
onlyif mysql # use DIV operator for integer division
query I rowsort label-1102
SELECT tab0.col0 DIV + ( col0 ) + + col1 * tab0.col2 FROM tab0
----
2839
7463
98
skipif mysql # not compatible
query I rowsort label-1102
SELECT tab0.col0 / + ( col0 ) + + col1 * tab0.col2 FROM tab0
----
2839
7463
98
query I rowsort
SELECT + 43 * - col2 + col0 FROM tab1
----
-2319
-2387
-4048
query I rowsort
SELECT + col1 + tab2.col0 * col0 AS col1 FROM tab2
----
6143
6258
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 86 * - 48 col1 FROM tab1
----
-4128
query I rowsort
SELECT DISTINCT - cor0.col2 + + 31 FROM tab1 AS cor0
----
-23
-26
-65
query I rowsort
SELECT col1 + + 47 FROM tab0
----
133
138
144
query I rowsort
SELECT - tab2.col0 + 51 AS col2 FROM tab2
----
-27
-28
44
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 91 * col2 col2 FROM tab2 AS cor0
----
-2366
-2457
-3458
query I rowsort
SELECT + col2 + col0 * - col0 FROM tab1 AS cor0
----
-4039
-6304
45
query I rowsort
SELECT ALL - + 32 * + cor0.col1 AS col0 FROM tab1 cor0
----
-320
-416
-832
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * - col0 col0 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT + 2 * col2 AS col2 FROM tab0 AS cor0
----
164
2
66
query I rowsort
SELECT ALL cor0.col2 * col1 * + col0 FROM tab1 cor0
----
36480
4212
99840
query I rowsort
SELECT ALL cor1.col1 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775
query I rowsort
SELECT ( cor0.col2 ) + + col1 * cor0.col0 * col2 FROM tab0 AS cor0
----
3396
664200
68145
query I rowsort
SELECT DISTINCT - col2 * col0 + col1 * col0 * cor0.col2 + cor0.col0 FROM tab0 AS cor0
----
3395
656909
67344
onlyif mysql # use DIV operator for integer division
query I rowsort label-1118
SELECT ALL - + 48 DIV - col2 + + col1 FROM tab0 AS cor0
----
145
87
91
skipif mysql # not compatible
query I rowsort label-1118
SELECT ALL - + 48 / - col2 + + col1 FROM tab0 AS cor0
----
145
87
91
query I rowsort
SELECT DISTINCT 28 * col2 + + col2 FROM tab2 AS cor0
----
1102
754
783
query I rowsort
SELECT 47 - - col2 FROM tab0
----
129
48
80
query I rowsort
SELECT ( col0 ) * - col2 FROM tab0 cor0
----
-35
-7298
-792
query I rowsort
SELECT ALL - col0 + - cor0.col0 + col0 * col1 FROM tab1 AS cor0
----
512
72
880
query I rowsort
SELECT DISTINCT - - 69 + col1 AS col0 FROM tab0 AS cor0
----
155
160
166
query I rowsort
SELECT ALL - 19 * col2 + cor0.col1 * col0 FROM tab0 cor0
----
1437
3376
6541
onlyif mysql # use DIV operator for integer division
query I rowsort label-1125
SELECT - + col1 DIV - cor0.col2 + + col1 FROM tab1 AS cor0
----
10
13
26
skipif mysql # not compatible
query I rowsort label-1125
SELECT - + col1 / - cor0.col2 + + col1 FROM tab1 AS cor0
----
10
13
26
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1126
SELECT + col0 * + CAST( NULL AS SIGNED ) + + col1 / - col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1126
SELECT + col0 * + CAST ( NULL AS INTEGER ) + + col1 / - col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL col0 + - 70 FROM tab1
----
-6
-67
10
onlyif mysql # use DIV operator for integer division
query I rowsort label-1128
SELECT ALL col1 DIV col1 + 34 * + col2 + + col2 AS col0 FROM tab1 AS cor0
----
1891
1996
3361
skipif mysql # not compatible
query I rowsort label-1128
SELECT ALL col1 / col1 + 34 * + col2 + + col2 AS col0 FROM tab1 AS cor0
----
1891
1996
3361
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1129
SELECT DISTINCT - col0 / CAST( NULL AS SIGNED ) - + col1 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-1129
SELECT DISTINCT - col0 / CAST ( NULL AS INTEGER ) - + col1 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT col2 + 2 AS col1 FROM tab1 cor0
----
56
59
98
query I rowsort
SELECT ALL + col0 + 36 * - 95 AS col0 FROM tab2 AS cor0
----
-3341
-3342
-3413
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col2 + ( - col0 ) col0 FROM tab1 AS cor0
----
-7
16
51
query I rowsort
SELECT ALL + - cor0.col1 + + col2 + col1 FROM tab2 AS cor0
----
26
27
38
onlyif mysql # use DIV operator for integer division
query I rowsort label-1134
SELECT ALL col0 * col2 - ( cor0.col2 ) DIV col1 AS col0 FROM tab2 AS cor0
----
189
2028
3000
skipif mysql # not compatible
query I rowsort label-1134
SELECT ALL col0 * col2 - ( cor0.col2 ) / col1 AS col0 FROM tab2 AS cor0
----
189
2028
3000
query I rowsort
SELECT DISTINCT - cor0.col0 + col1 * ( + col0 * + col0 ) AS col2 FROM tab0 AS cor0
----
118790
49512
720722
query I rowsort
SELECT ALL + + col0 + + 0 FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT - - cor0.col0 + - 42 FROM tab2 AS cor0
----
-35
36
37
query I rowsort
SELECT DISTINCT col0 * + ( col2 * col0 ) - - col2 FROM tab1 AS cor0
----
233529
540
614496
query I rowsort
SELECT DISTINCT + - cor0.col2 + - 61 + col1 AS col0 FROM tab0 AS cor0
----
-52
-8
35
query I rowsort
SELECT ALL ( - col0 ) + col0 * cor0.col0 AS col1 FROM tab2 AS cor0
----
42
6006
6162
query I rowsort
SELECT DISTINCT + cor0.col2 * + col1 AS col2 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT DISTINCT - + 86 + col2 + - col1 * col1 FROM tab2 AS cor0
----
-1020
-337
-3541
query I rowsort
SELECT - - ( + 91 ) FROM tab2 AS cor0
----
91
91
91
query I rowsort
SELECT DISTINCT 55 * + col0 + col1 * col0 AS col2 FROM tab1 AS cor0
----
243
4160
5440
onlyif mysql # use DIV operator for integer division
query I rowsort label-1145
SELECT + ( + ( col2 ) ) + - col2 DIV - col2 FROM tab1 AS cor0
----
55
58
97
skipif mysql # not compatible
query I rowsort label-1145
SELECT + ( + ( col2 ) ) + - col2 / - col2 FROM tab1 AS cor0
----
55
58
97
query I rowsort
SELECT DISTINCT - - ( - col2 ) * col0 + - col0 * col1 * col2 AS col1 FROM tab1 AS cor0
----
-107520
-40128
-4374
query I rowsort
SELECT - col1 * 52 AS col0 FROM tab0 AS cor0
----
-4472
-4732
-5044
query I rowsort
SELECT + ( - col1 ) * 3 + + 54 * - col2 FROM tab1
----
-2994
-3108
-5223
query I rowsort
SELECT + + cor0.col2 + ( col1 ) AS col0 FROM tab1 AS cor0
----
109
67
80
query I rowsort
SELECT ALL - col0 + + 82 * - 17 AS col0 FROM tab0 AS cor0
----
-1418
-1429
-1483
query I rowsort
SELECT DISTINCT - col1 + + 64 FROM tab0 AS cor0
----
-22
-27
-33
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 * - col2 col1 FROM tab0 AS cor0
----
1
1089
6724
query I rowsort
SELECT DISTINCT - ( + col0 ) * - 29 FROM tab0
----
1015
2581
696
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 22 col2 FROM tab0
----
22
query I rowsort
SELECT - 63 + - col1 AS col0 FROM tab0
----
-149
-154
-160
query I rowsort
SELECT - col0 * + col2 + + col0 * - 47 FROM tab0
----
-11481
-1680
-1920
query I rowsort
SELECT - col0 + 20 FROM tab1
----
-44
-60
17
query I rowsort
SELECT tab2.col0 + - 7 FROM tab2
----
0
71
72
query I rowsort
SELECT - col2 * + col2 * 92 FROM tab0 AS cor0
----
-100188
-618608
-92
query I rowsort
SELECT ALL cor0.col2 * + ( + 49 ) FROM tab1 AS cor0
----
2646
2793
4704
query I rowsort
SELECT DISTINCT col1 + col1 * - col0 * col0 FROM tab2 AS cor0
----
-106080
-1488
-358897
query I rowsort
SELECT col1 * 22 AS col0 FROM tab1 AS cor0
----
220
286
572
query I rowsort
SELECT + 80 + + col2 FROM tab0
----
113
162
81
query I rowsort
SELECT ALL - col1 + col2 * tab0.col0 FROM tab0
----
-62
706
7207
query I rowsort
SELECT tab0.col1 * + 92 - - col1 * + ( + 50 ) * - tab0.col1 FROM tab0
----
-361888
-405678
-461526
query I rowsort
SELECT ALL - 58 + - col2 AS col0 FROM tab1 AS cor0
----
-112
-115
-154
query I rowsort
SELECT - 68 * - col0 * - col1 + ( ( col1 ) ) * col2 FROM tab0 AS cor0
----
-137514
-230763
-543270
onlyif mysql # use DIV operator for integer division
query I rowsort label-1168
SELECT ALL ( col0 ) DIV + col1 + + col1 FROM tab0 AS cor0
----
86
91
97
skipif mysql # not compatible
query I rowsort label-1168
SELECT ALL ( col0 ) / + col1 + + col1 FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT col0 * + cor0.col2 AS col0 FROM tab2 AS cor0
----
189
2028
3002
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 86 col1 FROM tab2 AS cor0
----
-86
-86
-86
query I rowsort
SELECT ALL col1 * col2 * + col1 FROM tab0 AS cor0
----
244068
679042
9409
onlyif mysql # use DIV operator for integer division
query I rowsort label-1172
SELECT ALL col2 DIV tab2.col1 AS col2 FROM tab2
----
0
0
2
skipif mysql # not compatible
query I rowsort label-1172
SELECT ALL col2 / tab2.col1 AS col2 FROM tab2
----
0
0
2
query I rowsort
SELECT - cor0.col0 + col0 * col0 * - col1 FROM tab0 AS cor0
----
-118860
-49560
-720900
query I rowsort
SELECT + + 98 + + col2 FROM tab0 AS cor0
----
131
180
99
onlyif mysql # use DIV operator for integer division
query I rowsort label-1175
SELECT DISTINCT - cor0.col2 + - col2 DIV + ( col1 ) AS col0 FROM tab0 AS cor0
----
-1
-33
-82
skipif mysql # not compatible
query I rowsort label-1175
SELECT DISTINCT - cor0.col2 + - col2 / + ( col1 ) AS col0 FROM tab0 AS cor0
----
-1
-33
-82
query I rowsort
SELECT ALL + col0 + + col1 * - 92 AS col2 FROM tab1 cor0
----
-1116
-2389
-856
query I rowsort
SELECT col2 + - col1 * cor0.col1 FROM tab0 AS cor0
----
-7363
-8199
-9408
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + cor0.col0 ) col0 FROM tab1 AS cor0
----
3
64
80
onlyif mysql # use DIV operator for integer division
query I rowsort label-1179
SELECT + - col2 * col1 DIV + cor0.col1 + + cor0.col2 AS col0 FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-1179
SELECT + - col2 * col1 / + cor0.col1 + + cor0.col2 AS col0 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT - - 29 AS col1 FROM tab2 cor0
----
29
29
29
query I rowsort
SELECT - 76 FROM tab1, tab2 AS cor0
----
9 values hashing to f8b6589bc7503fc720ca5430e3569317
query I rowsort
SELECT ALL - - 52 + - col2 * + cor0.col2 FROM tab2 AS cor0
----
-1392
-624
-677
query I rowsort
SELECT DISTINCT 19 + - 21 FROM tab0, tab1 cor0
----
-2
query I rowsort
SELECT + - ( col1 ) + + col0 * + col1 FROM tab1 AS cor0
----
1027
52
630
query I rowsort
SELECT + col0 * + col1 + col0 AS col2 FROM tab2 AS cor0
----
1422
224
4680
query I rowsort
SELECT DISTINCT - 30 AS col2 FROM tab0, tab2 AS cor0
----
-30
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT CAST ( + 28 * col2 + col0 AS REAL ) AS col2 FROM tab0
----
2385
63
948
query I rowsort
SELECT + col2 * - col1 * col2 AS col2 FROM tab2
----
-22599
-24548
-39884
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + 69 col1 FROM tab0
----
155
160
166
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1190
SELECT DISTINCT CAST( NULL AS SIGNED ) / - tab1.col1 + col1 AS col2 FROM tab1
----
NULL
skipif mysql # not compatible
query I rowsort label-1190
SELECT DISTINCT CAST ( NULL AS INTEGER ) / - tab1.col1 + col1 AS col2 FROM tab1
----
NULL
query I rowsort
SELECT ALL cor0.col2 FROM tab1, tab0 AS cor0, tab0 cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475
query I rowsort
SELECT - 56 + + cor0.col2 AS col1 FROM tab2 AS cor0
----
-18
-29
-30
query I rowsort
SELECT - - 75 * col2 FROM tab1 AS cor0
----
4050
4275
7200
query I rowsort
SELECT + 68 + + col1 AS col0 FROM tab1 AS cor0
----
78
81
94
query I rowsort
SELECT ALL + col2 + col1 + 90 FROM tab2 AS cor0
----
145
148
175
query I rowsort
SELECT ( col1 ) + - col0 + + 36 FROM tab0 AS cor0
----
38
98
98
query I rowsort
SELECT DISTINCT - 19 * col2 AS col2 FROM tab1 AS cor0
----
-1026
-1083
-1824
query I rowsort
SELECT ALL - - 48 * col2 + 34 FROM tab0 AS cor0
----
1618
3970
82
query I rowsort
SELECT + 17 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 43298e43365fccb5146ea32003753c92
query I rowsort
SELECT + col2 * + 79 AS col1 FROM tab0 cor0
----
2607
6478
79
query I rowsort
SELECT col2 * col2 + - cor0.col1 FROM tab1 AS cor0
----
2890
3239
9203
query I rowsort
SELECT DISTINCT + cor0.col2 * - 18 FROM tab2 AS cor0
----
-468
-486
-684
onlyif mysql # use DIV operator for integer division
query I rowsort label-1203
SELECT + - col2 DIV - 99 + - 51 FROM tab0 cor0
----
-51
-51
-51
skipif mysql # not compatible
query I rowsort label-1203
SELECT + - col2 / - 99 + - 51 FROM tab0 cor0
----
-51
-51
-51
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * ( col2 ) col2 FROM tab0 AS cor0
----
35
7298
792
onlyif mysql # use DIV operator for integer division
query I rowsort label-1205
SELECT + + col0 DIV ( + col0 ) FROM tab1 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-1205
SELECT + + col0 / ( + col0 ) FROM tab1 AS cor0
----
1
1
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-1206
SELECT ALL tab0.col1 DIV - col2 AS col0 FROM tab0
----
-1
-2
-97
skipif mysql # not compatible
query I rowsort label-1206
SELECT ALL tab0.col1 / - col2 AS col0 FROM tab0
----
-1
-2
-97
onlyif mysql # use DIV operator for integer division
query I rowsort label-1207
SELECT ALL 45 * tab0.col1 DIV + ( - col0 ) AS col0 FROM tab0
----
-124
-161
-46
skipif mysql # not compatible
query I rowsort label-1207
SELECT ALL 45 * tab0.col1 / + ( - col0 ) AS col0 FROM tab0
----
-124
-161
-46
query I rowsort
SELECT + + tab0.col1 FROM tab0, tab2, tab2 AS cor0
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col2 ) * + col2 col1 FROM tab1
----
2916
3249
9216
query I rowsort
SELECT + + col0 * + ( + col2 ) + - col1 + - ( cor0.col1 ) AS col0 FROM tab1 AS cor0
----
110
3628
7654
query I rowsort
SELECT DISTINCT - col0 + tab1.col1 + 25 FROM tab1
----
-29
-42
48
query I rowsort
SELECT DISTINCT - ( col0 ) * - col1 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT ALL - + cor0.col1 + - cor0.col1 * - col0 FROM tab0 AS cor0
----
1978
3298
8008
query I rowsort
SELECT ALL - col0 * 24 * - col1 AS col1 FROM tab2 AS cor0
----
110448
32232
5208
query I rowsort
SELECT ALL ( col2 ) * - col2 * col2 AS col2 FROM tab0 AS cor0
----
-1
-35937
-551368
query I rowsort
SELECT - ( - 88 ) * col0 FROM tab2 AS cor0
----
616
6864
6952
onlyif mysql # use DIV operator for integer division
query I rowsort label-1217
SELECT DISTINCT + col2 DIV 48 + 22 FROM tab1
----
23
24
skipif mysql # not compatible
query I rowsort label-1217
SELECT DISTINCT + col2 / 48 + 22 FROM tab1
----
23
24
query I rowsort
SELECT col1 + + 34 FROM tab2
----
51
65
93
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1219
SELECT + col1 * + CAST( NULL AS DECIMAL ) AS col2 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1219
SELECT + col1 * + CAST ( NULL AS REAL ) AS col2 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT + col2 * - col0 + - col2 * + col0 AS col2 FROM tab2
----
-378
-4056
-6004
query I rowsort
SELECT + col1 + - 25 FROM tab2
----
-8
34
6
query I rowsort
SELECT col0 + - col0 * + col2 AS col2 FROM tab0
----
-7209
-768
0
query I rowsort
SELECT ALL + col2 + col0 + 89 AS col2 FROM tab1
----
146
210
265
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + - tab0.col2 col0 FROM tab0
----
0
query I rowsort
SELECT ALL + cor0.col1 AS col2 FROM tab1, tab1 cor0 CROSS JOIN tab0
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892
query I rowsort
SELECT ALL - cor1.col1 * + cor0.col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 3a68b2420e96feae5e3ca1f4dd4282df
query I rowsort
SELECT ALL - - 84 * col2 AS col0 FROM tab1 AS cor0
----
4536
4788
8064
query I rowsort
SELECT ALL - + col2 + cor0.col0 AS col1 FROM tab2 AS cor0
----
-20
41
52
query I rowsort
SELECT DISTINCT col1 * + ( - col2 ) AS col0 FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT DISTINCT + col0 + + col2 * - col1 AS col0 FROM tab2 AS cor0
----
-1456
-567
-830
query I rowsort
SELECT DISTINCT - + col1 * cor0.col0 FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT + - 37 + - col1 * - col1 FROM tab1 AS cor0
----
132
63
639
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1233
SELECT DISTINCT - - CAST( + 5 AS SIGNED ) + col2 FROM tab0 AS cor0
----
38
6
87
skipif mysql # not compatible
query I rowsort label-1233
SELECT DISTINCT - - CAST ( + 5 AS INTEGER ) + col2 FROM tab0 AS cor0
----
38
6
87
query I rowsort
SELECT ALL + + 47 + col1 AS col1 FROM tab0 AS cor0
----
133
138
144
query I rowsort
SELECT + + 39 * - col1 AS col0 FROM tab0 AS cor0
----
-3354
-3549
-3783
query I rowsort
SELECT ALL - col1 * - cor0.col2 FROM tab1 cor0
----
1248
1404
570
query I rowsort
SELECT ALL + - ( - col2 ) * - col0 FROM tab0 AS cor0
----
-35
-7298
-792
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + col0 + col0 + col1 col1 FROM tab1
----
-4022
-6307
20
query I rowsort
SELECT ( - col2 ) * - col0 FROM tab1
----
162
3648
7680
query I rowsort
SELECT col0 * - col1 * 94 FROM tab1
----
-60160
-7332
-97760
query I rowsort
SELECT - col1 * col0 + + 54 AS col1 FROM tab1 AS cor0
----
-24
-586
-986
query I rowsort
SELECT + - 70 * - col2 * - col1 - col1 AS col0 FROM tab2 cor0
----
-107439
-45237
-58621
onlyif mysql # use DIV operator for integer division
query I rowsort label-1243
SELECT + col1 DIV col2 + col0 AS col1 FROM tab1 AS cor0
----
3
64
80
skipif mysql # not compatible
query I rowsort label-1243
SELECT + col1 / col2 + col0 AS col1 FROM tab1 AS cor0
----
3
64
80
onlyif mysql # use DIV operator for integer division
query I rowsort label-1244
SELECT col0 DIV 85 FROM tab0 cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-1244
SELECT col0 / 85 FROM tab0 cor0
----
0
0
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + - 56 col1 FROM tab1 AS cor0
----
-120
-136
-59
query I rowsort
SELECT DISTINCT col0 - - col1 AS col2 FROM tab1 cor0
----
29
74
93
query I rowsort
SELECT DISTINCT col0 + col1 * col0 AS col1 FROM tab1 cor0
----
1120
704
81
query I rowsort
SELECT DISTINCT cor0.col0 + col0 - - col2 AS col2 FROM tab1 cor0
----
185
256
60
query I rowsort
SELECT DISTINCT - col1 * col2 * col1 AS col0 FROM tab1 AS cor0
----
-16224
-36504
-5700
query I rowsort
SELECT DISTINCT + - col0 + + cor0.col1 * - col1 AS col1 FROM tab1 AS cor0
----
-164
-249
-679
onlyif mysql # use DIV operator for integer division
query I rowsort label-1251
SELECT ALL + - cor0.col1 * col1 + - col0 DIV - col1 + col2 * + col0 FROM tab0 AS cor0
----
-6604
-9374
-983
skipif mysql # not compatible
query I rowsort label-1251
SELECT ALL + - cor0.col1 * col1 + - col0 / - col1 + col2 * + col0 FROM tab0 AS cor0
----
-6604
-9374
-983
query I rowsort
SELECT DISTINCT + + col0 + col1 * col0 + col0 FROM tab2 AS cor0
----
1501
231
4758
query I rowsort
SELECT + col1 * - tab1.col0 + col2 * tab1.col0 * col0 FROM tab1
----
232832
408
613360
query I rowsort
SELECT ALL + tab2.col1 AS col2 FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to 7599b480125de521efed71b5b2413c7d
query I rowsort
SELECT DISTINCT - col0 + + col0 + col1 AS col1 FROM tab2
----
17
31
59
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( - col2 ) >= col0 OR NOT + col1 NOT IN ( col0 * col2 )
----
query I rowsort
SELECT - col1 * col1 * + col2 FROM tab1 WHERE NOT NULL BETWEEN NULL AND col2
----
query I rowsort
SELECT - 16 * + col1 + col0 FROM tab0
----
-1352
-1367
-1517
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + - col1 col2 FROM tab1 AS cor0
----
-20
-26
-52
query I rowsort
SELECT - tab0.col1 * col0 + tab0.col1 + + col0 FROM tab0
----
-1954
-3263
-7919
query I rowsort
SELECT DISTINCT - col2 + col0 * + col2 + - tab2.col2 * col0 FROM tab2
----
-26
-27
-38
query I rowsort
SELECT DISTINCT - 18 - + col0 FROM tab1
----
-21
-82
-98
query I rowsort
SELECT tab1.col0 + col0 * - tab1.col2 AS col2 FROM tab1
----
-159
-3584
-7600
onlyif mysql # use DIV operator for integer division
query I rowsort label-1264
SELECT col1 * + col0 DIV - col0 + col0 * + tab0.col2 AS col0 FROM tab0
----
-62
706
7207
skipif mysql # not compatible
query I rowsort label-1264
SELECT col1 * + col0 / - col0 + col0 * + tab0.col2 AS col0 FROM tab0
----
-62
706
7207
query I rowsort
SELECT tab1.col1 + col2 * - col0 FROM tab1
----
-136
-3638
-7667
query I rowsort
SELECT col1 * - col0 * - col0 FROM tab0
----
118825
49536
720811
query I rowsort
SELECT - col2 * - col0 + tab0.col0 + + col2 FROM tab0
----
71
7469
849
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * - col0 + col1 col2 FROM tab0
----
-1128
-490
-7830
query I rowsort
SELECT tab1.col1 * col1 * - tab1.col1 FROM tab1
----
-1000
-17576
-2197
query I rowsort
SELECT ALL col0 * col2 + + col1 AS col0 FROM tab1
----
188
3658
7693
query I rowsort
SELECT cor0.col0 AS col0 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd
query I rowsort
SELECT DISTINCT cor0.col0 + + col1 AS col1 FROM tab1 AS cor0
----
29
74
93
query I rowsort
SELECT tab1.col1 + + col2 AS col0 FROM tab1
----
109
67
80
query I rowsort
SELECT DISTINCT - col1 AS col0 FROM tab2 WHERE - col1 * - col0 < col1
----
query I rowsort
SELECT DISTINCT col2 AS col0 FROM tab0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND NULL
----
query I rowsort
SELECT ALL - tab1.col2 * tab1.col2 - + col1 AS col0 FROM tab1
----
-2942
-3259
-9229
query I rowsort
SELECT ALL + tab2.col2 - col2 AS col1 FROM tab2
----
0
0
0
query I rowsort
SELECT DISTINCT - col2 + - col2 * col2 FROM tab1
----
-2970
-3306
-9312
query I rowsort
SELECT - col0 * + tab0.col1 * - col2 - + col1 * + col0 FROM tab0
----
0
656019
66048
query I rowsort
SELECT col2 FROM tab1 WHERE ( NULL ) BETWEEN col1 AND NULL
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-1281
SELECT ALL + col0 + + col2 * col0 DIV + col2 AS col0 FROM tab1
----
128
160
6
skipif mysql # not compatible
query I rowsort label-1281
SELECT ALL + col0 + + col2 * col0 / + col2 AS col0 FROM tab1
----
128
160
6
query I rowsort
SELECT ALL col1 / - col2 FROM tab1 WHERE NOT - col0 <> NULL
----
query I rowsort
SELECT - col2 + col2 + cor0.col0 FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT ALL - 96 * col0 AS col2 FROM tab1
----
-288
-6144
-7680
query I rowsort
SELECT - + col0 + col2 + - 57 FROM tab0 AS cor0
----
-48
-64
-91
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1286
SELECT + col2 + + col1 + CAST( col1 + - col2 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
20
26
52
skipif mysql # not compatible
query I rowsort label-1286
SELECT + col2 + + col1 + CAST ( col1 + - col2 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
20
26
52
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 29 * col2 * + col0 col1 FROM tab2 cor0
----
5481
58812
87058
onlyif mysql # use DIV operator for integer division
query I rowsort label-1288
SELECT DISTINCT col1 DIV + col2 - col0 FROM tab0
----
-22
-88
62
skipif mysql # not compatible
query I rowsort label-1288
SELECT DISTINCT col1 / + col2 - col0 FROM tab0
----
-22
-88
62
query I rowsort
SELECT col2 + + col1 * - tab0.col0 * - col2 AS col0 FROM tab0
----
3396
664200
68145
query III rowsort
SELECT ALL * FROM tab0 WHERE - col0 >= + col2 + col0 * + col1 + - tab0.col2
----
query III rowsort
SELECT ALL * FROM tab0 WHERE ( NULL ) BETWEEN NULL AND + col2 + col2 + col0
----
query I rowsort
SELECT DISTINCT - col1 * + col0 * col0 + + col1 FROM tab0 AS cor0
----
-118728
-49450
-720720
query I rowsort
SELECT ALL - col0 - cor0.col2 AS col2 FROM tab1 cor0
----
-121
-176
-57
query III rowsort
SELECT ALL * FROM tab1 WHERE ( NULL ) BETWEEN NULL AND ( NULL )
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 col1 FROM tab2 WHERE NULL IN ( - col1 * - tab2.col0 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-1296
SELECT col0 + + col1 + + col0 DIV col2 AS col1 FROM tab1
----
29
75
93
skipif mysql # not compatible
query I rowsort label-1296
SELECT col0 + + col1 + + col0 / col2 AS col1 FROM tab1
----
29
75
93
query I rowsort
SELECT DISTINCT + col1 FROM tab2 WHERE NOT ( NULL ) NOT BETWEEN NULL AND NULL
----
query I rowsort
SELECT ALL + col2 + + col0 - col1 AS col1 FROM tab2
----
100
3
45
query I rowsort
SELECT DISTINCT + col1 FROM tab2 WHERE NULL IN ( + col2 )
----
query I rowsort
SELECT col0 + col2 FROM tab0 WHERE NOT NULL BETWEEN col1 * - col2 AND NULL
----
query I rowsort
SELECT DISTINCT col2 * col1 + col2 AS col0 FROM tab2 WHERE NULL NOT BETWEEN NULL AND col1 * col1
----
query I rowsort
SELECT ALL col1 AS col1 FROM tab1 WHERE NOT col1 BETWEEN NULL AND - col0 * - col0
----
26
query I rowsort
SELECT - 17 * col1 FROM tab1
----
-170
-221
-442
query I rowsort
SELECT + cor0.col2 * ( - col1 ) FROM tab2 cor0
----
-1534
-646
-837
query I rowsort
SELECT col2 + ( col1 ) * - col1 AS col2 FROM tab1 AS cor0
----
-43
-622
-73
query I rowsort
SELECT DISTINCT + col1 * 16 * + col2 AS col0 FROM tab2
----
10336
13392
24544
onlyif mysql # use DIV operator for integer division
query I rowsort label-1307
SELECT + col0 DIV ( col0 ) FROM tab2 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-1307
SELECT + col0 / ( col0 ) FROM tab2 AS cor0
----
1
1
1
query I rowsort
SELECT + col2 * + 87 AS col0 FROM tab1 AS cor0
----
4698
4959
8352
query I rowsort
SELECT DISTINCT - + col2 * col0 + 36 FROM tab0 AS cor0
----
-7262
-756
1
query I rowsort
SELECT DISTINCT col1 + - 28 FROM tab1 AS cor0
----
-15
-18
-2
query I rowsort
SELECT - 79 - - ( - col1 ) AS col2 FROM tab1 cor0
----
-105
-89
-92
query I rowsort
SELECT DISTINCT col2 - - 79 AS col0 FROM tab2
----
105
106
117
query I rowsort
SELECT + 81 + 21 * col1 * 93 FROM tab1 cor0
----
19611
25470
50859
query I rowsort
SELECT DISTINCT - 11 FROM tab0 cor0
----
-11
onlyif mysql # use DIV operator for integer division
query I rowsort label-1315
SELECT - + col0 * col0 DIV 18 + col0 * + col1 FROM tab0 AS cor0
----
2032
3327
7659
skipif mysql # not compatible
query I rowsort label-1315
SELECT - + col0 * col0 / 18 + col0 * + col1 FROM tab0 AS cor0
----
2032
3327
7659
query I rowsort
SELECT DISTINCT - - ( col1 ) * + ( + 86 ) + - col0 AS col0 FROM tab2 AS cor0
----
1383
2659
4996
onlyif mysql # use DIV operator for integer division
query I rowsort label-1317
SELECT 24 DIV + col0 FROM tab1 cor0
----
0
0
8
skipif mysql # not compatible
query I rowsort label-1317
SELECT 24 / + col0 FROM tab1 cor0
----
0
0
8
query I rowsort
SELECT ALL + col0 + col0 * col1 AS col2 FROM tab0 AS cor0
----
2088
3430
8188
query I rowsort
SELECT - col0 * col1 + + col0 AS col0 FROM tab2 AS cor0
----
-1264
-210
-4524
query I rowsort
SELECT DISTINCT - 82 AS col1 FROM tab1, tab2 AS cor0
----
-82
onlyif mysql # use DIV operator for integer division
query I rowsort label-1321
SELECT + 11 DIV - col1 col1 FROM tab1 cor0
----
-1
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1321
SELECT + 11 / - col1 col1 FROM tab1 cor0
----
-1
0
0
query I rowsort
SELECT DISTINCT + + col1 * + col1 * + 84 + cor0.col0 * + cor0.col2 AS col1 FROM tab0 AS cor0
----
622056
702902
790391
query I rowsort
SELECT - tab2.col2 * 90 * cor0.col2 AS col2 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to 76c51d7d08fa583c961f7701f65ee07b
query I rowsort
SELECT DISTINCT + cor0.col2 * col2 * 2 AS col2 FROM tab2 AS cor0
----
1352
1458
2888
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 97 col0 FROM tab1 cor0
----
-97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 37 col0 FROM tab0
----
37
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1327
SELECT ( - tab2.col2 ) * - CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1327
SELECT ( - tab2.col2 ) * - CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT + - 75 * + col0 AS col2 FROM tab0 AS cor0
----
-1800
-2625
-6675
query I rowsort
SELECT ALL - + ( + col0 ) FROM tab2 cor0
----
-7
-78
-79
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( - col0 ) - col2 * - col0 col2 FROM tab1
----
159
3584
7600
query I rowsort
SELECT col1 * ( + col1 ) FROM tab2
----
289
3481
961
query I rowsort
SELECT ALL col1 + cor0.col2 * - 4 FROM tab2 AS cor0
----
-135
-45
-77
query I rowsort
SELECT - + col2 + + cor0.col1 * ( col0 ) * + col0 AS col1 FROM tab0 AS cor0
----
118824
49503
720729
query I rowsort
SELECT ALL 4 * col0 * 50 + - col0 AS col1 FROM tab0
----
17711
4776
6965
query I rowsort
SELECT DISTINCT - ( - ( cor1.col0 ) ) FROM tab1, tab1 AS cor0, tab2 AS cor1
----
7
78
79
query I rowsort
SELECT - col0 * - col1 + col2 AS col1 FROM tab2
----
1381
244
4628
query I rowsort
SELECT + col1 + - col0 * + 83 + + 91 FROM tab2
----
-459
-6324
-6449
query I rowsort
SELECT DISTINCT col2 + - ( 63 + + col2 ) FROM tab0 AS cor0
----
-63
query I rowsort
SELECT - cor0.col0 + col1 AS col1 FROM tab1 AS cor0
----
-54
-67
23
onlyif mysql # use DIV operator for integer division
query I rowsort label-1340
SELECT DISTINCT - col1 * + 78 + col1 DIV + col0 AS col0 FROM tab0 AS cor0
----
-6705
-7097
-7564
skipif mysql # not compatible
query I rowsort label-1340
SELECT DISTINCT - col1 * + 78 + col1 / + col0 AS col0 FROM tab0 AS cor0
----
-6705
-7097
-7564
query I rowsort
SELECT DISTINCT - col0 + ( col1 ) + col2 AS col2 FROM tab2 AS cor0
----
-24
51
7
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( col0 ) + 5 col0 FROM tab2
----
-2
-73
-74
query I rowsort
SELECT + ( + col1 ) + col0 * col1 AS col0 FROM tab0
----
2150
3492
8190
query I rowsort
SELECT + col1 * - tab1.col0 AS col0 FROM tab1
----
-1040
-640
-78
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1345
SELECT col1 + col1 + CAST( NULL AS DECIMAL ) FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1345
SELECT col1 + col1 + CAST ( NULL AS REAL ) FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - ( + col0 ) + + col1 - + 0 AS col0 FROM tab0 AS cor0
----
2
62
62
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1347
SELECT DISTINCT + ( col0 ) * - col2 + CAST( 88 * + col1 AS SIGNED ) FROM tab1 AS cor0
----
-2768
-6536
2126
skipif mysql # not compatible
query I rowsort label-1347
SELECT DISTINCT + ( col0 ) * - col2 + CAST ( 88 * + col1 AS INTEGER ) FROM tab1 AS cor0
----
-2768
-6536
2126
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1348
SELECT CAST( + 51 AS SIGNED ) * cor0.col2 FROM tab0, tab1 cor0
----
9 values hashing to 14bb0d5bbd9a42f799258f23dcd564bd
skipif mysql # not compatible
query I rowsort label-1348
SELECT CAST ( + 51 AS INTEGER ) * cor0.col2 FROM tab0, tab1 cor0
----
9 values hashing to 14bb0d5bbd9a42f799258f23dcd564bd
query I rowsort
SELECT ALL - col1 * ( + col1 ) AS col1 FROM tab1 AS cor0
----
-100
-169
-676
query I rowsort
SELECT col1 * - ( - cor0.col1 ) FROM tab0 AS cor0
----
7396
8281
9409
query I rowsort
SELECT ALL - col1 * - col0 * col0 AS col2 FROM tab2 AS cor0
----
106097
1519
358956
query I rowsort
SELECT - 76 AS col2 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to d90b4aa5f03b4a149aa925c4a88acca0
query I rowsort
SELECT col0 * - 16 - 23 FROM tab1
----
-1047
-1303
-71
query I rowsort
SELECT - 82 FROM tab0, tab2 cor0
----
9 values hashing to f800b0aad28b82b2deb67f7045c9a45c
query I rowsort
SELECT DISTINCT + tab0.col0 * - ( - tab0.col0 ) + - col0 * + col1 AS col2 FROM tab0
----
-1488
-178
-2170
query I rowsort
SELECT + 2 + tab1.col0 - - tab1.col1 * + 27 * + 30 AS col1 FROM tab1
----
10612
21065
8166
query I rowsort
SELECT col1 + tab1.col0 + + col1 FROM tab1
----
106
55
84
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1358
SELECT + + CAST( NULL AS SIGNED ) - 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-1358
SELECT + + CAST ( NULL AS INTEGER ) - col0 col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1359
SELECT DISTINCT + CAST( NULL AS SIGNED ) + + col1 * + col1 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-1359
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + + col1 * + col1 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT - - col2 * 53 FROM tab1 cor0
----
2862
3021
5088
query I rowsort
SELECT DISTINCT 86 * 51 * - cor0.col0 AS col2 FROM tab1 AS cor0
----
-13158
-280704
-350880
query I rowsort
SELECT + 17 - col1 AS col0 FROM tab1 AS cor0
----
-9
4
7
query I rowsort
SELECT DISTINCT col0 * + 1 AS col2 FROM tab2
----
7
78
79
query I rowsort
SELECT ALL - tab1.col2 + tab1.col2 FROM tab1
----
0
0
0
query I rowsort
SELECT ALL col0 * - 96 + col1 FROM tab0 AS cor0
----
-2218
-3263
-8453
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * col0 + col2 + + col2 col0 FROM tab1 AS cor0
----
1232
186
754
query I rowsort
SELECT 40 + 19 FROM tab0 AS cor0
----
59
59
59
query I rowsort
SELECT + cor0.col0 * + 76 + cor0.col2 * + 16 + + col2 AS col1 FROM tab1 AS cor0
----
1146
5833
7712
query I rowsort
SELECT cor2.col0 AS col1 FROM tab0, tab2 AS cor0 CROSS JOIN tab2, tab0 cor1, tab0 AS cor2
----
243 values hashing to ee8b23a58dda2d92e14ed437e06ed8d2
query I rowsort
SELECT DISTINCT + - ( col0 ) + col2 AS col0 FROM tab0 AS cor0
----
-34
-7
9
query I rowsort
SELECT - col2 + - 81 AS col0 FROM tab1 AS cor0
----
-135
-138
-177
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col1 ) col2 FROM tab1 cor0
----
10
13
26
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1373
SELECT DISTINCT - CAST( - col0 AS SIGNED ) * col0 + - 79 AS col2 FROM tab1 AS cor0
----
-70
4017
6321
skipif mysql # not compatible
query I rowsort label-1373
SELECT DISTINCT - CAST ( - col0 AS INTEGER ) * col0 + - 79 AS col2 FROM tab1 AS cor0
----
-70
4017
6321
onlyif mysql # use DIV operator for integer division
query I rowsort label-1374
SELECT DISTINCT col1 DIV 1 AS col1 FROM tab1 AS cor0
----
10
13
26
skipif mysql # not compatible
query I rowsort label-1374
SELECT DISTINCT col1 / 1 AS col1 FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT + cor0.col0 * col2 + col2 * col0 AS col0 FROM tab0 AS cor0
----
14596
1584
70
onlyif mysql # use DIV operator for integer division
query I rowsort label-1376
SELECT - col2 DIV CAST( col2 AS SIGNED ) col2 FROM tab0
----
-1
-1
-1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1376
SELECT - col2 / CAST ( col2 AS INTEGER ) col2 FROM tab0
----
-1
-1
-1
onlyif mysql # use DIV operator for integer division
query I rowsort label-1377
SELECT + + ( 62 ) DIV col0 + + col2 DIV + col1 + + cor0.col2 AS col2 FROM tab1 cor0
----
103
62
76
skipif mysql # not compatible
query I rowsort label-1377
SELECT + + ( 62 ) / col0 + + col2 / + col1 + + cor0.col2 AS col2 FROM tab1 cor0
----
103
62
76
query I rowsort
SELECT + cor0.col2 * col2 + - col0 + 64 AS col2 FROM tab0 AS cor0
----
1129
30
6699
query I rowsort
SELECT DISTINCT col0 + col1 * - col2 AS col0 FROM tab2 AS cor0
----
-1456
-567
-830
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 50 * - col2 + + ( - col0 * + col1 ) col2 FROM tab2 AS cor0
----
-1567
-3243
-5902
query I rowsort
SELECT ALL - col0 + col0 * 56 AS col0 FROM tab2 AS cor0
----
385
4290
4345
onlyif mysql # use DIV operator for integer division
query I rowsort label-1382
SELECT ALL col0 DIV col1 AS col0 FROM tab0 cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-1382
SELECT ALL col0 / col1 AS col0 FROM tab0 cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-1383
SELECT DISTINCT - + 76 DIV - col0 + - col2 col0 FROM tab0 AS cor0
----
-30
-82
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1383
SELECT DISTINCT - + 76 / - col0 + - col2 col0 FROM tab0 AS cor0
----
-30
-82
1
query I rowsort
SELECT - + 11 AS col0 FROM tab0 AS cor0
----
-11
-11
-11
query I rowsort
SELECT DISTINCT - col1 * cor0.col0 - col1 AS col1 FROM tab1 AS cor0
----
-104
-1053
-650
query I rowsort
SELECT ALL - col1 * + col0 AS col0 FROM tab2 cor0
----
-1343
-217
-4602
query I rowsort
SELECT col0 + col0 * - cor0.col2 AS col0 FROM tab0 AS cor0
----
-7209
-768
0
query I rowsort
SELECT DISTINCT + col1 + + col0 * + cor0.col2 AS col2 FROM tab0 AS cor0
----
132
7389
878
onlyif mysql # use DIV operator for integer division
query I rowsort label-1389
SELECT ALL - col1 - + col0 DIV + cor0.col0 FROM tab0 AS cor0
----
-87
-92
-98
skipif mysql # not compatible
query I rowsort label-1389
SELECT ALL - col1 - + col0 / + cor0.col0 FROM tab0 AS cor0
----
-87
-92
-98
query I rowsort
SELECT - + col2 * 17 AS col0 FROM tab1 AS cor0
----
-1632
-918
-969
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 62 * - cor0.col1 col0 FROM tab0, tab1 cor0
----
-1612
-620
-806
query I rowsort
SELECT - col2 - - col1 * + 50 AS col1 FROM tab0 cor0
----
4267
4468
4849
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col1 + - cor1.col1 col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 04c578e24c115d15b64a712464c2e13d
query I rowsort
SELECT DISTINCT + 32 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
32
query I rowsort
SELECT + + 12 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to d4f5a8e032294c3b9342821617800972
query I rowsort
SELECT DISTINCT col0 - - col2 * 3 AS col0 FROM tab2 AS cor0
----
156
193
88
onlyif mysql # use DIV operator for integer division
query I rowsort label-1397
SELECT + 48 DIV - col0 + + col1 * 83 AS col0 FROM tab0
----
7136
7553
8050
skipif mysql # not compatible
query I rowsort label-1397
SELECT + 48 / - col0 + + col1 * 83 AS col0 FROM tab0
----
7136
7553
8050
query I rowsort
SELECT + col0 * + 93 AS col1 FROM tab2
----
651
7254
7347
query I rowsort
SELECT DISTINCT - cor1.col0 FROM tab0, tab0 AS cor0, tab2, tab0 AS cor1
----
-24
-35
-89
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + col0 ) * + col2 * col2 col0 FROM tab0
----
26136
35
598436
query I rowsort
SELECT - - 36 + - col0 FROM tab1 AS cor0
----
-28
-44
33
query I rowsort
SELECT 38 + col1 + col2 * - cor0.col1 AS col0 FROM tab2 AS cor0
----
-1437
-591
-768
query I rowsort
SELECT ALL + tab0.col1 + + cor0.col2 AS col0 FROM tab0, tab2 cor0
----
9 values hashing to b266f8b689a93b61e6ea0be4166767f5
query I rowsort
SELECT + 72 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 92cc3d5daa550304e96c1542787691c7
onlyif mysql # use DIV operator for integer division
query I rowsort label-1405
SELECT ALL tab2.col1 DIV - col0 FROM tab2
----
-4
0
0
skipif mysql # not compatible
query I rowsort label-1405
SELECT ALL tab2.col1 / - col0 FROM tab2
----
-4
0
0
query I rowsort
SELECT ALL 45 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 14cec871edc37b5056cda01c8331fdca
query I rowsort
SELECT + 75 - 14 FROM tab2, tab1 AS cor0, tab1, tab2 cor1
----
81 values hashing to 9b52d3939da22c8931e3d5a72ddfb1b1
query I rowsort
SELECT DISTINCT 47 FROM tab2 AS cor0 CROSS JOIN tab0, tab2 cor1, tab1 AS cor2, tab0 AS cor3
----
47
query I rowsort
SELECT ALL ( - cor0.col2 + 37 ) AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to d906a343008fb6345be3dc1ca4248ba9
query I rowsort
SELECT DISTINCT col1 * - 35 + - col1 FROM tab1 cor0
----
-360
-468
-936
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + - col2 - + col2 col2 FROM tab0
----
-1
-33
-82
query I rowsort
SELECT ALL + col0 * ( + col1 ) AS col0 FROM tab1
----
1040
640
78
query I rowsort
SELECT DISTINCT ( - col0 ) * col0 + + 34 FROM tab0
----
-1191
-542
-7887
query I rowsort
SELECT DISTINCT - + 98 + + 85 AS col2 FROM tab1 AS cor0
----
-13
query I rowsort
SELECT + tab1.col0 FROM tab2, tab0, tab1 cor0, tab1
----
81 values hashing to e28bf7f922650ca423ade3642ce0285b
query I rowsort
SELECT DISTINCT - 38 AS col2 FROM tab1
----
-38
query I rowsort
SELECT ALL + 46 AS col0 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 2f97924b57b73102233df7c9ce8ad602
query I rowsort
SELECT DISTINCT + 14 FROM tab1, tab2 AS cor0, tab2 cor1, tab2 cor2
----
14
query I rowsort
SELECT 60 * + col0 AS col0 FROM tab0 AS cor0
----
1440
2100
5340
onlyif mysql # use DIV operator for integer division
query I rowsort label-1420
SELECT - cor0.col1 DIV - col1 + + col2 AS col2 FROM tab2 AS cor0
----
27
28
39
skipif mysql # not compatible
query I rowsort label-1420
SELECT - cor0.col1 / - col1 + + col2 AS col2 FROM tab2 AS cor0
----
27
28
39
query I rowsort
SELECT + col2 * col2 + + col1 * col0 FROM tab2 AS cor0
----
2787
5278
946
query I rowsort
SELECT col0 * - 42 FROM tab1 AS cor0
----
-126
-2688
-3360
query I rowsort
SELECT ALL + col0 * + col1 + col2 * col1 * col0 FROM tab0 AS cor0
----
672217
6790
70176
query I rowsort
SELECT col1 + col0 * - col2 + - col1 FROM tab2 cor0
----
-189
-2028
-3002
query I rowsort
SELECT DISTINCT + cor0.col2 * col1 * 3 AS col2 FROM tab0 AS cor0
----
22386
291
8514
onlyif mysql # use DIV operator for integer division
query I rowsort label-1426
SELECT ALL + col2 DIV + cor0.col1 AS col2 FROM tab1 AS cor0
----
2
5
7
skipif mysql # not compatible
query I rowsort label-1426
SELECT ALL + col2 / + cor0.col1 AS col2 FROM tab1 AS cor0
----
2
5
7
query I rowsort
SELECT - cor0.col1 - + ( + col1 ) FROM tab0 AS cor0
----
-172
-182
-194
query I rowsort
SELECT ALL col2 + - 31 FROM tab2
----
-4
-5
7
query I rowsort
SELECT DISTINCT col0 + col1 * ( col1 ) AS col2 FROM tab2 AS cor0
----
3559
368
968
query I rowsort
SELECT - 50 * - cor1.col0 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 480211018bc0256494927bdfd67e1c61
onlyif mysql # use DIV operator for integer division
query I rowsort label-1431
SELECT ALL - - col0 * cor0.col0 + col0 DIV + col0 AS col0 FROM tab2 AS cor0
----
50
6085
6242
skipif mysql # not compatible
query I rowsort label-1431
SELECT ALL - - col0 * cor0.col0 + col0 / + col0 AS col0 FROM tab2 AS cor0
----
50
6085
6242
onlyif mysql # use DIV operator for integer division
query I rowsort label-1432
SELECT ALL - col2 DIV col0 + tab2.col1 FROM tab2
----
17
28
59
skipif mysql # not compatible
query I rowsort label-1432
SELECT ALL - col2 / col0 + tab2.col1 FROM tab2
----
17
28
59
query I rowsort
SELECT 84 FROM tab0, tab1 AS cor0, tab2 cor1
----
27 values hashing to e8cd683fe8cea77b4326d9b80f21c74a
query I rowsort
SELECT DISTINCT - - cor0.col0 - - ( - cor0.col1 ) AS col0 FROM tab2 AS cor0
----
-24
19
62
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1435
SELECT DISTINCT - + cor0.col1 + CAST( ( - col2 ) AS SIGNED ) * - 15 AS col2 FROM tab1 cor0
----
1427
784
845
skipif mysql # not compatible
query I rowsort label-1435
SELECT DISTINCT - + cor0.col1 + CAST ( ( - col2 ) AS INTEGER ) * - 15 AS col2 FROM tab1 cor0
----
1427
784
845
query I rowsort
SELECT cor0.col2 + 41 AS col0 FROM tab0 AS cor0
----
123
42
74
query I rowsort
SELECT ALL + + col0 - - 36 FROM tab0 AS cor0
----
125
60
71
query I rowsort
SELECT DISTINCT + col0 + - 85 FROM tab1 cor0
----
-21
-5
-82
query I rowsort
SELECT DISTINCT + col1 * - ( + col1 ) AS col2 FROM tab2 AS cor0
----
-289
-3481
-961
query I rowsort
SELECT - - cor0.col2 + - 88 AS col1 FROM tab0 AS cor0
----
-55
-6
-87
query I rowsort
SELECT ALL - + col2 * 59 AS col2 FROM tab2 AS cor0
----
-1534
-1593
-2242
query I rowsort
SELECT ALL + col0 * + 0 FROM tab0 cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-1443
SELECT + col1 - + col2 * - col0 DIV + ( - col0 ) FROM tab0 AS cor0
----
53
9
96
skipif mysql # not compatible
query I rowsort label-1443
SELECT + col1 - + col2 * - col0 / + ( - col0 ) FROM tab0 AS cor0
----
53
9
96
query I rowsort
SELECT DISTINCT - col2 * cor0.col1 + col1 FROM tab1 AS cor0
----
-1235
-1378
-560
query I rowsort
SELECT DISTINCT - 33 * - col0 + col1 * - col0 FROM tab0 AS cor0
----
-1272
-2240
-5162
query I rowsort
SELECT 44 - col0 AS col0 FROM tab2 AS cor0
----
-34
-35
37
query I rowsort
SELECT - - 62 * 30 + - col1 + col2 * 90 AS col2 FROM tab1 AS cor0
----
10487
6694
6980
query I rowsort
SELECT 92 * + 13 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to ca751646c6cc041d0430b95a9ec584d5
query I rowsort
SELECT col1 + + 86 AS col2 FROM tab0
----
172
177
183
query I rowsort
SELECT ALL col2 - - ( - col0 + + col2 ) FROM tab0
----
-33
42
75
skipif mysql # not compatible
query I rowsort
SELECT ALL 11 + + col1 * + CAST ( col1 AS REAL ) AS col1 FROM tab1 cor0
----
111
180
687
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 + + col1 * col1 col1 FROM tab1 AS cor0
----
110
182
702
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1453
SELECT DISTINCT - + ( col1 ) - + CAST( + col0 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-137
-38
-96
skipif mysql # not compatible
query I rowsort label-1453
SELECT DISTINCT - + ( col1 ) - + CAST ( + col0 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-137
-38
-96
query I rowsort
SELECT + ( col2 ) + - 12 FROM tab2 AS cor0
----
14
15
26
onlyif mysql # use DIV operator for integer division
query I rowsort label-1455
SELECT DISTINCT - col1 + - cor0.col0 DIV + ( 14 + cor0.col0 ) FROM tab1 cor0
----
-10
-13
-26
skipif mysql # not compatible
query I rowsort label-1455
SELECT DISTINCT - col1 + - cor0.col0 / + ( 14 + cor0.col0 ) FROM tab1 cor0
----
-10
-13
-26
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 90 * col2 * - col0 col0 FROM tab1 AS cor0
----
14580
328320
691200
query I rowsort
SELECT - 92 + - col1 * + col0 FROM tab1 cor0
----
-1132
-170
-732
query I rowsort
SELECT DISTINCT - + col1 + + col1 * - col2 AS col0 FROM tab2 AS cor0
----
-1593
-663
-868
query I rowsort
SELECT 37 * 64 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to 0c6a52b0cc89b5eab59058bef782349f
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab2.col2 * - col2 col0 FROM tab2
----
-1444
-676
-729
query I rowsort
SELECT DISTINCT + col2 - col0 * 6 FROM tab2 AS cor0
----
-15
-436
-442
query I rowsort
SELECT 23 + cor0.col1 FROM tab1 AS cor0
----
33
36
49
query I rowsort
SELECT ALL - + ( col1 ) + col1 AS col0 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT ALL - 92 * cor0.col1 AS col2 FROM tab1 AS cor0
----
-1196
-2392
-920
query I rowsort
SELECT ALL - cor0.col2 - col1 FROM tab1 AS cor0
----
-109
-67
-80
query I rowsort
SELECT DISTINCT 52 * + cor0.col2 FROM tab2 AS cor0
----
1352
1404
1976
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * - ( - cor0.col1 ) col2 FROM tab2 cor0
----
1343
217
4602
query I rowsort
SELECT + 42 + - col1 FROM tab1
----
16
29
32
query I rowsort
SELECT ALL ( col0 * col0 ) FROM tab0
----
1225
576
7921
query I rowsort
SELECT ALL cor0.col1 FROM tab2, tab1 AS cor0, tab1 cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892
query I rowsort
SELECT ALL + 39 AS col0 FROM tab1
----
39
39
39
query I rowsort
SELECT DISTINCT - 63 + + col0 AS col1 FROM tab0 cor0
----
-28
-39
26
query I rowsort
SELECT ALL + + col1 + + col2 * + 51 AS col2 FROM tab2 AS cor0
----
1385
1408
1955
onlyif mysql # use DIV operator for integer division
query I rowsort label-1474
SELECT + col1 * + col1 + - cor0.col1 DIV 39 AS col1 FROM tab0 AS cor0
----
7394
8279
9407
skipif mysql # not compatible
query I rowsort label-1474
SELECT + col1 * + col1 + - cor0.col1 / 39 AS col1 FROM tab0 AS cor0
----
7394
8279
9407
query I rowsort
SELECT + 84 * col2 FROM tab1 AS cor0
----
4536
4788
8064
query I rowsort
SELECT ALL - 60 * + col1 AS col1 FROM tab0 AS cor0
----
-5160
-5460
-5820
onlyif mysql # use DIV operator for integer division
query I rowsort label-1477
SELECT + cor0.col0 DIV - col2 - 61 * col1 AS col0 FROM tab0 AS cor0
----
-5246
-5552
-5952
skipif mysql # not compatible
query I rowsort label-1477
SELECT + cor0.col0 / - col2 - 61 * col1 AS col0 FROM tab0 AS cor0
----
-5246
-5552
-5952
query I rowsort
SELECT - col2 * + col2 + col1 - cor0.col2 * + col0 AS col1 FROM tab1 cor0
----
-16883
-3052
-6887
onlyif mysql # use DIV operator for integer division
query I rowsort label-1479
SELECT col0 + - cor0.col2 DIV + 14 FROM tab0 AS cor0
----
22
35
84
skipif mysql # not compatible
query I rowsort label-1479
SELECT col0 + - cor0.col2 / + 14 FROM tab0 AS cor0
----
22
35
84
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1480
SELECT + ( + col2 ) + - CAST( - col2 AS SIGNED ) * col2 * 30 AS col1 FROM tab1 cor0
----
276576
87534
97527
skipif mysql # not compatible
query I rowsort label-1480
SELECT + ( + col2 ) + - CAST ( - col2 AS INTEGER ) * col2 * 30 AS col1 FROM tab1 cor0
----
276576
87534
97527
query I rowsort
SELECT ALL + ( - 40 ) FROM tab2, tab1 AS cor0
----
9 values hashing to f02f17e9bc17e514af018c6f245ed7a9
query I rowsort
SELECT DISTINCT tab2.col0 AS col1 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
7
78
79
query I rowsort
SELECT + - 20 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to f1cccb95c90889319e7a51e4ae9475bb
skipif mysql # not compatible
query I rowsort
SELECT + cor0.col1 + - CAST ( + col2 AS REAL ) FROM tab0 AS cor0
----
53
9
96
query I rowsort
SELECT DISTINCT - + col0 + - ( + cor0.col1 ) FROM tab2 AS cor0
----
-137
-38
-96
query I rowsort
SELECT ALL col0 + + cor0.col0 + + cor0.col2 * col2 * - cor0.col2 AS col0 FROM tab0 AS cor0
----
-35889
-551190
69
query I rowsort
SELECT DISTINCT - col1 * 22 - col1 AS col0 FROM tab0 AS cor0
----
-1978
-2093
-2231
query I rowsort
SELECT + col0 * + 34 + + col0 AS col0 FROM tab1 AS cor0
----
105
2240
2800
query I rowsort
SELECT DISTINCT col1 * 15 * + 94 + - col1 FROM tab2 AS cor0
----
23953
43679
83131
query I rowsort
SELECT ALL - col2 + 74 FROM tab2 AS cor0
----
36
47
48
query I rowsort
SELECT - cor0.col1 + + col2 * col2 AS col0 FROM tab1 AS cor0
----
2890
3239
9203
query I rowsort
SELECT ALL col0 * + 60 + 21 AS col2 FROM tab2 AS cor0
----
441
4701
4761
onlyif mysql # use DIV operator for integer division
query I rowsort label-1493
SELECT ALL + col0 DIV 1 FROM tab1 AS cor0
----
3
64
80
skipif mysql # not compatible
query I rowsort label-1493
SELECT ALL + col0 / 1 FROM tab1 AS cor0
----
3
64
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 + + col2 col2 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT ALL + - col2 * col2 + col1 FROM tab0 cor0
----
-1003
-6633
96
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1496
SELECT DISTINCT + col0 * + ( + cor0.col2 * + CAST( NULL AS DECIMAL ) ) AS col1 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-1496
SELECT DISTINCT + col0 * + ( + cor0.col2 * + CAST ( NULL AS REAL ) ) AS col1 FROM tab1 AS cor0
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-1497
SELECT ALL + - cor0.col1 DIV - 54 AS col2 FROM tab0 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-1497
SELECT ALL + - cor0.col1 / - 54 AS col2 FROM tab0 AS cor0
----
1
1
1
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1498
SELECT + + CAST( col1 AS SIGNED ) * + col0 * - 25 AS col1 FROM tab0 AS cor0
----
-202475
-51600
-84875
skipif mysql # not compatible
query I rowsort label-1498
SELECT + + CAST ( col1 AS INTEGER ) * + col0 * - 25 AS col1 FROM tab0 AS cor0
----
-202475
-51600
-84875
query I rowsort
SELECT DISTINCT ( + cor0.col1 ) + + col1 FROM tab2 AS cor0
----
118
34
62
query I rowsort
SELECT + - 15 + + cor0.col1 FROM tab0 AS cor0
----
71
76
82
query I rowsort
SELECT ALL - 38 * col0 + - col2 * - ( - col2 ) AS col1 FROM tab0 AS cor0
----
-10106
-1331
-2001
query I rowsort
SELECT ALL 58 + - col1 * col0 + cor0.col1 * - 13 FROM tab2 AS cor0
----
-1506
-5311
-562
query I rowsort
SELECT ( cor0.col0 ) FROM tab1, tab2 AS cor0
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a
query I rowsort
SELECT - - col1 + col2 AS col0 FROM tab1 cor0
----
109
67
80
query I rowsort
SELECT + col1 * - 60 FROM tab0 AS cor0
----
-5160
-5460
-5820
query I rowsort
SELECT + + col2 * + cor0.col0 + col2 AS col2 FROM tab1 cor0
----
216
3705
7776
query I rowsort
SELECT ( cor0.col1 ) * - 47 AS col1 FROM tab0 AS cor0
----
-4042
-4277
-4559
onlyif mysql # use DIV operator for integer division
query I rowsort label-1508
SELECT - - 81 * col1 DIV + col0 FROM tab1 AS cor0
----
12
13
702
skipif mysql # not compatible
query I rowsort label-1508
SELECT - - 81 * col1 / + col0 FROM tab1 AS cor0
----
12
13
702
query I rowsort
SELECT - 76 AS col1 FROM tab1 cor0
----
-76
-76
-76
onlyif mysql # use DIV operator for integer division
query I rowsort label-1510
SELECT col1 DIV col0 + - 22 FROM tab0 AS cor0
----
-19
-20
-21
skipif mysql # not compatible
query I rowsort label-1510
SELECT col1 / col0 + - 22 FROM tab0 AS cor0
----
-19
-20
-21
query I rowsort
SELECT + col1 + 25 AS col1 FROM tab0 AS cor0
----
111
116
122
query I rowsort
SELECT + col1 * + 63 AS col1 FROM tab2 AS cor0
----
1071
1953
3717
query I rowsort
SELECT + - col2 * - 39 FROM tab1 cor0
----
2106
2223
3744
query I rowsort
SELECT DISTINCT ( - col1 ) + + 21 FROM tab0
----
-65
-70
-76
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1515
SELECT col2 * - CAST( col0 AS SIGNED ) + - col2 FROM tab2 cor0
----
-2054
-216
-3040
skipif mysql # not compatible
query I rowsort label-1515
SELECT col2 * - CAST ( col0 AS INTEGER ) + - col2 FROM tab2 cor0
----
-2054
-216
-3040
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 65 col2 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
-65
query I rowsort
SELECT 63 * col1 + 23 FROM tab2
----
1094
1976
3740
query I rowsort
SELECT DISTINCT + col2 * - 13 FROM tab2 AS cor0
----
-338
-351
-494
query I rowsort
SELECT ALL - tab2.col1 * col1 AS col2 FROM tab2
----
-289
-3481
-961
query I rowsort
SELECT - cor0.col0 - - ( col2 * - col0 ) FROM tab1 AS cor0
----
-165
-3712
-7760
onlyif mysql # use DIV operator for integer division
query I rowsort label-1521
SELECT ALL + cor0.col2 DIV - cor0.col1 + - col2 AS col1 FROM tab0 AS cor0
----
-1
-33
-82
skipif mysql # not compatible
query I rowsort label-1521
SELECT ALL + cor0.col2 / - cor0.col1 + - col2 AS col1 FROM tab0 AS cor0
----
-1
-33
-82
query I rowsort
SELECT DISTINCT - - cor0.col0 * - col0 AS col0 FROM tab0 cor0
----
-1225
-576
-7921
query I rowsort
SELECT ALL + - col2 + - 83 FROM tab1 AS cor0
----
-137
-140
-179
onlyif mysql # use DIV operator for integer division
query I rowsort label-1524
SELECT DISTINCT col0 * tab0.col0 + - 9 DIV - col0 FROM tab0
----
1225
576
7921
skipif mysql # not compatible
query I rowsort label-1524
SELECT DISTINCT col0 * tab0.col0 + - 9 / - col0 FROM tab0
----
1225
576
7921
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col2 - - ( - col2 * - col1 ) col1 FROM tab0 AS cor0
----
2871
7544
98
query I rowsort
SELECT + col1 * col1 * col2 - - col0 AS col0 FROM tab2 cor0
----
11061
25954
90584
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + cor0.col0 col0 FROM tab0 AS cor0
----
-9
34
7
query I rowsort
SELECT - + col1 - + col0 FROM tab0 cor0
----
-110
-132
-180
query I rowsort
SELECT ALL - col2 * - ( ( + col2 ) ) * - col1 - - col0 * col0 * col1 AS col1 FROM tab0 AS cor0
----
-44118
108927
118728
query I rowsort
SELECT DISTINCT - cor0.col1 * 42 + 29 FROM tab0 cor0
----
-3583
-3793
-4045
query I rowsort
SELECT DISTINCT 79 + 38 * - cor0.col1 + - ( 14 * col0 + ( + 74 ) ) AS col0 FROM tab0 AS cor0
----
-3599
-4171
-4699
query I rowsort
SELECT + cor1.col2 * - 47 AS col0 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to cf879eea7d74a33cb8a0e8d9ad64129f
query I rowsort
SELECT ALL 96 * + 88 * + cor2.col2 + cor2.col1 * cor1.col1 FROM tab2, tab2 AS cor0, tab1 AS cor1, tab1 AS cor2
----
81 values hashing to 49131f7818c6618b29a5150279272012
query I rowsort
SELECT DISTINCT - - 99 FROM tab2 AS cor0
----
99
query I rowsort
SELECT ALL + - col1 + 87 AS col1 FROM tab0 AS cor0
----
-10
-4
1
query I rowsort
SELECT - + ( - cor0.col1 ) + col0 AS col0 FROM tab1 AS cor0
----
29
74
93
query I rowsort
SELECT - tab0.col1 * col2 * col0 AS col0 FROM tab0
----
-3395
-664118
-68112
query I rowsort
SELECT DISTINCT - col1 * + 82 - + 64 FROM tab1
----
-1130
-2196
-884
query I rowsort
SELECT DISTINCT col1 * + col1 - - col0 * + 64 * - col2 FROM tab0 AS cor0
----
-43292
-458791
7169
query I rowsort
SELECT - - 71 AS col0 FROM tab1 AS cor0
----
71
71
71
query I rowsort
SELECT DISTINCT - + ( - col1 ) + + col0 FROM tab0 AS cor0
----
110
132
180
query I rowsort
SELECT DISTINCT col0 * - col1 * - col2 AS col2 FROM tab1
----
36480
4212
99840
query I rowsort
SELECT DISTINCT col1 AS col0 FROM tab0 WHERE NOT ( NULL ) BETWEEN - col2 / - col0 AND ( NULL )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-1544
SELECT ALL col0 DIV col1 + + tab2.col0 AS col2 FROM tab2
----
7
79
83
skipif mysql # not compatible
query I rowsort label-1544
SELECT ALL col0 / col1 + + tab2.col0 AS col2 FROM tab2
----
7
79
83
query I rowsort
SELECT ALL - col2 * - col1 + col0 * col1 FROM tab1
----
1210
1482
2288
query I rowsort
SELECT DISTINCT + col2 / - col0 FROM tab0 WHERE NOT NULL <> - col0
----
query I rowsort
SELECT DISTINCT col0 AS col2 FROM tab0 WHERE + col2 <> + col2 / col1
----
24
35
89
query I rowsort
SELECT DISTINCT + ( col1 ) * 36 FROM tab2
----
1116
2124
612
query I rowsort
SELECT col0 + col1 * 23 FROM tab2
----
1435
470
720
query I rowsort
SELECT ( + col0 + ( - tab0.col1 ) ) FROM tab0
----
-2
-62
-62
query I rowsort
SELECT 72 + + col2 AS col1 FROM tab0
----
105
154
73
query I rowsort
SELECT + col1 * col1 - - tab2.col1 * 96 AS col1 FROM tab2
----
1921
3937
9145
query I rowsort
SELECT - + col2 + - 63 * - col1 FROM tab1 AS cor0
----
1584
573
723
query I rowsort
SELECT DISTINCT - + 77 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
-77
query I rowsort
SELECT col0 * + tab1.col0 + col2 FROM tab1
----
4153
63
6496
query I rowsort
SELECT ALL + col2 * + ( - 94 ) AS col0 FROM tab0
----
-3102
-7708
-94
query I rowsort
SELECT ALL col1 + ( cor0.col2 ) * col0 FROM tab1 AS cor0
----
188
3658
7693
query I rowsort
SELECT ALL + col0 * ( 94 * col2 ) FROM tab2
----
17766
190632
282188
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1559
SELECT CAST( NULL AS DECIMAL ) AS col0 FROM tab0, tab1 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-1559
SELECT CAST ( NULL AS REAL ) AS col0 FROM tab0, tab1 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT ALL - cor0.col1 * - 89 FROM tab0 AS cor0
----
7654
8099
8633
query I rowsort
SELECT ALL + col0 - 99 FROM tab2 AS cor0
----
-20
-21
-92
onlyif mysql # use DIV operator for integer division
query I rowsort label-1562
SELECT DISTINCT - col2 DIV - col2 col2 FROM tab1 AS cor0
----
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1562
SELECT DISTINCT - col2 / - col2 col2 FROM tab1 AS cor0
----
1
query I rowsort
SELECT cor0.col2 * + col1 AS col2 FROM tab2 cor0
----
1534
646
837
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1564
SELECT DISTINCT - CAST( NULL AS SIGNED ) + col2 FROM tab2
----
NULL
skipif mysql # not compatible
query I rowsort label-1564
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + col2 FROM tab2
----
NULL
query I rowsort
SELECT DISTINCT col0 + col1 * tab2.col1 FROM tab2
----
3559
368
968
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( 57 + - tab0.col2 ) * ( + col2 ) col1 FROM tab0
----
-56
-792
2050
query I rowsort
SELECT ALL + col0 + + col0 * col0 AS col1 FROM tab2
----
56
6162
6320
query I rowsort
SELECT DISTINCT 94 AS col1 FROM tab2, tab1 AS cor0
----
94
onlyif mysql # use DIV operator for integer division
query I rowsort label-1569
SELECT ALL CAST( - col0 AS SIGNED ) DIV - col2 AS col1 FROM tab0 AS cor0
----
0
1
35
skipif mysql # not compatible
query I rowsort label-1569
SELECT ALL CAST ( - col0 AS INTEGER ) / - col2 AS col1 FROM tab0 AS cor0
----
0
1
35
query I rowsort
SELECT ALL + cor0.col1 + - 26 * + col0 FROM tab1 AS cor0
----
-1654
-2067
-52
query I rowsort
SELECT DISTINCT - 66 + col2 FROM tab1 cor0
----
-12
-9
30
query I rowsort
SELECT + 16 * col1 * + col2 FROM tab2 AS cor0
----
10336
13392
24544
query I rowsort
SELECT ALL - - col0 + col2 * col2 FROM tab2 cor0
----
1523
736
754
query I rowsort
SELECT DISTINCT + - 8 FROM tab0 AS cor0
----
-8
query I rowsort
SELECT + col0 * + col0 * + col0 AS col1 FROM tab1 cor0
----
262144
27
512000
onlyif mysql # use DIV operator for integer division
query I rowsort label-1576
SELECT ALL + col0 + col1 DIV col1 FROM tab1 AS cor0
----
4
65
81
skipif mysql # not compatible
query I rowsort label-1576
SELECT ALL + col0 + col1 / col1 FROM tab1 AS cor0
----
4
65
81
query I rowsort
SELECT - cor0.col2 + + col0 * - col0 FROM tab0 cor0
----
-1226
-609
-8003
query I rowsort
SELECT ALL - + col2 * + col2 + col1 * col2 FROM tab0 AS cor0
----
1749
738
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-1579
SELECT ALL - tab0.col2 + + col2 DIV col2 + - col2 FROM tab0
----
-1
-163
-65
skipif mysql # not compatible
query I rowsort label-1579
SELECT ALL - tab0.col2 + + col2 / col2 + - col2 FROM tab0
----
-1
-163
-65
query I rowsort
SELECT ALL ( ( - col2 ) ) * + col1 + - col1 FROM tab1
----
-1261
-1430
-580
query I rowsort
SELECT ALL - 98 + + tab1.col2 FROM tab1, tab1 AS cor0
----
9 values hashing to cff4adf31be5be7a176bb1430cdefa80
query I rowsort
SELECT + 9 * col1 + - 22 AS col0 FROM tab0 AS cor0
----
752
797
851
query I rowsort
SELECT - 93 * + cor0.col1 AS col2 FROM tab2 AS cor0
----
-1581
-2883
-5487
query I rowsort
SELECT - 92 * cor0.col0 + col1 FROM tab1 cor0
----
-250
-5878
-7347
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * col2 col0 FROM tab1 AS cor0
----
2916
3249
9216
onlyif mysql # use DIV operator for integer division
query I rowsort label-1586
SELECT 56 * col2 DIV - ( + col0 ) + - col0 AS col1 FROM tab2 AS cor0
----
-105
-223
-96
skipif mysql # not compatible
query I rowsort label-1586
SELECT 56 * col2 / - ( + col0 ) + - col0 AS col1 FROM tab2 AS cor0
----
-105
-223
-96
query I rowsort
SELECT DISTINCT - - col1 * col2 - cor0.col2 FROM tab0 AS cor0
----
2805
7380
96
query I rowsort
SELECT ALL col0 * + tab1.col1 * col1 AS col2 FROM tab1
----
13520
2028
6400
query I rowsort
SELECT ALL - 69 * col2 + + col0 * col1 FROM tab2
----
-1279
-1646
2808
onlyif mysql # use DIV operator for integer division
query I rowsort label-1590
SELECT DISTINCT - col2 + + 66 DIV col0 AS col0 FROM tab1
----
-32
-56
-96
skipif mysql # not compatible
query I rowsort label-1590
SELECT DISTINCT - col2 + + 66 / col0 AS col0 FROM tab1
----
-32
-56
-96
query I rowsort
SELECT col2 + + cor0.col1 + - col2 FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT + 49 * cor0.col1 AS col0 FROM tab2 AS cor0
----
1519
2891
833
query I rowsort
SELECT + ( + 15 ) + col2 FROM tab1
----
111
69
72
query I rowsort
SELECT DISTINCT col0 + + 29 FROM tab0
----
118
53
64
query I rowsort
SELECT ALL col1 * + ( + col0 ) + col0 FROM tab0
----
2088
3430
8188
query I rowsort
SELECT DISTINCT - 14 * - 96 + col1 AS col2 FROM tab1
----
1354
1357
1370
query I rowsort
SELECT ALL + + 74 * + col1 AS col0 FROM tab0 AS cor0
----
6364
6734
7178
query I rowsort
SELECT - col0 + col2 * + cor0.col2 FROM tab1 AS cor0
----
2913
3185
9136
query I rowsort
SELECT ALL 59 AS col2 FROM tab2 cor0
----
59
59
59
query I rowsort
SELECT - col0 + col1 * + col2 FROM tab0 cor0
----
2814
62
7373
query I rowsort
SELECT ALL + col1 * col0 + col2 - - col1 FROM tab0 AS cor0
----
2183
3493
8272
query I rowsort
SELECT ALL - col2 * - col0 + - cor0.col2 FROM tab1 AS cor0
----
108
3591
7584
query I rowsort
SELECT ALL + col0 AS col2 FROM tab2 WHERE NULL < - col1
----
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col1 IN ( - col2 )
----
query I rowsort
SELECT col2 * col1 - + col2 * - col1 AS col2 FROM tab1
----
1140
2496
2808
query I rowsort
SELECT DISTINCT + col0 - + col0 AS col0 FROM tab2
----
0
query I rowsort
SELECT DISTINCT col2 * + col1 * col2 FROM tab0
----
611884
93654
97
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col2 NOT BETWEEN ( NULL ) AND ( - col0 )
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + tab2.col2 + col0 col0 FROM tab2
----
104
117
34
onlyif mysql # use DIV operator for integer division
query I rowsort label-1610
SELECT DISTINCT col0 * col2 DIV tab1.col1 AS col1 FROM tab1
----
364
590
6
skipif mysql # not compatible
query I rowsort label-1610
SELECT DISTINCT col0 * col2 / tab1.col1 AS col1 FROM tab1
----
364
590
6
onlyif mysql # use DIV operator for integer division
query I rowsort label-1611
SELECT col1 DIV col1 + col2 + tab2.col0 FROM tab2
----
105
118
35
skipif mysql # not compatible
query I rowsort label-1611
SELECT col1 / col1 + col2 + tab2.col0 FROM tab2
----
105
118
35
query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT IN ( + col2 - col2 )
----
query I rowsort
SELECT - col1 FROM tab0 WHERE NULL IN ( col2 + col1 )
----
query I rowsort
SELECT DISTINCT col2 * col1 * + col1 FROM tab0
----
244068
679042
9409
query I rowsort
SELECT col1 + - tab1.col1 * - col0 FROM tab1
----
104
1053
650
query I rowsort
SELECT DISTINCT col0 AS col2 FROM tab0 WHERE NULL IN ( col2 )
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * + col0 * col0 col1 FROM tab1
----
233472
486
614400
query I rowsort
SELECT DISTINCT col1 * col0 * + tab0.col1 AS col0 FROM tab0
----
177504
329315
737009
query I rowsort
SELECT col0 + - col0 + col1 * tab0.col1 FROM tab0
----
7396
8281
9409
query I rowsort
SELECT col0 * - col1 + col0 AS col1 FROM tab1
----
-576
-75
-960
query I rowsort
SELECT ALL col0 AS col2 FROM tab0 WHERE NOT - col1 * - col2 IN ( col2 )
----
24
35
89
query I rowsort
SELECT ALL col0 + col0 * col2 FROM tab2
----
196
2106
3081
query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT col1 IN ( col1 + - col0 ) OR NOT col1 * cor0.col2 BETWEEN ( NULL ) AND col1 * + col0
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7
query I rowsort
SELECT - col1 + col0 * - col1 - + col0 * col1 AS col1 FROM tab1 AS cor0
----
-1290
-182
-2093
query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( - col2 * - cor0.col1 * + col2 ) < ( - col1 )
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7
query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( + col0 * col0 ) NOT IN ( col0 * + col1 * col2 )
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7
query I rowsort
SELECT + col1 * - col1 * - tab2.col0 FROM tab2
----
22831
271518
6727
query III rowsort
SELECT * FROM tab1 WHERE NOT col0 * col0 IN ( + col2 )
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d
onlyif mysql # use DIV operator for integer division
query I rowsort label-1629
SELECT col2 + + col1 * col0 + col1 DIV col0 FROM tab0 AS cor0
----
2100
3398
8182
skipif mysql # not compatible
query I rowsort label-1629
SELECT col2 + + col1 * col0 + col1 / col0 FROM tab0 AS cor0
----
2100
3398
8182
query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT IN ( col1 * cor0.col1 )
----
query I rowsort
SELECT + col2 * - col0 * tab2.col2 FROM tab2 WHERE NOT NULL NOT IN ( - col0 + - col1 )
----
query I rowsort
SELECT tab0.col1 - - 62 * col2 AS col2 FROM tab0
----
159
2132
5175
query I rowsort
SELECT DISTINCT + + col1 * col2 * + col2 + - col0 FROM tab1 AS cor0
----
119728
32426
75813
query I rowsort
SELECT - - ( + 26 ) * col0 AS col0 FROM tab2 AS cor0
----
182
2028
2054
query I rowsort
SELECT + - 61 + col1 FROM tab1 cor0
----
-35
-48
-51
query I rowsort
SELECT ALL + - col2 * col0 + + ( col0 ) AS col0 FROM tab0 AS cor0
----
-7209
-768
0
query I rowsort
SELECT DISTINCT + + 25 + col1 FROM tab2 AS cor0
----
42
56
84
query I rowsort
SELECT - + col0 * + cor0.col1 - - col1 * - col0 AS col2 FROM tab1 AS cor0
----
-1280
-156
-2080
query I rowsort
SELECT ALL + + 26 * col1 * col2 FROM tab1 AS cor0
----
14820
32448
36504
query I rowsort
SELECT DISTINCT ( col1 ) + 89 * 96 AS col0 FROM tab1 AS cor0
----
8554
8557
8570
query I rowsort
SELECT ALL - 93 * col2 + - col2 FROM tab0 AS cor0
----
-3102
-7708
-94
query I rowsort
SELECT + cor0.col1 * - 3 FROM tab2 AS cor0
----
-177
-51
-93
query I rowsort
SELECT + 72 - - cor0.col2 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 343af8049d2e5c4b0973462fda5b85f4
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1644
SELECT - CAST( NULL AS SIGNED ) * 10 FROM tab0, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-1644
SELECT - CAST ( NULL AS INTEGER ) * 10 FROM tab0, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT col0 + col1 * + col2 * cor0.col0 AS col2 FROM tab0 AS cor0
----
3430
664207
68136
query I rowsort
SELECT col1 * + 35 FROM tab2 AS cor0
----
1085
2065
595
query I rowsort
SELECT ALL + col1 * + 15 * - cor0.col0 + col2 AS col1 FROM tab0 AS cor0
----
-121403
-30927
-50924
query I rowsort
SELECT DISTINCT col0 * col1 + col1 FROM tab2 AS cor0
----
1360
248
4661
onlyif mysql # use DIV operator for integer division
query I rowsort label-1649
SELECT ALL + col2 * col2 + 94 DIV col2 + + ( col0 + + col2 ) col0 FROM tab0 AS cor0
----
1148
131
6896
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1649
SELECT ALL + col2 * col2 + 94 / col2 + + ( col0 + + col2 ) col0 FROM tab0 AS cor0
----
1148
131
6896
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1650
SELECT ALL col0 * - CAST( 60 + col2 AS SIGNED ) * + ( + col2 ) AS col2 FROM tab0
----
-1036316
-2135
-73656
skipif mysql # not compatible
query I rowsort label-1650
SELECT ALL col0 * - CAST ( 60 + col2 AS INTEGER ) * + ( + col2 ) AS col2 FROM tab0
----
-1036316
-2135
-73656
query I rowsort
SELECT ALL + col1 * + 36 AS col1 FROM tab0
----
3096
3276
3492
query I rowsort
SELECT DISTINCT - col1 * - col0 * col1 + + 95 AS col2 FROM tab1 AS cor0
----
13615
2123
6495
query I rowsort
SELECT DISTINCT col2 * + col2 + cor0.col0 FROM tab0 AS cor0
----
1113
36
6813
onlyif mysql # use DIV operator for integer division
query I rowsort label-1654
SELECT ALL - ( 35 ) DIV - col2 AS col2 FROM tab1 cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-1654
SELECT ALL - ( 35 ) / - col2 AS col2 FROM tab1 cor0
----
0
0
0
query I rowsort
SELECT DISTINCT 98 * + col2 - - cor0.col2 AS col0 FROM tab0 cor0
----
3267
8118
99
query I rowsort
SELECT - 63 * - col1 AS col2 FROM tab1 AS cor0
----
1638
630
819
query I rowsort
SELECT DISTINCT tab0.col1 * + col2 + + 26 * - col1 FROM tab0
----
-2425
5096
602
query I rowsort
SELECT DISTINCT col2 + - 38 * + ( col1 ) FROM tab2
----
-1151
-2216
-608
query I rowsort
SELECT DISTINCT + - cor0.col1 + - col2 * cor0.col0 FROM tab2 AS cor0
----
-2087
-220
-3019
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + ( col0 ) ) * + col2 col1 FROM tab1 AS cor0
----
162
3648
7680
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1661
SELECT + CAST( NULL AS SIGNED ) + - col2 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1661
SELECT + CAST ( NULL AS INTEGER ) + - col2 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - 1 * - cor0.col2 FROM tab2 AS cor0
----
26
27
38
query I rowsort
SELECT + 9 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0, tab2 AS cor1
----
27 values hashing to ebef7303942834ca1e6ca8604ec18a07
query I rowsort
SELECT - col2 + - ( + col2 + - col0 ) * + col0 FROM tab2
----
-167
3201
4030
query I rowsort
SELECT ( ( col2 ) ) + 7 AS col2 FROM tab2
----
33
34
45
query I rowsort
SELECT + tab0.col1 FROM tab0, tab2, tab0 cor0
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1667
SELECT DISTINCT + CAST( + col1 AS SIGNED ) * col2 + ( - col1 ) AS col1 FROM tab2 AS cor0
----
1475
629
806
skipif mysql # not compatible
query I rowsort label-1667
SELECT DISTINCT + CAST ( + col1 AS INTEGER ) * col2 + ( - col1 ) AS col1 FROM tab2 AS cor0
----
1475
629
806
query I rowsort
SELECT - 90 AS col1 FROM tab1 cor0
----
-90
-90
-90
query I rowsort
SELECT ALL + 22 AS col2 FROM tab0
----
22
22
22
query I rowsort
SELECT + 86 + col1 * 91 - col0 FROM tab1
----
1189
2449
932
query I rowsort
SELECT col1 * + col0 - - 30 FROM tab2
----
1373
247
4632
query I rowsort
SELECT DISTINCT - - 10 FROM tab0, tab1, tab2 AS cor0
----
10
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 - tab0.col2 col1 FROM tab0
----
0
0
0
query I rowsort
SELECT ALL + tab1.col1 * - tab1.col0 * col1 AS col1 FROM tab1
----
-13520
-2028
-6400
query I rowsort
SELECT + col1 * cor0.col2 - - 16 * col2 * col1 AS col0 FROM tab1 AS cor0
----
21216
23868
9690
query I rowsort
SELECT col1 * col2 * col1 - 58 * col2 FROM tab2
----
24381
8778
88998
query I rowsort
SELECT col2 + col2 + col1 * + tab1.col1 FROM tab1
----
214
361
784
query I rowsort
SELECT ALL tab0.col0 - col2 * col2 FROM tab0
----
-1065
-6635
34
onlyif mysql # use DIV operator for integer division
query I rowsort label-1679
SELECT + + col1 + cor0.col0 DIV + col2 AS col0 FROM tab1 AS cor0
----
11
13
26
skipif mysql # not compatible
query I rowsort label-1679
SELECT + + col1 + cor0.col0 / + col2 AS col0 FROM tab1 AS cor0
----
11
13
26
query I rowsort
SELECT ALL + - col2 * 52 + col2 FROM tab0 cor0
----
-1683
-4182
-51
query I rowsort
SELECT col2 + - 81 AS col0 FROM tab2 AS cor0
----
-43
-54
-55
query I rowsort
SELECT + ( - 8 ) AS col1 FROM tab0, tab2 cor0
----
9 values hashing to 47f43f23dcd23959d97d8e3b0aab692e
query I rowsort
SELECT DISTINCT - col2 * + 24 AS col2 FROM tab1 AS cor0
----
-1296
-1368
-2304
query I rowsort
SELECT - cor0.col2 + - 47 * + col2 AS col0 FROM tab2 AS cor0
----
-1248
-1296
-1824
query I rowsort
SELECT DISTINCT + col1 * + cor0.col2 + - 60 * - col0 AS col2 FROM tab1 AS cor0
----
1584
4410
6048
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + 28 + col1 col0 FROM tab2 AS cor0
----
1711
493
899
query I rowsort
SELECT col2 * + 19 + - col2 * col1 FROM tab1 cor0
----
-378
513
576
query I rowsort
SELECT DISTINCT - col0 + + 65 AS col1 FROM tab2 AS cor0
----
-13
-14
58
query I rowsort
SELECT + col2 + - 94 + 58 AS col0 FROM tab1 AS cor0
----
18
21
60
query I rowsort
SELECT + col2 + - ( col1 ) AS col2 FROM tab2 AS cor0
----
-33
-4
21
query I rowsort
SELECT DISTINCT + col1 * + 3 * + col2 AS col2 FROM tab2 AS cor0
----
1938
2511
4602
query I rowsort
SELECT ALL 29 * col1 AS col2 FROM tab0 AS cor0
----
2494
2639
2813
query I rowsort
SELECT 19 * - col0 FROM tab2 AS cor0
----
-133
-1482
-1501
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1694
SELECT ALL CAST( NULL AS SIGNED ) col2 FROM tab2, tab0 AS cor0, tab2 cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1694
SELECT ALL CAST ( NULL AS INTEGER ) col2 FROM tab2, tab0 AS cor0, tab2 cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
query I rowsort
SELECT + 98 * + col0 + - ( - cor0.col2 + col2 ) AS col2 FROM tab0 AS cor0
----
2352
3430
8722
query I rowsort
SELECT 26 * col2 AS col1 FROM tab1 AS cor0
----
1404
1482
2496
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 51 - col0 col2 FROM tab2 AS cor0
----
-27
-28
44
query I rowsort
SELECT 58 * col0 FROM tab0 AS cor0
----
1392
2030
5162
query I rowsort
SELECT ( - 46 ) + - cor0.col0 FROM tab1 cor0
----
-110
-126
-49
query I rowsort
SELECT DISTINCT + col1 * col0 + cor0.col0 FROM tab2 AS cor0
----
1422
224
4680
query I rowsort
SELECT ALL 55 + + 75 * col0 AS col1 FROM tab0 AS cor0
----
1855
2680
6730
query I rowsort
SELECT 77 + + col1 FROM tab0 AS cor0
----
163
168
174
query I rowsort
SELECT col0 + ( ( + col1 ) ) AS col0 FROM tab0
----
110
132
180
onlyif mysql # use DIV operator for integer division
query I rowsort label-1704
SELECT - col1 * col1 - col0 DIV + col1 FROM tab0 AS cor0
----
-7396
-8281
-9409
skipif mysql # not compatible
query I rowsort label-1704
SELECT - col1 * col1 - col0 / + col1 FROM tab0 AS cor0
----
-7396
-8281
-9409
query I rowsort
SELECT ( + cor0.col0 ) AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870
query I rowsort
SELECT 43 * - col2 * + col0 + - col2 AS col1 FROM tab0 cor0
----
-1506
-313896
-34089
query I rowsort
SELECT - + col2 * - cor0.col1 - + col1 AS col0 FROM tab2 AS cor0
----
1475
629
806
query I rowsort
SELECT DISTINCT + 86 * col2 - + col2 * + 52 FROM tab0 AS cor0
----
1122
2788
34
query I rowsort
SELECT col1 + 25 AS col2 FROM tab0 AS cor0
----
111
116
122
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1710
SELECT DISTINCT + + CAST( col1 AS SIGNED ) + - col0 AS col1 FROM tab2 AS cor0
----
-19
-62
24
skipif mysql # not compatible
query I rowsort label-1710
SELECT DISTINCT + + CAST ( col1 AS INTEGER ) + - col0 AS col1 FROM tab2 AS cor0
----
-19
-62
24
query I rowsort
SELECT + - col1 + + col2 + col0 FROM tab0 AS cor0
----
-29
-61
80
query I rowsort
SELECT ALL - 30 * - col2 * - 33 FROM tab1 AS cor0
----
-53460
-56430
-95040
query I rowsort
SELECT + cor0.col2 - col1 * + col0 AS col0 FROM tab2 AS cor0
----
-1305
-190
-4576
query I rowsort
SELECT DISTINCT 39 AS col1 FROM tab1, tab1 AS cor0
----
39
query I rowsort
SELECT ALL - col2 * ( col2 ) + col0 * - tab1.col2 FROM tab1
----
-16896
-3078
-6897
onlyif mysql # use DIV operator for integer division
query I rowsort label-1716
SELECT + 49 DIV cor0.col1 FROM tab2 AS cor0
----
0
1
2
skipif mysql # not compatible
query I rowsort label-1716
SELECT + 49 / cor0.col1 FROM tab2 AS cor0
----
0
1
2
skipif mysql # not compatible
query I rowsort
SELECT CAST ( - col1 AS REAL ) AS col1 FROM tab1
----
-10
-13
-26
query I rowsort
SELECT DISTINCT + ( + 16 ) FROM tab2
----
16
query I rowsort
SELECT 8 * tab1.col1 FROM tab1
----
104
208
80
query I rowsort
SELECT ALL ( col2 ) * tab2.col1 AS col1 FROM tab2
----
1534
646
837
query I rowsort
SELECT 69 * + tab2.col0 AS col1 FROM tab2
----
483
5382
5451
query I rowsort
SELECT + - col1 + + cor0.col0 AS col2 FROM tab0 cor0
----
-2
-62
-62
query I rowsort
SELECT - col1 * - cor0.col0 + + 31 AS col2 FROM tab2 AS cor0
----
1374
248
4633
query I rowsort
SELECT DISTINCT + col2 * col1 * + cor0.col2 + + col2 + col1 * cor0.col1 AS col2 FROM tab1 AS cor0
----
120073
32647
76546
query I rowsort
SELECT ALL - - col0 + cor0.col1 * + ( col1 ) AS col0 FROM tab1 AS cor0
----
164
249
679
query I rowsort
SELECT + 13 * + 56 FROM tab1 AS cor0
----
728
728
728
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 83 col0 FROM tab2, tab0 AS cor0
----
83
query I rowsort
SELECT DISTINCT - 34 AS col0 FROM tab1, tab2 cor0
----
-34
query I rowsort
SELECT cor1.col2 AS col0 FROM tab2, tab2 cor0, tab1 AS cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab0 AS cor0, tab1 cor1, tab0 cor2
----
972 values hashing to 5342fb4caf4767cb98bd21989bad099f
query I rowsort
SELECT 30 * 10 AS col0 FROM tab1 AS cor0
----
300
300
300
query I rowsort
SELECT + cor0.col2 AS col1 FROM tab0, tab1 AS cor0, tab0 cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79
query I rowsort
SELECT 92 * 65 * col0 FROM tab1 AS cor0
----
17940
382720
478400
onlyif mysql # use DIV operator for integer division
query I rowsort label-1734
SELECT ALL + col0 DIV col0 + - col0 AS col1 FROM tab0
----
-23
-34
-88
skipif mysql # not compatible
query I rowsort label-1734
SELECT ALL + col0 / col0 + - col0 AS col1 FROM tab0
----
-23
-34
-88
query I rowsort
SELECT + col0 * - 36 + col1 AS col1 FROM tab0 AS cor0
----
-1163
-3113
-778
query I rowsort
SELECT DISTINCT col1 + ( col0 ) * - col1 FROM tab1 AS cor0
----
-1027
-52
-630
query I rowsort
SELECT - col0 * 69 AS col1 FROM tab0 AS cor0
----
-1656
-2415
-6141
query I rowsort
SELECT DISTINCT col0 + + tab0.col1 AS col1 FROM tab0
----
110
132
180
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( tab1.col1 ) * col1 + - 53 + + col1 col0 FROM tab1
----
129
57
649
query I rowsort
SELECT - col1 * col1 + + ( + col2 + - col1 ) FROM tab2
----
-268
-3514
-965
query I rowsort
SELECT tab2.col2 + col1 * 43 AS col1 FROM tab2
----
1360
2563
769
query I rowsort
SELECT DISTINCT col1 + col1 * 93 FROM tab1
----
1222
2444
940
query I rowsort
SELECT ALL + + cor0.col2 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0, tab0 AS cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475
query I rowsort
SELECT DISTINCT col2 + ( - col1 ) * col2 AS col0 FROM tab0 AS cor0
----
-2805
-7380
-96
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1745
SELECT DISTINCT + + col0 / + CAST( NULL AS DECIMAL ) + + col1 / col1 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-1745
SELECT DISTINCT + + col0 / + CAST ( NULL AS REAL ) + + col1 / col1 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT col0 * + col2 + - 54 AS col2 FROM tab2 cor0
----
135
1974
2948
query I rowsort
SELECT ALL - col0 * col1 - - 69 AS col0 FROM tab2 AS cor0
----
-1274
-148
-4533
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1748
SELECT ALL col2 * CAST( - col1 AS SIGNED ) FROM tab1 AS cor0
----
-1248
-1404
-570
skipif mysql # not compatible
query I rowsort label-1748
SELECT ALL col2 * CAST ( - col1 AS INTEGER ) FROM tab1 AS cor0
----
-1248
-1404
-570
onlyif mysql # use DIV operator for integer division
query I rowsort label-1749
SELECT DISTINCT + col1 + + col1 DIV col0 AS col1 FROM tab0 AS cor0
----
89
92
99
skipif mysql # not compatible
query I rowsort label-1749
SELECT DISTINCT + col1 + + col1 / col0 AS col1 FROM tab0 AS cor0
----
89
92
99
query I rowsort
SELECT - col0 * 83 AS col2 FROM tab0 cor0
----
-1992
-2905
-7387
query I rowsort
SELECT - - col1 + 9 * cor0.col0 AS col0 FROM tab2 AS cor0
----
728
761
94
onlyif mysql # use DIV operator for integer division
query I rowsort label-1752
SELECT DISTINCT cor0.col1 DIV - col0 + col0 * col2 AS col1 FROM tab2 AS cor0
----
185
2028
3002
skipif mysql # not compatible
query I rowsort label-1752
SELECT DISTINCT cor0.col1 / - col0 + col0 * col2 AS col1 FROM tab2 AS cor0
----
185
2028
3002
query I rowsort
SELECT DISTINCT col2 * ( - col2 ) * - cor0.col1 + + 43 FROM tab0 AS cor0
----
140
611927
93697
onlyif mysql # use DIV operator for integer division
query I rowsort label-1754
SELECT ALL + col1 DIV - 16 FROM tab1 AS cor0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-1754
SELECT ALL + col1 / - 16 FROM tab1 AS cor0
----
-1
0
0
query I rowsort
SELECT + col2 * 46 + col0 * col2 + - col2 AS col0 FROM tab2
----
1404
3198
4712
query I rowsort
SELECT + col1 + ( - col1 ) * - col1 * col0 FROM tab1
----
13533
2054
6410
query I rowsort
SELECT DISTINCT - 15 * + 4 FROM tab0 AS cor0
----
-60
query I rowsort
SELECT - + 65 - col1 * col1 AS col2 FROM tab2 AS cor0
----
-1026
-354
-3546
query I rowsort
SELECT - - col1 * + ( - col0 ) FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT DISTINCT 4 + + cor0.col0 FROM tab1 cor0
----
68
7
84
query I rowsort
SELECT ALL + 43 FROM tab1, tab2 AS cor0, tab1 cor1
----
27 values hashing to ee5108f6248be48c54e069545f81c5d9
query I rowsort
SELECT ALL - 50 * - tab0.col1 * col0 FROM tab0
----
103200
169750
404950
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 90 * col2 col2 FROM tab0 AS cor0
----
2970
7380
90
query I rowsort
SELECT DISTINCT + col2 * + cor0.col1 AS col0 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT DISTINCT - - 6 * - col1 + + col0 AS col2 FROM tab1 cor0
----
-153
2
4
query I rowsort
SELECT - + 80 + + col0 FROM tab1 AS cor0
----
-16
-77
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-1767
SELECT DISTINCT col2 + - col2 DIV + col0 AS col1 FROM tab2 AS cor0
----
24
26
38
skipif mysql # not compatible
query I rowsort label-1767
SELECT DISTINCT col2 + - col2 / + col0 AS col1 FROM tab2 AS cor0
----
24
26
38
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 79 + col1 + - col0 col0 FROM tab1 AS cor0
----
-133
-146
-56
query I rowsort
SELECT + ( col2 ) + + 1 FROM tab2 AS cor0
----
27
28
39
query I rowsort
SELECT DISTINCT - - cor0.col2 * + col0 + - col0 + - ( col2 ) FROM tab2 AS cor0
----
155
1924
2885
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1771
SELECT DISTINCT - ( - col1 ) + CAST( NULL AS SIGNED ) * col2 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-1771
SELECT DISTINCT - ( - col1 ) + CAST ( NULL AS INTEGER ) * col2 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT ALL 28 + col0 AS col2 FROM tab2 AS cor0
----
106
107
35
query I rowsort
SELECT - + col2 * col0 + ( col1 ) FROM tab1 AS cor0
----
-136
-3638
-7667
query I rowsort
SELECT - col0 + + cor0.col1 - + 72 FROM tab1 AS cor0
----
-126
-139
-49
query I rowsort
SELECT ALL ( - col0 ) * 23 * col0 AS col0 FROM tab0 AS cor0
----
-13248
-182183
-28175
query I rowsort
SELECT - col1 * - col1 + 97 + - 96 AS col0 FROM tab2 AS cor0
----
290
3482
962
onlyif mysql # use DIV operator for integer division
query I rowsort label-1777
SELECT + - col2 * + col1 * col2 + + 69 * - col2 - + 87 DIV + 91 AS col2 FROM tab0 AS cor0
----
-166
-617542
-95931
skipif mysql # not compatible
query I rowsort label-1777
SELECT + - col2 * + col1 * col2 + + 69 * - col2 - + 87 / + 91 AS col2 FROM tab0 AS cor0
----
-166
-617542
-95931
query I rowsort
SELECT DISTINCT - - col0 * - col2 * col0 + - 79 AS col2 FROM tab2 AS cor0
----
-1402
-158263
-237237
query I rowsort
SELECT - col1 * col0 + col0 * col1 + + col1 * col2 AS col1 FROM tab1 AS cor0
----
1248
1404
570
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1780
SELECT - cor0.col2 + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1780
SELECT - cor0.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-1781
SELECT DISTINCT col2 DIV col2 + col0 FROM tab1
----
4
65
81
skipif mysql # not compatible
query I rowsort label-1781
SELECT DISTINCT col2 / col2 + col0 FROM tab1
----
4
65
81
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1782
SELECT DISTINCT + CAST( col2 AS SIGNED ) * col1 - col2 FROM tab1 AS cor0
----
1152
1350
513
skipif mysql # not compatible
query I rowsort label-1782
SELECT DISTINCT + CAST ( col2 AS INTEGER ) * col1 - col2 FROM tab1 AS cor0
----
1152
1350
513
query I rowsort
SELECT ALL col1 + 34 AS col2 FROM tab0 AS cor0
----
120
125
131
query I rowsort
SELECT DISTINCT + - ( - col2 ) + + col0 FROM tab0 AS cor0
----
171
36
57
query I rowsort
SELECT ALL + ( + cor0.col0 ) + + col0 * col2 + + cor0.col0 * + col2 FROM tab0 AS cor0
----
105
14685
1608
query I rowsort
SELECT DISTINCT + + 37 AS col1 FROM tab1 AS cor0
----
37
query I rowsort
SELECT + + ( cor0.col0 ) AS col0 FROM tab1 AS cor0
----
3
64
80
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1788
SELECT - - CAST( NULL AS SIGNED ) + + col2 * col1 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1788
SELECT - - CAST ( NULL AS INTEGER ) + + col2 * col1 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + - 85 + ( + col0 ) FROM tab2 cor0
----
-6
-7
-78
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 - - tab2.col0 col2 FROM tab2
----
104
117
34
query I rowsort
SELECT col1 * col0 + - tab1.col2 + ( - col1 ) FROM tab1
----
-2
573
931
query I rowsort
SELECT ALL + 64 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 60ab040e931c5c85db7ba19364eacc8e
query I rowsort
SELECT ( - col2 ) + - col1 + 11 AS col2 FROM tab2
----
-44
-47
-74
query I rowsort
SELECT ALL + col0 + 58 AS col0 FROM tab1
----
122
138
61
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1795
SELECT ALL + - CAST( - col2 AS SIGNED ) + col0 * ( + 59 ) FROM tab1 cor0
----
231
3833
4816
skipif mysql # not compatible
query I rowsort label-1795
SELECT ALL + - CAST ( - col2 AS INTEGER ) + col0 * ( + 59 ) FROM tab1 cor0
----
231
3833
4816
query I rowsort
SELECT DISTINCT 99 + col0 FROM tab1
----
102
163
179
onlyif mysql # use DIV operator for integer division
query I rowsort label-1797
SELECT ALL col2 + col1 DIV + col2 col0 FROM tab0
----
35
83
98
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1797
SELECT ALL col2 + col1 / + col2 col0 FROM tab0
----
35
83
98
onlyif mysql # use DIV operator for integer division
query I rowsort label-1798
SELECT + col0 DIV 3 AS col0 FROM tab0
----
11
29
8
skipif mysql # not compatible
query I rowsort label-1798
SELECT + col0 / 3 AS col0 FROM tab0
----
11
29
8
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + col0 * + tab1.col1 col0 FROM tab1
----
1136
132
697
query I rowsort
SELECT DISTINCT + col2 * + cor0.col0 + - 60 AS col0 FROM tab2 AS cor0
----
129
1968
2942
query I rowsort
SELECT ALL + col2 * - ( + 44 ) FROM tab2
----
-1144
-1188
-1672
onlyif mysql # use DIV operator for integer division
query I rowsort label-1802
SELECT ALL - col1 DIV col0 + - col0 + tab2.col1 FROM tab2
----
-19
-62
20
skipif mysql # not compatible
query I rowsort label-1802
SELECT ALL - col1 / col0 + - col0 + tab2.col1 FROM tab2
----
-19
-62
20
query I rowsort
SELECT - + ( ( col0 ) ) AS col2 FROM tab1 AS cor0
----
-3
-64
-80
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1804
SELECT + CAST( NULL AS SIGNED ) * - col1 * col0 + - col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1804
SELECT + CAST ( NULL AS INTEGER ) * - col1 * col0 + - col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - 99 * - tab1.col1 AS col0 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
1287
2574
990
onlyif mysql # use DIV operator for integer division
query I rowsort label-1806
SELECT + 34 * col0 DIV col2 AS col1 FROM tab1 AS cor0
----
1
28
38
skipif mysql # not compatible
query I rowsort label-1806
SELECT + 34 * col0 / col2 AS col1 FROM tab1 AS cor0
----
1
28
38
query I rowsort
SELECT - + col1 + col1 * - ( - col0 ) FROM tab1 AS cor0
----
1027
52
630
query I rowsort
SELECT - cor0.col1 * + 33 - + 48 * col1 FROM tab2 AS cor0
----
-1377
-2511
-4779
query I rowsort
SELECT + col0 + + ( - 30 + col1 ) FROM tab0 AS cor0
----
102
150
80
query I rowsort
SELECT DISTINCT - 49 * + col1 FROM tab1
----
-1274
-490
-637
onlyif mysql # use DIV operator for integer division
query I rowsort label-1811
SELECT ALL col1 DIV - tab0.col2 AS col2 FROM tab0
----
-1
-2
-97
skipif mysql # not compatible
query I rowsort label-1811
SELECT ALL col1 / - tab0.col2 AS col2 FROM tab0
----
-1
-2
-97
skipif mysql # not compatible
query I rowsort
SELECT - col0 + CAST ( col2 AS REAL ) FROM tab1 cor0
----
-7
16
51
query I rowsort
SELECT DISTINCT + col0 * col1 * + cor0.col1 FROM tab0 AS cor0
----
177504
329315
737009
query I rowsort
SELECT ALL col1 + - ( cor0.col0 ) FROM tab2 AS cor0
----
-19
-62
24
query I rowsort
SELECT DISTINCT 86 AS col0 FROM tab0, tab1 cor0
----
86
query I rowsort
SELECT ALL + - cor0.col0 + - cor0.col0 * - col2 FROM tab2 AS cor0
----
182
1950
2923
query I rowsort
SELECT + cor0.col0 + + col0 AS col0 FROM tab2 AS cor0
----
14
156
158
query I rowsort
SELECT + - 74 * + col1 + + col1 * ( col0 + col0 ) AS col0 FROM tab2 AS cor0
----
-1860
1428
4838
onlyif mysql # use DIV operator for integer division
query I rowsort label-1819
SELECT - col0 DIV ( col1 ) FROM tab2
----
-1
-4
0
skipif mysql # not compatible
query I rowsort label-1819
SELECT - col0 / ( col1 ) FROM tab2
----
-1
-4
0
query I rowsort
SELECT col1 * + 7 FROM tab1
----
182
70
91
onlyif mysql # use DIV operator for integer division
query I rowsort label-1821
SELECT ALL col2 + - cor0.col1 DIV col0 FROM tab1 cor0
----
46
57
96
skipif mysql # not compatible
query I rowsort label-1821
SELECT ALL col2 + - cor0.col1 / col0 FROM tab1 cor0
----
46
57
96
query I rowsort
SELECT DISTINCT - col0 * - cor0.col0 + + col1 FROM tab1 AS cor0
----
35
4106
6413
query I rowsort
SELECT ALL 20 + - ( - col1 ) FROM tab0 AS cor0
----
106
111
117
query I rowsort
SELECT + cor0.col1 + 8 * col2 * ( col2 * col2 ) AS col0 FROM tab0 AS cor0
----
105
287582
4411035
query I rowsort
SELECT col2 + + ( cor0.col0 ) * - col0 FROM tab0 cor0
----
-1224
-543
-7839
query I rowsort
SELECT col0 * + col2 + tab1.col0 FROM tab1
----
165
3712
7760
onlyif mysql # use DIV operator for integer division
query I rowsort label-1827
SELECT DISTINCT col0 DIV ( col1 * col0 ) FROM tab0
----
0
skipif mysql # not compatible
query I rowsort label-1827
SELECT DISTINCT col0 / ( col1 * col0 ) FROM tab0
----
0
query I rowsort
SELECT DISTINCT + 37 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
37
query I rowsort
SELECT DISTINCT - col0 * 72 FROM tab0
----
-1728
-2520
-6408
query I rowsort
SELECT DISTINCT + 99 * - 32 FROM tab2, tab0 AS cor0
----
-3168
query I rowsort
SELECT DISTINCT cor0.col0 + - col2 AS col0 FROM tab2 AS cor0
----
-20
41
52
query I rowsort
SELECT 98 * col1 FROM tab1
----
1274
2548
980
query I rowsort
SELECT - 90 * + 77 AS col1 FROM tab0
----
-6930
-6930
-6930
query I rowsort
SELECT DISTINCT - 51 AS col1 FROM tab2, tab1, tab1 AS cor0
----
-51
query I rowsort
SELECT DISTINCT - - 21 + col1 + - col2 FROM tab2 AS cor0
----
0
25
54
query I rowsort
SELECT - ( + col1 ) + ( - tab1.col2 * + col1 ) FROM tab1
----
-1261
-1430
-580
query I rowsort
SELECT DISTINCT ( - 53 ) FROM tab1 AS cor0
----
-53
query I rowsort
SELECT DISTINCT + cor0.col1 * ( + col2 ) FROM tab0 AS cor0
----
2838
7462
97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1839
SELECT + + ( col1 ) + col1 * + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1839
SELECT + + ( col1 ) + col1 * + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - + 87 * 45 FROM tab0 AS cor0
----
-3915
-3915
-3915
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 51 + + 68 col2 FROM tab0 AS cor0
----
17
query I rowsort
SELECT ALL + cor0.col1 * - ( - col2 ) FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT DISTINCT - + ( 11 ) + col1 * - col2 + cor0.col0 FROM tab0 AS cor0
----
-2825
-73
-7384
query I rowsort
SELECT - 41 + - col2 FROM tab0 AS cor0
----
-123
-42
-74
query I rowsort
SELECT DISTINCT - - 15 * 32 AS col0 FROM tab2 AS cor0
----
480
query I rowsort
SELECT - - col2 * - 95 AS col2 FROM tab0 AS cor0
----
-3135
-7790
-95
query I rowsort
SELECT 83 * - col2 FROM tab2 AS cor0
----
-2158
-2241
-3154
query I rowsort
SELECT tab0.col2 + tab0.col0 - - col2 * - col1 AS col1 FROM tab0
----
-2781
-61
-7291
query I rowsort
SELECT DISTINCT ( col0 ) * col2 + + ( col2 ) * - col2 FROM tab1 AS cor0
----
-1536
-2754
399
onlyif mysql # use DIV operator for integer division
query I rowsort label-1850
SELECT ALL + ( col2 ) * cor0.col0 + + col1 DIV - col1 FROM tab2 AS cor0
----
188
2027
3001
skipif mysql # not compatible
query I rowsort label-1850
SELECT ALL + ( col2 ) * cor0.col0 + + col1 / - col1 FROM tab2 AS cor0
----
188
2027
3001
query I rowsort
SELECT - + 5 + + col2 FROM tab0 cor0
----
-4
28
77
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab0 AS cor0 CROSS JOIN tab1, tab0, tab1 AS cor1
----
3645 values hashing to f464d40c605db608927f2c4d66190a23
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1853
SELECT DISTINCT CAST( NULL AS SIGNED ) + + tab2.col2 * col2 AS col1 FROM tab2
----
NULL
skipif mysql # not compatible
query I rowsort label-1853
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + tab2.col2 * col2 AS col1 FROM tab2
----
NULL
query I rowsort
SELECT DISTINCT - ( + 14 ) * col0 * - cor0.col1 - + col0 AS col2 FROM tab2 AS cor0
----
18723
3031
64350
query I rowsort
SELECT ALL 79 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 40a2261caa2c5cdbfd80965d7df1231f
query I rowsort
SELECT ALL - 67 * - col0 AS col0 FROM tab2
----
469
5226
5293
query I rowsort
SELECT ALL + + col2 * ( - col0 ) + - cor0.col0 * col0 AS col1 FROM tab2 AS cor0
----
-238
-8112
-9243
query I rowsort
SELECT ALL + col1 * 72 + tab2.col2 * - col0 AS col2 FROM tab2
----
-1778
2043
2220
query I rowsort
SELECT col2 * - cor0.col0 - ( col1 ) * - ( + col0 ) * + col2 AS col2 FROM tab0 cor0
----
3360
656820
67320
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-1861
SELECT ALL col0 * col0 DIV 61 FROM tab1 AS cor0
----
0
104
67
skipif mysql # not compatible
query I rowsort label-1861
SELECT ALL col0 * col0 / 61 FROM tab1 AS cor0
----
0
104
67
onlyif mysql # use DIV operator for integer division
query I rowsort label-1862
SELECT DISTINCT + col0 * 53 DIV - col0 AS col0 FROM tab2 AS cor0
----
-53
skipif mysql # not compatible
query I rowsort label-1862
SELECT DISTINCT + col0 * 53 / - col0 AS col0 FROM tab2 AS cor0
----
-53
query I rowsort
SELECT + 12 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to d4f5a8e032294c3b9342821617800972
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1864
SELECT DISTINCT + col2 + CAST( - tab1.col1 AS SIGNED ) * col1 - col0 * + col1 FROM tab1
----
-1113
-683
-700
skipif mysql # not compatible
query I rowsort label-1864
SELECT DISTINCT + col2 + CAST ( - tab1.col1 AS INTEGER ) * col1 - col0 * + col1 FROM tab1
----
-1113
-683
-700
query I rowsort
SELECT DISTINCT + col0 * - 47 + ( - col1 ) FROM tab0
----
-1214
-1742
-4274
query I rowsort
SELECT DISTINCT - col2 + + col0 * - cor0.col0 AS col0 FROM tab1 AS cor0
----
-4153
-63
-6496
query I rowsort
SELECT + - cor0.col0 * - cor0.col0 * 24 FROM tab2 AS cor0
----
1176
146016
149784
query I rowsort
SELECT ALL + - col2 * ( - col2 ) FROM tab1 AS cor0
----
2916
3249
9216
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1869
SELECT - CAST( - 76 AS SIGNED ) FROM tab0, tab1 AS cor0
----
9 values hashing to 30b8941a700cffd5b983116383bd42d5
skipif mysql # not compatible
query I rowsort label-1869
SELECT - CAST ( - 76 AS INTEGER ) FROM tab0, tab1 AS cor0
----
9 values hashing to 30b8941a700cffd5b983116383bd42d5
query I rowsort
SELECT DISTINCT + col0 * ( 57 ) FROM tab1 AS cor0
----
171
3648
4560
query I rowsort
SELECT + col2 + + 75 * + col1 FROM tab0 AS cor0
----
6483
6907
7276
query I rowsort
SELECT 70 * + col0 - cor0.col0 FROM tab2 AS cor0
----
483
5382
5451
query I rowsort
SELECT ALL - col2 * 61 FROM tab2 AS cor0
----
-1586
-1647
-2318
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 22 + 4 col2 FROM tab2 AS cor0
----
26
26
26
query I rowsort
SELECT 87 * - col2 AS col0 FROM tab1
----
-4698
-4959
-8352
query I rowsort
SELECT DISTINCT col2 * + 7 FROM tab0
----
231
574
7
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 84 col0 FROM tab2 AS cor0
----
-84
-84
-84
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1878
SELECT + CAST( - col1 AS SIGNED ) + - col2 * col0 + - cor0.col1 AS col1 FROM tab2 AS cor0
----
-2146
-251
-3036
skipif mysql # not compatible
query I rowsort label-1878
SELECT + CAST ( - col1 AS INTEGER ) + - col2 * col0 + - cor0.col1 AS col1 FROM tab2 AS cor0
----
-2146
-251
-3036
query I rowsort
SELECT cor0.col1 * - col0 * col2 FROM tab1 cor0
----
-36480
-4212
-99840
query I rowsort
SELECT + cor0.col2 * + col2 + + col1 AS col1 FROM tab1 AS cor0
----
2942
3259
9229
onlyif mysql # use DIV operator for integer division
query I rowsort label-1881
SELECT + + cor0.col1 * col1 DIV col0 FROM tab2 AS cor0
----
137
3
44
skipif mysql # not compatible
query I rowsort label-1881
SELECT + + cor0.col1 * col1 / col0 FROM tab2 AS cor0
----
137
3
44
query I rowsort
SELECT - + col0 + - col2 * + col1 FROM tab0 AS cor0
----
-132
-2862
-7551
query I rowsort
SELECT DISTINCT - col1 * - col0 * col2 + + col0 + - col1 AS col0 FROM tab1 AS cor0
----
36534
4189
99907
onlyif mysql # use DIV operator for integer division
query I rowsort label-1884
SELECT DISTINCT + + ( - col1 ) DIV col2 - + col0 FROM tab0 AS cor0
----
-132
-26
-90
skipif mysql # not compatible
query I rowsort label-1884
SELECT DISTINCT + + ( - col1 ) / col2 - + col0 FROM tab0 AS cor0
----
-132
-26
-90
query I rowsort
SELECT ALL col0 + - col1 + col0 FROM tab0 AS cor0
----
-27
-38
87
query I rowsort
SELECT + ( - cor0.col2 ) + col1 AS col0 FROM tab1 AS cor0
----
-28
-47
-83
query I rowsort
SELECT ALL cor0.col0 + cor0.col2 FROM tab0 AS cor0
----
171
36
57
onlyif mysql # use DIV operator for integer division
query I rowsort label-1888
SELECT ALL - cor0.col0 * col2 + - col1 * cor0.col1 DIV cor0.col1 + col0 AS col2 FROM tab2 AS cor0
----
-2009
-213
-2940
skipif mysql # not compatible
query I rowsort label-1888
SELECT ALL - cor0.col0 * col2 + - col1 * cor0.col1 / cor0.col1 + col0 AS col2 FROM tab2 AS cor0
----
-2009
-213
-2940
query I rowsort
SELECT DISTINCT col1 * 69 + + 31 AS col0 FROM tab1 AS cor0
----
1825
721
928
query I rowsort
SELECT DISTINCT + + col1 * 83 * col1 + - col2 AS col1 FROM tab0 AS cor0
----
613835
687241
780946
query I rowsort
SELECT ALL + col1 + + ( - cor0.col2 ) * + col1 + - col0 AS col1 FROM tab1 AS cor0
----
-1315
-1381
-624
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 79 * - col0 + col0 * - col1 col0 FROM tab1
----
159
4416
5280
query I rowsort
SELECT DISTINCT - 47 AS col1 FROM tab0, tab2 AS cor0
----
-47
query I rowsort
SELECT ( - col1 * + ( 76 ) ) AS col0 FROM tab1
----
-1976
-760
-988
onlyif mysql # use DIV operator for integer division
query I rowsort label-1895
SELECT 59 DIV - tab0.col1 AS col2 FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-1895
SELECT 59 / - tab0.col1 AS col2 FROM tab0
----
0
0
0
query I rowsort
SELECT ALL + 5 + col0 FROM tab1
----
69
8
85
query I rowsort
SELECT col0 * + tab2.col2 * ( + ( col1 ) ) FROM tab2
----
119652
51034
5859
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab0.col2 * - tab0.col2 col0 FROM tab0
----
-1
-1089
-6724
query I rowsort
SELECT + col2 - col0 * + 28 AS col0 FROM tab1 AS cor0
----
-1735
-2144
-30
query I rowsort
SELECT DISTINCT + + col2 - col1 FROM tab0 AS cor0
----
-53
-9
-96
query I rowsort
SELECT 15 + col2 AS col0 FROM tab0 cor0
----
16
48
97
query I rowsort
SELECT ALL + cor0.col1 AS col1 FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to 7599b480125de521efed71b5b2413c7d
onlyif mysql # use DIV operator for integer division
query I rowsort label-1903
SELECT col1 DIV + col1 + col1 * + col1 col2 FROM tab2
----
290
3482
962
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1903
SELECT col1 / + col1 + col1 * + col1 col2 FROM tab2
----
290
3482
962
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1904
SELECT DISTINCT + col2 * CAST( NULL AS SIGNED ) * 62 AS col0 FROM tab0
----
NULL
skipif mysql # not compatible
query I rowsort label-1904
SELECT DISTINCT + col2 * CAST ( NULL AS INTEGER ) * 62 AS col0 FROM tab0
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-1905
SELECT + col2 DIV 32 AS col1 FROM tab2 AS cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-1905
SELECT + col2 / 32 AS col1 FROM tab2 AS cor0
----
0
0
1
query I rowsort
SELECT DISTINCT + ( col2 ) * + col0 + col2 AS col1 FROM tab0 AS cor0
----
36
7380
825
query I rowsort
SELECT ALL - + 48 * col0 FROM tab0 cor0
----
-1152
-1680
-4272
onlyif mysql # use DIV operator for integer division
query I rowsort label-1908
SELECT - col0 DIV - 13 FROM tab0 AS cor0
----
1
2
6
skipif mysql # not compatible
query I rowsort label-1908
SELECT - col0 / - 13 FROM tab0 AS cor0
----
1
2
6
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 14 col0 FROM tab0, tab1 AS cor0
----
9 values hashing to d321461994ba49c3a70fa6373032fc94
query I rowsort
SELECT 57 * col0 AS col2 FROM tab2 AS cor0
----
399
4446
4503
query I rowsort
SELECT + ( 18 ) * - col0 * col0 FROM tab1 AS cor0
----
-115200
-162
-73728
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1912
SELECT - - CAST( NULL AS SIGNED ) + ( + col2 ) / + cor0.col0 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1912
SELECT - - CAST ( NULL AS INTEGER ) + ( + col2 ) / + cor0.col0 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + + col2 + + col2 * cor0.col1 FROM tab2 AS cor0
----
1560
684
864
query I rowsort
SELECT col2 - - 89 AS col0 FROM tab1
----
143
146
185
query I rowsort
SELECT DISTINCT + col0 + col2 * col1 AS col1 FROM tab2
----
1612
725
844
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 99 col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 4b77467dd5f346109d29f6364a7bb8db
query I rowsort
SELECT ALL ( 85 * + col1 ) AS col2 FROM tab2
----
1445
2635
5015
query I rowsort
SELECT 11 * - col0 * - col0 + col1 * 55 FROM tab2 AS cor0
----
2244
69586
70169
query I rowsort
SELECT col2 * col0 * + col0 AS col1 FROM tab0 AS cor0
----
1225
19008
649522
query I rowsort
SELECT ALL - ( - cor0.col0 ) * - col2 AS col1 FROM tab2 cor0
----
-189
-2028
-3002
query I rowsort
SELECT + 27 * + cor0.col1 AS col1 FROM tab1 AS cor0
----
270
351
702
onlyif mysql # use DIV operator for integer division
query I rowsort label-1922
SELECT ALL 90 DIV - col1 AS col2 FROM tab1
----
-3
-6
-9
skipif mysql # not compatible
query I rowsort label-1922
SELECT ALL 90 / - col1 AS col2 FROM tab1
----
-3
-6
-9
query I rowsort
SELECT ALL - 10 * - col0 FROM tab0 AS cor0
----
240
350
890
query I rowsort
SELECT DISTINCT - 11 * col0 FROM tab1 AS cor0
----
-33
-704
-880
query I rowsort
SELECT - col1 * col2 + col2 AS col2 FROM tab0 AS cor0
----
-2805
-7380
-96
query I rowsort
SELECT - col2 * - 40 AS col2 FROM tab2 AS cor0
----
1040
1080
1520
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1927
SELECT + col1 - CAST( NULL AS SIGNED ) col0 FROM tab0 cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1927
SELECT + col1 - CAST ( NULL AS INTEGER ) col0 FROM tab0 cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-1928
SELECT col2 * 56 + col0 * col1 DIV + cor0.col1 FROM tab1 AS cor0
----
3027
3256
5456
skipif mysql # not compatible
query I rowsort label-1928
SELECT col2 * 56 + col0 * col1 / + cor0.col1 FROM tab1 AS cor0
----
3027
3256
5456
query I rowsort
SELECT + 86 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 2d8c3a0d19ea51447f83cd18b49fee19
query I rowsort
SELECT 69 * + cor1.col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to b3ca073f7dfc7033ccbb2e2cf6ac7ec6
query I rowsort
SELECT DISTINCT cor0.col0 * - 88 * col0 - + col1 AS col2 FROM tab2 AS cor0
----
-4343
-535451
-549225
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 63 col2 FROM tab2, tab1 AS cor0
----
9 values hashing to c3eea92c46f2c49716f386a58b575025
query I rowsort
SELECT ALL 10 + + col1 AS col0 FROM tab1 cor0
----
20
23
36
query I rowsort
SELECT + cor0.col1 * + 3 AS col1 FROM tab2 AS cor0
----
177
51
93
query I rowsort
SELECT col1 * ( + tab1.col1 * + tab1.col2 ) + col0 * tab1.col1 FROM tab1
----
17264
36582
6340
query I rowsort
SELECT ALL - col1 + - 34 AS col1 FROM tab0
----
-120
-125
-131
query I rowsort
SELECT ALL + - col2 * + col0 * - cor0.col2 + col2 AS col2 FROM tab0 AS cor0
----
26169
36
598518
query I rowsort
SELECT + col2 * + 52 FROM tab2 cor0
----
1352
1404
1976
query I rowsort
SELECT DISTINCT col1 * col2 + col2 FROM tab0 cor0
----
2871
7544
98
query I rowsort
SELECT ALL - col2 + - col0 * 7 AS col1 FROM tab0 cor0
----
-201
-246
-705
query I rowsort
SELECT DISTINCT 53 * 15 FROM tab2 AS cor0
----
795
query I rowsort
SELECT - - 13 + + col2 * cor0.col2 AS col0 FROM tab0 AS cor0
----
1102
14
6737
query I rowsort
SELECT ALL + + cor0.col0 + col0 AS col0 FROM tab0 cor0
----
178
48
70
onlyif mysql # use DIV operator for integer division
query I rowsort label-1944
SELECT + ( col1 ) * + cor0.col2 + CAST( - col0 AS SIGNED ) * col1 * col1 + col1 DIV col1 FROM tab2 AS cor0
----
-22184
-269983
-5889
skipif mysql # not compatible
query I rowsort label-1944
SELECT + ( col1 ) * + cor0.col2 + CAST ( - col0 AS INTEGER ) * col1 * col1 + col1 / col1 FROM tab2 AS cor0
----
-22184
-269983
-5889
onlyif mysql # use DIV operator for integer division
query I rowsort label-1945
SELECT ALL - col2 DIV 88 + col1 AS col2 FROM tab2 AS cor0
----
17
31
59
skipif mysql # not compatible
query I rowsort label-1945
SELECT ALL - col2 / 88 + col1 AS col2 FROM tab2 AS cor0
----
17
31
59
query I rowsort
SELECT - col2 * 51 * cor0.col0 + - 22 + 17 * cor0.col2 * col0 FROM tab2 AS cor0
----
-102090
-6448
-68974
query I rowsort
SELECT ALL - + ( cor0.col0 ) FROM tab2 AS cor0
----
-7
-78
-79
query I rowsort
SELECT DISTINCT - col0 + + cor0.col1 * - col2 FROM tab2 AS cor0
----
-1612
-725
-844
query I rowsort
SELECT DISTINCT - 24 * col1 FROM tab0 AS cor0
----
-2064
-2184
-2328
query I rowsort
SELECT - ( + cor0.col0 ) + col2 + ( + 64 * - col1 ) AS col0 FROM tab2 AS cor0
----
-1129
-1964
-3828
query I rowsort
SELECT - col2 * + 38 - col1 FROM tab1 cor0
----
-2078
-2176
-3661
query I rowsort
SELECT ALL - + ( cor0.col2 ) AS col2 FROM tab1 AS cor0
----
-54
-57
-96
query I rowsort
SELECT DISTINCT - col0 * col2 + + col0 * tab2.col2 - col2 FROM tab2
----
-26
-27
-38
query I rowsort
SELECT tab0.col2 * 49 * - col2 AS col2 FROM tab0
----
-329476
-49
-53361
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1955
SELECT DISTINCT col0 - - CAST( col0 + - col2 AS SIGNED ) * 97 * - col0 AS col0 FROM tab2
----
-314104
-393354
13587
skipif mysql # not compatible
query I rowsort label-1955
SELECT DISTINCT col0 - - CAST ( col0 + - col2 AS INTEGER ) * 97 * - col0 AS col0 FROM tab2
----
-314104
-393354
13587
query I rowsort
SELECT ALL - col0 + col0 - + tab0.col0 AS col2 FROM tab0
----
-24
-35
-89
query I rowsort
SELECT + + col1 * 52 - col0 * - cor0.col0 AS col0 FROM tab2 AS cor0
----
1661
7125
9152
query I rowsort
SELECT col2 * ( + col0 ) + + 78 * + cor0.col0 FROM tab2 AS cor0
----
735
8112
9164
query I rowsort
SELECT - col1 + + 45 FROM tab0
----
-41
-46
-52
query I rowsort
SELECT - col0 * 43 * col2 FROM tab0
----
-1505
-313814
-34056
query I rowsort
SELECT DISTINCT - + 61 + col0 * - ( + col2 ) FROM tab2 AS cor0
----
-2089
-250
-3063
query I rowsort
SELECT ALL + + cor0.col2 * col1 - - col0 AS col2 FROM tab2 AS cor0
----
1612
725
844
query I rowsort
SELECT ALL - cor0.col0 - cor0.col2 AS col1 FROM tab1 AS cor0
----
-121
-176
-57
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col2 - col1 * 32 col0 FROM tab2 AS cor0
----
-1862
-506
-965
query I rowsort
SELECT DISTINCT - 68 * col0 * + col2 FROM tab2 cor0
----
-12852
-137904
-204136
query I rowsort
SELECT ALL + - 51 - col2 AS col1 FROM tab2 AS cor0
----
-77
-78
-89
query I rowsort
SELECT ALL + + 79 AS col0 FROM tab2 AS cor0
----
79
79
79
query I rowsort
SELECT + 87 AS col2 FROM tab2 AS cor0
----
87
87
87
query I rowsort
SELECT DISTINCT - + 23 * col2 + col0 FROM tab1 AS cor0
----
-1239
-1247
-2128
onlyif mysql # use DIV operator for integer division
query I rowsort label-1970
SELECT DISTINCT cor0.col0 + + col0 DIV + 9 FROM tab1 AS cor0
----
3
71
88
skipif mysql # not compatible
query I rowsort label-1970
SELECT DISTINCT cor0.col0 + + col0 / + 9 FROM tab1 AS cor0
----
3
71
88
skipif mysql # not compatible
query I rowsort
SELECT ALL CAST ( col2 * col2 AS REAL ) + - CAST ( + col2 AS INTEGER ) * + col2 AS col2 FROM tab2
----
0
0
0
query I rowsort
SELECT ALL cor0.col2 * col1 + - col2 FROM tab1 cor0
----
1152
1350
513
query I rowsort
SELECT ALL - 32 * + cor0.col0 + - col1 + + col2 * + col2 FROM tab0 cor0
----
-1216
235
3785
query I rowsort
SELECT - 91 + col1 AS col0 FROM tab0 AS cor0
----
-5
0
6
query I rowsort
SELECT DISTINCT + cor0.col1 + + col2 * + cor0.col2 FROM tab2 AS cor0
----
1461
735
760
onlyif mysql # use DIV operator for integer division
query I rowsort label-1976
SELECT ALL + cor0.col2 DIV + col0 col2 FROM tab1 AS cor0
----
0
1
18
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1976
SELECT ALL + cor0.col2 / + col0 col2 FROM tab1 AS cor0
----
0
1
18
query I rowsort
SELECT DISTINCT + - cor0.col0 AS col2 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
-3
-64
-80
query I rowsort
SELECT ALL + 21 * + col0 FROM tab2
----
147
1638
1659
query I rowsort
SELECT cor0.col1 * col1 AS col2 FROM tab2 cor0
----
289
3481
961
query I rowsort
SELECT - col1 * + col0 * 99 AS col0 FROM tab1 AS cor0
----
-102960
-63360
-7722
onlyif mysql # use DIV operator for integer division
query I rowsort label-1981
SELECT + col0 + col1 DIV + col0 AS col2 FROM tab1
----
11
64
80
skipif mysql # not compatible
query I rowsort label-1981
SELECT + col0 + col1 / + col0 AS col2 FROM tab1
----
11
64
80
onlyif mysql # use DIV operator for integer division
query I rowsort label-1982
SELECT tab1.col0 * ( 55 ) DIV - cor0.col0 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to e2adce40c387f930a10f40f4a193f7cd
skipif mysql # not compatible
query I rowsort label-1982
SELECT tab1.col0 * ( 55 ) / - cor0.col0 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to e2adce40c387f930a10f40f4a193f7cd
query I rowsort
SELECT ALL - + ( cor1.col0 ) AS col2 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 09d8a912de1b8ab762e5ffbe028ce99e
query I rowsort
SELECT DISTINCT + col0 * cor0.col1 + - 40 AS col2 FROM tab0 AS cor0
----
2024
3355
8059
query I rowsort
SELECT ALL + - col2 * 21 AS col1 FROM tab1 cor0
----
-1134
-1197
-2016
onlyif mysql # use DIV operator for integer division
query I rowsort label-1986
SELECT DISTINCT - col1 DIV + col1 - col1 * col2 AS col0 FROM tab1 cor0
----
-1249
-1405
-571
skipif mysql # not compatible
query I rowsort label-1986
SELECT DISTINCT - col1 / + col1 - col1 * col2 AS col0 FROM tab1 cor0
----
-1249
-1405
-571
query I rowsort
SELECT ( tab0.col0 ) AS col0 FROM tab0, tab2 cor0
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63
query I rowsort
SELECT DISTINCT + col2 * ( cor0.col1 ) * - col0 AS col1 FROM tab2 AS cor0
----
-119652
-51034
-5859
query I rowsort
SELECT DISTINCT + 95 FROM tab1, tab0 cor0
----
95
query I rowsort
SELECT + 54 + tab1.col2 AS col1 FROM tab1
----
108
111
150
query I rowsort
SELECT - 79 + col2 + 95 * - 76 FROM tab1 AS cor0
----
-7203
-7242
-7245
query I rowsort
SELECT ( 24 ) - col0 AS col1 FROM tab1
----
-40
-56
21
query I rowsort
SELECT DISTINCT + col1 + - 0 * col2 + col2 AS col1 FROM tab2
----
55
58
85
query I rowsort
SELECT + col0 * + col2 * - col2 AS col2 FROM tab1
----
-207936
-737280
-8748
query I rowsort
SELECT + 97 + col2 * col0 AS col1 FROM tab0 AS cor0
----
132
7395
889
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + tab1.col1 col2 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
10
13
26
query I rowsort
SELECT DISTINCT - col2 + + col2 AS col0 FROM tab0 cor0
----
0
query I rowsort
SELECT ALL - 54 AS col2 FROM tab1
----
-54
-54
-54
query I rowsort
SELECT DISTINCT + 86 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
86
query I rowsort
SELECT ALL + + col2 * cor0.col2 AS col0 FROM tab2 AS cor0
----
1444
676
729
query I rowsort
SELECT + - 68 * col1 FROM tab0 AS cor0
----
-5848
-6188
-6596
query I rowsort
SELECT ALL 58 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 9ee363c6ac19cfdb8a50c7dfd5cc2b8a
query I rowsort
SELECT col1 + 81 * + col2 AS col1 FROM tab0 AS cor0
----
178
2759
6733
query I rowsort
SELECT - ( - 40 ) * col1 AS col2 FROM tab2 AS cor0
----
1240
2360
680
query I rowsort
SELECT ( - ( - cor0.col0 ) ) AS col1 FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT + col1 * tab2.col1 + - col0 FROM tab2
----
210
3403
954
query I rowsort
SELECT 68 + - col1 AS col2 FROM tab1 AS cor0
----
42
55
58
query I rowsort
SELECT 48 * - col0 AS col2 FROM tab0 AS cor0
----
-1152
-1680
-4272
query I rowsort
SELECT - col0 + - 91 AS col1 FROM tab2 AS cor0
----
-169
-170
-98
query I rowsort
SELECT ALL - + col0 * col2 * col2 + col2 * col1 FROM tab0 cor0
----
-23298
-590974
62
query I rowsort
SELECT DISTINCT + 78 AS col1 FROM tab1, tab1 AS cor0, tab2 AS cor1, tab0, tab1 AS cor2
----
78
query I rowsort
SELECT DISTINCT + col2 * - col1 + + 9 FROM tab0 AS cor0
----
-2829
-7453
-88
query I rowsort
SELECT - - col2 * 75 + - cor0.col2 AS col1 FROM tab1 AS cor0
----
3996
4218
7104
onlyif mysql # use DIV operator for integer division
query I rowsort label-2014
SELECT col1 DIV col0 + col0 AS col0 FROM tab2 AS cor0
----
11
78
79
skipif mysql # not compatible
query I rowsort label-2014
SELECT col1 / col0 + col0 AS col0 FROM tab2 AS cor0
----
11
78
79
query I rowsort
SELECT cor0.col0 + - 59 * 64 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 75891670850f9d50ce3a06b9f2600b72
query I rowsort
SELECT - 39 * col0 AS col1 FROM tab1
----
-117
-2496
-3120
onlyif mysql # use DIV operator for integer division
query I rowsort label-2017
SELECT - tab2.col2 DIV + tab2.col0 + col0 + 55 AS col1 FROM tab2
----
133
134
59
skipif mysql # not compatible
query I rowsort label-2017
SELECT - tab2.col2 / + tab2.col0 + col0 + 55 AS col1 FROM tab2
----
133
134
59
query I rowsort
SELECT + 78 + + col0 + + 6 * - tab2.col1 FROM tab2
----
-101
-198
55
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2019
SELECT + col1 * + CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2019
SELECT + col1 * + CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - col0 * col0 * - col2 AS col0 FROM tab2
----
1323
158184
237158
query I rowsort
SELECT ALL - + col1 * - ( - cor0.col2 ) AS col2 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT DISTINCT + cor0.col0 * cor0.col0 AS col1 FROM tab1, tab0 AS cor0
----
1225
576
7921
query I rowsort
SELECT col1 * - 36 * - col2 AS col1 FROM tab2 AS cor0
----
23256
30132
55224
query I rowsort
SELECT DISTINCT + ( - 40 ) + - cor0.col2 FROM tab0 AS cor0
----
-122
-41
-73
onlyif mysql # use DIV operator for integer division
query I rowsort label-2025
SELECT DISTINCT + ( + col2 ) DIV col1 col1 FROM tab1 AS cor0
----
2
5
7
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2025
SELECT DISTINCT + ( + col2 ) / col1 col1 FROM tab1 AS cor0
----
2
5
7
query I rowsort
SELECT + cor0.col0 * cor0.col0 + col1 AS col2 FROM tab2 AS cor0
----
6143
6258
80
query I rowsort
SELECT DISTINCT tab2.col2 * - col1 * + tab2.col1 + + col2 AS col1 FROM tab2
----
-10944
-25920
-90480
onlyif mysql # use DIV operator for integer division
query I rowsort label-2028
SELECT + col1 + + col2 DIV tab2.col0 + + col1 * - col2 FROM tab2
----
-1475
-629
-803
skipif mysql # not compatible
query I rowsort label-2028
SELECT + col1 + + col2 / tab2.col0 + + col1 * - col2 FROM tab2
----
-1475
-629
-803
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col0 + - col2 ) col0 FROM tab1
----
-16
-51
7
onlyif mysql # use DIV operator for integer division
query I rowsort label-2030
SELECT DISTINCT col1 * - tab2.col1 + - col1 * col1 DIV + col1 FROM tab2
----
-306
-3540
-992
skipif mysql # not compatible
query I rowsort label-2030
SELECT DISTINCT col1 * - tab2.col1 + - col1 * col1 / + col1 FROM tab2
----
-306
-3540
-992
query I rowsort
SELECT DISTINCT + tab0.col2 + - ( col2 + col0 ) FROM tab0
----
-24
-35
-89
query I rowsort
SELECT 13 + + tab1.col2 AS col1 FROM tab1
----
109
67
70
query I rowsort
SELECT 29 * + 41 + col0 FROM tab1
----
1192
1253
1269
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + - tab0.col2 * col1 col0 FROM tab0
----
-2814
-62
-7373
query I rowsort
SELECT ALL ( - cor0.col2 ) * cor0.col0 AS col0 FROM tab0 AS cor0
----
-35
-7298
-792
query I rowsort
SELECT ALL - - ( col1 ) * + col2 + col1 AS col0 FROM tab1 AS cor0
----
1261
1430
580
query I rowsort
SELECT 75 + 74 FROM tab1
----
149
149
149
query I rowsort
SELECT ALL + 49 + - cor0.col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 74fa7cf4480dfd807826058de56912c8
query I rowsort
SELECT DISTINCT + cor0.col2 * - 30 FROM tab0, tab1 cor0
----
-1620
-1710
-2880
onlyif mysql # use DIV operator for integer division
query I rowsort label-2040
SELECT - col2 DIV - col1 AS col1 FROM tab2
----
0
0
2
skipif mysql # not compatible
query I rowsort label-2040
SELECT - col2 / - col1 AS col1 FROM tab2
----
0
0
2
query I rowsort
SELECT ( + col1 * col0 ) FROM tab0
----
2064
3395
8099
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + tab1.col2 col2 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
54
57
96
query I rowsort
SELECT DISTINCT + 72 * - col2 FROM tab1
----
-3888
-4104
-6912
query I rowsort
SELECT + + 46 * col0 AS col2 FROM tab1 AS cor0
----
138
2944
3680
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2045
SELECT DISTINCT cor0.col1 / cor0.col0 - CAST( NULL AS DECIMAL ) AS col1 FROM tab0, tab2 AS cor0, tab0 cor1, tab0 AS cor2
----
NULL
skipif mysql # not compatible
query I rowsort label-2045
SELECT DISTINCT cor0.col1 / cor0.col0 - CAST ( NULL AS REAL ) AS col1 FROM tab0, tab2 AS cor0, tab0 cor1, tab0 AS cor2
----
NULL
query I rowsort
SELECT ( + col0 ) + - 53 FROM tab0
----
-18
-29
36
query I rowsort
SELECT 99 * col1 * - col2 + col0 * - col1 AS col0 FROM tab1
----
-124592
-139074
-57070
query I rowsort
SELECT - col0 * col2 + + col1 FROM tab0
----
-706
-7207
62
query I rowsort
SELECT - cor0.col0 + + col1 * col1 FROM tab0 AS cor0
----
7372
8192
9374
query I rowsort
SELECT + col0 + col1 * cor0.col2 AS col0 FROM tab2 AS cor0
----
1612
725
844
onlyif mysql # use DIV operator for integer division
query I rowsort label-2051
SELECT + - col2 + ( col1 ) DIV + col2 + ( - col0 ) AS col1 FROM tab1 AS cor0
----
-121
-176
-57
skipif mysql # not compatible
query I rowsort label-2051
SELECT + - col2 + ( col1 ) / + col2 + ( - col0 ) AS col1 FROM tab1 AS cor0
----
-121
-176
-57
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2052
SELECT + + col2 - 55 / + ( + col2 + CAST( NULL AS SIGNED ) ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2052
SELECT + + col2 - 55 / + ( + col2 + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL col2 * cor0.col2 + cor0.col1 FROM tab0 AS cor0
----
1175
6815
98
query I rowsort
SELECT ALL col0 * ( col2 * + col2 ) - cor0.col2 AS col1 FROM tab1 AS cor0
----
207879
737184
8694
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col0 * col2 col2 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT + col1 + 42 AS col1 FROM tab2
----
101
59
73
query I rowsort
SELECT DISTINCT + tab1.col2 * 93 FROM tab1
----
5022
5301
8928
query I rowsort
SELECT + 17 - - 43 FROM tab0
----
60
60
60
onlyif mysql # use DIV operator for integer division
query I rowsort label-2059
SELECT DISTINCT 19 DIV + 97 col1 FROM tab0
----
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2059
SELECT DISTINCT 19 / + 97 col1 FROM tab0
----
0
query I rowsort
SELECT + 22 AS col0 FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to 7dda382e7c08428abac8600fd696eb3e
query I rowsort
SELECT + ( col1 ) * - cor0.col1 AS col1 FROM tab0 AS cor0
----
-7396
-8281
-9409
query I rowsort
SELECT - 45 * col1 * - tab0.col0 + - col2 * - col1 FROM tab0
----
152872
371917
95718
query I rowsort
SELECT - ( col2 ) + + col0 * + col2 FROM tab0
----
34
7216
759
query I rowsort
SELECT ( 40 ) * + col1 + col2 AS col0 FROM tab2
----
1267
2386
718
query I rowsort
SELECT DISTINCT + - 42 * col1 AS col1 FROM tab0 AS cor0
----
-3612
-3822
-4074
onlyif mysql # use DIV operator for integer division
query I rowsort label-2066
SELECT - + col0 DIV col0 AS col0 FROM tab0 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-2066
SELECT - + col0 / col0 AS col0 FROM tab0 AS cor0
----
-1
-1
-1
onlyif mysql # use DIV operator for integer division
query I rowsort label-2067
SELECT - 91 DIV col2 AS col0 FROM tab0 AS cor0
----
-1
-2
-91
skipif mysql # not compatible
query I rowsort label-2067
SELECT - 91 / col2 AS col0 FROM tab0 AS cor0
----
-1
-2
-91
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * cor0.col1 * ( col2 ) col0 FROM tab1 AS cor0
----
-36480
-4212
-99840
query I rowsort
SELECT DISTINCT - 25 + col1 AS col0 FROM tab0 AS cor0
----
61
66
72
query I rowsort
SELECT ALL cor0.col0 * - col2 * - col1 + + col2 FROM tab0 AS cor0
----
3396
664200
68145
query I rowsort
SELECT ALL cor0.col1 * col0 - + col2 AS col1 FROM tab2 AS cor0
----
1305
190
4576
query I rowsort
SELECT ALL + 20 + - col1 * col2 AS col1 FROM tab0 AS cor0
----
-2818
-7442
-77
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab2, tab1 cor1, tab1, tab0 cor2
----
3645 values hashing to f99537dcc805430f79ac82ef70a4bd59
onlyif mysql # use DIV operator for integer division
query I rowsort label-2074
SELECT + col1 DIV cor0.col0 + - 47 AS col2 FROM tab2 cor0
----
-43
-47
-47
skipif mysql # not compatible
query I rowsort label-2074
SELECT + col1 / cor0.col0 + - 47 AS col2 FROM tab2 cor0
----
-43
-47
-47
query I rowsort
SELECT DISTINCT cor0.col1 + 4 FROM tab2 AS cor0
----
21
35
63
query I rowsort
SELECT ALL col1 * ( 18 ) + - col1 AS col1 FROM tab1 cor0
----
170
221
442
onlyif mysql # use DIV operator for integer division
query I rowsort label-2077
SELECT col1 + col1 DIV - ( - col1 + col0 ) AS col1 FROM tab2 AS cor0
----
17
32
56
skipif mysql # not compatible
query I rowsort label-2077
SELECT col1 + col1 / - ( - col1 + col0 ) AS col1 FROM tab2 AS cor0
----
17
32
56
query I rowsort
SELECT col1 * col0 + + col1 AS col1 FROM tab1 AS cor0
----
104
1053
650
query I rowsort
SELECT ALL - col0 + ( + 68 ) * col0 FROM tab1 cor0
----
201
4288
5360
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2080
SELECT ALL - - col1 * CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2080
SELECT ALL - - col1 * CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2081
SELECT ALL + col2 * + CAST( + col1 AS SIGNED ) FROM tab2 AS cor0
----
1534
646
837
skipif mysql # not compatible
query I rowsort label-2081
SELECT ALL + col2 * + CAST ( + col1 AS INTEGER ) FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT DISTINCT col2 + + ( + 26 + col2 ) * + col0 * - cor0.col0 FROM tab2 AS cor0
----
-2570
-316342
-399386
query I rowsort
SELECT col0 + 87 FROM tab2 AS cor0
----
165
166
94
query I rowsort
SELECT col0 * + 55 FROM tab2 AS cor0
----
385
4290
4345
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 17 + - cor0.col1 col0 FROM tab1 AS cor0
----
-27
-30
-43
query I rowsort
SELECT - cor0.col2 * ( col2 ) AS col0 FROM tab2 AS cor0
----
-1444
-676
-729
onlyif mysql # use DIV operator for integer division
query I rowsort label-2087
SELECT ALL + col2 + + 83 DIV + col0 FROM tab0 AS cor0
----
3
36
82
skipif mysql # not compatible
query I rowsort label-2087
SELECT ALL + col2 + + 83 / + col0 FROM tab0 AS cor0
----
3
36
82
query I rowsort
SELECT ALL 33 * - cor0.col2 FROM tab2, tab1 cor0
----
9 values hashing to 1ae98b00fc45346dda555ad1945cf133
query I rowsort
SELECT DISTINCT 71 * col1 AS col1 FROM tab1 AS cor0
----
1846
710
923
query I rowsort
SELECT - - 39 * + col2 * - col0 FROM tab0 AS cor0
----
-1365
-284622
-30888
onlyif mysql # use DIV operator for integer division
query I rowsort label-2091
SELECT ALL - col2 DIV col1 + - col1 * col2 FROM tab0 AS cor0
----
-2838
-7462
-97
skipif mysql # not compatible
query I rowsort label-2091
SELECT ALL - col2 / col1 + - col1 * col2 FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT 52 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 7f4ae30893ab330784829711032ae599
query I rowsort
SELECT ALL + col0 * 84 + - col2 FROM tab2
----
561
6526
6598
query I rowsort
SELECT 96 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2, tab1 AS cor1, tab1 AS cor2
----
81 values hashing to e03080212e3345d8b37e64e3264019c4
query I rowsort
SELECT ALL 79 FROM tab1, tab2 cor0
----
9 values hashing to 40a2261caa2c5cdbfd80965d7df1231f
query I rowsort
SELECT + 11 FROM tab0, tab2 AS cor0, tab2, tab0 AS cor1
----
81 values hashing to 288f8fb62e079d095c14d7cf3e2d3359
query I rowsort
SELECT ALL 84 * + col2 - - col0 FROM tab1 AS cor0
----
4539
4852
8144
query I rowsort
SELECT DISTINCT - cor0.col1 * ( col2 ) FROM tab1 cor0
----
-1248
-1404
-570
query I rowsort
SELECT ALL + 42 + col1 * cor0.col1 + - cor0.col1 FROM tab1 AS cor0
----
132
198
692
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2100
SELECT ALL - CAST( NULL AS DECIMAL ) + + 5 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2100
SELECT ALL - CAST ( NULL AS REAL ) + + 5 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT 84 + - col1 * cor0.col2 FROM tab2 AS cor0
----
-1450
-562
-753
query I rowsort
SELECT ALL + col2 * + col1 + col2 * - 79 AS col0 FROM tab1 AS cor0
----
-2862
-3933
-6336
query I rowsort
SELECT DISTINCT - + col2 - col2 FROM tab1 AS cor0
----
-108
-114
-192
onlyif mysql # use DIV operator for integer division
query I rowsort label-2104
SELECT ALL - + col2 - cor0.col0 DIV + col2 FROM tab0 AS cor0
----
-33
-36
-83
skipif mysql # not compatible
query I rowsort label-2104
SELECT ALL - + col2 - cor0.col0 / + col2 FROM tab0 AS cor0
----
-33
-36
-83
query I rowsort
SELECT DISTINCT cor0.col2 + cor0.col1 AS col2 FROM tab1 AS cor0
----
109
67
80
query I rowsort
SELECT - - ( - col2 ) AS col2 FROM tab0 cor0
----
-1
-33
-82
query I rowsort
SELECT DISTINCT - - 38 AS col1 FROM tab1 cor0
----
38
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( + col2 ) * + col0 + + col2 col1 FROM tab2 AS cor0
----
-162
-2002
-2964
query I rowsort
SELECT ALL + - ( - col2 ) - col1 * + 22 AS col0 FROM tab0 AS cor0
----
-1859
-1920
-2133
query I rowsort
SELECT - col1 * + 49 AS col2 FROM tab1 AS cor0
----
-1274
-490
-637
query I rowsort
SELECT + col0 * 52 * - col1 FROM tab1 AS cor0
----
-33280
-4056
-54080
query I rowsort
SELECT DISTINCT 16 AS col0 FROM tab1, tab0 AS cor0
----
16
query I rowsort
SELECT 71 + - col0 * col1 + col2 FROM tab2
----
-119
-1234
-4505
query I rowsort
SELECT DISTINCT - col2 * + 30 + + 46 AS col0 FROM tab1
----
-1574
-1664
-2834
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + - 48 col1 FROM tab1
----
48
6
9
query I rowsort
SELECT - ( + cor1.col2 * 74 ) AS col1 FROM tab0, tab1 cor0, tab1 AS cor1
----
27 values hashing to 96d9cb360e04be6ba49bac0a54b8cad8
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - 47 col0 FROM tab0
----
-1551
-3854
-47
query I rowsort
SELECT + col2 * ( tab1.col0 * col1 + 6 ) FROM tab1
----
100416
36822
4536
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 - col2 col2 FROM tab0 AS cor0
----
53
9
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * 10 col2 FROM tab1 AS cor0
----
-30
-640
-800
query I rowsort
SELECT - + 95 AS col0 FROM tab0, tab0 cor0
----
9 values hashing to 1c7934db0632c123332c43f17b661d6c
query I rowsort
SELECT ALL - col1 * 52 FROM tab0 AS cor0
----
-4472
-4732
-5044
query I rowsort
SELECT ALL + col1 * 83 + + 29 * - col1 FROM tab1 AS cor0
----
1404
540
702
query I rowsort
SELECT + cor0.col0 + 71 AS col1 FROM tab0 AS cor0
----
106
160
95
query I rowsort
SELECT DISTINCT 94 * cor1.col2 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
3102
7708
94
query I rowsort
SELECT 59 * col2 * - col1 AS col0 FROM tab2
----
-38114
-49383
-90506
query I rowsort
SELECT + - col1 * - col0 + - col2 AS col0 FROM tab2 AS cor0
----
1305
190
4576
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * col1 * - col1 + col1 * - cor0.col2 col1 FROM tab2 AS cor0
----
-206913
-30628
-5559
query I rowsort
SELECT - + 42 + col2 FROM tab0 cor0
----
-41
-9
40
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2130
SELECT ALL + ( + col2 ) * CAST( NULL AS SIGNED ) / - col2 AS col2 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2130
SELECT ALL + ( + col2 ) * CAST ( NULL AS INTEGER ) / - col2 AS col2 FROM tab1
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-2131
SELECT + col0 * + 62 + - 93 DIV cor0.col1 FROM tab0 AS cor0
----
1487
2170
5517
skipif mysql # not compatible
query I rowsort label-2131
SELECT + col0 * + 62 + - 93 / cor0.col1 FROM tab0 AS cor0
----
1487
2170
5517
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2132
SELECT ALL - CAST( NULL AS SIGNED ) - - 75 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-2132
SELECT ALL - CAST ( NULL AS INTEGER ) - - 75 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2133
SELECT - + col0 * - CAST( NULL AS SIGNED ) * + col0 + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2133
SELECT - + col0 * - CAST ( NULL AS INTEGER ) * + col0 + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2134
SELECT DISTINCT CAST( NULL AS SIGNED ) - + 88 * + col1 AS col1 FROM tab1 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-2134
SELECT DISTINCT CAST ( NULL AS INTEGER ) - + 88 * + col1 AS col1 FROM tab1 cor0
----
NULL
query I rowsort
SELECT DISTINCT - 45 * col2 + col2 * - ( - 16 * col2 ) + + col0 * col2 FROM tab2 AS cor0
----
10638
11674
24396
query I rowsort
SELECT + col2 * col0 - col0 FROM tab1 AS cor0
----
159
3584
7600
query I rowsort
SELECT DISTINCT 92 * - 34 * col0 + tab0.col1 AS col1 FROM tab0
----
-109383
-278301
-74986
query I rowsort
SELECT + col0 * + col0 + - 68 + col2 AS col0 FROM tab1 AS cor0
----
-5
4085
6428
query I rowsort
SELECT - col2 + + col1 * 66 FROM tab1 AS cor0
----
1662
603
762
query I rowsort
SELECT 60 * - cor0.col0 + - 33 FROM tab0 AS cor0
----
-1473
-2133
-5373
query I rowsort
SELECT col1 * 24 FROM tab1
----
240
312
624
onlyif mysql # use DIV operator for integer division
query I rowsort label-2142
SELECT DISTINCT 2 DIV - 92 FROM tab1
----
0
skipif mysql # not compatible
query I rowsort label-2142
SELECT DISTINCT 2 / - 92 FROM tab1
----
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-2143
SELECT 53 DIV - col1 col2 FROM tab2
----
-1
-3
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2143
SELECT 53 / - col1 col2 FROM tab2
----
-1
-3
0
query I rowsort
SELECT ALL col0 * - col2 * tab2.col1 + - col2 AS col1 FROM tab2
----
-119678
-51072
-5886
query I rowsort
SELECT ALL 19 + col1 + - col0 * + col2 FROM tab2
----
-139
-1950
-2966
query I rowsort
SELECT + + 29 - - col1 AS col2 FROM tab1 AS cor0
----
39
42
55
query I rowsort
SELECT ALL - + 79 + + col1 AS col0 FROM tab2 AS cor0
----
-20
-48
-62
query I rowsort
SELECT - 46 * col2 AS col2 FROM tab1
----
-2484
-2622
-4416
query I rowsort
SELECT + ( col1 + col1 ) AS col1 FROM tab2
----
118
34
62
query I rowsort
SELECT DISTINCT col1 * + col0 * + 31 AS col1 FROM tab2 AS cor0
----
142662
41633
6727
query I rowsort
SELECT ALL - col0 * 15 + + 23 * col0 AS col0 FROM tab2 AS cor0
----
56
624
632
query I rowsort
SELECT - 33 * - col1 FROM tab1
----
330
429
858
query I rowsort
SELECT ALL 41 + + col2 - col1 FROM tab0
----
-12
-55
32
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - col2 ) + - col1 * col0 col1 FROM tab2
----
-1381
-244
-4628
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * col0 * - tab0.col2 col2 FROM tab0
----
-1225
-19008
-649522
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2156
SELECT ALL - col1 * + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2156
SELECT ALL - col1 * + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT + 80 * - 80 FROM tab1 AS cor0
----
-6400
-6400
-6400
query I rowsort
SELECT ALL + ( - 98 ) FROM tab0 AS cor0
----
-98
-98
-98
query I rowsort
SELECT DISTINCT ( + col2 ) * + cor0.col0 AS col1 FROM tab0 cor0
----
35
7298
792
query I rowsort
SELECT - + ( 90 ) * + col1 FROM tab0 AS cor0
----
-7740
-8190
-8730
query I rowsort
SELECT DISTINCT - + col0 + col1 * - col0 FROM tab1 AS cor0
----
-1120
-704
-81
query I rowsort
SELECT ( cor0.col1 ) + col1 * + col2 FROM tab0 AS cor0
----
194
2924
7553
query I rowsort
SELECT ALL - 51 * + 91 AS col1 FROM tab1 AS cor0
----
-4641
-4641
-4641
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2164
SELECT + col2 - CAST( col0 AS SIGNED ) * col1 * col0 AS col0 FROM tab0
----
-118824
-49503
-720729
skipif mysql # not compatible
query I rowsort label-2164
SELECT + col2 - CAST ( col0 AS INTEGER ) * col1 * col0 AS col0 FROM tab0
----
-118824
-49503
-720729
query I rowsort
SELECT DISTINCT col2 * ( - 38 * col1 ) FROM tab1
----
-21660
-47424
-53352
query I rowsort
SELECT ALL + + tab0.col2 AS col0 FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to 7786718bd8042022537378d40ec87475
query I rowsort
SELECT DISTINCT - col2 * 37 AS col1 FROM tab0
----
-1221
-3034
-37
query I rowsort
SELECT ( + 17 * tab1.col1 ) - + col1 AS col2 FROM tab1
----
160
208
416
query I rowsort
SELECT - col1 + 20 * col0 FROM tab2 AS cor0
----
109
1501
1563
query I rowsort
SELECT - 42 * col1 FROM tab1 AS cor0
----
-1092
-420
-546
query I rowsort
SELECT - ( + col0 ) * - col0 FROM tab2 AS cor0
----
49
6084
6241
query I rowsort
SELECT + col1 + + 27 AS col2 FROM tab1 AS cor0
----
37
40
53
query I rowsort
SELECT 25 * col1 AS col2 FROM tab0 AS cor0
----
2150
2275
2425
query I rowsort
SELECT - 48 * + 71 FROM tab2 AS cor0
----
-3408
-3408
-3408
query I rowsort
SELECT ALL - + col0 + - 77 - + 66 AS col0 FROM tab0 AS cor0
----
-167
-178
-232
query I rowsort
SELECT ALL + cor0.col0 * - cor0.col0 + - col0 + - cor0.col1 * col0 FROM tab1 AS cor0
----
-4800
-7520
-90
query I rowsort
SELECT DISTINCT - col2 * - 15 AS col0 FROM tab1 cor0
----
1440
810
855
query I rowsort
SELECT DISTINCT col2 * col1 + - col1 AS col2 FROM tab2 cor0
----
1475
629
806
query I rowsort
SELECT tab2.col1 + - col0 * col0 AS col1 FROM tab2
----
-18
-6025
-6224
onlyif mysql # use DIV operator for integer division
query I rowsort label-2180
SELECT tab1.col0 + - 53 DIV col1 col2 FROM tab1
----
1
59
76
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2180
SELECT tab1.col0 + - 53 / col1 col2 FROM tab1
----
1
59
76
query I rowsort
SELECT DISTINCT col1 * 6 AS col2 FROM tab0 AS cor0
----
516
546
582
query I rowsort
SELECT ALL - col0 * col2 + + ( - col1 + col1 ) AS col0 FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT col1 + - 38 AS col2 FROM tab2
----
-21
-7
21
query I rowsort
SELECT ALL tab2.col0 AS col2 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83
query I rowsort
SELECT DISTINCT + tab0.col2 * col1 * + col1 - - 84 AS col2 FROM tab0
----
244152
679126
9493
query I rowsort
SELECT DISTINCT col0 + + col2 - tab2.col0 AS col2 FROM tab2
----
26
27
38
query I rowsort
SELECT + col2 + 51 + col1 FROM tab1
----
118
131
160
onlyif mysql # use DIV operator for integer division
query I rowsort label-2188
SELECT ALL + col1 - + col1 DIV + tab0.col1 col2 FROM tab0
----
85
90
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2188
SELECT ALL + col1 - + col1 / + tab0.col1 col2 FROM tab0
----
85
90
96
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2189
SELECT DISTINCT CAST( NULL AS SIGNED ) - + 52 FROM tab0
----
NULL
skipif mysql # not compatible
query I rowsort label-2189
SELECT DISTINCT CAST ( NULL AS INTEGER ) - + 52 FROM tab0
----
NULL
query I rowsort
SELECT ALL + col0 * col1 - ( - 56 ) * + col2 FROM tab1 AS cor0
----
3102
3832
6416
query I rowsort
SELECT tab2.col0 + ( + col1 ) - + ( + col2 ) FROM tab2
----
11
111
58
query I rowsort
SELECT 54 * + col2 + tab2.col1 FROM tab2
----
1463
1489
2069
onlyif mysql # use DIV operator for integer division
query I rowsort label-2193
SELECT ALL - col0 * col1 DIV col2 + + col0 DIV + tab1.col1 AS col0 FROM tab1
----
-1
-4
-5
skipif mysql # not compatible
query I rowsort label-2193
SELECT ALL - col0 * col1 / col2 + + col0 / + tab1.col1 AS col0 FROM tab1
----
-1
-4
-5
query I rowsort
SELECT ALL - col0 + 96 FROM tab1
----
16
32
93
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2195
SELECT ALL - 39 + ( - col1 ) * - CAST( NULL AS SIGNED ) * col0 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2195
SELECT ALL - 39 + ( - col1 ) * - CAST ( NULL AS INTEGER ) * col0 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - col0 * + col2 + - col1 * tab1.col2 AS col2 FROM tab1
----
-1566
-4218
-8928
query I rowsort
SELECT DISTINCT - col1 + - col2 AS col1 FROM tab2 cor0
----
-55
-58
-85
query I rowsort
SELECT + ( col1 ) * - cor0.col1 * col1 FROM tab0 AS cor0
----
-636056
-753571
-912673
query I rowsort
SELECT ALL + - col0 * cor0.col1 AS col0 FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT ALL - col2 + - tab1.col0 AS col2 FROM tab1
----
-121
-176
-57
query I rowsort
SELECT cor0.col2 * col2 - col2 AS col0 FROM tab1 AS cor0
----
2862
3192
9120
query I rowsort
SELECT - + 38 * col0 + col0 * 92 AS col0 FROM tab1 AS cor0
----
162
3456
4320
query I rowsort
SELECT col2 * + col1 + cor0.col0 AS col0 FROM tab1 AS cor0
----
1328
1407
634
query I rowsort
SELECT ALL + col0 + - cor0.col2 + + cor0.col0 FROM tab2 AS cor0
----
-13
120
130
query I rowsort
SELECT ALL - - col1 + - col0 + col1 AS col0 FROM tab1 cor0
----
-44
-54
49
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( cor0.col2 ) * cor0.col2 col2 FROM tab2 AS cor0
----
-1444
-676
-729
onlyif mysql # use DIV operator for integer division
query I rowsort label-2207
SELECT - col0 DIV + col1 col1 FROM tab0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2207
SELECT - col0 / + col1 col1 FROM tab0
----
0
0
0
query I rowsort
SELECT DISTINCT + 14 AS col0 FROM tab1, tab0, tab0 cor0
----
14
query I rowsort
SELECT DISTINCT + col1 * + col2 * + tab1.col1 FROM tab1
----
16224
36504
5700
onlyif mysql # use DIV operator for integer division
query I rowsort label-2210
SELECT DISTINCT - col1 DIV tab2.col1 AS col0 FROM tab2
----
-1
skipif mysql # not compatible
query I rowsort label-2210
SELECT DISTINCT - col1 / tab2.col1 AS col0 FROM tab2
----
-1
query I rowsort
SELECT + ( col1 + + ( col0 ) ) * - col0 * - col0 FROM tab0
----
1425780
161700
63360
query I rowsort
SELECT ALL - col1 + + tab1.col1 * - col2 AS col1 FROM tab1
----
-1261
-1430
-580
query I rowsort
SELECT 62 * + col2 * ( col2 ) AS col1 FROM tab0
----
416888
62
67518
query I rowsort
SELECT DISTINCT + + 29 * cor0.col1 FROM tab0 AS cor0
----
2494
2639
2813
query I rowsort
SELECT + + col2 + + ( + cor0.col2 ) AS col2 FROM tab1 AS cor0
----
108
114
192
onlyif mysql # use DIV operator for integer division
query I rowsort label-2216
SELECT DISTINCT + col2 + + col2 DIV - cor0.col1 AS col0 FROM tab1 AS cor0
----
52
89
skipif mysql # not compatible
query I rowsort label-2216
SELECT DISTINCT + col2 + + col2 / - cor0.col1 AS col0 FROM tab1 AS cor0
----
52
89
query I rowsort
SELECT ALL + col2 * 65 FROM tab0 AS cor0
----
2145
5330
65
query I rowsort
SELECT col2 + - ( col1 * - col2 ) + cor0.col0 FROM tab1 AS cor0
----
1424
1461
691
query I rowsort
SELECT DISTINCT + col1 + - 66 FROM tab2 cor0
----
-35
-49
-7
query I rowsort
SELECT ALL 75 * col1 * 57 + + 1 FROM tab1
----
111151
42751
55576
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * 49 col2 FROM tab1 AS cor0
----
2646
2793
4704
onlyif mysql # use DIV operator for integer division
query I rowsort label-2222
SELECT - col0 * 19 + + ( - col0 + cor0.col0 ) DIV cor0.col2 AS col2 FROM tab0 AS cor0
----
-1691
-456
-665
skipif mysql # not compatible
query I rowsort label-2222
SELECT - col0 * 19 + + ( - col0 + cor0.col0 ) / cor0.col2 AS col2 FROM tab0 AS cor0
----
-1691
-456
-665
onlyif mysql # use DIV operator for integer division
query I rowsort label-2223
SELECT ALL + ( + 43 ) DIV col1 + + col2 AS col1 FROM tab0 cor0
----
1
33
82
skipif mysql # not compatible
query I rowsort label-2223
SELECT ALL + ( + 43 ) / col1 + + col2 AS col1 FROM tab0 cor0
----
1
33
82
query I rowsort
SELECT DISTINCT + + col1 + + 55 * col0 AS col1 FROM tab0 AS cor0
----
1406
2022
4986
onlyif mysql # use DIV operator for integer division
query I rowsort label-2225
SELECT DISTINCT + 95 DIV - col1 FROM tab2 AS cor0
----
-1
-3
-5
skipif mysql # not compatible
query I rowsort label-2225
SELECT DISTINCT + 95 / - col1 FROM tab2 AS cor0
----
-1
-3
-5
query I rowsort
SELECT ALL - 81 * col1 + col0 FROM tab2 AS cor0
----
-1298
-2504
-4701
query I rowsort
SELECT ALL 93 * + cor0.col0 + + col2 AS col2 FROM tab0 cor0
----
2265
3256
8359
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2228
SELECT ALL + - CAST( col0 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-24
-35
-89
skipif mysql # not compatible
query I rowsort label-2228
SELECT ALL + - CAST ( col0 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-24
-35
-89
onlyif mysql # use DIV operator for integer division
query I rowsort label-2229
SELECT + 14 DIV ( col0 ) FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-2229
SELECT + 14 / ( col0 ) FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT ALL - + cor0.col1 * + ( - col0 ) + - col1 * col0 * col0 FROM tab0 AS cor0
----
-115430
-47472
-712712
query I rowsort
SELECT + + 48 + col2 FROM tab2 AS cor0
----
74
75
86
query I rowsort
SELECT ALL cor0.col1 * cor0.col0 AS col1 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT - - 83 FROM tab2 AS cor0
----
83
83
83
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + 67 * cor0.col0 col0 FROM tab2 AS cor0
----
442
5200
5255
query I rowsort
SELECT - 38 + col0 + + col2 * col1 FROM tab0 AS cor0
----
2824
7513
94
query I rowsort
SELECT DISTINCT + cor1.col2 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
26
27
38
query I rowsort
SELECT + 75 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 22042bfd4d787415457a42bb93d48eea
query I rowsort
SELECT DISTINCT - 2 * - col0 AS col2 FROM tab1
----
128
160
6
onlyif mysql # use DIV operator for integer division
query I rowsort label-2239
SELECT + col1 + - 87 * col2 DIV 16 FROM tab2
----
-115
-189
-82
skipif mysql # not compatible
query I rowsort label-2239
SELECT + col1 + - 87 * col2 / 16 FROM tab2
----
-115
-189
-82
query I rowsort
SELECT DISTINCT col1 * + 64 FROM tab2
----
1088
1984
3776
onlyif mysql # use DIV operator for integer division
query I rowsort label-2241
SELECT DISTINCT 38 * ( col1 ) DIV - cor0.col1 FROM tab2 AS cor0
----
-38
skipif mysql # not compatible
query I rowsort label-2241
SELECT DISTINCT 38 * ( col1 ) / - cor0.col1 FROM tab2 AS cor0
----
-38
query I rowsort
SELECT ALL + ( col1 ) * + col0 + + 0 AS col2 FROM tab2 cor0
----
1343
217
4602
query I rowsort
SELECT ALL - 19 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 339c9d62143bf2f7566b89a1b56eeeb4
query I rowsort
SELECT + col1 + 73 * + col0 * - col0 FROM tab0 AS cor0
----
-41962
-578142
-89328
query I rowsort
SELECT - - 89 + + col0 * col0 FROM tab2 AS cor0
----
138
6173
6330
query I rowsort
SELECT - + 92 * + 24 AS col0 FROM tab0 AS cor0
----
-2208
-2208
-2208
onlyif mysql # use DIV operator for integer division
query I rowsort label-2247
SELECT col0 * 55 DIV col0 FROM tab1
----
55
55
55
skipif mysql # not compatible
query I rowsort label-2247
SELECT col0 * 55 / col0 FROM tab1
----
55
55
55
query I rowsort
SELECT col2 * - ( + col1 ) AS col2 FROM tab0
----
-2838
-7462
-97
query I rowsort
SELECT DISTINCT + 31 * - 72 FROM tab0, tab0 cor0
----
-2232
query I rowsort
SELECT ALL tab1.col1 AS col0 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892
onlyif mysql # use DIV operator for integer division
query I rowsort label-2251
SELECT col1 DIV 68 AS col0 FROM tab2
----
0
0
0
skipif mysql # not compatible
query I rowsort label-2251
SELECT col1 / 68 AS col0 FROM tab2
----
0
0
0
query I rowsort
SELECT ALL + cor0.col0 AS col1 FROM tab2, tab0 AS cor0, tab1 cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd
query I rowsort
SELECT - cor0.col2 * cor0.col1 + + cor0.col1 FROM tab1 AS cor0
----
-1235
-1378
-560
query I rowsort
SELECT + ( 52 ) + col2 FROM tab2 AS cor0
----
78
79
90
query I rowsort
SELECT DISTINCT 61 * - 45 + tab2.col1 AS col0 FROM tab2
----
-2686
-2714
-2728
query I rowsort
SELECT ( - cor0.col1 ) + col2 * 80 FROM tab2 AS cor0
----
2021
2129
3023
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2257
SELECT - CAST( NULL AS SIGNED ) * 61 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-2257
SELECT - CAST ( NULL AS INTEGER ) * 61 col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2258
SELECT ALL + tab2.col1 + - CAST( NULL AS SIGNED ) FROM tab2, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-2258
SELECT ALL + tab2.col1 + - CAST ( NULL AS INTEGER ) FROM tab2, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT - col2 + col1 * - cor0.col0 FROM tab1 cor0
----
-1136
-132
-697
query I rowsort
SELECT DISTINCT + col0 * col0 * - col0 AS col2 FROM tab0
----
-13824
-42875
-704969
query I rowsort
SELECT DISTINCT + col1 * + tab2.col0 * + col1 FROM tab2
----
22831
271518
6727
query I rowsort
SELECT + cor0.col2 * 49 AS col0 FROM tab2 AS cor0
----
1274
1323
1862
query I rowsort
SELECT col1 * + col1 + col1 * - col0 + 72 AS col1 FROM tab1
----
-468
-799
670
query I rowsort
SELECT DISTINCT - col1 - + ( 12 ) * col2 * col0 FROM tab0
----
-517
-87667
-9590
query I rowsort
SELECT ALL col1 - + 97 AS col0 FROM tab0 AS cor0
----
-11
-6
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor1.col2 col2 FROM tab2 AS cor0 CROSS JOIN tab2, tab1 AS cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79
query I rowsort
SELECT ALL tab0.col0 * + 49 FROM tab0
----
1176
1715
4361
query I rowsort
SELECT ALL + col0 * + col0 * col1 FROM tab2 AS cor0
----
106097
1519
358956
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2269
SELECT ALL col2 + CAST( + col0 AS SIGNED ) * - col1 AS col2 FROM tab1 cor0
----
-24
-583
-944
skipif mysql # not compatible
query I rowsort label-2269
SELECT ALL col2 + CAST ( + col0 AS INTEGER ) * - col1 AS col2 FROM tab1 cor0
----
-24
-583
-944
query I rowsort
SELECT + + col0 * col0 * - col2 AS col1 FROM tab2 cor0
----
-1323
-158184
-237158
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * - cor0.col2 col2 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT + col0 + 39 * col0 FROM tab0 AS cor0
----
1400
3560
960
onlyif mysql # use DIV operator for integer division
query I rowsort label-2273
SELECT + col0 DIV 36 AS col1 FROM tab0 AS cor0
----
0
0
2
skipif mysql # not compatible
query I rowsort label-2273
SELECT + col0 / 36 AS col1 FROM tab0 AS cor0
----
0
0
2
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + - cor0.col1 * - col0 col0 FROM tab2 cor0
----
1264
210
4524
query I rowsort
SELECT DISTINCT - - col2 + cor0.col0 * col0 AS col2 FROM tab0 AS cor0
----
1226
609
8003
onlyif mysql # use DIV operator for integer division
query I rowsort label-2276
SELECT DISTINCT - + col1 DIV col0 AS col1 FROM tab2 AS cor0
----
-4
0
skipif mysql # not compatible
query I rowsort label-2276
SELECT DISTINCT - + col1 / col0 AS col1 FROM tab2 AS cor0
----
-4
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-2277
SELECT - col1 DIV + cor0.col1 AS col1 FROM tab1 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-2277
SELECT - col1 / + cor0.col1 AS col1 FROM tab1 AS cor0
----
-1
-1
-1
query I rowsort
SELECT + col0 - 43 AS col2 FROM tab0 AS cor0
----
-19
-8
46
query I rowsort
SELECT ALL - 11 * + col0 FROM tab0 cor0
----
-264
-385
-979
onlyif mysql # use DIV operator for integer division
query I rowsort label-2280
SELECT - ( col1 ) - col2 DIV col2 AS col2 FROM tab1 cor0
----
-11
-14
-27
skipif mysql # not compatible
query I rowsort label-2280
SELECT - ( col1 ) - col2 / col2 AS col2 FROM tab1 cor0
----
-11
-14
-27
onlyif mysql # use DIV operator for integer division
query I rowsort label-2281
SELECT ALL + - col2 DIV col2 AS col2 FROM tab0 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-2281
SELECT ALL + - col2 / col2 AS col2 FROM tab0 AS cor0
----
-1
-1
-1
query I rowsort
SELECT - 49 * - 21 FROM tab0 AS cor0
----
1029
1029
1029
query I rowsort
SELECT ALL + cor1.col0 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63
query I rowsort
SELECT ALL + 26 + 4 AS col1 FROM tab1 AS cor0
----
30
30
30
query I rowsort
SELECT + col1 * + col0 * - col0 FROM tab0 AS cor0
----
-118825
-49536
-720811
query I rowsort
SELECT DISTINCT + - col2 + ( - col2 ) FROM tab2 AS cor0
----
-52
-54
-76
onlyif mysql # use DIV operator for integer division
query I rowsort label-2287
SELECT DISTINCT col1 DIV + cor0.col0 + - cor0.col2 AS col0 FROM tab0 AS cor0
----
-30
-81
1
skipif mysql # not compatible
query I rowsort label-2287
SELECT DISTINCT col1 / + cor0.col0 + - cor0.col2 AS col0 FROM tab0 AS cor0
----
-30
-81
1
query I rowsort
SELECT DISTINCT col1 * col2 - - ( - col0 + cor0.col1 ) * - col0 AS col0 FROM tab2 AS cor0
----
3016
5544
669
query I rowsort
SELECT - + 37 * col0 AS col0 FROM tab0 cor0
----
-1295
-3293
-888
query I rowsort
SELECT DISTINCT + + 27 * col1 + + col1 * 21 AS col2 FROM tab1 cor0
----
1248
480
624
query I rowsort
SELECT cor0.col0 * - 53 AS col0 FROM tab2 AS cor0
----
-371
-4134
-4187
query I rowsort
SELECT DISTINCT + + col0 * col2 * - col2 FROM tab0 cor0
----
-26136
-35
-598436
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col0 * - 81 col0 FROM tab1 AS cor0
----
-243
-5184
-6480
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2294
SELECT + + col2 * CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2294
SELECT + + col2 * CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2295
SELECT ALL - + col1 + - CAST( NULL AS SIGNED ) + + ( col1 ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2295
SELECT ALL - + col1 + - CAST ( NULL AS INTEGER ) + + ( col1 ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-2296
SELECT ALL col1 * col0 DIV - col1 + col2 * tab2.col0 FROM tab2
----
182
1950
2923
skipif mysql # not compatible
query I rowsort label-2296
SELECT ALL col1 * col0 / - col1 + col2 * tab2.col0 FROM tab2
----
182
1950
2923
onlyif mysql # use DIV operator for integer division
query I rowsort label-2297
SELECT DISTINCT 61 * col1 + 5 DIV col0 + col1 FROM tab1
----
1613
620
806
skipif mysql # not compatible
query I rowsort label-2297
SELECT DISTINCT 61 * col1 + 5 / col0 + col1 FROM tab1
----
1613
620
806
query I rowsort
SELECT ALL 7 + + col0 AS col2 FROM tab0
----
31
42
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 61 col2 FROM tab0 AS cor0
----
-61
-61
-61
skipif mysql # not compatible
query I rowsort
SELECT ALL - ( + col0 ) + CAST ( - col2 AS REAL ) * - cor0.col1 AS col0 FROM tab2 AS cor0
----
1456
567
830
skipif mysql # not compatible
query I rowsort
SELECT ( tab0.col1 ) * + CAST ( - ( + col1 ) AS REAL ) FROM tab0
----
-7396
-8281
-9409
query I rowsort
SELECT 31 * col0 FROM tab1
----
1984
2480
93
query I rowsort
SELECT ( cor0.col2 ) + + col1 AS col0 FROM tab2 AS cor0
----
55
58
85
query I rowsort
SELECT + col0 * + col2 * + col0 AS col2 FROM tab1
----
233472
486
614400
query I rowsort
SELECT tab0.col2 * col1 + - col2 AS col1 FROM tab0
----
2805
7380
96
query I rowsort
SELECT DISTINCT + col0 * col1 * + 77 + - 56 AS col2 FROM tab1 AS cor0
----
49224
5950
80024
onlyif mysql # use DIV operator for integer division
query I rowsort label-2307
SELECT ALL - 61 DIV - col0 + - col1 AS col2 FROM tab2
----
-17
-23
-59
skipif mysql # not compatible
query I rowsort label-2307
SELECT ALL - 61 / - col0 + - col1 AS col2 FROM tab2
----
-17
-23
-59
query I rowsort
SELECT ALL + cor0.col2 + 16 FROM tab2 AS cor0
----
42
43
54
onlyif mysql # use DIV operator for integer division
query I rowsort label-2309
SELECT + - col0 DIV - col0 AS col2 FROM tab0 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-2309
SELECT + - col0 / - col0 AS col2 FROM tab0 AS cor0
----
1
1
1
query I rowsort
SELECT + col0 + + 15 * col0 FROM tab0 AS cor0
----
1424
384
560
onlyif mysql # use DIV operator for integer division
query I rowsort label-2311
SELECT + - cor0.col0 * cor0.col1 DIV col1 AS col0 FROM tab0 AS cor0
----
-24
-35
-89
skipif mysql # not compatible
query I rowsort label-2311
SELECT + - cor0.col0 * cor0.col1 / col1 AS col0 FROM tab0 AS cor0
----
-24
-35
-89
onlyif mysql # use DIV operator for integer division
query I rowsort label-2312
SELECT 31 * col0 DIV + 85 + col1 AS col0 FROM tab0
----
109
123
94
skipif mysql # not compatible
query I rowsort label-2312
SELECT 31 * col0 / + 85 + col1 AS col0 FROM tab0
----
109
123
94
query I rowsort
SELECT DISTINCT + col2 * + col0 * - ( col0 ) + col1 * ( - col2 * col2 ) + ( - tab1.col1 * col2 ) FROM tab1
----
-266532
-735456
-77706
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + col2 col2 FROM tab0
----
171
36
57
query I rowsort
SELECT 79 + col0 FROM tab2
----
157
158
86
query I rowsort
SELECT col1 - - col0 * + col0 * + tab0.col0 FROM tab0
----
13910
42972
705060
onlyif mysql # use DIV operator for integer division
query I rowsort label-2317
SELECT DISTINCT col0 DIV tab0.col2 - - col0 FROM tab0
----
24
70
90
skipif mysql # not compatible
query I rowsort label-2317
SELECT DISTINCT col0 / tab0.col2 - - col0 FROM tab0
----
24
70
90
query I rowsort
SELECT col2 FROM tab2 WHERE ( col1 ) <= NULL
----
query I rowsort
SELECT - col2 * col2 + + tab2.col0 * - col0 + col0 * col0 * - col0 FROM tab2
----
-1121
-481312
-500724
query III rowsort
SELECT ALL * FROM tab1 WHERE NULL < col1 * col0
----
query I rowsort
SELECT col2 AS col2 FROM tab2 WHERE ( col2 ) IN ( col0 + + col0 + col1 )
----
query I rowsort
SELECT col0 * col2 - + col1 AS col0 FROM tab0
----
-62
706
7207
query I rowsort
SELECT ALL col1 * col2 * col2 FROM tab2
----
22599
24548
39884
query I rowsort
SELECT col0 * - tab2.col1 AS col1 FROM tab2 WHERE NOT NULL NOT IN ( col2 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-2325
SELECT ALL - col1 * + col1 + - col0 - col0 DIV col0 FROM tab1
----
-165
-250
-680
skipif mysql # not compatible
query I rowsort label-2325
SELECT ALL - col1 * + col1 + - col0 - col0 / col0 FROM tab1
----
-165
-250
-680
query I rowsort
SELECT - tab0.col0 * tab0.col2 + tab0.col1 / col0 + col2 FROM tab0 WHERE NOT ( NULL ) <= ( + col2 )
----
query I rowsort
SELECT col2 * - col2 + col2 + col2 * + col1 FROM tab1
----
-1458
-2622
-7872
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + col0 + col1 col0 FROM tab1
----
106
55
84
query I rowsort
SELECT col0 * + col0 * + col2 AS col1 FROM tab0
----
1225
19008
649522
query I rowsort
SELECT DISTINCT col0 FROM tab2 WHERE ( + col1 - col0 * - col1 ) NOT IN ( col2 )
----
7
78
79
onlyif mysql # use DIV operator for integer division
query I rowsort label-2331
SELECT DISTINCT tab1.col2 DIV col1 + col2 - col2 FROM tab1
----
2
5
7
skipif mysql # not compatible
query I rowsort label-2331
SELECT DISTINCT tab1.col2 / col1 + col2 - col2 FROM tab1
----
2
5
7
query III rowsort
SELECT ALL * FROM tab0 WHERE NULL BETWEEN ( - col0 ) AND NULL
----
query I rowsort
SELECT ALL tab1.col2 + col1 + + tab1.col2 FROM tab1
----
124
134
205
query III rowsort
SELECT ALL * FROM tab0 WHERE ( NULL ) IN ( - col0 + col1 + - col1 )
----
query I rowsort
SELECT DISTINCT + col1 AS col0 FROM tab2 WHERE ( NULL ) < ( - tab2.col0 )
----
query I rowsort
SELECT + col2 AS col1 FROM tab0 WHERE NOT + col1 * col0 + + col1 BETWEEN - col0 AND - col1
----
1
33
82
onlyif mysql # use DIV operator for integer division
query I rowsort label-2337
SELECT col0 * - col0 DIV - col0 + - tab0.col2 * + col2 * col0 AS col1 FROM tab0
----
-26112
-598347
0
skipif mysql # not compatible
query I rowsort label-2337
SELECT col0 * - col0 / - col0 + - tab0.col2 * + col2 * col0 AS col1 FROM tab0
----
-26112
-598347
0
query I rowsort
SELECT - ( ( - col0 ) ) FROM tab2
----
7
78
79
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - 81 ) col0 FROM tab0
----
-81
query I rowsort
SELECT ALL + ( + col2 ) * - col0 AS col2 FROM tab0
----
-35
-7298
-792
query I rowsort
SELECT ALL 23 * tab0.col1 FROM tab0
----
1978
2093
2231
onlyif mysql # use DIV operator for integer division
query I rowsort label-2342
SELECT + ( col0 ) DIV + col1 AS col0 FROM tab2
----
0
1
4
skipif mysql # not compatible
query I rowsort label-2342
SELECT + ( col0 ) / + col1 AS col0 FROM tab2
----
0
1
4
query I rowsort
SELECT + 20 * + col1 FROM tab0 AS cor0
----
1720
1820
1940
query I rowsort
SELECT ALL - ( col2 * col1 ) FROM tab1
----
-1248
-1404
-570
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col0 * 96 col1 FROM tab0 AS cor0
----
2304
3360
8544
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - col1 ) * col2 + 70 col0 FROM tab2 AS cor0
----
-1464
-576
-767
query I rowsort
SELECT - 79 - cor0.col2 * col2 AS col2 FROM tab1 AS cor0
----
-2995
-3328
-9295
query I rowsort
SELECT - 29 + + col2 * + col1 FROM tab2 AS cor0
----
1505
617
808
query I rowsort
SELECT ALL + cor0.col2 + cor0.col0 * - 76 FROM tab1 AS cor0
----
-174
-4807
-5984
query I rowsort
SELECT + + col1 + - col0 * - cor0.col1 FROM tab0 AS cor0
----
2150
3492
8190
query I rowsort
SELECT col0 + col2 * + col2 * col2 AS col1 FROM tab1 AS cor0
----
157467
185257
884816
query I rowsort
SELECT col2 - col2 * + col2 * 9 FROM tab1 AS cor0
----
-26190
-29184
-82848
query I rowsort
SELECT - col1 * + col2 + + ( - col1 + 80 ) AS col1 FROM tab0 AS cor0
----
-114
-2844
-7473
query I rowsort
SELECT ALL - col0 + col0 * col0 * col1 AS col2 FROM tab1 AS cor0
----
231
40896
83120
query I rowsort
SELECT ALL - - col1 * - 94 FROM tab0 AS cor0
----
-8084
-8554
-9118
query I rowsort
SELECT DISTINCT + col1 * - 48 FROM tab2 AS cor0
----
-1488
-2832
-816
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + + 60 * cor0.col1 col2 FROM tab2 AS cor0
----
1853
3462
941
query I rowsort
SELECT DISTINCT col2 * ( col2 ) + col1 * 9 + cor0.col1 AS col0 FROM tab2 AS cor0
----
1039
1266
1614
onlyif mysql # use DIV operator for integer division
query I rowsort label-2359
SELECT - col1 * col0 + 15 DIV + col2 FROM tab0 AS cor0
----
-2064
-3380
-8099
skipif mysql # not compatible
query I rowsort label-2359
SELECT - col1 * col0 + 15 / + col2 FROM tab0 AS cor0
----
-2064
-3380
-8099
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + + col0 col0 FROM tab0 cor0
----
110
132
180
query I rowsort
SELECT DISTINCT - + col0 * 69 FROM tab0 cor0
----
-1656
-2415
-6141
query I rowsort
SELECT 5 + col1 * - cor0.col2 AS col2 FROM tab0 AS cor0
----
-2833
-7457
-92
query I rowsort
SELECT ALL + + 54 * 0 FROM tab1 cor0
----
0
0
0
query I rowsort
SELECT DISTINCT 54 * 25 FROM tab2 AS cor0
----
1350
onlyif mysql # use DIV operator for integer division
query I rowsort label-2365
SELECT - 53 * - col0 DIV col0 FROM tab1 AS cor0
----
53
53
53
skipif mysql # not compatible
query I rowsort label-2365
SELECT - 53 * - col0 / col0 FROM tab1 AS cor0
----
53
53
53
query I rowsort
SELECT ALL cor1.col1 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892
query I rowsort
SELECT 89 * - col0 AS col2 FROM tab0 AS cor0
----
-2136
-3115
-7921
query I rowsort
SELECT + 11 * col1 + col2 AS col1 FROM tab0
----
1068
1083
979
query I rowsort
SELECT DISTINCT - + 71 AS col1 FROM tab2 AS cor0
----
-71
query I rowsort
SELECT ALL - - col1 + - col2 * + col0 FROM tab2 AS cor0
----
-158
-1969
-2985
query I rowsort
SELECT ALL - 36 + - col1 - col2 * + col2 * - col2 AS col2 FROM tab2
----
17481
19616
54819
onlyif mysql # use DIV operator for integer division
query I rowsort label-2372
SELECT ALL col2 DIV + col0 col2 FROM tab0
----
0
0
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2372
SELECT ALL col2 / + col0 col2 FROM tab0
----
0
0
1
query I rowsort
SELECT - 13 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to e95f5f4bd0f480397cced5f5e8a23792
query I rowsort
SELECT - ( col1 ) + + col0 AS col0 FROM tab1
----
-23
54
67
query I rowsort
SELECT ALL ( 55 ) FROM tab0
----
55
55
55
onlyif mysql # use DIV operator for integer division
query I rowsort label-2376
SELECT - 3 DIV - tab2.col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c
skipif mysql # not compatible
query I rowsort label-2376
SELECT - 3 / - tab2.col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c
query I rowsort
SELECT ALL - ( - 7 ) AS col0 FROM tab1
----
7
7
7
query I rowsort
SELECT cor0.col2 * cor0.col1 FROM tab2, tab2 AS cor0
----
9 values hashing to f5605ce6cbd6ecc79a4a887488bb6947
skipif mysql # not compatible
query I rowsort
SELECT - CAST ( 16 AS REAL ) * col0 AS col2 FROM tab1 AS cor0
----
-1024
-1280
-48
query I rowsort
SELECT DISTINCT tab2.col2 * col1 + + col0 AS col2 FROM tab2
----
1612
725
844
onlyif mysql # use DIV operator for integer division
query I rowsort label-2381
SELECT col1 DIV - tab0.col0 + + col2 FROM tab0
----
-1
30
81
skipif mysql # not compatible
query I rowsort label-2381
SELECT col1 / - tab0.col0 + + col2 FROM tab0
----
-1
30
81
query I rowsort
SELECT + tab1.col0 + - col2 AS col2 FROM tab1
----
-16
-51
7
query I rowsort
SELECT DISTINCT col2 AS col0 FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( + col1 * col1 + + col0 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-2384
SELECT DISTINCT col2 DIV col1 - - col1 FROM tab1 cor0
----
15
20
28
skipif mysql # not compatible
query I rowsort label-2384
SELECT DISTINCT col2 / col1 - - col1 FROM tab1 cor0
----
15
20
28
query I rowsort
SELECT ALL col0 * + col2 + - col2 * + col1 + - col1 * col1 AS col1 FROM tab2
----
-1609
-2987
2067
query I rowsort
SELECT ALL + col0 + col2 + col2 FROM tab0
----
253
37
90
query I rowsort
SELECT ALL + col2 + - col0 * + col1 FROM tab1
----
-24
-583
-944
query I rowsort
SELECT - col0 + col1 + col0 AS col2 FROM tab2 AS cor0
----
17
31
59
onlyif mysql # use DIV operator for integer division
query I rowsort label-2389
SELECT + col1 DIV col2 + + col1 AS col1 FROM tab1 AS cor0
----
10
13
26
skipif mysql # not compatible
query I rowsort label-2389
SELECT + col1 / col2 + + col1 AS col1 FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT + col0 * + col2 * + cor0.col0 + - cor0.col2 + col1 FROM tab2 AS cor0
----
1327
158217
237137
query I rowsort
SELECT - + cor0.col1 + + cor0.col0 * + cor0.col2 + + col0 FROM tab0 AS cor0
----
-27
7296
730
onlyif mysql # use DIV operator for integer division
query I rowsort label-2392
SELECT ALL + col2 DIV + cor0.col0 FROM tab0 AS cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-2392
SELECT ALL + col2 / + cor0.col0 FROM tab0 AS cor0
----
0
0
1
query I rowsort
SELECT ALL + - col1 + + col1 * - col1 * - col0 + - col0 FROM tab0 AS cor0
----
177394
329183
736829
query I rowsort
SELECT col2 + - col0 AS col2 FROM tab1 cor0
----
-7
16
51
onlyif mysql # use DIV operator for integer division
query I rowsort label-2395
SELECT + cor0.col2 DIV col1 AS col0 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-2395
SELECT + cor0.col2 / col1 AS col0 FROM tab0 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + - col1 * col1 col2 FROM tab2 cor0
----
-251
-3455
-934
query I rowsort
SELECT DISTINCT col0 + - col0 * + cor0.col2 FROM tab1 AS cor0
----
-159
-3584
-7600
onlyif mysql # use DIV operator for integer division
query I rowsort label-2398
SELECT ALL + col1 DIV + col2 AS col2 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-2398
SELECT ALL + col1 / + col2 AS col2 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT col1 * col0 + + col2 + + col2 FROM tab0 AS cor0
----
2130
3397
8263
query I rowsort
SELECT + col0 * col2 * - col0 AS col0 FROM tab0
----
-1225
-19008
-649522
query I rowsort
SELECT DISTINCT + col2 + + 89 FROM tab2
----
115
116
127
onlyif mysql # use DIV operator for integer division
query I rowsort label-2402
SELECT col2 DIV tab2.col1 col0 FROM tab2
----
0
0
2
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2402
SELECT col2 / tab2.col1 col0 FROM tab2
----
0
0
2
onlyif mysql # use DIV operator for integer division
query I rowsort label-2403
SELECT DISTINCT + col1 + col1 DIV - 89 FROM tab0
----
86
90
96
skipif mysql # not compatible
query I rowsort label-2403
SELECT DISTINCT + col1 + col1 / - 89 FROM tab0
----
86
90
96
query I rowsort
SELECT ALL + col2 + 95 AS col2 FROM tab2 AS cor0
----
121
122
133
onlyif mysql # use DIV operator for integer division
query I rowsort label-2405
SELECT ALL - + col1 * 80 + - col2 * cor0.col2 DIV 76 AS col1 FROM tab1 AS cor0
----
-1161
-2118
-842
skipif mysql # not compatible
query I rowsort label-2405
SELECT ALL - + col1 * 80 + - col2 * cor0.col2 / 76 AS col1 FROM tab1 AS cor0
----
-1161
-2118
-842
query I rowsort
SELECT ALL + col1 * + 55 + - col2 * col2 FROM tab0 AS cor0
----
-1719
3641
5334
query I rowsort
SELECT DISTINCT col2 * + 59 - - cor0.col0 FROM tab2 AS cor0
----
1600
1612
2321
query I rowsort
SELECT DISTINCT - + cor0.col0 * 18 AS col2 FROM tab1 AS cor0
----
-1152
-1440
-54
onlyif mysql # use DIV operator for integer division
query I rowsort label-2409
SELECT DISTINCT + - col2 DIV + col0 AS col2 FROM tab1 AS cor0
----
-1
-18
0
skipif mysql # not compatible
query I rowsort label-2409
SELECT DISTINCT + - col2 / + col0 AS col2 FROM tab1 AS cor0
----
-1
-18
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-2410
SELECT DISTINCT - col2 * + col2 DIV - col2 FROM tab1
----
54
57
96
skipif mysql # not compatible
query I rowsort label-2410
SELECT DISTINCT - col2 * + col2 / - col2 FROM tab1
----
54
57
96
query I rowsort
SELECT DISTINCT - col0 * + cor0.col1 * col0 FROM tab2 cor0
----
-106097
-1519
-358956
query I rowsort
SELECT + 32 * + col1 AS col1 FROM tab0 AS cor0
----
2752
2912
3104
query I rowsort
SELECT - + col1 * + 7 - - col2 * - 57 * 0 FROM tab0 cor0
----
-602
-637
-679
query I rowsort
SELECT DISTINCT - 98 AS col2 FROM tab2 cor0
----
-98
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 30 col0 FROM tab0
----
-30
query I rowsort
SELECT ALL + ( 38 ) * - col2 FROM tab0 AS cor0
----
-1254
-3116
-38
query I rowsort
SELECT 1 * ( col0 ) AS col1 FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT ( - 70 ) * col0 + 5 AS col2 FROM tab1 AS cor0
----
-205
-4475
-5595
query I rowsort
SELECT ALL + - ( + col0 ) * - ( + 95 * col0 ) AS col0 FROM tab2 AS cor0
----
4655
577980
592895
onlyif mysql # use DIV operator for integer division
query I rowsort label-2420
SELECT ALL col2 * col2 DIV - col2 FROM tab0
----
-1
-33
-82
skipif mysql # not compatible
query I rowsort label-2420
SELECT ALL col2 * col2 / - col2 FROM tab0
----
-1
-33
-82
onlyif mysql # use DIV operator for integer division
query I rowsort label-2421
SELECT - col1 + col1 DIV 1 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-2421
SELECT - col1 + col1 / 1 FROM tab0 AS cor0
----
0
0
0
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-2423
SELECT ALL cor0.col1 DIV col1 AS col1 FROM tab1 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-2423
SELECT ALL cor0.col1 / col1 AS col1 FROM tab1 AS cor0
----
1
1
1
query I rowsort
SELECT ALL - 95 + - col2 FROM tab1 AS cor0
----
-149
-152
-191
query I rowsort
SELECT DISTINCT + - col1 + col2 * + 73 FROM tab1 AS cor0
----
3916
4151
6995
onlyif mysql # use DIV operator for integer division
query I rowsort label-2426
SELECT cor0.col1 DIV + col1 AS col0 FROM tab2 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-2426
SELECT cor0.col1 / + col1 AS col0 FROM tab2 AS cor0
----
1
1
1
query I rowsort
SELECT + col0 + 81 AS col0 FROM tab1 AS cor0
----
145
161
84
onlyif mysql # use DIV operator for integer division
query I rowsort label-2428
SELECT - col1 DIV - col2 col2 FROM tab1 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2428
SELECT - col1 / - col2 col2 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT + + col2 * ( 39 ) AS col2 FROM tab1 AS cor0
----
2106
2223
3744
query I rowsort
SELECT ALL col0 * - 5 AS col1 FROM tab1 AS cor0
----
-15
-320
-400
query I rowsort
SELECT DISTINCT + - col2 * ( 37 * + col1 ) FROM tab2 AS cor0
----
-23902
-30969
-56758
onlyif mysql # use DIV operator for integer division
query I rowsort label-2432
SELECT ALL - + col0 DIV - 73 FROM tab2 AS cor0
----
0
1
1
skipif mysql # not compatible
query I rowsort label-2432
SELECT ALL - + col0 / - 73 FROM tab2 AS cor0
----
0
1
1
query I rowsort
SELECT + 44 + col2 * col1 FROM tab2
----
1578
690
881
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 92 col0 FROM tab0
----
92
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2435
SELECT col2 * col1 + + CAST( - col2 AS SIGNED ) FROM tab1
----
1152
1350
513
skipif mysql # not compatible
query I rowsort label-2435
SELECT col2 * col1 + + CAST ( - col2 AS INTEGER ) FROM tab1
----
1152
1350
513
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2436
SELECT col0 * - CAST( - col0 AS SIGNED ) FROM tab2 AS cor0
----
49
6084
6241
skipif mysql # not compatible
query I rowsort label-2436
SELECT col0 * - CAST ( - col0 AS INTEGER ) FROM tab2 AS cor0
----
49
6084
6241
query I rowsort
SELECT - - col0 * 0 * cor0.col1 AS col0 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT + col2 * - 14 FROM tab0 AS cor0
----
-1148
-14
-462
query I rowsort
SELECT ALL + 71 FROM tab0, tab2 AS cor0
----
9 values hashing to c1aace5d5fe27721cc925552513c85c0
query I rowsort
SELECT - + ( - cor0.col1 ) + - col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT + ( 79 ) * col0 AS col0 FROM tab0 AS cor0
----
1896
2765
7031
onlyif mysql # use DIV operator for integer division
query I rowsort label-2442
SELECT - 47 DIV - 2 FROM tab1, tab2 AS cor0
----
9 values hashing to d94fadcc1c8cc4fc51b78b83e04795f2
skipif mysql # not compatible
query I rowsort label-2442
SELECT - 47 / - 2 FROM tab1, tab2 AS cor0
----
9 values hashing to d94fadcc1c8cc4fc51b78b83e04795f2
query I rowsort
SELECT DISTINCT + 63 * - tab1.col2 AS col0 FROM tab1, tab1 AS cor0
----
-3402
-3591
-6048
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2444
SELECT + - ( - col0 ) + + CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2444
SELECT + - ( - col0 ) + + CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-2445
SELECT - 83 + - col1 DIV 57 FROM tab2 AS cor0
----
-83
-83
-84
skipif mysql # not compatible
query I rowsort label-2445
SELECT - 83 + - col1 / 57 FROM tab2 AS cor0
----
-83
-83
-84
query I rowsort
SELECT - col1 + tab1.col2 + col2 FROM tab1
----
104
179
82
query I rowsort
SELECT ALL ( col1 ) + - col2 AS col1 FROM tab0
----
53
9
96
query I rowsort
SELECT ALL + col0 * + ( - col1 ) FROM tab2
----
-1343
-217
-4602
query I rowsort
SELECT ALL - 16 * + cor0.col1 AS col2 FROM tab1 AS cor0
----
-160
-208
-416
query I rowsort
SELECT ALL - - col1 + col1 + cor0.col2 * + 83 FROM tab2 AS cor0
----
2276
2303
3188
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * col1 + - 8 col0 FROM tab1 AS cor0
----
1240
1396
562
query I rowsort
SELECT cor0.col0 * col0 + 71 FROM tab0 AS cor0
----
1296
647
7992
query I rowsort
SELECT ALL 81 * + cor0.col1 FROM tab0 AS cor0
----
6966
7371
7857
query I rowsort
SELECT 10 * + col0 + - 9 AS col2 FROM tab2 AS cor0
----
61
771
781
query I rowsort
SELECT ALL col0 * col1 + + ( - 70 ) FROM tab0 AS cor0
----
1994
3325
8029
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 - cor0.col1 col1 FROM tab1 AS cor0
----
-29
-74
-93
query I rowsort
SELECT + + 13 * + col1 AS col1 FROM tab0 AS cor0
----
1118
1183
1261
query I rowsort
SELECT ALL + + col2 + - col2 * - 8 AS col2 FROM tab2 AS cor0
----
234
243
342
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2459
SELECT CAST( NULL AS DECIMAL ) + - col2 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2459
SELECT CAST ( NULL AS REAL ) + - col2 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + 39 * col0 FROM tab2
----
273
3042
3081
onlyif mysql # use DIV operator for integer division
query I rowsort label-2461
SELECT col1 DIV + col1 + tab1.col0 * - ( + col1 ) AS col1 FROM tab1
----
-1039
-639
-77
skipif mysql # not compatible
query I rowsort label-2461
SELECT col1 / + col1 + tab1.col0 * - ( + col1 ) AS col1 FROM tab1
----
-1039
-639
-77
query I rowsort
SELECT ALL ( col0 ) * - col0 AS col1 FROM tab1
----
-4096
-6400
-9
query I rowsort
SELECT 94 * + cor0.col2 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 11ce4c64173a21b96c5aae8e74b78b22
onlyif mysql # use DIV operator for integer division
query I rowsort label-2464
SELECT - + ( + col2 ) DIV col0 FROM tab1 AS cor0
----
-1
-18
0
skipif mysql # not compatible
query I rowsort label-2464
SELECT - + ( + col2 ) / col0 FROM tab1 AS cor0
----
-1
-18
0
query I rowsort
SELECT DISTINCT - 35 * col2 * col1 AS col0 FROM tab1
----
-19950
-43680
-49140
query I rowsort
SELECT - ( col0 ) * - 42 FROM tab0 AS cor0
----
1008
1470
3738
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 + - col1 * + 9 * cor0.col0 col0 FROM tab0 AS cor0
----
-18490
-30458
-72800
query I rowsort
SELECT DISTINCT - ( col0 ) * - ( + col0 ) FROM tab2 AS cor0
----
49
6084
6241
query I rowsort
SELECT col1 * 60 + col1 + col2 AS col2 FROM tab1 AS cor0
----
1640
667
889
onlyif mysql # use DIV operator for integer division
query I rowsort label-2470
SELECT + + col2 DIV - 19 AS col1 FROM tab1 AS cor0
----
-2
-3
-5
skipif mysql # not compatible
query I rowsort label-2470
SELECT + + col2 / - 19 AS col1 FROM tab1 AS cor0
----
-2
-3
-5
query I rowsort
SELECT + col1 + cor0.col2 * + col0 FROM tab0 cor0
----
132
7389
878
query I rowsort
SELECT col0 * + ( col2 ) + col1 FROM tab1 AS cor0
----
188
3658
7693
onlyif mysql # use DIV operator for integer division
query I rowsort label-2473
SELECT col0 DIV - ( 43 ) FROM tab1 AS cor0
----
-1
-1
0
skipif mysql # not compatible
query I rowsort label-2473
SELECT col0 / - ( 43 ) FROM tab1 AS cor0
----
-1
-1
0
query I rowsort
SELECT + cor0.col1 + ( 89 ) + cor0.col2 * ( col0 ) AS col1 FROM tab1 AS cor0
----
277
3747
7782
query I rowsort
SELECT - col2 + + col0 + col0 AS col0 FROM tab0 cor0
----
15
69
96
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2476
SELECT ALL col2 * CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2476
SELECT ALL col2 * CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT col2 + + ( - col1 ) FROM tab0 AS cor0
----
-53
-9
-96
query I rowsort
SELECT ALL - col1 * - ( col2 + col0 ) FROM tab2 AS cor0
----
1054
1989
6136
onlyif mysql # use DIV operator for integer division
query I rowsort label-2479
SELECT ALL - col0 * col0 DIV ( + 15 ) FROM tab0
----
-38
-528
-81
skipif mysql # not compatible
query I rowsort label-2479
SELECT ALL - col0 * col0 / ( + 15 ) FROM tab0
----
-38
-528
-81
onlyif mysql # use DIV operator for integer division
query I rowsort label-2480
SELECT + col2 + col1 DIV 52 FROM tab1 AS cor0
----
54
57
96
skipif mysql # not compatible
query I rowsort label-2480
SELECT + col2 + col1 / 52 FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT + col0 * - 73 + col0 FROM tab1 AS cor0
----
-216
-4608
-5760
query I rowsort
SELECT ALL 80 * - 39 FROM tab0, tab2 AS cor0
----
9 values hashing to c389d123f0bd59101c814dd5dbb2c109
query I rowsort
SELECT ALL + + 93 AS col1 FROM tab2 AS cor0
----
93
93
93
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - ( cor0.col0 ) ) * col0 col1 FROM tab1 AS cor0
----
-4096
-6400
-9
query I rowsort
SELECT col0 - - 52 AS col1 FROM tab0
----
141
76
87
query I rowsort
SELECT ALL - col2 * - col2 + - col1 FROM tab2 AS cor0
----
1427
617
698
query I rowsort
SELECT DISTINCT 14 * + col1 + col2 FROM tab1 AS cor0
----
197
278
418
query I rowsort
SELECT col1 * col1 * col2 + - col2 * - 52 AS col2 FROM tab1 AS cor0
----
21216
39312
8664
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2489
SELECT DISTINCT - col2 * col2 * + col1 + CAST( + col1 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-611793
-93568
0
skipif mysql # not compatible
query I rowsort label-2489
SELECT DISTINCT - col2 * col2 * + col1 + CAST ( + col1 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-611793
-93568
0
query I rowsort
SELECT ALL 59 + col0 AS col1 FROM tab0 AS cor0
----
148
83
94
query I rowsort
SELECT ALL - + 94 + ( col0 ) FROM tab2 AS cor0
----
-15
-16
-87
query I rowsort
SELECT - 8 * + ( - col0 ) + 5 AS col2 FROM tab1 AS cor0
----
29
517
645
query I rowsort
SELECT DISTINCT + 43 AS col1 FROM tab0 cor0
----
43
query I rowsort
SELECT ALL - + ( 52 ) FROM tab1 AS cor0
----
-52
-52
-52
query I rowsort
SELECT ALL - col0 - ( col2 ) AS col2 FROM tab0
----
-171
-36
-57
query I rowsort
SELECT DISTINCT col2 - + ( + 68 ) * tab2.col1 AS col1 FROM tab2
----
-1118
-2081
-3986
query I rowsort
SELECT - ( 95 ) + col1 * - 34 AS col2 FROM tab0 cor0
----
-3019
-3189
-3393
query I rowsort
SELECT DISTINCT + 67 * - col1 - - col1 FROM tab0 AS cor0
----
-5676
-6006
-6402
query I rowsort
SELECT + ( col2 ) - col1 AS col2 FROM tab0
----
-53
-9
-96
onlyif mysql # use DIV operator for integer division
query I rowsort label-2500
SELECT - + cor0.col0 DIV col0 AS col1 FROM tab2 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-2500
SELECT - + cor0.col0 / col0 AS col1 FROM tab2 AS cor0
----
-1
-1
-1
onlyif mysql # use DIV operator for integer division
query I rowsort label-2501
SELECT - + 31 DIV + cor0.col2 + - col0 AS col0 FROM tab1 AS cor0
----
-3
-64
-80
skipif mysql # not compatible
query I rowsort label-2501
SELECT - + 31 / + cor0.col2 + - col0 AS col0 FROM tab1 AS cor0
----
-3
-64
-80
onlyif mysql # use DIV operator for integer division
query I rowsort label-2502
SELECT col2 DIV 16 AS col1 FROM tab0 AS cor0
----
0
2
5
skipif mysql # not compatible
query I rowsort label-2502
SELECT col2 / 16 AS col1 FROM tab0 AS cor0
----
0
2
5
query I rowsort
SELECT DISTINCT col2 * col0 + col2 AS col0 FROM tab2
----
2054
216
3040
query I rowsort
SELECT - col2 * cor0.col1 + + col1 FROM tab2 AS cor0
----
-1475
-629
-806
query I rowsort
SELECT ALL col2 * + ( col2 ) + + col1 FROM tab0
----
1175
6815
98
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 61 col1 FROM tab1, tab0 cor0, tab0 AS cor1
----
27 values hashing to 8d4dfe649433a599fc4b10830cc7ce55
query I rowsort
SELECT ALL + col0 * col0 + 29 * + col2 FROM tab2
----
6838
7343
832
query I rowsort
SELECT col0 - + 13 * 63 AS col2 FROM tab0
----
-730
-784
-795
query I rowsort
SELECT ALL + tab2.col1 + ( 37 ) AS col1 FROM tab2
----
54
68
96
query I rowsort
SELECT cor0.col1 - cor0.col2 AS col0 FROM tab2 AS cor0
----
-21
33
4
query I rowsort
SELECT ALL + col0 + 94 + col1 FROM tab1 AS cor0
----
123
168
187
query I rowsort
SELECT + col1 * col0 + - col0 * col0 * col0 AS col2 FROM tab1 AS cor0
----
-261504
-510960
51
onlyif mysql # use DIV operator for integer division
query I rowsort label-2513
SELECT DISTINCT col1 DIV col2 + col0 AS col1 FROM tab0 AS cor0
----
132
26
90
skipif mysql # not compatible
query I rowsort label-2513
SELECT DISTINCT col1 / col2 + col0 AS col1 FROM tab0 AS cor0
----
132
26
90
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2514
SELECT ALL - - col0 * CAST( + col0 * + col2 AS SIGNED ) FROM tab2 AS cor0
----
1323
158184
237158
skipif mysql # not compatible
query I rowsort label-2514
SELECT ALL - - col0 * CAST ( + col0 * + col2 AS INTEGER ) FROM tab2 AS cor0
----
1323
158184
237158
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + + col0 * + col0 col2 FROM tab2 AS cor0
----
42
6006
6162
query I rowsort
SELECT - tab1.col0 * - 81 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to d59478513b79b9589126703ae725fa9d
query I rowsort
SELECT ALL + + cor0.col1 * - col1 FROM tab0 cor0
----
-7396
-8281
-9409
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * - cor0.col2 + - cor0.col0 col2 FROM tab2 AS cor0
----
-1523
-736
-754
query I rowsort
SELECT DISTINCT + cor0.col2 * col0 - ( + col1 ) * - col0 FROM tab2 cor0
----
406
4345
6630
query I rowsort
SELECT DISTINCT col1 + - 22 * - 89 + - col1 FROM tab2
----
1958
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2521
SELECT - tab0.col0 + + CAST( - tab0.col0 * + col0 AS SIGNED ) + 33 FROM tab0
----
-1227
-567
-7977
skipif mysql # not compatible
query I rowsort label-2521
SELECT - tab0.col0 + + CAST ( - tab0.col0 * + col0 AS INTEGER ) + 33 FROM tab0
----
-1227
-567
-7977
query I rowsort
SELECT col1 + + 7 FROM tab1
----
17
20
33
query I rowsort
SELECT ALL - tab1.col1 + ( 6 ) * col2 AS col1 FROM tab1
----
298
332
563
query I rowsort
SELECT DISTINCT col0 * 61 * + 58 FROM tab2
----
24766
275964
279502
onlyif mysql # use DIV operator for integer division
query I rowsort label-2525
SELECT + col2 - tab1.col0 DIV - ( col2 ) FROM tab1
----
54
58
96
skipif mysql # not compatible
query I rowsort label-2525
SELECT + col2 - tab1.col0 / - ( col2 ) FROM tab1
----
54
58
96
query I rowsort
SELECT DISTINCT - col1 + tab2.col2 AS col1 FROM tab2
----
-33
-4
21
query I rowsort
SELECT DISTINCT + col0 + + ( - 23 ) FROM tab0
----
1
12
66
query I rowsort
SELECT - cor0.col0 * ( - col0 ) + col0 AS col1 FROM tab1 cor0
----
12
4160
6480
query I rowsort
SELECT DISTINCT cor0.col1 + - col2 * - cor0.col2 AS col0 FROM tab2 AS cor0
----
1461
735
760
query I rowsort
SELECT - + col2 * + 4 AS col1 FROM tab2 AS cor0
----
-104
-108
-152
query I rowsort
SELECT DISTINCT + col2 + + ( - col2 ) AS col0 FROM tab1 AS cor0
----
0
query I rowsort
SELECT DISTINCT - - col2 + col2 * col2 FROM tab2 AS cor0
----
1482
702
756
query I rowsort
SELECT DISTINCT col1 * col2 * + col0 FROM tab1 AS cor0
----
36480
4212
99840
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 46 col2 FROM tab2 AS cor0
----
46
46
46
onlyif mysql # use DIV operator for integer division
query I rowsort label-2535
SELECT ALL col1 + col0 DIV + col0 FROM tab1 AS cor0
----
11
14
27
skipif mysql # not compatible
query I rowsort label-2535
SELECT ALL col1 + col0 / + col0 FROM tab1 AS cor0
----
11
14
27
query I rowsort
SELECT DISTINCT 80 AS col1 FROM tab1 AS cor0
----
80
query I rowsort
SELECT + + ( + ( - col2 ) ) AS col0 FROM tab1 AS cor0
----
-54
-57
-96
query I rowsort
SELECT ALL col0 - col0 * col0 FROM tab1 AS cor0
----
-4032
-6
-6320
query I rowsort
SELECT DISTINCT + - col1 + cor0.col1 + col0 AS col1 FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT DISTINCT - col2 * + ( - cor0.col2 ) * 17 FROM tab2 AS cor0
----
11492
12393
24548
query I rowsort
SELECT ALL 65 + + col2 FROM tab2 cor0
----
103
91
92
query I rowsort
SELECT + col1 * 88 AS col0 FROM tab1 AS cor0
----
1144
2288
880
query I rowsort
SELECT 6 + - col2 * - col2 FROM tab2 AS cor0
----
1450
682
735
query I rowsort
SELECT DISTINCT - - cor0.col1 FROM tab0, tab2, tab0 AS cor0
----
86
91
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + + tab0.col0 col0 FROM tab0
----
171
36
57
query I rowsort
SELECT ALL tab1.col0 * col1 + ( - col2 * 0 ) AS col0 FROM tab1
----
1040
640
78
query I rowsort
SELECT ALL + col1 + + 94 * 36 * + col0 FROM tab2
----
23719
264011
267353
query I rowsort
SELECT ALL - + 71 * 41 AS col1 FROM tab1 AS cor0
----
-2911
-2911
-2911
onlyif mysql # use DIV operator for integer division
query I rowsort label-2549
SELECT - col1 * ( col1 ) DIV + 91 FROM tab2 AS cor0
----
-10
-3
-38
skipif mysql # not compatible
query I rowsort label-2549
SELECT - col1 * ( col1 ) / + 91 FROM tab2 AS cor0
----
-10
-3
-38
query I rowsort
SELECT + ( - col1 ) * col1 FROM tab1 cor0
----
-100
-169
-676
query I rowsort
SELECT ALL - 59 * col0 * col2 FROM tab2 AS cor0
----
-11151
-119652
-177118
onlyif mysql # use DIV operator for integer division
query I rowsort label-2552
SELECT DISTINCT col1 DIV + cor0.col0 AS col2 FROM tab2 AS cor0
----
0
4
skipif mysql # not compatible
query I rowsort label-2552
SELECT DISTINCT col1 / + cor0.col0 AS col2 FROM tab2 AS cor0
----
0
4
query I rowsort
SELECT ALL + ( 44 ) + - col2 * - col2 AS col2 FROM tab0 cor0
----
1133
45
6768
query I rowsort
SELECT ALL 52 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 7f4ae30893ab330784829711032ae599
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 49 col2 FROM tab1 cor0
----
49
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( col1 + col1 ) col0 FROM tab2
----
-118
-34
-62
query I rowsort
SELECT - col1 * - col0 + col1 * - cor0.col1 AS col2 FROM tab2 AS cor0
----
-744
1054
1121
onlyif mysql # use DIV operator for integer division
query I rowsort label-2558
SELECT - 45 * - col0 DIV + col0 + - ( col2 ) AS col2 FROM tab0 AS cor0
----
-37
12
44
skipif mysql # not compatible
query I rowsort label-2558
SELECT - 45 * - col0 / + col0 + - ( col2 ) AS col2 FROM tab0 AS cor0
----
-37
12
44
query I rowsort
SELECT + + 22 * - cor0.col1 + - cor0.col2 * 14 AS col1 FROM tab1 AS cor0
----
-1018
-1328
-1630
query I rowsort
SELECT - 92 * cor0.col1 + - col2 AS col0 FROM tab1 AS cor0
----
-1292
-2446
-977
query I rowsort
SELECT 85 + - col0 AS col0 FROM tab0 AS cor0
----
-4
50
61
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 * + col2 col1 FROM tab1 AS cor0
----
1248
1404
570
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2563
SELECT ALL CAST( - col0 AS SIGNED ) * + col0 AS col1 FROM tab0
----
-1225
-576
-7921
skipif mysql # not compatible
query I rowsort label-2563
SELECT ALL CAST ( - col0 AS INTEGER ) * + col0 AS col1 FROM tab0
----
-1225
-576
-7921
query I rowsort
SELECT DISTINCT - 31 + cor0.col0 AS col2 FROM tab1, tab0, tab2 cor0
----
-24
47
48
query I rowsort
SELECT tab2.col2 + - tab2.col1 * 14 FROM tab2, tab2 AS cor0
----
9 values hashing to 9cf307c0444d9639c77cd19f6a10850e
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - tab0.col0 * - cor0.col2 col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 844087611670bb7fd62286733e4f81ac
query I rowsort
SELECT col0 - - col0 * 13 FROM tab1 AS cor0
----
1120
42
896
query I rowsort
SELECT - col2 - + 80 * col0 FROM tab1 AS cor0
----
-294
-5177
-6496
query I rowsort
SELECT + col2 + cor0.col0 * - cor0.col1 FROM tab2 AS cor0
----
-1305
-190
-4576
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + col1 + - 48 col1 FROM tab1 AS cor0
----
-22
-28
4
query I rowsort
SELECT DISTINCT + col2 * - ( + cor0.col1 ) * col0 + + 26 * - 55 + col0 FROM tab2 AS cor0
----
-121004
-52385
-7282
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2572
SELECT + col1 * - tab0.col0 + CAST( ( col2 ) * ( col0 ) AS SIGNED ) + - col0 FROM tab0
----
-1296
-3395
-890
skipif mysql # not compatible
query I rowsort label-2572
SELECT + col1 * - tab0.col0 + CAST ( ( col2 ) * ( col0 ) AS INTEGER ) + - col0 FROM tab0
----
-1296
-3395
-890
query I rowsort
SELECT + - col0 + + cor0.col1 AS col1 FROM tab1 cor0
----
-54
-67
23
onlyif mysql # use DIV operator for integer division
query I rowsort label-2574
SELECT DISTINCT col1 DIV - col0 - + col1 * - col0 col1 FROM tab2
----
1343
213
4602
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2574
SELECT DISTINCT col1 / - col0 - + col1 * - col0 col1 FROM tab2
----
1343
213
4602
query I rowsort
SELECT DISTINCT + tab2.col2 - + tab2.col1 * + col0 AS col1 FROM tab2
----
-1305
-190
-4576
query I rowsort
SELECT DISTINCT + col0 * - tab2.col2 + tab2.col0 FROM tab2
----
-182
-1950
-2923
query I rowsort
SELECT 48 AS col0 FROM tab2, tab1 cor0
----
9 values hashing to 8b09cc2c99c2102036162d063e0e5a4b
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * + col1 + - col0 col2 FROM tab2
----
210
3403
954
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab0, tab2 AS cor1, tab1 cor2, tab1 cor3
----
3645 values hashing to 160649b428b8d254517cd2096e054d21
query I rowsort
SELECT col2 * 66 FROM tab0
----
2178
5412
66
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2581
SELECT ALL col2 * + CAST( NULL AS SIGNED ) + - cor0.col1 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2581
SELECT ALL col2 * + CAST ( NULL AS INTEGER ) + - cor0.col1 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 10 col0 FROM tab2
----
10
10
10
query I rowsort
SELECT - col0 + + ( col0 ) FROM tab0 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-2584
SELECT + col2 - ( - tab2.col0 ) DIV col1 FROM tab2
----
27
27
42
skipif mysql # not compatible
query I rowsort label-2584
SELECT + col2 - ( - tab2.col0 ) / col1 FROM tab2
----
27
27
42
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * col1 + + ( + col0 ) col0 FROM tab2 cor0
----
-1456
-567
-830
query I rowsort
SELECT ALL - col1 + - col1 * - col0 AS col1 FROM tab1 AS cor0
----
1027
52
630
query I rowsort
SELECT ALL col0 * 70 - + 70 AS col0 FROM tab0 AS cor0
----
1610
2380
6160
query I rowsort
SELECT DISTINCT - col1 * 96 AS col2 FROM tab1 cor0
----
-1248
-2496
-960
query I rowsort
SELECT DISTINCT col2 * - ( + 1 ) + col0 - - ( + col1 + - col0 ) AS col2 FROM tab2 AS cor0
----
-21
33
4
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col1 * 27 col1 FROM tab2 cor0
----
1593
459
837
query I rowsort
SELECT DISTINCT - - col0 * + col1 + - 91 FROM tab0 AS cor0
----
1973
3304
8008
query I rowsort
SELECT + - cor0.col0 + - ( cor0.col2 ) AS col1 FROM tab2 AS cor0
----
-104
-117
-34
query I rowsort
SELECT ALL col2 * 56 FROM tab0
----
1848
4592
56
query I rowsort
SELECT - cor0.col2 AS col1 FROM tab1, tab0 cor0, tab0 AS cor1
----
27 values hashing to 6a43e7f15194af73fe1c83385e6ebebc
onlyif mysql # use DIV operator for integer division
query I rowsort label-2595
SELECT - + 5 DIV 46 - col2 col1 FROM tab0 AS cor0
----
-1
-33
-82
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2595
SELECT - + 5 / 46 - col2 col1 FROM tab0 AS cor0
----
-1
-33
-82
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2596
SELECT CAST( NULL AS SIGNED ) / 21 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2596
SELECT CAST ( NULL AS INTEGER ) / 21 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + 67 ) * col0 col2 FROM tab1 AS cor0
----
-201
-4288
-5360
query I rowsort
SELECT col0 * cor0.col2 * col2 AS col0 FROM tab0 AS cor0
----
26136
35
598436
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2599
SELECT - CAST( + col2 AS SIGNED ) * cor0.col1 AS col2 FROM tab1 AS cor0
----
-1248
-1404
-570
skipif mysql # not compatible
query I rowsort label-2599
SELECT - CAST ( + col2 AS INTEGER ) * cor0.col1 AS col2 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT - - 98 * col1 * col0 - + 32 * ( cor0.col2 + - col1 ) FROM tab0 cor0
----
203968
335782
793990
query I rowsort
SELECT + col2 * col0 - + 78 FROM tab1 AS cor0
----
3570
7602
84
query I rowsort
SELECT 4 * + col2 FROM tab1
----
216
228
384
query I rowsort
SELECT ALL + ( col2 ) * col0 AS col2 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT ( - col0 ) * ( col0 ) * - col0 FROM tab1 AS cor0
----
262144
27
512000
query I rowsort
SELECT DISTINCT - tab1.col1 FROM tab2, tab0 AS cor0 CROSS JOIN tab1
----
-10
-13
-26
query I rowsort
SELECT ALL + - 80 + col2 * 66 * - col1 AS col0 FROM tab0 AS cor0
----
-187388
-492572
-6482
onlyif mysql # use DIV operator for integer division
query I rowsort label-2607
SELECT col2 DIV cor0.col2 + 80 * + 85 * col1 AS col2 FROM tab1 AS cor0
----
176801
68001
88401
skipif mysql # not compatible
query I rowsort label-2607
SELECT col2 / cor0.col2 + 80 * + 85 * col1 AS col2 FROM tab1 AS cor0
----
176801
68001
88401
query I rowsort
SELECT DISTINCT - + col1 * col2 AS col2 FROM tab0 cor0
----
-2838
-7462
-97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2609
SELECT + col0 * col1 + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2609
SELECT + col0 * col1 + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - - col2 * + cor0.col1 + col2 + col0 FROM tab2 cor0
----
1638
763
871
query I rowsort
SELECT DISTINCT + tab1.col0 * tab1.col2 + - ( col0 ) + + col0 AS col2 FROM tab1
----
162
3648
7680
query I rowsort
SELECT col1 + - col0 * ( col2 * - col0 ) + col2 AS col1 FROM tab2
----
1381
158269
237213
query I rowsort
SELECT - col0 + + col2 + col1 AS col0 FROM tab1 AS cor0
----
29
3
77
query I rowsort
SELECT - col0 * col0 - col0 FROM tab0 AS cor0
----
-1260
-600
-8010
query I rowsort
SELECT DISTINCT + col1 * + col2 * 46 AS col2 FROM tab0 cor0
----
130548
343252
4462
query I rowsort
SELECT cor0.col2 + - col1 + - ( col1 + - cor0.col0 ) AS col2 FROM tab0 AS cor0
----
-11
-115
-158
query I rowsort
SELECT DISTINCT + col2 * col1 * cor0.col0 FROM tab2 AS cor0
----
119652
51034
5859
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2618
SELECT + CAST( NULL AS DECIMAL ) FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif mysql # not compatible
query I rowsort label-2618
SELECT + CAST ( NULL AS REAL ) FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
query I rowsort
SELECT ALL + 85 * - cor0.col2 + ( col0 ) AS col0 FROM tab2 cor0
----
-2132
-2288
-3151
query I rowsort
SELECT ALL - + 17 + - col2 FROM tab2 AS cor0
----
-43
-44
-55
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 3 col1 FROM tab1 AS cor0
----
-3
query I rowsort
SELECT DISTINCT + col1 * - col0 - - 51 AS col2 FROM tab0 AS cor0
----
-2013
-3344
-8048
query I rowsort
SELECT - ( col2 ) - 70 AS col0 FROM tab2 AS cor0
----
-108
-96
-97
query I rowsort
SELECT ALL - col0 + cor0.col2 + ( col1 + col2 ) FROM tab0 AS cor0
----
128
166
64
query I rowsort
SELECT - col2 + col2 * - col0 AS col0 FROM tab1 AS cor0
----
-216
-3705
-7776
onlyif mysql # use DIV operator for integer division
query I rowsort label-2626
SELECT ALL - 48 * col1 DIV - col0 FROM tab1
----
416
7
7
skipif mysql # not compatible
query I rowsort label-2626
SELECT ALL - 48 * col1 / - col0 FROM tab1
----
416
7
7
query I rowsort
SELECT DISTINCT 97 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
97
query I rowsort
SELECT ALL - cor0.col2 * col1 FROM tab0 cor0
----
-2838
-7462
-97
query I rowsort
SELECT DISTINCT - cor0.col0 * - ( - 12 ) FROM tab0 AS cor0
----
-1068
-288
-420
query I rowsort
SELECT tab1.col2 * - col0 + ( + col0 ) * col2 + - 26 * - col0 AS col1 FROM tab1
----
1664
2080
78
query I rowsort
SELECT cor1.col1 FROM tab2, tab0 cor0, tab0, tab2 AS cor1
----
81 values hashing to a5b6acb471910ea4ad7f31cae3b818f7
query I rowsort
SELECT ALL - 48 * + col1 FROM tab1 AS cor0
----
-1248
-480
-624
query I rowsort
SELECT ALL - - cor0.col2 * col1 + + cor0.col1 * 57 * 8 - col1 * col0 * 41 FROM tab2 AS cor0
----
-160244
-46665
6076
onlyif mysql # use DIV operator for integer division
query I rowsort label-2634
SELECT ALL - CAST( col0 AS SIGNED ) - - cor0.col0 DIV - cor0.col2 FROM tab1 AS cor0
----
-3
-65
-80
skipif mysql # not compatible
query I rowsort label-2634
SELECT ALL - CAST ( col0 AS INTEGER ) - - cor0.col0 / - cor0.col2 FROM tab1 AS cor0
----
-3
-65
-80
query I rowsort
SELECT DISTINCT + ( + col1 + tab1.col2 ) FROM tab1
----
109
67
80
query I rowsort
SELECT col0 + + tab0.col2 * col1 AS col0 FROM tab0
----
132
2862
7551
query I rowsort
SELECT + ( 66 ) * + col2 - tab0.col1 AS col1 FROM tab0
----
-31
2092
5321
query I rowsort
SELECT - tab1.col0 + col0 * col1 FROM tab1
----
576
75
960
query I rowsort
SELECT DISTINCT + ( col1 + - col2 ) * - col2 FROM tab0
----
-1749
-738
-96
query I rowsort
SELECT - col1 AS col1 FROM tab1 WHERE NOT - col1 BETWEEN NULL AND col2
----
query I rowsort
SELECT DISTINCT - tab2.col1 * col0 - + col0 AS col2 FROM tab2
----
-1422
-224
-4680
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + + col2 + - tab1.col2 col2 FROM tab1
----
-10
-13
-26
query III rowsort
SELECT ALL * FROM tab2 WHERE col1 * col0 + col1 * - col0 = NULL
----
query III rowsort
SELECT * FROM tab1 WHERE NOT col0 * col0 = NULL
----
query I rowsort
SELECT - tab1.col1 + - col2 AS col1 FROM tab1
----
-109
-67
-80
query I rowsort
SELECT ALL + tab2.col2 * + col2 AS col0 FROM tab2
----
1444
676
729
query I rowsort
SELECT ALL - col0 * col0 * + col2 AS col1 FROM tab2
----
-1323
-158184
-237158
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + col2 * col2 + + col0 col0 FROM tab0
----
1199
133
6904
query III rowsort
SELECT * FROM tab2 WHERE NOT col2 * + col2 + col1 IN ( + col2 * - col1 )
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45
query III rowsort
SELECT * FROM tab1 WHERE NULL BETWEEN ( - col2 ) AND - col2
----
query I rowsort
SELECT ALL + col2 * tab2.col2 - col2 FROM tab2
----
1406
650
702
query I rowsort
SELECT - tab2.col2 * col1 + + col2 AS col1 FROM tab2
----
-1508
-608
-810
onlyif mysql # use DIV operator for integer division
query I rowsort label-2653
SELECT col0 + - col0 DIV tab0.col0 FROM tab0
----
23
34
88
skipif mysql # not compatible
query I rowsort label-2653
SELECT col0 + - col0 / tab0.col0 FROM tab0
----
23
34
88
query III rowsort
SELECT * FROM tab1 WHERE ( NULL ) = col0 * col1
----
query I rowsort
SELECT ALL - col2 - tab2.col0 AS col0 FROM tab2
----
-104
-117
-34
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * col1 + col0 col2 FROM tab1
----
-36
-673
-89
query I rowsort
SELECT DISTINCT tab1.col0 * col0 * + col0 + + col1 * tab1.col0 AS col0 FROM tab1
----
105
262784
513040
query I rowsort
SELECT ALL + col0 AS col1 FROM tab2 WHERE NULL < col0 * - col1 * - col0
----
query I rowsort
SELECT + cor0.col2 * - cor0.col0 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 9bb5096fcd17e3f131152e7a67a5338f
onlyif mysql # use DIV operator for integer division
query I rowsort label-2660
SELECT + col1 DIV + col1 col2 FROM tab2
----
1
1
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2660
SELECT + col1 / + col1 col2 FROM tab2
----
1
1
1
query I rowsort
SELECT ALL col0 + + tab0.col2 * col2 AS col0 FROM tab0
----
1113
36
6813
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL NOT IN ( - tab0.col2 + - col0 )
----
query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab0 cor0 CROSS JOIN tab2 WHERE NOT ( NULL ) < NULL
----
query I rowsort
SELECT - col0 * col0 * - col0 FROM tab0
----
13824
42875
704969
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * tab1.col0 - col1 * tab1.col2 col2 FROM tab1
----
-1395
3526
5152
query I rowsort
SELECT + tab2.col1 + col1 AS col0 FROM tab2 WHERE ( col0 ) >= NULL
----
query I rowsort
SELECT col2 FROM tab2 WHERE ( col0 ) = NULL
----
query I rowsort
SELECT DISTINCT + col0 * col2 * + col2 FROM tab2
----
114076
5103
52728
query I rowsort
SELECT DISTINCT col0 FROM tab1 WHERE NOT - col0 + col0 IN ( col2 / col1 )
----
3
64
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * + col0 * - col2 col2 FROM tab0
----
3395
664118
68112
query I rowsort
SELECT ALL col0 * + col1 * col1 AS col2 FROM tab1 AS cor0
----
13520
2028
6400
query I rowsort
SELECT ALL + col1 * - col0 - col2 AS col1 FROM tab2 AS cor0
----
-1381
-244
-4628
query I rowsort
SELECT - 31 * + cor0.col2 + - col2 * + ( + col0 ) AS col2 FROM tab0 cor0
----
-1815
-66
-9840
query I rowsort
SELECT col2 * - 56 FROM tab2
----
-1456
-1512
-2128
query I rowsort
SELECT + - col2 - col0 FROM tab2 AS cor0
----
-104
-117
-34
query I rowsort
SELECT ALL - col1 * + cor0.col2 + + col1 FROM tab0 AS cor0
----
-2752
-7371
0
query I rowsort
SELECT - col0 * ( col0 ) + col1 FROM tab0 AS cor0
----
-1128
-490
-7830
query I rowsort
SELECT DISTINCT + col2 * ( col2 + col1 * + col2 ) FROM tab2
----
23328
25992
40560
query I rowsort
SELECT ALL 18 * + cor0.col0 AS col2 FROM tab1, tab0 cor0
----
9 values hashing to 5fc2939f29fdc1943314a40a3a2a9a58
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2680
SELECT ALL - CAST( - col1 AS SIGNED ) * + tab1.col0 + - col2 FROM tab1
----
24
583
944
skipif mysql # not compatible
query I rowsort label-2680
SELECT ALL - CAST ( - col1 AS INTEGER ) * + tab1.col0 + - col2 FROM tab1
----
24
583
944
query I rowsort
SELECT - + cor0.col2 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 7b5938124253798426fbf09c18e1fd75
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab0.col1 * + 47 + 88 col2 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 3688cb593447160e34f29fee5e45de02
query I rowsort
SELECT + 69 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 85d9b90a03b9def161891b13085271f7
query I rowsort
SELECT - 65 * 93 + col1 AS col2 FROM tab2 AS cor0
----
-5986
-6014
-6028
onlyif mysql # use DIV operator for integer division
query I rowsort label-2685
SELECT - col2 + col1 DIV cor0.col2 AS col0 FROM tab1 AS cor0
----
-54
-57
-96
skipif mysql # not compatible
query I rowsort label-2685
SELECT - col2 + col1 / cor0.col2 AS col0 FROM tab1 AS cor0
----
-54
-57
-96
query I rowsort
SELECT col1 + - col2 * col2 AS col0 FROM tab2 cor0
----
-1427
-617
-698
onlyif mysql # use DIV operator for integer division
query I rowsort label-2687
SELECT 58 DIV cor0.col2 AS col2 FROM tab1 AS cor0
----
0
1
1
skipif mysql # not compatible
query I rowsort label-2687
SELECT 58 / cor0.col2 AS col2 FROM tab1 AS cor0
----
0
1
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 - - ( 26 ) * - col0 col2 FROM tab1 AS cor0
----
-132
-1721
-2176
query I rowsort
SELECT col1 * 54 * 25 - col2 AS col0 FROM tab2 AS cor0
----
22912
41823
79624
onlyif mysql # use DIV operator for integer division
query I rowsort label-2690
SELECT col1 * ( 57 ) + col1 DIV + 85 FROM tab2 AS cor0
----
1767
3363
969
skipif mysql # not compatible
query I rowsort label-2690
SELECT col1 * ( 57 ) + col1 / + 85 FROM tab2 AS cor0
----
1767
3363
969
query I rowsort
SELECT + col2 + col2 AS col1 FROM tab0 cor0
----
164
2
66
query I rowsort
SELECT col0 * + col1 * - cor0.col1 FROM tab2 AS cor0
----
-22831
-271518
-6727
query I rowsort
SELECT + - col0 * - col0 * 20 FROM tab1 AS cor0
----
128000
180
81920
query I rowsort
SELECT 4 + - col0 FROM tab0
----
-20
-31
-85
query I rowsort
SELECT ALL - tab2.col0 * - col1 * - col1 FROM tab2
----
-22831
-271518
-6727
query I rowsort
SELECT + col1 * - ( - col0 ) AS col1 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT + ( - 77 ) * col1 FROM tab1 AS cor0
----
-1001
-2002
-770
query I rowsort
SELECT - ( - col0 ) + col0 - + col0 * cor0.col2 AS col1 FROM tab0 cor0
----
-7120
-744
35
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2699
SELECT + CAST( - col2 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-1
-33
-82
skipif mysql # not compatible
query I rowsort label-2699
SELECT + CAST ( - col2 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-1
-33
-82
query I rowsort
SELECT ALL col2 * 2 AS col1 FROM tab0
----
164
2
66
query I rowsort
SELECT - - 98 + col0 * - col1 AS col2 FROM tab1 AS cor0
----
-542
-942
20
query I rowsort
SELECT - ( 74 ) * + cor0.col1 FROM tab2 AS cor0
----
-1258
-2294
-4366
query I rowsort
SELECT + 58 + col2 AS col2 FROM tab2 AS cor0
----
84
85
96
query I rowsort
SELECT DISTINCT - + col1 + cor0.col2 AS col0 FROM tab1 AS cor0
----
28
47
83
query I rowsort
SELECT ALL - + 21 + + 58 FROM tab1 AS cor0
----
37
37
37
query I rowsort
SELECT + 76 + + tab2.col1 * col2 + + col2 FROM tab2
----
1636
760
940
onlyif mysql # use DIV operator for integer division
query I rowsort label-2707
SELECT DISTINCT 91 + col1 * + col0 DIV cor0.col0 AS col1 FROM tab2 AS cor0
----
108
122
150
skipif mysql # not compatible
query I rowsort label-2707
SELECT DISTINCT 91 + col1 * + col0 / cor0.col0 AS col1 FROM tab2 AS cor0
----
108
122
150
query I rowsort
SELECT col1 * tab2.col2 * col1 FROM tab2
----
10982
25947
90506
query I rowsort
SELECT + 98 * - 20 AS col1 FROM tab2
----
-1960
-1960
-1960
onlyif mysql # use DIV operator for integer division
query I rowsort label-2710
SELECT DISTINCT 82 DIV + tab0.col0 FROM tab0
----
0
2
3
skipif mysql # not compatible
query I rowsort label-2710
SELECT DISTINCT 82 / + tab0.col0 FROM tab0
----
0
2
3
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 7 col2 FROM tab0, tab2 cor0
----
9 values hashing to ba940cd66e21e94e95aada5f28e1faf5
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab0.col1 col0 FROM tab0, tab2, tab2 cor0
----
27 values hashing to d4c673b7444eb9927ec63175b43c6b84
query I rowsort
SELECT ALL + col1 * col2 * + col1 + tab1.col2 AS col0 FROM tab1
----
16320
36558
5757
query I rowsort
SELECT ALL 90 + - col2 AS col0 FROM tab2
----
52
63
64
query I rowsort
SELECT + 46 + + col0 AS col1 FROM tab2
----
124
125
53
query I rowsort
SELECT ALL - col0 + - col2 * 64 FROM tab1 cor0
----
-3459
-3712
-6224
query I rowsort
SELECT ALL + - col1 + cor0.col0 * + col1 FROM tab1 AS cor0
----
1027
52
630
query I rowsort
SELECT DISTINCT col2 + col2 * 24 * col1 FROM tab0 AS cor0
----
179170
2329
68145
query I rowsort
SELECT DISTINCT - col1 + - 99 AS col1 FROM tab0 AS cor0
----
-185
-190
-196
query I rowsort
SELECT DISTINCT + col2 + + 61 AS col1 FROM tab1 AS cor0
----
115
118
157
query I rowsort
SELECT ALL + 23 AS col1 FROM tab1
----
23
23
23
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2722
SELECT - col1 * tab0.col1 - CAST( NULL AS DECIMAL ) FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2722
SELECT - col1 * tab0.col1 - CAST ( NULL AS REAL ) FROM tab0
----
NULL
NULL
NULL
query IIIIIIIIIIII rowsort
SELECT * FROM tab0 cor0 CROSS JOIN tab0, tab0 AS cor1, tab0 AS cor2
----
972 values hashing to 04d825fa29899c3ee2704c26a542267d
query I rowsort
SELECT - - cor0.col2 + 85 AS col1 FROM tab1 cor0
----
139
142
181
query I rowsort
SELECT col2 + + col2 * - col0 AS col2 FROM tab2
----
-162
-2002
-2964
onlyif mysql # use DIV operator for integer division
query I rowsort label-2726
SELECT DISTINCT + col2 DIV col1 AS col1 FROM tab0 cor0
----
0
skipif mysql # not compatible
query I rowsort label-2726
SELECT DISTINCT + col2 / col1 AS col1 FROM tab0 cor0
----
0
query I rowsort
SELECT DISTINCT - col0 * - col2 + - col0 + col0 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT - cor0.col2 - + col1 * col0 AS col0 FROM tab0 cor0
----
-2097
-3396
-8181
query I rowsort
SELECT DISTINCT + - col2 * - col2 - col1 AS col0 FROM tab2 AS cor0
----
1427
617
698
query I rowsort
SELECT ALL + col0 - - col2 FROM tab0 cor0
----
171
36
57
onlyif mysql # use DIV operator for integer division
query I rowsort label-2731
SELECT DISTINCT + col0 DIV + col1 + - col0 AS col1 FROM tab2
----
-7
-75
-77
skipif mysql # not compatible
query I rowsort label-2731
SELECT DISTINCT + col0 / + col1 + - col0 AS col1 FROM tab2
----
-7
-75
-77
query I rowsort
SELECT DISTINCT + col1 + col2 - col0 AS col1 FROM tab2 cor0
----
-24
51
7
query I rowsort
SELECT + + col0 - col2 AS col2 FROM tab0 cor0
----
-9
34
7
query I rowsort
SELECT - cor0.col0 + + col0 * - col2 FROM tab0 AS cor0
----
-70
-7387
-816
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + + col0 * col1 col1 FROM tab0 cor0
----
1978
3298
8008
query I rowsort
SELECT - - col2 + - col0 * col0 AS col0 FROM tab0 cor0
----
-1224
-543
-7839
onlyif mysql # use DIV operator for integer division
query I rowsort label-2737
SELECT DISTINCT col0 * - col2 + + col2 DIV col1 - + col1 * - cor0.col0 * + col2 FROM tab2 AS cor0
----
117624
48034
5670
skipif mysql # not compatible
query I rowsort label-2737
SELECT DISTINCT col0 * - col2 + + col2 / col1 - + col1 * - cor0.col0 * + col2 FROM tab2 AS cor0
----
117624
48034
5670
query I rowsort
SELECT - ( col0 ) * + col2 FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT ALL 83 AS col0 FROM tab1 cor0
----
83
83
83
query I rowsort
SELECT ALL + 76 * - col1 FROM tab1 cor0
----
-1976
-760
-988
query I rowsort
SELECT ALL + + ( + col0 ) * - col1 + col0 + col2 AS col2 FROM tab2 AS cor0
----
-1226
-183
-4498
query I rowsort
SELECT ALL + + ( - col0 ) * col1 + cor0.col2 * + col0 FROM tab0 AS cor0
----
-1272
-3360
-801
query I rowsort
SELECT ALL - cor0.col2 * col0 * col0 - col1 FROM tab0 AS cor0
----
-1322
-19094
-649613
query I rowsort
SELECT ALL + - col1 - - col0 AS col2 FROM tab2 AS cor0
----
-24
19
62
query I rowsort
SELECT 25 + tab1.col2 * + col2 FROM tab1
----
2941
3274
9241
query I rowsort
SELECT DISTINCT 5 * + col1 + + tab0.col2 FROM tab0
----
463
486
537
query I rowsort
SELECT col2 + + col0 + - ( + col1 ) AS col2 FROM tab2 AS cor0
----
100
3
45
query I rowsort
SELECT ALL + 60 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to a97561e17ecaa618227c75a57b268f33
query I rowsort
SELECT DISTINCT - col1 * - col0 + 49 * col1 AS col0 FROM tab1 AS cor0
----
1130
1352
1677
query I rowsort
SELECT ALL + - cor0.col0 + + col1 AS col2 FROM tab1 AS cor0
----
-54
-67
23
query I rowsort
SELECT ( col1 ) - 8 * col1 AS col0 FROM tab1 AS cor0
----
-182
-70
-91
query I rowsort
SELECT ALL + ( - col1 ) * + col1 + col0 * + cor0.col0 AS col1 FROM tab0 AS cor0
----
-360
-6820
-8184
query I rowsort
SELECT DISTINCT + ( cor0.col2 ) + + col2 FROM tab1 cor0
----
108
114
192
query I rowsort
SELECT ALL - cor0.col1 * - col1 AS col2 FROM tab1 AS cor0
----
100
169
676
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 73 col1 FROM tab2 AS cor0
----
73
query I rowsort
SELECT col0 * col0 + cor0.col0 * + col1 AS col0 FROM tab2 AS cor0
----
10686
266
7584
query I rowsort
SELECT - - col1 * + col0 + - 53 FROM tab0 cor0
----
2011
3342
8046
query I rowsort
SELECT DISTINCT col1 + + tab0.col2 + col2 FROM tab0
----
152
255
99
query I rowsort
SELECT - col0 * - col1 + + 12 + - ( - col2 ) FROM tab2
----
1393
256
4640
onlyif mysql # use DIV operator for integer division
query I rowsort label-2760
SELECT ALL + + col0 * col1 DIV + col0 FROM tab0 AS cor0
----
86
91
97
skipif mysql # not compatible
query I rowsort label-2760
SELECT ALL + + col0 * col1 / + col0 FROM tab0 AS cor0
----
86
91
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 53 + col0 col1 FROM tab1 cor0
----
117
133
56
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col0 * 61 col1 FROM tab0 AS cor0
----
1464
2135
5429
query I rowsort
SELECT DISTINCT + 45 + 68 AS col2 FROM tab1, tab0 AS cor0, tab0 AS cor1, tab2 cor2
----
113
query I rowsort
SELECT DISTINCT - + 58 + - 50 FROM tab0 AS cor0
----
-108
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2765
SELECT - + CAST( NULL AS SIGNED ) * 19 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-2765
SELECT - + CAST ( NULL AS INTEGER ) * 19 col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - col0 + 3 + + col0 FROM tab1
----
3
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2767
SELECT col1 * - col2 + col0 * + CAST( - col0 AS SIGNED ) FROM tab1
----
-1413
-4666
-7648
skipif mysql # not compatible
query I rowsort label-2767
SELECT col1 * - col2 + col0 * + CAST ( - col0 AS INTEGER ) FROM tab1
----
-1413
-4666
-7648
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2768
SELECT CAST( + 17 AS SIGNED ) + tab2.col2 AS col1 FROM tab2
----
43
44
55
skipif mysql # not compatible
query I rowsort label-2768
SELECT CAST ( + 17 AS INTEGER ) + tab2.col2 AS col1 FROM tab2
----
43
44
55
skipif mysql # not compatible
query I rowsort
SELECT + col1 * col2 - CAST ( + col1 AS REAL ) AS col0 FROM tab1 AS cor0
----
1235
1378
560
query I rowsort
SELECT ALL - tab1.col0 + - 20 * col0 * tab1.col1 FROM tab1
----
-12864
-1563
-20880
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + ( col0 + 4 ) * + 54 col1 FROM tab1
----
3682
404
4549
query I rowsort
SELECT ALL 37 + - col2 AS col0 FROM tab1
----
-17
-20
-59
query I rowsort
SELECT + cor0.col2 * + 51 FROM tab0, tab2 cor0, tab0 AS cor1
----
27 values hashing to 620ffca3d07a9a3da6d986e2f25b0e30
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2, tab1 AS cor0 CROSS JOIN tab1, tab0 AS cor1, tab1 AS cor2
----
3645 values hashing to f9101173abc9e524c6310e6c0eeefb0c
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 91 col1 FROM tab1
----
91
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2776
SELECT ALL CAST( + 89 AS SIGNED ) FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 860d55eb6785972467218a9c3badb5ad
skipif mysql # not compatible
query I rowsort label-2776
SELECT ALL CAST ( + 89 AS INTEGER ) FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 860d55eb6785972467218a9c3badb5ad
query I rowsort
SELECT + - 52 AS col2 FROM tab1 AS cor0
----
-52
-52
-52
query I rowsort
SELECT + 53 * + col2 FROM tab0
----
1749
4346
53
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + col2 ) * 9 col0 FROM tab0
----
-297
-738
-9
query I rowsort
SELECT DISTINCT + + col2 * + 68 + + col0 AS col0 FROM tab0 AS cor0
----
103
2268
5665
query I rowsort
SELECT + tab2.col2 - + 11 AS col0 FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to 12add03463a40476f6cdff89f8d563be
query I rowsort
SELECT DISTINCT 74 AS col1 FROM tab1, tab2 cor0
----
74
query I rowsort
SELECT DISTINCT + tab0.col2 * - ( - 99 ) AS col0 FROM tab0
----
3267
8118
99
query I rowsort
SELECT ALL + - ( col0 ) + - col1 * col2 AS col0 FROM tab2 cor0
----
-1612
-725
-844
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 69 * + ( col1 ) + col2 + + ( + col1 + + ( + 67 ) ) col1 FROM tab2 AS cor0
----
1295
2264
4223
onlyif mysql # use DIV operator for integer division
query I rowsort label-2786
SELECT DISTINCT cor0.col2 * cor0.col1 - - col0 DIV + col2 FROM tab0 AS cor0
----
132
2838
7463
skipif mysql # not compatible
query I rowsort label-2786
SELECT DISTINCT cor0.col2 * cor0.col1 - - col0 / + col2 FROM tab0 AS cor0
----
132
2838
7463
query I rowsort
SELECT 7 * + col2 AS col1 FROM tab0 AS cor0
----
231
574
7
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab0 AS cor0 CROSS JOIN tab2, tab1 AS cor1, tab2 AS cor2
----
3645 values hashing to 6193516da5556fc054f35e0d2f4e5372
query I rowsort
SELECT + col2 * 84 FROM tab2 AS cor0
----
2184
2268
3192
query I rowsort
SELECT - 75 * - 95 FROM tab2 AS cor0
----
7125
7125
7125
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * 89 col2 FROM tab2 AS cor0
----
-2314
-2403
-3382
query I rowsort
SELECT tab1.col1 + 56 FROM tab1
----
66
69
82
query I rowsort
SELECT + cor1.col0 FROM tab2, tab1 cor0, tab0 AS cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd
onlyif mysql # use DIV operator for integer division
query I rowsort label-2794
SELECT - - cor0.col2 * col0 DIV cor0.col0 FROM tab1 AS cor0
----
54
57
96
skipif mysql # not compatible
query I rowsort label-2794
SELECT - - cor0.col2 * col0 / cor0.col0 FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT DISTINCT + - col1 + - 95 * col2 FROM tab1 AS cor0
----
-5156
-5425
-9133
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2796
SELECT DISTINCT - col0 * - CAST( + col0 AS SIGNED ) + + col0 + - 75 col1 FROM tab1 cor0
----
-63
4085
6405
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2796
SELECT DISTINCT - col0 * - CAST ( + col0 AS INTEGER ) + + col0 + - 75 col1 FROM tab1 cor0
----
-63
4085
6405
skipif mysql # not compatible
query I rowsort
SELECT ALL - CAST ( col1 AS REAL ) * col0 + col1 FROM tab2 AS cor0
----
-1326
-186
-4543
query I rowsort
SELECT 32 + - 41 + col0 FROM tab1 AS cor0
----
-6
55
71
query I rowsort
SELECT + col1 + 67 * col0 FROM tab2 AS cor0
----
500
5285
5310
query I rowsort
SELECT + - col0 + + col1 + - col2 FROM tab2 AS cor0
----
-100
-3
-45
query I rowsort
SELECT + col1 * + 31 * col2 + col0 FROM tab2 AS cor0
----
20105
25954
47632
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 13 + 39 col0 FROM tab1 AS cor0
----
52
52
52
query I rowsort
SELECT DISTINCT ( cor0.col0 ) AS col1 FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT ALL - ( 23 ) * col0 AS col1 FROM tab2 AS cor0
----
-161
-1794
-1817
query I rowsort
SELECT + ( col1 ) - - col2 FROM tab1 cor0
----
109
67
80
onlyif mysql # use DIV operator for integer division
query I rowsort label-2806
SELECT ALL + ( col2 ) DIV col1 FROM tab1 AS cor0
----
2
5
7
skipif mysql # not compatible
query I rowsort label-2806
SELECT ALL + ( col2 ) / col1 FROM tab1 AS cor0
----
2
5
7
query I rowsort
SELECT + col0 * + col1 + + col0 AS col0 FROM tab2 AS cor0
----
1422
224
4680
query I rowsort
SELECT ALL - cor0.col2 AS col0 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 6a43e7f15194af73fe1c83385e6ebebc
query I rowsort
SELECT col1 * - 24 FROM tab1
----
-240
-312
-624
query I rowsort
SELECT + col0 - + tab1.col2 FROM tab1
----
-16
-51
7
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 46 + - cor0.col1 col2 FROM tab1 AS cor0
----
-56
-59
-72
query I rowsort
SELECT ALL - col1 + col0 * + col1 AS col0 FROM tab0 AS cor0
----
1978
3298
8008
query I rowsort
SELECT 11 * + col1 FROM tab1 AS cor0
----
110
143
286
query I rowsort
SELECT DISTINCT col0 * 83 AS col2 FROM tab2
----
581
6474
6557
query I rowsort
SELECT + 64 FROM tab1, tab2, tab1 AS cor0
----
27 values hashing to c8b19f4c3ff38700cd2bb8a077bf29b9
query I rowsort
SELECT + col2 * - 2 AS col2 FROM tab0
----
-164
-2
-66
query I rowsort
SELECT - 36 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to afecaf209e79e23b6674a73fffa3e837
query I rowsort
SELECT + col2 * + 58 AS col0 FROM tab0 cor0
----
1914
4756
58
query I rowsort
SELECT ALL - cor0.col1 * 32 + col2 FROM tab0 AS cor0
----
-2719
-2830
-3103
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2820
SELECT + + col1 * CAST( + col1 AS SIGNED ) + - col2 col1 FROM tab0 AS cor0
----
7363
8199
9408
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2820
SELECT + + col1 * CAST ( + col1 AS INTEGER ) + - col2 col1 FROM tab0 AS cor0
----
7363
8199
9408
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + cor0.col0 * + col2 + col1 + + col1 col2 FROM tab1 cor0
----
-110
-3628
-7654
onlyif mysql # use DIV operator for integer division
query I rowsort label-2822
SELECT DISTINCT - col0 DIV 63 + - col0 * + col1 FROM tab0 AS cor0
----
-2064
-3395
-8100
skipif mysql # not compatible
query I rowsort label-2822
SELECT DISTINCT - col0 / 63 + - col0 * + col1 FROM tab0 AS cor0
----
-2064
-3395
-8100
query I rowsort
SELECT DISTINCT col1 * - col2 + + ( + col2 ) FROM tab1 AS cor0
----
-1152
-1350
-513
query I rowsort
SELECT DISTINCT - tab0.col0 + + col0 * ( + 21 * col1 ) FROM tab0
----
169990
43320
71260
query I rowsort
SELECT - col1 * tab2.col2 + + col0 * col2 AS col0 FROM tab2
----
-648
2356
494
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2826
SELECT col0 + CAST( - ( col1 ) AS SIGNED ) AS col2 FROM tab2
----
-24
19
62
skipif mysql # not compatible
query I rowsort label-2826
SELECT col0 + CAST ( - ( col1 ) AS INTEGER ) AS col2 FROM tab2
----
-24
19
62
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1, tab0 AS cor1, tab2, tab0 cor2
----
3645 values hashing to 0705df526be8eeded96d0c20ae938712
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2828
SELECT + col1 * + CAST( NULL AS SIGNED ) * col1 AS col0 FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2828
SELECT + col1 * + CAST ( NULL AS INTEGER ) * col1 AS col0 FROM tab0 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + col0 + + cor0.col1 AS col0 FROM tab1 AS cor0
----
29
74
93
query I rowsort
SELECT ALL - col0 + 85 AS col0 FROM tab2 AS cor0
----
6
7
78
query I rowsort
SELECT ALL col1 + ( 43 ) FROM tab1 AS cor0
----
53
56
69
query I rowsort
SELECT DISTINCT + - col2 * 6 + cor0.col0 FROM tab0 AS cor0
----
-174
-403
29
query I rowsort
SELECT DISTINCT - col2 * - ( 69 ) FROM tab2 AS cor0
----
1794
1863
2622
query I rowsort
SELECT DISTINCT + col1 - - col0 AS col1 FROM tab1 AS cor0
----
29
74
93
onlyif mysql # use DIV operator for integer division
query I rowsort label-2835
SELECT ALL col1 DIV + cor0.col2 + - col2 FROM tab0 AS cor0
----
-31
-81
96
skipif mysql # not compatible
query I rowsort label-2835
SELECT ALL col1 / + cor0.col2 + - col2 FROM tab0 AS cor0
----
-31
-81
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-2836
SELECT DISTINCT - + col2 + - col0 DIV - col2 - col1 AS col0 FROM tab0 AS cor0
----
-119
-172
-63
skipif mysql # not compatible
query I rowsort label-2836
SELECT DISTINCT - + col2 + - col0 / - col2 - col1 AS col0 FROM tab0 AS cor0
----
-119
-172
-63
query I rowsort
SELECT DISTINCT - 13 - - col1 AS col1 FROM tab0
----
73
78
84
query I rowsort
SELECT 84 - col2 FROM tab1
----
-12
27
30
query I rowsort
SELECT ( 89 ) + col2 + - 86 AS col1 FROM tab2
----
29
30
41
query I rowsort
SELECT + 48 - col2 AS col0 FROM tab2 AS cor0
----
10
21
22
query I rowsort
SELECT 48 - + col1 FROM tab1 AS cor0
----
22
35
38
query I rowsort
SELECT DISTINCT col0 * col2 + cor0.col0 FROM tab0 AS cor0
----
70
7387
816
query I rowsort
SELECT - 34 AS col1 FROM tab2
----
-34
-34
-34
query I rowsort
SELECT ALL col2 * col0 + col0 FROM tab2 cor0
----
196
2106
3081
query I rowsort
SELECT + - col1 * + col2 + 46 + col2 FROM tab2 cor0
----
-1462
-562
-764
onlyif mysql # use DIV operator for integer division
query I rowsort label-2846
SELECT + - cor0.col0 * cor0.col2 + ( col2 ) DIV - cor0.col1 + - cor0.col0 col1 FROM tab0 AS cor0
----
-70
-7387
-816
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2846
SELECT + - cor0.col0 * cor0.col2 + ( col2 ) / - cor0.col1 + - cor0.col0 col1 FROM tab0 AS cor0
----
-70
-7387
-816
onlyif mysql # use DIV operator for integer division
query I rowsort label-2847
SELECT col0 * 35 DIV col1 + + col2 + + CAST( + col0 AS SIGNED ) * col2 FROM tab1
----
220
3929
7991
skipif mysql # not compatible
query I rowsort label-2847
SELECT col0 * 35 / col1 + + col2 + + CAST ( + col0 AS INTEGER ) * col2 FROM tab1
----
220
3929
7991
query I rowsort
SELECT DISTINCT col1 + 52 FROM tab0
----
138
143
149
query I rowsort
SELECT col1 + - col0 * + col0 + col0 * - tab0.col1 AS col0 FROM tab0
----
-15929
-2554
-4523
onlyif mysql # use DIV operator for integer division
query I rowsort label-2850
SELECT ALL col0 DIV col2 AS col0 FROM tab0 AS cor0
----
0
1
35
skipif mysql # not compatible
query I rowsort label-2850
SELECT ALL col0 / col2 AS col0 FROM tab0 AS cor0
----
0
1
35
query I rowsort
SELECT + ( col1 ) * col2 + col0 AS col1 FROM tab1 AS cor0
----
1328
1407
634
onlyif mysql # use DIV operator for integer division
query I rowsort label-2852
SELECT DISTINCT col2 DIV 19 + col2 + + col2 * + 27 AS col0 FROM tab2 AS cor0
----
1066
729
757
skipif mysql # not compatible
query I rowsort label-2852
SELECT DISTINCT col2 / 19 + col2 + + col2 * + 27 AS col0 FROM tab2 AS cor0
----
1066
729
757
query I rowsort
SELECT - - col1 - col0 AS col0 FROM tab2 AS cor0
----
-19
-62
24
query I rowsort
SELECT + + ( - 46 ) + col0 FROM tab0 cor0
----
-11
-22
43
query I rowsort
SELECT + ( cor0.col2 ) * col0 + - col2 * + col2 * + col0 FROM tab2 AS cor0
----
-111074
-4914
-50700
query I rowsort
SELECT DISTINCT - 86 * col1 * - col1 FROM tab2 AS cor0
----
24854
299366
82646
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2857
SELECT col1 + + col2 * CAST( col2 * - col0 AS SIGNED ) FROM tab0 AS cor0
----
-26050
-598345
62
skipif mysql # not compatible
query I rowsort label-2857
SELECT col1 + + col2 * CAST ( col2 * - col0 AS INTEGER ) FROM tab0 AS cor0
----
-26050
-598345
62
query I rowsort
SELECT 77 * cor0.col0 AS col2 FROM tab0 AS cor0
----
1848
2695
6853
query I rowsort
SELECT DISTINCT + cor0.col2 + - col2 * col0 FROM tab1 AS cor0
----
-108
-3591
-7584
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2860
SELECT + + col0 * - col1 * - CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2860
SELECT + + col0 * - col1 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-2861
SELECT + col1 DIV + cor0.col0 AS col0 FROM tab2 cor0
----
0
0
4
skipif mysql # not compatible
query I rowsort label-2861
SELECT + col1 / + cor0.col0 AS col0 FROM tab2 cor0
----
0
0
4
query I rowsort
SELECT DISTINCT + 85 * - col1 AS col2 FROM tab0 AS cor0
----
-7310
-7735
-8245
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col2 + 14 col2 FROM tab1 AS cor0
----
110
68
71
query I rowsort
SELECT - col0 + 58 AS col2 FROM tab2 cor0
----
-20
-21
51
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + 30 + col1 col0 FROM tab0 AS cor0
----
32
92
92
query I rowsort
SELECT ALL + col1 + + col2 AS col2 FROM tab0 AS cor0
----
119
173
98
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2867
SELECT col0 * - CAST( NULL AS SIGNED ) FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2867
SELECT col0 * - CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + + 67 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to b56f8a4f1fcebc9802481256df61e97c
query I rowsort
SELECT + + col0 * col1 * + col0 FROM tab1 AS cor0
----
234
40960
83200
onlyif mysql # use DIV operator for integer division
query I rowsort label-2870
SELECT - - col0 * col1 DIV - cor0.col0 AS col1 FROM tab2 AS cor0
----
-17
-31
-59
skipif mysql # not compatible
query I rowsort label-2870
SELECT - - col0 * col1 / - cor0.col0 AS col1 FROM tab2 AS cor0
----
-17
-31
-59
query I rowsort
SELECT + col2 * col1 - - col2 AS col1 FROM tab0
----
2871
7544
98
query I rowsort
SELECT - - col1 * - 61 * + col0 FROM tab1 AS cor0
----
-39040
-4758
-63440
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( 87 ) col2 FROM tab2 AS cor0
----
87
87
87
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab2, tab2 cor1, tab1 AS cor2
----
972 values hashing to 263f0eb7d5dfd4076c74918bc141bd9b
query I rowsort
SELECT DISTINCT - 25 AS col1 FROM tab0
----
-25
query I rowsort
SELECT col2 + + col0 * ( - 48 * col1 ) FROM tab1 cor0
----
-30663
-3690
-49824
query I rowsort
SELECT - - ( col0 ) * ( + col0 ) + - cor0.col0 * col1 AS col2 FROM tab0 AS cor0
----
-1488
-178
-2170
query I rowsort
SELECT - 1 * col0 FROM tab2
----
-7
-78
-79
query I rowsort
SELECT 64 * col1 FROM tab1
----
1664
640
832
query I rowsort
SELECT ALL + 20 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 0a35fe98f3e7d5fc8ff2ae815bd20ef4
query I rowsort
SELECT + - col2 + - col1 * 9 AS col2 FROM tab1 AS cor0
----
-147
-213
-288
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2882
SELECT CAST( + 24 AS SIGNED ) FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to aeeac431d22528188e8a5a2a60d2d080
skipif mysql # not compatible
query I rowsort label-2882
SELECT CAST ( + 24 AS INTEGER ) FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to aeeac431d22528188e8a5a2a60d2d080
query I rowsort
SELECT + - col0 * col0 + + col2 FROM tab1 cor0
----
-4039
-6304
45
onlyif mysql # use DIV operator for integer division
query I rowsort label-2884
SELECT - 16 DIV - cor0.col0 FROM tab1 AS cor0
----
0
0
5
skipif mysql # not compatible
query I rowsort label-2884
SELECT - 16 / - cor0.col0 FROM tab1 AS cor0
----
0
0
5
onlyif mysql # use DIV operator for integer division
query I rowsort label-2885
SELECT DISTINCT col0 DIV - tab0.col0 + col2 * col0 AS col0 FROM tab0
----
34
7297
791
skipif mysql # not compatible
query I rowsort label-2885
SELECT DISTINCT col0 / - tab0.col0 + col2 * col0 AS col0 FROM tab0
----
34
7297
791
query I rowsort
SELECT + col1 * - col1 + tab1.col0 AS col1 FROM tab1
----
-36
-673
-89
query I rowsort
SELECT - + col2 + ( col2 ) * 40 AS col1 FROM tab1 cor0
----
2106
2223
3744
query I rowsort
SELECT 73 * + ( - col1 * ( + ( + col2 ) ) ) AS col2 FROM tab2 AS cor0
----
-111982
-47158
-61101
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2889
SELECT DISTINCT + - col2 + col2 * + CAST( NULL AS DECIMAL ) - col2 AS col1 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-2889
SELECT DISTINCT + - col2 + col2 * + CAST ( NULL AS REAL ) - col2 AS col1 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT ALL - + cor0.col2 * + col1 FROM tab2 cor0
----
-1534
-646
-837
query I rowsort
SELECT DISTINCT col1 * + cor0.col2 + - col2 FROM tab1 AS cor0
----
1152
1350
513
onlyif mysql # use DIV operator for integer division
query I rowsort label-2892
SELECT ALL col0 + col2 DIV col0 FROM tab2
----
10
78
79
skipif mysql # not compatible
query I rowsort label-2892
SELECT ALL col0 + col2 / col0 FROM tab2
----
10
78
79
query I rowsort
SELECT + tab0.col1 + col2 * 52 AS col2 FROM tab0
----
149
1802
4355
query I rowsort
SELECT + - 95 * - cor0.col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 7f743d22257eee9bf287773a4a2445e6
query I rowsort
SELECT + col1 + col1 * 17 + col1 FROM tab0 cor0
----
1634
1729
1843
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * col0 col1 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT ALL - ( ( - cor0.col0 ) ) * + 92 - - col1 FROM tab1 AS cor0
----
302
5898
7373
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 70 * cor0.col1 col1 FROM tab2 AS cor0
----
-1190
-2170
-4130
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2899
SELECT ALL + + CAST( NULL AS DECIMAL ) / col1 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2899
SELECT ALL + + CAST ( NULL AS REAL ) / col1 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - + 8 + col2 AS col1 FROM tab0 cor0
----
-7
25
74
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 51 col0 FROM tab0 AS cor0
----
-51
-51
-51
query I rowsort
SELECT + - 17 + col0 FROM tab2 AS cor0
----
-10
61
62
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2903
SELECT DISTINCT + - CAST( NULL AS SIGNED ) + - ( - col1 * col0 ) AS col2 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-2903
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) + - ( - col1 * col0 ) AS col2 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT col1 * 44 * 80 FROM tab0
----
302720
320320
341440
query I rowsort
SELECT DISTINCT - 29 AS col1 FROM tab2, tab2 cor0
----
-29
query I rowsort
SELECT col1 * + 26 AS col0 FROM tab2
----
1534
442
806
query I rowsort
SELECT + col2 * + 14 FROM tab1 cor0
----
1344
756
798
query I rowsort
SELECT ALL + - 18 * col2 AS col2 FROM tab0 cor0
----
-1476
-18
-594
query I rowsort
SELECT DISTINCT 19 + 83 FROM tab2, tab0 AS cor0, tab2 cor1, tab2 AS cor2
----
102
query I rowsort
SELECT DISTINCT - cor0.col1 AS col0 FROM tab0, tab0 AS cor0 WHERE NULL NOT BETWEEN NULL AND ( NULL )
----
query I rowsort
SELECT + 90 FROM tab2, tab0 AS cor0, tab2 AS cor1, tab0 cor2
----
81 values hashing to 3b4644ef0734ed220952cae7e0648c4b
query I rowsort
SELECT ( 93 + col1 ) * 59 AS col1 FROM tab2
----
6490
7316
8968
onlyif mysql # use DIV operator for integer division
query I rowsort label-2913
SELECT DISTINCT 28 * col0 DIV col0 FROM tab2 AS cor0
----
28
skipif mysql # not compatible
query I rowsort label-2913
SELECT DISTINCT 28 * col0 / col0 FROM tab2 AS cor0
----
28
query I rowsort
SELECT col1 * col1 + col1 * + col1 * + col2 FROM tab0 AS cor0
----
18818
251464
687323
query I rowsort
SELECT DISTINCT ( 79 ) AS col2 FROM tab0 AS cor0
----
79
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 54 * + col1 col1 FROM tab1 AS cor0
----
1404
540
702
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 98 * cor0.col2 * 43 col2 FROM tab0 AS cor0
----
139062
345548
4214
query I rowsort
SELECT 28 * 15 * - col2 FROM tab1
----
-22680
-23940
-40320
onlyif mysql # use DIV operator for integer division
query I rowsort label-2919
SELECT DISTINCT - CAST( ( + col1 ) AS SIGNED ) * col0 DIV - col2 col1 FROM tab0
----
3395
62
98
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2919
SELECT DISTINCT - CAST ( ( + col1 ) AS INTEGER ) * col0 / - col2 col1 FROM tab0
----
3395
62
98
onlyif mysql # use DIV operator for integer division
query I rowsort label-2920
SELECT ALL + ( tab0.col0 ) DIV col0 + 0 + col1 AS col1 FROM tab0
----
87
92
98
skipif mysql # not compatible
query I rowsort label-2920
SELECT ALL + ( tab0.col0 ) / col0 + 0 + col1 AS col1 FROM tab0
----
87
92
98
query I rowsort
SELECT DISTINCT col1 + col0 + col1 * + 40 FROM tab0
----
3550
3820
4012
query I rowsort
SELECT + + cor0.col1 * 90 - + col2 AS col0 FROM tab1 AS cor0
----
1074
2286
843
query I rowsort
SELECT DISTINCT col0 * cor0.col1 + col1 AS col0 FROM tab1 AS cor0
----
104
1053
650
query I rowsort
SELECT ALL + - col0 + + ( 92 ) * - col1 AS col2 FROM tab1 AS cor0
----
-1276
-2395
-984
query I rowsort
SELECT DISTINCT + col2 * col2 * ( + col1 + - ( col1 ) ) FROM tab2 AS cor0
----
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-2926
SELECT ALL - + col2 DIV - ( col2 ) AS col1 FROM tab1 cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-2926
SELECT ALL - + col2 / - ( col2 ) AS col1 FROM tab1 cor0
----
1
1
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 * - 36 col1 FROM tab2 cor0
----
-1368
-936
-972
onlyif mysql # use DIV operator for integer division
query I rowsort label-2928
SELECT - - col0 - - col0 DIV - 56 AS col2 FROM tab1 AS cor0
----
3
63
79
skipif mysql # not compatible
query I rowsort label-2928
SELECT - - col0 - - col0 / - 56 AS col2 FROM tab1 AS cor0
----
3
63
79
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2929
SELECT ALL col2 * + CAST( + col0 AS SIGNED ) FROM tab1 AS cor0
----
162
3648
7680
skipif mysql # not compatible
query I rowsort label-2929
SELECT ALL col2 * + CAST ( + col0 AS INTEGER ) FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT col1 * ( cor0.col1 ) FROM tab2 cor0
----
289
3481
961
query I rowsort
SELECT DISTINCT + - col2 * ( + col0 ) + + col0 * col2 * + col1 FROM tab1 AS cor0
----
32832
4050
92160
query I rowsort
SELECT - col0 * col0 * + tab2.col0 + + 47 * col0 * - col2 AS col1 FROM tab2
----
-569868
-634133
-9226
onlyif mysql # use DIV operator for integer division
query I rowsort label-2933
SELECT - tab2.col2 DIV tab2.col0 + col0 + col1 FROM tab2
----
137
35
96
skipif mysql # not compatible
query I rowsort label-2933
SELECT - tab2.col2 / tab2.col0 + col0 + col1 FROM tab2
----
137
35
96
query I rowsort
SELECT DISTINCT 96 AS col0 FROM tab0, tab1 AS cor0
----
96
query I rowsort
SELECT DISTINCT 99 AS col2 FROM tab1, tab2 AS cor0
----
99
query I rowsort
SELECT ALL col2 + + col0 + - ( - tab2.col2 + - ( + col1 ) ) FROM tab2
----
172
189
92
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + ( col2 ) col2 FROM tab1 AS cor0
----
109
67
80
onlyif mysql # use DIV operator for integer division
query I rowsort label-2938
SELECT col0 DIV - 50 - - col1 DIV - col0 FROM tab2 AS cor0
----
-1
-1
-4
skipif mysql # not compatible
query I rowsort label-2938
SELECT col0 / - 50 - - col1 / - col0 FROM tab2 AS cor0
----
-1
-1
-4
query I rowsort
SELECT ALL + col0 * - 51 * - ( - col0 ) AS col2 FROM tab2 AS cor0
----
-2499
-310284
-318291
query I rowsort
SELECT DISTINCT + col1 * - 57 + col2 + col1 * - col2 FROM tab0 cor0
----
-12567
-5625
-7707
query I rowsort
SELECT + + cor0.col2 + ( - col2 ) AS col1 FROM tab1 cor0
----
0
0
0
query I rowsort
SELECT DISTINCT - col0 * - col2 + + col1 + - cor0.col1 * ( col1 ) AS col0 FROM tab0 AS cor0
----
-6518
-892
-9277
query I rowsort
SELECT col2 * - col0 - + cor0.col2 FROM tab2 AS cor0
----
-2054
-216
-3040
onlyif mysql # use DIV operator for integer division
query I rowsort label-2944
SELECT col2 + - 17 DIV + col0 AS col1 FROM tab2
----
25
26
38
skipif mysql # not compatible
query I rowsort label-2944
SELECT col2 + - 17 / + col0 AS col1 FROM tab2
----
25
26
38
query I rowsort
SELECT + 65 * + col2 AS col1 FROM tab2 AS cor0
----
1690
1755
2470
query I rowsort
SELECT 71 * col0 * 63 FROM tab1 AS cor0
----
13419
286272
357840
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 48 col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 8b09cc2c99c2102036162d063e0e5a4b
query I rowsort
SELECT 12 + + 40 FROM tab1
----
52
52
52
query I rowsort
SELECT + 82 * col1 + - col2 AS col2 FROM tab1
----
2078
763
970
query I rowsort
SELECT ALL + + col0 + - col0 * 13 FROM tab1 AS cor0
----
-36
-768
-960
query I rowsort
SELECT DISTINCT - + col2 * col2 + 47 FROM tab1 AS cor0
----
-2869
-3202
-9169
query I rowsort
SELECT ALL - + ( + col0 ) * - cor0.col1 * ( col0 ) FROM tab1 AS cor0
----
234
40960
83200
query I rowsort
SELECT DISTINCT + - cor0.col1 - cor0.col1 * cor0.col1 AS col1 FROM tab2 AS cor0
----
-306
-3540
-992
onlyif mysql # use DIV operator for integer division
query I rowsort label-2954
SELECT ALL + col2 DIV + cor0.col0 FROM tab2 AS cor0
----
0
0
3
skipif mysql # not compatible
query I rowsort label-2954
SELECT ALL + col2 / + cor0.col0 FROM tab2 AS cor0
----
0
0
3
query I rowsort
SELECT DISTINCT 20 + - cor0.col2 FROM tab2 AS cor0
----
-18
-6
-7
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab0.col0 + 16 * - col0 col0 FROM tab0
----
-1335
-360
-525
query I rowsort
SELECT 49 * tab1.col0 * cor0.col2 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to bfeaee8e2fbe4066b90564e24e49d98b
query I rowsort
SELECT DISTINCT + col1 * - col0 * cor0.col0 AS col0 FROM tab2 AS cor0
----
-106097
-1519
-358956
onlyif mysql # use DIV operator for integer division
query I rowsort label-2959
SELECT DISTINCT + col1 DIV - col1 + + cor0.col1 FROM tab2 cor0
----
16
30
58
skipif mysql # not compatible
query I rowsort label-2959
SELECT DISTINCT + col1 / - col1 + + cor0.col1 FROM tab2 cor0
----
16
30
58
query I rowsort
SELECT DISTINCT cor0.col2 * col1 + col2 AS col1 FROM tab0 AS cor0
----
2871
7544
98
query I rowsort
SELECT ALL - col1 + - col1 AS col2 FROM tab1 cor0
----
-20
-26
-52
query I rowsort
SELECT ( ( col0 ) ) + - col2 AS col2 FROM tab1 AS cor0
----
-16
-51
7
query I rowsort
SELECT ( + col0 ) * cor0.col0 + cor0.col1 FROM tab0 cor0
----
1322
662
8012
query I rowsort
SELECT ALL cor0.col0 * col0 + cor0.col1 * + col2 * col0 AS col1 FROM tab1 AS cor0
----
106240
40576
4221
query I rowsort
SELECT ALL + 21 + 47 AS col2 FROM tab1 AS cor0
----
68
68
68
query I rowsort
SELECT ALL + 24 + + col0 * - col1 AS col0 FROM tab0 cor0
----
-2040
-3371
-8075
query I rowsort
SELECT - col0 * - col1 * col2 AS col2 FROM tab0
----
3395
664118
68112
query I rowsort
SELECT + + ( + cor0.col1 ) * + col0 + 36 + + ( + col2 ) FROM tab0 AS cor0
----
2133
3432
8217
query I rowsort
SELECT + 31 + - tab0.col1 FROM tab0
----
-55
-60
-66
query I rowsort
SELECT - ( 88 ) AS col0 FROM tab0 AS cor0
----
-88
-88
-88
query I rowsort
SELECT + 70 + cor0.col1 * col1 + cor0.col1 AS col0 FROM tab2 AS cor0
----
1062
3610
376
query I rowsort
SELECT 64 * cor0.col2 + ( col1 ) AS col2 FROM tab2 cor0
----
1723
1759
2449
query I rowsort
SELECT - col1 * col1 * ( col0 + - col0 ) AS col2 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT + col1 + 47 * col2 * - col2 FROM tab2 cor0
----
-31713
-34232
-67851
query I rowsort
SELECT - tab2.col2 * - col1 AS col1 FROM tab2
----
1534
646
837
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * - col0 col1 FROM tab2
----
189
2028
3002
query I rowsort
SELECT - col0 * col0 - + 18 * - col0 FROM tab2 cor0
----
-4680
-4819
77
query I rowsort
SELECT ALL + + col1 * ( cor0.col2 ) + + col0 * + 53 AS col1 FROM tab2 AS cor0
----
1208
4833
5668
query I rowsort
SELECT + col2 + + 50 FROM tab2 cor0
----
76
77
88
query I rowsort
SELECT + 50 + + col1 FROM tab1 AS cor0
----
60
63
76
skipif mysql # not compatible
query I rowsort
SELECT 8 * + ( col2 ) + + CAST ( + 69 + col2 AS REAL ) FROM tab2 AS cor0
----
303
312
411
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2982
SELECT + CAST( NULL AS SIGNED ) + 83 / col2 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2982
SELECT + CAST ( NULL AS INTEGER ) + 83 / col2 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT col1 + col1 + - cor0.col0 AS col2 FROM tab2 cor0
----
-45
40
55
query I rowsort
SELECT col2 * 72 * 12 FROM tab1
----
46656
49248
82944
onlyif mysql # use DIV operator for integer division
query I rowsort label-2985
SELECT ALL col1 DIV 51 AS col2 FROM tab0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-2985
SELECT ALL col1 / 51 AS col2 FROM tab0
----
1
1
1
query I rowsort
SELECT DISTINCT col1 * ( 3 ) * - col2 FROM tab0
----
-22386
-291
-8514
query I rowsort
SELECT DISTINCT - 87 AS col0 FROM tab1, tab1 cor0
----
-87
query I rowsort
SELECT cor0.col1 * 49 FROM tab1 AS cor0
----
1274
490
637
query I rowsort
SELECT ALL - col1 + + 56 * ( - col0 ) FROM tab2 AS cor0
----
-423
-4427
-4441
onlyif mysql # use DIV operator for integer division
query I rowsort label-2990
SELECT DISTINCT + - col0 * 66 DIV - 34 FROM tab1 cor0
----
124
155
5
skipif mysql # not compatible
query I rowsort label-2990
SELECT DISTINCT + - col0 * 66 / - 34 FROM tab1 cor0
----
124
155
5
onlyif mysql # use DIV operator for integer division
query I rowsort label-2991
SELECT - col0 DIV + cor0.col1 AS col2 FROM tab2 cor0
----
-1
-4
0
skipif mysql # not compatible
query I rowsort label-2991
SELECT - col0 / + cor0.col1 AS col2 FROM tab2 cor0
----
-1
-4
0
query I rowsort
SELECT - col2 * col0 + - col1 * col2 FROM tab1 AS cor0
----
-1566
-4218
-8928
onlyif mysql # use DIV operator for integer division
query I rowsort label-2993
SELECT ALL + - col2 + 89 DIV - 20 AS col0 FROM tab1 AS cor0
----
-100
-58
-61
skipif mysql # not compatible
query I rowsort label-2993
SELECT ALL + - col2 + 89 / - 20 AS col0 FROM tab1 AS cor0
----
-100
-58
-61
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + - col0 - - 38 * + tab0.col2 col0 FROM tab0
----
1263
3109
4
onlyif mysql # use DIV operator for integer division
query I rowsort label-2995
SELECT DISTINCT + 93 * col1 * - 31 + + col0 DIV + col2 FROM tab0
----
-247938
-262352
-279616
skipif mysql # not compatible
query I rowsort label-2995
SELECT DISTINCT + 93 * col1 * - 31 + + col0 / + col2 FROM tab0
----
-247938
-262352
-279616
onlyif mysql # use DIV operator for integer division
query I rowsort label-2996
SELECT col1 + 18 DIV col2 FROM tab1
----
10
13
26
skipif mysql # not compatible
query I rowsort label-2996
SELECT col1 + 18 / col2 FROM tab1
----
10
13
26
query I rowsort
SELECT ALL + cor0.col1 AS col1 FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd
query I rowsort
SELECT + 24 * + 52 FROM tab1, tab2 AS cor0
----
9 values hashing to d89ed0a81684ecb0273e5cc413f93f34
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2999
SELECT ALL col0 + CAST( NULL AS SIGNED ) + col2 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2999
SELECT ALL col0 + CAST ( NULL AS INTEGER ) + col2 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - col1 * + col0 + + col2 * - col1 * 9 + col1 * + col0 FROM tab2 cor0
----
-13806
-5814
-7533
query I rowsort
SELECT DISTINCT - - cor0.col1 + + 97 + - ( col1 ) * - col2 FROM tab1 AS cor0
----
1358
1527
677
onlyif mysql # use DIV operator for integer division
query I rowsort label-3002
SELECT - col0 + ( 67 ) * cor0.col2 DIV 17 FROM tab1 AS cor0
----
160
209
298
skipif mysql # not compatible
query I rowsort label-3002
SELECT - col0 + ( 67 ) * cor0.col2 / 17 FROM tab1 AS cor0
----
160
209
298
query I rowsort
SELECT col2 + 94 * + ( + col1 ) FROM tab2
----
1636
2941
5572
onlyif mysql # use DIV operator for integer division
query I rowsort label-3004
SELECT - col0 DIV + 52 FROM tab0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-3004
SELECT - col0 / + 52 FROM tab0
----
-1
0
0
query I rowsort
SELECT + - ( 20 ) * - col2 FROM tab1 cor0
----
1080
1140
1920
query I rowsort
SELECT + col2 + - ( - col1 ) * - ( ( col2 ) ) AS col0 FROM tab0
----
-2805
-7380
-96
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3007
SELECT - - CAST( - cor0.col1 AS SIGNED ) * + col2 AS col1 FROM tab2 AS cor0
----
-1534
-646
-837
skipif mysql # not compatible
query I rowsort label-3007
SELECT - - CAST ( - cor0.col1 AS INTEGER ) * + col2 AS col1 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT col1 * cor0.col2 + col1 FROM tab1 cor0
----
1261
1430
580
onlyif mysql # use DIV operator for integer division
query I rowsort label-3009
SELECT DISTINCT - 15 DIV + col0 AS col1 FROM tab0 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-3009
SELECT DISTINCT - 15 / + col0 AS col1 FROM tab0 AS cor0
----
0
query I rowsort
SELECT ALL col1 * - col0 + + 18 FROM tab1 AS cor0
----
-1022
-60
-622
query I rowsort
SELECT + - cor0.col1 - col2 FROM tab0 AS cor0
----
-119
-173
-98
query I rowsort
SELECT ALL - col2 * - col0 - + ( col2 + col2 ) * + 61 FROM tab0 AS cor0
----
-2706
-3234
-87
query I rowsort
SELECT + ( cor0.col1 ) + + col2 FROM tab1 cor0
----
109
67
80
query I rowsort
SELECT DISTINCT - 8 + cor0.col0 FROM tab0 AS cor0
----
16
27
81
query I rowsort
SELECT col1 * cor0.col2 + - col0 * + ( + cor0.col2 ) FROM tab0 AS cor0
----
164
2046
62
query I rowsort
SELECT ALL - col0 + - col2 AS col2 FROM tab2
----
-104
-117
-34
query I rowsort
SELECT ALL col2 * col2 + + ( - col1 ) FROM tab2
----
1427
617
698
onlyif mysql # use DIV operator for integer division
query I rowsort label-3018
SELECT ALL ( col1 ) DIV - ( + col0 ) + tab2.col1 AS col1 FROM tab2
----
17
27
59
skipif mysql # not compatible
query I rowsort label-3018
SELECT ALL ( col1 ) / - ( + col0 ) + tab2.col1 AS col1 FROM tab2
----
17
27
59
query I rowsort
SELECT ALL - cor0.col0 + col1 AS col0 FROM tab2 AS cor0
----
-19
-62
24
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( col2 ) * - 59 * + cor0.col2 col1 FROM tab2 AS cor0
----
-39884
-43011
-85196
onlyif mysql # use DIV operator for integer division
query I rowsort label-3021
SELECT col0 * col0 DIV cor0.col0 FROM tab2 cor0
----
7
78
79
skipif mysql # not compatible
query I rowsort label-3021
SELECT col0 * col0 / cor0.col0 FROM tab2 cor0
----
7
78
79
query I rowsort
SELECT DISTINCT - col1 + - col2 * + col2 AS col0 FROM tab1 cor0
----
-2942
-3259
-9229
query I rowsort
SELECT DISTINCT + col2 * col0 * col2 FROM tab0 cor0
----
26136
35
598436
query I rowsort
SELECT - col1 - col1 AS col0 FROM tab2 cor0
----
-118
-34
-62
query I rowsort
SELECT - cor0.col1 AS col1 FROM tab2, tab0 cor0
----
9 values hashing to 58ed467a9a332e4d7bfaa9abdbbd063f
query I rowsort
SELECT ALL + col0 * col0 - + col2 FROM tab2 AS cor0
----
22
6058
6203
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3027
SELECT col1 * - CAST( - col2 * cor0.col1 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
244068
679042
9409
skipif mysql # not compatible
query I rowsort label-3027
SELECT col1 * - CAST ( - col2 * cor0.col1 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
244068
679042
9409
onlyif mysql # use DIV operator for integer division
query I rowsort label-3028
SELECT ALL - + col1 DIV - col1 FROM tab0 cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-3028
SELECT ALL - + col1 / - col1 FROM tab0 cor0
----
1
1
1
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3029
SELECT + col2 * CAST( - col2 AS SIGNED ) + col1 AS col2 FROM tab2 cor0
----
-1427
-617
-698
skipif mysql # not compatible
query I rowsort label-3029
SELECT + col2 * CAST ( - col2 AS INTEGER ) + col1 AS col2 FROM tab2 cor0
----
-1427
-617
-698
query I rowsort
SELECT col1 * + col0 - cor0.col0 AS col1 FROM tab0 AS cor0
----
2040
3360
8010
query I rowsort
SELECT - - cor0.col2 + col0 * - col1 FROM tab0 AS cor0
----
-2031
-3394
-8017
query I rowsort
SELECT ALL - col0 + + col2 * 56 FROM tab0 AS cor0
----
1824
21
4503
query I rowsort
SELECT DISTINCT - + col2 + col1 + col1 AS col2 FROM tab2 AS cor0
----
-4
35
92
query I rowsort
SELECT ALL + + cor0.col0 * col0 - - cor0.col0 FROM tab2 AS cor0
----
56
6162
6320
query I rowsort
SELECT col0 + 51 AS col0 FROM tab1 AS cor0
----
115
131
54
query I rowsort
SELECT DISTINCT 85 + - col1 FROM tab1
----
59
72
75
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - col1 * - col0 + CAST ( col0 AS REAL ) + col2 AS col2 FROM tab1
----
1216
135
761
query I rowsort
SELECT + ( + col1 ) * col0 AS col2 FROM tab0
----
2064
3395
8099
query I rowsort
SELECT 46 * 87 FROM tab2 cor0
----
4002
4002
4002
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3040
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + col1 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-3040
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + col1 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT ALL + - 6 * col0 FROM tab1 cor0
----
-18
-384
-480
onlyif mysql # use DIV operator for integer division
query I rowsort label-3042
SELECT DISTINCT cor0.col1 + + col0 + + col2 DIV + col1 AS col0 FROM tab2 AS cor0
----
137
38
98
skipif mysql # not compatible
query I rowsort label-3042
SELECT DISTINCT cor0.col1 + + col0 + + col2 / + col1 AS col0 FROM tab2 AS cor0
----
137
38
98
query I rowsort
SELECT ALL + ( - cor0.col0 ) * + col1 FROM tab0 cor0
----
-2064
-3395
-8099
query I rowsort
SELECT ALL - + ( cor0.col2 ) * + cor0.col2 AS col0 FROM tab1 AS cor0
----
-2916
-3249
-9216
query I rowsort
SELECT col2 * + 5 FROM tab1 AS cor0
----
270
285
480
query I rowsort
SELECT ALL - 34 * col1 FROM tab1 cor0
----
-340
-442
-884
query I rowsort
SELECT ( col2 ) * cor0.col2 AS col2 FROM tab2 AS cor0
----
1444
676
729
query I rowsort
SELECT ALL + - 40 * - col1 AS col1 FROM tab2 AS cor0
----
1240
2360
680
query I rowsort
SELECT DISTINCT 6 AS col2 FROM tab2, tab1 AS cor0
----
6
query I rowsort
SELECT ALL col2 + 24 + - col0 * tab1.col0 AS col1 FROM tab1
----
-4015
-6280
69
query I rowsort
SELECT DISTINCT - ( - 61 ) + cor0.col0 * col1 AS col0 FROM tab2 AS cor0
----
1404
278
4663
query I rowsort
SELECT - ( - col1 ) * col0 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT ALL + 30 AS col1 FROM tab0 cor0
----
30
30
30
query I rowsort
SELECT DISTINCT + 62 * ( + col1 ) + 53 FROM tab1 AS cor0
----
1665
673
859
onlyif mysql # use DIV operator for integer division
query I rowsort label-3055
SELECT DISTINCT - ( col0 ) * col1 + col2 * + col2 DIV + col2 + + col0 FROM tab1 AS cor0
----
-21
-519
-864
skipif mysql # not compatible
query I rowsort label-3055
SELECT DISTINCT - ( col0 ) * col1 + col2 * + col2 / + col2 + + col0 FROM tab1 AS cor0
----
-21
-519
-864
query I rowsort
SELECT ALL 81 AS col2 FROM tab0 cor0
----
81
81
81
query I rowsort
SELECT DISTINCT - col2 + ( col1 ) + col1 AS col0 FROM tab2 AS cor0
----
-4
35
92
query I rowsort
SELECT ALL + + 79 * - col1 AS col0 FROM tab2 AS cor0
----
-1343
-2449
-4661
query I rowsort
SELECT ALL - 50 * col1 AS col2 FROM tab1 cor0
----
-1300
-500
-650
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 + + 19 col0 FROM tab1 AS cor0
----
19
19
19
query I rowsort
SELECT ALL ( - col1 ) + + col2 FROM tab0 AS cor0
----
-53
-9
-96
query I rowsort
SELECT DISTINCT ( + 41 ) AS col2 FROM tab0
----
41
query I rowsort
SELECT + col2 * - col2 + + col1 + + col0 FROM tab2 AS cor0
----
-1348
-539
-691
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - ( col1 ) * + col1 col1 FROM tab0 AS cor0
----
-7396
-8281
-9409
query I rowsort
SELECT DISTINCT 15 * tab2.col1 FROM tab2
----
255
465
885
query I rowsort
SELECT DISTINCT ( + col2 ) * + col1 AS col2 FROM tab2
----
1534
646
837
query I rowsort
SELECT DISTINCT cor0.col1 AS col1 FROM tab2, tab2 cor0
----
17
31
59
query I rowsort
SELECT DISTINCT 17 * + 44 FROM tab1
----
748
onlyif mysql # use DIV operator for integer division
query I rowsort label-3070
SELECT cor0.col0 + ( col0 ) + - col1 DIV + col1 FROM tab1 AS cor0
----
127
159
5
skipif mysql # not compatible
query I rowsort label-3070
SELECT cor0.col0 + ( col0 ) + - col1 / + col1 FROM tab1 AS cor0
----
127
159
5
query I rowsort
SELECT + - col1 + col0 * 0 FROM tab2 cor0
----
-17
-31
-59
query I rowsort
SELECT col0 + 53 + cor0.col0 AS col2 FROM tab1 cor0
----
181
213
59
onlyif mysql # use DIV operator for integer division
query I rowsort label-3073
SELECT + - cor0.col0 DIV col0 + - cor0.col2 + cor0.col0 AS col1 FROM tab1 AS cor0
----
-17
-52
6
skipif mysql # not compatible
query I rowsort label-3073
SELECT + - cor0.col0 / col0 + - cor0.col2 + cor0.col0 AS col1 FROM tab1 AS cor0
----
-17
-52
6
query I rowsort
SELECT + - col2 + cor0.col0 + col2 FROM tab1 cor0
----
3
64
80
query I rowsort
SELECT ALL col2 + col0 * - cor0.col1 * + col0 FROM tab0 AS cor0
----
-118824
-49503
-720729
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - 25 ) * tab1.col1 col1 FROM tab1, tab2 cor0, tab1 AS cor1
----
-250
-325
-650
query I rowsort
SELECT + col0 * - 55 AS col2 FROM tab1 cor0
----
-165
-3520
-4400
onlyif mysql # use DIV operator for integer division
query I rowsort label-3078
SELECT DISTINCT - col2 DIV + 85 AS col2 FROM tab2
----
0
skipif mysql # not compatible
query I rowsort label-3078
SELECT DISTINCT - col2 / + 85 AS col2 FROM tab2
----
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col0 col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 09d8a912de1b8ab762e5ffbe028ce99e
query I rowsort
SELECT DISTINCT 36 * + 99 AS col0 FROM tab1, tab0 AS cor0
----
3564
query I rowsort
SELECT - tab0.col2 + 24 FROM tab0
----
-58
-9
23
query I rowsort
SELECT ALL 87 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to fa0cdd86483844cda3bb806e032d5c64
query I rowsort
SELECT ALL 84 FROM tab1, tab0 AS cor0
----
9 values hashing to cadd876c26338fc58b9297e74fc324d8
onlyif mysql # use DIV operator for integer division
query I rowsort label-3084
SELECT - CAST( 37 AS SIGNED ) DIV + col0 col1 FROM tab2 AS cor0
----
-5
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3084
SELECT - CAST ( 37 AS INTEGER ) / + col0 col1 FROM tab2 AS cor0
----
-5
0
0
query I rowsort
SELECT DISTINCT + col1 + - col1 * + col0 + col0 * - 31 AS col2 FROM tab0 AS cor0
----
-10767
-2722
-4383
query I rowsort
SELECT 51 * cor0.col0 + - col2 + col1 AS col2 FROM tab2 cor0
----
361
4008
4011
query I rowsort
SELECT DISTINCT + 5 + col0 * col1 FROM tab2 AS cor0
----
1348
222
4607
query I rowsort
SELECT DISTINCT - col0 * + col2 * col2 + col0 * + col2 FROM tab2 AS cor0
----
-111074
-4914
-50700
query I rowsort
SELECT - + 82 + + col1 - col0 AS col0 FROM tab2 AS cor0
----
-101
-144
-58
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3090
SELECT DISTINCT - + CAST( + col1 AS SIGNED ) * + col0 AS col2 FROM tab2 AS cor0
----
-1343
-217
-4602
skipif mysql # not compatible
query I rowsort label-3090
SELECT DISTINCT - + CAST ( + col1 AS INTEGER ) * + col0 AS col2 FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT - - col2 - 60 FROM tab2 AS cor0
----
-22
-33
-34
query I rowsort
SELECT - 58 * col0 + + col0 FROM tab0 AS cor0
----
-1368
-1995
-5073
query I rowsort
SELECT - - 14 * col2 + col2 FROM tab1 cor0
----
1440
810
855
query I rowsort
SELECT ALL 3 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 3cf1e377a943589897b8d431a834f1ba
onlyif mysql # use DIV operator for integer division
query I rowsort label-3095
SELECT - + col0 - col1 DIV - col0 FROM tab2 AS cor0
----
-3
-78
-79
skipif mysql # not compatible
query I rowsort label-3095
SELECT - + col0 - col1 / - col0 FROM tab2 AS cor0
----
-3
-78
-79
query I rowsort
SELECT col1 - + col2 * - cor0.col0 FROM tab2 AS cor0
----
2087
220
3019
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + 19 - tab2.col2 * + col0 col1 FROM tab2
----
-163
-1931
-2904
query I rowsort
SELECT col1 - - cor0.col1 AS col2 FROM tab1 AS cor0
----
20
26
52
query I rowsort
SELECT + col1 + + col0 + 50 AS col0 FROM tab0 AS cor0
----
160
182
230
query I rowsort
SELECT DISTINCT - col1 * - col2 * - ( col0 ) FROM tab2 AS cor0
----
-119652
-51034
-5859
onlyif mysql # use DIV operator for integer division
query I rowsort label-3101
SELECT DISTINCT - 34 DIV col0 col1 FROM tab0 AS cor0
----
-1
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3101
SELECT DISTINCT - 34 / col0 col1 FROM tab0 AS cor0
----
-1
0
query I rowsort
SELECT col1 * - col2 * + cor0.col0 AS col2 FROM tab0 AS cor0
----
-3395
-664118
-68112
query I rowsort
SELECT DISTINCT 67 + col2 AS col1 FROM tab1 AS cor0
----
121
124
163
query I rowsort
SELECT + cor0.col1 + col2 + + 97 AS col2 FROM tab0 AS cor0
----
195
216
270
query I rowsort
SELECT ALL - + col2 * + cor0.col1 * + col0 AS col2 FROM tab1 AS cor0
----
-36480
-4212
-99840
query I rowsort
SELECT col0 * - col0 + col1 AS col2 FROM tab1 AS cor0
----
-4086
-6387
17
onlyif mysql # use DIV operator for integer division
query I rowsort label-3107
SELECT ALL + 72 * col0 DIV ( - col2 ) FROM tab0 AS cor0
----
-2520
-52
-78
skipif mysql # not compatible
query I rowsort label-3107
SELECT ALL + 72 * col0 / ( - col2 ) FROM tab0 AS cor0
----
-2520
-52
-78
query I rowsort
SELECT + col0 * col0 - col2 FROM tab0 cor0
----
1224
543
7839
query I rowsort
SELECT ALL + ( col1 ) + col2 FROM tab2 cor0
----
55
58
85
onlyif mysql # use DIV operator for integer division
query I rowsort label-3110
SELECT ALL col2 * + col2 DIV - cor0.col2 FROM tab1 AS cor0
----
-54
-57
-96
skipif mysql # not compatible
query I rowsort label-3110
SELECT ALL col2 * + col2 / - cor0.col2 FROM tab1 AS cor0
----
-54
-57
-96
onlyif mysql # use DIV operator for integer division
query I rowsort label-3111
SELECT ( col0 ) DIV col2 + ( - col0 ) FROM tab1 AS cor0
----
-3
-63
-80
skipif mysql # not compatible
query I rowsort label-3111
SELECT ( col0 ) / col2 + ( - col0 ) FROM tab1 AS cor0
----
-3
-63
-80
query I rowsort
SELECT DISTINCT col1 + + col0 * col2 FROM tab1 AS cor0
----
188
3658
7693
onlyif mysql # use DIV operator for integer division
query I rowsort label-3113
SELECT DISTINCT - + col2 DIV col2 + + col2 * col1 DIV - col1 + 90 AS col2 FROM tab1 AS cor0
----
-7
32
35
skipif mysql # not compatible
query I rowsort label-3113
SELECT DISTINCT - + col2 / col2 + + col2 * col1 / - col1 + 90 AS col2 FROM tab1 AS cor0
----
-7
32
35
onlyif mysql # use DIV operator for integer division
query I rowsort label-3114
SELECT + + cor0.col1 + ( + ( - col2 ) ) DIV col1 AS col2 FROM tab2 AS cor0
----
15
31
59
skipif mysql # not compatible
query I rowsort label-3114
SELECT + + cor0.col1 + ( + ( - col2 ) ) / col1 AS col2 FROM tab2 AS cor0
----
15
31
59
query I rowsort
SELECT cor0.col1 * - 75 + + 85 * col2 AS col0 FROM tab1 cor0
----
2640
4095
7185
query I rowsort
SELECT - 86 AS col2 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 9d2e1e8eda15b3b83dd7136dfc4f19af
onlyif mysql # use DIV operator for integer division
query I rowsort label-3117
SELECT - col1 DIV col0 AS col1 FROM tab2 AS cor0
----
-4
0
0
skipif mysql # not compatible
query I rowsort label-3117
SELECT - col1 / col0 AS col1 FROM tab2 AS cor0
----
-4
0
0
query I rowsort
SELECT ALL + col1 * - col1 + col0 FROM tab2 AS cor0
----
-210
-3403
-954
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3119
SELECT ALL - CAST( NULL AS SIGNED ) + + col1 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-3119
SELECT ALL - CAST ( NULL AS INTEGER ) + + col1 col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 43 col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 199105619049271147956de52e7f5ed4
query I rowsort
SELECT ALL - col0 * + cor0.col2 AS col2 FROM tab1 AS cor0
----
-162
-3648
-7680
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( - tab1.col0 * - col0 ) col2 FROM tab1
----
-4096
-6400
-9
query I rowsort
SELECT 18 + + col0 FROM tab2
----
25
96
97
query I rowsort
SELECT ( 72 ) * + cor0.col2 FROM tab0 cor0
----
2376
5904
72
query I rowsort
SELECT DISTINCT 98 * 74 AS col2 FROM tab1
----
7252
onlyif mysql # use DIV operator for integer division
query I rowsort label-3126
SELECT DISTINCT + 89 DIV + col2 FROM tab1
----
0
1
skipif mysql # not compatible
query I rowsort label-3126
SELECT DISTINCT + 89 / + col2 FROM tab1
----
0
1
query I rowsort
SELECT - ( + 11 ) AS col2 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 7120875811e4d19a19b69cd34b6bc202
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( - col1 * tab2.col0 + col0 ) col0 FROM tab2
----
1264
210
4524
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + - col0 col2 FROM tab2
----
-41
-52
20
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3130
SELECT ALL col1 + col1 * - CAST( NULL AS DECIMAL ) * - tab2.col1 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3130
SELECT ALL col1 + col1 * - CAST ( NULL AS REAL ) * - tab2.col1 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + col0 + col1 * ( - col2 ) + - col1 FROM tab1
----
-1181
-1427
-516
query I rowsort
SELECT DISTINCT + cor0.col2 * cor0.col2 - - cor0.col1 * + col0 AS col2 FROM tab2 AS cor0
----
2787
5278
946
query I rowsort
SELECT DISTINCT + cor0.col0 * - cor0.col2 + col0 * 93 AS col2 FROM tab1 AS cor0
----
-240
117
2304
query I rowsort
SELECT ALL col1 * cor0.col2 + - col0 FROM tab2 AS cor0
----
1456
567
830
onlyif mysql # use DIV operator for integer division
query I rowsort label-3135
SELECT DISTINCT - - col1 + col0 DIV ( - cor0.col2 ) FROM tab1 AS cor0
----
13
26
9
skipif mysql # not compatible
query I rowsort label-3135
SELECT DISTINCT - - col1 + col0 / ( - cor0.col2 ) FROM tab1 AS cor0
----
13
26
9
query I rowsort
SELECT + col1 * - 96 + 18 * col1 AS col0 FROM tab0
----
-6708
-7098
-7566
query I rowsort
SELECT col2 * + ( + col1 ) + col0 FROM tab0
----
132
2862
7551
query I rowsort
SELECT ALL + col0 + - 78 FROM tab1
----
-14
-75
2
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3139
SELECT ALL + col0 + CAST( NULL AS SIGNED ) * tab1.col0 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3139
SELECT ALL + col0 + CAST ( NULL AS INTEGER ) * tab1.col0 FROM tab1
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3140
SELECT + CAST( NULL AS SIGNED ) * + cor0.col2 col2 FROM tab0, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3140
SELECT + CAST ( NULL AS INTEGER ) * + cor0.col2 col2 FROM tab0, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3141
SELECT ALL col0 + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3141
SELECT ALL col0 + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3142
SELECT col2 * CAST( + col0 AS SIGNED ) + cor0.col0 AS col0 FROM tab0 AS cor0
----
70
7387
816
skipif mysql # not compatible
query I rowsort label-3142
SELECT col2 * CAST ( + col0 AS INTEGER ) + cor0.col0 AS col0 FROM tab0 AS cor0
----
70
7387
816
query I rowsort
SELECT DISTINCT + + col1 + 93 * 59 FROM tab2 cor0
----
5504
5518
5546
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * col0 col1 FROM tab2
----
-49
-6084
-6241
query IIIIIIIIIIII rowsort
SELECT * FROM tab0, tab2 cor0, tab0 AS cor1, tab2 cor2
----
972 values hashing to 89714dd446b7a97f8787d5744bdbf323
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 79 col0 FROM tab1 AS cor0
----
79
79
79
query I rowsort
SELECT DISTINCT - cor0.col0 * - col2 * - col0 + - col0 FROM tab0 AS cor0
----
-1260
-19032
-649611
query I rowsort
SELECT DISTINCT + col2 + 73 FROM tab2 AS cor0
----
100
111
99
query I rowsort
SELECT - + 25 * + col1 AS col0 FROM tab1 AS cor0
----
-250
-325
-650
query I rowsort
SELECT ALL 10 AS col2 FROM tab2 cor0
----
10
10
10
query I rowsort
SELECT DISTINCT + 77 + + col2 AS col2 FROM tab0 AS cor0
----
110
159
78
query I rowsort
SELECT ALL - + ( - col2 ) * col1 * + ( col0 ) + cor0.col0 AS col1 FROM tab2 cor0
----
119730
51113
5866
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3153
SELECT ALL + - ( - 88 ) + + col0 * CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3153
SELECT ALL + - ( - 88 ) + + col0 * CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + + col1 + + col1 * + col0 AS col1 FROM tab2 cor0
----
1360
248
4661
query I rowsort
SELECT DISTINCT - ( - col0 ) + - cor0.col2 FROM tab2 AS cor0
----
-20
41
52
query I rowsort
SELECT DISTINCT col2 * + col1 + col2 AS col0 FROM tab0 AS cor0
----
2871
7544
98
query I rowsort
SELECT ALL ( + 14 ) * - col1 AS col0 FROM tab1 AS cor0
----
-140
-182
-364
query I rowsort
SELECT ALL col2 + - 27 AS col1 FROM tab1
----
27
30
69
query I rowsort
SELECT col2 - ( - col2 ) FROM tab1
----
108
114
192
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3160
SELECT ALL + + ( + col0 ) + col2 * - CAST( NULL AS DECIMAL ) - + col2 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3160
SELECT ALL + + ( + col0 ) + col2 * - CAST ( NULL AS REAL ) - + col2 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - cor0.col2 + col2 AS col1 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort
SELECT ALL + CAST ( ( + cor0.col2 ) AS REAL ) + ( - col2 * + col0 ) AS col0 FROM tab2 cor0
----
-162
-2002
-2964
query I rowsort
SELECT - ( - 51 ) + + col1 FROM tab2 AS cor0
----
110
68
82
query I rowsort
SELECT 64 * col1 FROM tab0 AS cor0
----
5504
5824
6208
query I rowsort
SELECT ALL cor0.col1 AS col1 FROM tab0, tab1 cor0
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775
query I rowsort
SELECT - col0 * + ( - 90 ) FROM tab1 AS cor0
----
270
5760
7200
query I rowsort
SELECT ALL - - cor0.col2 * - col2 AS col1 FROM tab1 cor0
----
-2916
-3249
-9216
query I rowsort
SELECT DISTINCT + - col1 + - ( - 84 ) FROM tab1 AS cor0
----
58
71
74
query I rowsort
SELECT - col1 * + col1 + + col1 AS col2 FROM tab1 AS cor0
----
-156
-650
-90
query I rowsort
SELECT ALL col0 + 26 AS col0 FROM tab1 cor0
----
106
29
90
query I rowsort
SELECT col1 + 89 * col2 AS col1 FROM tab0 AS cor0
----
186
3023
7389
query I rowsort
SELECT - col0 + ( 72 + + col2 ) * - col0 FROM tab1 AS cor0
----
-13520
-381
-8320
query I rowsort
SELECT ALL ( col1 ) + + col1 * - col2 AS col2 FROM tab0 AS cor0
----
-2752
-7371
0
query I rowsort
SELECT ALL - - 48 * - col2 AS col0 FROM tab1 AS cor0
----
-2592
-2736
-4608
onlyif mysql # use DIV operator for integer division
query I rowsort label-3175
SELECT + + cor0.col1 DIV - 46 AS col0 FROM tab1 cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-3175
SELECT + + cor0.col1 / - 46 AS col0 FROM tab1 cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 5 * cor0.col0 * + col0 col0 FROM tab2 AS cor0
----
245
30420
31205
query I rowsort
SELECT DISTINCT + 33 AS col1 FROM tab0 cor0
----
33
query I rowsort
SELECT + ( 77 ) AS col2 FROM tab2 AS cor0
----
77
77
77
query I rowsort
SELECT - col1 * + 7 FROM tab2 AS cor0
----
-119
-217
-413
query I rowsort
SELECT col2 * col0 * col1 AS col0 FROM tab0 AS cor0
----
3395
664118
68112
query I rowsort
SELECT ALL - - ( + col1 ) AS col0 FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT DISTINCT - col2 * - 63 AS col0 FROM tab2 AS cor0
----
1638
1701
2394
onlyif mysql # use DIV operator for integer division
query I rowsort label-3183
SELECT ( 57 ) + cor0.col2 DIV ( col2 ) AS col1 FROM tab1 cor0
----
58
58
58
skipif mysql # not compatible
query I rowsort label-3183
SELECT ( 57 ) + cor0.col2 / ( col2 ) AS col1 FROM tab1 cor0
----
58
58
58
onlyif mysql # use DIV operator for integer division
query I rowsort label-3184
SELECT DISTINCT - + cor0.col0 + col0 DIV cor0.col2 FROM tab0 AS cor0
----
-24
-88
0
skipif mysql # not compatible
query I rowsort label-3184
SELECT DISTINCT - + cor0.col0 + col0 / cor0.col2 FROM tab0 AS cor0
----
-24
-88
0
query I rowsort
SELECT - col2 * 32 AS col2 FROM tab0 AS cor0
----
-1056
-2624
-32
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * col1 * - col0 + col1 col1 FROM tab0 AS cor0
----
-118728
-49450
-720720
query I rowsort
SELECT ALL + col1 * - 32 FROM tab1
----
-320
-416
-832
query I rowsort
SELECT - 80 + - col1 AS col2 FROM tab0
----
-166
-171
-177
query I rowsort
SELECT + ( col0 ) * + 16 - 70 * col2 FROM tab2 cor0
----
-1396
-1778
-572
query I rowsort
SELECT DISTINCT + 31 AS col2 FROM tab0 AS cor0
----
31
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( col2 ) + col2 col1 FROM tab1 AS cor0
----
108
114
192
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3192
SELECT DISTINCT - cor0.col2 * + col2 + CAST( NULL AS DECIMAL ) * + col0 col0 FROM tab2 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3192
SELECT DISTINCT - cor0.col2 * + col2 + CAST ( NULL AS REAL ) * + col0 col0 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT tab2.col1 * + col1 * col2 FROM tab2
----
10982
25947
90506
query I rowsort
SELECT + 12 - col0 AS col2 FROM tab2 AS cor0
----
-66
-67
5
query I rowsort
SELECT - - ( cor0.col2 ) + ( col2 + col1 * - col2 ) AS col0 FROM tab2 AS cor0
----
-1482
-570
-783
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3196
SELECT CAST( NULL AS SIGNED ) + + cor0.col2 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-3196
SELECT CAST ( NULL AS INTEGER ) + + cor0.col2 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT ALL - ( col2 ) * col2 + - col0 - col1 FROM tab1
----
-2945
-3323
-9309
query I rowsort
SELECT + 9 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 03b93b53107e36cf7d524e48c509b17b
query I rowsort
SELECT DISTINCT + + 26 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
26
query I rowsort
SELECT - - col0 * 16 AS col0 FROM tab1 AS cor0
----
1024
1280
48
query I rowsort
SELECT 31 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to d1ebd1cea4a9773069af34fbf8ea3540
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 12 * col0 col2 FROM tab2
----
84
936
948
query I rowsort
SELECT DISTINCT - ( - 20 * + col2 + col1 ) FROM tab0
----
-77
1549
574
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 96 col2 FROM tab1 AS cor0
----
-96
-96
-96
query I rowsort
SELECT - 65 FROM tab2, tab0, tab0 AS cor0, tab1 AS cor1
----
81 values hashing to 62fe7b8eb6ce8c547418f08ea8ada1fc
query I rowsort
SELECT - + 79 + - col0 * col1 AS col1 FROM tab2 AS cor0
----
-1422
-296
-4681
query I rowsort
SELECT ALL + col0 * ( col1 ) * + col1 AS col2 FROM tab1
----
13520
2028
6400
query I rowsort
SELECT DISTINCT col1 * 20 AS col2 FROM tab0 AS cor0
----
1720
1820
1940
query I rowsort
SELECT cor0.col2 + + col0 AS col0 FROM tab2 cor0
----
104
117
34
query I rowsort
SELECT - - col0 * - ( col0 + + col1 ) FROM tab0 cor0
----
-16020
-2640
-4620
query I rowsort
SELECT ALL cor0.col1 * + 27 * - col1 FROM tab2 AS cor0
----
-25947
-7803
-93987
query I rowsort
SELECT 65 AS col1 FROM tab0, tab2 AS cor0, tab2 AS cor1, tab1 AS cor2
----
81 values hashing to 1654646feeae82f39d2f564fe4ea26c2
onlyif mysql # use DIV operator for integer division
query I rowsort label-3213
SELECT ALL - ( - 66 ) DIV col2 AS col2 FROM tab1 AS cor0
----
0
1
1
skipif mysql # not compatible
query I rowsort label-3213
SELECT ALL - ( - 66 ) / col2 AS col2 FROM tab1 AS cor0
----
0
1
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-3214
SELECT ALL - - col0 DIV 56 + col0 + ( + col1 + + col0 ) AS col2 FROM tab1 AS cor0
----
139
174
32
skipif mysql # not compatible
query I rowsort label-3214
SELECT ALL - - col0 / 56 + col0 + ( + col1 + + col0 ) AS col2 FROM tab1 AS cor0
----
139
174
32
query I rowsort
SELECT - - 18 * - col0 AS col0 FROM tab1 cor0
----
-1152
-1440
-54
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3216
SELECT ALL + - CAST( NULL AS SIGNED ) + - 57 * col0 * + cor0.col0 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3216
SELECT ALL + - CAST ( NULL AS INTEGER ) + - 57 * col0 * + cor0.col0 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - + 21 - + col0 FROM tab0 AS cor0
----
-110
-45
-56
query I rowsort
SELECT ALL - col0 + col1 * - col2 FROM tab0 AS cor0
----
-132
-2862
-7551
query I rowsort
SELECT ALL - + col2 + 5 FROM tab1 AS cor0
----
-49
-52
-91
query I rowsort
SELECT cor1.col1 * 23 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 8701769c12e6fec5392c4947f19fefb3
query I rowsort
SELECT + + col1 * col0 + col2 AS col0 FROM tab1 AS cor0
----
1136
132
697
query I rowsort
SELECT DISTINCT cor0.col2 * col0 AS col2 FROM tab0 cor0
----
35
7298
792
query I rowsort
SELECT 93 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to e64105dfaa9fbd201adbb1f3f6968bde
onlyif mysql # use DIV operator for integer division
query I rowsort label-3224
SELECT - ( - col2 ) DIV + col2 + col2 FROM tab1 AS cor0
----
55
58
97
skipif mysql # not compatible
query I rowsort label-3224
SELECT - ( - col2 ) / + col2 + col2 FROM tab1 AS cor0
----
55
58
97
query I rowsort
SELECT DISTINCT - - col1 + col2 * col2 FROM tab0 AS cor0
----
1175
6815
98
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT col2 * col2 + - CAST ( col2 AS REAL ) col1 FROM tab1 AS cor0
----
2862
3192
9120
onlyif mysql # use DIV operator for integer division
query I rowsort label-3227
SELECT + 50 DIV - col0 FROM tab2 AS cor0
----
-7
0
0
skipif mysql # not compatible
query I rowsort label-3227
SELECT + 50 / - col0 FROM tab2 AS cor0
----
-7
0
0
query I rowsort
SELECT ALL - col1 * 69 FROM tab0 cor0
----
-5934
-6279
-6693
query I rowsort
SELECT DISTINCT - col1 + ( cor0.col1 + col0 ) FROM tab0 AS cor0
----
24
35
89
onlyif mysql # use DIV operator for integer division
query I rowsort label-3230
SELECT ALL - - col0 DIV cor0.col0 - ( - col0 ) * col1 FROM tab0 AS cor0
----
2065
3396
8100
skipif mysql # not compatible
query I rowsort label-3230
SELECT ALL - - col0 / cor0.col0 - ( - col0 ) * col1 FROM tab0 AS cor0
----
2065
3396
8100
onlyif mysql # use DIV operator for integer division
query I rowsort label-3231
SELECT ALL - + col0 DIV + ( - ( + col1 ) ) + cor0.col0 * - cor0.col1 + - col0 FROM tab1 AS cor0
----
-1114
-698
-81
skipif mysql # not compatible
query I rowsort label-3231
SELECT ALL - + col0 / + ( - ( + col1 ) ) + cor0.col0 * - cor0.col1 + - col0 FROM tab1 AS cor0
----
-1114
-698
-81
query I rowsort
SELECT col2 * 35 AS col1 FROM tab0 AS cor0
----
1155
2870
35
query I rowsort
SELECT ALL - col2 * col1 - 30 FROM tab2 AS cor0
----
-1564
-676
-867
query I rowsort
SELECT ALL col2 * + col2 * 51 AS col1 FROM tab0
----
342924
51
55539
query I rowsort
SELECT ALL - 82 * - col0 FROM tab0
----
1968
2870
7298
query I rowsort
SELECT ALL col1 * ( 92 ) AS col0 FROM tab0 cor0
----
7912
8372
8924
query I rowsort
SELECT - 57 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 0b74bbd7631afe9b2eeb9f18b9dc6505
query I rowsort
SELECT + col0 * ( + cor0.col2 ) + + col0 FROM tab1 AS cor0
----
165
3712
7760
query I rowsort
SELECT ALL - + cor0.col0 * - col0 + + col0 * col1 FROM tab2 AS cor0
----
10686
266
7584
query I rowsort
SELECT ALL col2 * ( - 62 ) AS col1 FROM tab0 AS cor0
----
-2046
-5084
-62
query I rowsort
SELECT DISTINCT + 19 AS col1 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
19
query I rowsort
SELECT DISTINCT - col2 + + col1 * col0 FROM tab1
----
24
583
944
query I rowsort
SELECT + + cor0.col0 + 58 FROM tab2 AS cor0
----
136
137
65
query I rowsort
SELECT + 33 + + 77 FROM tab1, tab1 AS cor0
----
9 values hashing to ebfbd032a0a7b9ce9f54a2516c43134d
query I rowsort
SELECT + col0 * + ( tab2.col2 ) * + col2 + 43 FROM tab2
----
114119
5146
52771
query I rowsort
SELECT col0 + - ( - col1 ) * col0 * - ( + col0 ) FROM tab0
----
-118790
-49512
-720722
onlyif mysql # use DIV operator for integer division
query I rowsort label-3247
SELECT + col0 + col1 DIV - col0 AS col1 FROM tab2
----
3
78
79
skipif mysql # not compatible
query I rowsort label-3247
SELECT + col0 + col1 / - col0 AS col1 FROM tab2
----
3
78
79
query I rowsort
SELECT + col1 * col2 * + 35 + + col2 FROM tab1
----
20007
43776
49194
query I rowsort
SELECT - tab2.col1 * + tab2.col2 + ( tab2.col2 ) AS col2 FROM tab2
----
-1508
-608
-810
query I rowsort
SELECT DISTINCT + - col2 * 90 FROM tab2 AS cor0
----
-2340
-2430
-3420
query I rowsort
SELECT ALL - + cor0.col0 * - 56 + 83 + col2 * - cor0.col2 FROM tab2 AS cor0
----
-254
3063
3775
onlyif mysql # use DIV operator for integer division
query I rowsort label-3252
SELECT - 49 DIV + col1 + col0 + - 89 col0 FROM tab2
----
-11
-12
-83
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3252
SELECT - 49 / + col1 + col0 + - 89 col0 FROM tab2
----
-11
-12
-83
query I rowsort
SELECT tab1.col0 * col1 + col0 * - col2 FROM tab1
----
-3008
-6640
-84
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3254
SELECT DISTINCT + col2 + - col0 * + col0 * CAST( NULL AS SIGNED ) FROM tab0
----
NULL
skipif mysql # not compatible
query I rowsort label-3254
SELECT DISTINCT + col2 + - col0 * + col0 * CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
query I rowsort
SELECT ALL + ( ( - col0 ) ) * + col2 + - 16 * col2 FROM tab0
----
-1320
-51
-8610
query I rowsort
SELECT ALL 3 * + col2 + + 50 AS col0 FROM tab0 AS cor0
----
149
296
53
query I rowsort
SELECT DISTINCT col0 - - cor0.col1 * col2 AS col0 FROM tab1 AS cor0
----
1328
1407
634
query I rowsort
SELECT - col0 + + col0 AS col0 FROM tab2 cor0
----
0
0
0
query I rowsort
SELECT DISTINCT tab0.col1 * col0 - - col2 FROM tab0
----
2097
3396
8181
query I rowsort
SELECT ALL + col0 + 61 FROM tab2
----
139
140
68
query I rowsort
SELECT + tab2.col0 AS col0 FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83
query I rowsort
SELECT ALL col0 + 28 * - col0 AS col2 FROM tab1
----
-1728
-2160
-81
query I rowsort
SELECT + ( tab2.col1 * - col2 ) AS col2 FROM tab2
----
-1534
-646
-837
query I rowsort
SELECT ALL 77 * - 85 * col0 + col1 AS col2 FROM tab1
----
-19609
-418870
-523587
query I rowsort
SELECT DISTINCT ( col0 * col0 ) + ( 88 + col0 ) FROM tab0
----
1348
688
8098
query I rowsort
SELECT ALL - 79 + - tab1.col2 * col0 AS col2 FROM tab1
----
-241
-3727
-7759
query I rowsort
SELECT col2 * col2 + + ( col1 + col1 ) * cor0.col1 * + 80 AS col2 FROM tab1 AS cor0
----
111076
19249
36256
query I rowsort
SELECT ALL - col1 * cor0.col2 + - col0 FROM tab2 cor0
----
-1612
-725
-844
query I rowsort
SELECT DISTINCT + - col0 + col1 * + 27 AS col1 FROM tab2 AS cor0
----
1515
380
830
query I rowsort
SELECT 38 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to afaddad0a4e3a1683a1c8cbe6eb522a7
query I rowsort
SELECT ALL - 17 - col2 * + col0 AS col2 FROM tab2 cor0
----
-2045
-206
-3019
query I rowsort
SELECT DISTINCT + 21 + - col0 AS col2 FROM tab1 AS cor0
----
-43
-59
18
query I rowsort
SELECT ALL - - cor0.col2 + + col2 * + col0 FROM tab1 AS cor0
----
216
3705
7776
query I rowsort
SELECT DISTINCT + col2 * col2 * 92 FROM tab2 AS cor0
----
132848
62192
67068
query I rowsort
SELECT ALL + 24 + col1 * ( col1 ) AS col1 FROM tab0 AS cor0
----
7420
8305
9433
query I rowsort
SELECT + - col2 * col0 * col2 + 66 FROM tab2 AS cor0
----
-114010
-5037
-52662
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * col0 + cor0.col0 col0 FROM tab1 AS cor0
----
-4032
-6
-6320
query I rowsort
SELECT DISTINCT - col2 * - cor0.col0 + + 68 FROM tab2 AS cor0
----
2096
257
3070
query I rowsort
SELECT DISTINCT - col0 * + col2 + 63 AS col2 FROM tab1 AS cor0
----
-3585
-7617
-99
query I rowsort
SELECT + + col0 + col1 + + col2 AS col0 FROM tab0 AS cor0
----
133
143
262
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( 40 + col0 ) * + col1 col1 FROM tab2
----
1457
2023
6962
query I rowsort
SELECT - col0 * col0 * - col2 AS col1 FROM tab0
----
1225
19008
649522
onlyif mysql # use DIV operator for integer division
query I rowsort label-3283
SELECT ALL + 39 DIV - col2 FROM tab1
----
0
0
0
skipif mysql # not compatible
query I rowsort label-3283
SELECT ALL + 39 / - col2 FROM tab1
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 84 col1 FROM tab2, tab1 AS cor0
----
9 values hashing to cadd876c26338fc58b9297e74fc324d8
query I rowsort
SELECT - col1 * 53 * - col2 AS col2 FROM tab0
----
150414
395486
5141
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 - 9 col0 FROM tab1 AS cor0
----
45
48
87
query I rowsort
SELECT + col2 * - col2 * - cor0.col1 - - 11 AS col0 FROM tab0 AS cor0
----
108
611895
93665
query I rowsort
SELECT DISTINCT ( - 3 ) * - col1 FROM tab1
----
30
39
78
query I rowsort
SELECT tab2.col1 + 28 + col2 AS col2 FROM tab2
----
113
83
86
query I rowsort
SELECT ALL 70 AS col0 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to c76157a7a7ec18de56823b2058b49f32
query I rowsort
SELECT DISTINCT - ( + col0 ) * - col0 + + 65 AS col0 FROM tab0 AS cor0
----
1290
641
7986
query I rowsort
SELECT - col1 * + col0 + - 82 AS col1 FROM tab1 AS cor0
----
-1122
-160
-722
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3293
SELECT ALL + - col2 + + CAST( NULL AS SIGNED ) / col2 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3293
SELECT ALL + - col2 + + CAST ( NULL AS INTEGER ) / col2 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-3294
SELECT - - col0 DIV - 2 AS col0 FROM tab2 AS cor0
----
-3
-39
-39
skipif mysql # not compatible
query I rowsort label-3294
SELECT - - col0 / - 2 AS col0 FROM tab2 AS cor0
----
-3
-39
-39
query I rowsort
SELECT col1 * col1 + + 52 FROM tab2 AS cor0
----
1013
341
3533
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + + col1 col2 FROM tab0 cor0
----
172
182
194
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * ( + 59 ) col1 FROM tab1
----
-3186
-3363
-5664
query I rowsort
SELECT 50 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 314aace40e704c20a6be06204a329f80
query I rowsort
SELECT ALL ( + 67 ) * col0 FROM tab1 AS cor0
----
201
4288
5360
query I rowsort
SELECT - + 56 AS col0 FROM tab0 AS cor0
----
-56
-56
-56
query I rowsort
SELECT ALL - ( col2 ) + col1 * col2 AS col2 FROM tab2 AS cor0
----
1508
608
810
query I rowsort
SELECT + ( cor0.col0 ) * col1 FROM tab2 AS cor0
----
1343
217
4602
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 54 * col2 col1 FROM tab1 AS cor0
----
2916
3078
5184
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + + 87 + - col1 * col0 col0 FROM tab1 AS cor0
----
-489
-873
12
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3305
SELECT CAST( - cor0.col2 AS SIGNED ) * - col2 FROM tab2 AS cor0
----
1444
676
729
skipif mysql # not compatible
query I rowsort label-3305
SELECT CAST ( - cor0.col2 AS INTEGER ) * - col2 FROM tab2 AS cor0
----
1444
676
729
query I rowsort
SELECT ALL + cor0.col0 - 51 FROM tab0 AS cor0
----
-16
-27
38
query I rowsort
SELECT ALL ( - col2 ) + - col2 * + 16 FROM tab2 AS cor0
----
-442
-459
-646
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col1 + + cor0.col1 col0 FROM tab1 AS cor0
----
20
26
52
query I rowsort
SELECT DISTINCT - 76 * col0 AS col0 FROM tab1 AS cor0
----
-228
-4864
-6080
query I rowsort
SELECT + cor0.col2 * cor0.col1 + + col0 AS col0 FROM tab0 AS cor0
----
132
2862
7551
query I rowsort
SELECT ( + col1 ) + 17 FROM tab2 AS cor0
----
34
48
76
onlyif mysql # use DIV operator for integer division
query I rowsort label-3312
SELECT + + ( - col1 ) DIV col0 - col1 FROM tab0 AS cor0
----
-89
-92
-99
skipif mysql # not compatible
query I rowsort label-3312
SELECT + + ( - col1 ) / col0 - col1 FROM tab0 AS cor0
----
-89
-92
-99
query I rowsort
SELECT - cor0.col1 + cor0.col0 + col2 * col0 AS col2 FROM tab1 AS cor0
----
139
3702
7747
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3314
SELECT DISTINCT col2 + + ( col1 + col0 ) * CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-3314
SELECT DISTINCT col2 + + ( col1 + col0 ) * CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-3315
SELECT - cor0.col2 * + 63 + + 4 DIV cor0.col1 AS col0 FROM tab2 AS cor0
----
-1638
-1701
-2394
skipif mysql # not compatible
query I rowsort label-3315
SELECT - cor0.col2 * + 63 + + 4 / cor0.col1 AS col0 FROM tab2 AS cor0
----
-1638
-1701
-2394
query I rowsort
SELECT - col2 + col2 * + 61 AS col1 FROM tab1 AS cor0
----
3240
3420
5760
onlyif mysql # use DIV operator for integer division
query I rowsort label-3317
SELECT - col1 * + 26 + + cor0.col0 DIV col2 FROM tab1 cor0
----
-259
-338
-676
skipif mysql # not compatible
query I rowsort label-3317
SELECT - col1 * + 26 + + cor0.col0 / col2 FROM tab1 cor0
----
-259
-338
-676
query I rowsort
SELECT 45 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 14cec871edc37b5056cda01c8331fdca
query I rowsort
SELECT 21 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 312c166f4dc412730c43555105b1f44b
query I rowsort
SELECT DISTINCT - - cor0.col2 * - col1 - col0 AS col0 FROM tab0 AS cor0
----
-132
-2862
-7551
query I rowsort
SELECT ALL - col0 * + col2 * 40 AS col2 FROM tab1
----
-145920
-307200
-6480
query I rowsort
SELECT ( + cor0.col0 ) * - ( + 50 ) FROM tab0 AS cor0
----
-1200
-1750
-4450
query I rowsort
SELECT DISTINCT - + col2 * - col2 FROM tab1 cor0
----
2916
3249
9216
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col0 * col1 + col1 col0 FROM tab2 AS cor0
----
-1326
-186
-4543
query I rowsort
SELECT ALL col0 * - col1 + ( + col0 ) + col1 * - col2 FROM tab0 AS cor0
----
-15472
-3457
-4878
query I rowsort
SELECT ALL + 86 + col1 * col1 AS col2 FROM tab0 AS cor0
----
7482
8367
9495
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3327
SELECT CAST( NULL AS DECIMAL ) * tab0.col0 AS col0 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3327
SELECT CAST ( NULL AS REAL ) * tab0.col0 AS col0 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + 78 AS col2 FROM tab0
----
78
78
78
query I rowsort
SELECT DISTINCT + + 56 FROM tab1 cor0
----
56
query I rowsort
SELECT ALL - - col2 + col2 * - ( - col0 ) * + col0 + 33 AS col0 FROM tab2 AS cor0
----
1383
158243
237229
query I rowsort
SELECT DISTINCT - col2 * + cor0.col0 FROM tab2 cor0
----
-189
-2028
-3002
onlyif mysql # use DIV operator for integer division
query I rowsort label-3332
SELECT col1 DIV + col0 AS col2 FROM tab0 cor0
----
1
2
3
skipif mysql # not compatible
query I rowsort label-3332
SELECT col1 / + col0 AS col2 FROM tab0 cor0
----
1
2
3
query I rowsort
SELECT DISTINCT - + col2 + - col1 * + col0 FROM tab2 AS cor0
----
-1381
-244
-4628
query I rowsort
SELECT cor0.col0 + col1 * col2 AS col1 FROM tab0 cor0
----
132
2862
7551
query I rowsort
SELECT col0 * col1 + + col1 * col2 FROM tab1
----
1210
1482
2288
query I rowsort
SELECT col1 + + ( - col0 ) AS col1 FROM tab2
----
-19
-62
24
query I rowsort
SELECT col0 * ( + col0 + col0 ) FROM tab0 AS cor0
----
1152
15842
2450
query I rowsort
SELECT - col1 + - col2 * + cor0.col2 AS col0 FROM tab2 AS cor0
----
-1461
-735
-760
onlyif mysql # use DIV operator for integer division
query I rowsort label-3339
SELECT ALL - col1 DIV 2 col0 FROM tab1 AS cor0
----
-13
-5
-6
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3339
SELECT ALL - col1 / 2 col0 FROM tab1 AS cor0
----
-13
-5
-6
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3340
SELECT ALL - + 10 + ( col0 ) * CAST( NULL AS DECIMAL ) AS col0 FROM tab1 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3340
SELECT ALL - + 10 + ( col0 ) * CAST ( NULL AS REAL ) AS col0 FROM tab1 cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3341
SELECT ALL - CAST( + col0 AS SIGNED ) * col1 FROM tab1 AS cor0
----
-1040
-640
-78
skipif mysql # not compatible
query I rowsort label-3341
SELECT ALL - CAST ( + col0 AS INTEGER ) * col1 FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT + col1 * col0 * col0 AS col0 FROM tab2
----
106097
1519
358956
query I rowsort
SELECT 83 + - col0 AS col0 FROM tab2 cor0
----
4
5
76
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor1.col1 col0 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 6e0b7d583bc2c53842166d3e6ba2d6d2
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3345
SELECT DISTINCT + + CAST( NULL AS SIGNED ) + col2 + - col1 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-3345
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) + col2 + - col1 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT + ( 30 ) + + col2 FROM tab1 AS cor0
----
126
84
87
query I rowsort
SELECT - cor0.col0 * - ( + cor0.col0 ) + 30 FROM tab1, tab0 AS cor0
----
9 values hashing to 9cae0f1bcd394bde258509915c12beac
query I rowsort
SELECT ALL - col1 * - col2 * + col0 + 5 + col1 * col1 FROM tab0 AS cor0
----
12809
672404
75513
onlyif mysql # use DIV operator for integer division
query I rowsort label-3349
SELECT DISTINCT col0 DIV cor0.col0 + col2 FROM tab2 AS cor0
----
27
28
39
skipif mysql # not compatible
query I rowsort label-3349
SELECT DISTINCT col0 / cor0.col0 + col2 FROM tab2 AS cor0
----
27
28
39
query I rowsort
SELECT DISTINCT cor0.col2 * col0 + cor0.col1 FROM tab0 AS cor0
----
132
7389
878
query I rowsort
SELECT ALL ( 87 * - col0 ) FROM tab1
----
-261
-5568
-6960
query I rowsort
SELECT cor0.col2 AS col0 FROM tab2, tab1 AS cor0, tab0, tab2 AS cor1
----
81 values hashing to 9d355f1f2edc347a359dad00d2d3f886
query I rowsort
SELECT + col2 + 79 + + col1 FROM tab1 AS cor0
----
146
159
188
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3354
SELECT - + CAST( NULL AS DECIMAL ) * - 37 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3354
SELECT - + CAST ( NULL AS REAL ) * - 37 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + 72 + col0 + - col1 FROM tab0 AS cor0
----
10
10
70
query I rowsort
SELECT DISTINCT - - 55 - col2 FROM tab2 AS cor0
----
17
28
29
query I rowsort
SELECT DISTINCT + 47 + col1 AS col1 FROM tab1 cor0
----
57
60
73
query I rowsort
SELECT DISTINCT + 43 * - 40 AS col1 FROM tab0
----
-1720
query I rowsort
SELECT cor0.col2 + + col2 * - col1 AS col2 FROM tab1 AS cor0
----
-1152
-1350
-513
query I rowsort
SELECT - col1 * + col0 * col0 AS col2 FROM tab1 cor0
----
-234
-40960
-83200
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * - 39 col2 FROM tab2 AS cor0
----
-1209
-2301
-663
query I rowsort
SELECT - col1 * - col1 * cor0.col1 FROM tab1 AS cor0
----
1000
17576
2197
query I rowsort
SELECT ALL - + col0 + + cor0.col1 * - col1 AS col1 FROM tab2 AS cor0
----
-3559
-368
-968
query I rowsort
SELECT ALL 57 * - 71 + cor0.col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 28088329f2ed70cd5e6abbb8a8948a40
query I rowsort
SELECT + col1 - - 65 FROM tab2 AS cor0
----
124
82
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-3366
SELECT - col1 * - col1 DIV + col1 FROM tab0 cor0
----
86
91
97
skipif mysql # not compatible
query I rowsort label-3366
SELECT - col1 * - col1 / + col1 FROM tab0 cor0
----
86
91
97
query I rowsort
SELECT col2 * ( 31 + col2 ) AS col1 FROM tab1 AS cor0
----
12192
4590
5016
query I rowsort
SELECT - col2 + 15 + + col1 FROM tab2
----
-6
19
48
query I rowsort
SELECT - col2 * 17 + - col1 + + cor0.col0 AS col0 FROM tab1 AS cor0
----
-1565
-915
-941
query I rowsort
SELECT 6 * col0 FROM tab2 AS cor0
----
42
468
474
onlyif mysql # use DIV operator for integer division
query I rowsort label-3371
SELECT + tab1.col0 DIV 98 FROM tab1
----
0
0
0
skipif mysql # not compatible
query I rowsort label-3371
SELECT + tab1.col0 / 98 FROM tab1
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3372
SELECT ALL tab1.col0 * CAST( NULL AS SIGNED ) + col1 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3372
SELECT ALL tab1.col0 * CAST ( NULL AS INTEGER ) + col1 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT 67 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to b56f8a4f1fcebc9802481256df61e97c
query I rowsort
SELECT ALL + ( + 73 ) FROM tab1, tab1 AS cor0
----
9 values hashing to e5fbf5d129b181bacd6113bbc8732496
onlyif mysql # use DIV operator for integer division
query I rowsort label-3375
SELECT DISTINCT + col2 DIV + 32 + - tab0.col1 FROM tab0
----
-85
-89
-97
skipif mysql # not compatible
query I rowsort label-3375
SELECT DISTINCT + col2 / + 32 + - tab0.col1 FROM tab0
----
-85
-89
-97
query I rowsort
SELECT DISTINCT col2 * cor0.col1 FROM tab1 AS cor0 WHERE NULL IN ( + col2 + col1 * + col0 - + col2 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-3377
SELECT ALL - tab0.col0 DIV col1 FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-3377
SELECT ALL - tab0.col0 / col1 FROM tab0
----
0
0
0
query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 <> NULL
----
query I rowsort
SELECT + col1 FROM tab0 WHERE ( NULL ) IN ( col1 - - col1 )
----
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col1 BETWEEN col2 AND ( NULL )
----
query I rowsort
SELECT col1 - - col0 * tab0.col0 FROM tab0
----
1322
662
8012
query III rowsort
SELECT * FROM tab2 WHERE NOT col2 * col2 NOT IN ( - col2 )
----
query I rowsort
SELECT ALL col2 - + col1 * tab2.col2 FROM tab2
----
-1508
-608
-810
query I rowsort
SELECT ALL col1 * col2 * + col2 + + col2 AS col0 FROM tab1
----
119904
32547
75870
query I rowsort
SELECT DISTINCT cor0.col0 AS col2 FROM tab0, tab1, tab2 AS cor0
----
7
78
79
query I rowsort
SELECT ALL col0 + col0 * tab2.col2 FROM tab2
----
196
2106
3081
onlyif mysql # use DIV operator for integer division
query I rowsort label-3387
SELECT ALL + col2 DIV + col1 + col2 FROM tab2
----
26
27
40
skipif mysql # not compatible
query I rowsort label-3387
SELECT ALL + col2 / + col1 + col2 FROM tab2
----
26
27
40
query I rowsort
SELECT col2 + col1 AS col1 FROM tab0 WHERE col2 * + col0 + - col2 * + col2 NOT IN ( + col0 - col1 )
----
119
173
98
query I rowsort
SELECT - + col0 * 47 AS col1 FROM tab1 AS cor0
----
-141
-3008
-3760
query I rowsort
SELECT ALL 68 AS col0 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 10aa25f1c6b97582c34521ac6452e0b4
query I rowsort
SELECT ALL col1 * + col0 + ( + col1 ) FROM tab1
----
104
1053
650
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 51 col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 08d3853e39924d3c636260a6dd856837
query I rowsort
SELECT ALL col2 - ( + col2 ) FROM tab1 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-3394
SELECT DISTINCT - - col2 * 4 + - col1 DIV - col0 FROM tab2 cor0
----
104
112
152
skipif mysql # not compatible
query I rowsort label-3394
SELECT DISTINCT - - col2 * 4 + - col1 / - col0 FROM tab2 cor0
----
104
112
152
query I rowsort
SELECT DISTINCT - cor0.col0 * 67 + col2 FROM tab1 AS cor0
----
-147
-4231
-5264
query I rowsort
SELECT ALL col0 + - cor0.col0 - + col1 AS col2 FROM tab1 AS cor0
----
-10
-13
-26
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + ( 64 ) col2 FROM tab0 AS cor0
----
146
65
97
query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col1 - - col2 NOT BETWEEN col0 AND ( + col2 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-3399
SELECT col1 DIV + col0 + + col1 + - col1 FROM tab2
----
0
0
4
skipif mysql # not compatible
query I rowsort label-3399
SELECT col1 / + col0 + + col1 + - col1 FROM tab2
----
0
0
4
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * col2 * + col2 + - col1 + col1 * - col0 col0 FROM tab0
----
-3395
603694
91504
query I rowsort
SELECT ALL col1 + + col2 - - col2 * col1 AS col2 FROM tab0
----
195
2957
7635
query I rowsort
SELECT DISTINCT - col1 / - col0 + + col0 AS col0 FROM tab2 WHERE NOT ( NULL ) NOT IN ( + col0 - col2 * - col0 )
----
query I rowsort
SELECT col1 * + col2 + col1 * tab2.col2 FROM tab2
----
1292
1674
3068
query I rowsort
SELECT DISTINCT - col2 - - col0 * tab0.col2 AS col0 FROM tab0
----
34
7216
759
onlyif mysql # use DIV operator for integer division
query I rowsort label-3405
SELECT ALL col0 DIV col2 AS col0 FROM tab1
----
0
0
1
skipif mysql # not compatible
query I rowsort label-3405
SELECT ALL col0 / col2 AS col0 FROM tab1
----
0
0
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-3406
SELECT col1 + col1 DIV col1 FROM tab1
----
11
14
27
skipif mysql # not compatible
query I rowsort label-3406
SELECT col1 + col1 / col1 FROM tab1
----
11
14
27
query I rowsort
SELECT ALL col1 FROM tab0 WHERE ( - col0 - col0 ) = ( NULL )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-3408
SELECT DISTINCT - col2 DIV + col1 FROM tab1
----
-2
-5
-7
skipif mysql # not compatible
query I rowsort label-3408
SELECT DISTINCT - col2 / + col1 FROM tab1
----
-2
-5
-7
query I rowsort
SELECT 57 * col2 FROM tab1 AS cor0
----
3078
3249
5472
query I rowsort
SELECT 75 * + 26 AS col2 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 0c8074e25880233affe4e5a1891a476b
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + col1 * tab2.col1 col1 FROM tab2
----
306
3540
992
onlyif mysql # use DIV operator for integer division
query I rowsort label-3412
SELECT - tab0.col2 DIV col1 + + col2 FROM tab0
----
1
33
82
skipif mysql # not compatible
query I rowsort label-3412
SELECT - tab0.col2 / col1 + + col2 FROM tab0
----
1
33
82
onlyif mysql # use DIV operator for integer division
query I rowsort label-3413
SELECT ALL + tab1.col0 - + col2 DIV + col1 FROM tab1
----
1
59
73
skipif mysql # not compatible
query I rowsort label-3413
SELECT ALL + tab1.col0 - + col2 / + col1 FROM tab1
----
1
59
73
onlyif mysql # use DIV operator for integer division
query I rowsort label-3414
SELECT col0 * - tab2.col2 - col1 DIV + tab2.col1 FROM tab2
----
-190
-2029
-3003
skipif mysql # not compatible
query I rowsort label-3414
SELECT col0 * - tab2.col2 - col1 / + tab2.col1 FROM tab2
----
-190
-2029
-3003
query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( + col1 ) BETWEEN NULL AND col2
----
7
31
27
78
59
26
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col2 + cor0.col2 col0 FROM tab2 cor0
----
52
54
76
query I rowsort
SELECT - col1 * + col2 + - 42 AS col2 FROM tab1 AS cor0
----
-1290
-1446
-612
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3418
SELECT DISTINCT - col1 * CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-3418
SELECT DISTINCT - col1 * CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-3419
SELECT ALL - col2 DIV CAST( col0 * col2 AS SIGNED ) col1 FROM tab0 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3419
SELECT ALL - col2 / CAST ( col0 * col2 AS INTEGER ) col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT - col1 * 73 + cor0.col2 FROM tab2 AS cor0
----
-1203
-2236
-4281
query I rowsort
SELECT DISTINCT + - col1 + - ( 7 ) FROM tab0 AS cor0
----
-104
-93
-98
query I rowsort
SELECT cor0.col1 * + ( col1 ) + col1 FROM tab2 AS cor0
----
306
3540
992
query I rowsort
SELECT - cor0.col0 * 93 + - col0 AS col2 FROM tab1 AS cor0
----
-282
-6016
-7520
query I rowsort
SELECT DISTINCT + col1 * + 28 + col2 * + col2 * - col0 FROM tab1 cor0
----
-207656
-736916
-8020
query I rowsort
SELECT cor0.col2 * + ( + col1 ) FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT ALL - col1 * 62 AS col1 FROM tab1 AS cor0
----
-1612
-620
-806
query I rowsort
SELECT 69 - + tab0.col2 AS col2 FROM tab0
----
-13
36
68
query I rowsort
SELECT DISTINCT + col2 * tab1.col1 + col1 * - col1 FROM tab1
----
1079
470
728
query I rowsort
SELECT ALL 43 * tab2.col1 + + ( + col1 ) FROM tab2
----
1364
2596
748
query I rowsort
SELECT - - col2 + col0 * - col0 FROM tab0 cor0
----
-1224
-543
-7839
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab2.col0 + - col1 - col0 * - 9 * + col0 col2 FROM tab2
----
417
54775
56231
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - cor0.col0 col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 09d8a912de1b8ab762e5ffbe028ce99e
onlyif mysql # use DIV operator for integer division
query I rowsort label-3433
SELECT ALL tab1.col1 DIV + 19 + - col0 FROM tab1
----
-2
-64
-80
skipif mysql # not compatible
query I rowsort label-3433
SELECT ALL tab1.col1 / + 19 + - col0 FROM tab1
----
-2
-64
-80
onlyif mysql # use DIV operator for integer division
query I rowsort label-3434
SELECT + col0 DIV - 42 + 28 AS col1 FROM tab0 AS cor0
----
26
28
28
skipif mysql # not compatible
query I rowsort label-3434
SELECT + col0 / - 42 + 28 AS col1 FROM tab0 AS cor0
----
26
28
28
query I rowsort
SELECT ALL - col1 * + 2 FROM tab2 AS cor0
----
-118
-34
-62
query I rowsort
SELECT - - cor0.col0 + col1 * col0 AS col0 FROM tab0 cor0
----
2088
3430
8188
query I rowsort
SELECT DISTINCT - ( + col0 ) * col1 AS col2 FROM tab2
----
-1343
-217
-4602
query I rowsort
SELECT DISTINCT + 71 AS col1 FROM tab1, tab2 AS cor0
----
71
query I rowsort
SELECT - ( + 27 ) * - col0 AS col0 FROM tab2
----
189
2106
2133
query I rowsort
SELECT cor0.col2 * + col2 + + col0 AS col2 FROM tab0 AS cor0
----
1113
36
6813
query I rowsort
SELECT 18 - - cor0.col1 FROM tab0, tab0 AS cor0 CROSS JOIN tab2, tab0 AS cor1
----
81 values hashing to f402eff7fb545cdb57d9e7c878f3ce51
query I rowsort
SELECT ALL col2 * - tab0.col2 + 3 + ( col1 ) FROM tab0
----
-1000
-6630
99
query I rowsort
SELECT DISTINCT + 10 * - tab2.col2 + + ( 33 + tab2.col2 ) AS col1 FROM tab2
----
-201
-210
-309
query I rowsort
SELECT + col0 + + col2 - ( col0 ) AS col2 FROM tab1
----
54
57
96
query I rowsort
SELECT ALL + - 59 FROM tab2, tab2 cor0
----
9 values hashing to 1e6537c922fa953e0fd2f59430803703
onlyif mysql # use DIV operator for integer division
query I rowsort label-3446
SELECT - col1 * col0 DIV col1 AS col1 FROM tab2
----
-7
-78
-79
skipif mysql # not compatible
query I rowsort label-3446
SELECT - col1 * col0 / col1 AS col1 FROM tab2
----
-7
-78
-79
query I rowsort
SELECT ALL - tab1.col0 + - tab1.col2 * col2 FROM tab1
----
-2919
-3313
-9296
query I rowsort
SELECT ALL - + ( col1 ) * - col0 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT DISTINCT + - 7 + cor0.col2 FROM tab2 AS cor0
----
19
20
31
onlyif mysql # use DIV operator for integer division
query I rowsort label-3450
SELECT + 47 DIV col1 AS col2 FROM tab2
----
0
1
2
skipif mysql # not compatible
query I rowsort label-3450
SELECT + 47 / col1 AS col2 FROM tab2
----
0
1
2
onlyif mysql # use DIV operator for integer division
query I rowsort label-3451
SELECT DISTINCT + tab0.col1 DIV - tab0.col0 + - col0 AS col1 FROM tab0
----
-27
-37
-90
skipif mysql # not compatible
query I rowsort label-3451
SELECT DISTINCT + tab0.col1 / - tab0.col0 + - col0 AS col1 FROM tab0
----
-27
-37
-90
query I rowsort
SELECT ALL + - col1 * + cor0.col0 + - col0 - + col0 FROM tab1 AS cor0
----
-1200
-768
-84
query I rowsort
SELECT DISTINCT - cor0.col1 * col0 * col0 + + col2 AS col2 FROM tab1 AS cor0
----
-180
-40903
-83104
query I rowsort
SELECT ALL - col1 * col0 + col1 * + col2 FROM tab2 cor0
----
-3068
-697
620
query I rowsort
SELECT DISTINCT + 98 * + col0 + + col1 FROM tab2 AS cor0
----
717
7703
7759
query I rowsort
SELECT ALL - 43 * - 46 FROM tab1
----
1978
1978
1978
query I rowsort
SELECT ALL + - col0 + col0 * - col1 AS col1 FROM tab1 AS cor0
----
-1120
-704
-81
query I rowsort
SELECT DISTINCT - col2 * + 56 + col1 AS col0 FROM tab0 AS cor0
----
-1762
-4501
41
query I rowsort
SELECT - col2 * + col2 + + cor0.col2 FROM tab1 AS cor0
----
-2862
-3192
-9120
query I rowsort
SELECT DISTINCT + - 67 * + col1 AS col2 FROM tab2 AS cor0
----
-1139
-2077
-3953
query I rowsort
SELECT 51 * - col0 AS col2 FROM tab2 cor0
----
-357
-3978
-4029
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * col0 + + cor0.col2 col0 FROM tab1 AS cor0
----
-4039
-6304
45
query I rowsort
SELECT ALL - col2 + - cor0.col0 * col1 FROM tab2 AS cor0
----
-1381
-244
-4628
query I rowsort
SELECT - 8 + col2 AS col0 FROM tab1
----
46
49
88
query I rowsort
SELECT DISTINCT - ( col1 * col1 + - col2 ) AS col1 FROM tab2
----
-251
-3455
-934
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3466
SELECT ALL CAST( NULL AS SIGNED ) * - ( - col1 ) AS col2 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3466
SELECT ALL CAST ( NULL AS INTEGER ) * - ( - col1 ) AS col2 FROM tab2
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3467
SELECT CAST( col0 AS SIGNED ) + col2 FROM tab1
----
121
176
57
skipif mysql # not compatible
query I rowsort label-3467
SELECT CAST ( col0 AS INTEGER ) + col2 FROM tab1
----
121
176
57
query I rowsort
SELECT + - col1 + - 87 * col1 AS col0 FROM tab2 AS cor0
----
-1496
-2728
-5192
query I rowsort
SELECT + + 7 * + ( - col2 ) FROM tab0 AS cor0
----
-231
-574
-7
query I rowsort
SELECT 14 + col1 FROM tab0 AS cor0
----
100
105
111
query I rowsort
SELECT + 21 - 96 * col1 FROM tab1
----
-1227
-2475
-939
query I rowsort
SELECT DISTINCT + col2 * - col2 + - col2 AS col1 FROM tab1
----
-2970
-3306
-9312
query I rowsort
SELECT col2 + + ( - col1 ) * col0 FROM tab2 AS cor0
----
-1305
-190
-4576
query I rowsort
SELECT 1 * - col0 + col1 FROM tab0 AS cor0
----
2
62
62
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3475
SELECT DISTINCT col1 / col2 + CAST( NULL AS SIGNED ) * col2 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-3475
SELECT DISTINCT col1 / col2 + CAST ( NULL AS INTEGER ) * col2 FROM tab0 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * 6 col1 FROM tab2 AS cor0
----
42
468
474
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3477
SELECT - col1 / CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3477
SELECT - col1 / CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - col1 + cor0.col1 * 54 * col2 AS col1 FROM tab2 AS cor0
----
34867
45167
82777
onlyif mysql # use DIV operator for integer division
query I rowsort label-3479
SELECT col0 - col0 DIV cor0.col1 AS col1 FROM tab1 AS cor0
----
3
58
74
skipif mysql # not compatible
query I rowsort label-3479
SELECT col0 - col0 / cor0.col1 AS col1 FROM tab1 AS cor0
----
3
58
74
query I rowsort
SELECT - col1 * 98 AS col0 FROM tab1 AS cor0
----
-1274
-2548
-980
query I rowsort
SELECT - - cor0.col1 - col2 * col1 * + col0 AS col0 FROM tab2 AS cor0
----
-119593
-51017
-5828
query I rowsort
SELECT - col0 * + ( col2 ) AS col1 FROM tab2 cor0
----
-189
-2028
-3002
query I rowsort
SELECT ( + col2 ) * col2 + col1 * 32 AS col0 FROM tab1 AS cor0
----
3569
3748
9632
query I rowsort
SELECT col0 * 63 AS col0 FROM tab1
----
189
4032
5040
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab2.col2 * - tab2.col0 col0 FROM tab2
----
-189
-2028
-3002
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 46 + - ( - tab1.col2 ) col0 FROM tab1, tab1 cor0
----
9 values hashing to 825e0df50eeeb0093875a2270c626a06
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3487
SELECT DISTINCT - CAST( - 20 AS SIGNED ) + col2 * col0 AS col0 FROM tab1 AS cor0
----
182
3668
7700
skipif mysql # not compatible
query I rowsort label-3487
SELECT DISTINCT - CAST ( - 20 AS INTEGER ) + col2 * col0 AS col0 FROM tab1 AS cor0
----
182
3668
7700
query I rowsort
SELECT DISTINCT + cor0.col2 * 23 AS col0 FROM tab0 AS cor0
----
1886
23
759
query I rowsort
SELECT ( - ( + col2 ) ) * col2 * - col1 FROM tab1 AS cor0
----
119808
32490
75816
query I rowsort
SELECT 1 + ( col0 ) AS col0 FROM tab2 AS cor0
----
79
8
80
query I rowsort
SELECT cor2.col2 FROM tab1 AS cor0 CROSS JOIN tab1, tab1 AS cor1, tab2 AS cor2, tab0 AS cor3
----
243 values hashing to 3dcd863493ac16ce594c62d4ac8b0412
query I rowsort
SELECT ALL tab1.col2 * - 67 FROM tab1
----
-3618
-3819
-6432
query I rowsort
SELECT col1 * + col1 * - col2 FROM tab2 cor0
----
-10982
-25947
-90506
query I rowsort
SELECT + 71 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to c1aace5d5fe27721cc925552513c85c0
onlyif mysql # use DIV operator for integer division
query I rowsort label-3495
SELECT ALL - - col2 DIV - col1 FROM tab1 AS cor0
----
-2
-5
-7
skipif mysql # not compatible
query I rowsort label-3495
SELECT ALL - - col2 / - col1 FROM tab1 AS cor0
----
-2
-5
-7
query I rowsort
SELECT col1 * + col1 + + col1 AS col1 FROM tab1 AS cor0
----
110
182
702
onlyif mysql # use DIV operator for integer division
query I rowsort label-3497
SELECT ALL - - col1 DIV cor0.col2 FROM tab0 AS cor0
----
1
2
97
skipif mysql # not compatible
query I rowsort label-3497
SELECT ALL - - col1 / cor0.col2 FROM tab0 AS cor0
----
1
2
97
query I rowsort
SELECT DISTINCT + col2 * cor0.col1 AS col2 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT DISTINCT 21 * + col1 FROM tab1 AS cor0
----
210
273
546
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3500
SELECT CAST( col1 AS SIGNED ) * tab1.col1 * col1 FROM tab1
----
1000
17576
2197
skipif mysql # not compatible
query I rowsort label-3500
SELECT CAST ( col1 AS INTEGER ) * tab1.col1 * col1 FROM tab1
----
1000
17576
2197
query I rowsort
SELECT ALL + 1 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 001554c2952f1a80506b182ee04686f5
query I rowsort
SELECT ALL col0 * - 99 + - col0 * tab2.col1 FROM tab2
----
-12324
-910
-9164
query I rowsort
SELECT ALL - col2 + 17 FROM tab0 AS cor0
----
-16
-65
16
query I rowsort
SELECT DISTINCT + + tab1.col2 AS col0 FROM tab1, tab2, tab0 AS cor0
----
54
57
96
query I rowsort
SELECT DISTINCT 63 * col0 AS col2 FROM tab2
----
441
4914
4977
query I rowsort
SELECT DISTINCT + col1 * ( + 98 ) FROM tab0 cor0
----
8428
8918
9506
query I rowsort
SELECT DISTINCT + col2 * 14 + col2 FROM tab2 AS cor0
----
390
405
570
query I rowsort
SELECT ALL - - col0 * - col0 + + 52 FROM tab0 AS cor0
----
-1173
-524
-7869
query I rowsort
SELECT col1 + ( - cor0.col1 ) AS col2 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT ALL + col1 + 65 AS col2 FROM tab1 AS cor0
----
75
78
91
onlyif mysql # use DIV operator for integer division
query I rowsort label-3511
SELECT DISTINCT + col0 * ( 18 + + col0 ) DIV + 75 FROM tab2 AS cor0
----
102
2
99
skipif mysql # not compatible
query I rowsort label-3511
SELECT DISTINCT + col0 * ( 18 + + col0 ) / + 75 FROM tab2 AS cor0
----
102
2
99
query I rowsort
SELECT ALL 54 + - 2 AS col0 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 76100d10f51995d20efdeb657e444d3c
onlyif mysql # use DIV operator for integer division
query I rowsort label-3513
SELECT ALL 55 DIV col0 FROM tab1
----
0
0
18
skipif mysql # not compatible
query I rowsort label-3513
SELECT ALL 55 / col0 FROM tab1
----
0
0
18
query I rowsort
SELECT - ( + tab1.col2 ) AS col2 FROM tab1, tab0, tab0 AS cor0
----
27 values hashing to 44fdcd7cd603352d4d127811d164cc1e
query I rowsort
SELECT - 2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to ec11209ab257030053484fc13a1f6d17
onlyif mysql # use DIV operator for integer division
query I rowsort label-3516
SELECT + 85 DIV - 7 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to e698dd57d3aac30af14ce35da434bb45
skipif mysql # not compatible
query I rowsort label-3516
SELECT + 85 / - 7 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to e698dd57d3aac30af14ce35da434bb45
query I rowsort
SELECT DISTINCT + col2 - + 48 FROM tab2
----
-10
-21
-22
query I rowsort
SELECT DISTINCT + - col0 + - col1 * - 44 AS col1 FROM tab1 AS cor0
----
1141
376
492
query I rowsort
SELECT - col2 + col2 * ( col2 ) FROM tab1 AS cor0
----
2862
3192
9120
query I rowsort
SELECT ALL + 8 + tab2.col0 * + ( - 73 ) AS col0 FROM tab2
----
-503
-5686
-5759
query I rowsort
SELECT ( col0 ) - - 80 AS col1 FROM tab0 AS cor0
----
104
115
169
query I rowsort
SELECT DISTINCT - col1 * col1 + + col2 FROM tab2
----
-251
-3455
-934
query I rowsort
SELECT ALL + 48 AS col0 FROM tab1, tab2 cor0, tab1 AS cor1
----
27 values hashing to 0ef571a8722ab7270aa7272c1174b88e
query I rowsort
SELECT - ( + col0 ) * + col2 - col0 * + col0 FROM tab2 AS cor0
----
-238
-8112
-9243
query I rowsort
SELECT DISTINCT + col1 + - col0 + - 66 FROM tab2 AS cor0
----
-128
-42
-85
onlyif mysql # use DIV operator for integer division
query I rowsort label-3526
SELECT ALL - + col0 DIV - cor0.col0 FROM tab0 cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-3526
SELECT ALL - + col0 / - cor0.col0 FROM tab0 cor0
----
1
1
1
query I rowsort
SELECT + col0 * + col2 - - col2 AS col2 FROM tab2 AS cor0
----
2054
216
3040
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3528
SELECT ALL col0 * - 16 * - 28 + col1 + + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3528
SELECT ALL col0 * - 16 * - 28 + col1 + + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-3529
SELECT DISTINCT + col2 - + col1 DIV - cor0.col0 FROM tab0 cor0
----
3
36
83
skipif mysql # not compatible
query I rowsort label-3529
SELECT DISTINCT + col2 - + col1 / - cor0.col0 FROM tab0 cor0
----
3
36
83
onlyif mysql # use DIV operator for integer division
query I rowsort label-3530
SELECT ALL - cor0.col2 + + 22 DIV 13 AS col1 FROM tab1 AS cor0
----
-53
-56
-95
skipif mysql # not compatible
query I rowsort label-3530
SELECT ALL - cor0.col2 + + 22 / 13 AS col1 FROM tab1 AS cor0
----
-53
-56
-95
query I rowsort
SELECT ( col1 ) + + ( col2 * + col1 ) FROM tab1
----
1261
1430
580
onlyif mysql # use DIV operator for integer division
query I rowsort label-3532
SELECT - col2 DIV col2 + col2 FROM tab0
----
0
32
81
skipif mysql # not compatible
query I rowsort label-3532
SELECT - col2 / col2 + col2 FROM tab0
----
0
32
81
query I rowsort
SELECT ALL col0 * + col0 + col1 * + 22 * tab2.col2 FROM tab2
----
18463
20453
39832
query I rowsort
SELECT - - cor0.col2 + cor0.col0 FROM tab0 AS cor0
----
171
36
57
query I rowsort
SELECT ALL tab0.col2 * tab0.col1 FROM tab0, tab2, tab2 AS cor0
----
27 values hashing to 7623ebe74018211e6a4da91fc8c37d6d
query I rowsort
SELECT col2 + col0 * col2 - - ( - col2 ) * 29 AS col0 FROM tab0
----
-132
5002
7
query I rowsort
SELECT DISTINCT - ( + 19 ) AS col0 FROM tab0 AS cor0
----
-19
query I rowsort
SELECT - col1 + 73 AS col1 FROM tab2 AS cor0
----
14
42
56
query I rowsort
SELECT DISTINCT + 96 - - col1 FROM tab1 cor0
----
106
109
122
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * - cor0.col1 * col2 col0 FROM tab2 AS cor0
----
10982
25947
90506
query I rowsort
SELECT - 35 * 21 * + col1 AS col2 FROM tab2 AS cor0
----
-12495
-22785
-43365
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3542
SELECT + CAST( - 45 AS SIGNED ) FROM tab1 AS cor0
----
-45
-45
-45
skipif mysql # not compatible
query I rowsort label-3542
SELECT + CAST ( - 45 AS INTEGER ) FROM tab1 AS cor0
----
-45
-45
-45
query I rowsort
SELECT ALL - + 81 FROM tab1 cor0
----
-81
-81
-81
query I rowsort
SELECT - 94 * - col1 * col2 AS col0 FROM tab1 AS cor0
----
117312
131976
53580
query I rowsort
SELECT ALL + col1 + - col2 * col2 AS col2 FROM tab2 AS cor0
----
-1427
-617
-698
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3546
SELECT DISTINCT + col1 * CAST( NULL AS SIGNED ) * + col0 FROM tab1
----
NULL
skipif mysql # not compatible
query I rowsort label-3546
SELECT DISTINCT + col1 * CAST ( NULL AS INTEGER ) * + col0 FROM tab1
----
NULL
query I rowsort
SELECT - ( + col0 ) * + col0 AS col2 FROM tab2 cor0
----
-49
-6084
-6241
query I rowsort
SELECT DISTINCT col2 * ( - col0 ) * + 2 FROM tab1 AS cor0
----
-15360
-324
-7296
query I rowsort
SELECT ALL + + 8 FROM tab2 AS cor0
----
8
8
8
query I rowsort
SELECT ALL - col0 * - col0 + col2 AS col0 FROM tab1 AS cor0
----
4153
63
6496
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + col1 * col0 col2 FROM tab1 AS cor0
----
1120
704
81
onlyif mysql # use DIV operator for integer division
query I rowsort label-3552
SELECT DISTINCT + - 72 DIV col1 AS col0 FROM tab2 AS cor0
----
-1
-2
-4
skipif mysql # not compatible
query I rowsort label-3552
SELECT DISTINCT + - 72 / col1 AS col0 FROM tab2 AS cor0
----
-1
-2
-4
query I rowsort
SELECT ALL - ( + 66 + col1 ) * ( - ( col1 ) ) FROM tab1
----
1027
2392
760
query I rowsort
SELECT 95 * + cor0.col2 FROM tab1 AS cor0
----
5130
5415
9120
query I rowsort
SELECT 46 AS col1 FROM tab2 cor0
----
46
46
46
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 91 col0 FROM tab0
----
91
91
91
query I rowsort
SELECT ALL + col0 + + col0 + + col0 AS col1 FROM tab1
----
192
240
9
query I rowsort
SELECT ALL + ( - 75 ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 258bc565c64924d905a55eaaa6e57547
onlyif mysql # use DIV operator for integer division
query I rowsort label-3559
SELECT ALL 68 DIV col1 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-3559
SELECT ALL 68 / col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT 63 AS col0 FROM tab2 AS cor0
----
63
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 11 * col0 + col2 col1 FROM tab0 AS cor0
----
1061
297
386
onlyif mysql # use DIV operator for integer division
query I rowsort label-3562
SELECT + col1 * 68 + col0 DIV - ( col2 ) FROM tab1 AS cor0
----
1768
679
884
skipif mysql # not compatible
query I rowsort label-3562
SELECT + col1 * 68 + col0 / - ( col2 ) FROM tab1 AS cor0
----
1768
679
884
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + - 8 * col0 * col1 col1 FROM tab0
----
-16426
-27063
-64701
query I rowsort
SELECT ALL - tab1.col0 + - ( col2 ) FROM tab1
----
-121
-176
-57
onlyif mysql # use DIV operator for integer division
query I rowsort label-3565
SELECT ALL - cor0.col2 - col1 DIV + col1 AS col0 FROM tab2 AS cor0
----
-27
-28
-39
skipif mysql # not compatible
query I rowsort label-3565
SELECT ALL - cor0.col2 - col1 / + col1 AS col0 FROM tab2 AS cor0
----
-27
-28
-39
query I rowsort
SELECT ALL + col1 + 48 * cor0.col1 FROM tab1 AS cor0
----
1274
490
637
query I rowsort
SELECT - - col0 * + 23 AS col2 FROM tab1 AS cor0
----
1472
1840
69
query I rowsort
SELECT ALL col2 * cor0.col1 + + 52 * col1 FROM tab0 AS cor0
----
12194
5141
7310
query I rowsort
SELECT 32 * + col0 + col2 FROM tab0
----
1121
2930
801
query I rowsort
SELECT - ( + col0 + + tab0.col1 * + 16 ) AS col1 FROM tab0
----
-1400
-1545
-1587
query I rowsort
SELECT ALL - + ( col0 ) * + col1 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT - col1 * + col2 + col2 + col0 * - col0 * + col1 FROM tab0 cor0
----
-118921
-52341
-728191
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( 18 ) col1 FROM tab1 AS cor0
----
18
18
18
query I rowsort
SELECT ALL - - col0 + + 74 FROM tab0 cor0
----
109
163
98
onlyif mysql # use DIV operator for integer division
query I rowsort label-3575
SELECT DISTINCT - + col2 * ( cor0.col1 ) * col0 - + col1 DIV - 19 FROM tab0 AS cor0
----
-3390
-664114
-68108
skipif mysql # not compatible
query I rowsort label-3575
SELECT DISTINCT - + col2 * ( cor0.col1 ) * col0 - + col1 / - 19 FROM tab0 AS cor0
----
-3390
-664114
-68108
query I rowsort
SELECT + - col2 * + col0 + col1 AS col2 FROM tab2 AS cor0
----
-158
-1969
-2985
query I rowsort
SELECT + - col0 + col2 * col0 AS col0 FROM tab0 AS cor0
----
0
7209
768
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 - col2 col0 FROM tab0 AS cor0
----
53
9
96
query I rowsort
SELECT DISTINCT 23 AS col1 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
23
query I rowsort
SELECT 73 + 16 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 5c8428e9f1e7de3d09cb0814b4cc1743
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3581
SELECT + col0 + CAST( NULL AS SIGNED ) / + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3581
SELECT + col0 + CAST ( NULL AS INTEGER ) / + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - col0 * col1 + + col2 * cor0.col1 AS col0 FROM tab2 AS cor0
----
-3068
-697
620
query I rowsort
SELECT - cor0.col1 * - col0 + - col1 FROM tab1 cor0
----
1027
52
630
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 60 - col2 col1 FROM tab2 cor0
----
22
33
34
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3585
SELECT CAST( - 47 AS SIGNED ) col0 FROM tab0
----
-47
-47
-47
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3585
SELECT CAST ( - 47 AS INTEGER ) col0 FROM tab0
----
-47
-47
-47
query I rowsort
SELECT - + col2 - - col1 FROM tab0 AS cor0
----
53
9
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-3587
SELECT + col0 + + col2 DIV 75 AS col0 FROM tab2 AS cor0
----
7
78
79
skipif mysql # not compatible
query I rowsort label-3587
SELECT + col0 + + col2 / 75 AS col0 FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT ALL - 87 FROM tab0, tab0 AS cor0
----
9 values hashing to 84bcab58a965cc8ae97b39d2d01b3d23
query I rowsort
SELECT - 4 + + col0 FROM tab2
----
3
74
75
onlyif mysql # use DIV operator for integer division
query I rowsort label-3590
SELECT DISTINCT col1 DIV + col1 - ( - 75 * + tab0.col2 ) AS col1 FROM tab0
----
2476
6151
76
skipif mysql # not compatible
query I rowsort label-3590
SELECT DISTINCT col1 / + col1 - ( - 75 * + tab0.col2 ) AS col1 FROM tab0
----
2476
6151
76
query I rowsort
SELECT DISTINCT - tab2.col1 * - tab2.col0 AS col2 FROM tab2
----
1343
217
4602
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 * col1 col1 FROM tab2 cor0
----
1534
646
837
query I rowsort
SELECT ALL col2 + - ( - cor0.col2 ) FROM tab1 AS cor0
----
108
114
192
query I rowsort
SELECT + col1 * 92 AS col2 FROM tab2 AS cor0
----
1564
2852
5428
query I rowsort
SELECT ALL col2 - col2 AS col2 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT col2 * ( - col0 ) - + col2 FROM tab0 AS cor0
----
-36
-7380
-825
skipif mysql # not compatible
query I rowsort
SELECT - col1 - - CAST ( - col0 AS REAL ) * - cor0.col0 AS col1 FROM tab2 AS cor0
----
18
6025
6224
query I rowsort
SELECT + - col1 * + 58 FROM tab0 AS cor0
----
-4988
-5278
-5626
query I rowsort
SELECT + col1 * cor0.col2 - col2 FROM tab2 AS cor0
----
1508
608
810
query I rowsort
SELECT DISTINCT + cor0.col0 * - 51 * cor0.col1 + + col0 FROM tab2 AS cor0
----
-11060
-234624
-68414
onlyif mysql # use DIV operator for integer division
query I rowsort label-3601
SELECT DISTINCT ( col2 ) + 87 - col1 DIV tab0.col2 FROM tab0
----
-9
118
168
skipif mysql # not compatible
query I rowsort label-3601
SELECT DISTINCT ( col2 ) + 87 - col1 / tab0.col2 FROM tab0
----
-9
118
168
query I rowsort
SELECT DISTINCT + 56 - - col2 AS col0 FROM tab1
----
110
113
152
onlyif mysql # use DIV operator for integer division
query I rowsort label-3603
SELECT col1 * col0 + + col0 DIV - col1 + col2 AS col1 FROM tab0
----
2097
3396
8181
skipif mysql # not compatible
query I rowsort label-3603
SELECT col1 * col0 + + col0 / - col1 + col2 AS col1 FROM tab0
----
2097
3396
8181
query I rowsort
SELECT DISTINCT - col2 + col1 - col0 * + col1 AS col0 FROM tab2
----
-1364
-213
-4569
query I rowsort
SELECT 45 FROM tab1, tab1 cor0, tab2 cor1
----
27 values hashing to 14cec871edc37b5056cda01c8331fdca
query I rowsort
SELECT 45 * + col2 FROM tab0
----
1485
3690
45
query I rowsort
SELECT + col2 * + 91 FROM tab1 cor0
----
4914
5187
8736
query I rowsort
SELECT + - ( - 67 ) FROM tab0 AS cor0
----
67
67
67
query I rowsort
SELECT ALL + + cor0.col2 * + col1 AS col0 FROM tab0 cor0
----
2838
7462
97
query I rowsort
SELECT + 80 + - col1 * col1 AS col0 FROM tab1 AS cor0
----
-20
-596
-89
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + - CAST ( + 90 AS REAL ) + cor0.col2 AS col0 FROM tab0 AS cor0
----
-57
-8
-89
query I rowsort
SELECT 11 * 46 AS col0 FROM tab2 AS cor0
----
506
506
506
query I rowsort
SELECT - + 87 + col1 * + col2 AS col2 FROM tab1 AS cor0
----
1161
1317
483
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3614
SELECT DISTINCT CAST( NULL AS SIGNED ) col1 FROM tab2
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3614
SELECT DISTINCT CAST ( NULL AS INTEGER ) col1 FROM tab2
----
NULL
query I rowsort
SELECT DISTINCT + ( tab1.col0 + cor0.col0 * - ( 87 ) ) FROM tab0, tab0 AS cor0 CROSS JOIN tab1
----
9 values hashing to b018f45576ab1508f731172b67a2119c
query I rowsort
SELECT DISTINCT + ( - tab0.col1 ) FROM tab0, tab0 AS cor0
----
-86
-91
-97
query I rowsort
SELECT + + 6 AS col0 FROM tab0 cor0
----
6
6
6
query I rowsort
SELECT DISTINCT + 36 FROM tab0, tab2 AS cor0
----
36
query I rowsort
SELECT - col1 * + 71 - + tab0.col0 AS col2 FROM tab0
----
-6130
-6550
-6922
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + + 32 col2 FROM tab0
----
114
33
65
query I rowsort
SELECT tab0.col0 + col0 * - col1 * col1 AS col0 FROM tab0
----
-177480
-329280
-736920
onlyif mysql # use DIV operator for integer division
query I rowsort label-3622
SELECT DISTINCT - + cor0.col1 * col2 - - 90 DIV col0 AS col0 FROM tab1 AS cor0
----
-1247
-1374
-569
skipif mysql # not compatible
query I rowsort label-3622
SELECT DISTINCT - + cor0.col1 * col2 - - 90 / col0 AS col0 FROM tab1 AS cor0
----
-1247
-1374
-569
query I rowsort
SELECT ALL col1 + - cor0.col0 * - 98 AS col2 FROM tab0 AS cor0
----
2438
3527
8813
query I rowsort
SELECT DISTINCT - col0 * - ( col1 ) + col2 AS col2 FROM tab2 AS cor0
----
1381
244
4628
query I rowsort
SELECT ALL + - 54 + + col0 FROM tab1 AS cor0
----
-51
10
26
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col1 * - col0 + cor0.col1 col1 FROM tab0 AS cor0
----
-1978
-3298
-8008
query I rowsort
SELECT + col1 + 17 + col1 FROM tab2 AS cor0
----
135
51
79
query I rowsort
SELECT - 21 * - cor0.col2 + - col0 - cor0.col0 FROM tab1 AS cor0
----
1069
1128
1856
query I rowsort
SELECT - col2 * + col2 * col0 + + 6 * 38 + col1 FROM tab0 cor0
----
-25822
-598117
290
query I rowsort
SELECT ALL - - ( + col1 ) FROM tab1 cor0
----
10
13
26
query I rowsort
SELECT 38 + 61 + - tab2.col2 AS col1 FROM tab2
----
61
72
73
query I rowsort
SELECT col2 + ( col0 ) + - ( cor0.col2 ) AS col2 FROM tab0 cor0
----
24
35
89
query I rowsort
SELECT ALL - + cor0.col1 + 41 FROM tab2 AS cor0
----
-18
10
24
onlyif mysql # use DIV operator for integer division
query I rowsort label-3634
SELECT DISTINCT + ( col1 ) DIV col1 + col0 FROM tab1 cor0
----
4
65
81
skipif mysql # not compatible
query I rowsort label-3634
SELECT DISTINCT + ( col1 ) / col1 + col0 FROM tab1 cor0
----
4
65
81
query I rowsort
SELECT ALL + + col1 + col1 * col0 * + 57 FROM tab0 AS cor0
----
117734
193612
461734
query I rowsort
SELECT ALL + col0 + 9 FROM tab0 AS cor0
----
33
44
98
query I rowsort
SELECT + cor0.col2 * - col0 + - col1 FROM tab1 AS cor0
----
-188
-3658
-7693
query I rowsort
SELECT DISTINCT - cor0.col0 * - cor0.col1 FROM tab1 cor0
----
1040
640
78
query I rowsort
SELECT DISTINCT + + 53 AS col1 FROM tab2 AS cor0
----
53
query I rowsort
SELECT ALL - ( - col0 ) + - cor0.col1 * ( - col1 ) FROM tab2 AS cor0
----
3559
368
968
query I rowsort
SELECT DISTINCT - ( - 21 ) + - col0 * + ( + col0 ) AS col2 FROM tab0 AS cor0
----
-1204
-555
-7900
query I rowsort
SELECT - + 37 AS col2 FROM tab2 AS cor0
----
-37
-37
-37
onlyif mysql # use DIV operator for integer division
query I rowsort label-3643
SELECT DISTINCT - col2 DIV col1 + - col0 FROM tab2 cor0
----
-7
-78
-81
skipif mysql # not compatible
query I rowsort label-3643
SELECT DISTINCT - col2 / col1 + - col0 FROM tab2 cor0
----
-7
-78
-81
query I rowsort
SELECT ALL + - col0 - col1 AS col1 FROM tab2 AS cor0
----
-137
-38
-96
query I rowsort
SELECT + - 88 * col0 AS col0 FROM tab2 AS cor0
----
-616
-6864
-6952
onlyif mysql # use DIV operator for integer division
query I rowsort label-3646
SELECT DISTINCT 90 DIV col0 AS col1 FROM tab1 cor0
----
1
30
skipif mysql # not compatible
query I rowsort label-3646
SELECT DISTINCT 90 / col0 AS col1 FROM tab1 cor0
----
1
30
query I rowsort
SELECT cor0.col0 + col0 + + col1 FROM tab2 cor0
----
175
215
45
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 66 * + col2 * - col0 col1 FROM tab1 cor0
----
10692
240768
506880
query I rowsort
SELECT - - 65 * col2 + col0 FROM tab0 AS cor0
----
100
2169
5419
query I rowsort
SELECT ALL - - 79 FROM tab2 AS cor0
----
79
79
79
query I rowsort
SELECT ALL - - col0 * - ( col0 + - cor0.col0 ) * - 64 AS col0 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT cor0.col1 * - col0 * col1 + col1 AS col0 FROM tab2 cor0
----
-22814
-271459
-6696
query I rowsort
SELECT ALL - col2 - cor0.col2 AS col2 FROM tab1 AS cor0
----
-108
-114
-192
query I rowsort
SELECT DISTINCT col2 - - col2 * col0 AS col1 FROM tab1 AS cor0
----
216
3705
7776
query I rowsort
SELECT ALL col1 + - 48 * + 29 AS col0 FROM tab0 AS cor0
----
-1295
-1301
-1306
query I rowsort
SELECT - col2 * + col0 - tab2.col1 AS col2 FROM tab2
----
-2087
-220
-3019
query I rowsort
SELECT ALL 76 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 30b8941a700cffd5b983116383bd42d5
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3658
SELECT ALL + col0 + + CAST( NULL AS SIGNED ) * + cor0.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-3658
SELECT ALL + col0 + + CAST ( NULL AS INTEGER ) * + cor0.col0 col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - cor0.col0 * + 78 + - cor0.col1 AS col2 FROM tab0 AS cor0
----
-1958
-2827
-7033
query I rowsort
SELECT DISTINCT - + col0 - - col0 * 72 FROM tab2 AS cor0
----
497
5538
5609
query I rowsort
SELECT ALL + col1 + - cor0.col0 * col1 AS col1 FROM tab1 AS cor0
----
-1027
-52
-630
onlyif mysql # use DIV operator for integer division
query I rowsort label-3662
SELECT ALL col1 DIV ( - col0 ) col0 FROM tab1 AS cor0
----
-8
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3662
SELECT ALL col1 / ( - col0 ) col0 FROM tab1 AS cor0
----
-8
0
0
query I rowsort
SELECT cor0.col1 * - cor0.col1 + - col1 AS col2 FROM tab1 AS cor0
----
-110
-182
-702
query I rowsort
SELECT DISTINCT - cor0.col0 FROM tab0, tab0 cor0, tab2 AS cor1
----
-24
-35
-89
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3665
SELECT ALL col0 + CAST( - 26 AS SIGNED ) * - col0 col1 FROM tab1 cor0
----
1728
2160
81
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3665
SELECT ALL col0 + CAST ( - 26 AS INTEGER ) * - col0 col1 FROM tab1 cor0
----
1728
2160
81
query I rowsort
SELECT ALL - col2 * - col2 + col1 AS col2 FROM tab2 AS cor0
----
1461
735
760
onlyif mysql # use DIV operator for integer division
query I rowsort label-3667
SELECT - - col1 DIV ( - col1 + - col1 ) FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-3667
SELECT - - col1 / ( - col1 + - col1 ) FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT - col1 + - ( col2 ) * + col1 AS col2 FROM tab2 AS cor0
----
-1593
-663
-868
query I rowsort
SELECT ALL 0 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c
query I rowsort
SELECT + ( + 26 ) FROM tab0 AS cor0
----
26
26
26
query I rowsort
SELECT ALL + cor1.col2 FROM tab2, tab2 AS cor0, tab0 cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475
onlyif mysql # use DIV operator for integer division
query I rowsort label-3672
SELECT - col2 * + col1 + - col2 + - 64 DIV col1 FROM tab1 AS cor0
----
-1348
-1460
-633
skipif mysql # not compatible
query I rowsort label-3672
SELECT - col2 * + col1 + - col2 + - 64 / col1 FROM tab1 AS cor0
----
-1348
-1460
-633
onlyif mysql # use DIV operator for integer division
query I rowsort label-3673
SELECT ALL - col2 + col0 + + col1 DIV - col2 col0 FROM tab1
----
-16
-51
7
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3673
SELECT ALL - col2 + col0 + + col1 / - col2 col0 FROM tab1
----
-16
-51
7
query I rowsort
SELECT ALL - col1 + + col1 + col0 AS col1 FROM tab1
----
3
64
80
onlyif mysql # use DIV operator for integer division
query I rowsort label-3675
SELECT DISTINCT col2 + cor0.col2 DIV col2 + 79 FROM tab0 AS cor0
----
113
162
81
skipif mysql # not compatible
query I rowsort label-3675
SELECT DISTINCT col2 + cor0.col2 / col2 + 79 FROM tab0 AS cor0
----
113
162
81
onlyif mysql # use DIV operator for integer division
query I rowsort label-3676
SELECT DISTINCT - col2 DIV + col0 AS col1 FROM tab1 cor0
----
-1
-18
0
skipif mysql # not compatible
query I rowsort label-3676
SELECT DISTINCT - col2 / + col0 AS col1 FROM tab1 cor0
----
-1
-18
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-3677
SELECT + col2 DIV cor0.col0 AS col2 FROM tab0 cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-3677
SELECT + col2 / cor0.col0 AS col2 FROM tab0 cor0
----
0
0
1
query I rowsort
SELECT - + col2 * + col1 * + cor0.col0 FROM tab2 cor0
----
-119652
-51034
-5859
query I rowsort
SELECT DISTINCT - + col1 + col0 * col2 AS col1 FROM tab0 cor0
----
-62
706
7207
onlyif mysql # use DIV operator for integer division
query I rowsort label-3680
SELECT ALL + cor0.col0 DIV col1 AS col0 FROM tab1 AS cor0
----
0
6
6
skipif mysql # not compatible
query I rowsort label-3680
SELECT ALL + cor0.col0 / col1 AS col0 FROM tab1 AS cor0
----
0
6
6
onlyif mysql # use DIV operator for integer division
query I rowsort label-3681
SELECT DISTINCT col2 DIV col2 col2 FROM tab0 AS cor0
----
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3681
SELECT DISTINCT col2 / col2 col2 FROM tab0 AS cor0
----
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-3682
SELECT - tab2.col0 * + col1 DIV tab2.col1 + + tab2.col0 - - col2 FROM tab2
----
26
27
38
skipif mysql # not compatible
query I rowsort label-3682
SELECT - tab2.col0 * + col1 / tab2.col1 + + tab2.col0 - - col2 FROM tab2
----
26
27
38
query I rowsort
SELECT + tab0.col1 AS col0 FROM tab2, tab1 cor0 CROSS JOIN tab0
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd
query I rowsort
SELECT ALL col0 - + col1 * tab2.col2 FROM tab2
----
-1456
-567
-830
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-3686
SELECT DISTINCT col2 * col2 DIV + col1 FROM tab0
----
0
12
73
skipif mysql # not compatible
query I rowsort label-3686
SELECT DISTINCT col2 * col2 / + col1 FROM tab0
----
0
12
73
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - cor0.col0 * col0 col0 FROM tab1 AS cor0
----
234
40960
83200
query I rowsort
SELECT ALL - col0 + - tab1.col2 * - col0 FROM tab1
----
159
3584
7600
query I rowsort
SELECT - col2 + col0 * col2 + + col0 FROM tab2
----
169
2080
3043
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col0 * col2 / - col2 <> NULL
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 col2 FROM tab2 WHERE NOT ( NULL ) IN ( - col1 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-3692
SELECT ALL col2 + - col0 DIV + col1 AS col0 FROM tab0
----
1
33
82
skipif mysql # not compatible
query I rowsort label-3692
SELECT ALL col2 + - col0 / + col1 AS col0 FROM tab0
----
1
33
82
query I rowsort
SELECT + col0 FROM tab1 WHERE NULL BETWEEN - col1 AND ( NULL )
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 col1 FROM tab2 WHERE NOT ( NULL ) NOT BETWEEN NULL AND NULL
----
query III rowsort
SELECT * FROM tab2 WHERE NOT col0 BETWEEN NULL AND NULL
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab1.col1 + + col1 col1 FROM tab1
----
20
26
52
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 - col1 col2 FROM tab0
----
-2
-62
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * + col0 + tab1.col0 col1 FROM tab1
----
165
3712
7760
query I rowsort
SELECT ALL + + col0 * col2 * - 76 FROM tab1 AS cor0
----
-12312
-277248
-583680
query I rowsort
SELECT ALL + + 95 + - col0 * + 98 FROM tab0 AS cor0
----
-2257
-3335
-8627
query I rowsort
SELECT + tab2.col0 * col1 + - 19 FROM tab2
----
1324
198
4583
query I rowsort
SELECT DISTINCT col0 + col0 * col2 AS col0 FROM tab2 AS cor0
----
196
2106
3081
query I rowsort
SELECT ( + cor1.col2 ) * cor1.col2 AS col0 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to f2f8e77c5ad4f2e8fce9fd33f828ee72
query I rowsort
SELECT ALL + + col2 + col0 + + col2 * col0 * col1 AS col2 FROM tab2 AS cor0
----
119756
51151
5893
query I rowsort
SELECT DISTINCT + 46 * - col1 + + 60 FROM tab1 cor0
----
-1136
-400
-538
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 49 * col0 col2 FROM tab0 AS cor0
----
-1176
-1715
-4361
query I rowsort
SELECT DISTINCT + + col2 * col1 + + ( - col0 * - col0 ) FROM tab0 AS cor0
----
1322
15383
3414
query I rowsort
SELECT + col2 + col2 * + ( col1 * + col2 ) FROM tab0 AS cor0
----
611966
93687
98
query I rowsort
SELECT tab0.col1 + tab0.col1 + - col1 * col0 FROM tab0
----
-1892
-3201
-7917
query I rowsort
SELECT DISTINCT col0 AS col1 FROM tab1 AS cor0 WHERE NOT ( cor0.col1 ) IN ( col0 * col2 + col0 )
----
3
64
80
query III rowsort
SELECT ALL * FROM tab0 WHERE col2 + - col1 * col1 NOT IN ( - col2 )
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7
query I rowsort
SELECT DISTINCT col0 + col2 * col0 AS col2 FROM tab0 AS cor0
----
70
7387
816
query I rowsort
SELECT - col2 * cor0.col2 + col2 AS col2 FROM tab2 AS cor0
----
-1406
-650
-702
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * cor0.col0 col2 FROM tab0 AS cor0
----
1225
576
7921
query I rowsort
SELECT DISTINCT + col0 * col1 AS col0 FROM tab0 AS cor0 WHERE NOT NULL > NULL
----
query I rowsort
SELECT DISTINCT col2 * col0 * - col2 AS col2 FROM tab2 AS cor0
----
-114076
-5103
-52728
query I rowsort
SELECT - col2 * - col2 * - col0 + + col1 FROM tab2
----
-114059
-5072
-52669
query III rowsort
SELECT * FROM tab0 WHERE NOT col0 IN ( - col2 + tab0.col2 * - tab0.col2 )
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 - col0 * col2 * col0 col1 FROM tab0
----
-1260
-19032
-649611
query I rowsort
SELECT - tab2.col0 * + col1 * col1 + tab2.col1 AS col1 FROM tab2
----
-22814
-271459
-6696
onlyif mysql # use DIV operator for integer division
query I rowsort label-3721
SELECT + cor0.col1 DIV cor0.col0 AS col0 FROM tab2 AS cor0
----
0
0
4
skipif mysql # not compatible
query I rowsort label-3721
SELECT + cor0.col1 / cor0.col0 AS col0 FROM tab2 AS cor0
----
0
0
4
query I rowsort
SELECT DISTINCT - 17 * + col0 AS col1 FROM tab2 cor0
----
-119
-1326
-1343
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2, tab2 AS cor0 CROSS JOIN tab1, tab0, tab2 cor1
----
3645 values hashing to d6a6e32c6adcc8525ed3eb7827781237
query I rowsort
SELECT col1 * - col2 + + 91 FROM tab1 AS cor0
----
-1157
-1313
-479
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3725
SELECT col2 * CAST( NULL AS DECIMAL ) AS col0 FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3725
SELECT col2 * CAST ( NULL AS REAL ) AS col0 FROM tab2 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT 67 * col0 + - col0 FROM tab2
----
462
5148
5214
query I rowsort
SELECT ALL + col2 + - col0 * cor0.col2 FROM tab0 cor0
----
-34
-7216
-759
query I rowsort
SELECT + cor1.col1 AS col1 FROM tab0, tab1 AS cor0, tab0 AS cor1, tab1 AS cor2
----
81 values hashing to 8c9db501a604ea66e3b5e5598f3f2a91
query I rowsort
SELECT DISTINCT - 53 * - col1 AS col1 FROM tab2
----
1643
3127
901
query I rowsort
SELECT DISTINCT + col1 * col0 * - 99 + + col0 FROM tab0
----
-204312
-336070
-801712
onlyif mysql # use DIV operator for integer division
query I rowsort label-3731
SELECT + col1 DIV - col1 + col2 + + col1 * 36 FROM tab1
----
416
563
989
skipif mysql # not compatible
query I rowsort label-3731
SELECT + col1 / - col1 + col2 + + col1 * 36 FROM tab1
----
416
563
989
query I rowsort
SELECT + col0 + 59 * - ( tab2.col2 ) - tab2.col0 FROM tab2
----
-1534
-1593
-2242
query I rowsort
SELECT DISTINCT col0 + - col1 * col0 * + col2 + col2 AS col0 FROM tab2
----
-119548
-50917
-5825
query I rowsort
SELECT DISTINCT + col1 + - 10 * + 40 AS col0 FROM tab1
----
-374
-387
-390
query I rowsort
SELECT 38 + - cor0.col1 FROM tab0 AS cor0
----
-48
-53
-59
query I rowsort
SELECT ALL col0 + tab0.col2 * col2 * - col2 FROM tab0
----
-35913
-551279
34
query I rowsort
SELECT DISTINCT 90 AS col1 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
90
query I rowsort
SELECT col2 * ( - 79 ) FROM tab1
----
-4266
-4503
-7584
query I rowsort
SELECT 99 * col1 + + col1 AS col0 FROM tab1
----
1000
1300
2600
query I rowsort
SELECT ALL - + 89 * - 58 + - col1 AS col0 FROM tab2 AS cor0
----
5103
5131
5145
query I rowsort
SELECT cor0.col2 * - col1 * cor0.col0 + 7 AS col0 FROM tab1 AS cor0
----
-36473
-4205
-99833
query I rowsort
SELECT - col2 * ( - cor0.col2 ) + + ( + 65 ) FROM tab1 AS cor0
----
2981
3314
9281
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( 60 ) col0 FROM tab1 AS cor0
----
-60
-60
-60
query I rowsort
SELECT DISTINCT - cor0.col0 * col2 * col2 FROM tab2 AS cor0
----
-114076
-5103
-52728
query I rowsort
SELECT DISTINCT + ( 88 ) FROM tab0 cor0
----
88
onlyif mysql # use DIV operator for integer division
query I rowsort label-3746
SELECT DISTINCT - cor0.col0 DIV - 31 FROM tab1 AS cor0
----
0
2
skipif mysql # not compatible
query I rowsort label-3746
SELECT DISTINCT - cor0.col0 / - 31 FROM tab1 AS cor0
----
0
2
query I rowsort
SELECT DISTINCT - - ( - 55 ) + + col2 AS col0 FROM tab2 AS cor0
----
-17
-28
-29
query I rowsort
SELECT ALL col2 * 97 * col0 AS col0 FROM tab1 AS cor0
----
15714
353856
744960
query I rowsort
SELECT ALL col2 * + 47 FROM tab2 AS cor0
----
1222
1269
1786
query I rowsort
SELECT col2 * - col1 + col1 AS col0 FROM tab2 AS cor0
----
-1475
-629
-806
query I rowsort
SELECT DISTINCT - ( 46 ) AS col0 FROM tab1 AS cor0
----
-46
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3752
SELECT DISTINCT CAST( NULL AS DECIMAL ) + col2 * col1 FROM tab0 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-3752
SELECT DISTINCT CAST ( NULL AS REAL ) + col2 * col1 FROM tab0 cor0
----
NULL
query I rowsort
SELECT + 58 AS col2 FROM tab1
----
58
58
58
query I rowsort
SELECT ALL - 71 FROM tab2, tab1 AS cor0
----
9 values hashing to e72f95c346714d3065a96d67a6fd5062
query I rowsort
SELECT ALL - col2 - - 4 AS col1 FROM tab1 AS cor0
----
-50
-53
-92
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3756
SELECT DISTINCT - CAST( NULL AS SIGNED ) * col1 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-3756
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * col1 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT + ( - 62 ) * col0 AS col0 FROM tab0
----
-1488
-2170
-5518
query I rowsort
SELECT ( tab0.col2 ) * col1 AS col2 FROM tab0
----
2838
7462
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT ALL + + CAST ( col1 AS REAL ) col2 FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT - ( col0 ) * col0 AS col2 FROM tab1 AS cor0
----
-4096
-6400
-9
onlyif mysql # use DIV operator for integer division
query I rowsort label-3761
SELECT + + 1 DIV col2 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-3761
SELECT + + 1 / col2 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT 4 * - col1 + - col2 FROM tab2 AS cor0
----
-106
-151
-262
query I rowsort
SELECT col2 * 59 FROM tab0 AS cor0
----
1947
4838
59
query I rowsort
SELECT ALL - cor0.col2 + + 2 * ( col0 ) FROM tab0 AS cor0
----
15
69
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + 46 col2 FROM tab2 AS cor0
----
72
73
84
query I rowsort
SELECT ALL + - col2 + col0 * + cor0.col1 AS col0 FROM tab0 cor0
----
2031
3394
8017
query I rowsort
SELECT DISTINCT - - col1 + + 15 - cor0.col2 FROM tab0 AS cor0
----
111
24
68
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab2.col1 * 8 col0 FROM tab2
----
136
248
472
query I rowsort
SELECT - 46 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 491ad1fb79fec0b5715ea54949d1aa2d
query I rowsort
SELECT - col2 * - ( - col2 ) FROM tab2 cor0
----
-1444
-676
-729
query I rowsort
SELECT DISTINCT - col1 + cor0.col0 * cor0.col0 + + cor0.col1 FROM tab2 AS cor0
----
49
6084
6241
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3772
SELECT + + col2 * CAST( NULL AS SIGNED ) + + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3772
SELECT + + col2 * CAST ( NULL AS INTEGER ) + + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + cor0.col1 + col2 * + cor0.col0 FROM tab2 AS cor0
----
2087
220
3019
query I rowsort
SELECT + cor0.col1 + + 88 FROM tab1 AS cor0
----
101
114
98
query I rowsort
SELECT DISTINCT col2 + 40 FROM tab0 AS cor0
----
122
41
73
query I rowsort
SELECT 81 AS col0 FROM tab1, tab1 cor0, tab1 AS cor1, tab2 cor2
----
81 values hashing to 50d500b1082f81e0b02096b2afac91cd
query I rowsort
SELECT 78 * - col1 FROM tab1 AS cor0
----
-1014
-2028
-780
query I rowsort
SELECT - 35 * col2 + col0 * + col1 FROM tab2 AS cor0
----
-728
13
3692
query I rowsort
SELECT + - col2 * col0 + - col1 FROM tab1 AS cor0
----
-188
-3658
-7693
query I rowsort
SELECT - ( + col1 ) * - col1 FROM tab1
----
100
169
676
query I rowsort
SELECT DISTINCT - ( - col2 ) * 71 FROM tab0
----
2343
5822
71
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3782
SELECT DISTINCT + col2 + CAST( NULL AS SIGNED ) * 37 col0 FROM tab0 cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3782
SELECT DISTINCT + col2 + CAST ( NULL AS INTEGER ) * 37 col0 FROM tab0 cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - cor0.col0 + 29 col1 FROM tab0 AS cor0
----
-6
-60
5
query I rowsort
SELECT DISTINCT - col1 + - col1 * - ( + col2 + col1 * + col2 ) FROM tab1 AS cor0
----
17459
37882
6260
onlyif mysql # use DIV operator for integer division
query I rowsort label-3785
SELECT - col0 DIV + cor0.col2 + col1 FROM tab1 cor0
----
13
26
9
skipif mysql # not compatible
query I rowsort label-3785
SELECT - col0 / + cor0.col2 + col1 FROM tab1 cor0
----
13
26
9
query I rowsort
SELECT + tab1.col1 * - col2 - col2 FROM tab1
----
-1344
-1458
-627
query I rowsort
SELECT ALL + ( col0 ) * + col0 * - tab1.col0 + - col1 FROM tab1
----
-262154
-512013
-53
query I rowsort
SELECT ALL + 75 * + col0 + col2 + - col1 * col2 FROM tab1
----
-1125
4287
4848
query I rowsort
SELECT DISTINCT 67 AS col1 FROM tab1, tab2 AS cor0
----
67
onlyif mysql # use DIV operator for integer division
query I rowsort label-3790
SELECT col1 + + col0 DIV - col0 FROM tab0
----
85
90
96
skipif mysql # not compatible
query I rowsort label-3790
SELECT col1 + + col0 / - col0 FROM tab0
----
85
90
96
query I rowsort
SELECT DISTINCT - tab1.col1 * ( col1 ) AS col1 FROM tab1
----
-100
-169
-676
query I rowsort
SELECT DISTINCT - + col0 * + ( + col2 * - col0 ) FROM tab1 cor0
----
233472
486
614400
query I rowsort
SELECT - col1 * 91 FROM tab0 AS cor0
----
-7826
-8281
-8827
query I rowsort
SELECT ALL - col1 * + col0 * 18 AS col1 FROM tab1 AS cor0
----
-11520
-1404
-18720
query I rowsort
SELECT col1 * col0 + - 34 FROM tab1
----
1006
44
606
query I rowsort
SELECT + col1 * - 36 AS col0 FROM tab0
----
-3096
-3276
-3492
query I rowsort
SELECT - col1 + - col0 * col1 * - col1 FROM tab0 cor0
----
177418
329218
736918
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( 27 ) col1 FROM tab2
----
-27
-27
-27
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3799
SELECT DISTINCT CAST( col1 AS SIGNED ) - col2 AS col2 FROM tab2
----
-21
33
4
skipif mysql # not compatible
query I rowsort label-3799
SELECT DISTINCT CAST ( col1 AS INTEGER ) - col2 AS col2 FROM tab2
----
-21
33
4
query I rowsort
SELECT ALL + tab0.col1 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd
query I rowsort
SELECT ALL ( - col2 ) * col0 AS col2 FROM tab1
----
-162
-3648
-7680
onlyif mysql # use DIV operator for integer division
query I rowsort label-3802
SELECT - col1 - col0 DIV + cor0.col1 AS col0 FROM tab1 AS cor0
----
-16
-19
-26
skipif mysql # not compatible
query I rowsort label-3802
SELECT - col1 - col0 / + cor0.col1 AS col0 FROM tab1 AS cor0
----
-16
-19
-26
query I rowsort
SELECT ( - col2 ) - - col2 AS col0 FROM tab2
----
0
0
0
query I rowsort
SELECT - col2 + + tab1.col1 + col1 AS col1 FROM tab1
----
-2
-37
-70
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3805
SELECT - col1 + - col0 * - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3805
SELECT - col1 + - col0 * - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-3806
SELECT + - 5 DIV + col0 AS col2 FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-3806
SELECT + - 5 / + col0 AS col2 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT - 93 * + col2 + col1 + - ( col0 ) FROM tab2 AS cor0
----
-2437
-2487
-3596
query I rowsort
SELECT - col0 * col0 * cor0.col1 + 78 AS col2 FROM tab1 AS cor0
----
-156
-40882
-83122
query I rowsort
SELECT ALL 94 + - col2 * col1 AS col1 FROM tab0 cor0
----
-2744
-3
-7368
query I rowsort
SELECT ALL + cor0.col2 + + cor0.col2 FROM tab1 AS cor0
----
108
114
192
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 27 col0 FROM tab0 AS cor0
----
27
27
27
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 cor0.col0 + + col2 * - col1 AS col0 FROM tab1 cor0
----
-1168
-1401
-506
query I rowsort
SELECT col2 * - col1 + 38 AS col2 FROM tab0 AS cor0
----
-2800
-59
-7424
query I rowsort
SELECT ALL + cor0.col0 + col0 + + 92 FROM tab1 cor0
----
220
252
98
query I rowsort
SELECT DISTINCT - + col1 * 26 FROM tab2 AS cor0
----
-1534
-442
-806
query I rowsort
SELECT DISTINCT + 45 * - col0 AS col1 FROM tab1 AS cor0
----
-135
-2880
-3600
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 + + col2 * - col2 col2 FROM tab0 AS cor0
----
-1175
-6815
-98
query I rowsort
SELECT DISTINCT - tab0.col0 * - 51 AS col0 FROM tab0
----
1224
1785
4539
query I rowsort
SELECT col1 * ( - col2 + - ( + tab0.col0 ) ) FROM tab0
----
-15561
-3492
-4902
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT CAST ( col2 AS REAL ) * - col2 FROM tab2 AS cor0
----
-1444
-676
-729
query I rowsort
SELECT - + ( 51 ) * cor0.col1 + + ( ( col1 ) ) * 55 AS col2 FROM tab2 AS cor0
----
124
236
68
query I rowsort
SELECT ALL + - col0 + 67 AS col2 FROM tab1 cor0
----
-13
3
64
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col2 + + col0 col1 FROM tab0 cor0
----
171
36
57
query I rowsort
SELECT + col1 + + col0 * ( col0 * col2 ) FROM tab2 cor0
----
1354
158243
237175
query I rowsort
SELECT 95 * - col0 + col2 AS col2 FROM tab1
----
-231
-6023
-7504
query I rowsort
SELECT DISTINCT col1 + col0 * ( - col0 ) - col2 AS col2 FROM tab2 AS cor0
----
-45
-6051
-6262
query I rowsort
SELECT + 68 + + col0 FROM tab0 AS cor0
----
103
157
92
query I rowsort
SELECT DISTINCT + 36 AS col2 FROM tab1, tab0 AS cor0
----
36
onlyif mysql # use DIV operator for integer division
query I rowsort label-3830
SELECT ALL + - col1 DIV col0 AS col1 FROM tab1 AS cor0
----
-8
0
0
skipif mysql # not compatible
query I rowsort label-3830
SELECT ALL + - col1 / col0 AS col1 FROM tab1 AS cor0
----
-8
0
0
query I rowsort
SELECT DISTINCT col0 * 7 FROM tab1 cor0
----
21
448
560
onlyif mysql # use DIV operator for integer division
query I rowsort label-3832
SELECT + - col2 + col0 * - col2 + - col1 DIV + col1 col1 FROM tab2 AS cor0
----
-2055
-217
-3041
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3832
SELECT + - col2 + col0 * - col2 + - col1 / + col1 col1 FROM tab2 AS cor0
----
-2055
-217
-3041
query I rowsort
SELECT ALL col0 * col0 * + 54 + - col1 FROM tab2 cor0
----
2615
328477
336997
query I rowsort
SELECT - + tab0.col2 AS col1 FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to 6a43e7f15194af73fe1c83385e6ebebc
query I rowsort
SELECT ALL col0 + tab2.col0 * + 50 + tab2.col2 FROM tab2
----
384
4004
4067
query I rowsort
SELECT ALL col0 + + 47 * + 5 + tab2.col1 FROM tab2
----
273
331
372
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3837
SELECT - col2 + CAST( col1 AS SIGNED ) + - col2 FROM tab1
----
-104
-179
-82
skipif mysql # not compatible
query I rowsort label-3837
SELECT - col2 + CAST ( col1 AS INTEGER ) + - col2 FROM tab1
----
-104
-179
-82
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 + - ( 34 ) col0 FROM tab2 AS cor0
----
-7
-8
4
query I rowsort
SELECT DISTINCT col1 + - 9 AS col1 FROM tab2 AS cor0
----
22
50
8
query I rowsort
SELECT - col1 * col1 - 66 FROM tab1 AS cor0
----
-166
-235
-742
query I rowsort
SELECT - col0 + ( cor0.col2 * + col0 ) + col0 AS col1 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT 96 FROM tab0, tab1 cor0
----
9 values hashing to 22c5141a629f0ef396738ee2c8be6303
onlyif mysql # use DIV operator for integer division
query I rowsort label-3843
SELECT col0 DIV + col0 + col1 DIV - tab0.col0 + col1 AS col2 FROM tab0
----
84
91
96
skipif mysql # not compatible
query I rowsort label-3843
SELECT col0 / + col0 + col1 / - tab0.col0 + col1 AS col2 FROM tab0
----
84
91
96
query I rowsort
SELECT ALL col0 + 10 AS col0 FROM tab1
----
13
74
90
query I rowsort
SELECT + cor0.col1 * - col1 + cor0.col2 * - col0 AS col0 FROM tab2 AS cor0
----
-1150
-3291
-5509
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3846
SELECT + + CAST( - 9 AS SIGNED ) + + col0 FROM tab1 AS cor0
----
-6
55
71
skipif mysql # not compatible
query I rowsort label-3846
SELECT + + CAST ( - 9 AS INTEGER ) + + col0 FROM tab1 AS cor0
----
-6
55
71
query I rowsort
SELECT DISTINCT 11 AS col1 FROM tab2, tab1 AS cor0
----
11
query I rowsort
SELECT + - 39 * + cor0.col2 - col0 AS col2 FROM tab0 AS cor0
----
-1311
-3287
-74
query I rowsort
SELECT - col1 + col0 * col1 AS col2 FROM tab1 AS cor0
----
1027
52
630
query I rowsort
SELECT ALL - ( col2 * col1 + col2 ) FROM tab0
----
-2871
-7544
-98
query I rowsort
SELECT DISTINCT col1 * + col1 + - 73 * + col1 FROM tab0 cor0
----
1118
1638
2328
query I rowsort
SELECT ALL + 47 * col0 AS col0 FROM tab0 AS cor0
----
1128
1645
4183
onlyif mysql # use DIV operator for integer division
query I rowsort label-3853
SELECT ALL - - col2 DIV col1 - 79 * 38 FROM tab0 AS cor0
----
-3002
-3002
-3002
skipif mysql # not compatible
query I rowsort label-3853
SELECT ALL - - col2 / col1 - 79 * 38 FROM tab0 AS cor0
----
-3002
-3002
-3002
query I rowsort
SELECT DISTINCT - col2 * + col2 AS col1 FROM tab0 cor0
----
-1
-1089
-6724
query I rowsort
SELECT ALL 12 + - col2 FROM tab1 AS cor0
----
-42
-45
-84
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3856
SELECT DISTINCT - ( col0 ) + CAST( NULL AS SIGNED ) * + col2 AS col0 FROM tab0 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-3856
SELECT DISTINCT - ( col0 ) + CAST ( NULL AS INTEGER ) * + col2 AS col0 FROM tab0 cor0
----
NULL
query I rowsort
SELECT DISTINCT - col0 + - 19 AS col2 FROM tab0 cor0
----
-108
-43
-54
query I rowsort
SELECT ALL - + col0 * 57 + + ( col1 ) * - 4 FROM tab0 cor0
----
-1712
-2383
-5437
query I rowsort
SELECT ALL - col0 * - col0 - col1 FROM tab2 cor0
----
18
6025
6224
query I rowsort
SELECT + 78 * 30 AS col0 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to ab65baba13ad41e9d466e50261082dc6
query I rowsort
SELECT - cor0.col0 FROM tab1, tab0 cor0, tab2 AS cor1
----
27 values hashing to c3ebf1695ca74567bdc173dbe15186a8
query I rowsort
SELECT ALL 33 * - cor0.col2 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to cc16a349f6f0925588e1b0e550618c89
query I rowsort
SELECT DISTINCT + 1 * + col2 FROM tab0
----
1
33
82
query I rowsort
SELECT DISTINCT + col2 * + col0 * cor0.col2 + + 17 FROM tab2 cor0
----
114093
5120
52745
query I rowsort
SELECT ALL tab2.col0 + ( tab2.col0 ) AS col0 FROM tab2
----
14
156
158
query I rowsort
SELECT + - col1 + - 86 * + cor0.col0 FROM tab1 cor0
----
-284
-5514
-6893
query I rowsort
SELECT tab2.col0 * col2 - col0 FROM tab2
----
182
1950
2923
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 - col1 col0 FROM tab2
----
-137
-38
-96
query I rowsort
SELECT ALL - col1 + - col2 * - col1 FROM tab1
----
1235
1378
560
query I rowsort
SELECT - col0 * col1 + - ( + 16 ) AS col0 FROM tab2 AS cor0
----
-1359
-233
-4618
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3871
SELECT tab2.col2 * col1 - CAST( NULL AS SIGNED ) * + tab2.col1 AS col0 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3871
SELECT tab2.col2 * col1 - CAST ( NULL AS INTEGER ) * + tab2.col1 AS col0 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - 60 * cor0.col2 FROM tab2 cor0
----
-1560
-1620
-2280
query I rowsort
SELECT ALL 37 * + col0 FROM tab1 AS cor0
----
111
2368
2960
query I rowsort
SELECT ALL - + 99 * - col2 + ( + col2 ) FROM tab0 AS cor0
----
100
3300
8200
query I rowsort
SELECT DISTINCT - 66 * col1 AS col2 FROM tab2 AS cor0
----
-1122
-2046
-3894
query I rowsort
SELECT - + 16 + col0 AS col2 FROM tab1 cor0
----
-13
48
64
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( cor0.col0 ) col1 FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT ALL col2 - ( + col2 ) AS col2 FROM tab0
----
0
0
0
query I rowsort
SELECT 14 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 83e5779d2487d12495e7d816c797264f
query I rowsort
SELECT + + col0 * 78 + + 32 FROM tab0 AS cor0
----
1904
2762
6974
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + ( col1 ) * col0 col0 FROM tab1 AS cor0
----
1136
132
697
query I rowsort
SELECT - - col2 + - 76 FROM tab1 AS cor0
----
-19
-22
20
query I rowsort
SELECT + col2 - 51 * col2 FROM tab1 cor0
----
-2700
-2850
-4800
query I rowsort
SELECT 16 * cor0.col0 + col0 FROM tab2 AS cor0
----
119
1326
1343
query I rowsort
SELECT - + col1 * col2 AS col0 FROM tab1 cor0
----
-1248
-1404
-570
query I rowsort
SELECT DISTINCT - col0 * cor0.col0 + col0 AS col0 FROM tab0 AS cor0
----
-1190
-552
-7832
query I rowsort
SELECT + - 13 + - col2 * cor0.col2 FROM tab1 cor0
----
-2929
-3262
-9229
query I rowsort
SELECT + tab1.col2 * - 32 AS col0 FROM tab1
----
-1728
-1824
-3072
query I rowsort
SELECT + ( + col0 ) + col2 AS col2 FROM tab1 AS cor0
----
121
176
57
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col0 * - col1 col2 FROM tab1 cor0
----
-1040
-640
-78
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3891
SELECT DISTINCT CAST( NULL AS SIGNED ) * - cor0.col0 AS col0 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-3891
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - cor0.col0 AS col0 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT 10 + col2 * col1 FROM tab2 AS cor0
----
1544
656
847
onlyif mysql # use DIV operator for integer division
query I rowsort label-3893
SELECT ALL 25 DIV 6 col0 FROM tab1 AS cor0
----
4
4
4
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3893
SELECT ALL 25 / 6 col0 FROM tab1 AS cor0
----
4
4
4
query I rowsort
SELECT DISTINCT - 14 AS col2 FROM tab1 cor0
----
-14
onlyif mysql # use DIV operator for integer division
query I rowsort label-3895
SELECT + + cor0.col1 DIV + col0 FROM tab0 cor0
----
1
2
3
skipif mysql # not compatible
query I rowsort label-3895
SELECT + + cor0.col1 / + col0 FROM tab0 cor0
----
1
2
3
query I rowsort
SELECT ALL 33 AS col2 FROM tab2 AS cor0
----
33
33
33
query I rowsort
SELECT - 29 + + 45 * col0 AS col0 FROM tab0 AS cor0
----
1051
1546
3976
query I rowsort
SELECT col0 * col2 + col0 AS col1 FROM tab1 AS cor0
----
165
3712
7760
query I rowsort
SELECT ALL col0 * - cor0.col1 AS col2 FROM tab0 cor0
----
-2064
-3395
-8099
query I rowsort
SELECT DISTINCT 19 * + col2 * + cor0.col0 - col2 AS col0 FROM tab0 AS cor0
----
138580
15015
664
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col0 - col1 * - col2 col0 FROM tab1 AS cor0
----
1168
1401
506
query I rowsort
SELECT - 40 * - 27 * col0 FROM tab1 AS cor0
----
3240
69120
86400
query I rowsort
SELECT - col1 * + ( - col0 ) - col2 FROM tab0 AS cor0
----
2031
3394
8017
query I rowsort
SELECT ALL col0 + - 15 * + col0 AS col0 FROM tab2 AS cor0
----
-1092
-1106
-98
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3905
SELECT DISTINCT - CAST( col1 AS SIGNED ) * + col0 FROM tab1 AS cor0
----
-1040
-640
-78
skipif mysql # not compatible
query I rowsort label-3905
SELECT DISTINCT - CAST ( col1 AS INTEGER ) * + col0 FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT DISTINCT + - 68 - - 59 FROM tab0 AS cor0
----
-9
query I rowsort
SELECT DISTINCT cor0.col0 + + cor0.col1 FROM tab1 AS cor0
----
29
74
93
onlyif mysql # use DIV operator for integer division
query I rowsort label-3908
SELECT ALL col0 DIV col2 - col2 AS col2 FROM tab1 AS cor0
----
-54
-56
-96
skipif mysql # not compatible
query I rowsort label-3908
SELECT ALL col0 / col2 - col2 AS col2 FROM tab1 AS cor0
----
-54
-56
-96
onlyif mysql # use DIV operator for integer division
query I rowsort label-3909
SELECT + 64 * - col0 + col1 DIV 35 FROM tab0 AS cor0
----
-1534
-2238
-5694
skipif mysql # not compatible
query I rowsort label-3909
SELECT + 64 * - col0 + col1 / 35 FROM tab0 AS cor0
----
-1534
-2238
-5694
query I rowsort
SELECT ALL + 1 * + col0 FROM tab2 AS cor0
----
7
78
79
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * + col2 + + 57 col2 FROM tab2 AS cor0
----
1501
733
786
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col2 + - cor0.col1 col2 FROM tab0 AS cor0
----
-119
-173
-98
query I rowsort
SELECT DISTINCT 8 * col1 + 76 * + ( col1 * col0 ) FROM tab2 AS cor0
----
102204
16740
350224
query I rowsort
SELECT ALL col2 + col0 * + col1 * col0 AS col1 FROM tab1 AS cor0
----
288
41017
83296
query I rowsort
SELECT ALL + col2 + col2 + 25 FROM tab0 AS cor0
----
189
27
91
query I rowsort
SELECT DISTINCT + - col2 * - col1 AS col0 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT ALL col0 + - col2 * - col0 FROM tab2 AS cor0
----
196
2106
3081
query I rowsort
SELECT + ( - 81 ) FROM tab1, tab2 AS cor0
----
9 values hashing to 205b3ff2d7b1817c98d7980b8c17e6c1
query I rowsort
SELECT ALL + col0 * - 89 FROM tab0 AS cor0
----
-2136
-3115
-7921
query I rowsort
SELECT ALL - + col1 * 51 FROM tab2 AS cor0
----
-1581
-3009
-867
query I rowsort
SELECT DISTINCT col0 + - col0 * - 4 - tab0.col2 AS col1 FROM tab0
----
174
363
87
query I rowsort
SELECT - col0 + + ( 53 ) * col1 * 23 + + tab0.col2 FROM tab0
----
104843
110922
118209
query I rowsort
SELECT DISTINCT + 41 AS col0 FROM tab2 cor0
----
41
query I rowsort
SELECT ALL + col0 * + col1 * + cor0.col2 + col0 + + col0 * - col2 AS col1 FROM tab0 AS cor0
----
3395
656909
67344
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 - - col1 col0 FROM tab2 AS cor0
----
-19
-62
24
query I rowsort
SELECT DISTINCT - - col0 * + col1 + - col1 FROM tab1 AS cor0
----
1027
52
630
query I rowsort
SELECT col0 + 89 FROM tab1 AS cor0
----
153
169
92
onlyif mysql # use DIV operator for integer division
query I rowsort label-3928
SELECT ALL - cor0.col1 DIV - ( col1 * col0 + + col1 ) AS col1 FROM tab2 cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-3928
SELECT ALL - cor0.col1 / - ( col1 * col0 + + col1 ) AS col1 FROM tab2 cor0
----
0
0
0
query I rowsort
SELECT ALL - col1 * 26 FROM tab1 AS cor0
----
-260
-338
-676
query I rowsort
SELECT DISTINCT + cor0.col1 * + 71 FROM tab1 AS cor0
----
1846
710
923
query I rowsort
SELECT 36 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 4d1892e880125dc90345721151acb22c
query I rowsort
SELECT + - cor0.col0 + + 19 AS col1 FROM tab2 AS cor0
----
-59
-60
12
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col1 * + ( 63 ) col1 FROM tab2 AS cor0
----
1071
1953
3717
query I rowsort
SELECT DISTINCT cor1.col1 * + 55 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
1705
3245
935
query I rowsort
SELECT ( tab1.col1 * - col2 ) FROM tab1
----
-1248
-1404
-570
query I rowsort
SELECT DISTINCT - col1 - col0 * - col1 FROM tab0 cor0
----
1978
3298
8008
query I rowsort
SELECT DISTINCT - col0 - + 31 * cor0.col1 FROM tab2 AS cor0
----
-1907
-606
-968
onlyif mysql # use DIV operator for integer division
query I rowsort label-3938
SELECT DISTINCT + ( + 60 ) + - col2 DIV 32 FROM tab1 AS cor0
----
57
59
skipif mysql # not compatible
query I rowsort label-3938
SELECT DISTINCT + ( + 60 ) + - col2 / 32 FROM tab1 AS cor0
----
57
59
query I rowsort
SELECT ALL - col0 * 57 + col1 * + col2 * + col0 AS col0 FROM tab1 AS cor0
----
32832
4041
95280
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3940
SELECT ALL ( col0 ) * col0 + CAST( NULL AS SIGNED ) col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3940
SELECT ALL ( col0 ) * col0 + CAST ( NULL AS INTEGER ) col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + ( col1 ) - + col0 * cor0.col0 FROM tab0 cor0
----
-1128
-490
-7830
query I rowsort
SELECT ( col0 ) * - col1 + 22 FROM tab0 AS cor0
----
-2042
-3373
-8077
query I rowsort
SELECT - 92 * cor0.col0 AS col0 FROM tab2 AS cor0
----
-644
-7176
-7268
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 17 col1 FROM tab1 AS cor0
----
17
17
17
query I rowsort
SELECT ALL + col0 + col1 * 22 FROM tab0 AS cor0
----
1916
2091
2169
query I rowsort
SELECT DISTINCT - col2 + - col0 * - col2 FROM tab2 AS cor0
----
162
2002
2964
query I rowsort
SELECT DISTINCT col2 * + col1 - + col0 FROM tab1 AS cor0
----
1168
1401
506
query I rowsort
SELECT - 28 AS col2 FROM tab2 AS cor0
----
-28
-28
-28
query I rowsort
SELECT - + ( col0 ) + col1 * - col1 FROM tab1 AS cor0
----
-164
-249
-679
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3950
SELECT DISTINCT CAST( + 37 * - col0 AS SIGNED ) FROM tab0
----
-1295
-3293
-888
skipif mysql # not compatible
query I rowsort label-3950
SELECT DISTINCT CAST ( + 37 * - col0 AS INTEGER ) FROM tab0
----
-1295
-3293
-888
query I rowsort
SELECT tab1.col0 AS col0 FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f
query I rowsort
SELECT + - 55 FROM tab1 cor0
----
-55
-55
-55
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 52 col2 FROM tab0
----
-52
query I rowsort
SELECT + col0 * ( col1 ) - - col2 FROM tab0 AS cor0
----
2097
3396
8181
query I rowsort
SELECT + + col2 - 68 AS col2 FROM tab1 AS cor0
----
-11
-14
28
query I rowsort
SELECT DISTINCT - col1 - 56 AS col2 FROM tab0 AS cor0
----
-142
-147
-153
query I rowsort
SELECT ALL - col0 * - ( - cor0.col2 ) AS col1 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT tab0.col1 * 90 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 1fff811c49f798da2e2601591b3d47bb
onlyif mysql # use DIV operator for integer division
query I rowsort label-3959
SELECT - col0 DIV - 35 AS col2 FROM tab0 cor0
----
0
1
2
skipif mysql # not compatible
query I rowsort label-3959
SELECT - col0 / - 35 AS col2 FROM tab0 cor0
----
0
1
2
query I rowsort
SELECT ALL - col1 + col1 * - ( + col2 ) AS col0 FROM tab2
----
-1593
-663
-868
query I rowsort
SELECT DISTINCT - 76 + 66 FROM tab0, tab1 AS cor0
----
-10
query I rowsort
SELECT - col0 * col0 + + cor0.col1 FROM tab2 AS cor0
----
-18
-6025
-6224
query I rowsort
SELECT - col0 * 94 + + col1 AS col2 FROM tab1 AS cor0
----
-256
-6006
-7507
query I rowsort
SELECT ALL + col1 * 11 FROM tab2
----
187
341
649
query I rowsort
SELECT ALL + ( col1 * + col0 ) FROM tab0
----
2064
3395
8099
query I rowsort
SELECT 44 * - cor0.col1 AS col1 FROM tab0 AS cor0
----
-3784
-4004
-4268
query I rowsort
SELECT + col1 * + 83 FROM tab2 AS cor0
----
1411
2573
4897
query I rowsort
SELECT DISTINCT + - col0 * 10 FROM tab0 AS cor0
----
-240
-350
-890
query I rowsort
SELECT - cor0.col1 * col1 * - cor0.col0 FROM tab2 AS cor0
----
22831
271518
6727
query I rowsort
SELECT col1 + + 1 * - col1 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT - col0 * - col2 + cor0.col0 + - col0 FROM tab0 AS cor0
----
35
7298
792
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3972
SELECT ALL col0 * CAST( NULL AS SIGNED ) * ( - col0 * + cor0.col1 ) + col2 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3972
SELECT ALL col0 * CAST ( NULL AS INTEGER ) * ( - col0 * + cor0.col1 ) + col2 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT col2 + ( col0 ) * - col1 * - 53 + col0 FROM tab0 cor0
----
109449
179971
429418
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3974
SELECT ALL - col0 + - CAST( col2 + + col1 AS SIGNED ) * col2 AS col1 FROM tab1 AS cor0
----
-10544
-3883
-4323
skipif mysql # not compatible
query I rowsort label-3974
SELECT ALL - col0 + - CAST ( col2 + + col1 AS INTEGER ) * col2 AS col1 FROM tab1 AS cor0
----
-10544
-3883
-4323
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3975
SELECT ALL col2 * + CAST( NULL AS DECIMAL ) AS col1 FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3975
SELECT ALL col2 * + CAST ( NULL AS REAL ) AS col1 FROM tab2 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT col0 * + col1 * tab2.col0 FROM tab2
----
106097
1519
358956
query I rowsort
SELECT DISTINCT + 59 AS col2 FROM tab1, tab0, tab1 AS cor0
----
59
onlyif mysql # use DIV operator for integer division
query I rowsort label-3978
SELECT ALL + col0 DIV - col1 AS col1 FROM tab2
----
-1
-4
0
skipif mysql # not compatible
query I rowsort label-3978
SELECT ALL + col0 / - col1 AS col1 FROM tab2
----
-1
-4
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-3979
SELECT + col0 DIV + 55 + col1 * - col0 FROM tab2
----
-1342
-217
-4601
skipif mysql # not compatible
query I rowsort label-3979
SELECT + col0 / + 55 + col1 * - col0 FROM tab2
----
-1342
-217
-4601
onlyif mysql # use DIV operator for integer division
query I rowsort label-3980
SELECT + + col1 + - 83 * - cor0.col1 + - col1 DIV - 89 AS col1 FROM tab0 AS cor0
----
7224
7645
8149
skipif mysql # not compatible
query I rowsort label-3980
SELECT + + col1 + - 83 * - cor0.col1 + - col1 / - 89 AS col1 FROM tab0 AS cor0
----
7224
7645
8149
onlyif mysql # use DIV operator for integer division
query I rowsort label-3981
SELECT - col1 DIV - 23 + - 24 col2 FROM tab2 AS cor0
----
-22
-23
-24
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3981
SELECT - col1 / - 23 + - 24 col2 FROM tab2 AS cor0
----
-22
-23
-24
onlyif mysql # use DIV operator for integer division
query I rowsort label-3982
SELECT + col0 DIV + 87 FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-3982
SELECT + col0 / + 87 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT + col1 * col0 * col0 FROM tab0 AS cor0
----
118825
49536
720811
query I rowsort
SELECT ALL - 93 FROM tab0, tab1 AS cor0
----
9 values hashing to 38f445d95788c7dc754ff688a62df03b
query I rowsort
SELECT + - ( - 26 ) AS col2 FROM tab1 AS cor0
----
26
26
26
query I rowsort
SELECT ALL col1 * - col2 - 19 * ( col2 ) AS col1 FROM tab2
----
-1350
-1368
-2028
query I rowsort
SELECT DISTINCT 78 - tab0.col0 AS col0 FROM tab0
----
-11
43
54
query I rowsort
SELECT - - 8 * col1 AS col2 FROM tab1 AS cor0
----
104
208
80
query I rowsort
SELECT ALL 26 * + col0 FROM tab2 AS cor0
----
182
2028
2054
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + col2 * - col2 col2 FROM tab1 AS cor0
----
-2890
-3239
-9203
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 27 col0 FROM tab2 AS cor0
----
27
27
27
query I rowsort
SELECT - col0 + - col1 + + col2 * col1 FROM tab2 AS cor0
----
1397
550
799
query I rowsort
SELECT ALL ( col1 ) * - ( col0 * col2 ) AS col1 FROM tab2
----
-119652
-51034
-5859
query I rowsort
SELECT DISTINCT col2 - + col1 * - col2 AS col2 FROM tab0 cor0
----
2871
7544
98
query I rowsort
SELECT ALL col0 + - cor0.col2 AS col1 FROM tab0 cor0
----
-9
34
7
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + col1 + + ( - 9 ) col2 FROM tab2 AS cor0
----
128
29
87
query I rowsort
SELECT DISTINCT - col2 * - col2 - col2 FROM tab1 AS cor0
----
2862
3192
9120
query I rowsort
SELECT ALL + col1 + - cor0.col2 * col1 + + 47 FROM tab0 AS cor0
----
-2705
-7324
47
query I rowsort
SELECT DISTINCT + col1 * + col1 + col2 FROM tab1 AS cor0
----
157
265
730
query I rowsort
SELECT ALL + col1 * 53 FROM tab1 AS cor0
----
1378
530
689
query I rowsort
SELECT + col1 * - 93 - - col1 AS col0 FROM tab1 AS cor0
----
-1196
-2392
-920
query I rowsort
SELECT - + ( col2 ) AS col2 FROM tab0 AS cor0
----
-1
-33
-82
query I rowsort
SELECT cor0.col1 * 36 AS col1 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 0fa9abbbdb37777fad072b1ef1080c94
query I rowsort
SELECT + - ( + 60 ) AS col0 FROM tab1 AS cor0
----
-60
-60
-60
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4005
SELECT DISTINCT + CAST( - 95 AS SIGNED ) + col2 FROM tab0 cor0
----
-13
-62
-94
skipif mysql # not compatible
query I rowsort label-4005
SELECT DISTINCT + CAST ( - 95 AS INTEGER ) + col2 FROM tab0 cor0
----
-13
-62
-94
query I rowsort
SELECT 4 * - 75 * + col0 + tab2.col2 AS col1 FROM tab2
----
-2073
-23374
-23662
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * ( - col2 ) col1 FROM tab0 AS cor0
----
1
1089
6724
query I rowsort
SELECT + cor1.col0 AS col0 FROM tab1, tab1 AS cor0, tab0 cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * + 65 col0 FROM tab0
----
2145
5330
65
query I rowsort
SELECT ALL + ( col2 ) - col0 FROM tab2 AS cor0
----
-41
-52
20
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4011
SELECT DISTINCT + CAST( NULL AS SIGNED ) * cor0.col2 + - col1 * col2 AS col1 FROM tab0 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-4011
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * cor0.col2 + - col1 * col2 AS col1 FROM tab0 cor0
----
NULL
query I rowsort
SELECT ALL - ( ( - col0 ) ) * + ( - 92 ) - - cor0.col0 FROM tab0 AS cor0
----
-2184
-3185
-8099
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 87 * col2 col1 FROM tab0
----
2871
7134
87
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4014
SELECT CAST( col1 AS SIGNED ) AS col2 FROM tab1
----
10
13
26
skipif mysql # not compatible
query I rowsort label-4014
SELECT CAST ( col1 AS INTEGER ) AS col2 FROM tab1
----
10
13
26
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4015
SELECT ALL - ( - col1 ) * CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4015
SELECT ALL - ( - col1 ) * CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - + cor0.col2 + - col2 AS col1 FROM tab0 cor0
----
-164
-2
-66
query I rowsort
SELECT + + 43 * + cor0.col1 * col0 AS col1 FROM tab0 AS cor0
----
145985
348257
88752
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col2 * col2 col0 FROM tab0 AS cor0
----
-1
-1089
-6724
query I rowsort
SELECT ALL col2 * + ( - col1 ) FROM tab0
----
-2838
-7462
-97
query I rowsort
SELECT DISTINCT + ( 79 + col2 ) AS col2 FROM tab1
----
133
136
175
query I rowsort
SELECT ALL - col0 * 92 FROM tab0
----
-2208
-3220
-8188
query I rowsort
SELECT - cor0.col0 FROM tab2 AS cor0 CROSS JOIN tab2, tab2 AS cor1
----
27 values hashing to c82df1de3cb666224690a83f3d790d79
query I rowsort
SELECT + 52 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 7f4ae30893ab330784829711032ae599
query I rowsort
SELECT ALL + col0 + - col1 + col0 FROM tab2
----
-17
141
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-4025
SELECT DISTINCT col2 DIV - 85 + - col1 AS col1 FROM tab1
----
-10
-14
-26
skipif mysql # not compatible
query I rowsort label-4025
SELECT DISTINCT col2 / - 85 + - col1 AS col1 FROM tab1
----
-10
-14
-26
query I rowsort
SELECT - col0 + - col2 + col0 AS col0 FROM tab2
----
-26
-27
-38
onlyif mysql # use DIV operator for integer division
query I rowsort label-4027
SELECT - tab0.col1 DIV - col1 AS col2 FROM tab0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-4027
SELECT - tab0.col1 / - col1 AS col2 FROM tab0
----
1
1
1
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4028
SELECT ALL CAST( NULL AS SIGNED ) * col0 / - col2 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-4028
SELECT ALL CAST ( NULL AS INTEGER ) * col0 / - col2 col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - + col0 * + 85 FROM tab2 AS cor0
----
-595
-6630
-6715
onlyif mysql # use DIV operator for integer division
query I rowsort label-4030
SELECT + col2 DIV - 87 FROM tab1 AS cor0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-4030
SELECT + col2 / - 87 FROM tab1 AS cor0
----
-1
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4031
SELECT DISTINCT CAST( NULL AS SIGNED ) * - 55 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-4031
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - 55 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT cor0.col0 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd
query I rowsort
SELECT DISTINCT 54 + col1 AS col1 FROM tab2 cor0
----
113
71
85
query I rowsort
SELECT DISTINCT col1 * + col0 * + ( - col2 * col1 ) FROM tab1 AS cor0
----
-109512
-1297920
-364800
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4035
SELECT ALL + ( + col2 ) * + col1 + - 0 + - col2 / CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4035
SELECT ALL + ( + col2 ) * + col1 + - 0 + - col2 / CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + - col0 * + 52 + - col0 + + col2 * 88 AS col2 FROM tab0 AS cor0
----
-1767
1632
2499
query I rowsort
SELECT + + col0 * + col0 + + col2 AS col0 FROM tab2 AS cor0
----
6110
6279
76
query I rowsort
SELECT ALL col1 * - ( - cor0.col0 ) + col1 FROM tab1 AS cor0
----
104
1053
650
onlyif mysql # use DIV operator for integer division
query I rowsort label-4039
SELECT DISTINCT - col2 * cor0.col2 DIV 93 FROM tab1 AS cor0
----
-31
-34
-99
skipif mysql # not compatible
query I rowsort label-4039
SELECT DISTINCT - col2 * cor0.col2 / 93 FROM tab1 AS cor0
----
-31
-34
-99
query I rowsort
SELECT DISTINCT col1 - + cor0.col1 FROM tab2 AS cor0
----
0
query I rowsort
SELECT ALL + - cor0.col1 * cor0.col2 * col2 + - col1 AS col2 FROM tab2 cor0
----
-22630
-24565
-39943
query I rowsort
SELECT DISTINCT col0 * col1 + - col2 * + col2 AS col2 FROM tab0 AS cor0
----
1375
3394
975
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4043
SELECT + - col2 + CAST( 85 AS SIGNED ) col2 FROM tab1 AS cor0
----
-11
28
31
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4043
SELECT + - col2 + CAST ( 85 AS INTEGER ) col2 FROM tab1 AS cor0
----
-11
28
31
query I rowsort
SELECT ALL - col0 * - 28 + 87 AS col0 FROM tab0 AS cor0
----
1067
2579
759
query I rowsort
SELECT DISTINCT cor0.col2 - tab0.col0 FROM tab0, tab2 AS cor0
----
-51
-62
-63
-8
-9
14
2
3
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 87 + col0 col1 FROM tab1
----
151
167
90
query I rowsort
SELECT ALL + col1 + col1 * 43 FROM tab1
----
1144
440
572
query I rowsort
SELECT - cor0.col2 + ( + col2 * + col1 ) + - cor0.col2 AS col1 FROM tab1 cor0
----
1056
1296
456
query I rowsort
SELECT - col0 * - 81 + + 74 AS col0 FROM tab1 AS cor0
----
317
5258
6554
query I rowsort
SELECT - col0 * 78 + 35 FROM tab0 AS cor0
----
-1837
-2695
-6907
onlyif mysql # use DIV operator for integer division
query I rowsort label-4051
SELECT - cor1.col2 DIV - 29 AS col0 FROM tab1, tab2 AS cor0, tab1 AS cor1, tab1 cor2
----
81 values hashing to f76c5f8daac958e204ed8d5ac004864c
skipif mysql # not compatible
query I rowsort label-4051
SELECT - cor1.col2 / - 29 AS col0 FROM tab1, tab2 AS cor0, tab1 AS cor1, tab1 cor2
----
81 values hashing to f76c5f8daac958e204ed8d5ac004864c
query I rowsort
SELECT DISTINCT col1 * + 0 * col0 FROM tab0
----
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4053
SELECT + ( + col2 ) + + CAST( NULL AS SIGNED ) col0 FROM tab0 cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4053
SELECT + ( + col2 ) + + CAST ( NULL AS INTEGER ) col0 FROM tab0 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - - 74 * + col2 AS col1 FROM tab0 cor0
----
2442
6068
74
query I rowsort
SELECT ALL + 8 AS col2 FROM tab2 AS cor0
----
8
8
8
query I rowsort
SELECT DISTINCT - + col1 + col2 FROM tab2 cor0
----
-33
-4
21
query I rowsort
SELECT + 17 + col0 + - cor0.col2 FROM tab2 AS cor0
----
-3
58
69
query I rowsort
SELECT col2 * + tab2.col1 + col0 + + tab2.col2 FROM tab2
----
1638
763
871
query I rowsort
SELECT - col2 * 40 * col2 AS col2 FROM tab0
----
-268960
-40
-43560
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4060
SELECT + col1 * col2 - CAST( - col2 AS SIGNED ) FROM tab2 AS cor0
----
1560
684
864
skipif mysql # not compatible
query I rowsort label-4060
SELECT + col1 * col2 - CAST ( - col2 AS INTEGER ) FROM tab2 AS cor0
----
1560
684
864
query I rowsort
SELECT 57 + col0 * + 10 + col0 FROM tab0
----
1036
321
442
query I rowsort
SELECT DISTINCT 45 * - col2 AS col2 FROM tab1
----
-2430
-2565
-4320
query I rowsort
SELECT - col1 + + ( - 11 ) AS col0 FROM tab0 AS cor0
----
-102
-108
-97
query I rowsort
SELECT ALL - cor1.col1 AS col0 FROM tab1, tab1 cor0, tab2 AS cor1
----
27 values hashing to 6e0b7d583bc2c53842166d3e6ba2d6d2
query I rowsort
SELECT DISTINCT + 13 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
13
query I rowsort
SELECT DISTINCT col2 * col2 - - 84 AS col0 FROM tab2
----
1528
760
813
query I rowsort
SELECT DISTINCT ( - col0 ) + ( 45 ) * + col2 FROM tab1 AS cor0
----
2427
2501
4240
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col2 * - col2 col0 FROM tab2 cor0
----
1444
676
729
query I rowsort
SELECT ALL col0 + - col0 * - col0 FROM tab1 AS cor0
----
12
4160
6480
query I rowsort
SELECT ALL - ( + col1 ) * 95 - + col1 AS col1 FROM tab2 cor0
----
-1632
-2976
-5664
query I rowsort
SELECT ALL + - col1 - + col1 * + col0 * - col2 AS col0 FROM tab1 cor0
----
36470
4186
99827
query I rowsort
SELECT DISTINCT - col2 + + 6 AS col2 FROM tab2 AS cor0
----
-20
-21
-32
onlyif mysql # use DIV operator for integer division
query I rowsort label-4073
SELECT ALL - - cor0.col1 DIV ( + col0 ) FROM tab0 AS cor0
----
1
2
3
skipif mysql # not compatible
query I rowsort label-4073
SELECT ALL - - cor0.col1 / ( + col0 ) FROM tab0 AS cor0
----
1
2
3
query I rowsort
SELECT - col2 * + col0 + - col0 * col0 AS col0 FROM tab2 AS cor0
----
-238
-8112
-9243
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4075
SELECT DISTINCT - col1 / CAST( NULL AS DECIMAL ) + + col1 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-4075
SELECT DISTINCT - col1 / CAST ( NULL AS REAL ) + + col1 FROM tab1 AS cor0
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-4076
SELECT DISTINCT col0 DIV 68 + + cor0.col1 + col2 * + col0 FROM tab2 AS cor0
----
2088
220
3020
skipif mysql # not compatible
query I rowsort label-4076
SELECT DISTINCT col0 / 68 + + cor0.col1 + col2 * + col0 FROM tab2 AS cor0
----
2088
220
3020
query I rowsort
SELECT - col2 - cor0.col1 AS col1 FROM tab0 cor0
----
-119
-173
-98
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + 87 col2 FROM tab2 AS cor0
----
49
60
61
query I rowsort
SELECT ALL + col2 * 56 AS col2 FROM tab0 AS cor0
----
1848
4592
56
query I rowsort
SELECT + col0 + - col0 - 51 FROM tab1
----
-51
-51
-51
query I rowsort
SELECT DISTINCT + tab2.col0 * + col1 - + ( col1 ) * - col0 FROM tab2
----
2686
434
9204
query I rowsort
SELECT ALL + 64 FROM tab0, tab2, tab2 AS cor0
----
27 values hashing to c8b19f4c3ff38700cd2bb8a077bf29b9
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 13 col0 FROM tab1 AS cor0
----
13
13
13
query I rowsort
SELECT DISTINCT col1 + cor0.col2 * col2 AS col1 FROM tab0 AS cor0
----
1175
6815
98
query I rowsort
SELECT DISTINCT + + 17 * + cor0.col1 FROM tab2 AS cor0
----
1003
289
527
query I rowsort
SELECT + ( - col0 ) * col0 * 35 AS col2 FROM tab1 AS cor0
----
-143360
-224000
-315
query I rowsort
SELECT - 48 + + col2 FROM tab2 AS cor0
----
-10
-21
-22
query I rowsort
SELECT - - 40 * col1 * - col0 FROM tab0 AS cor0
----
-135800
-323960
-82560
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4089
SELECT CAST( NULL AS SIGNED ) + col1 * + col0 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4089
SELECT CAST ( NULL AS INTEGER ) + col1 * + col0 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - col1 * 15 FROM tab1
----
-150
-195
-390
query I rowsort
SELECT ALL - 6 * - 40 FROM tab2 AS cor0
----
240
240
240
query I rowsort
SELECT ALL + col1 - - col0 FROM tab2 cor0
----
137
38
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 17 col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 490d008f3fb5b70d3971cfc6d84503f4
query I rowsort
SELECT ALL + 1 * + col0 FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT - + 31 * - col1 AS col0 FROM tab1 AS cor0
----
310
403
806
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col1 col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to c61d27a0022e6d022371dc58819ab272
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + 74 col0 FROM tab2
----
36
47
48
onlyif mysql # use DIV operator for integer division
query I rowsort label-4098
SELECT + col1 + col2 DIV col0 AS col1 FROM tab2 AS cor0
----
17
34
59
skipif mysql # not compatible
query I rowsort label-4098
SELECT + col1 + col2 / col0 AS col1 FROM tab2 AS cor0
----
17
34
59
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 30 col1 FROM tab0 AS cor0
----
30
30
30
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 91 col1 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
91
query I rowsort
SELECT ALL 34 * col2 AS col2 FROM tab1
----
1836
1938
3264
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col1 + col1 * col1 col1 FROM tab2 AS cor0
----
272
3422
930
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 85 + col1 col0 FROM tab0 AS cor0
----
171
176
182
query I rowsort
SELECT ALL - 69 * - col2 FROM tab2 cor0
----
1794
1863
2622
query I rowsort
SELECT ALL cor0.col0 * + col1 * col0 AS col0 FROM tab0 AS cor0
----
118825
49536
720811
query I rowsort
SELECT ALL 28 + col2 FROM tab1 AS cor0
----
124
82
85
query I rowsort
SELECT DISTINCT + cor0.col1 * ( + cor1.col0 ) FROM tab0 AS cor0 CROSS JOIN tab2, tab0 AS cor1
----
9 values hashing to 116454f2268e21c1351daf3f5803c987
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4108
SELECT ALL tab2.col2 * CAST( NULL AS SIGNED ) + + col0 AS col0 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4108
SELECT ALL tab2.col2 * CAST ( NULL AS INTEGER ) + + col0 AS col0 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + col0 + - col0 * 48 + cor0.col2 AS col0 FROM tab1 AS cor0
----
-2951
-3664
-87
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4110
SELECT + - col1 - + CAST( NULL AS SIGNED ) AS col0 FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4110
SELECT + - col1 - + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col0 + 18 col0 FROM tab2 AS cor0
----
-60
-61
11
query I rowsort
SELECT DISTINCT - + col0 + 30 FROM tab2 cor0
----
-48
-49
23
query I rowsort
SELECT DISTINCT col1 * col2 + + col0 FROM tab1
----
1328
1407
634
skipif mysql # not compatible
query I rowsort
SELECT - CAST ( col1 AS REAL ) AS col1 FROM tab1 AS cor0
----
-10
-13
-26
query I rowsort
SELECT + col1 * col2 + + col2 * 5 FROM tab2 AS cor0
----
1664
836
972
query I rowsort
SELECT DISTINCT - 68 * - ( col0 ) FROM tab0 AS cor0
----
1632
2380
6052
query I rowsort
SELECT DISTINCT 40 * + 72 FROM tab2 AS cor0
----
2880
query I rowsort
SELECT + col1 * + 12 AS col2 FROM tab0 AS cor0
----
1032
1092
1164
query I rowsort
SELECT ALL + col1 * + 79 FROM tab0 AS cor0
----
6794
7189
7663
query I rowsort
SELECT ALL + col0 + col0 * + col1 AS col2 FROM tab2 AS cor0
----
1422
224
4680
query I rowsort
SELECT DISTINCT 15 AS col2 FROM tab0, tab1 AS cor0
----
15
query I rowsort
SELECT DISTINCT + - col2 + col2 AS col0 FROM tab0 AS cor0
----
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4123
SELECT ( 27 ) * col1 / + ( 51 ) + col1 / + CAST( NULL AS DECIMAL ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4123
SELECT ( 27 ) * col1 / + ( 51 ) + col1 / + CAST ( NULL AS REAL ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + col0 + - col2 * - col0 AS col2 FROM tab1 AS cor0
----
165
3712
7760
query I rowsort
SELECT DISTINCT + ( - cor0.col2 ) AS col0 FROM tab0 AS cor0
----
-1
-33
-82
onlyif mysql # use DIV operator for integer division
query I rowsort label-4126
SELECT - col2 DIV + 16 AS col0 FROM tab1 AS cor0
----
-3
-3
-6
skipif mysql # not compatible
query I rowsort label-4126
SELECT - col2 / + 16 AS col0 FROM tab1 AS cor0
----
-3
-3
-6
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4127
SELECT - CAST( - col2 AS SIGNED ) + col0 AS col0 FROM tab0 cor0
----
171
36
57
skipif mysql # not compatible
query I rowsort label-4127
SELECT - CAST ( - col2 AS INTEGER ) + col0 AS col0 FROM tab0 cor0
----
171
36
57
query I rowsort
SELECT ALL + + col2 + ( col1 ) FROM tab2 AS cor0
----
55
58
85
query I rowsort
SELECT col0 + cor0.col2 * col1 AS col2 FROM tab1 AS cor0
----
1328
1407
634
query I rowsort
SELECT + col2 * ( - ( col0 ) ) FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT - + col2 * - col0 AS col1 FROM tab1 AS cor0
----
162
3648
7680
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4132
SELECT - col0 * CAST( - col2 AS SIGNED ) FROM tab1 AS cor0
----
162
3648
7680
skipif mysql # not compatible
query I rowsort label-4132
SELECT - col0 * CAST ( - col2 AS INTEGER ) FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT ALL + - cor0.col0 + col2 - - col0 * col1 FROM tab1 cor0
----
1056
129
633
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4134
SELECT - cor0.col1 * CAST( 46 AS SIGNED ) + + col2 AS col2 FROM tab1 cor0
----
-1142
-403
-502
skipif mysql # not compatible
query I rowsort label-4134
SELECT - cor0.col1 * CAST ( 46 AS INTEGER ) + + col2 AS col2 FROM tab1 cor0
----
-1142
-403
-502
query I rowsort
SELECT + + col2 * - 72 + - col1 FROM tab2 AS cor0
----
-1931
-1975
-2753
query I rowsort
SELECT - + col1 * - 1 AS col2 FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT + col0 * + ( + 75 ) + + col0 * col2 AS col0 FROM tab2
----
714
7878
8927
query I rowsort
SELECT + cor0.col0 + + col0 + - 40 FROM tab2 AS cor0
----
-26
116
118
query I rowsort
SELECT ALL + col2 + + tab1.col1 * col1 * + col2 + + col0 AS col1 FROM tab1
----
16400
36561
5821
onlyif mysql # use DIV operator for integer division
query I rowsort label-4140
SELECT ALL - col0 * col0 + - col2 - tab2.col2 DIV col1 FROM tab2
----
-6110
-6281
-76
skipif mysql # not compatible
query I rowsort label-4140
SELECT ALL - col0 * col0 + - col2 - tab2.col2 / col1 FROM tab2
----
-6110
-6281
-76
query I rowsort
SELECT + col1 * - cor0.col0 + col0 * - col1 FROM tab1 AS cor0
----
-1280
-156
-2080
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab1 AS cor0, tab1 AS cor1, tab2, tab2 cor2
----
3645 values hashing to 1a92b418ae3c05ba566f88a890a407ae
query I rowsort
SELECT - col1 * + col0 + + ( - 28 ) AS col0 FROM tab1 AS cor0
----
-106
-1068
-668
query III rowsort
SELECT * FROM tab0 WHERE NOT NULL < ( col1 )
----
query I rowsort
SELECT ALL col2 + col0 FROM tab1 WHERE ( NULL ) >= ( NULL )
----
query I rowsort
SELECT DISTINCT + col2 + - tab0.col2 AS col1 FROM tab0
----
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 - + col1 * - tab0.col2 col0 FROM tab0
----
132
2862
7551
query I rowsort
SELECT DISTINCT - col0 AS col0 FROM tab1 WHERE NULL >= ( col0 )
----
query I rowsort
SELECT DISTINCT col1 + col1 * col1 + - col0 FROM tab1
----
102
46
699
query I rowsort
SELECT col0 + col2 * - tab1.col0 FROM tab1
----
-159
-3584
-7600
query III rowsort
SELECT * FROM tab1 WHERE NULL IN ( col1 / col2 )
----
query I rowsort
SELECT ALL ( + col0 + ( col1 ) ) AS col0 FROM tab1
----
29
74
93
query I rowsort
SELECT DISTINCT - + 10 * col2 AS col2 FROM tab0 AS cor0
----
-10
-330
-820
onlyif mysql # use DIV operator for integer division
query I rowsort label-4154
SELECT - + col2 DIV col0 + - 25 AS col2 FROM tab0 cor0
----
-25
-25
-26
skipif mysql # not compatible
query I rowsort label-4154
SELECT - + col2 / col0 + - 25 AS col2 FROM tab0 cor0
----
-25
-25
-26
query I rowsort
SELECT ALL + 70 * + col1 FROM tab1 AS cor0
----
1820
700
910
query I rowsort
SELECT - - cor0.col2 FROM tab0, tab0 cor0
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8
query I rowsort
SELECT DISTINCT 71 * - col1 AS col2 FROM tab2 AS cor0
----
-1207
-2201
-4189
query I rowsort
SELECT 15 FROM tab1, tab2 AS cor0, tab2 cor1
----
27 values hashing to 71dda9a71fc978ea7b0ac5d8cd2ef1f0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 18 col0 FROM tab1
----
18
18
18
query I rowsort
SELECT - cor1.col1 + - 9 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to b885dca8ab217ed440d015d3318f6888
query I rowsort
SELECT - col1 * - ( + col1 ) + + col2 * - col0 + - col1 AS col2 FROM tab0 cor0
----
6518
892
9277
query I rowsort
SELECT - col2 + col2 * - 53 AS col1 FROM tab1 AS cor0
----
-2916
-3078
-5184
query I rowsort
SELECT DISTINCT tab1.col2 AS col1 FROM tab1, tab2 cor0
----
54
57
96
query I rowsort
SELECT DISTINCT + + 95 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
95
query I rowsort
SELECT col0 * + 3 FROM tab0
----
105
267
72
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4166
SELECT - col0 + CAST( NULL AS DECIMAL ) * + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4166
SELECT - col0 + CAST ( NULL AS REAL ) * + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + cor0.col0 + cor0.col1 AS col2 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 30d7054d1d16cc0cd2af7741ad06735e
query I rowsort
SELECT col2 + ( col1 + + col2 ) FROM tab1 AS cor0
----
124
134
205
query I rowsort
SELECT ALL - 54 * col1 AS col1 FROM tab1
----
-1404
-540
-702
query I rowsort
SELECT + 94 + + col0 AS col1 FROM tab2 AS cor0
----
101
172
173
query I rowsort
SELECT - 4 - - col1 AS col1 FROM tab1 AS cor0
----
22
6
9
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 74 * col1 + col1 + col1 col2 FROM tab0 cor0
----
6536
6916
7372
onlyif mysql # use DIV operator for integer division
query I rowsort label-4173
SELECT - - ( - col0 ) DIV 48 + cor0.col2 - - col2 AS col1 FROM tab0 AS cor0
----
163
2
66
skipif mysql # not compatible
query I rowsort label-4173
SELECT - - ( - col0 ) / 48 + cor0.col2 - - col2 AS col1 FROM tab0 AS cor0
----
163
2
66
query I rowsort
SELECT DISTINCT col1 + - 87 AS col0 FROM tab1
----
-61
-74
-77
onlyif mysql # use DIV operator for integer division
query I rowsort label-4175
SELECT DISTINCT + ( col0 ) * col0 * tab1.col2 + 67 + + col2 DIV - 94 AS col1 FROM tab1
----
233539
553
614466
skipif mysql # not compatible
query I rowsort label-4175
SELECT DISTINCT + ( col0 ) * col0 * tab1.col2 + 67 + + col2 / - 94 AS col1 FROM tab1
----
233539
553
614466
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4176
SELECT CAST( ( col2 ) AS SIGNED ) * ( + col1 ) FROM tab0
----
2838
7462
97
skipif mysql # not compatible
query I rowsort label-4176
SELECT CAST ( ( col2 ) AS INTEGER ) * ( + col1 ) FROM tab0
----
2838
7462
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col0 * col0 + - cor0.col0 * - col1 col2 FROM tab2 AS cor0
----
10686
266
7584
query I rowsort
SELECT + tab0.col1 + + col2 * col2 * + col1 FROM tab0
----
194
611975
93740
query I rowsort
SELECT DISTINCT + - cor0.col0 AS col1 FROM tab1, tab2, tab0 AS cor0
----
-24
-35
-89
query I rowsort
SELECT - cor0.col2 * 72 FROM tab1 AS cor0
----
-3888
-4104
-6912
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4181
SELECT DISTINCT + - CAST( col0 AS SIGNED ) * col1 AS col1 FROM tab0 AS cor0
----
-2064
-3395
-8099
skipif mysql # not compatible
query I rowsort label-4181
SELECT DISTINCT + - CAST ( col0 AS INTEGER ) * col1 AS col1 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT DISTINCT - 68 * + col0 AS col2 FROM tab1 AS cor0
----
-204
-4352
-5440
query I rowsort
SELECT + ( + 90 ) FROM tab0 cor0
----
90
90
90
query I rowsort
SELECT DISTINCT - col1 + + ( - cor0.col1 ) * 8 FROM tab0 AS cor0
----
-774
-819
-873
query I rowsort
SELECT + col0 * 79 FROM tab2 AS cor0
----
553
6162
6241
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4186
SELECT DISTINCT CAST( NULL AS DECIMAL ) AS col0 FROM tab1, tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-4186
SELECT DISTINCT CAST ( NULL AS REAL ) AS col0 FROM tab1, tab1 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT - + 80 * - cor0.col0 - + col2 FROM tab1 AS cor0
----
186
5063
6304
query I rowsort
SELECT + + col2 * - 56 FROM tab2 AS cor0
----
-1456
-1512
-2128
onlyif mysql # use DIV operator for integer division
query I rowsort label-4189
SELECT DISTINCT + cor0.col0 DIV 52 + - col1 FROM tab0 AS cor0
----
-86
-90
-97
skipif mysql # not compatible
query I rowsort label-4189
SELECT DISTINCT + cor0.col0 / 52 + - col1 FROM tab0 AS cor0
----
-86
-90
-97
query I rowsort
SELECT DISTINCT col2 * col0 * + col2 AS col2 FROM tab2 cor0
----
114076
5103
52728
query I rowsort
SELECT + col1 * col0 + + 10 + cor0.col1 FROM tab1 AS cor0
----
1063
114
660
query I rowsort
SELECT + col1 + - col1 * + 25 FROM tab0 AS cor0
----
-2064
-2184
-2328
onlyif mysql # use DIV operator for integer division
query I rowsort label-4193
SELECT - col1 + col1 * + col1 + + col2 DIV col0 FROM tab1 AS cor0
----
157
668
90
skipif mysql # not compatible
query I rowsort label-4193
SELECT - col1 + col1 * + col1 + + col2 / col0 FROM tab1 AS cor0
----
157
668
90
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor1.col1 col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to ccaa5dd3388d9ee0fea676fa35299fe5
query I rowsort
SELECT + + ( col1 ) + - 73 AS col0 FROM tab0 AS cor0
----
13
18
24
query I rowsort
SELECT ALL + col0 * col0 + col0 * + ( col0 ) * - ( col2 ) + - col0 AS col0 FROM tab1 AS cor0
----
-229440
-480
-608080
query I rowsort
SELECT DISTINCT + 32 + col2 + 6 * 67 AS col2 FROM tab1 AS cor0
----
488
491
530
query I rowsort
SELECT 45 * col2 + ( col1 * - col0 ) FROM tab1 cor0
----
1925
2352
3280
query I rowsort
SELECT 90 * col2 AS col2 FROM tab1 AS cor0
----
4860
5130
8640
query I rowsort
SELECT ALL + + ( + cor0.col2 ) + 19 AS col2 FROM tab0 AS cor0
----
101
20
52
onlyif mysql # use DIV operator for integer division
query I rowsort label-4201
SELECT DISTINCT - ( cor0.col2 ) + col2 * - 36 * col1 + - CAST( - 55 AS SIGNED ) DIV - col1 FROM tab0 AS cor0
----
-102201
-268714
-3493
skipif mysql # not compatible
query I rowsort label-4201
SELECT DISTINCT - ( cor0.col2 ) + col2 * - 36 * col1 + - CAST ( - 55 AS INTEGER ) / - col1 FROM tab0 AS cor0
----
-102201
-268714
-3493
query I rowsort
SELECT - - col2 * + ( - col0 ) + + col1 AS col0 FROM tab0 cor0
----
-706
-7207
62
query I rowsort
SELECT DISTINCT + col0 * + col2 + + col1 FROM tab1 AS cor0
----
188
3658
7693
query I rowsort
SELECT DISTINCT - - col2 * col2 + + 75 AS col1 FROM tab0 AS cor0
----
1164
6799
76
query I rowsort
SELECT ALL col1 * 13 * - col1 - col2 AS col2 FROM tab2 AS cor0
----
-12520
-3795
-45279
query I rowsort
SELECT + 75 + cor0.col1 AS col0 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 78f7b3d0836f868c586d037c7088b87a
query I rowsort
SELECT ALL - + 78 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to b6e4cc21599216686f0cf45b85668b2c
query I rowsort
SELECT ALL + col1 + - 5 FROM tab0 AS cor0
----
81
86
92
onlyif mysql # use DIV operator for integer division
query I rowsort label-4209
SELECT col2 + col0 DIV 27 + cor0.col2 FROM tab0 cor0
----
167
3
66
skipif mysql # not compatible
query I rowsort label-4209
SELECT col2 + col0 / 27 + cor0.col2 FROM tab0 cor0
----
167
3
66
query I rowsort
SELECT + - col0 * - 55 FROM tab0 AS cor0
----
1320
1925
4895
onlyif mysql # use DIV operator for integer division
query I rowsort label-4211
SELECT cor0.col0 DIV CAST( col1 + - col0 AS SIGNED ) FROM tab2 AS cor0
----
-1
-4
0
skipif mysql # not compatible
query I rowsort label-4211
SELECT cor0.col0 / CAST ( col1 + - col0 AS INTEGER ) FROM tab2 AS cor0
----
-1
-4
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 col2 FROM tab0 cor0
----
86
91
97
query I rowsort
SELECT DISTINCT - - col2 * + 44 AS col0 FROM tab0 AS cor0
----
1452
3608
44
query I rowsort
SELECT ALL - cor0.col1 * + 26 + 50 FROM tab0 AS cor0
----
-2186
-2316
-2472
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4215
SELECT ALL - col1 * + CAST( cor0.col0 AS SIGNED ) FROM tab1 AS cor0
----
-1040
-640
-78
skipif mysql # not compatible
query I rowsort label-4215
SELECT ALL - col1 * + CAST ( cor0.col0 AS INTEGER ) FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT + 7 - + col2 FROM tab0
----
-26
-75
6
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4217
SELECT col1 * col0 * CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4217
SELECT col1 * col0 * CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT - col0 * + col0 + col2 * tab2.col0 AS col2 FROM tab2
----
-3239
-4056
140
query I rowsort
SELECT ALL cor0.col2 + + 5 * + col2 FROM tab1 AS cor0
----
324
342
576
query I rowsort
SELECT ALL col2 + + ( - 28 ) - col0 FROM tab2 AS cor0
----
-69
-8
-80
query I rowsort
SELECT ALL + cor0.col1 AS col0 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775
query I rowsort
SELECT DISTINCT cor0.col1 * col0 * + col1 FROM tab0 AS cor0
----
177504
329315
737009
onlyif mysql # use DIV operator for integer division
query I rowsort label-4223
SELECT col1 + + cor0.col0 DIV + col0 AS col2 FROM tab1 AS cor0
----
11
14
27
skipif mysql # not compatible
query I rowsort label-4223
SELECT col1 + + cor0.col0 / + col0 AS col2 FROM tab1 AS cor0
----
11
14
27
onlyif mysql # use DIV operator for integer division
query I rowsort label-4224
SELECT ALL - col2 DIV 39 FROM tab1 AS cor0
----
-1
-1
-2
skipif mysql # not compatible
query I rowsort label-4224
SELECT ALL - col2 / 39 FROM tab1 AS cor0
----
-1
-1
-2
query I rowsort
SELECT + col1 * cor0.col0 + - col0 FROM tab0 AS cor0
----
2040
3360
8010
query I rowsort
SELECT 33 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 620d384286e82d1c6c8b1b2b109a7da5
query I rowsort
SELECT ( + tab0.col1 + - tab0.col2 ) * col0 * + col1 AS col2 FROM tab0
----
109392
325920
72891
query I rowsort
SELECT + - col2 + col0 + + col0 FROM tab2 AS cor0
----
-13
120
130
query I rowsort
SELECT - col1 + - col0 + col2 * + 90 * + cor0.col0 FROM tab2 AS cor0
----
16972
182383
270084
query I rowsort
SELECT DISTINCT - 61 FROM tab1, tab2 AS cor0 CROSS JOIN tab0
----
-61
query I rowsort
SELECT cor0.col0 - - cor0.col0 AS col1 FROM tab1, tab2 cor0
----
9 values hashing to 10977325261681ddca962e0a5d2b348b
query I rowsort
SELECT DISTINCT col2 + col2 * ( + col1 ) + + tab1.col2 AS col1 FROM tab1
----
1440
1512
684
query I rowsort
SELECT ALL 52 * col1 + - col0 * - col1 FROM tab0
----
12831
6536
8439
query I rowsort
SELECT ALL 7 + - col1 AS col2 FROM tab2
----
-10
-24
-52
query I rowsort
SELECT + col0 * col2 - - col2 * + ( + col0 * - col2 ) FROM tab0 AS cor0
----
-25344
-591138
0
query I rowsort
SELECT - - 25 FROM tab2, tab1 AS cor0
----
9 values hashing to 525a55d5ed224a62da65df36731881a7
query I rowsort
SELECT ALL 45 * - col0 + - ( col0 ) FROM tab2
----
-322
-3588
-3634
query I rowsort
SELECT DISTINCT + col2 + - col1 * col2 + - 98 FROM tab2
----
-1606
-706
-908
query I rowsort
SELECT col0 + col2 + ( - col0 ) * - tab0.col0 FROM tab0
----
1261
633
8092
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab2 AS cor0, tab1 AS cor1, tab1, tab2 cor2
----
3645 values hashing to 944e54872ec2718f5c1c2710e1806e36
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 60 * - 50 col1 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 51198c277726409af9ec62fb604a28ba
query I rowsort
SELECT ALL - 65 * col2 AS col2 FROM tab1 AS cor0
----
-3510
-3705
-6240
query I rowsort
SELECT DISTINCT - cor0.col1 * - col1 AS col2 FROM tab2 cor0
----
289
3481
961
query I rowsort
SELECT ALL + tab0.col1 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc
query I rowsort
SELECT DISTINCT - - 65 - - 67 AS col2 FROM tab1 AS cor0
----
132
query I rowsort
SELECT ALL ( 27 ) AS col2 FROM tab1 cor0
----
27
27
27
query I rowsort
SELECT DISTINCT + col0 * + 24 + - col2 FROM tab2 cor0
----
141
1846
1858
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4248
SELECT + CAST( NULL AS SIGNED ) + + col0 * - col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4248
SELECT + CAST ( NULL AS INTEGER ) + + col0 * - col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4249
SELECT ALL + CAST( + ( + col1 ) AS SIGNED ) * col1 FROM tab2 AS cor0
----
289
3481
961
skipif mysql # not compatible
query I rowsort label-4249
SELECT ALL + CAST ( + ( + col1 ) AS INTEGER ) * col1 FROM tab2 AS cor0
----
289
3481
961
onlyif mysql # use DIV operator for integer division
query I rowsort label-4250
SELECT DISTINCT col0 DIV + col0 + - col0 AS col1 FROM tab1 AS cor0
----
-2
-63
-79
skipif mysql # not compatible
query I rowsort label-4250
SELECT DISTINCT col0 / + col0 + - col0 AS col1 FROM tab1 AS cor0
----
-2
-63
-79
query I rowsort
SELECT ALL - col2 + col2 * - col0 FROM tab1 AS cor0
----
-216
-3705
-7776
query I rowsort
SELECT + + ( + col0 ) + + col2 AS col2 FROM tab2 AS cor0
----
104
117
34
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4253
SELECT - col0 + col1 * CAST( col2 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
2814
62
7373
skipif mysql # not compatible
query I rowsort label-4253
SELECT - col0 + col1 * CAST ( col2 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
2814
62
7373
query I rowsort
SELECT 62 * - col1 + + col2 AS col0 FROM tab2 AS cor0
----
-1016
-1895
-3632
query I rowsort
SELECT tab2.col1 AS col0 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d
query I rowsort
SELECT - 64 FROM tab2, tab2 cor0
----
9 values hashing to 601ec439a72fb4786a9cb7a6547ace5e
query I rowsort
SELECT ALL - cor0.col2 * col1 + col1 FROM tab0 AS cor0
----
-2752
-7371
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4258
SELECT + cor0.col1 - CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4258
SELECT + cor0.col1 - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL col0 + + 64 FROM tab1 AS cor0
----
128
144
67
onlyif mysql # use DIV operator for integer division
query I rowsort label-4260
SELECT DISTINCT col2 DIV col1 AS col2 FROM tab1 cor0
----
2
5
7
skipif mysql # not compatible
query I rowsort label-4260
SELECT DISTINCT col2 / col1 AS col2 FROM tab1 cor0
----
2
5
7
onlyif mysql # use DIV operator for integer division
query I rowsort label-4261
SELECT - - col2 * col0 - col1 DIV cor0.col2 AS col0 FROM tab0 cor0
----
-62
7297
790
skipif mysql # not compatible
query I rowsort label-4261
SELECT - - col2 * col0 - col1 / cor0.col2 AS col0 FROM tab0 cor0
----
-62
7297
790
query I rowsort
SELECT DISTINCT + col2 + + ( ( + tab2.col1 ) ) FROM tab2
----
55
58
85
query I rowsort
SELECT + col0 * 49 FROM tab1
----
147
3136
3920
query I rowsort
SELECT col2 + - col0 + col1 AS col1 FROM tab2
----
-24
51
7
query I rowsort
SELECT - ( col1 ) * col1 - + col2 * - ( - col0 * + ( + col2 ) ) AS col2 FROM tab1 AS cor0
----
-208036
-737449
-9424
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4266
SELECT - col2 * CAST( 82 AS SIGNED ) + - col1 FROM tab2
----
-2191
-2245
-3133
skipif mysql # not compatible
query I rowsort label-4266
SELECT - col2 * CAST ( 82 AS INTEGER ) + - col1 FROM tab2
----
-2191
-2245
-3133
query I rowsort
SELECT col0 * + col2 + 44 * + col2 AS col2 FROM tab1
----
11904
2538
6156
query I rowsort
SELECT ALL - col2 + 84 AS col1 FROM tab0
----
2
51
83
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4269
SELECT DISTINCT + col0 * CAST( NULL AS SIGNED ) + col2 / + tab2.col1 AS col0 FROM tab2
----
NULL
skipif mysql # not compatible
query I rowsort label-4269
SELECT DISTINCT + col0 * CAST ( NULL AS INTEGER ) + col2 / + tab2.col1 AS col0 FROM tab2
----
NULL
skipif mysql # not compatible
query I rowsort
SELECT CAST ( - cor0.col0 AS REAL ) * col2 AS col2 FROM tab0 cor0
----
-35
-7298
-792
query I rowsort
SELECT cor1.col2 FROM tab2 AS cor0 CROSS JOIN tab1, tab2 AS cor1, tab0 AS cor2
----
81 values hashing to c4e6b1f1d28e731664a15a6f7cda4da9
query I rowsort
SELECT 75 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 22042bfd4d787415457a42bb93d48eea
query I rowsort
SELECT + 6 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 5d1cb90ed58fa7573895d2f95b211821
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor1.col2 col0 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to f9d4bb8677db7b98c7ed89d06e6e8cd6
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4275
SELECT - CAST( col0 + - col1 AS SIGNED ) AS col2 FROM tab2
----
-19
-62
24
skipif mysql # not compatible
query I rowsort label-4275
SELECT - CAST ( col0 + - col1 AS INTEGER ) AS col2 FROM tab2
----
-19
-62
24
query I rowsort
SELECT ALL - ( 43 + tab0.col1 ) * 79 * 59 FROM tab0
----
-601269
-624574
-652540
query I rowsort
SELECT ( col0 ) * + col2 + - col0 * - col2 + + col2 * 54 FROM tab0
----
124
19024
3366
query I rowsort
SELECT DISTINCT + ( col1 ) * col0 - col1 * tab1.col2 FROM tab1
----
-1326
-208
70
query I rowsort
SELECT + tab1.col0 * + col2 + 37 FROM tab1
----
199
3685
7717
query I rowsort
SELECT 91 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to deebbcfb9c7803a34dca6bd860849afe
query I rowsort
SELECT DISTINCT 32 AS col2 FROM tab1
----
32
onlyif mysql # use DIV operator for integer division
query I rowsort label-4282
SELECT + col1 + ( - col1 ) DIV - col2 FROM tab0 cor0
----
194
88
92
skipif mysql # not compatible
query I rowsort label-4282
SELECT + col1 + ( - col1 ) / - col2 FROM tab0 cor0
----
194
88
92
query I rowsort
SELECT + ( + col2 ) * col1 + col1 FROM tab2
----
1593
663
868
onlyif mysql # use DIV operator for integer division
query I rowsort label-4284
SELECT DISTINCT - 26 DIV col0 AS col0 FROM tab2
----
-3
0
skipif mysql # not compatible
query I rowsort label-4284
SELECT DISTINCT - 26 / col0 AS col0 FROM tab2
----
-3
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4285
SELECT + + 70 + cor0.col1 / - CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4285
SELECT + + 70 + cor0.col1 / - CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - 37 * - cor0.col2 FROM tab2 AS cor0
----
1406
962
999
query I rowsort
SELECT ALL 66 + col0 FROM tab0 AS cor0
----
101
155
90
query I rowsort
SELECT ALL - 42 AS col1 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 56f86ff01cd96a3511acd46e0e811e27
query I rowsort
SELECT DISTINCT + 12 AS col1 FROM tab2
----
12
query I rowsort
SELECT 36 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 4d1892e880125dc90345721151acb22c
query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab0, tab2 AS cor0 WHERE NULL < ( NULL )
----
query I rowsort
SELECT DISTINCT - 99 * - col2 FROM tab0
----
3267
8118
99
query I rowsort
SELECT DISTINCT col1 + - 30 * + 3 * + col0 AS col1 FROM tab2 cor0
----
-599
-6961
-7093
query I rowsort
SELECT col2 * ( - col0 ) AS col1 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT + col2 * + 88 AS col0 FROM tab1 cor0
----
4752
5016
8448
query I rowsort
SELECT ALL - + col1 + col0 * - col1 FROM tab2 AS cor0
----
-1360
-248
-4661
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 34 col1 FROM tab0, tab2 AS cor0, tab1, tab0 AS cor1
----
81 values hashing to 6cda47a564e8ee9e9e7915815a3a7769
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 + col2 * 35 col2 FROM tab0 AS cor0
----
1122
2788
34
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col0 + - col0 * col2 col1 FROM tab1 AS cor0
----
-159
-3584
-7600
query I rowsort
SELECT + 50 * - 25 AS col2 FROM tab0, tab0 AS cor0, tab0 cor1
----
27 values hashing to 1c8162b5d69151c48903ea9ca06c0069
query I rowsort
SELECT cor0.col2 + col0 * - ( col0 ) FROM tab0 AS cor0
----
-1224
-543
-7839
query I rowsort
SELECT DISTINCT - cor1.col0 + 13 * + 26 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
259
260
331
query I rowsort
SELECT ALL - 54 * col0 FROM tab0
----
-1296
-1890
-4806
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4304
SELECT - col0 * - col0 + + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4304
SELECT - col0 * - col0 + + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-4305
SELECT ALL + col2 DIV - col2 + - ( + col1 ) col1 FROM tab1 AS cor0
----
-11
-14
-27
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4305
SELECT ALL + col2 / - col2 + - ( + col1 ) col1 FROM tab1 AS cor0
----
-11
-14
-27
query I rowsort
SELECT ALL col1 * + 25 - + col2 AS col2 FROM tab0
----
2117
2193
2424
query I rowsort
SELECT col0 * col2 - - cor0.col2 * col2 AS col0 FROM tab0 cor0
----
14022
1881
36
query I rowsort
SELECT DISTINCT col0 - 1 AS col2 FROM tab1
----
2
63
79
query I rowsort
SELECT - col2 + ( col2 ) + - col0 * + 60 AS col1 FROM tab0
----
-1440
-2100
-5340
query I rowsort
SELECT - tab2.col2 - 56 * + 53 FROM tab2
----
-2994
-2995
-3006
onlyif mysql # use DIV operator for integer division
query I rowsort label-4311
SELECT col0 DIV - 81 AS col2 FROM tab0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-4311
SELECT col0 / - 81 AS col2 FROM tab0
----
-1
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-4312
SELECT col2 + + 92 DIV + col0 - - col0 FROM tab2
----
105
118
47
skipif mysql # not compatible
query I rowsort label-4312
SELECT col2 + + 92 / + col0 - - col0 FROM tab2
----
105
118
47
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4313
SELECT CAST( - col0 AS SIGNED ) + col0 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-4313
SELECT CAST ( - col0 AS INTEGER ) + col0 FROM tab1 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-4314
SELECT + col2 DIV + col0 + tab1.col1 * 38 AS col2 FROM tab1
----
1006
380
495
skipif mysql # not compatible
query I rowsort label-4314
SELECT + col2 / + col0 + tab1.col1 * 38 AS col2 FROM tab1
----
1006
380
495
query I rowsort
SELECT - 91 AS col0 FROM tab2, tab2 AS cor0, tab0, tab0 AS cor1
----
81 values hashing to ef93c6bfa06f5a2259971541054317e0
query I rowsort
SELECT ALL - 24 * col0 AS col1 FROM tab1 AS cor0
----
-1536
-1920
-72
query I rowsort
SELECT DISTINCT - - cor0.col2 * + 79 FROM tab2 AS cor0
----
2054
2133
3002
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4318
SELECT - CAST( 19 AS SIGNED ) + col0 - ( col2 ) * + col2 FROM tab0 AS cor0
----
-1084
-6654
15
skipif mysql # not compatible
query I rowsort label-4318
SELECT - CAST ( 19 AS INTEGER ) + col0 - ( col2 ) * + col2 FROM tab0 AS cor0
----
-1084
-6654
15
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 * - col0 + col0 - + col1 col0 FROM tab1 AS cor0
----
139
3702
7747
query I rowsort
SELECT ALL - 0 * col0 * col0 AS col2 FROM tab0 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-4321
SELECT col1 + cor0.col0 + col1 DIV col2 AS col0 FROM tab0 AS cor0
----
112
181
229
skipif mysql # not compatible
query I rowsort label-4321
SELECT col1 + cor0.col0 + col1 / col2 AS col0 FROM tab0 AS cor0
----
112
181
229
query I rowsort
SELECT + col0 * + 99 - - col2 FROM tab0 AS cor0
----
2409
3466
8893
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4323
SELECT DISTINCT - CAST( - col2 AS SIGNED ) * - col0 + col1 + - col1 FROM tab1 AS cor0
----
-162
-3648
-7680
skipif mysql # not compatible
query I rowsort label-4323
SELECT DISTINCT - CAST ( - col2 AS INTEGER ) * - col0 + col1 + - col1 FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT - - col2 + + col0 FROM tab1 cor0
----
121
176
57
query I rowsort
SELECT ALL - - 82 AS col0 FROM tab0 cor0
----
82
82
82
query I rowsort
SELECT DISTINCT col2 * 88 + col0 FROM tab1 AS cor0
----
4755
5080
8528
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - CAST ( - col1 AS REAL ) AS col1 FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT ALL + - 6 + + col1 AS col1 FROM tab0 AS cor0
----
80
85
91
query I rowsort
SELECT + col0 + + 38 + col1 FROM tab0
----
148
170
218
query I rowsort
SELECT 82 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to f318fd9dac2de7af4b82cc7574bbca2c
query I rowsort
SELECT ( + ( col0 ) ) + - ( 14 ) FROM tab0
----
10
21
75
query I rowsort
SELECT 18 + 67 FROM tab2
----
85
85
85
query I rowsort
SELECT tab0.col1 + - col1 + col2 * + col0 AS col1 FROM tab0
----
35
7298
792
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4334
SELECT CAST( NULL AS DECIMAL ) + + col0 col1 FROM tab2
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4334
SELECT CAST ( NULL AS REAL ) + + col0 col1 FROM tab2
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-4335
SELECT DISTINCT CAST( + ( col0 ) AS SIGNED ) DIV col1 + col0 FROM tab1
----
3
70
86
skipif mysql # not compatible
query I rowsort label-4335
SELECT DISTINCT CAST ( + ( col0 ) AS INTEGER ) / col1 + col0 FROM tab1
----
3
70
86
query I rowsort
SELECT ALL - 62 + 6 * + col1 AS col0 FROM tab2
----
124
292
40
query I rowsort
SELECT ALL + 80 AS col0 FROM tab1 cor0
----
80
80
80
query I rowsort
SELECT ALL + 73 + col2 - col2 * - col2 FROM tab0 AS cor0
----
1195
6879
75
onlyif mysql # use DIV operator for integer division
query I rowsort label-4339
SELECT DISTINCT + cor0.col0 DIV 66 AS col2 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
0
1
skipif mysql # not compatible
query I rowsort label-4339
SELECT DISTINCT + cor0.col0 / 66 AS col2 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
0
1
query I rowsort
SELECT + 64 - col0 * + col2 FROM tab0 AS cor0
----
-7234
-728
29
query I rowsort
SELECT - - 92 + cor0.col1 FROM tab0 AS cor0
----
178
183
189
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 * col2 * - ( ( cor0.col1 ) * cor0.col2 ) + col1 * col1 col2 FROM tab2 AS cor0
----
-157232
-1939003
-3107471
onlyif mysql # use DIV operator for integer division
query I rowsort label-4343
SELECT - 93 DIV - col1 AS col2 FROM tab1 AS cor0
----
3
7
9
skipif mysql # not compatible
query I rowsort label-4343
SELECT - 93 / - col1 AS col2 FROM tab1 AS cor0
----
3
7
9
query I rowsort
SELECT col2 + + col2 * + 95 FROM tab0 AS cor0
----
3168
7872
96
query I rowsort
SELECT DISTINCT + 40 + cor0.col0 FROM tab0 AS cor0
----
129
64
75
onlyif mysql # use DIV operator for integer division
query I rowsort label-4346
SELECT DISTINCT ( col0 ) DIV col1 + + ( 20 ) FROM tab2
----
20
21
24
skipif mysql # not compatible
query I rowsort label-4346
SELECT DISTINCT ( col0 ) / col1 + + ( 20 ) FROM tab2
----
20
21
24
query I rowsort
SELECT 90 * - col1 AS col1 FROM tab0
----
-7740
-8190
-8730
query I rowsort
SELECT 9 + cor0.col2 FROM tab0 AS cor0
----
10
42
91
query I rowsort
SELECT ALL - col2 - - ( + col2 * col0 ) AS col2 FROM tab1 AS cor0
----
108
3591
7584
query I rowsort
SELECT ALL + col2 * - 19 * - col2 FROM tab2 AS cor0
----
12844
13851
27436
query I rowsort
SELECT - col0 + + col0 * col0 AS col2 FROM tab2 cor0
----
42
6006
6162
query I rowsort
SELECT DISTINCT col2 + - col2 * + 46 + col1 FROM tab0 AS cor0
----
-1399
-3599
52
query I rowsort
SELECT ALL - col1 + + col0 * - col2 AS col1 FROM tab1 AS cor0
----
-188
-3658
-7693
onlyif mysql # use DIV operator for integer division
query I rowsort label-4354
SELECT DISTINCT - + col0 DIV col1 + + col1 * col2 AS col0 FROM tab2 AS cor0
----
1533
642
837
skipif mysql # not compatible
query I rowsort label-4354
SELECT DISTINCT - + col0 / col1 + + col1 * col2 AS col0 FROM tab2 AS cor0
----
1533
642
837
query I rowsort
SELECT ALL - 35 AS col1 FROM tab1
----
-35
-35
-35
query I rowsort
SELECT ALL + - col1 + 81 * + col2 AS col0 FROM tab1 AS cor0
----
4348
4607
7763
query I rowsort
SELECT ALL - col2 * col0 * 30 + - col0 AS col0 FROM tab1 AS cor0
----
-109504
-230480
-4863
query I rowsort
SELECT - col2 * + col1 + col0 * col0 FROM tab0 AS cor0
----
-2262
1128
459
query I rowsort
SELECT col1 + col0 + - col1 FROM tab1
----
3
64
80
query I rowsort
SELECT DISTINCT - 68 + tab1.col2 * 24 + + 23 FROM tab1
----
1251
1323
2259
query I rowsort
SELECT - col2 * - ( + col0 * col2 ) + - col1 * 89 FROM tab1 AS cor0
----
207046
6434
736123
skipif mysql # not compatible
query I rowsort
SELECT - col2 + CAST ( - ( col1 ) AS INTEGER ) + CAST ( col0 AS REAL ) FROM tab2 AS cor0
----
-51
-7
24
query I rowsort
SELECT DISTINCT + cor0.col2 AS col0 FROM tab0, tab2 AS cor0, tab1 cor1
----
26
27
38
query I rowsort
SELECT col2 + col1 + - cor0.col0 AS col0 FROM tab1 AS cor0
----
29
3
77
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab1.col1 * col1 col0 FROM tab1
----
100
169
676
query I rowsort
SELECT + - col0 * + col0 + 67 FROM tab0 cor0
----
-1158
-509
-7854
query I rowsort
SELECT + - col0 + 53 + 4 FROM tab2 cor0
----
-21
-22
50
query I rowsort
SELECT - cor0.col2 * col0 + - col0 + - col2 FROM tab0 AS cor0
----
-71
-7469
-849
query I rowsort
SELECT DISTINCT + 97 + - col0 AS col0 FROM tab0 AS cor0
----
62
73
8
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4370
SELECT - CAST( NULL AS SIGNED ) * 13 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4370
SELECT - CAST ( NULL AS INTEGER ) * 13 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - col0 * + 19 AS col2 FROM tab1 AS cor0
----
-1216
-1520
-57
query I rowsort
SELECT DISTINCT - col2 + 1 * cor0.col0 AS col0 FROM tab2 AS cor0
----
-20
41
52
onlyif mysql # use DIV operator for integer division
query I rowsort label-4373
SELECT ALL + col1 DIV col1 AS col2 FROM tab2 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-4373
SELECT ALL + col1 / col1 AS col2 FROM tab2 AS cor0
----
1
1
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 91 * cor0.col2 col0 FROM tab0 AS cor0
----
-3003
-7462
-91
query I rowsort
SELECT ALL - col2 * + ( - cor0.col0 ) AS col1 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT ALL - 43 + + 19 * + col0 AS col1 FROM tab0 AS cor0
----
1648
413
622
query I rowsort
SELECT 75 + col2 FROM tab1 cor0
----
129
132
171
query I rowsort
SELECT 1 * col0 AS col2 FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT + + 6 FROM tab2 cor0
----
6
6
6
query I rowsort
SELECT + - 91 * cor0.col0 FROM tab2 cor0
----
-637
-7098
-7189
query I rowsort
SELECT cor1.col2 + 20 FROM tab2 cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 8ba9372c9c6e904a4234cb687d26837e
query I rowsort
SELECT - 65 AS col2 FROM tab2 cor0
----
-65
-65
-65
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 40 * 75 col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 17558514c853258011c65ea185c80ca0
query I rowsort
SELECT DISTINCT 7 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
7
onlyif mysql # use DIV operator for integer division
query I rowsort label-4385
SELECT DISTINCT + col1 DIV col2 + col2 AS col0 FROM tab0 AS cor0
----
35
83
98
skipif mysql # not compatible
query I rowsort label-4385
SELECT DISTINCT + col1 / col2 + col2 AS col0 FROM tab0 AS cor0
----
35
83
98
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4386
SELECT ALL + + col0 * - cor0.col0 * CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4386
SELECT ALL + + col0 * - cor0.col0 * CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col1 * ( - 41 ) col2 FROM tab0 cor0
----
3526
3731
3977
onlyif mysql # use DIV operator for integer division
query I rowsort label-4388
SELECT - col1 DIV 32 - - col0 col0 FROM tab1 AS cor0
----
3
64
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4388
SELECT - col1 / 32 - - col0 col0 FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT - 22 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to fae46f8148b02964f7145eb6ed5819f9
query I rowsort
SELECT - - 34 * cor0.col2 AS col0 FROM tab2 AS cor0
----
1292
884
918
query I rowsort
SELECT - - col2 * col0 + col2 AS col1 FROM tab1 cor0
----
216
3705
7776
query I rowsort
SELECT + cor0.col2 + + cor0.col2 + col2 AS col2 FROM tab0 AS cor0
----
246
3
99
query I rowsort
SELECT ( 66 ) AS col2 FROM tab2
----
66
66
66
query I rowsort
SELECT DISTINCT ( 51 + col0 * - 49 ) AS col0 FROM tab0
----
-1125
-1664
-4310
onlyif mysql # use DIV operator for integer division
query I rowsort label-4395
SELECT DISTINCT - col2 * - col2 + + ( + col2 ) DIV col0 FROM tab2 AS cor0
----
1444
676
732
skipif mysql # not compatible
query I rowsort label-4395
SELECT DISTINCT - col2 * - col2 + + ( + col2 ) / col0 FROM tab2 AS cor0
----
1444
676
732
query I rowsort
SELECT ALL - + col1 * + col0 * + col0 - col2 FROM tab2 AS cor0
----
-106135
-1546
-358982
query I rowsort
SELECT - 24 + - 63 * - col1 AS col0 FROM tab2
----
1047
1929
3693
query I rowsort
SELECT col0 * - tab2.col0 - + col1 * 90 AS col1 FROM tab2
----
-11394
-2839
-7771
onlyif mysql # use DIV operator for integer division
query I rowsort label-4399
SELECT + - col2 + - cor0.col2 * col2 DIV col2 + col2 FROM tab1 AS cor0
----
-54
-57
-96
skipif mysql # not compatible
query I rowsort label-4399
SELECT + - col2 + - cor0.col2 * col2 / col2 + col2 FROM tab1 AS cor0
----
-54
-57
-96
query I rowsort
SELECT DISTINCT - col0 * - col1 + col1 FROM tab0
----
2150
3492
8190
query I rowsort
SELECT col1 FROM tab1 AS cor0 WHERE col0 = ( col1 ) OR NOT col1 + - col2 <> ( NULL )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-4402
SELECT ALL col2 * + col1 + col1 DIV col0 FROM tab2 AS cor0
----
1534
646
841
skipif mysql # not compatible
query I rowsort label-4402
SELECT ALL col2 * + col1 + col1 / col0 FROM tab2 AS cor0
----
1534
646
841
query I rowsort
SELECT + cor0.col1 + - cor0.col0 + + tab2.col1 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to e121a93e6ede25538c72913a0eb028be
query I rowsort
SELECT DISTINCT - col0 + col2 * col2 FROM tab0
----
-34
1065
6635
query I rowsort
SELECT DISTINCT + tab0.col2 * tab0.col0 * col1 + - col2 * col0 FROM tab0
----
3360
656820
67320
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - tab2.col1 col0 FROM tab2
----
-289
-3481
-961
query I rowsort
SELECT DISTINCT col1 * col0 + col2 * - col2 + - tab0.col2 AS col0 FROM tab0
----
1293
3393
942
query I rowsort
SELECT DISTINCT + col0 * col0 + col1 AS col2 FROM tab1
----
35
4106
6413
query I rowsort
SELECT col2 * tab2.col1 + - col2 + col0 FROM tab2
----
1586
687
817
query I rowsort
SELECT ALL tab1.col1 * col0 + col2 FROM tab1
----
1136
132
697
query I rowsort
SELECT ( + 70 + - col1 ) AS col1 FROM tab0
----
-16
-21
-27
onlyif mysql # use DIV operator for integer division
query I rowsort label-4412
SELECT DISTINCT - col0 * + col2 DIV + col2 AS col1 FROM tab0
----
-24
-35
-89
skipif mysql # not compatible
query I rowsort label-4412
SELECT DISTINCT - col0 * + col2 / + col2 AS col1 FROM tab0
----
-24
-35
-89
query I rowsort
SELECT ALL + 27 + cor0.col1 * col1 * + col2 FROM tab1 AS cor0
----
16251
36531
5727
onlyif mysql # use DIV operator for integer division
query I rowsort label-4414
SELECT DISTINCT - col2 DIV + col1 AS col0 FROM tab2 AS cor0
----
-2
0
skipif mysql # not compatible
query I rowsort label-4414
SELECT DISTINCT - col2 / + col1 AS col0 FROM tab2 AS cor0
----
-2
0
query I rowsort
SELECT + - ( + col1 ) + - col2 FROM tab1 AS cor0
----
-109
-67
-80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 38 col0 FROM tab1 cor0
----
38
38
38
query I rowsort
SELECT - col1 * + col1 * - col2 AS col2 FROM tab0 AS cor0
----
244068
679042
9409
query I rowsort
SELECT + - col1 + + cor0.col0 * col2 FROM tab0 AS cor0
----
-62
706
7207
query I rowsort
SELECT ALL - 40 + + col1 * + col2 AS col1 FROM tab0 AS cor0
----
2798
57
7422
query I rowsort
SELECT - col1 * - col1 + - col1 FROM tab2 AS cor0
----
272
3422
930
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * + col1 + + col1 + col2 col1 FROM tab0 AS cor0
----
-2719
-7289
1
query III rowsort
SELECT ALL * FROM tab2 WHERE NULL NOT IN ( tab2.col1 * col0 * - col2 )
----
query I rowsort
SELECT - col1 * col2 * col2 + col1 + - col0 AS col1 FROM tab1
----
-119875
-32544
-75793
query I rowsort
SELECT ALL col2 + col0 * + tab0.col1 AS col1 FROM tab0 WHERE ( - col1 ) NOT IN ( - col1 )
----
query I rowsort
SELECT DISTINCT col0 + - col1 + - col0 * col0 AS col2 FROM tab0 AS cor0
----
-1287
-638
-7923
query III rowsort
SELECT ALL * FROM tab1 WHERE + col0 IN ( col0 * + col1 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-4427
SELECT col2 * col0 - col1 DIV col2 AS col2 FROM tab0
----
-62
7297
790
skipif mysql # not compatible
query I rowsort label-4427
SELECT col2 * col0 - col1 / col2 AS col2 FROM tab0
----
-62
7297
790
query I rowsort
SELECT ALL col2 * - col1 - col2 FROM tab2
----
-1560
-684
-864
query I rowsort
SELECT DISTINCT - col2 * col1 * - col1 - + col1 FROM tab0
----
243982
678951
9312
query I rowsort
SELECT ALL + col1 * tab1.col0 AS col2 FROM tab1
----
1040
640
78
onlyif mysql # use DIV operator for integer division
query I rowsort label-4431
SELECT col2 DIV col0 + - col1 FROM tab1
----
-10
-12
-8
skipif mysql # not compatible
query I rowsort label-4431
SELECT col2 / col0 + - col1 FROM tab1
----
-10
-12
-8
query I rowsort
SELECT col2 / col0 AS col1 FROM tab0 WHERE NULL = NULL
----
query I rowsort
SELECT + col1 FROM tab0 WHERE NOT + col1 - col0 NOT IN ( tab0.col2 * col0 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-4434
SELECT - col0 DIV col2 col0 FROM tab0
----
-1
-35
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4434
SELECT - col0 / col2 col0 FROM tab0
----
-1
-35
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-4435
SELECT tab1.col1 + - col1 + col2 DIV col0 col2 FROM tab1
----
0
1
18
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4435
SELECT tab1.col1 + - col1 + col2 / col0 col2 FROM tab1
----
0
1
18
query I rowsort
SELECT ALL col1 * + tab1.col2 - + tab1.col2 * - col1 FROM tab1
----
1140
2496
2808
query I rowsort
SELECT cor0.col2 * - 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 * - col1 + - col1 col2 FROM tab2 AS cor0
----
-1593
-663
-868
onlyif mysql # use DIV operator for integer division
query I rowsort label-4439
SELECT DISTINCT col1 DIV col1 + col0 AS col0 FROM tab2 AS cor0
----
79
8
80
skipif mysql # not compatible
query I rowsort label-4439
SELECT DISTINCT col1 / col1 + col0 AS col0 FROM tab2 AS cor0
----
79
8
80
onlyif mysql # use DIV operator for integer division
query I rowsort label-4440
SELECT col1 + - col0 DIV + col1 AS col1 FROM tab2
----
13
31
58
skipif mysql # not compatible
query I rowsort label-4440
SELECT col1 + - col0 / + col1 AS col1 FROM tab2
----
13
31
58
query I rowsort
SELECT + col0 + - col2 * - col1 AS col1 FROM tab2 AS cor0
----
1612
725
844
query I rowsort
SELECT ALL - col1 + col2 + col0 * - col0 AS col0 FROM tab2 AS cor0
----
-53
-6117
-6220
query I rowsort
SELECT - col1 * col1 + - col1 FROM tab2 AS cor0
----
-306
-3540
-992
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * cor0.col2 col0 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT DISTINCT - - col1 + + col0 + cor0.col0 AS col0 FROM tab1 cor0
----
138
173
32
query I rowsort
SELECT DISTINCT col1 + col2 - - col0 AS col2 FROM tab0 cor0
----
133
143
262
query I rowsort
SELECT ALL - + cor0.col1 * cor0.col2 AS col2 FROM tab1 AS cor0
----
-1248
-1404
-570
onlyif mysql # use DIV operator for integer division
query I rowsort label-4448
SELECT DISTINCT - cor0.col2 * - col0 + - col2 DIV col2 + - col2 col1 FROM tab1 AS cor0
----
107
3590
7583
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4448
SELECT DISTINCT - cor0.col2 * - col0 + - col2 / col2 + - col2 col1 FROM tab1 AS cor0
----
107
3590
7583
query I rowsort
SELECT DISTINCT - col0 + col0 + + col1 AS col2 FROM tab2 cor0
----
17
31
59
query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + col1 NOT BETWEEN ( NULL ) AND + col0
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-4451
SELECT DISTINCT col1 * col0 DIV - col2 + col2 + col2 AS col0 FROM tab0 AS cor0
----
-3393
4
66
skipif mysql # not compatible
query I rowsort label-4451
SELECT DISTINCT col1 * col0 / - col2 + col2 + col2 AS col0 FROM tab0 AS cor0
----
-3393
4
66
query I rowsort
SELECT DISTINCT + col2 * col0 - col2 * + col2 FROM tab2 AS cor0
----
-540
1352
1558
query I rowsort
SELECT ALL col0 + col0 * col2 AS col1 FROM tab0 AS cor0
----
70
7387
816
query I rowsort
SELECT ALL col0 * cor0.col2 * col1 + - col0 + - col1 FROM tab2 AS cor0
----
119515
50938
5821
onlyif mysql # use DIV operator for integer division
query I rowsort label-4455
SELECT DISTINCT col2 DIV - col1 + col2 FROM tab0 AS cor0
----
1
33
82
skipif mysql # not compatible
query I rowsort label-4455
SELECT DISTINCT col2 / - col1 + col2 FROM tab0 AS cor0
----
1
33
82
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + + col1 * col0 col1 FROM tab2
----
1422
224
4680
query I rowsort
SELECT - + 33 * col1 FROM tab0 cor0
----
-2838
-3003
-3201
query I rowsort
SELECT ALL col1 * - col1 * col0 AS col1 FROM tab1
----
-13520
-2028
-6400
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4459
SELECT + col1 + + CAST( col0 AS SIGNED ) * tab1.col1 col2 FROM tab1
----
104
1053
650
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4459
SELECT + col1 + + CAST ( col0 AS INTEGER ) * tab1.col1 col2 FROM tab1
----
104
1053
650
query I rowsort
SELECT ALL + col2 * 35 FROM tab1
----
1890
1995
3360
query I rowsort
SELECT ( + col1 ) * col2 FROM tab1
----
1248
1404
570
query I rowsort
SELECT DISTINCT ( + cor0.col1 ) * col1 + + 49 FROM tab2 AS cor0
----
1010
338
3530
query I rowsort
SELECT ALL + ( - 24 ) * col1 - ( - cor0.col2 + - cor0.col1 ) * cor0.col0 FROM tab0 AS cor0
----
1102
13213
792
query I rowsort
SELECT ALL + - 64 + cor0.col2 AS col1 FROM tab1 cor0
----
-10
-7
32
onlyif mysql # use DIV operator for integer division
query I rowsort label-4465
SELECT ALL - 34 DIV + col2 + - cor0.col0 - col0 AS col1 FROM tab1 AS cor0
----
-128
-160
-6
skipif mysql # not compatible
query I rowsort label-4465
SELECT ALL - 34 / + col2 + - cor0.col0 - col0 AS col1 FROM tab1 AS cor0
----
-128
-160
-6
query I rowsort
SELECT DISTINCT - ( ( col0 ) ) FROM tab1 AS cor0
----
-3
-64
-80
query I rowsort
SELECT + 62 + col0 FROM tab1
----
126
142
65
query I rowsort
SELECT DISTINCT - ( - 82 ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
82
query I rowsort
SELECT DISTINCT + + col1 * + col2 AS col2 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT - - 82 * col0 * + col2 FROM tab0 AS cor0
----
2870
598436
64944
query I rowsort
SELECT DISTINCT col2 * + col0 * col2 AS col2 FROM tab2
----
114076
5103
52728
query I rowsort
SELECT DISTINCT + - cor0.col0 + 36 * cor0.col0 * + col0 FROM tab1 AS cor0
----
147392
230320
321
onlyif mysql # use DIV operator for integer division
query I rowsort label-4473
SELECT + - col2 DIV + col1 col0 FROM tab2 AS cor0
----
-2
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4473
SELECT + - col2 / + col1 col0 FROM tab2 AS cor0
----
-2
0
0
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0, tab2 cor0, tab1 AS cor1, tab1, tab0 cor2
----
3645 values hashing to 3b4587ab6c08d2179c6df094d2f76ad7
query I rowsort
SELECT ALL + col2 * 9 + + col2 * - col2 FROM tab2 AS cor0
----
-1102
-442
-486
query I rowsort
SELECT - col2 * 73 * - cor0.col0 FROM tab0 AS cor0
----
2555
532754
57816
query I rowsort
SELECT DISTINCT - col1 * - ( - col0 * col0 ) + ( + col0 + col2 * + col1 ) AS col0 FROM tab2 AS cor0
----
-105372
-357344
-675
query I rowsort
SELECT + - col0 * 77 AS col1 FROM tab2 AS cor0
----
-539
-6006
-6083
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 * + cor0.col2 * + cor0.col2 + + cor0.col1 * - col0 col0 FROM tab2 AS cor0
----
-115419
-5320
-57330
query I rowsort
SELECT + 25 + 71 FROM tab1 AS cor0
----
96
96
96
query I rowsort
SELECT ALL ( + 73 ) * - col0 FROM tab0
----
-1752
-2555
-6497
query I rowsort
SELECT 96 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 22c5141a629f0ef396738ee2c8be6303
query I rowsort
SELECT ALL + col2 * cor0.col2 + - col0 FROM tab0 cor0
----
-34
1065
6635
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4484
SELECT ALL + + CAST( NULL AS SIGNED ) / - col0 - col2 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4484
SELECT ALL + + CAST ( NULL AS INTEGER ) / - col0 - col2 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-4485
SELECT DISTINCT - col2 * col1 DIV cor0.col2 FROM tab0 AS cor0
----
-86
-91
-97
skipif mysql # not compatible
query I rowsort label-4485
SELECT DISTINCT - col2 * col1 / cor0.col2 FROM tab0 AS cor0
----
-86
-91
-97
query I rowsort
SELECT ALL + 20 + cor0.col1 FROM tab0 AS cor0
----
106
111
117
query I rowsort
SELECT + 31 * + col1 FROM tab2 AS cor0
----
1829
527
961
query I rowsort
SELECT - + cor0.col2 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to 44fdcd7cd603352d4d127811d164cc1e
query I rowsort
SELECT - ( tab2.col0 + col0 ) * + col0 FROM tab2
----
-12168
-12482
-98
query I rowsort
SELECT ALL + ( tab2.col2 ) AS col2 FROM tab2
----
26
27
38
query I rowsort
SELECT + cor0.col0 * + col1 * - col0 + 51 FROM tab2 AS cor0
----
-106046
-1468
-358905
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4492
SELECT - + col2 * - col0 + - CAST( NULL AS SIGNED ) * col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4492
SELECT - + col2 * - col0 + - CAST ( NULL AS INTEGER ) * col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + col1 * 19 + + 3 FROM tab0 AS cor0
----
1637
1732
1846
query I rowsort
SELECT - col2 + + 28 FROM tab1 AS cor0
----
-26
-29
-68
query I rowsort
SELECT DISTINCT + col0 * - col2 + - col2 * col0 FROM tab0 cor0
----
-14596
-1584
-70
query I rowsort
SELECT ALL col1 * ( 22 ) - + col2 AS col0 FROM tab0 AS cor0
----
1859
1920
2133
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4497
SELECT + cor0.col1 + + CAST( NULL AS SIGNED ) AS col0 FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4497
SELECT + cor0.col1 + + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + col2 + col2 * + col2 AS col1 FROM tab1 AS cor0
----
2970
3306
9312
query I rowsort
SELECT ALL - tab2.col2 * cor0.col0 FROM tab2, tab0, tab1 AS cor0
----
27 values hashing to dc69da44d5a43e91816c3670493ea5ac
query I rowsort
SELECT + col2 * - col0 + + col2 AS col0 FROM tab2 cor0
----
-162
-2002
-2964
query I rowsort
SELECT + col2 * + 77 + col1 FROM tab2 cor0
----
2061
2110
2943
onlyif mysql # use DIV operator for integer division
query I rowsort label-4502
SELECT - 3 DIV + col1 FROM tab1
----
0
0
0
skipif mysql # not compatible
query I rowsort label-4502
SELECT - 3 / + col1 FROM tab1
----
0
0
0
query I rowsort
SELECT ALL + 94 AS col0 FROM tab2
----
94
94
94
query I rowsort
SELECT ALL + col2 + + tab0.col1 - ( col1 * - col2 ) FROM tab0
----
195
2957
7635
query I rowsort
SELECT 29 * + col2 + 24 * tab0.col2 + - col2 * + col0 * + col1 AS col2 FROM tab0
----
-3342
-659772
-66363
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col0 * - col2 + + ( 61 ) col1 FROM tab0 AS cor0
----
7359
853
96
query I rowsort
SELECT 40 * col0 * + ( + col1 ) FROM tab2 cor0
----
184080
53720
8680
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col2 * col0 col0 FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT - - col1 + - 6 FROM tab1 cor0
----
20
4
7
query I rowsort
SELECT DISTINCT col2 * + 33 AS col0 FROM tab2 AS cor0
----
1254
858
891
query I rowsort
SELECT + col2 * + ( col1 ) * col1 FROM tab0 AS cor0
----
244068
679042
9409
query I rowsort
SELECT ALL 66 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 29794915b585eea848ad670075452c88
query I rowsort
SELECT + 42 FROM tab0 cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 64c29db9f1cd7ed4ddeb1735e3e0d442
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab2.col1 * ( tab2.col2 ) col0 FROM tab2, tab0 AS cor0
----
9 values hashing to f5605ce6cbd6ecc79a4a887488bb6947
query I rowsort
SELECT 95 + + col1 - tab1.col2 * col1 * col1 AS col2 FROM tab1
----
-16116
-36383
-5595
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4516
SELECT DISTINCT col2 + CAST( + col0 AS SIGNED ) * + col1 AS col2 FROM tab0 cor0
----
2097
3396
8181
skipif mysql # not compatible
query I rowsort label-4516
SELECT DISTINCT col2 + CAST ( + col0 AS INTEGER ) * + col1 AS col2 FROM tab0 cor0
----
2097
3396
8181
query I rowsort
SELECT DISTINCT - 96 + + 28 * col1 FROM tab2 AS cor0
----
1556
380
772
query I rowsort
SELECT + col0 * + col0 * cor0.col0 + + col0 AS col1 FROM tab2 cor0
----
350
474630
493118
query I rowsort
SELECT - - 41 AS col1 FROM tab0 AS cor0
----
41
41
41
onlyif mysql # use DIV operator for integer division
query I rowsort label-4520
SELECT + col0 + ( + col1 ) DIV - ( + col0 ) FROM tab2 AS cor0
----
3
78
79
skipif mysql # not compatible
query I rowsort label-4520
SELECT + col0 + ( + col1 ) / - ( + col0 ) FROM tab2 AS cor0
----
3
78
79
query I rowsort
SELECT DISTINCT 34 * col1 - col2 AS col2 FROM tab0 AS cor0
----
2891
3012
3297
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4522
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + col2 AS col2 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-4522
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + col2 AS col2 FROM tab1 AS cor0
----
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4523
SELECT - - CAST( - col2 AS SIGNED ) col1 FROM tab0 AS cor0
----
-1
-33
-82
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4523
SELECT - - CAST ( - col2 AS INTEGER ) col1 FROM tab0 AS cor0
----
-1
-33
-82
query I rowsort
SELECT ALL cor0.col0 * col2 + ( 94 ) FROM tab0 cor0
----
129
7392
886
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4525
SELECT DISTINCT + + col0 * + col2 + - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-4525
SELECT DISTINCT + + col0 * + col2 + - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT ALL ( col0 ) + ( + col2 * + col1 ) AS col1 FROM tab0 cor0
----
132
2862
7551
query I rowsort
SELECT + 32 * col1 AS col2 FROM tab0 AS cor0
----
2752
2912
3104
query I rowsort
SELECT ALL - cor0.col0 + col1 * + 2 AS col2 FROM tab1 AS cor0
----
-44
-54
49
query I rowsort
SELECT DISTINCT + 45 AS col2 FROM tab1, tab0 AS cor0
----
45
onlyif mysql # use DIV operator for integer division
query I rowsort label-4530
SELECT - 13 DIV - 40 - col1 FROM tab0
----
-86
-91
-97
skipif mysql # not compatible
query I rowsort label-4530
SELECT - 13 / - 40 - col1 FROM tab0
----
-86
-91
-97
query I rowsort
SELECT - tab1.col1 - tab1.col1 AS col1 FROM tab1
----
-20
-26
-52
query I rowsort
SELECT ALL + + ( - cor0.col1 ) - + ( + 41 ) FROM tab2 AS cor0
----
-100
-58
-72
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4533
SELECT ALL CAST( NULL AS SIGNED ) AS col2 FROM tab2, tab2 cor0, tab0 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif mysql # not compatible
query I rowsort label-4533
SELECT ALL CAST ( NULL AS INTEGER ) AS col2 FROM tab2, tab2 cor0, tab0 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
query I rowsort
SELECT - ( + col0 ) * + ( cor0.col2 ) FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT DISTINCT - 80 * + cor0.col1 + col0 * 87 FROM tab1 AS cor0
----
-1819
4768
5920
query I rowsort
SELECT DISTINCT - - 56 - col0 AS col1 FROM tab0 cor0
----
-33
21
32
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab2 cor0, tab2 AS cor1, tab2, tab0 cor2
----
3645 values hashing to 40e4acd618698dd2305f1f7b8b547f7a
query I rowsort
SELECT col1 * + col2 + ( col2 + col1 ) AS col0 FROM tab2 AS cor0
----
1619
701
895
query I rowsort
SELECT ALL + + 46 * + col2 AS col0 FROM tab0 cor0
----
1518
3772
46
skipif mysql # not compatible
query I rowsort
SELECT ALL + col2 + - cor0.col2 * - CAST ( cor0.col2 AS REAL ) + col2 * 56 AS col2 FROM tab2 AS cor0
----
2158
2268
3610
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4541
SELECT ALL cor0.col2 * CAST( NULL AS SIGNED ) FROM tab0, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-4541
SELECT ALL cor0.col2 * CAST ( NULL AS INTEGER ) FROM tab0, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
onlyif mysql # use DIV operator for integer division
query I rowsort label-4542
SELECT DISTINCT + + col1 * col1 DIV - 5 - + col2 FROM tab2 AS cor0
----
-219
-722
-95
skipif mysql # not compatible
query I rowsort label-4542
SELECT DISTINCT + + col1 * col1 / - 5 - + col2 FROM tab2 AS cor0
----
-219
-722
-95
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab0.col2 * - cor0.col0 col2 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to caa3e6469432624a16bd3084f5c6de58
query I rowsort
SELECT col1 + 91 + col1 FROM tab2
----
125
153
209
query I rowsort
SELECT + col1 + ( col2 ) AS col0 FROM tab2
----
55
58
85
query I rowsort
SELECT + col1 * + col0 + + col1 * + col1 - + col1 FROM tab1
----
1196
728
730
query I rowsort
SELECT - cor0.col2 + cor0.col2 * + col0 AS col2 FROM tab1 cor0
----
108
3591
7584
onlyif mysql # use DIV operator for integer division
query I rowsort label-4548
SELECT cor0.col0 * - col0 + col2 DIV 64 FROM tab2 AS cor0
----
-49
-6084
-6241
skipif mysql # not compatible
query I rowsort label-4548
SELECT cor0.col0 * - col0 + col2 / 64 FROM tab2 AS cor0
----
-49
-6084
-6241
query I rowsort
SELECT DISTINCT col2 + - 64 AS col1 FROM tab0
----
-31
-63
18
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4550
SELECT DISTINCT + col1 * - CAST( NULL AS SIGNED ) + col0 + tab1.col1 AS col0 FROM tab1
----
NULL
skipif mysql # not compatible
query I rowsort label-4550
SELECT DISTINCT + col1 * - CAST ( NULL AS INTEGER ) + col0 + tab1.col1 AS col0 FROM tab1
----
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4551
SELECT - CAST( NULL AS SIGNED ) + + tab2.col2 FROM tab2, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-4551
SELECT - CAST ( NULL AS INTEGER ) + + tab2.col2 FROM tab2, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - 5 * col2 col0 FROM tab1
----
-18240
-38400
-810
query I rowsort
SELECT DISTINCT col0 * col0 * col0 + col2 + 43 AS col2 FROM tab0
----
13900
42919
705094
query I rowsort
SELECT + col0 * - col1 * - col1 FROM tab2
----
22831
271518
6727
query I rowsort
SELECT - - col1 * col2 + cor0.col1 * cor0.col1 FROM tab1 AS cor0
----
1417
2080
670
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT CAST ( - col0 AS REAL ) FROM tab0 AS cor0
----
-24
-35
-89
onlyif mysql # use DIV operator for integer division
query I rowsort label-4557
SELECT DISTINCT + col0 DIV 99 + + col0 - col2 FROM tab1 cor0
----
-16
-51
7
skipif mysql # not compatible
query I rowsort label-4557
SELECT DISTINCT + col0 / 99 + + col0 - col2 FROM tab1 cor0
----
-16
-51
7
onlyif mysql # use DIV operator for integer division
query I rowsort label-4558
SELECT + + col2 * + col2 + - col2 DIV 62 FROM tab1 AS cor0
----
2916
3249
9215
skipif mysql # not compatible
query I rowsort label-4558
SELECT + + col2 * + col2 + - col2 / 62 FROM tab1 AS cor0
----
2916
3249
9215
onlyif mysql # use DIV operator for integer division
query I rowsort label-4559
SELECT ALL - col1 DIV col1 + col1 AS col2 FROM tab2 AS cor0
----
16
30
58
skipif mysql # not compatible
query I rowsort label-4559
SELECT ALL - col1 / col1 + col1 AS col2 FROM tab2 AS cor0
----
16
30
58
query I rowsort
SELECT - - 80 * + col0 FROM tab1 AS cor0
----
240
5120
6400
query I rowsort
SELECT DISTINCT + 30 - cor0.col0 FROM tab2 AS cor0
----
-48
-49
23
onlyif mysql # use DIV operator for integer division
query I rowsort label-4562
SELECT + - CAST( 75 AS SIGNED ) DIV - col1 + + 33 col2 FROM tab2 cor0
----
34
35
37
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4562
SELECT + - CAST ( 75 AS INTEGER ) / - col1 + + 33 col2 FROM tab2 cor0
----
34
35
37
query I rowsort
SELECT ALL + - 42 + + col1 FROM tab1 AS cor0
----
-16
-29
-32
query I rowsort
SELECT DISTINCT cor0.col1 * col2 AS col1 FROM tab2 cor0
----
1534
646
837
query I rowsort
SELECT DISTINCT - - 52 * + col1 AS col1 FROM tab0 AS cor0
----
4472
4732
5044
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4566
SELECT CAST( col1 AS SIGNED ) + - col0 AS col1 FROM tab2 AS cor0
----
-19
-62
24
skipif mysql # not compatible
query I rowsort label-4566
SELECT CAST ( col1 AS INTEGER ) + - col0 AS col1 FROM tab2 AS cor0
----
-19
-62
24
query I rowsort
SELECT ALL - + col0 * - col2 + cor0.col0 FROM tab1 AS cor0
----
165
3712
7760
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4568
SELECT CAST( NULL AS SIGNED ) + - cor0.col2 FROM tab1, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-4568
SELECT CAST ( NULL AS INTEGER ) + - cor0.col2 FROM tab1, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT - 9 FROM tab0, tab1 AS cor0
----
9 values hashing to caf28657beb43049740febe1fa9ded5a
onlyif mysql # use DIV operator for integer division
query I rowsort label-4570
SELECT + col1 DIV + 13 FROM tab1 AS cor0
----
0
1
2
skipif mysql # not compatible
query I rowsort label-4570
SELECT + col1 / + 13 FROM tab1 AS cor0
----
0
1
2
onlyif mysql # use DIV operator for integer division
query I rowsort label-4571
SELECT + + ( col2 ) + + col0 DIV - 45 FROM tab1 AS cor0
----
54
56
95
skipif mysql # not compatible
query I rowsort label-4571
SELECT + + ( col2 ) + + col0 / - 45 FROM tab1 AS cor0
----
54
56
95
onlyif mysql # use DIV operator for integer division
query I rowsort label-4572
SELECT + ( col2 ) * col2 DIV col2 AS col1 FROM tab0 AS cor0
----
1
33
82
skipif mysql # not compatible
query I rowsort label-4572
SELECT + ( col2 ) * col2 / col2 AS col1 FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT ALL + 27 + - col0 FROM tab1 AS cor0
----
-37
-53
24
query I rowsort
SELECT DISTINCT + - 21 + col0 FROM tab1 AS cor0
----
-18
43
59
query I rowsort
SELECT + col2 * - col1 + ( + col2 ) * - col1 AS col1 FROM tab0 AS cor0
----
-14924
-194
-5676
query I rowsort
SELECT + col0 - - col1 * col1 AS col0 FROM tab0 AS cor0
----
7420
8370
9444
query I rowsort
SELECT - 51 + + col0 FROM tab0 cor0
----
-16
-27
38
query I rowsort
SELECT ALL - - 71 + col2 * col2 * + col2 AS col2 FROM tab2 AS cor0
----
17647
19754
54943
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4579
SELECT DISTINCT - cor0.col2 * + cor0.col2 * CAST( col1 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-22599
-24548
-39884
skipif mysql # not compatible
query I rowsort label-4579
SELECT DISTINCT - cor0.col2 * + cor0.col2 * CAST ( col1 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-22599
-24548
-39884
query I rowsort
SELECT - col2 * - cor0.col0 * 6 AS col0 FROM tab2 AS cor0
----
1134
12168
18012
query I rowsort
SELECT + col0 * + col1 + 1 * col0 AS col1 FROM tab2 AS cor0
----
1422
224
4680
query I rowsort
SELECT ALL - 17 AS col0 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 28cd5b4c959cb41fbc56389ab43d167e
query I rowsort
SELECT ALL - + col2 + 80 * + 95 FROM tab2 AS cor0
----
7562
7573
7574
query I rowsort
SELECT - col2 + - ( - cor0.col0 ) AS col0 FROM tab1 cor0
----
-16
-51
7
onlyif mysql # use DIV operator for integer division
query I rowsort label-4585
SELECT col0 DIV 65 + col1 AS col2 FROM tab2 AS cor0
----
18
31
60
skipif mysql # not compatible
query I rowsort label-4585
SELECT col0 / 65 + col1 AS col2 FROM tab2 AS cor0
----
18
31
60
query I rowsort
SELECT col1 * col1 - col2 AS col1 FROM tab1 cor0
----
43
622
73
query I rowsort
SELECT DISTINCT col2 * 4 AS col2 FROM tab2 cor0
----
104
108
152
query I rowsort
SELECT col2 * - col2 + - 45 FROM tab0 AS cor0
----
-1134
-46
-6769
onlyif mysql # use DIV operator for integer division
query I rowsort label-4589
SELECT DISTINCT cor0.col0 DIV col1 + + 14 * - col0 AS col1 FROM tab2 AS cor0
----
-1091
-1102
-98
skipif mysql # not compatible
query I rowsort label-4589
SELECT DISTINCT cor0.col0 / col1 + + 14 * - col0 AS col1 FROM tab2 AS cor0
----
-1091
-1102
-98
query I rowsort
SELECT ALL col0 - ( - ( - col0 ) + - ( col1 ) ) * + col1 AS col2 FROM tab0 cor0
----
271
5356
6049
query I rowsort
SELECT - col2 * col1 * + col1 FROM tab0
----
-244068
-679042
-9409
query I rowsort
SELECT - col2 * + cor0.col2 + col0 AS col2 FROM tab2 AS cor0
----
-1365
-598
-722
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 + - cor0.col1 * - cor0.col2 * col2 col0 FROM tab2 AS cor0
----
22626
24586
39910
query I rowsort
SELECT - col2 * + ( 56 ) FROM tab2 AS cor0
----
-1456
-1512
-2128
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4595
SELECT ALL - ( ( col2 ) ) * + CAST( col2 AS SIGNED ) AS col1 FROM tab1
----
-2916
-3249
-9216
skipif mysql # not compatible
query I rowsort label-4595
SELECT ALL - ( ( col2 ) ) * + CAST ( col2 AS INTEGER ) AS col1 FROM tab1
----
-2916
-3249
-9216
query I rowsort
SELECT 83 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 18f405c31a0fb47ce3cc9f7effa8855c
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 * - 96 col2 FROM tab0 AS cor0
----
-2304
-3360
-8544
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 62 * col2 - ( col2 ) * cor0.col1 col1 FROM tab2 AS cor0
----
-2511
-3002
-3146
query I rowsort
SELECT col2 * col1 + - 44 - tab1.col0 FROM tab1
----
1124
1357
462
onlyif mysql # use DIV operator for integer division
query I rowsort label-4600
SELECT - col0 + col1 DIV col1 AS col2 FROM tab2 AS cor0
----
-6
-77
-78
skipif mysql # not compatible
query I rowsort label-4600
SELECT - col0 + col1 / col1 AS col2 FROM tab2 AS cor0
----
-6
-77
-78
onlyif mysql # use DIV operator for integer division
query I rowsort label-4601
SELECT - col2 * + col1 + + ( + col2 ) DIV + col2 + - ( + 98 ) col0 FROM tab1 AS cor0
----
-1345
-1501
-667
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4601
SELECT - col2 * + col1 + + ( + col2 ) / + col2 + - ( + 98 ) col0 FROM tab1 AS cor0
----
-1345
-1501
-667
query I rowsort
SELECT ALL 36 * col2 * - col1 FROM tab2 AS cor0
----
-23256
-30132
-55224
query I rowsort
SELECT col2 * - 44 FROM tab1 AS cor0
----
-2376
-2508
-4224
query I rowsort
SELECT - ( col0 ) + col1 FROM tab1
----
-54
-67
23
query I rowsort
SELECT DISTINCT ( - 88 ) AS col0 FROM tab1 AS cor0
----
-88
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * 66 col1 FROM tab0
----
-5676
-6006
-6402
query I rowsort
SELECT ALL + 25 * - col1 FROM tab1 AS cor0
----
-250
-325
-650
query I rowsort
SELECT + 98 * 31 AS col0 FROM tab0 AS cor0
----
3038
3038
3038
query I rowsort
SELECT ALL + - 54 + ( + col0 ) AS col0 FROM tab1 AS cor0
----
-51
10
26
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * + col0 + - cor0.col0 + - col1 * col0 col2 FROM tab1 AS cor0
----
2944
6560
81
query I rowsort
SELECT - 65 + col0 AS col0 FROM tab0
----
-30
-41
24
query I rowsort
SELECT + 39 + col1 FROM tab0
----
125
130
136
onlyif mysql # use DIV operator for integer division
query I rowsort label-4613
SELECT DISTINCT + col2 + col0 * ( - col1 ) DIV - col1 FROM tab1
----
121
176
57
skipif mysql # not compatible
query I rowsort label-4613
SELECT DISTINCT + col2 + col0 * ( - col1 ) / - col1 FROM tab1
----
121
176
57
query I rowsort
SELECT DISTINCT - 95 + - col1 FROM tab2
----
-112
-126
-154
query I rowsort
SELECT DISTINCT + col1 + - col0 * col1 * col2 FROM tab2 AS cor0
----
-119593
-51017
-5828
query I rowsort
SELECT + + 38 + - col0 AS col2 FROM tab1 AS cor0
----
-26
-42
35
query I rowsort
SELECT 94 + + cor0.col2 * - 83 FROM tab0 AS cor0
----
-2645
-6712
11
query I rowsort
SELECT - col2 * col0 + col0 * - col2 FROM tab0 AS cor0
----
-14596
-1584
-70
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4619
SELECT DISTINCT + col2 + CAST( + col2 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
108
114
192
skipif mysql # not compatible
query I rowsort label-4619
SELECT DISTINCT + col2 + CAST ( + col2 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
108
114
192
query I rowsort
SELECT ALL col2 * 17 AS col0 FROM tab1 AS cor0
----
1632
918
969
query I rowsort
SELECT ALL col2 + - col2 AS col2 FROM tab0 cor0
----
0
0
0
query I rowsort
SELECT DISTINCT - col2 + + 97 * + col2 + + col0 * + col0 AS col0 FROM tab0 AS cor0
----
1321
15793
3744
query I rowsort
SELECT DISTINCT cor0.col1 * + 72 * 40 + - cor0.col1 FROM tab2 AS cor0
----
169861
48943
89249
query I rowsort
SELECT DISTINCT - col0 + + ( cor0.col1 ) FROM tab1 AS cor0
----
-54
-67
23
query I rowsort
SELECT - - col2 * + col0 * 71 AS col1 FROM tab1 AS cor0
----
11502
259008
545280
query I rowsort
SELECT DISTINCT col1 * col0 + + col0 AS col2 FROM tab0 AS cor0
----
2088
3430
8188
query I rowsort
SELECT col2 + - ( - cor0.col1 * + cor0.col1 ) FROM tab1 AS cor0
----
157
265
730
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4628
SELECT + col2 * - tab0.col1 * CAST( ( col1 ) AS SIGNED ) + - tab0.col0 AS col2 FROM tab0
----
-244092
-679131
-9444
skipif mysql # not compatible
query I rowsort label-4628
SELECT + col2 * - tab0.col1 * CAST ( ( col1 ) AS INTEGER ) + - tab0.col0 AS col2 FROM tab0
----
-244092
-679131
-9444
query I rowsort
SELECT DISTINCT col0 * 63 FROM tab0 AS cor0
----
1512
2205
5607
query I rowsort
SELECT col2 * 50 FROM tab1 AS cor0
----
2700
2850
4800
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4631
SELECT ALL col0 * + CAST( NULL AS SIGNED ) + cor0.col2 + + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4631
SELECT ALL col0 * + CAST ( NULL AS INTEGER ) + cor0.col2 + + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + - cor0.col0 + + col2 * - 73 FROM tab0 AS cor0
----
-108
-2433
-6075
query I rowsort
SELECT ALL col0 * - ( col2 + - col2 ) AS col0 FROM tab2 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col0 + 15 * 76 col2 FROM tab0 AS cor0
----
1164
1175
1229
query I rowsort
SELECT DISTINCT - + cor0.col0 + + col2 FROM tab1 AS cor0
----
-7
16
51
query I rowsort
SELECT ALL - + col1 * + 74 + - col2 FROM tab2 AS cor0
----
-1296
-2321
-4392
query I rowsort
SELECT DISTINCT + 2 AS col2 FROM tab2, tab1 AS cor0
----
2
query I rowsort
SELECT - col1 * + 14 + col2 FROM tab2 cor0
----
-200
-407
-800
query I rowsort
SELECT DISTINCT - col2 * 68 AS col2 FROM tab2 AS cor0
----
-1768
-1836
-2584
query I rowsort
SELECT + col1 * - 32 AS col2 FROM tab0 AS cor0
----
-2752
-2912
-3104
query I rowsort
SELECT + - col0 + + col2 * + 2 + + cor0.col1 AS col0 FROM tab2 AS cor0
----
14
33
78
onlyif mysql # use DIV operator for integer division
query I rowsort label-4642
SELECT ALL - col0 * col2 DIV - col1 FROM tab1 AS cor0
----
364
590
6
skipif mysql # not compatible
query I rowsort label-4642
SELECT ALL - col0 * col2 / - col1 FROM tab1 AS cor0
----
364
590
6
query I rowsort
SELECT + + 66 * 34 AS col1 FROM tab2 cor0
----
2244
2244
2244
query I rowsort
SELECT col0 + - 68 FROM tab0
----
-33
-44
21
query I rowsort
SELECT + 2 * - 70 FROM tab0 AS cor0
----
-140
-140
-140
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4646
SELECT col0 * + CAST( NULL AS SIGNED ) * - col2 AS col1 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4646
SELECT col0 * + CAST ( NULL AS INTEGER ) * - col2 AS col1 FROM tab0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 87 col0 FROM tab0, tab0 AS cor0
----
9 values hashing to fa0cdd86483844cda3bb806e032d5c64
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 72 + - col0 col2 FROM tab2 AS cor0
----
-6
-7
65
query I rowsort
SELECT + col1 * + col0 - - ( 43 ) * - cor0.col2 FROM tab0 AS cor0
----
3352
4573
645
query I rowsort
SELECT + col2 * - col0 - + ( - 25 ) * col0 FROM tab2 AS cor0
----
-1027
-14
-78
query I rowsort
SELECT ALL col0 + - col2 * + col2 AS col2 FROM tab1 AS cor0
----
-2913
-3185
-9136
onlyif mysql # use DIV operator for integer division
query I rowsort label-4652
SELECT + col0 DIV col2 + cor0.col0 DIV 59 AS col1 FROM tab0 AS cor0
----
0
2
35
skipif mysql # not compatible
query I rowsort label-4652
SELECT + col0 / col2 + cor0.col0 / 59 AS col1 FROM tab0 AS cor0
----
0
2
35
query I rowsort
SELECT - col2 + col0 * - 13 * - 99 FROM tab1 AS cor0
----
102864
3807
82311
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 28 - col1 * + cor0.col0 col0 FROM tab0 AS cor0
----
-2036
-3367
-8071
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4655
SELECT ALL 68 * + col1 + - CAST( - col0 AS SIGNED ) * + col1 FROM tab0 AS cor0
----
14287
7912
9991
skipif mysql # not compatible
query I rowsort label-4655
SELECT ALL 68 * + col1 + - CAST ( - col0 AS INTEGER ) * + col1 FROM tab0 AS cor0
----
14287
7912
9991
query I rowsort
SELECT 57 * cor0.col1 FROM tab1 AS cor0
----
1482
570
741
query I rowsort
SELECT DISTINCT 73 * + col1 FROM tab1 AS cor0
----
1898
730
949
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 41 * - 26 col2 FROM tab2
----
-1066
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4659
SELECT + CAST( - col0 AS SIGNED ) + - col1 AS col0 FROM tab1
----
-29
-74
-93
skipif mysql # not compatible
query I rowsort label-4659
SELECT + CAST ( - col0 AS INTEGER ) + - col1 AS col0 FROM tab1
----
-29
-74
-93
query I rowsort
SELECT + col1 + - col2 * - col0 AS col1 FROM tab0
----
132
7389
878
query I rowsort
SELECT 68 * col0 + - col2 FROM tab1
----
150
4295
5344
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4662
SELECT ALL - CAST( col2 AS SIGNED ) + col1 - - 37 col2 FROM tab2
----
16
41
70
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4662
SELECT ALL - CAST ( col2 AS INTEGER ) + col1 - - 37 col2 FROM tab2
----
16
41
70
onlyif mysql # use DIV operator for integer division
query I rowsort label-4663
SELECT CAST( tab0.col1 AS SIGNED ) DIV - col1 FROM tab0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-4663
SELECT CAST ( tab0.col1 AS INTEGER ) / - col1 FROM tab0
----
-1
-1
-1
onlyif mysql # use DIV operator for integer division
query I rowsort label-4664
SELECT ALL col0 DIV + col2 - - col2 AS col2 FROM tab1
----
54
58
96
skipif mysql # not compatible
query I rowsort label-4664
SELECT ALL col0 / + col2 - - col2 AS col2 FROM tab1
----
54
58
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 - - 74 col0 FROM tab1
----
128
131
170
query I rowsort
SELECT DISTINCT + col1 * cor0.col1 + ( - col1 ) AS col2 FROM tab2 AS cor0
----
272
3422
930
query I rowsort
SELECT ALL cor0.col2 * cor0.col1 - - 5 * col1 FROM tab2 AS cor0
----
1829
731
992
query I rowsort
SELECT DISTINCT - 56 + - col1 FROM tab0 cor0
----
-142
-147
-153
onlyif mysql # use DIV operator for integer division
query I rowsort label-4669
SELECT col0 + - col1 DIV cor0.col0 AS col0 FROM tab2 AS cor0
----
3
78
79
skipif mysql # not compatible
query I rowsort label-4669
SELECT col0 + - col1 / cor0.col0 AS col0 FROM tab2 AS cor0
----
3
78
79
query I rowsort
SELECT DISTINCT col1 + col1 * ( + col1 ) * col1 + - col1 AS col1 FROM tab2 AS cor0
----
205379
29791
4913
query I rowsort
SELECT DISTINCT - cor0.col0 * cor0.col1 + - 6 FROM tab1 cor0
----
-1046
-646
-84
query I rowsort
SELECT - + col0 + cor0.col2 * ( 62 ) AS col0 FROM tab1 AS cor0
----
3345
3470
5872
query I rowsort
SELECT DISTINCT - col2 * - cor0.col0 AS col2 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT ALL + tab1.col0 AS col0 FROM tab1, tab1 cor0
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870
query I rowsort
SELECT ALL tab2.col1 AS col0 FROM tab2, tab1 cor0
----
9 values hashing to c61d27a0022e6d022371dc58819ab272
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 83 col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 18f405c31a0fb47ce3cc9f7effa8855c
onlyif mysql # use DIV operator for integer division
query I rowsort label-4677
SELECT ALL + 46 DIV col1 AS col1 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-4677
SELECT ALL + 46 / col1 AS col1 FROM tab0 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 1 + cor0.col2 * - col1 col0 FROM tab2 AS cor0
----
-1533
-645
-836
onlyif mysql # use DIV operator for integer division
query I rowsort label-4679
SELECT - col0 DIV + col1 AS col1 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-4679
SELECT - col0 / + col1 AS col1 FROM tab0 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-4680
SELECT + ( + col0 ) + col2 DIV + ( - col0 ) FROM tab1 AS cor0
----
-15
64
79
skipif mysql # not compatible
query I rowsort label-4680
SELECT + ( + col0 ) + col2 / + ( - col0 ) FROM tab1 AS cor0
----
-15
64
79
query I rowsort
SELECT cor0.col0 + - col2 * col0 AS col0 FROM tab1 AS cor0
----
-159
-3584
-7600
skipif mysql # not compatible
query I rowsort
SELECT ALL - CAST ( + col1 AS REAL ) * col2 AS col1 FROM tab0
----
-2838
-7462
-97
onlyif mysql # use DIV operator for integer division
query I rowsort label-4683
SELECT ALL 27 DIV 43 FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-4683
SELECT ALL 27 / 43 FROM tab0
----
0
0
0
query I rowsort
SELECT col2 * ( - tab2.col2 ) FROM tab2
----
-1444
-676
-729
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + ( - col0 ) + - col2 * col0 col1 FROM tab2 AS cor0
----
-196
-2106
-3081
query I rowsort
SELECT ALL + - col0 - col0 * - ( - col0 ) * + col0 FROM tab0 AS cor0
----
-13848
-42910
-705058
query I rowsort
SELECT col2 * ( col2 ) + + cor0.col0 FROM tab2 AS cor0
----
1523
736
754
query I rowsort
SELECT ALL + col1 + - col2 * col2 + col1 AS col2 FROM tab1 AS cor0
----
-2864
-3229
-9190
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 + 58 col1 FROM tab0 AS cor0
----
-31
23
34
query I rowsort
SELECT ALL - col2 * ( + 15 ) FROM tab2 AS cor0
----
-390
-405
-570
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + + 97 col2 FROM tab0 AS cor0
----
130
179
98
query I rowsort
SELECT ALL + col2 - - col0 AS col0 FROM tab0 AS cor0
----
171
36
57
query I rowsort
SELECT DISTINCT + col2 * + col2 - - col0 FROM tab2 AS cor0
----
1523
736
754
query I rowsort
SELECT - cor0.col0 * - 99 + + 92 FROM tab0 cor0
----
2468
3557
8903
query I rowsort
SELECT - 99 * + col1 + col1 FROM tab0 AS cor0
----
-8428
-8918
-9506
query I rowsort
SELECT - + 79 * cor0.col1 - - col2 AS col0 FROM tab0 AS cor0
----
-6761
-7107
-7662
query I rowsort
SELECT ( - 47 ) * cor0.col0 FROM tab2 cor0
----
-329
-3666
-3713
query I rowsort
SELECT + col0 - + 67 FROM tab0 AS cor0
----
-32
-43
22
skipif mysql # not compatible
query I rowsort
SELECT CAST ( - col0 AS REAL ) + col0 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT ALL cor0.col2 * + 91 FROM tab1 AS cor0
----
4914
5187
8736
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - 53 col1 FROM tab1 AS cor0
----
-1378
-530
-689
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 81 col1 FROM tab1 cor0
----
81
81
81
query I rowsort
SELECT tab0.col0 * tab0.col1 AS col2 FROM tab0
----
2064
3395
8099
query I rowsort
SELECT ALL - + 16 + col0 FROM tab2 AS cor0
----
-9
62
63
query I rowsort
SELECT DISTINCT + cor0.col1 + col0 * ( + col2 ) FROM tab0 AS cor0
----
132
7389
878
query I rowsort
SELECT 60 + + col1 AS col1 FROM tab0 AS cor0
----
146
151
157
query I rowsort
SELECT ALL + ( + col2 ) * - cor0.col1 + + 7 FROM tab2 AS cor0
----
-1527
-639
-830
onlyif mysql # use DIV operator for integer division
query I rowsort label-4708
SELECT - ( 20 + + col0 ) DIV + CAST( 20 * + col1 + + 82 AS SIGNED ) AS col2 FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-4708
SELECT - ( 20 + + col0 ) / + CAST ( 20 * + col1 + + 82 AS INTEGER ) AS col2 FROM tab0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-4709
SELECT ( col1 ) DIV - col1 AS col0 FROM tab0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-4709
SELECT ( col1 ) / - col1 AS col0 FROM tab0
----
-1
-1
-1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col0 col1 FROM tab1, tab1 AS cor0
----
3
64
80
query I rowsort
SELECT DISTINCT + cor0.col0 AS col1 FROM tab1, tab2 cor0
----
7
78
79
query I rowsort
SELECT ALL + + col2 * + col2 + col2 * cor0.col1 AS col2 FROM tab0 AS cor0
----
14186
3927
98
query I rowsort
SELECT DISTINCT + + col2 - col1 AS col1 FROM tab0 AS cor0
----
-53
-9
-96
query I rowsort
SELECT ALL - - 73 + - col1 AS col0 FROM tab0 cor0
----
-13
-18
-24
query I rowsort
SELECT ALL - + 4 + col2 * col1 FROM tab1 AS cor0
----
1244
1400
566
query I rowsort
SELECT DISTINCT + + col1 * col0 + col1 AS col2 FROM tab2 AS cor0
----
1360
248
4661
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col2 * cor0.col1 + col1 * + cor0.col2 + + cor0.col1 col1 FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT ALL - 57 * + col2 FROM tab0 AS cor0
----
-1881
-4674
-57
query I rowsort
SELECT DISTINCT - + 36 + + col1 FROM tab1 AS cor0
----
-10
-23
-26
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + col2 + + col1 * tab1.col0 * tab1.col1 col1 FROM tab1
----
13629
2108
6467
query I rowsort
SELECT - col2 + 83 FROM tab0
----
1
50
82
query I rowsort
SELECT 88 * + tab1.col0 + + tab1.col2 - col1 FROM tab1
----
292
5679
7123
query I rowsort
SELECT DISTINCT col1 * col1 + + col2 AS col2 FROM tab0
----
7429
8363
9410
query I rowsort
SELECT ALL - - ( col0 ) + col1 AS col0 FROM tab0 AS cor0
----
110
132
180
query I rowsort
SELECT DISTINCT - + col0 + - col1 * col0 AS col1 FROM tab2 AS cor0
----
-1422
-224
-4680
query I rowsort
SELECT DISTINCT 22 + + col0 * col0 AS col1 FROM tab0
----
1247
598
7943
onlyif mysql # use DIV operator for integer division
query I rowsort label-4727
SELECT + tab0.col0 DIV col2 + col2 * col0 col2 FROM tab0
----
70
7299
792
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4727
SELECT + tab0.col0 / col2 + col2 * col0 col2 FROM tab0
----
70
7299
792
onlyif mysql # use DIV operator for integer division
query I rowsort label-4728
SELECT DISTINCT - col1 + col2 DIV + col0 + col2 FROM tab2 AS cor0
----
-1
-33
21
skipif mysql # not compatible
query I rowsort label-4728
SELECT DISTINCT - col1 + col2 / + col0 + col2 FROM tab2 AS cor0
----
-1
-33
21
query I rowsort
SELECT 79 + tab2.col2 * col2 FROM tab2
----
1523
755
808
query I rowsort
SELECT + col2 + - 87 - col2 * col1 AS col2 FROM tab0
----
-183
-2892
-7467
query I rowsort
SELECT - 2 FROM tab0, tab2 cor0
----
9 values hashing to ec11209ab257030053484fc13a1f6d17
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4732
SELECT DISTINCT CAST( 22 AS SIGNED ) * - col2 FROM tab0 cor0
----
-1804
-22
-726
skipif mysql # not compatible
query I rowsort label-4732
SELECT DISTINCT CAST ( 22 AS INTEGER ) * - col2 FROM tab0 cor0
----
-1804
-22
-726
query I rowsort
SELECT DISTINCT cor0.col0 * - ( col1 ) + col0 * col2 + + col0 AS col1 FROM tab0 AS cor0
----
-1248
-3325
-712
query I rowsort
SELECT ALL + ( col2 ) + + col1 FROM tab2 AS cor0
----
55
58
85
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 29 + - 68 * col0 * col2 col1 FROM tab1 cor0
----
-10987
-248035
-522211
query I rowsort
SELECT ALL - cor0.col1 + col1 * + col0 FROM tab0 AS cor0
----
1978
3298
8008
query I rowsort
SELECT - col2 + - 81 + - col1 AS col0 FROM tab2
----
-136
-139
-166
query I rowsort
SELECT cor1.col1 FROM tab2 AS cor0 CROSS JOIN tab2, tab0 AS cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd
query I rowsort
SELECT DISTINCT + tab1.col0 + col2 * - 58 - - col2 FROM tab1
----
-3075
-3185
-5392
query I rowsort
SELECT tab0.col2 * 12 + col2 + - col0 FROM tab0
----
-22
405
977
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( tab0.col1 ) + - col0 * - col0 + + col2 col0 FROM tab0
----
1323
695
8094
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4742
SELECT DISTINCT + CAST( - ( + col0 ) * col1 AS SIGNED ) + col1 * tab1.col0 FROM tab1
----
0
skipif mysql # not compatible
query I rowsort label-4742
SELECT DISTINCT + CAST ( - ( + col0 ) * col1 AS INTEGER ) + col1 * tab1.col0 FROM tab1
----
0
query I rowsort
SELECT DISTINCT col0 + - ( col1 + - col2 ) AS col2 FROM tab1
----
111
163
31
onlyif mysql # use DIV operator for integer division
query I rowsort label-4744
SELECT + col2 + col0 * col0 + + tab0.col1 DIV - col0 FROM tab0
----
1224
606
8002
skipif mysql # not compatible
query I rowsort label-4744
SELECT + col2 + col0 * col0 + + tab0.col1 / - col0 FROM tab0
----
1224
606
8002
query I rowsort
SELECT 46 * col2 * col2 FROM tab2
----
31096
33534
66424
query I rowsort
SELECT - col1 * + 59 * + col1 AS col0 FROM tab1 AS cor0
----
-39884
-5900
-9971
query I rowsort
SELECT DISTINCT - col0 + col1 + + col2 AS col2 FROM tab2 AS cor0
----
-24
51
7
onlyif mysql # use DIV operator for integer division
query I rowsort label-4748
SELECT + + col1 + col1 DIV col1 FROM tab1 cor0
----
11
14
27
skipif mysql # not compatible
query I rowsort label-4748
SELECT + + col1 + col1 / col1 FROM tab1 cor0
----
11
14
27
query I rowsort
SELECT ALL + ( + 66 ) * + cor0.col1 AS col0 FROM tab2 AS cor0
----
1122
2046
3894
query I rowsort
SELECT ( col1 ) * cor0.col1 FROM tab1 AS cor0
----
100
169
676
query I rowsort
SELECT DISTINCT 26 * + 32 AS col1 FROM tab0 AS cor0
----
832
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col1 * - cor0.col0 col1 FROM tab1, tab0 AS cor0
----
9 values hashing to f2938bee011b8d49dd931b1f9235e7f5
query I rowsort
SELECT + col2 * - col1 * cor0.col2 AS col0 FROM tab1 AS cor0
----
-119808
-32490
-75816
query I rowsort
SELECT + col1 * cor0.col0 + + col1 + + col1 AS col0 FROM tab0 AS cor0
----
2236
3589
8281
query I rowsort
SELECT DISTINCT col2 * + col1 + - col2 + + tab2.col2 * col1 FROM tab2
----
1254
1647
3042
query I rowsort
SELECT ALL col1 + + col1 * + col1 AS col1 FROM tab2
----
306
3540
992
query I rowsort
SELECT + col0 + - col0 + tab0.col1 AS col0 FROM tab0
----
86
91
97
query I rowsort
SELECT + col0 + col2 + - col0 FROM tab1 cor0
----
54
57
96
query I rowsort
SELECT col1 * + col0 + - col0 * col1 + col1 AS col0 FROM tab2 cor0
----
17
31
59
query I rowsort
SELECT ALL col0 * col2 FROM tab2 WHERE NOT + col2 <= ( - col1 )
----
189
2028
3002
query I rowsort
SELECT col2 * - col0 + col2 / tab0.col1 AS col1 FROM tab0 WHERE NOT ( col0 ) = NULL
----
query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----
query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 >= ( - col0 )
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7
query I rowsort
SELECT + cor0.col1 + + cor0.col0 + col0 AS col2 FROM tab2 AS cor0
----
175
215
45
query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT IN ( cor0.col0 - + col1 )
----
query I rowsort
SELECT col2 * col2 + - tab1.col1 AS col1 FROM tab1
----
2890
3239
9203
onlyif mysql # use DIV operator for integer division
query I rowsort label-4767
SELECT ALL - - cor0.col0 + col0 DIV - col0 - cor0.col2 * col2 AS col2 FROM tab1 AS cor0
----
-2914
-3186
-9137
skipif mysql # not compatible
query I rowsort label-4767
SELECT ALL - - cor0.col0 + col0 / - col0 - cor0.col2 * col2 AS col2 FROM tab1 AS cor0
----
-2914
-3186
-9137
query I rowsort
SELECT DISTINCT - col1 * + col0 + - col2 * + cor0.col2 FROM tab2 cor0
----
-2787
-5278
-946
query I rowsort
SELECT DISTINCT col1 + col1 * col0 - col1 * + col2 AS col1 FROM tab0 AS cor0
----
-688
3395
728
query I rowsort
SELECT ALL col2 * + col2 + col2 FROM tab1 AS cor0
----
2970
3306
9312
query I rowsort
SELECT DISTINCT + + cor0.col0 + - col0 * - col2 * + col1 FROM tab1 AS cor0
----
36544
4215
99920
onlyif mysql # use DIV operator for integer division
query I rowsort label-4772
SELECT col2 + col2 DIV - col2 FROM tab1 cor0
----
53
56
95
skipif mysql # not compatible
query I rowsort label-4772
SELECT col2 + col2 / - col2 FROM tab1 cor0
----
53
56
95
query I rowsort
SELECT DISTINCT - col1 * col2 * + col2 FROM tab1 AS cor0
----
-119808
-32490
-75816
query I rowsort
SELECT + col0 + col2 + + col1 FROM tab1 cor0
----
131
189
83
query I rowsort
SELECT ALL + + col0 * - cor0.col0 FROM tab2 AS cor0
----
-49
-6084
-6241
query I rowsort
SELECT col2 + col1 * - col2 AS col1 FROM tab1
----
-1152
-1350
-513
onlyif mysql # use DIV operator for integer division
query I rowsort label-4777
SELECT + cor0.col0 DIV ( + col0 ) + col1 * cor0.col0 FROM tab0 AS cor0
----
2065
3396
8100
skipif mysql # not compatible
query I rowsort label-4777
SELECT + cor0.col0 / ( + col0 ) + col1 * cor0.col0 FROM tab0 AS cor0
----
2065
3396
8100
query I rowsort
SELECT DISTINCT col1 + + ( col2 ) AS col2 FROM tab0 AS cor0
----
119
173
98
query I rowsort
SELECT - col1 * + 11 + 78 FROM tab1 AS cor0
----
-208
-32
-65
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + col1 col1 FROM tab0
----
172
182
194
query I rowsort
SELECT ALL - - cor0.col2 AS col0 FROM tab0, tab2, tab2 AS cor0
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5
query I rowsort
SELECT - col1 - cor0.col0 AS col0 FROM tab0 AS cor0
----
-110
-132
-180
query I rowsort
SELECT ALL - col1 * col0 - - col2 * - tab0.col1 * ( + col0 * col1 ) AS col1 FROM tab0
----
-332710
-5859696
-60442837
onlyif mysql # use DIV operator for integer division
query I rowsort label-4784
SELECT col2 DIV tab2.col0 - col1 * col1 FROM tab2
----
-289
-3481
-958
skipif mysql # not compatible
query I rowsort label-4784
SELECT col2 / tab2.col0 - col1 * col1 FROM tab2
----
-289
-3481
-958
query I rowsort
SELECT ALL col2 * - col0 - - col1 FROM tab1
----
-136
-3638
-7667
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + tab2.col1 - - col0 col0 FROM tab2
----
137
38
96
query I rowsort
SELECT ALL 13 * ( - col0 ) FROM tab2
----
-1014
-1027
-91
query I rowsort
SELECT ( + 24 * - col1 ) FROM tab0
----
-2064
-2184
-2328
query I rowsort
SELECT DISTINCT ( + 37 ) AS col1 FROM tab1
----
37
query I rowsort
SELECT DISTINCT - ( - cor0.col0 ) AS col2 FROM tab0, tab0 AS cor0
----
24
35
89
query I rowsort
SELECT ( + 31 + col0 ) FROM tab1
----
111
34
95
query I rowsort
SELECT DISTINCT - col2 * ( col1 * col1 ) FROM tab0
----
-244068
-679042
-9409
query I rowsort
SELECT 97 FROM tab2, tab1, tab0 cor0
----
27 values hashing to c73fa6978df8525c99d6bc792bb27123
query I rowsort
SELECT DISTINCT - col1 * col0 * - 79 AS col1 FROM tab2
----
106097
17143
363558
query I rowsort
SELECT + cor0.col0 + - col1 * ( 3 ) FROM tab2 AS cor0
----
-86
-99
28
query I rowsort
SELECT ALL + - 92 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 1af709a79a3e56281ffdce4d931d5965
query I rowsort
SELECT ALL ( col0 ) * tab1.col1 FROM tab1
----
1040
640
78
query I rowsort
SELECT - 30 AS col2 FROM tab1, tab0, tab0 AS cor0
----
27 values hashing to a96370a8187089b6b83ce9bfbade5142
query I rowsort
SELECT ALL - col2 * + tab2.col1 AS col1 FROM tab2
----
-1534
-646
-837
query I rowsort
SELECT - col1 * col0 * ( - ( col0 ) + + cor0.col0 ) AS col1 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT + col2 * ( - col0 * col0 ) FROM tab0 cor0
----
-1225
-19008
-649522
query I rowsort
SELECT col1 + - col1 + + col0 AS col2 FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT - + col2 + - col1 * 89 FROM tab2 AS cor0
----
-1551
-2786
-5277
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4804
SELECT DISTINCT - col2 / CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-4804
SELECT DISTINCT - col2 / CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-4805
SELECT + cor0.col1 DIV ( + col1 ) AS col2 FROM tab2 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-4805
SELECT + cor0.col1 / ( + col1 ) AS col2 FROM tab2 AS cor0
----
1
1
1
query I rowsort
SELECT ALL + + col1 + - 52 FROM tab1 AS cor0
----
-26
-39
-42
query I rowsort
SELECT ALL + col1 + 93 AS col2 FROM tab2 AS cor0
----
110
124
152
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col2 * + col0 col1 FROM tab0 AS cor0
----
-35
-7298
-792
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4809
SELECT + CAST( - col1 AS SIGNED ) + - col0 * ( - col0 ) FROM tab0 AS cor0
----
1128
490
7830
skipif mysql # not compatible
query I rowsort label-4809
SELECT + CAST ( - col1 AS INTEGER ) + - col0 * ( - col0 ) FROM tab0 AS cor0
----
1128
490
7830
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4810
SELECT ALL + - CAST( + col2 AS SIGNED ) + - cor0.col0 FROM tab1 cor0
----
-121
-176
-57
skipif mysql # not compatible
query I rowsort label-4810
SELECT ALL + - CAST ( + col2 AS INTEGER ) + - cor0.col0 FROM tab1 cor0
----
-121
-176
-57
query I rowsort
SELECT DISTINCT - 95 * + col1 AS col0 FROM tab1 AS cor0
----
-1235
-2470
-950
onlyif mysql # use DIV operator for integer division
query I rowsort label-4812
SELECT + + col0 + 70 DIV col1 AS col0 FROM tab2 AS cor0
----
79
83
9
skipif mysql # not compatible
query I rowsort label-4812
SELECT + + col0 + 70 / col1 AS col0 FROM tab2 AS cor0
----
79
83
9
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4813
SELECT ALL + col0 * col0 + col1 * CAST( NULL AS SIGNED ) * ( col0 ) + - col1 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4813
SELECT ALL + col0 * col0 + col1 * CAST ( NULL AS INTEGER ) * ( col0 ) + - col1 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4814
SELECT - - ( + ( - col1 ) ) + + CAST( NULL AS SIGNED ) col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4814
SELECT - - ( + ( - col1 ) ) + + CAST ( NULL AS INTEGER ) col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + - 59 AS col0 FROM tab0 AS cor0
----
-59
query I rowsort
SELECT - - ( 17 ) * col0 FROM tab1 AS cor0
----
1088
1360
51
query I rowsort
SELECT DISTINCT + ( col0 ) * - col1 + + col2 FROM tab1 AS cor0
----
-24
-583
-944
query I rowsort
SELECT - + ( + col0 ) + col2 FROM tab2 AS cor0
----
-41
-52
20
onlyif mysql # use DIV operator for integer division
query I rowsort label-4819
SELECT ALL col2 DIV - 31 AS col1 FROM tab1 AS cor0
----
-1
-1
-3
skipif mysql # not compatible
query I rowsort label-4819
SELECT ALL col2 / - 31 AS col1 FROM tab1 AS cor0
----
-1
-1
-3
query I rowsort
SELECT DISTINCT - ( 96 ) + + col1 AS col0 FROM tab1 AS cor0
----
-70
-83
-86
query I rowsort
SELECT DISTINCT + + 12 + col0 FROM tab0 AS cor0
----
101
36
47
query I rowsort
SELECT 43 * col2 + - col2 AS col2 FROM tab1 AS cor0
----
2268
2394
4032
query I rowsort
SELECT DISTINCT + ( + 99 ) AS col2 FROM tab0 AS cor0
----
99
query I rowsort
SELECT ALL - 96 * - col1 FROM tab1 AS cor0
----
1248
2496
960
query I rowsort
SELECT ALL - tab2.col1 * + 19 FROM tab1, tab1 AS cor0 CROSS JOIN tab2
----
27 values hashing to 2faddc3949c9a832722a1a5dd63a82ee
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4826
SELECT ALL - CAST( NULL AS SIGNED ) + ( col0 + - 46 ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4826
SELECT ALL - CAST ( NULL AS INTEGER ) + ( col0 + - 46 ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4827
SELECT + CAST( cor0.col1 AS SIGNED ) * col1 FROM tab2 AS cor0
----
289
3481
961
skipif mysql # not compatible
query I rowsort label-4827
SELECT + CAST ( cor0.col1 AS INTEGER ) * col1 FROM tab2 AS cor0
----
289
3481
961
query I rowsort
SELECT DISTINCT - col2 - + 66 * - col2 FROM tab0 AS cor0
----
2145
5330
65
query I rowsort
SELECT - ( col1 ) + + col2 FROM tab2 cor0
----
-33
-4
21
onlyif mysql # use DIV operator for integer division
query I rowsort label-4830
SELECT ALL - - col1 DIV - col2 AS col1 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-4830
SELECT ALL - - col1 / - col2 AS col1 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT ALL + 48 * - col2 * col2 + cor0.col2 FROM tab0 AS cor0
----
-322670
-47
-52239
query I rowsort
SELECT ALL + ( col0 ) * - col0 + cor0.col1 AS col1 FROM tab1 AS cor0
----
-4086
-6387
17
query I rowsort
SELECT ALL - + cor0.col2 + + col0 * col1 * ( col1 ) FROM tab2 AS cor0
----
22793
271492
6700
onlyif mysql # use DIV operator for integer division
query I rowsort label-4834
SELECT DISTINCT - col2 + + col2 DIV col0 FROM tab0 AS cor0
----
-1
-32
-82
skipif mysql # not compatible
query I rowsort label-4834
SELECT DISTINCT - col2 + + col2 / col0 FROM tab0 AS cor0
----
-1
-32
-82
query I rowsort
SELECT ALL - col2 + + 46 AS col2 FROM tab0 AS cor0
----
-36
13
45
query I rowsort
SELECT DISTINCT + + ( + col2 ) AS col0 FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT + 84 - + col0 FROM tab0 cor0
----
-5
49
60
onlyif mysql # use DIV operator for integer division
query I rowsort label-4838
SELECT ALL + - col2 + cor0.col0 DIV col1 FROM tab2 cor0
----
-25
-27
-34
skipif mysql # not compatible
query I rowsort label-4838
SELECT ALL + - col2 + cor0.col0 / col1 FROM tab2 cor0
----
-25
-27
-34
onlyif mysql # use DIV operator for integer division
query I rowsort label-4839
SELECT DISTINCT + col1 DIV col2 - - col2 FROM tab1 AS cor0
----
54
57
96
skipif mysql # not compatible
query I rowsort label-4839
SELECT DISTINCT + col1 / col2 - - col2 FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT DISTINCT 69 * 53 FROM tab0 AS cor0
----
3657
query I rowsort
SELECT - col1 * + cor0.col0 + - col2 AS col1 FROM tab1 AS cor0
----
-1136
-132
-697
query I rowsort
SELECT + 14 + - col1 * - col0 FROM tab1 cor0
----
1054
654
92
onlyif mysql # use DIV operator for integer division
query I rowsort label-4843
SELECT DISTINCT - col1 * - cor0.col0 + + col1 DIV - cor0.col2 AS col0 FROM tab0 AS cor0
----
2062
3298
8098
skipif mysql # not compatible
query I rowsort label-4843
SELECT DISTINCT - col1 * - cor0.col0 + + col1 / - cor0.col2 AS col0 FROM tab0 AS cor0
----
2062
3298
8098
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4844
SELECT - + 64 * col2 + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4844
SELECT - + 64 * col2 + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT col1 + - col1 * + col0 AS col1 FROM tab1 AS cor0
----
-1027
-52
-630
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - ( - col2 ) + col1 col1 FROM tab1 AS cor0
----
-28
-47
-83
query I rowsort
SELECT 43 + col1 * col2 FROM tab1 cor0
----
1291
1447
613
onlyif mysql # use DIV operator for integer division
query I rowsort label-4848
SELECT ALL - 97 DIV - col1 FROM tab0 cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-4848
SELECT ALL - 97 / - col1 FROM tab0 cor0
----
1
1
1
query I rowsort
SELECT DISTINCT 87 FROM tab2, tab0 cor0, tab0 AS cor1, tab1 AS cor2
----
87
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4850
SELECT ALL - CAST( NULL AS SIGNED ) + + col1 * tab0.col1 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4850
SELECT ALL - CAST ( NULL AS INTEGER ) + + col1 * tab0.col1 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - col2 * - col1 - - col0 AS col1 FROM tab0 AS cor0
----
132
2862
7551
query I rowsort
SELECT DISTINCT - col2 * 8 FROM tab0 AS cor0
----
-264
-656
-8
query I rowsort
SELECT DISTINCT + col0 - ( col0 * col2 ) FROM tab2 AS cor0
----
-182
-1950
-2923
query I rowsort
SELECT DISTINCT + col1 * 11 FROM tab0 AS cor0
----
1001
1067
946
query I rowsort
SELECT 7 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 4e72e9e33dacac757f48d0ce46094607
query I rowsort
SELECT DISTINCT + col0 * col0 + + 35 * - col0 FROM tab1 AS cor0
----
-96
1856
3600
query I rowsort
SELECT 8 * - cor1.col0 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to f174bfcdf744ed770bc50917db3881fb
query I rowsort
SELECT ALL + col0 * tab1.col1 - 45 FROM tab1
----
33
595
995
query I rowsort
SELECT DISTINCT col1 - - col2 * - col1 FROM tab2
----
-1475
-629
-806
onlyif mysql # use DIV operator for integer division
query I rowsort label-4860
SELECT ALL - col2 * - col1 - col0 DIV col0 AS col0 FROM tab0
----
2837
7461
96
skipif mysql # not compatible
query I rowsort label-4860
SELECT ALL - col2 * - col1 - col0 / col0 AS col0 FROM tab0
----
2837
7461
96
query I rowsort
SELECT 6 AS col0 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to f1e8f0199f3714ee8fcc24ce0cc3ea04
query I rowsort
SELECT + col2 + tab2.col1 + - tab2.col2 AS col0 FROM tab2
----
17
31
59
query I rowsort
SELECT - ( - col0 ) * col2 * - col2 AS col0 FROM tab0 AS cor0
----
-26136
-35
-598436
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4864
SELECT - CAST( NULL AS DECIMAL ) * ( - col2 ) * col0 FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4864
SELECT - CAST ( NULL AS REAL ) * ( - col2 ) * col0 FROM tab2 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + col1 * ( col1 ) FROM tab1
----
100
169
676
query I rowsort
SELECT ALL ( 42 ) FROM tab0, tab1 AS cor0
----
9 values hashing to 64c29db9f1cd7ed4ddeb1735e3e0d442
query I rowsort
SELECT ALL + tab1.col2 * + cor0.col1 AS col0 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to c3fd7ac1d848da6e54fad73fc607f7da
query I rowsort
SELECT ( + col1 ) * + col2 AS col1 FROM tab2
----
1534
646
837
query I rowsort
SELECT DISTINCT + 59 * col1 * col1 + + 70 FROM tab1
----
10041
39954
5970
query I rowsort
SELECT - - 5 AS col0 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to 6797d40099023779b89feb627d94a3e7
query I rowsort
SELECT ( col2 + + col0 ) * 60 FROM tab0
----
10260
2160
3420
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + + col2 * + col2 + col2 col0 FROM tab0
----
-33
1098
6717
query I rowsort
SELECT ( + 8 + + col1 ) FROM tab0
----
105
94
99
query I rowsort
SELECT ( tab2.col1 ) + col0 * col0 + col1 AS col0 FROM tab2
----
111
6202
6275
query I rowsort
SELECT - + col1 * + 69 * + cor0.col1 AS col1 FROM tab0 AS cor0
----
-510324
-571389
-649221
query I rowsort
SELECT DISTINCT + 80 AS col1 FROM tab2, tab1 AS cor0
----
80
onlyif mysql # use DIV operator for integer division
query I rowsort label-4877
SELECT DISTINCT + - 57 DIV - col1 AS col2 FROM tab2 AS cor0
----
0
1
3
skipif mysql # not compatible
query I rowsort label-4877
SELECT DISTINCT + - 57 / - col1 AS col2 FROM tab2 AS cor0
----
0
1
3
query I rowsort
SELECT ALL + 3 * col1 * + col1 FROM tab1
----
2028
300
507
query I rowsort
SELECT DISTINCT cor1.col0 FROM tab2, tab0 cor0, tab1 AS cor1
----
3
64
80
query I rowsort
SELECT ALL - 99 AS col0 FROM tab1
----
-99
-99
-99
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4881
SELECT + 82 * + col2 * CAST( NULL AS DECIMAL ) + col2 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4881
SELECT + 82 * + col2 * CAST ( NULL AS REAL ) + col2 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT 75 * tab0.col2 * col0 AS col1 FROM tab0
----
2625
547350
59400
query I rowsort
SELECT + 17 * col0 * cor0.col1 FROM tab1 AS cor0
----
10880
1326
17680
query I rowsort
SELECT DISTINCT + 90 * col2 AS col2 FROM tab2 AS cor0
----
2340
2430
3420
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 92 * - col2 col1 FROM tab1 AS cor0
----
-4968
-5244
-8832
query I rowsort
SELECT DISTINCT + 55 AS col2 FROM tab2
----
55
query I rowsort
SELECT DISTINCT cor0.col1 + + cor0.col0 * + 19 AS col1 FROM tab0 AS cor0
----
1782
542
762
query I rowsort
SELECT ALL - cor0.col1 * + col2 * ( col1 ) FROM tab1 AS cor0
----
-16224
-36504
-5700
query I rowsort
SELECT cor0.col1 * + ( - 97 ) AS col0 FROM tab2 AS cor0
----
-1649
-3007
-5723
query I rowsort
SELECT DISTINCT + col1 + 62 * 1 AS col1 FROM tab2 cor0
----
121
79
93
query I rowsort
SELECT DISTINCT - - cor0.col2 + cor0.col0 * col1 FROM tab1 AS cor0
----
1136
132
697
skipif mysql # not compatible
query I rowsort
SELECT ALL + CAST ( 6 AS REAL ) FROM tab0, tab0 AS cor0
----
9 values hashing to 5d1cb90ed58fa7573895d2f95b211821
onlyif mysql # use DIV operator for integer division
query I rowsort label-4893
SELECT - col2 DIV + 36 FROM tab1 cor0
----
-1
-1
-2
skipif mysql # not compatible
query I rowsort label-4893
SELECT - col2 / + 36 FROM tab1 cor0
----
-1
-1
-2
query I rowsort
SELECT ALL - - cor0.col0 + ( + col0 ) * + col2 AS col2 FROM tab0 AS cor0
----
70
7387
816
query I rowsort
SELECT + col0 + + tab1.col0 * - 22 FROM tab1
----
-1344
-1680
-63
query I rowsort
SELECT DISTINCT col1 * + ( + col0 ) FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT col0 * + 28 * col1 AS col0 FROM tab2 AS cor0
----
128856
37604
6076
query I rowsort
SELECT ALL - - col2 * + cor0.col1 + + 46 AS col0 FROM tab1 AS cor0
----
1294
1450
616
query I rowsort
SELECT DISTINCT col1 * tab2.col0 + + col1 AS col1 FROM tab2
----
1360
248
4661
query I rowsort
SELECT DISTINCT + col1 + - col2 * col1 * tab2.col2 FROM tab2
----
-22568
-24531
-39825
onlyif mysql # use DIV operator for integer division
query I rowsort label-4901
SELECT - col2 * + col2 + - col1 DIV col1 + + 18 FROM tab1 AS cor0
----
-2899
-3232
-9199
skipif mysql # not compatible
query I rowsort label-4901
SELECT - col2 * + col2 + - col1 / col1 + + 18 FROM tab1 AS cor0
----
-2899
-3232
-9199
query I rowsort
SELECT - col1 - 99 FROM tab1 cor0
----
-109
-112
-125
query I rowsort
SELECT DISTINCT col2 + - cor0.col1 + - col1 * col1 AS col2 FROM tab1 AS cor0
----
-53
-648
-86
query III rowsort
SELECT * FROM tab1 WHERE NOT col2 = col0 * - col2
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d
onlyif mysql # use DIV operator for integer division
query I rowsort label-4905
SELECT col1 DIV + col1 col2 FROM tab0
----
1
1
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4905
SELECT col1 / + col1 col2 FROM tab0
----
1
1
1
query I rowsort
SELECT + tab0.col0 / col2 FROM tab0 WHERE - col0 + col1 IN ( col1 )
----
query I rowsort
SELECT DISTINCT tab0.col1 * - col1 + + col1 AS col1 FROM tab0
----
-7310
-8190
-9312
query I rowsort
SELECT + tab2.col1 * - col0 + - col0 * col1 + - tab2.col2 * col0 FROM tab2
----
-11232
-5688
-623
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 - + col1 col1 FROM tab0 WHERE ( NULL ) BETWEEN ( col0 ) AND NULL
----
query I rowsort
SELECT + col0 * + col2 * col1 + col2 AS col0 FROM tab1
----
36537
4266
99936
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab1.col0 / col1 col0 FROM tab1 WHERE NOT ( NULL ) NOT BETWEEN ( NULL ) AND NULL
----
query I rowsort
SELECT - col1 - - col1 AS col1 FROM tab2 WHERE NULL BETWEEN NULL AND ( NULL )
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab0.col2 - + col0 * + col2 * + tab0.col0 col0 FROM tab0
----
-1224
-18975
-649440
query I rowsort
SELECT col2 * col1 + - col1 FROM tab1
----
1235
1378
560
onlyif mysql # use DIV operator for integer division
query I rowsort label-4915
SELECT col2 DIV - col2 AS col2 FROM tab0 WHERE NOT col0 IN ( - col0 DIV - col1 )
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-4915
SELECT col2 / - col2 AS col2 FROM tab0 WHERE NOT col0 IN ( - col0 / - col1 )
----
-1
-1
-1
query I rowsort
SELECT ALL - tab0.col0 - + col0 FROM tab0
----
-178
-48
-70
onlyif mysql # use DIV operator for integer division
query I rowsort label-4917
SELECT DISTINCT - col2 DIV col1 - col0 FROM tab1
----
-5
-69
-87
skipif mysql # not compatible
query I rowsort label-4917
SELECT DISTINCT - col2 / col1 - col0 FROM tab1
----
-5
-69
-87
query I rowsort
SELECT ALL col2 * col1 + col2 * col1 * + col2 FROM tab2
----
23436
25194
41418
query I rowsort
SELECT DISTINCT - col0 + + col1 * + col0 AS col1 FROM tab1
----
576
75
960
onlyif mysql # use DIV operator for integer division
query I rowsort label-4920
SELECT + tab0.col0 DIV - col0 FROM tab0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-4920
SELECT + tab0.col0 / - col0 FROM tab0
----
-1
-1
-1
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( NULL ) BETWEEN ( NULL ) AND NULL
----
query I rowsort
SELECT col1 * + col0 * col0 + - tab0.col1 * + col0 + col2 FROM tab0
----
115431
47505
712794
query I rowsort
SELECT col2 - col2 * + col2 FROM tab2
----
-1406
-650
-702
query I rowsort
SELECT ( 78 ) AS col2 FROM tab1
----
78
78
78
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4925
SELECT CAST( NULL AS SIGNED ) * + col2 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4925
SELECT CAST ( NULL AS INTEGER ) * + col2 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT ALL col2 * + cor0.col1 * + 73 AS col0 FROM tab2 AS cor0
----
111982
47158
61101
query I rowsort
SELECT ALL col2 + col2 * - 52 AS col0 FROM tab1 AS cor0
----
-2754
-2907
-4896
query I rowsort
SELECT + + 26 * + col1 + cor0.col0 FROM tab2 AS cor0
----
1612
521
813
query I rowsort
SELECT DISTINCT 28 + - col1 FROM tab1
----
15
18
2
query I rowsort
SELECT + ( col2 ) + tab1.col1 FROM tab1
----
109
67
80
onlyif mysql # use DIV operator for integer division
query I rowsort label-4931
SELECT - col0 DIV tab1.col2 - tab1.col1 DIV + 12 FROM tab1
----
-1
-1
-2
skipif mysql # not compatible
query I rowsort label-4931
SELECT - col0 / tab1.col2 - tab1.col1 / + 12 FROM tab1
----
-1
-1
-2
query I rowsort
SELECT 23 + col1 AS col1 FROM tab2
----
40
54
82
query I rowsort
SELECT 73 - + col1 FROM tab2
----
14
42
56
query I rowsort
SELECT ALL - + 95 AS col1 FROM tab0 AS cor0
----
-95
-95
-95
query I rowsort
SELECT DISTINCT - col0 + + col0 * - ( - col2 ) FROM tab1 AS cor0
----
159
3584
7600
query I rowsort
SELECT ALL - col1 * cor0.col0 + col2 AS col1 FROM tab0 cor0
----
-2031
-3394
-8017
query I rowsort
SELECT + 82 + col0 * 6 AS col0 FROM tab2 AS cor0
----
124
550
556
query I rowsort
SELECT DISTINCT - 70 AS col2 FROM tab2 AS cor0
----
-70
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + ( col2 ) col1 FROM tab2 AS cor0
----
-26
-27
-38
onlyif mysql # use DIV operator for integer division
query I rowsort label-4940
SELECT + col2 DIV ( col2 ) FROM tab1
----
1
1
1
skipif mysql # not compatible
query I rowsort label-4940
SELECT + col2 / ( col2 ) FROM tab1
----
1
1
1
query I rowsort
SELECT col1 + - 65 - col0 AS col1 FROM tab0 AS cor0
----
-3
-3
-63
query I rowsort
SELECT + - col0 - ( + col1 ) FROM tab0 AS cor0
----
-110
-132
-180
onlyif mysql # use DIV operator for integer division
query I rowsort label-4943
SELECT + + col1 DIV + col0 AS col1 FROM tab1 cor0
----
0
0
8
skipif mysql # not compatible
query I rowsort label-4943
SELECT + + col1 / + col0 AS col1 FROM tab1 cor0
----
0
0
8
query I rowsort
SELECT DISTINCT - 46 AS col2 FROM tab1 AS cor0
----
-46
query I rowsort
SELECT ALL 72 * col0 FROM tab0 AS cor0
----
1728
2520
6408
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 18 col0 FROM tab0, tab0 AS cor0
----
9 values hashing to b95bafa733666df39c5d3f94760d010f
onlyif mysql # use DIV operator for integer division
query I rowsort label-4947
SELECT col0 * ( - 99 ) DIV col0 col1 FROM tab1
----
-99
-99
-99
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4947
SELECT col0 * ( - 99 ) / col0 col1 FROM tab1
----
-99
-99
-99
query I rowsort
SELECT - - 82 + cor0.col0 AS col0 FROM tab1 AS cor0
----
146
162
85
query I rowsort
SELECT ALL ( + col2 ) + col2 * - ( 37 ) FROM tab2 cor0
----
-1368
-936
-972
query I rowsort
SELECT + col0 + col2 * - tab0.col0 AS col0 FROM tab0
----
-7209
-768
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-4951
SELECT DISTINCT - col1 + + cor0.col1 + - col2 * col2 DIV - cor0.col1 FROM tab0 AS cor0
----
0
12
73
skipif mysql # not compatible
query I rowsort label-4951
SELECT DISTINCT - col1 + + cor0.col1 + - col2 * col2 / - cor0.col1 FROM tab0 AS cor0
----
0
12
73
query I rowsort
SELECT ALL + - 59 * col2 + - ( ( col1 ) ) AS col0 FROM tab2 AS cor0
----
-1593
-1624
-2259
query I rowsort
SELECT col2 - - ( col1 * col2 ) FROM tab1 AS cor0
----
1344
1458
627
query I rowsort
SELECT DISTINCT + col2 + - 19 FROM tab0 AS cor0
----
-18
14
63
query I rowsort
SELECT col2 * 45 + cor0.col2 FROM tab0 AS cor0
----
1518
3772
46
query I rowsort
SELECT + col2 - 37 FROM tab0 AS cor0
----
-36
-4
45
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 57 col1 FROM tab1, tab2 AS cor0
----
57
onlyif mysql # use DIV operator for integer division
query I rowsort label-4958
SELECT - col2 DIV + 14 FROM tab1
----
-3
-4
-6
skipif mysql # not compatible
query I rowsort label-4958
SELECT - col2 / + 14 FROM tab1
----
-3
-4
-6
query I rowsort
SELECT 73 * - cor1.col2 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 2cdada4ff1957b40d54c501b61f99ecf
query I rowsort
SELECT - col0 * - col0 * - col2 AS col2 FROM tab0 AS cor0
----
-1225
-19008
-649522
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4961
SELECT - col1 * CAST( NULL AS DECIMAL ) / col2 + + col0 + + 68 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4961
SELECT - col1 * CAST ( NULL AS REAL ) / col2 + + col0 + + 68 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - cor0.col1 * 83 AS col0 FROM tab2 AS cor0
----
-1411
-2573
-4897
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * ( col1 ) - cor0.col0 col2 FROM tab0 AS cor0
----
-2088
-3430
-8188
query I rowsort
SELECT DISTINCT - col1 + 64 AS col0 FROM tab0 AS cor0
----
-22
-27
-33
query I rowsort
SELECT - col0 + ( + col2 ) + col2 AS col0 FROM tab2 AS cor0
----
-26
-3
47
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4966
SELECT ALL col1 * CAST( col2 AS SIGNED ) FROM tab1 cor0
----
1248
1404
570
skipif mysql # not compatible
query I rowsort label-4966
SELECT ALL col1 * CAST ( col2 AS INTEGER ) FROM tab1 cor0
----
1248
1404
570
query I rowsort
SELECT + col2 + + 11 FROM tab0 AS cor0
----
12
44
93
onlyif mysql # use DIV operator for integer division
query I rowsort label-4968
SELECT DISTINCT - col2 DIV 21 FROM tab0 AS cor0
----
-1
-3
0
skipif mysql # not compatible
query I rowsort label-4968
SELECT DISTINCT - col2 / 21 FROM tab0 AS cor0
----
-1
-3
0
query I rowsort
SELECT DISTINCT ( cor0.col1 ) * - col2 AS col1 FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT ALL + + 51 AS col2 FROM tab1 AS cor0
----
51
51
51
query I rowsort
SELECT - col1 * 29 + + col0 AS col2 FROM tab2
----
-1633
-414
-892
query I rowsort
SELECT DISTINCT + ( - col2 ) * cor0.col1 FROM tab0 cor0
----
-2838
-7462
-97
onlyif mysql # use DIV operator for integer division
query I rowsort label-4973
SELECT ALL col0 + - cor0.col0 * col1 DIV - 17 + - col2 * - cor0.col2 AS col2 FROM tab1 AS cor0
----
2923
3350
9357
skipif mysql # not compatible
query I rowsort label-4973
SELECT ALL col0 + - cor0.col0 * col1 / - 17 + - col2 * - cor0.col2 AS col2 FROM tab1 AS cor0
----
2923
3350
9357
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + cor0.col1 + col2 col0 FROM tab2 AS cor0
----
-33
-4
21
query I rowsort
SELECT ALL - ( ( + col0 ) ) AS col1 FROM tab2 AS cor0
----
-7
-78
-79
onlyif mysql # use DIV operator for integer division
query I rowsort label-4976
SELECT DISTINCT - col0 DIV ( - cor0.col2 ) + - 47 AS col0 FROM tab1 AS cor0
----
-46
-47
skipif mysql # not compatible
query I rowsort label-4976
SELECT DISTINCT - col0 / ( - cor0.col2 ) + - 47 AS col0 FROM tab1 AS cor0
----
-46
-47
query I rowsort
SELECT DISTINCT col0 * cor0.col2 - - col1 FROM tab1 cor0
----
188
3658
7693
query I rowsort
SELECT DISTINCT - ( col1 ) + + col0 + cor0.col0 FROM tab2 AS cor0
----
-17
141
97
query I rowsort
SELECT - 83 * - 77 + col1 AS col1 FROM tab1 AS cor0
----
6401
6404
6417
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4980
SELECT ALL - CAST( ( col1 ) AS SIGNED ) + - 5 * col0 FROM tab1 AS cor0
----
-330
-41
-413
skipif mysql # not compatible
query I rowsort label-4980
SELECT ALL - CAST ( ( col1 ) AS INTEGER ) + - 5 * col0 FROM tab1 AS cor0
----
-330
-41
-413
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT CAST ( - 88 AS REAL ) AS col2 FROM tab0 AS cor0
----
-88
onlyif mysql # use DIV operator for integer division
query I rowsort label-4982
SELECT ALL col0 + col0 DIV - col0 FROM tab2 AS cor0
----
6
77
78
skipif mysql # not compatible
query I rowsort label-4982
SELECT ALL col0 + col0 / - col0 FROM tab2 AS cor0
----
6
77
78
onlyif mysql # use DIV operator for integer division
query I rowsort label-4983
SELECT ALL + + col1 DIV - col0 + + col0 FROM tab2 AS cor0
----
3
78
79
skipif mysql # not compatible
query I rowsort label-4983
SELECT ALL + + col1 / - col0 + + col0 FROM tab2 AS cor0
----
3
78
79
onlyif mysql # use DIV operator for integer division
query I rowsort label-4984
SELECT - + col2 DIV cor0.col1 AS col0 FROM tab2 AS cor0
----
-2
0
0
skipif mysql # not compatible
query I rowsort label-4984
SELECT - + col2 / cor0.col1 AS col0 FROM tab2 AS cor0
----
-2
0
0
query I rowsort
SELECT - + cor0.col0 * + col1 * + col2 FROM tab1 AS cor0
----
-36480
-4212
-99840
onlyif mysql # use DIV operator for integer division
query I rowsort label-4986
SELECT DISTINCT - + cor0.col0 DIV col1 AS col1 FROM tab2 AS cor0
----
-1
-4
0
skipif mysql # not compatible
query I rowsort label-4986
SELECT DISTINCT - + cor0.col0 / col1 AS col1 FROM tab2 AS cor0
----
-1
-4
0
query I rowsort
SELECT DISTINCT + - 60 * col0 FROM tab2 cor0
----
-420
-4680
-4740
query I rowsort
SELECT 69 * cor0.col2 * + ( + 9 ) AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 4c146c35ad2669f6a196e62b07206d37
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4989
SELECT + CAST( NULL AS SIGNED ) + col2 AS col1 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4989
SELECT + CAST ( NULL AS INTEGER ) + col2 AS col1 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - 66 + cor0.col1 AS col0 FROM tab2 AS cor0
----
-35
-49
-7
query I rowsort
SELECT ALL - 67 + col1 AS col1 FROM tab0 AS cor0
----
19
24
30
query I rowsort
SELECT DISTINCT - + col2 * col0 AS col2 FROM tab2 AS cor0
----
-189
-2028
-3002
onlyif mysql # use DIV operator for integer division
query I rowsort label-4993
SELECT ALL 29 DIV - col0 + - 67 FROM tab0 AS cor0
----
-67
-67
-68
skipif mysql # not compatible
query I rowsort label-4993
SELECT ALL 29 / - col0 + - 67 FROM tab0 AS cor0
----
-67
-67
-68
query I rowsort
SELECT 14 * + cor0.col2 + col1 AS col0 FROM tab0 cor0
----
111
1239
548
query I rowsort
SELECT + 15 FROM tab2, tab2 cor0
----
9 values hashing to d1d280d38bf9c2d5d5ec90dd43aeaffd
query I rowsort
SELECT - + col1 + col2 AS col0 FROM tab2 cor0
----
-33
-4
21
query I rowsort
SELECT 34 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 4e2ca147a59e0d5661c28cf3e5431caa
onlyif mysql # use DIV operator for integer division
query I rowsort label-4998
SELECT + 31 + col0 DIV col2 FROM tab1 AS cor0
----
31
31
32
skipif mysql # not compatible
query I rowsort label-4998
SELECT + 31 + col0 / col2 FROM tab1 AS cor0
----
31
31
32
query I rowsort
SELECT - 96 FROM tab0, tab1 AS cor0
----
9 values hashing to c89b545346f99713888a7934e4caa539
query I rowsort
SELECT ALL col2 * col1 + - col2 AS col0 FROM tab0 AS cor0
----
2805
7380
96
query I rowsort
SELECT DISTINCT - 69 * - col0 AS col2 FROM tab0 AS cor0
----
1656
2415
6141
query I rowsort
SELECT DISTINCT + + ( - 29 ) FROM tab1 cor0
----
-29
skipif mysql # not compatible
query I rowsort
SELECT ALL - CAST ( - col2 AS REAL ) + - col2 * ( col2 * - col1 + 52 ) AS col2 FROM tab0 AS cor0
----
46
607702
91971
query I rowsort
SELECT DISTINCT + 58 * col2 FROM tab2
----
1508
1566
2204
query I rowsort
SELECT - ( - 39 ) * col0 AS col0 FROM tab1 AS cor0
----
117
2496
3120
query I rowsort
SELECT + ( col0 ) * col1 FROM tab2 cor0
----
1343
217
4602
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + 67 col2 FROM tab2 AS cor0
----
36
50
8
query I rowsort
SELECT DISTINCT tab2.col0 + col0 - - ( col1 * - col2 ) FROM tab2
----
-1378
-488
-823
query I rowsort
SELECT cor0.col2 + col1 * - 88 FROM tab1 AS cor0
----
-1048
-2234
-823
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - cor0.col2 + + col2 col1 FROM tab2 AS cor0
----
-1508
-608
-810
query I rowsort
SELECT - col2 + ( + 33 ) FROM tab1 AS cor0
----
-21
-24
-63
query I rowsort
SELECT ALL col1 + 92 AS col1 FROM tab2 cor0
----
109
123
151
query I rowsort
SELECT - col2 + + col1 * col2 * cor0.col0 FROM tab0 AS cor0
----
3394
664036
68079
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col1 * - 19 col2 FROM tab0 AS cor0
----
-1634
-1729
-1843
query I rowsort
SELECT - col0 + - 82 FROM tab2 AS cor0
----
-160
-161
-89
query I rowsort
SELECT DISTINCT + - 61 FROM tab0, tab1 AS cor0
----
-61
query I rowsort
SELECT DISTINCT + col1 + - cor0.col0 * col2 AS col0 FROM tab0 AS cor0
----
-706
-7207
62
onlyif mysql # use DIV operator for integer division
query I rowsort label-5018
SELECT DISTINCT - + col1 DIV col0 + - 25 * + col2 FROM tab0 AS cor0
----
-2051
-27
-828
skipif mysql # not compatible
query I rowsort label-5018
SELECT DISTINCT - + col1 / col0 + - 25 * + col2 FROM tab0 AS cor0
----
-2051
-27
-828
query I rowsort
SELECT DISTINCT - cor0.col2 * col1 + col2 FROM tab1 AS cor0
----
-1152
-1350
-513
query I rowsort
SELECT ALL + col1 * 33 + col2 FROM tab0 AS cor0
----
2871
3085
3202
query I rowsort
SELECT DISTINCT tab2.col2 + + tab2.col0 FROM tab2
----
104
117
34
onlyif mysql # use DIV operator for integer division
query I rowsort label-5022
SELECT DISTINCT + col1 + 71 DIV col2 AS col0 FROM tab0
----
168
88
91
skipif mysql # not compatible
query I rowsort label-5022
SELECT DISTINCT + col1 + 71 / col2 AS col0 FROM tab0
----
168
88
91
query I rowsort
SELECT ALL + col1 * 71 AS col0 FROM tab1 AS cor0
----
1846
710
923
query I rowsort
SELECT + + col0 * + 18 AS col1 FROM tab2 AS cor0
----
126
1404
1422
query I rowsort
SELECT DISTINCT - - 96 + 72 AS col1 FROM tab0 AS cor0
----
168
query I rowsort
SELECT + 33 * col0 FROM tab1 AS cor0
----
2112
2640
99
query I rowsort
SELECT ALL col0 + col1 * + ( col2 ) AS col1 FROM tab0
----
132
2862
7551
onlyif mysql # use DIV operator for integer division
query I rowsort label-5028
SELECT col0 DIV 50 + - ( - col0 ) FROM tab0
----
24
35
90
skipif mysql # not compatible
query I rowsort label-5028
SELECT col0 / 50 + - ( - col0 ) FROM tab0
----
24
35
90
query I rowsort
SELECT - col2 * - 2 + + 89 FROM tab1
----
197
203
281
query I rowsort
SELECT DISTINCT col0 + - col2 - cor0.col1 FROM tab2 cor0
----
-51
-7
24
query I rowsort
SELECT ALL + col0 + - col1 + - col1 FROM tab0 AS cor0
----
-148
-159
-93
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * + col2 - - col2 col1 FROM tab2 cor0
----
-162
-2002
-2964
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * col2 + - col1 col2 FROM tab0 AS cor0
----
-62
706
7207
query I rowsort
SELECT tab1.col0 + col0 + + 14 FROM tab1
----
142
174
20
query I rowsort
SELECT DISTINCT - tab0.col1 * - 80 FROM tab0, tab2 AS cor0
----
6880
7280
7760
query I rowsort
SELECT ALL - 58 * cor0.col1 AS col0 FROM tab2 AS cor0
----
-1798
-3422
-986
query I rowsort
SELECT - - 87 * + col1 FROM tab0 AS cor0
----
7482
7917
8439
query I rowsort
SELECT DISTINCT 4 - + col2 FROM tab0 AS cor0
----
-29
-78
3
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5039
SELECT DISTINCT - - col1 + 56 * - col1 * CAST( - col2 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
31930
69901
78650
skipif mysql # not compatible
query I rowsort label-5039
SELECT DISTINCT - - col1 + 56 * - col1 * CAST ( - col2 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
31930
69901
78650
query I rowsort
SELECT ALL - + 87 + col2 FROM tab1 AS cor0
----
-30
-33
9
query I rowsort
SELECT + ( cor0.col1 ) * col0 + ( - ( - cor0.col2 ) ) FROM tab0 AS cor0
----
2097
3396
8181
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 99 * - col0 col2 FROM tab1 AS cor0
----
297
6336
7920
onlyif mysql # use DIV operator for integer division
query I rowsort label-5043
SELECT 53 DIV + col1 + tab0.col0 * col0 AS col0 FROM tab0
----
1225
576
7921
skipif mysql # not compatible
query I rowsort label-5043
SELECT 53 / + col1 + tab0.col0 * col0 AS col0 FROM tab0
----
1225
576
7921
query I rowsort
SELECT DISTINCT 58 * - col0 AS col1 FROM tab0 AS cor0
----
-1392
-2030
-5162
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5045
SELECT ALL + - CAST( - col1 AS SIGNED ) * + col1 AS col1 FROM tab0 AS cor0
----
7396
8281
9409
skipif mysql # not compatible
query I rowsort label-5045
SELECT ALL + - CAST ( - col1 AS INTEGER ) * + col1 AS col1 FROM tab0 AS cor0
----
7396
8281
9409
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * col2 col1 FROM tab1 cor0
----
1248
1404
570
query I rowsort
SELECT + ( + cor0.col1 ) * col2 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT ALL + + 78 * - col2 + col0 + ( + 63 ) FROM tab2 AS cor0
----
-1887
-2036
-2822
query I rowsort
SELECT ALL - 61 * - col1 FROM tab0 AS cor0
----
5246
5551
5917
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5050
SELECT DISTINCT - + CAST( - ( col1 ) AS SIGNED ) FROM tab0 AS cor0
----
86
91
97
skipif mysql # not compatible
query I rowsort label-5050
SELECT DISTINCT - + CAST ( - ( col1 ) AS INTEGER ) FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT ALL - ( - col1 ) + col1 + col1 * - col2 FROM tab0
----
-2666
-7280
97
query I rowsort
SELECT - col0 + col0 * 96 AS col2 FROM tab0
----
2280
3325
8455
query I rowsort
SELECT DISTINCT - 27 + col0 AS col1 FROM tab0 cor0
----
-3
62
8
query I rowsort
SELECT 78 + cor0.col2 * 73 FROM tab2 AS cor0
----
1976
2049
2852
query I rowsort
SELECT DISTINCT - col2 * + col1 + - col2 FROM tab2 AS cor0
----
-1560
-684
-864
query I rowsort
SELECT DISTINCT + 29 * + col0 FROM tab1 cor0
----
1856
2320
87
onlyif mysql # use DIV operator for integer division
query I rowsort label-5057
SELECT ALL - 9 * col2 + col0 DIV 41 + col1 col2 FROM tab2 AS cor0
----
-174
-212
-324
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5057
SELECT ALL - 9 * col2 + col0 / 41 + col1 col2 FROM tab2 AS cor0
----
-174
-212
-324
query I rowsort
SELECT DISTINCT + ( col2 ) + - col0 * - col1 FROM tab1 AS cor0
----
1136
132
697
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col0 + + col2 * col1 col0 FROM tab1 AS cor0
----
1328
1407
634
query I rowsort
SELECT ALL + + cor0.col1 + col2 * + col2 AS col2 FROM tab2 AS cor0
----
1461
735
760
onlyif mysql # use DIV operator for integer division
query I rowsort label-5061
SELECT col1 DIV col1 + - col0 AS col1 FROM tab0 AS cor0
----
-23
-34
-88
skipif mysql # not compatible
query I rowsort label-5061
SELECT col1 / col1 + - col0 AS col1 FROM tab0 AS cor0
----
-23
-34
-88
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 + - ( + 33 ) col0 FROM tab0 AS cor0
----
-115
-34
-66
query I rowsort
SELECT - col0 + - 6 AS col1 FROM tab2 AS cor0
----
-13
-84
-85
query I rowsort
SELECT DISTINCT + col2 + - cor0.col1 * col1 FROM tab0 AS cor0
----
-7363
-8199
-9408
onlyif mysql # use DIV operator for integer division
query I rowsort label-5065
SELECT ALL + - col0 DIV cor0.col1 + 15 * col2 FROM tab1 AS cor0
----
1434
810
849
skipif mysql # not compatible
query I rowsort label-5065
SELECT ALL + - col0 / cor0.col1 + 15 * col2 FROM tab1 AS cor0
----
1434
810
849
onlyif mysql # use DIV operator for integer division
query I rowsort label-5066
SELECT - col2 DIV + 41 FROM tab1 cor0
----
-1
-1
-2
skipif mysql # not compatible
query I rowsort label-5066
SELECT - col2 / + 41 FROM tab1 cor0
----
-1
-1
-2
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col1 * - 92 + cor0.col1 col2 FROM tab0 AS cor0
----
7998
8463
9021
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5068
SELECT ALL - col1 * - CAST( - ( col1 ) AS SIGNED ) FROM tab1 AS cor0
----
-100
-169
-676
skipif mysql # not compatible
query I rowsort label-5068
SELECT ALL - col1 * - CAST ( - ( col1 ) AS INTEGER ) FROM tab1 AS cor0
----
-100
-169
-676
query I rowsort
SELECT col1 + - 48 AS col2 FROM tab1 AS cor0
----
-22
-35
-38
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5070
SELECT + col0 + - CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5070
SELECT + col0 + - CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT - ( tab0.col1 ) AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 58ed467a9a332e4d7bfaa9abdbbd063f
query I rowsort
SELECT - col2 * ( 12 ) AS col0 FROM tab2
----
-312
-324
-456
query I rowsort
SELECT + ( + cor0.col0 ) * + col0 FROM tab1 AS cor0
----
4096
6400
9
query I rowsort
SELECT DISTINCT - + col1 + col0 + col1 FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT + - col1 - col0 AS col2 FROM tab2 AS cor0
----
-137
-38
-96
query I rowsort
SELECT DISTINCT + 19 * col0 + 65 FROM tab1 AS cor0
----
122
1281
1585
query I rowsort
SELECT - col0 + col0 * - ( col0 ) * col0 FROM tab2
----
-350
-474630
-493118
query I rowsort
SELECT - col2 + + col1 + col2 FROM tab1
----
10
13
26
query I rowsort
SELECT 95 * col0 AS col0 FROM tab1
----
285
6080
7600
query I rowsort
SELECT DISTINCT - 79 + col1 FROM tab0
----
12
18
7
query I rowsort
SELECT ALL 71 + - col2 FROM tab0
----
-11
38
70
query I rowsort
SELECT + + col0 * 47 + - col0 AS col0 FROM tab1 cor0
----
138
2944
3680
query I rowsort
SELECT + + col0 * - col2 + col2 * + col1 FROM tab2 AS cor0
----
-2356
-494
648
query I rowsort
SELECT + col0 + tab1.col1 + + col0 FROM tab1
----
138
173
32
onlyif mysql # use DIV operator for integer division
query I rowsort label-5085
SELECT DISTINCT ( col0 ) DIV - 21 + col2 * - col0 AS col0 FROM tab2
----
-189
-2031
-3005
skipif mysql # not compatible
query I rowsort label-5085
SELECT DISTINCT ( col0 ) / - 21 + col2 * - col0 AS col0 FROM tab2
----
-189
-2031
-3005
onlyif mysql # use DIV operator for integer division
query I rowsort label-5086
SELECT 30 DIV col2 AS col0 FROM tab1
----
0
0
0
skipif mysql # not compatible
query I rowsort label-5086
SELECT 30 / col2 AS col0 FROM tab1
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-5087
SELECT ALL + col1 + col1 DIV - 4 FROM tab1
----
10
20
8
skipif mysql # not compatible
query I rowsort label-5087
SELECT ALL + col1 + col1 / - 4 FROM tab1
----
10
20
8
query I rowsort
SELECT DISTINCT - - 19 * + col0 + + ( col2 + + col0 ) FROM tab0 AS cor0
----
1862
513
701
query I rowsort
SELECT DISTINCT col2 + col1 + + col1 FROM tab0 AS cor0
----
195
205
264
query I rowsort
SELECT + cor0.col2 + col1 AS col0 FROM tab2 AS cor0
----
55
58
85
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5091
SELECT - - CAST( NULL AS SIGNED ) - + cor0.col0 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5091
SELECT - - CAST ( NULL AS INTEGER ) - + cor0.col0 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT ( tab1.col1 + - col2 ) AS col1 FROM tab1
----
-28
-47
-83
query I rowsort
SELECT - ( 90 ) FROM tab2
----
-90
-90
-90
query I rowsort
SELECT 54 * - col1 * col1 AS col0 FROM tab0
----
-399384
-447174
-508086
query I rowsort
SELECT - - 3 + - col2 FROM tab1 AS cor0
----
-51
-54
-93
query I rowsort
SELECT tab2.col0 * - col1 * + 88 FROM tab2
----
-118184
-19096
-404976
query I rowsort
SELECT col2 * 4 AS col2 FROM tab2
----
104
108
152
onlyif mysql # use DIV operator for integer division
query I rowsort label-5098
SELECT + col2 DIV 63 FROM tab0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-5098
SELECT + col2 / 63 FROM tab0
----
0
0
1
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5099
SELECT - cor0.col1 * - CAST( - cor0.col0 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-2064
-3395
-8099
skipif mysql # not compatible
query I rowsort label-5099
SELECT - cor0.col1 * - CAST ( - cor0.col0 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT DISTINCT - col2 + + 48 FROM tab2 AS cor0
----
10
21
22
onlyif mysql # use DIV operator for integer division
query I rowsort label-5101
SELECT - ( col1 ) DIV + col0 - cor0.col0 * ( col0 ) AS col1 FROM tab2 AS cor0
----
-53
-6084
-6241
skipif mysql # not compatible
query I rowsort label-5101
SELECT - ( col1 ) / + col0 - cor0.col0 * ( col0 ) AS col1 FROM tab2 AS cor0
----
-53
-6084
-6241
query I rowsort
SELECT + 13 * - 84 + - cor0.col2 AS col1 FROM tab0 AS cor0
----
-1093
-1125
-1174
query I rowsort
SELECT + + ( - col0 ) * col1 + 39 * col1 AS col0 FROM tab0 AS cor0
----
-4550
1290
388
query I rowsort
SELECT DISTINCT + 89 AS col0 FROM tab1, tab2 AS cor0
----
89
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5105
SELECT DISTINCT + tab2.col1 + CAST( NULL AS DECIMAL ) FROM tab2
----
NULL
skipif mysql # not compatible
query I rowsort label-5105
SELECT DISTINCT + tab2.col1 + CAST ( NULL AS REAL ) FROM tab2
----
NULL
query I rowsort
SELECT - + ( col2 ) * + col1 * - cor0.col2 - + cor0.col2 FROM tab2 AS cor0
----
22572
24510
39858
query I rowsort
SELECT - + 22 * + 72 - col0 FROM tab1 AS cor0
----
-1587
-1648
-1664
query I rowsort
SELECT + 53 + 13 + + col2 * - 25 FROM tab2 AS cor0
----
-584
-609
-884
query I rowsort
SELECT + ( col1 ) - + col2 FROM tab2 AS cor0
----
-21
33
4
query I rowsort
SELECT - col2 + + col1 + + col2 * + ( - col1 ) * - tab1.col0 AS col2 FROM tab1
----
36433
4184
99757
query I rowsort
SELECT + 22 AS col2 FROM tab1, tab2, tab1 AS cor0
----
27 values hashing to 7dda382e7c08428abac8600fd696eb3e
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5112
SELECT ALL CAST( NULL AS SIGNED ) * col0 + col2 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5112
SELECT ALL CAST ( NULL AS INTEGER ) * col0 + col2 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + 55 AS col2 FROM tab1, tab1 AS cor0, tab2 AS cor1, tab0 AS cor2
----
55
query I rowsort
SELECT ALL ( + 89 ) FROM tab1 AS cor0
----
89
89
89
query I rowsort
SELECT - - col1 * - col2 AS col0 FROM tab2 cor0
----
-1534
-646
-837
query I rowsort
SELECT DISTINCT - cor0.col2 - + col0 AS col0 FROM tab2 AS cor0
----
-104
-117
-34
query I rowsort
SELECT DISTINCT + - col1 * ( - col1 ) * + col2 + - 69 AS col1 FROM tab1 AS cor0
----
16155
36435
5631
query I rowsort
SELECT ALL + + col2 + cor0.col2 + + col0 FROM tab0 AS cor0
----
253
37
90
query I rowsort
SELECT + - 46 + cor0.col2 FROM tab0 AS cor0
----
-13
-45
36
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 57 col1 FROM tab2 AS cor0
----
57
57
57
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col1 + col2 col1 FROM tab0 AS cor0
----
119
173
98
onlyif mysql # use DIV operator for integer division
query I rowsort label-5122
SELECT 54 DIV col2 AS col1 FROM tab1 AS cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-5122
SELECT 54 / col2 AS col1 FROM tab1 AS cor0
----
0
0
1
query I rowsort
SELECT - ( + col2 ) + cor0.col0 FROM tab0 cor0
----
-9
34
7
query I rowsort
SELECT ( + cor0.col2 ) + 99 + ( col0 ) AS col2 FROM tab2 AS cor0
----
133
203
216
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 53 col2 FROM tab1 AS cor0
----
53
onlyif mysql # use DIV operator for integer division
query I rowsort label-5126
SELECT col1 + col0 DIV ( col2 ) AS col1 FROM tab0 AS cor0
----
132
86
92
skipif mysql # not compatible
query I rowsort label-5126
SELECT col1 + col0 / ( col2 ) AS col1 FROM tab0 AS cor0
----
132
86
92
query I rowsort
SELECT DISTINCT + cor0.col2 * - col1 AS col2 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT + ( + col0 ) - col1 AS col0 FROM tab1
----
-23
54
67
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5129
SELECT ALL + CAST( NULL AS DECIMAL ) * col2 - + col0 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5129
SELECT ALL + CAST ( NULL AS REAL ) * col2 - + col0 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + col1 - + tab1.col1 FROM tab1
----
0
0
0
query I rowsort
SELECT ALL + ( - tab2.col2 * col1 ) AS col2 FROM tab2
----
-1534
-646
-837
query I rowsort
SELECT + col2 * ( - 48 + + col0 ) FROM tab1 AS cor0
----
-2430
3072
912
onlyif mysql # use DIV operator for integer division
query I rowsort label-5133
SELECT DISTINCT + col2 DIV 66 + + cor0.col1 DIV - cor0.col1 - col1 AS col1 FROM tab0 AS cor0
----
-87
-91
-98
skipif mysql # not compatible
query I rowsort label-5133
SELECT DISTINCT + col2 / 66 + + cor0.col1 / - cor0.col1 - col1 AS col1 FROM tab0 AS cor0
----
-87
-91
-98
query I rowsort
SELECT ALL cor0.col1 * ( - 50 ) + col2 FROM tab1 cor0
----
-1246
-443
-554
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5135
SELECT ALL + - col1 * - CAST( - col0 * - col2 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
119652
51034
5859
skipif mysql # not compatible
query I rowsort label-5135
SELECT ALL + - col1 * - CAST ( - col0 * - col2 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
119652
51034
5859
query I rowsort
SELECT ALL cor1.col1 FROM tab1 AS cor0 CROSS JOIN tab0, tab1 AS cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892
query I rowsort
SELECT + - col1 * - 92 AS col2 FROM tab1 AS cor0
----
1196
2392
920
query I rowsort
SELECT - col0 + - ( 27 ) FROM tab0
----
-116
-51
-62
onlyif mysql # use DIV operator for integer division
query I rowsort label-5139
SELECT ALL + col0 DIV - 90 FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-5139
SELECT ALL + col0 / - 90 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT col0 * 33 FROM tab2 cor0
----
231
2574
2607
query I rowsort
SELECT - col0 + col2 * 24 AS col2 FROM tab1 AS cor0
----
1293
1304
2224
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5142
SELECT col0 + - CAST( + col2 AS SIGNED ) FROM tab2 AS cor0
----
-20
41
52
skipif mysql # not compatible
query I rowsort label-5142
SELECT col0 + - CAST ( + col2 AS INTEGER ) FROM tab2 AS cor0
----
-20
41
52
onlyif mysql # use DIV operator for integer division
query I rowsort label-5143
SELECT col2 * cor0.col2 * 33 + + col0 DIV ( col0 ) FROM tab1 AS cor0
----
107218
304129
96229
skipif mysql # not compatible
query I rowsort label-5143
SELECT col2 * cor0.col2 * 33 + + col0 / ( col0 ) FROM tab1 AS cor0
----
107218
304129
96229
onlyif mysql # use DIV operator for integer division
query I rowsort label-5144
SELECT DISTINCT - col0 DIV - 30 FROM tab1 cor0
----
0
2
skipif mysql # not compatible
query I rowsort label-5144
SELECT DISTINCT - col0 / - 30 FROM tab1 cor0
----
0
2
onlyif mysql # use DIV operator for integer division
query I rowsort label-5145
SELECT + col0 + + col1 DIV + col2 AS col1 FROM tab0 AS cor0
----
132
26
90
skipif mysql # not compatible
query I rowsort label-5145
SELECT + col0 + + col1 / + col2 AS col1 FROM tab0 AS cor0
----
132
26
90
query I rowsort
SELECT col1 * + ( col2 ) + col0 AS col2 FROM tab0
----
132
2862
7551
query I rowsort
SELECT col0 * + 16 FROM tab1
----
1024
1280
48
query I rowsort
SELECT + 65 + - cor0.col0 FROM tab0 AS cor0
----
-24
30
41
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5149
SELECT ALL CAST( NULL AS SIGNED ) col2 FROM tab1, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5149
SELECT ALL CAST ( NULL AS INTEGER ) col2 FROM tab1, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5150
SELECT DISTINCT CAST( NULL AS DECIMAL ) + tab0.col1 AS col1 FROM tab0, tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-5150
SELECT DISTINCT CAST ( NULL AS REAL ) + tab0.col1 AS col1 FROM tab0, tab2 AS cor0
----
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5151
SELECT DISTINCT col2 * - CAST( NULL AS SIGNED ) col2 FROM tab2
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5151
SELECT DISTINCT col2 * - CAST ( NULL AS INTEGER ) col2 FROM tab2
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-5152
SELECT ALL + col1 DIV 57 FROM tab0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-5152
SELECT ALL + col1 / 57 FROM tab0
----
1
1
1
query I rowsort
SELECT - 80 * col0 + col1 * - cor0.col2 AS col2 FROM tab0 cor0
----
-14582
-2897
-4758
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5154
SELECT + 63 * + col2 + CAST( col1 AS SIGNED ) FROM tab0 AS cor0
----
160
2165
5257
skipif mysql # not compatible
query I rowsort label-5154
SELECT + 63 * + col2 + CAST ( col1 AS INTEGER ) FROM tab0 AS cor0
----
160
2165
5257
query I rowsort
SELECT + col1 + cor0.col0 * - 20 FROM tab0 AS cor0
----
-1689
-394
-603
query I rowsort
SELECT - + 16 - col1 FROM tab2 AS cor0
----
-33
-47
-75
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 69 + + cor0.col1 col0 FROM tab2 AS cor0
----
100
128
86
query I rowsort
SELECT 19 * col1 + col2 * col2 FROM tab1 cor0
----
3410
3439
9463
onlyif mysql # use DIV operator for integer division
query I rowsort label-5159
SELECT + 32 + col1 DIV - 46 AS col2 FROM tab0 AS cor0
----
30
31
31
skipif mysql # not compatible
query I rowsort label-5159
SELECT + 32 + col1 / - 46 AS col2 FROM tab0 AS cor0
----
30
31
31
query I rowsort
SELECT 98 - + cor0.col0 FROM tab2 AS cor0
----
19
20
91
onlyif mysql # use DIV operator for integer division
query I rowsort label-5161
SELECT DISTINCT + + col1 DIV col2 AS col1 FROM tab0 AS cor0
----
1
2
97
skipif mysql # not compatible
query I rowsort label-5161
SELECT DISTINCT + + col1 / col2 AS col1 FROM tab0 AS cor0
----
1
2
97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5162
SELECT ALL - CAST( NULL AS SIGNED ) * - col2 - - col1 AS col1 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5162
SELECT ALL - CAST ( NULL AS INTEGER ) * - col2 - - col1 AS col1 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT col1 + - 79 * + col1 FROM tab1
----
-1014
-2028
-780
query I rowsort
SELECT 64 * col2 + - col2 + + 73 AS col1 FROM tab1
----
3475
3664
6121
query I rowsort
SELECT 18 * - 87 + col0 - col1 AS col2 FROM tab2
----
-1504
-1547
-1590
query I rowsort
SELECT DISTINCT + 8 AS col2 FROM tab0 cor0
----
8
query I rowsort
SELECT DISTINCT - 42 * col0 + + ( 36 ) AS col0 FROM tab1 AS cor0
----
-2652
-3324
-90
query I rowsort
SELECT ALL + 63 + - col0 * 6 AS col2 FROM tab2 AS cor0
----
-405
-411
21
query I rowsort
SELECT DISTINCT - cor0.col0 * col0 - col2 AS col0 FROM tab0 AS cor0
----
-1226
-609
-8003
onlyif mysql # use DIV operator for integer division
query I rowsort label-5170
SELECT ALL cor0.col0 + - col0 DIV col2 FROM tab1 AS cor0
----
3
63
80
skipif mysql # not compatible
query I rowsort label-5170
SELECT ALL cor0.col0 + - col0 / col2 FROM tab1 AS cor0
----
3
63
80
query I rowsort
SELECT ALL - + cor0.col2 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 0dc9bbe392d52df93d2a115d7f622dba
query I rowsort
SELECT ALL + + col1 * - col0 + - cor0.col2 * + col0 * + col0 AS col0 FROM tab2 AS cor0
----
-1540
-162786
-238501
query I rowsort
SELECT - 49 * + col0 AS col1 FROM tab1
----
-147
-3136
-3920
query I rowsort
SELECT - tab1.col0 + col0 + col0 AS col1 FROM tab1
----
3
64
80
query I rowsort
SELECT 4 * cor1.col2 AS col2 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 48e28c5834d26a6a11c374f2c89f7120
onlyif mysql # use DIV operator for integer division
query I rowsort label-5176
SELECT + 61 DIV + col0 AS col1 FROM tab2
----
0
0
8
skipif mysql # not compatible
query I rowsort label-5176
SELECT + 61 / + col0 AS col1 FROM tab2
----
0
0
8
query I rowsort
SELECT - col0 * - ( - 40 ) + col2 * - col0 AS col1 FROM tab1 AS cor0
----
-10880
-282
-6208
query I rowsort
SELECT col2 + 75 FROM tab1 AS cor0
----
129
132
171
query I rowsort
SELECT ALL - 72 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to ad521144c976ff25e77cdf10a84d1dc6
query I rowsort
SELECT 74 + col0 FROM tab0
----
109
163
98
onlyif mysql # use DIV operator for integer division
query I rowsort label-5181
SELECT - col0 DIV - 48 AS col1 FROM tab2 cor0
----
0
1
1
skipif mysql # not compatible
query I rowsort label-5181
SELECT - col0 / - 48 AS col1 FROM tab2 cor0
----
0
1
1
query I rowsort
SELECT DISTINCT col0 + + 22 + col0 AS col1 FROM tab2 AS cor0
----
178
180
36
query I rowsort
SELECT ALL + ( - 8 ) + - col0 AS col2 FROM tab2 AS cor0
----
-15
-86
-87
onlyif mysql # use DIV operator for integer division
query I rowsort label-5184
SELECT DISTINCT - - 8 + col1 + cor0.col1 DIV cor0.col0 AS col0 FROM tab0 cor0
----
100
107
97
skipif mysql # not compatible
query I rowsort label-5184
SELECT DISTINCT - - 8 + col1 + cor0.col1 / cor0.col0 AS col0 FROM tab0 cor0
----
100
107
97
query I rowsort
SELECT DISTINCT - col1 * ( - col2 ) FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT ALL + 74 + + col2 * col2 * cor0.col2 FROM tab1 cor0
----
157538
185267
884810
query I rowsort
SELECT 41 * 85 FROM tab0 AS cor0
----
3485
3485
3485
query I rowsort
SELECT + ( ( - col2 ) ) AS col0 FROM tab1 AS cor0
----
-54
-57
-96
query I rowsort
SELECT ALL cor0.col0 - cor0.col2 FROM tab0 AS cor0
----
-9
34
7
onlyif mysql # use DIV operator for integer division
query I rowsort label-5190
SELECT - cor0.col1 DIV + col1 FROM tab1 cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-5190
SELECT - cor0.col1 / + col1 FROM tab1 cor0
----
-1
-1
-1
onlyif mysql # use DIV operator for integer division
query I rowsort label-5191
SELECT - + 59 DIV + col0 FROM tab1 AS cor0
----
-19
0
0
skipif mysql # not compatible
query I rowsort label-5191
SELECT - + 59 / + col0 FROM tab1 AS cor0
----
-19
0
0
query I rowsort
SELECT DISTINCT col1 * - col0 * - col0 AS col0 FROM tab2
----
106097
1519
358956
query I rowsort
SELECT DISTINCT + col0 AS col2 FROM tab2 WHERE NULL NOT BETWEEN ( col2 * - col1 ) AND NULL
----
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL BETWEEN ( col0 ) AND NULL
----
query I rowsort
SELECT ALL tab2.col1 * - col1 AS col1 FROM tab2
----
-289
-3481
-961
query I rowsort
SELECT DISTINCT + col2 + col1 - col1 FROM tab1
----
54
57
96
query I rowsort
SELECT col1 * col2 * col1 AS col2 FROM tab1
----
16224
36504
5700
onlyif mysql # use DIV operator for integer division
query I rowsort label-5198
SELECT + col0 DIV - col0 + col1 FROM tab0
----
85
90
96
skipif mysql # not compatible
query I rowsort label-5198
SELECT + col0 / - col0 + col1 FROM tab0
----
85
90
96
query I rowsort
SELECT + col2 + col1 * - col0 FROM tab0
----
-2031
-3394
-8017
query I rowsort
SELECT DISTINCT + col0 * + col2 + + col0 AS col2 FROM tab1
----
165
3712
7760
query III rowsort
SELECT * FROM tab2 WHERE + col2 + col2 BETWEEN NULL AND NULL
----
query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( tab1.col1 * col0 ) IN ( tab1.col2 )
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d
query I rowsort
SELECT col1 * col2 + + col1 * + col1 FROM tab0
----
10234
15743
9506
query I rowsort
SELECT col0 * col0 + col0 * - col2 FROM tab2
----
-140
3239
4056
query I rowsort
SELECT ALL + - 74 + - col1 FROM tab0 AS cor0
----
-160
-165
-171
query I rowsort
SELECT DISTINCT tab2.col1 + tab2.col0 + + col1 FROM tab2
----
113
196
69
query I rowsort
SELECT - col0 * col2 * - tab0.col0 FROM tab0
----
1225
19008
649522
onlyif mysql # use DIV operator for integer division
query I rowsort label-5208
SELECT DISTINCT - col0 DIV + col0 AS col0 FROM tab1
----
-1
skipif mysql # not compatible
query I rowsort label-5208
SELECT DISTINCT - col0 / + col0 AS col0 FROM tab1
----
-1
onlyif mysql # use DIV operator for integer division
query I rowsort label-5209
SELECT ALL - col1 DIV tab0.col0 AS col1 FROM tab0
----
-1
-2
-3
skipif mysql # not compatible
query I rowsort label-5209
SELECT ALL - col1 / tab0.col0 AS col1 FROM tab0
----
-1
-2
-3
query I rowsort
SELECT ALL - tab1.col2 + col0 - + col2 AS col2 FROM tab1
----
-105
-112
-50
query I rowsort
SELECT - col0 + - col1 * col1 + col0 * col0 FROM tab1
----
-670
3932
6151
query I rowsort
SELECT ALL col1 + + col0 + col1 FROM tab2
----
113
196
69
query I rowsort
SELECT ALL col2 * tab2.col0 + col0 FROM tab2
----
196
2106
3081
onlyif mysql # use DIV operator for integer division
query I rowsort label-5214
SELECT DISTINCT tab0.col2 DIV + tab0.col1 + + col0 + + tab0.col2 FROM tab0
----
171
36
57
skipif mysql # not compatible
query I rowsort label-5214
SELECT DISTINCT tab0.col2 / + tab0.col1 + + col0 + + tab0.col2 FROM tab0
----
171
36
57
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * - col2 col1 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT col0 FROM tab1 WHERE col0 <= col0 * col0
----
3
64
80
query I rowsort
SELECT ALL col2 * + tab2.col1 FROM tab2 WHERE NOT NULL <= + col1
----
query I rowsort
SELECT DISTINCT col2 - tab1.col1 AS col1 FROM tab1
----
28
47
83
query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + col2 <= col0 + + col2 * - col0 * col1
----
query I rowsort
SELECT DISTINCT cor0.col2 + cor0.col1 AS col1 FROM tab2, tab2 AS cor0
----
55
58
85
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor1.col0 + cor0.col2 col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 73feda3cdfbb1052036b56d1a1e9df2d
query I rowsort
SELECT - col0 + - tab0.col1 * + col2 AS col0 FROM tab0
----
-132
-2862
-7551
onlyif mysql # use DIV operator for integer division
query I rowsort label-5223
SELECT - + col0 DIV - ( col0 ) AS col2 FROM tab1 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-5223
SELECT - + col0 / - ( col0 ) AS col2 FROM tab1 AS cor0
----
1
1
1
query I rowsort
SELECT + 76 * cor0.col2 + 80 FROM tab1, tab0 AS cor0
----
9 values hashing to 66da66cdda52e42edec012de0de30da6
query I rowsort
SELECT DISTINCT + col1 * + col0 + + cor0.col1 AS col0 FROM tab2 AS cor0
----
1360
248
4661
query I rowsort
SELECT ALL - col0 * - col2 - cor0.col0 * - 77 FROM tab1 AS cor0
----
13840
393
8576
query I rowsort
SELECT + ( col0 + tab1.col0 ) FROM tab1
----
128
160
6
query I rowsort
SELECT DISTINCT col2 * ( - col1 ) AS col2 FROM tab1 AS cor0
----
-1248
-1404
-570
onlyif mysql # use DIV operator for integer division
query I rowsort label-5229
SELECT - cor1.col0 * cor1.col2 DIV + 31 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 15c57cab4d490a41a3a98ffcbef0217a
skipif mysql # not compatible
query I rowsort label-5229
SELECT - cor1.col0 * cor1.col2 / + 31 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 15c57cab4d490a41a3a98ffcbef0217a
query I rowsort
SELECT DISTINCT + cor0.col1 + + cor1.col1 AS col2 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
172
177
182
183
188
194
query I rowsort
SELECT ALL + - 78 FROM tab2 cor0
----
-78
-78
-78
query I rowsort
SELECT - 2 AS col1 FROM tab2, tab1 cor0
----
9 values hashing to ec11209ab257030053484fc13a1f6d17
onlyif mysql # use DIV operator for integer division
query I rowsort label-5233
SELECT ALL 47 DIV col0 AS col2 FROM tab0 cor0
----
0
1
1
skipif mysql # not compatible
query I rowsort label-5233
SELECT ALL 47 / col0 AS col2 FROM tab0 cor0
----
0
1
1
query I rowsort
SELECT + 83 * - col1 * col1 FROM tab2 AS cor0
----
-23987
-288923
-79763
query I rowsort
SELECT + col0 * col0 + ( - 74 ) FROM tab1
----
-65
4022
6326
query I rowsort
SELECT 63 * + col0 FROM tab2
----
441
4914
4977
onlyif mysql # use DIV operator for integer division
query I rowsort label-5237
SELECT - + 26 DIV - col2 FROM tab0 AS cor0
----
0
0
26
skipif mysql # not compatible
query I rowsort label-5237
SELECT - + 26 / - col2 FROM tab0 AS cor0
----
0
0
26
query I rowsort
SELECT ALL cor0.col1 AS col2 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + tab2.col1 col0 FROM tab2, tab2 AS cor0
----
17
31
59
query I rowsort
SELECT - col1 - + tab0.col0 AS col2 FROM tab0
----
-110
-132
-180
onlyif mysql # use DIV operator for integer division
query I rowsort label-5241
SELECT - col2 * col1 + + CAST( + 40 AS SIGNED ) DIV + col1 FROM tab0 AS cor0
----
-2838
-7462
-97
skipif mysql # not compatible
query I rowsort label-5241
SELECT - col2 * col1 + + CAST ( + 40 AS INTEGER ) / + col1 FROM tab0 AS cor0
----
-2838
-7462
-97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5242
SELECT col0 + col2 * CAST( NULL AS SIGNED ) * - col0 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5242
SELECT col0 + col2 * CAST ( NULL AS INTEGER ) * - col0 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-5243
SELECT - - col0 * + col0 DIV col0 AS col2 FROM tab0 AS cor0
----
24
35
89
skipif mysql # not compatible
query I rowsort label-5243
SELECT - - col0 * + col0 / col0 AS col2 FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT col1 * 32 AS col0 FROM tab0 AS cor0
----
2752
2912
3104
query I rowsort
SELECT DISTINCT col0 * 34 AS col2 FROM tab1 AS cor0
----
102
2176
2720
onlyif mysql # use DIV operator for integer division
query I rowsort label-5246
SELECT - - cor0.col0 DIV col2 AS col0 FROM tab0 AS cor0
----
0
1
35
skipif mysql # not compatible
query I rowsort label-5246
SELECT - - cor0.col0 / col2 AS col0 FROM tab0 AS cor0
----
0
1
35
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col2 - col2 col0 FROM tab1 cor0
----
-108
-114
-192
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col1 + ( cor0.col1 ) * col0 * + col1 col2 FROM tab0 AS cor0
----
177418
329218
736918
onlyif mysql # use DIV operator for integer division
query I rowsort label-5249
SELECT DISTINCT - col0 DIV + col0 AS col1 FROM tab0 AS cor0
----
-1
skipif mysql # not compatible
query I rowsort label-5249
SELECT DISTINCT - col0 / + col0 AS col1 FROM tab0 AS cor0
----
-1
query I rowsort
SELECT ALL col2 + tab1.col0 + ( col1 ) FROM tab1
----
131
189
83
onlyif mysql # use DIV operator for integer division
query I rowsort label-5251
SELECT DISTINCT ( + col0 ) DIV + col1 + - 31 * - col0 AS col0 FROM tab1
----
1990
2486
93
skipif mysql # not compatible
query I rowsort label-5251
SELECT DISTINCT ( + col0 ) / + col1 + - 31 * - col0 AS col0 FROM tab1
----
1990
2486
93
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + - ( col1 ) col2 FROM tab1 AS cor0
----
-23
54
67
query I rowsort
SELECT col1 * col2 * col0 FROM tab1 cor0
----
36480
4212
99840
query I rowsort
SELECT + 71 + + ( col2 ) * col2 - col0 AS col2 FROM tab0 AS cor0
----
1136
37
6706
query I rowsort
SELECT DISTINCT col2 + ( col2 ) AS col0 FROM tab2
----
52
54
76
query I rowsort
SELECT DISTINCT cor0.col2 + 20 + + 98 AS col1 FROM tab1, tab2 AS cor0, tab2 cor1
----
144
145
156
onlyif mysql # use DIV operator for integer division
query I rowsort label-5257
SELECT ( 90 ) + - col0 DIV + col0 FROM tab0
----
89
89
89
skipif mysql # not compatible
query I rowsort label-5257
SELECT ( 90 ) + - col0 / + col0 FROM tab0
----
89
89
89
query I rowsort
SELECT DISTINCT + 63 + + col1 + + col2 AS col1 FROM tab1
----
130
143
172
query I rowsort
SELECT ALL + 2 + col0 AS col1 FROM tab2 AS cor0
----
80
81
9
query I rowsort
SELECT cor0.col1 AS col1 FROM tab1, tab0 cor0, tab1 AS cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - 28 ) col0 FROM tab0 AS cor0
----
-28
-28
-28
query I rowsort
SELECT - 37 + col1 - col1 AS col2 FROM tab2 AS cor0
----
-37
-37
-37
query I rowsort
SELECT ALL + - 75 * + col0 FROM tab0 AS cor0
----
-1800
-2625
-6675
onlyif mysql # use DIV operator for integer division
query I rowsort label-5264
SELECT ALL ( col2 ) DIV 71 AS col2 FROM tab0 AS cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-5264
SELECT ALL ( col2 ) / 71 AS col2 FROM tab0 AS cor0
----
0
0
1
query I rowsort
SELECT + - 91 * col2 + + 19 FROM tab0 AS cor0
----
-2984
-72
-7443
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5266
SELECT - col2 + + col2 * CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5266
SELECT - col2 + + col2 * CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - 36 + col1 AS col1 FROM tab0 AS cor0
----
50
55
61
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5268
SELECT + col1 * + col1 + CAST( + 44 AS SIGNED ) * - col2 FROM tab1 AS cor0
----
-1700
-2408
-4055
skipif mysql # not compatible
query I rowsort label-5268
SELECT + col1 * + col1 + CAST ( + 44 AS INTEGER ) * - col2 FROM tab1 AS cor0
----
-1700
-2408
-4055
query I rowsort
SELECT 52 + cor0.col0 AS col1 FROM tab0 AS cor0
----
141
76
87
onlyif mysql # use DIV operator for integer division
query I rowsort label-5270
SELECT DISTINCT ( + col1 ) DIV - col1 + - col1 * col0 AS col1 FROM tab1
----
-1041
-641
-79
skipif mysql # not compatible
query I rowsort label-5270
SELECT DISTINCT ( + col1 ) / - col1 + - col1 * col0 AS col1 FROM tab1
----
-1041
-641
-79
onlyif mysql # use DIV operator for integer division
query I rowsort label-5271
SELECT - cor0.col0 DIV - col0 AS col2 FROM tab0 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-5271
SELECT - cor0.col0 / - col0 AS col2 FROM tab0 AS cor0
----
1
1
1
query I rowsort
SELECT + 21 - col0 AS col0 FROM tab2
----
-57
-58
14
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5273
SELECT - col1 + CAST( 93 AS SIGNED ) * + col0 FROM tab1 AS cor0
----
253
5942
7427
skipif mysql # not compatible
query I rowsort label-5273
SELECT - col1 + CAST ( 93 AS INTEGER ) * + col0 FROM tab1 AS cor0
----
253
5942
7427
query I rowsort
SELECT DISTINCT + cor0.col2 * - 76 AS col1 FROM tab2 AS cor0
----
-1976
-2052
-2888
onlyif mysql # use DIV operator for integer division
query I rowsort label-5275
SELECT ALL cor0.col0 DIV + 58 + col2 AS col2 FROM tab1 cor0
----
54
58
97
skipif mysql # not compatible
query I rowsort label-5275
SELECT ALL cor0.col0 / + 58 + col2 AS col2 FROM tab1 cor0
----
54
58
97
query I rowsort
SELECT - + col1 + ( col0 ) AS col2 FROM tab0 AS cor0
----
-2
-62
-62
onlyif mysql # use DIV operator for integer division
query I rowsort label-5277
SELECT DISTINCT col0 DIV 25 FROM tab2 AS cor0
----
0
3
skipif mysql # not compatible
query I rowsort label-5277
SELECT DISTINCT col0 / 25 FROM tab2 AS cor0
----
0
3
query I rowsort
SELECT ALL - - col0 * 44 + + col0 AS col0 FROM tab2 AS cor0
----
315
3510
3555
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col1 * ( - 39 + + cor0.col0 ) col1 FROM tab2 AS cor0
----
-2301
-680
992
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + col1 * cor0.col2 col2 FROM tab1 AS cor0
----
1344
1458
627
query I rowsort
SELECT DISTINCT cor0.col1 + col0 * 43 FROM tab2 AS cor0
----
332
3413
3414
query I rowsort
SELECT - 55 - + col2 FROM tab0
----
-137
-56
-88
onlyif mysql # use DIV operator for integer division
query I rowsort label-5283
SELECT col1 DIV col0 - 90 FROM tab2
----
-86
-90
-90
skipif mysql # not compatible
query I rowsort label-5283
SELECT col1 / col0 - 90 FROM tab2
----
-86
-90
-90
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col2 * + ( 4 ) col1 FROM tab1 AS cor0
----
-216
-228
-384
query I rowsort
SELECT DISTINCT + + col1 + 96 FROM tab1 cor0
----
106
109
122
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + col0 * + col1 col1 FROM tab2 AS cor0
----
1305
190
4576
query I rowsort
SELECT DISTINCT - + col0 * col1 - + col2 * + col1 AS col1 FROM tab2 AS cor0
----
-1054
-1989
-6136
query I rowsort
SELECT ALL + cor0.col1 * 51 AS col1 FROM tab0 AS cor0
----
4386
4641
4947
query I rowsort
SELECT DISTINCT col2 * - col1 + + col1 * - cor0.col0 FROM tab1 cor0
----
-1210
-1482
-2288
query I rowsort
SELECT + tab0.col0 + 87 FROM tab0
----
111
122
176
query I rowsort
SELECT ALL - col0 * col2 * col0 - col2 FROM tab1
----
-233529
-540
-614496
query I rowsort
SELECT - 19 * - col1 FROM tab1 AS cor0
----
190
247
494
query I rowsort
SELECT + - col1 + 6 + - col2 AS col2 FROM tab1 AS cor0
----
-103
-61
-74
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5294
SELECT - + CAST( NULL AS SIGNED ) * 13 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5294
SELECT - + CAST ( NULL AS INTEGER ) * 13 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - 17 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 490d008f3fb5b70d3971cfc6d84503f4
query I rowsort
SELECT - col0 * + 1 AS col1 FROM tab2 cor0
----
-7
-78
-79
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5297
SELECT + CAST( ( col0 ) AS SIGNED ) * col2 AS col0 FROM tab1 AS cor0
----
162
3648
7680
skipif mysql # not compatible
query I rowsort label-5297
SELECT + CAST ( ( col0 ) AS INTEGER ) * col2 AS col0 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT + + 7 FROM tab2 cor0
----
7
7
7
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 66 col2 FROM tab0 cor0
----
66
66
66
query I rowsort
SELECT - cor0.col2 * - col0 AS col1 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT ALL 85 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to aafa8e5cfb9e02cea8717833e7581f7b
query I rowsort
SELECT ALL + col2 + ( tab2.col1 ) AS col0 FROM tab2
----
55
58
85
query I rowsort
SELECT ALL col0 + cor0.col0 * + col2 AS col0 FROM tab0 AS cor0
----
70
7387
816
query I rowsort
SELECT + col1 * 29 AS col0 FROM tab1 AS cor0
----
290
377
754
query I rowsort
SELECT DISTINCT + ( 24 ) * - col0 + - col2 AS col2 FROM tab1 AS cor0
----
-126
-1593
-2016
query I rowsort
SELECT ALL - cor0.col2 * + cor0.col0 AS col0 FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT + - col2 + col1 * cor0.col2 FROM tab1 AS cor0
----
1152
1350
513
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5308
SELECT CAST( + 69 AS SIGNED ) FROM tab1 AS cor0
----
69
69
69
skipif mysql # not compatible
query I rowsort label-5308
SELECT CAST ( + 69 AS INTEGER ) FROM tab1 AS cor0
----
69
69
69
onlyif mysql # use DIV operator for integer division
query I rowsort label-5309
SELECT - col0 DIV 95 AS col2 FROM tab1
----
0
0
0
skipif mysql # not compatible
query I rowsort label-5309
SELECT - col0 / 95 AS col2 FROM tab1
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-5310
SELECT - 76 DIV - 65 AS col1 FROM tab1
----
1
1
1
skipif mysql # not compatible
query I rowsort label-5310
SELECT - 76 / - 65 AS col1 FROM tab1
----
1
1
1
query I rowsort
SELECT + ( - col1 ) + - tab0.col0 AS col2 FROM tab0
----
-110
-132
-180
query I rowsort
SELECT DISTINCT 54 AS col1 FROM tab1, tab2 cor0, tab0 AS cor1
----
54
query I rowsort
SELECT ALL - tab0.col2 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to 6a43e7f15194af73fe1c83385e6ebebc
query I rowsort
SELECT ( 76 ) FROM tab0, tab2 AS cor0
----
9 values hashing to 30b8941a700cffd5b983116383bd42d5
query I rowsort
SELECT ALL - col2 + - 36 FROM tab2 AS cor0
----
-62
-63
-74
query I rowsort
SELECT tab1.col0 * + 68 FROM tab1, tab0 AS cor0
----
9 values hashing to 11e7210f9a25842b6563b24e624b5361
query I rowsort
SELECT ALL 92 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to c64cb7a81da51f4be0b6906a223e8817
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col0 * col2 * - col1 col2 FROM tab0 AS cor0
----
3395
664118
68112
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5319
SELECT ALL col2 * - CAST( NULL AS DECIMAL ) + cor0.col1 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5319
SELECT ALL col2 * - CAST ( NULL AS REAL ) + cor0.col1 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - col0 * 30 FROM tab1 cor0
----
-1920
-2400
-90
query I rowsort
SELECT - cor0.col1 * 8 FROM tab2 AS cor0
----
-136
-248
-472
query I rowsort
SELECT col1 * cor0.col2 * 20 FROM tab2 AS cor0
----
12920
16740
30680
onlyif mysql # use DIV operator for integer division
query I rowsort label-5323
SELECT DISTINCT + col0 DIV + col2 AS col0 FROM tab1
----
0
1
skipif mysql # not compatible
query I rowsort label-5323
SELECT DISTINCT + col0 / + col2 AS col0 FROM tab1
----
0
1
query I rowsort
SELECT - 27 * col0 FROM tab0 AS cor0
----
-2403
-648
-945
query I rowsort
SELECT DISTINCT + - 20 + col2 FROM tab2 AS cor0
----
18
6
7
query I rowsort
SELECT + - 27 * - col2 FROM tab2 AS cor0
----
1026
702
729
query I rowsort
SELECT ALL - cor0.col2 + + 88 * 24 AS col2 FROM tab2 AS cor0
----
2074
2085
2086
query I rowsort
SELECT col0 + col1 * - cor0.col0 AS col2 FROM tab0 cor0
----
-2040
-3360
-8010
query I rowsort
SELECT ALL - 55 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to ac76841ceecd2311e80c621d15bacdd3
query I rowsort
SELECT + ( - col0 ) * + col1 + + col2 FROM tab0 AS cor0
----
-2031
-3394
-8017
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + 21 ) col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 631fbd1fd929405aba54a22c2a06c757
onlyif mysql # use DIV operator for integer division
query I rowsort label-5332
SELECT ALL - col2 * col1 + + col2 DIV col0 - cor0.col1 FROM tab1 cor0
----
-1260
-1412
-580
skipif mysql # not compatible
query I rowsort label-5332
SELECT ALL - col2 * col1 + + col2 / col0 - cor0.col1 FROM tab1 cor0
----
-1260
-1412
-580
onlyif mysql # use DIV operator for integer division
query I rowsort label-5333
SELECT ALL 77 * col0 DIV + col1 FROM tab2
----
101
17
357
skipif mysql # not compatible
query I rowsort label-5333
SELECT ALL 77 * col0 / + col1 FROM tab2
----
101
17
357
query I rowsort
SELECT ALL + ( + col0 ) * cor0.col0 + + col1 AS col2 FROM tab2 AS cor0
----
6143
6258
80
query I rowsort
SELECT DISTINCT + col2 + col0 - - 28 * col1 * col1 AS col1 FROM tab0 AS cor0
----
207145
232039
263488
query I rowsort
SELECT - ( 21 ) - + col2 * - 4 * - col1 FROM tab0
----
-11373
-29869
-409
query I rowsort
SELECT 38 * - col2 + + col0 FROM tab2
----
-1019
-1365
-910
query I rowsort
SELECT DISTINCT 22 + col2 * col0 FROM tab0
----
57
7320
814
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 17 col2 FROM tab0
----
17
17
17
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( + tab1.col2 + - col2 ) col2 FROM tab1
----
0
query I rowsort
SELECT ALL - cor0.col0 * col2 + 27 FROM tab1 cor0
----
-135
-3621
-7653
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5342
SELECT DISTINCT - CAST( NULL AS SIGNED ) FROM tab2, tab0 cor0, tab0 AS cor1
----
NULL
skipif mysql # not compatible
query I rowsort label-5342
SELECT DISTINCT - CAST ( NULL AS INTEGER ) FROM tab2, tab0 cor0, tab0 AS cor1
----
NULL
query I rowsort
SELECT DISTINCT + col0 * col0 - - col0 * - 41 AS col2 FROM tab2 AS cor0
----
-238
2886
3002
onlyif mysql # use DIV operator for integer division
query I rowsort label-5344
SELECT - - ( + cor0.col2 ) DIV 75 + + col1 * col0 FROM tab1 AS cor0
----
1041
640
78
skipif mysql # not compatible
query I rowsort label-5344
SELECT - - ( + cor0.col2 ) / 75 + + col1 * col0 FROM tab1 AS cor0
----
1041
640
78
query I rowsort
SELECT ALL cor0.col1 * + col2 + + col0 AS col1 FROM tab1 AS cor0
----
1328
1407
634
query I rowsort
SELECT - - 68 * + col1 FROM tab2 AS cor0
----
1156
2108
4012
onlyif mysql # use DIV operator for integer division
query I rowsort label-5347
SELECT ALL - col0 + col0 DIV + col1 AS col2 FROM tab2 cor0
----
-7
-75
-77
skipif mysql # not compatible
query I rowsort label-5347
SELECT ALL - col0 + col0 / + col1 AS col2 FROM tab2 cor0
----
-7
-75
-77
query I rowsort
SELECT ALL col0 + + 21 * + col0 AS col2 FROM tab1
----
1408
1760
66
query I rowsort
SELECT - col2 + col0 - - col0 AS col2 FROM tab1
----
-48
64
71
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col0 col0 FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd
query I rowsort
SELECT - ( - tab2.col1 ) + - col0 AS col0 FROM tab2
----
-19
-62
24
query I rowsort
SELECT DISTINCT + ( + col1 ) + - col0 FROM tab2 AS cor0
----
-19
-62
24
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + + col1 - col0 * - tab0.col1 col0 FROM tab0
----
2174
3527
8279
query I rowsort
SELECT DISTINCT tab1.col1 - 57 FROM tab1, tab1 AS cor0
----
-31
-44
-47
query I rowsort
SELECT - col0 * - 34 FROM tab2
----
238
2652
2686
query I rowsort
SELECT ALL - tab0.col2 * 25 * + col1 FROM tab0
----
-186550
-2425
-70950
query I rowsort
SELECT + col1 * + ( cor0.col1 * col2 ) FROM tab0 AS cor0
----
244068
679042
9409
query I rowsort
SELECT - col0 * + ( + ( col1 ) ) - + col2 * col1 FROM tab2 AS cor0
----
-1054
-1989
-6136
query I rowsort
SELECT col2 * 38 AS col1 FROM tab1 cor0
----
2052
2166
3648
query I rowsort
SELECT + col1 * 96 AS col1 FROM tab2 AS cor0
----
1632
2976
5664
query I rowsort
SELECT ( - col0 ) + + col1 * 44 FROM tab0 AS cor0
----
3760
3915
4233
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 33 col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 620d384286e82d1c6c8b1b2b109a7da5
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5363
SELECT CAST( NULL AS SIGNED ) * + 93 * col2 + - col2 * col0 * - col2 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5363
SELECT CAST ( NULL AS INTEGER ) * + 93 * col2 + - col2 * col0 * - col2 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - + col2 * col1 * - col1 AS col0 FROM tab1 AS cor0
----
16224
36504
5700
query I rowsort
SELECT ALL 36 * 84 * col1 FROM tab1 AS cor0
----
30240
39312
78624
query I rowsort
SELECT col2 * + 27 FROM tab0 AS cor0
----
2214
27
891
query I rowsort
SELECT DISTINCT - ( + col0 ) * col0 AS col1 FROM tab2 AS cor0
----
-49
-6084
-6241
query I rowsort
SELECT + + col2 + col1 + col2 * + 98 AS col0 FROM tab1 AS cor0
----
5372
5653
9517
onlyif mysql # use DIV operator for integer division
query I rowsort label-5369
SELECT - - col0 DIV + 55 + col0 FROM tab0 AS cor0
----
24
35
90
skipif mysql # not compatible
query I rowsort label-5369
SELECT - - col0 / + 55 + col0 FROM tab0 AS cor0
----
24
35
90
query I rowsort
SELECT ALL - + 66 FROM tab1 AS cor0
----
-66
-66
-66
query I rowsort
SELECT + 51 * - cor0.col0 FROM tab1 AS cor0
----
-153
-3264
-4080
onlyif mysql # use DIV operator for integer division
query I rowsort label-5372
SELECT - + CAST( col2 AS SIGNED ) + + col1 * col1 DIV col2 + col2 AS col0 FROM tab1 AS cor0
----
1
1
12
skipif mysql # not compatible
query I rowsort label-5372
SELECT - + CAST ( col2 AS INTEGER ) + + col1 * col1 / col2 + col2 AS col0 FROM tab1 AS cor0
----
1
1
12
query I rowsort
SELECT DISTINCT col0 * 9 AS col1 FROM tab0 AS cor0
----
216
315
801
query I rowsort
SELECT DISTINCT 86 * ( cor0.col2 ) AS col0 FROM tab0 AS cor0
----
2838
7052
86
query I rowsort
SELECT ALL - - col1 * - cor0.col1 FROM tab1 AS cor0
----
-100
-169
-676
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5376
SELECT + CAST( 64 AS SIGNED ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 60ab040e931c5c85db7ba19364eacc8e
skipif mysql # not compatible
query I rowsort label-5376
SELECT + CAST ( 64 AS INTEGER ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 60ab040e931c5c85db7ba19364eacc8e
query I rowsort
SELECT + 4 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 6fec965b60b9885c4af73e85422cfd9b
query I rowsort
SELECT ALL col0 * + col0 * - 58 FROM tab2
----
-2842
-352872
-361978
query I rowsort
SELECT DISTINCT col0 + 7 AS col0 FROM tab1
----
10
71
87
query I rowsort
SELECT + cor0.col2 - - 95 FROM tab2 AS cor0
----
121
122
133
query I rowsort
SELECT ALL + col1 + ( + 46 ) FROM tab0 AS cor0
----
132
137
143
query I rowsort
SELECT + 15 + + tab2.col2 FROM tab2
----
41
42
53
query I rowsort
SELECT - col2 * 62 + col2 FROM tab2
----
-1586
-1647
-2318
query I rowsort
SELECT - 41 FROM tab1, tab1 AS cor0
----
9 values hashing to 4ba0c102091f9cbc9fe9439b04584e70
query I rowsort
SELECT + 37 * 6 + - col2 FROM tab0 AS cor0
----
140
189
221
query I rowsort
SELECT DISTINCT + ( 28 ) FROM tab1 AS cor0
----
28
query I rowsort
SELECT DISTINCT col2 * col1 + + 43 AS col1 FROM tab1 AS cor0
----
1291
1447
613
query I rowsort
SELECT DISTINCT - - 48 * + col1 + - col0 + col2 FROM tab2 AS cor0
----
1508
2780
775
query I rowsort
SELECT DISTINCT cor0.col1 + - cor0.col2 AS col2 FROM tab1 AS cor0
----
-28
-47
-83
query I rowsort
SELECT DISTINCT + 91 * + col2 AS col0 FROM tab2 AS cor0
----
2366
2457
3458
query I rowsort
SELECT ALL ( - col0 ) * col1 - ( col2 ) FROM tab1 cor0
----
-1136
-132
-697
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5392
SELECT DISTINCT - 19 * col1 + + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-5392
SELECT DISTINCT - 19 * col1 + + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-5393
SELECT ALL + cor0.col1 DIV col1 + - 46 col1 FROM tab1 AS cor0
----
-45
-45
-45
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5393
SELECT ALL + cor0.col1 / col1 + - 46 col1 FROM tab1 AS cor0
----
-45
-45
-45
query I rowsort
SELECT ALL + ( - cor0.col2 ) * - col0 AS col1 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT ALL + - 46 AS col0 FROM tab2 AS cor0
----
-46
-46
-46
query I rowsort
SELECT 69 * col2 FROM tab0 AS cor0
----
2277
5658
69
query I rowsort
SELECT DISTINCT col0 * + col2 * - ( - col1 ) FROM tab0
----
3395
664118
68112
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 8 col0 FROM tab0
----
8
8
8
query I rowsort
SELECT ALL + 81 AS col2 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 0a85639e0dddbffdab2cb16b027cb360
query I rowsort
SELECT 38 AS col1 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to a7827a79248ee7bf2cee915a631d02cb
query I rowsort
SELECT + - 31 + - col1 FROM tab0 AS cor0
----
-117
-122
-128
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * 44 col0 FROM tab0 AS cor0
----
-3784
-4004
-4268
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * 5 * col0 col0 FROM tab0 AS cor0
----
175
36490
3960
onlyif mysql # use DIV operator for integer division
query I rowsort label-5404
SELECT ALL - cor0.col0 DIV + 39 FROM tab2 AS cor0
----
-2
-2
0
skipif mysql # not compatible
query I rowsort label-5404
SELECT ALL - cor0.col0 / + 39 FROM tab2 AS cor0
----
-2
-2
0
query I rowsort
SELECT + + 85 + col0 AS col2 FROM tab2 AS cor0
----
163
164
92
query I rowsort
SELECT - col2 * + 37 AS col2 FROM tab0 AS cor0
----
-1221
-3034
-37
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5407
SELECT DISTINCT + CAST( col0 AS SIGNED ) * + col2 + col0 * + 54 AS col0 FROM tab2 cor0
----
567
6240
7268
skipif mysql # not compatible
query I rowsort label-5407
SELECT DISTINCT + CAST ( col0 AS INTEGER ) * + col2 + col0 * + 54 AS col0 FROM tab2 cor0
----
567
6240
7268
query I rowsort
SELECT ALL cor0.col2 + - cor0.col2 FROM tab2 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-5409
SELECT 77 DIV - col0 + col2 AS col2 FROM tab1 AS cor0
----
29
56
96
skipif mysql # not compatible
query I rowsort label-5409
SELECT 77 / - col0 + col2 AS col2 FROM tab1 AS cor0
----
29
56
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + + ( col0 ) col1 FROM tab2
----
14
156
158
query I rowsort
SELECT + col1 + 54 + col0 AS col1 FROM tab2
----
150
191
92
query I rowsort
SELECT 6 * + col2 FROM tab2 AS cor0
----
156
162
228
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab2 cor0, tab1, tab0 cor1
----
972 values hashing to e84152c0bf436177d3b3d80e42832d4f
query I rowsort
SELECT - + col0 * + cor0.col1 + + col2 AS col0 FROM tab1 AS cor0
----
-24
-583
-944
query I rowsort
SELECT ALL - - ( 96 ) * col2 FROM tab0 cor0
----
3168
7872
96
query I rowsort
SELECT ALL + col2 - + col1 * col2 AS col2 FROM tab0 AS cor0
----
-2805
-7380
-96
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5417
SELECT - CAST( NULL AS SIGNED ) + col0 * col0 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5417
SELECT - CAST ( NULL AS INTEGER ) + col0 * col0 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + + 50 FROM tab1 AS cor0
----
50
50
50
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * - 53 col2 FROM tab0 AS cor0
----
-1272
-1855
-4717
query I rowsort
SELECT - 34 * col1 + col2 AS col0 FROM tab1 cor0
----
-283
-346
-830
query I rowsort
SELECT - + cor0.col0 * - col0 AS col1 FROM tab1 AS cor0
----
4096
6400
9
query I rowsort
SELECT + 8 FROM tab1, tab1 cor0, tab2 AS cor1
----
27 values hashing to 33069adc3c1142d31511ec88fcfa40af
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5423
SELECT DISTINCT col1 + CAST( + col1 AS SIGNED ) AS col2 FROM tab0
----
172
182
194
skipif mysql # not compatible
query I rowsort label-5423
SELECT DISTINCT col1 + CAST ( + col1 AS INTEGER ) AS col2 FROM tab0
----
172
182
194
query I rowsort
SELECT ALL col2 + + col2 * 16 FROM tab2
----
442
459
646
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5425
SELECT ALL CAST( NULL AS SIGNED ) / cor0.col2 col2 FROM tab2, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5425
SELECT ALL CAST ( NULL AS INTEGER ) / cor0.col2 col2 FROM tab2, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT DISTINCT - col0 + + ( + 19 * + col0 ) FROM tab0
----
1602
432
630
query I rowsort
SELECT tab1.col2 + 1 FROM tab1
----
55
58
97
query I rowsort
SELECT - col2 * col0 - - col1 AS col0 FROM tab1
----
-136
-3638
-7667
query I rowsort
SELECT ALL ( col1 ) * - col2 AS col0 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT - - 73 * - col0 FROM tab2 AS cor0
----
-511
-5694
-5767
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( 50 ) * + cor0.col1 col2 FROM tab0 AS cor0
----
-4300
-4550
-4850
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT - CAST ( - col1 AS REAL ) + - col0 col1 FROM tab2 AS cor0
----
-19
-62
24
onlyif mysql # use DIV operator for integer division
query I rowsort label-5433
SELECT ALL + col2 + - 65 DIV col0 AS col0 FROM tab0 AS cor0
----
0
31
82
skipif mysql # not compatible
query I rowsort label-5433
SELECT ALL + col2 + - 65 / col0 AS col0 FROM tab0 AS cor0
----
0
31
82
query I rowsort
SELECT - ( col2 * col0 ) - + col2 * + col1 * - ( + 63 ) FROM tab1
----
32262
70944
88290
query I rowsort
SELECT - + cor0.col2 + - col1 * col1 * col0 + + col2 FROM tab0 AS cor0
----
-177504
-329315
-737009
query I rowsort
SELECT - cor0.col0 * cor0.col1 + col2 + + 64 FROM tab0 AS cor0
----
-1967
-3330
-7953
query I rowsort
SELECT - col2 + - col0 + col1 FROM tab1 AS cor0
----
-111
-163
-31
query I rowsort
SELECT - 0 - - col2 AS col2 FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT DISTINCT + - col1 + + 77 AS col1 FROM tab0 cor0
----
-14
-20
-9
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col1 * 80 + col2 col0 FROM tab0 AS cor0
----
6913
7362
7761
query I rowsort
SELECT col2 * col0 + col1 * + col0 AS col1 FROM tab0 AS cor0
----
15397
2856
3430
query I rowsort
SELECT ALL - - col0 + - ( col0 ) AS col0 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT - cor0.col1 * ( col1 ) FROM tab2 AS cor0
----
-289
-3481
-961
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5444
SELECT col2 * - CAST( NULL AS SIGNED ) + + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5444
SELECT col2 * - CAST ( NULL AS INTEGER ) + + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + cor0.col1 + 66 * - col1 FROM tab0 AS cor0
----
-5590
-5915
-6305
query I rowsort
SELECT ALL - col1 + 98 FROM tab0
----
1
12
7
query I rowsort
SELECT DISTINCT + col2 * - ( ( + col1 ) ) + + col1 + + ( + col2 ) FROM tab0 AS cor0
----
-2719
-7289
1
query I rowsort
SELECT ALL - col2 * - col2 + col0 - col1 * + 86 AS col1 FROM tab0 AS cor0
----
-1013
-6283
-8306
onlyif mysql # use DIV operator for integer division
query I rowsort label-5449
SELECT DISTINCT col2 * + cor0.col2 + - col1 DIV col0 FROM tab0 AS cor0
----
-1
1086
6723
skipif mysql # not compatible
query I rowsort label-5449
SELECT DISTINCT col2 * + cor0.col2 + - col1 / col0 FROM tab0 AS cor0
----
-1
1086
6723
query I rowsort
SELECT ALL + cor0.col2 * ( - col1 ) * + col2 AS col2 FROM tab1 AS cor0
----
-119808
-32490
-75816
query I rowsort
SELECT DISTINCT - col2 * col2 * + col2 + col0 FROM tab0 AS cor0
----
-35913
-551279
34
query I rowsort
SELECT + + col0 + - 16 - col0 * cor0.col1 AS col0 FROM tab2 AS cor0
----
-1280
-226
-4540
query I rowsort
SELECT ALL + + col0 * + 14 FROM tab0 AS cor0
----
1246
336
490
query I rowsort
SELECT DISTINCT - + col0 + + 10 * - cor0.col1 AS col0 FROM tab1 AS cor0
----
-164
-210
-263
query I rowsort
SELECT DISTINCT - cor0.col1 + 55 FROM tab2 AS cor0
----
-4
24
38
query I rowsort
SELECT ALL - col2 + + 67 FROM tab0 AS cor0
----
-15
34
66
query I rowsort
SELECT ALL col1 * col1 + col2 FROM tab1 AS cor0
----
157
265
730
query I rowsort
SELECT cor0.col2 + + col2 * col0 FROM tab0 AS cor0
----
36
7380
825
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 20 col2 FROM tab1 AS cor0
----
20
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab1 AS cor0, tab1 AS cor1, tab0, tab2 cor2
----
3645 values hashing to 773bb916e463ebc075d701108532badb
query I rowsort
SELECT ALL - col0 + tab0.col2 + - tab0.col0 * col2 AS col1 FROM tab0
----
-69
-7305
-783
query I rowsort
SELECT + cor1.col0 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0, tab2 AS cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab0 cor0 CROSS JOIN tab1, tab1 AS cor1, tab2, tab1 AS cor2
----
3645 values hashing to 35707ade138fec4b370f5140a4cd2963
query I rowsort
SELECT ALL - - cor0.col2 - - col1 FROM tab1 AS cor0
----
109
67
80
query I rowsort
SELECT - + ( cor0.col0 ) AS col0 FROM tab1 cor0
----
-3
-64
-80
onlyif mysql # use DIV operator for integer division
query I rowsort label-5466
SELECT DISTINCT - col1 * col1 DIV col2 - + 65 FROM tab0 AS cor0
----
-165
-289
-9474
skipif mysql # not compatible
query I rowsort label-5466
SELECT DISTINCT - col1 * col1 / col2 - + 65 FROM tab0 AS cor0
----
-165
-289
-9474
query I rowsort
SELECT ALL - - 58 * col2 * cor0.col0 AS col2 FROM tab0 AS cor0
----
2030
423284
45936
query I rowsort
SELECT ALL + 55 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 1626bd3008abd9f18cc88cdecf7b64d0
query I rowsort
SELECT ( 85 ) AS col1 FROM tab2
----
85
85
85
query I rowsort
SELECT ALL - 95 + - col1 - + col1 FROM tab0
----
-267
-277
-289
query I rowsort
SELECT ALL + col2 * col2 + - cor0.col0 + 75 * + col2 AS col2 FROM tab0 AS cor0
----
12785
3540
41
query I rowsort
SELECT ALL + col2 - + col0 * + col2 AS col1 FROM tab0
----
-34
-7216
-759
onlyif mysql # use DIV operator for integer division
query I rowsort label-5473
SELECT ALL + 53 DIV - tab1.col0 + col0 col2 FROM tab1
----
-14
64
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5473
SELECT ALL + 53 / - tab1.col0 + col0 col2 FROM tab1
----
-14
64
80
query I rowsort
SELECT DISTINCT + col1 * - tab1.col0 + - ( + 73 ) AS col0 FROM tab1
----
-1113
-151
-713
query I rowsort
SELECT ALL + - 11 + cor0.col0 * col1 AS col1 FROM tab2 AS cor0
----
1332
206
4591
query I rowsort
SELECT - ( - ( col0 ) ) AS col2 FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT ALL + 41 - cor1.col0 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to c27af8f7fb552cca738c1666bf27810b
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - 28 + + tab2.col2 ) * - col2 * col1 col0 FROM tab2
----
-6460
3068
837
query I rowsort
SELECT + 31 + - 75 AS col0 FROM tab2
----
-44
-44
-44
query I rowsort
SELECT ( - ( + tab2.col0 ) ) FROM tab2
----
-7
-78
-79
onlyif mysql # use DIV operator for integer division
query I rowsort label-5481
SELECT DISTINCT - - 5 + cor0.col2 DIV col1 AS col2 FROM tab2 AS cor0
----
5
7
skipif mysql # not compatible
query I rowsort label-5481
SELECT DISTINCT - - 5 + cor0.col2 / col1 AS col2 FROM tab2 AS cor0
----
5
7
onlyif mysql # use DIV operator for integer division
query I rowsort label-5482
SELECT ALL + + col2 DIV + 66 - + col2 FROM tab2 AS cor0
----
-26
-27
-38
skipif mysql # not compatible
query I rowsort label-5482
SELECT ALL + + col2 / + 66 - + col2 FROM tab2 AS cor0
----
-26
-27
-38
query I rowsort
SELECT DISTINCT + 67 + - col2 - col0 * col2 AS col2 FROM tab1 AS cor0
----
-149
-3638
-7709
query I rowsort
SELECT col0 * col2 * ( tab1.col1 ) AS col0 FROM tab1
----
36480
4212
99840
query I rowsort
SELECT ALL + col0 * - col0 + col0 * - col2 FROM tab1
----
-14080
-171
-7744
query I rowsort
SELECT - col2 + - ( col1 ) + col1 * col2 * + col1 FROM tab1 cor0
----
16115
36424
5633
query I rowsort
SELECT + cor0.col1 * - ( - col2 ) + + col2 + - col0 AS col2 FROM tab2 AS cor0
----
1482
605
857
query I rowsort
SELECT - col2 + col1 * + col1 + col2 FROM tab1
----
100
169
676
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5489
SELECT col2 * tab1.col2 + - CAST( + col2 AS SIGNED ) + col0 FROM tab1
----
2865
3256
9200
skipif mysql # not compatible
query I rowsort label-5489
SELECT col2 * tab1.col2 + - CAST ( + col2 AS INTEGER ) + col0 FROM tab1
----
2865
3256
9200
query I rowsort
SELECT DISTINCT + 30 + col1 FROM tab2
----
47
61
89
query I rowsort
SELECT DISTINCT - col2 * - cor0.col2 + - 22 FROM tab0 AS cor0
----
-21
1067
6702
query I rowsort
SELECT DISTINCT - - col1 - + col1 AS col2 FROM tab2 AS cor0
----
0
query I rowsort
SELECT ALL col1 + ( col2 ) * - col2 AS col0 FROM tab2 AS cor0
----
-1427
-617
-698
query I rowsort
SELECT DISTINCT + col2 * + 28 FROM tab1 AS cor0
----
1512
1596
2688
query I rowsort
SELECT + cor0.col2 * 9 AS col0 FROM tab2 cor0
----
234
243
342
onlyif mysql # use DIV operator for integer division
query I rowsort label-5496
SELECT DISTINCT - col2 DIV 96 + - col0 AS col0 FROM tab0 cor0
----
-24
-35
-89
skipif mysql # not compatible
query I rowsort label-5496
SELECT DISTINCT - col2 / 96 + - col0 AS col0 FROM tab0 cor0
----
-24
-35
-89
onlyif mysql # use DIV operator for integer division
query I rowsort label-5497
SELECT ALL + - col2 + - cor0.col1 DIV cor0.col0 col0 FROM tab1 AS cor0
----
-57
-62
-96
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5497
SELECT ALL + - col2 + - cor0.col1 / cor0.col0 col0 FROM tab1 AS cor0
----
-57
-62
-96
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5498
SELECT + col1 + CAST( NULL AS SIGNED ) * 54 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5498
SELECT + col1 + CAST ( NULL AS INTEGER ) * 54 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT col2 + - 43 FROM tab1 AS cor0
----
11
14
53
query I rowsort
SELECT DISTINCT - col1 * col1 - col2 AS col0 FROM tab2 AS cor0
----
-327
-3507
-988
query I rowsort
SELECT ALL col1 * col1 * + col0 AS col2 FROM tab1
----
13520
2028
6400
query I rowsort
SELECT - - col0 * - col0 AS col0 FROM tab0 cor0
----
-1225
-576
-7921
query I rowsort
SELECT - col2 * col2 + + cor0.col0 * cor0.col0 AS col2 FROM tab1 cor0
----
-2816
-2907
847
onlyif mysql # use DIV operator for integer division
query I rowsort label-5504
SELECT ALL col0 DIV + tab1.col0 FROM tab1
----
1
1
1
skipif mysql # not compatible
query I rowsort label-5504
SELECT ALL col0 / + tab1.col0 FROM tab1
----
1
1
1
query I rowsort
SELECT cor0.col0 + col1 * col2 FROM tab1 AS cor0
----
1328
1407
634
query I rowsort
SELECT cor0.col2 * - cor0.col1 * col2 + + col1 * cor0.col2 * col1 AS col0 FROM tab2 AS cor0
----
-13566
3348
50622
query I rowsort
SELECT + - col0 * - col0 + - cor0.col0 FROM tab2 AS cor0
----
42
6006
6162
query I rowsort
SELECT ALL + 45 AS col1 FROM tab2 AS cor0
----
45
45
45
query I rowsort
SELECT + + col2 - cor0.col1 * - col0 AS col0 FROM tab1 AS cor0
----
1136
132
697
onlyif mysql # use DIV operator for integer division
query I rowsort label-5510
SELECT ALL + col1 DIV + cor0.col0 AS col1 FROM tab0 cor0
----
1
2
3
skipif mysql # not compatible
query I rowsort label-5510
SELECT ALL + col1 / + cor0.col0 AS col1 FROM tab0 cor0
----
1
2
3
query I rowsort
SELECT + tab1.col2 FROM tab1, tab2 cor0, tab0, tab1 AS cor1
----
81 values hashing to 9d355f1f2edc347a359dad00d2d3f886
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + + col1 * col2 col2 FROM tab0 AS cor0
----
2805
7380
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 68 * col2 col1 FROM tab0 cor0
----
-2244
-5576
-68
query I rowsort
SELECT + col2 + + col2 - + col2 AS col1 FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT DISTINCT + - cor0.col1 + col0 AS col1 FROM tab2 AS cor0
----
-24
19
62
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5516
SELECT + 63 * cor0.col2 * + CAST( NULL AS SIGNED ) + - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5516
SELECT + 63 * cor0.col2 * + CAST ( NULL AS INTEGER ) + - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL cor0.col2 + + cor0.col1 + 69 AS col0 FROM tab0 cor0
----
167
188
242
onlyif mysql # use DIV operator for integer division
query I rowsort label-5518
SELECT DISTINCT - col0 DIV cor0.col2 + - col0 FROM tab0 AS cor0
----
-24
-70
-90
skipif mysql # not compatible
query I rowsort label-5518
SELECT DISTINCT - col0 / cor0.col2 + - col0 FROM tab0 AS cor0
----
-24
-70
-90
query I rowsort
SELECT ALL col1 * - col2 - 67 * 82 AS col0 FROM tab2 AS cor0
----
-6140
-6331
-7028
query I rowsort
SELECT DISTINCT + - col1 + cor0.col0 FROM tab2 AS cor0
----
-24
19
62
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5521
SELECT DISTINCT + col1 * + col2 - CAST( + ( col2 ) * - col1 AS SIGNED ) col1 FROM tab2 cor0
----
1292
1674
3068
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5521
SELECT DISTINCT + col1 * + col2 - CAST ( + ( col2 ) * - col1 AS INTEGER ) col1 FROM tab2 cor0
----
1292
1674
3068
query I rowsort
SELECT DISTINCT - 94 AS col2 FROM tab0 AS cor0
----
-94
query I rowsort
SELECT ALL + col2 * - col2 FROM tab1 cor0
----
-2916
-3249
-9216
onlyif mysql # use DIV operator for integer division
query I rowsort label-5524
SELECT ALL + cor0.col2 * - col0 + - col2 DIV - col2 + col0 * ( col1 * cor0.col0 ) FROM tab0 cor0
----
118791
48745
713514
skipif mysql # not compatible
query I rowsort label-5524
SELECT ALL + cor0.col2 * - col0 + - col2 / - col2 + col0 * ( col1 * cor0.col0 ) FROM tab0 cor0
----
118791
48745
713514
query I rowsort
SELECT ALL - 35 * + 90 - - col2 AS col1 FROM tab1
----
-3054
-3093
-3096
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5526
SELECT ALL + CAST( 50 * - col1 AS SIGNED ) AS col0 FROM tab2
----
-1550
-2950
-850
skipif mysql # not compatible
query I rowsort label-5526
SELECT ALL + CAST ( 50 * - col1 AS INTEGER ) AS col0 FROM tab2
----
-1550
-2950
-850
query I rowsort
SELECT ALL - 92 AS col2 FROM tab2
----
-92
-92
-92
query I rowsort
SELECT + + 99 + col0 AS col0 FROM tab0 AS cor0
----
123
134
188
onlyif mysql # use DIV operator for integer division
query I rowsort label-5529
SELECT ALL col1 + + col1 DIV - col1 FROM tab0
----
85
90
96
skipif mysql # not compatible
query I rowsort label-5529
SELECT ALL col1 + + col1 / - col1 FROM tab0
----
85
90
96
query I rowsort
SELECT cor1.col0 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0, tab1 cor1, tab0 cor2
----
81 values hashing to e28bf7f922650ca423ade3642ce0285b
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5531
SELECT + CAST( - 87 AS SIGNED ) + col1 * + col2 AS col1 FROM tab1
----
1161
1317
483
skipif mysql # not compatible
query I rowsort label-5531
SELECT + CAST ( - 87 AS INTEGER ) + col1 * + col2 AS col1 FROM tab1
----
1161
1317
483
query I rowsort
SELECT DISTINCT 98 - col2 FROM tab2
----
60
71
72
query I rowsort
SELECT - ( col1 ) + - col1 * ( col1 ) AS col0 FROM tab1
----
-110
-182
-702
query I rowsort
SELECT ALL ( 56 ) * + col1 - - 83 AS col2 FROM tab2
----
1035
1819
3387
query I rowsort
SELECT DISTINCT ( + 12 ) - - col0 FROM tab0
----
101
36
47
query I rowsort
SELECT DISTINCT - - cor0.col2 * 28 FROM tab2 AS cor0
----
1064
728
756
query I rowsort
SELECT - cor0.col0 * - col2 * cor0.col0 AS col0 FROM tab1 AS cor0
----
233472
486
614400
query I rowsort
SELECT ALL - - ( 2 ) AS col0 FROM tab1 AS cor0
----
2
2
2
query I rowsort
SELECT - + col1 * + 56 AS col1 FROM tab2 AS cor0
----
-1736
-3304
-952
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5540
SELECT - CAST( col2 AS SIGNED ) * - col2 AS col0 FROM tab1 AS cor0
----
2916
3249
9216
skipif mysql # not compatible
query I rowsort label-5540
SELECT - CAST ( col2 AS INTEGER ) * - col2 AS col0 FROM tab1 AS cor0
----
2916
3249
9216
query I rowsort
SELECT col1 + - 52 * - col2 FROM tab2 AS cor0
----
1411
1435
1993
query I rowsort
SELECT tab2.col1 FROM tab1, tab0 AS cor0 CROSS JOIN tab2
----
27 values hashing to 7599b480125de521efed71b5b2413c7d
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5543
SELECT DISTINCT CAST( + 87 AS SIGNED ) + col0 - + col2 * 92 * - col2 FROM tab0
----
100299
214
618784
skipif mysql # not compatible
query I rowsort label-5543
SELECT DISTINCT CAST ( + 87 AS INTEGER ) + col0 - + col2 * 92 * - col2 FROM tab0
----
100299
214
618784
query I rowsort
SELECT col0 * - col1 * col1 + 74 + 5 * col1 AS col0 FROM tab1
----
-13381
-1824
-6276
query I rowsort
SELECT + ( + tab2.col1 ) AS col2 FROM tab2, tab0 cor0
----
9 values hashing to c61d27a0022e6d022371dc58819ab272
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5546
SELECT ALL CAST( NULL AS SIGNED ) * col1 + - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5546
SELECT ALL CAST ( NULL AS INTEGER ) * col1 + - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - - 35 AS col1 FROM tab0 cor0
----
35
35
35
query I rowsort
SELECT + + 27 AS col1 FROM tab0 AS cor0
----
27
27
27
onlyif mysql # use DIV operator for integer division
query I rowsort label-5549
SELECT ALL - col0 DIV + col0 + col0 * + 3 AS col0 FROM tab2 AS cor0
----
20
233
236
skipif mysql # not compatible
query I rowsort label-5549
SELECT ALL - col0 / + col0 + col0 * + 3 AS col0 FROM tab2 AS cor0
----
20
233
236
query I rowsort
SELECT DISTINCT ( + cor0.col1 ) + + col2 + 39 AS col1 FROM tab1 AS cor0
----
106
119
148
query I rowsort
SELECT - ( - 45 ) FROM tab2 AS cor0
----
45
45
45
query I rowsort
SELECT ALL - ( - col0 ) * + col2 FROM tab2 AS cor0
----
189
2028
3002
onlyif mysql # use DIV operator for integer division
query I rowsort label-5553
SELECT col1 DIV 99 AS col1 FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-5553
SELECT col1 / 99 AS col1 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT ALL - + col1 * - 36 + cor0.col0 + + col1 * - col2 FROM tab2 cor0
----
286
45
668
onlyif mysql # use DIV operator for integer division
query I rowsort label-5555
SELECT DISTINCT 74 DIV - 5 FROM tab0 AS cor0
----
-14
skipif mysql # not compatible
query I rowsort label-5555
SELECT DISTINCT 74 / - 5 FROM tab0 AS cor0
----
-14
query I rowsort
SELECT ALL col0 * col0 * + ( cor0.col1 ) AS col1 FROM tab0 AS cor0
----
118825
49536
720811
query I rowsort
SELECT - col2 + + col1 + - cor0.col0 AS col0 FROM tab2 AS cor0
----
-100
-3
-45
query I rowsort
SELECT DISTINCT 96 + - col2 * - col0 AS col0 FROM tab2 AS cor0
----
2124
285
3098
query I rowsort
SELECT + 71 * + col1 AS col1 FROM tab1 AS cor0
----
1846
710
923
query I rowsort
SELECT DISTINCT cor0.col2 FROM tab0, tab1 cor0 CROSS JOIN tab2, tab0 AS cor1
----
54
57
96
query I rowsort
SELECT col2 + + 59 + - col0 FROM tab1
----
110
52
75
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab2.col2 col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3
query I rowsort
SELECT col0 + + cor0.col1 + - col2 * + cor0.col0 * - col2 FROM tab2 AS cor0
----
114172
5141
52865
query I rowsort
SELECT col0 * - col2 + 32 * col0 * + col2 + col0 FROM tab1 AS cor0
----
113152
238160
5025
query I rowsort
SELECT - cor0.col1 * ( + col0 + + col0 ) AS col0 FROM tab0 AS cor0
----
-16198
-4128
-6790
query I rowsort
SELECT DISTINCT + - col2 + 54 AS col2 FROM tab0 cor0
----
-28
21
53
query I rowsort
SELECT ALL - col0 + + col1 + col2 AS col0 FROM tab0 AS cor0
----
63
84
95
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5568
SELECT col1 * - CAST( NULL AS SIGNED ) + - ( - col1 * col1 ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5568
SELECT col1 * - CAST ( NULL AS INTEGER ) + - ( - col1 * col1 ) FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - cor0.col0 * - col1 + - col0 AS col0 FROM tab0 AS cor0
----
2040
3360
8010
query I rowsort
SELECT DISTINCT col0 + - col2 + - col1 FROM tab2 AS cor0
----
-51
-7
24
query I rowsort
SELECT DISTINCT - 4 AS col1 FROM tab0, tab2 AS cor0
----
-4
query I rowsort
SELECT ALL col2 + 63 AS col2 FROM tab0 AS cor0
----
145
64
96
query I rowsort
SELECT ALL + col1 * col0 + - 54 AS col1 FROM tab2 AS cor0
----
1289
163
4548
query I rowsort
SELECT + ( 65 ) * col1 FROM tab1 AS cor0
----
1690
650
845
query I rowsort
SELECT ALL + col2 * - 19 FROM tab0 AS cor0
----
-1558
-19
-627
query I rowsort
SELECT col1 - + 64 FROM tab0
----
22
27
33
query I rowsort
SELECT ALL + - 66 AS col1 FROM tab0 AS cor0
----
-66
-66
-66
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 31 * col0 col1 FROM tab2 AS cor0
----
217
2418
2449
query I rowsort
SELECT DISTINCT + - ( + 13 ) * cor0.col0 + - cor0.col1 * cor0.col1 AS col2 FROM tab0 AS cor0
----
-7708
-9438
-9864
query I rowsort
SELECT ALL 16 * col0 AS col0 FROM tab1 AS cor0
----
1024
1280
48
onlyif mysql # use DIV operator for integer division
query I rowsort label-5581
SELECT + col1 * - cor0.col2 DIV + col2 FROM tab0 AS cor0
----
-86
-91
-97
skipif mysql # not compatible
query I rowsort label-5581
SELECT + col1 * - cor0.col2 / + col2 FROM tab0 AS cor0
----
-86
-91
-97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5582
SELECT col0 + + CAST( col1 AS SIGNED ) FROM tab0
----
110
132
180
skipif mysql # not compatible
query I rowsort label-5582
SELECT col0 + + CAST ( col1 AS INTEGER ) FROM tab0
----
110
132
180
query I rowsort
SELECT + col0 + + 49 + 23 * col0 AS col1 FROM tab1 AS cor0
----
121
1585
1969
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 + - ( col1 * col1 ) col0 FROM tab1 cor0
----
-164
-249
-679
onlyif mysql # use DIV operator for integer division
query I rowsort label-5585
SELECT - col0 DIV col1 + col2 AS col1 FROM tab2 AS cor0
----
25
27
34
skipif mysql # not compatible
query I rowsort label-5585
SELECT - col0 / col1 + col2 AS col1 FROM tab2 AS cor0
----
25
27
34
onlyif mysql # use DIV operator for integer division
query I rowsort label-5586
SELECT DISTINCT + + col0 DIV + ( col1 * + col0 ) FROM tab1 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-5586
SELECT DISTINCT + + col0 / + ( col1 * + col0 ) FROM tab1 AS cor0
----
0
query I rowsort
SELECT - col0 * col0 * 25 + col0 AS col2 FROM tab2 AS cor0
----
-1218
-152022
-155946
query I rowsort
SELECT + 64 * + ( col2 ) FROM tab1 AS cor0
----
3456
3648
6144
query I rowsort
SELECT col0 + - ( - cor0.col1 ) AS col1 FROM tab1 cor0
----
29
74
93
onlyif mysql # use DIV operator for integer division
query I rowsort label-5590
SELECT - col2 DIV col1 - 46 AS col1 FROM tab1 AS cor0
----
-48
-51
-53
skipif mysql # not compatible
query I rowsort label-5590
SELECT - col2 / col1 - 46 AS col1 FROM tab1 AS cor0
----
-48
-51
-53
query I rowsort
SELECT + + col1 + col1 * ( col1 ) AS col2 FROM tab2 AS cor0
----
306
3540
992
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 52 col1 FROM tab0, tab0 AS cor0 CROSS JOIN tab1
----
27 values hashing to 76100d10f51995d20efdeb657e444d3c
query I rowsort
SELECT DISTINCT + ( - col0 ) * + col2 - tab2.col2 FROM tab2
----
-2054
-216
-3040
query I rowsort
SELECT ALL ( + col2 * + ( + col0 ) ) + col2 + - ( + col0 ) FROM tab2
----
1976
209
2961
query I rowsort
SELECT DISTINCT + 91 * - col2 + - col1 AS col0 FROM tab0
----
-188
-3089
-7553
query I rowsort
SELECT DISTINCT 71 + + col1 * col2 * + col2 AS col2 FROM tab0
----
168
611955
93725
query I rowsort
SELECT + col0 * - col2 + - cor0.col0 FROM tab2 AS cor0
----
-196
-2106
-3081
onlyif mysql # use DIV operator for integer division
query I rowsort label-5598
SELECT + col1 * + ( 45 ) - - col0 DIV 23 AS col0 FROM tab1 AS cor0
----
1170
452
588
skipif mysql # not compatible
query I rowsort label-5598
SELECT + col1 * + ( 45 ) - - col0 / 23 AS col0 FROM tab1 AS cor0
----
1170
452
588
onlyif mysql # use DIV operator for integer division
query I rowsort label-5599
SELECT tab1.col0 * col0 DIV 63 FROM tab1
----
0
101
65
skipif mysql # not compatible
query I rowsort label-5599
SELECT tab1.col0 * col0 / 63 FROM tab1
----
0
101
65
query I rowsort
SELECT DISTINCT tab1.col2 + - col1 AS col1 FROM tab1
----
28
47
83
query I rowsort
SELECT + ( col0 ) + ( col1 ) FROM tab2
----
137
38
96
query I rowsort
SELECT + col2 * col1 + col0 * - cor0.col0 FROM tab1 AS cor0
----
-3526
-5152
1395
query I rowsort
SELECT - - cor0.col0 * col1 + col1 FROM tab0 AS cor0
----
2150
3492
8190
query I rowsort
SELECT ALL - col1 * cor0.col2 + + col0 * col0 FROM tab0 AS cor0
----
-2262
1128
459
query I rowsort
SELECT ALL + ( + cor0.col2 ) * cor0.col0 FROM tab1, tab0 AS cor0
----
9 values hashing to e1120e7b687b32270ef70393236e7341
query I rowsort
SELECT DISTINCT - - col0 + ( cor0.col2 ) AS col1 FROM tab0 AS cor0
----
171
36
57
onlyif mysql # use DIV operator for integer division
query I rowsort label-5607
SELECT DISTINCT col0 DIV 65 FROM tab0
----
0
1
skipif mysql # not compatible
query I rowsort label-5607
SELECT DISTINCT col0 / 65 FROM tab0
----
0
1
query I rowsort
SELECT ALL tab0.col0 * tab0.col1 - col2 FROM tab0
----
2031
3394
8017
query I rowsort
SELECT DISTINCT - tab1.col0 - col1 * 1 FROM tab1
----
-29
-74
-93
query I rowsort
SELECT + col0 + 74 - + col1 AS col2 FROM tab1
----
128
141
51
query I rowsort
SELECT DISTINCT col2 - + ( + 57 * tab1.col0 ) FROM tab1
----
-117
-3591
-4464
query I rowsort
SELECT DISTINCT - - cor0.col2 * + col1 * col1 AS col0 FROM tab1 AS cor0
----
16224
36504
5700
query I rowsort
SELECT 26 * - col0 AS col2 FROM tab2 AS cor0
----
-182
-2028
-2054
query I rowsort
SELECT ALL + 15 * + tab1.col0 AS col2 FROM tab1
----
1200
45
960
query I rowsort
SELECT - + 57 AS col2 FROM tab2 AS cor0
----
-57
-57
-57
query I rowsort
SELECT DISTINCT + 49 + col2 AS col0 FROM tab0
----
131
50
82
query I rowsort
SELECT + ( col1 ) - + col0 AS col1 FROM tab1 AS cor0
----
-54
-67
23
query I rowsort
SELECT ALL ( col0 ) * + col1 + col1 * tab2.col1 AS col1 FROM tab2
----
1178
1632
8083
onlyif mysql # use DIV operator for integer division
query I rowsort label-5619
SELECT DISTINCT CAST( + col0 AS SIGNED ) DIV col1 FROM tab0 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-5619
SELECT DISTINCT CAST ( + col0 AS INTEGER ) / col1 FROM tab0 AS cor0
----
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - col1 col2 FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT + 8 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to ffc5b4c98b57ae546521175995c49c57
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 58 + + 50 * - col2 * col0 col2 FROM tab1 AS cor0
----
-182342
-383942
-8042
query I rowsort
SELECT ALL 25 * cor0.col1 * cor0.col1 FROM tab2 AS cor0
----
24025
7225
87025
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col0 + cor0.col0 * + col2 col0 FROM tab1 AS cor0
----
159
3584
7600
query I rowsort
SELECT col1 * cor0.col2 + + cor0.col1 + + col0 FROM tab2 cor0
----
1671
742
875
query I rowsort
SELECT ALL 54 + - col1 FROM tab1 AS cor0
----
28
41
44
query I rowsort
SELECT DISTINCT - - 71 * + col0 AS col0 FROM tab2 AS cor0
----
497
5538
5609
query I rowsort
SELECT - col0 + - cor0.col0 + + 78 * 17 FROM tab1 AS cor0
----
1166
1198
1320
query I rowsort
SELECT ALL + - col2 + col2 * - col1 * - 24 FROM tab2 cor0
----
15466
20061
36790
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * - col1 + 96 col1 FROM tab2 AS cor0
----
-121
-1247
-4506
onlyif mysql # use DIV operator for integer division
query I rowsort label-5631
SELECT + cor0.col0 + - cor0.col2 * - col0 DIV - col0 + col2 AS col2 FROM tab2 cor0
----
7
78
79
skipif mysql # not compatible
query I rowsort label-5631
SELECT + cor0.col0 + - cor0.col2 * - col0 / - col0 + col2 AS col2 FROM tab2 cor0
----
7
78
79
query I rowsort
SELECT ALL - 90 * - col0 AS col0 FROM tab1 AS cor0
----
270
5760
7200
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + ( + col2 ) col2 FROM tab2 AS cor0
----
-26
-27
-38
query I rowsort
SELECT DISTINCT 59 * - col0 AS col1 FROM tab2 AS cor0
----
-413
-4602
-4661
query I rowsort
SELECT - col1 * - col2 + col0 * - 29 + col2 * cor0.col2 * col0 AS col2 FROM tab0 AS cor0
----
-883
28278
603317
query I rowsort
SELECT + col2 * + col1 - + 39 AS col0 FROM tab2 AS cor0
----
1495
607
798
query I rowsort
SELECT tab2.col0 + + cor0.col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 73feda3cdfbb1052036b56d1a1e9df2d
query I rowsort
SELECT ALL - ( col0 + + col2 ) * ( col2 + + col2 ) FROM tab2
----
-1836
-5408
-8892
query I rowsort
SELECT ALL col1 - 12 FROM tab2
----
19
47
5
query I rowsort
SELECT DISTINCT col1 - - ( - 82 ) FROM tab1 cor0
----
-56
-69
-72
query I rowsort
SELECT DISTINCT col0 + 91 AS col0 FROM tab2 AS cor0
----
169
170
98
onlyif mysql # use DIV operator for integer division
query I rowsort label-5642
SELECT cor0.col2 + + col1 DIV 75 AS col0 FROM tab1 AS cor0
----
54
57
96
skipif mysql # not compatible
query I rowsort label-5642
SELECT cor0.col2 + + col1 / 75 AS col0 FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT + col0 * col2 + - col2 AS col1 FROM tab0 cor0
----
34
7216
759
query I rowsort
SELECT ALL - - col0 * + 61 FROM tab0 AS cor0
----
1464
2135
5429
query I rowsort
SELECT DISTINCT + - col0 + 48 * - col0 AS col2 FROM tab0 AS cor0
----
-1176
-1715
-4361
query I rowsort
SELECT ALL col1 * + 65 AS col2 FROM tab1 AS cor0
----
1690
650
845
query I rowsort
SELECT + 19 * 54 FROM tab1, tab2 AS cor0
----
9 values hashing to c436fe82e7eed5cb971cbbef3f7a5e9f
onlyif mysql # use DIV operator for integer division
query I rowsort label-5648
SELECT + col1 DIV CAST( col2 * - col1 AS SIGNED ) - 17 FROM tab1
----
-17
-17
-17
skipif mysql # not compatible
query I rowsort label-5648
SELECT + col1 / CAST ( col2 * - col1 AS INTEGER ) - 17 FROM tab1
----
-17
-17
-17
onlyif mysql # use DIV operator for integer division
query I rowsort label-5649
SELECT DISTINCT tab2.col0 DIV + tab2.col0 AS col1 FROM tab2
----
1
skipif mysql # not compatible
query I rowsort label-5649
SELECT DISTINCT tab2.col0 / + tab2.col0 AS col1 FROM tab2
----
1
query I rowsort
SELECT ALL + col0 * 67 AS col1 FROM tab1
----
201
4288
5360
query I rowsort
SELECT - col2 + ( - col2 ) FROM tab1
----
-108
-114
-192
query I rowsort
SELECT col0 * - 84 - - col0 AS col2 FROM tab1
----
-249
-5312
-6640
query I rowsort
SELECT + col0 * + ( col1 * col1 ) + tab0.col2 AS col0 FROM tab0
----
177537
329316
737091
query I rowsort
SELECT ALL + 31 - col2 AS col0 FROM tab0 AS cor0
----
-2
-51
30
query I rowsort
SELECT ALL + 31 + cor0.col1 FROM tab0 AS cor0
----
117
122
128
query I rowsort
SELECT ALL - 34 + 12 FROM tab2 AS cor0
----
-22
-22
-22
query I rowsort
SELECT DISTINCT + ( - ( + col0 ) ) FROM tab1 AS cor0
----
-3
-64
-80
query I rowsort
SELECT - col0 - 2 AS col2 FROM tab0
----
-26
-37
-91
query I rowsort
SELECT ALL + + cor0.col1 - cor0.col1 * col2 AS col0 FROM tab2 cor0
----
-1475
-629
-806
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 53 col2 FROM tab2 AS cor0
----
-53
-53
-53
query I rowsort
SELECT ALL + 27 + - col1 FROM tab1 AS cor0
----
1
14
17
query I rowsort
SELECT ALL - - col0 - - col2 FROM tab2 cor0
----
104
117
34
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5663
SELECT - - CAST( - 72 AS SIGNED ) * col2 FROM tab1 AS cor0
----
-3888
-4104
-6912
skipif mysql # not compatible
query I rowsort label-5663
SELECT - - CAST ( - 72 AS INTEGER ) * col2 FROM tab1 AS cor0
----
-3888
-4104
-6912
query I rowsort
SELECT ALL col2 * 87 + - col1 * col1 FROM tab0 AS cor0
----
-1147
-4525
-9322
query I rowsort
SELECT ALL - ( cor0.col0 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 4ec304b8ce935f2226e7548d72c2b2f0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 12 col2 FROM tab2 cor0
----
12
12
12
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 78 * + col2 col0 FROM tab1 AS cor0
----
4212
4446
7488
onlyif mysql # use DIV operator for integer division
query I rowsort label-5668
SELECT - col2 DIV - col0 - + 84 FROM tab0 cor0
----
-83
-84
-84
skipif mysql # not compatible
query I rowsort label-5668
SELECT - col2 / - col0 - + 84 FROM tab0 cor0
----
-83
-84
-84
query I rowsort
SELECT ALL - col0 + col1 * - col1 AS col0 FROM tab0
----
-7420
-8370
-9444
query I rowsort
SELECT - col1 + - col1 * 43 AS col0 FROM tab2 AS cor0
----
-1364
-2596
-748
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5671
SELECT DISTINCT + col1 * CAST( NULL AS SIGNED ) * + col2 AS col0 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-5671
SELECT DISTINCT + col1 * CAST ( NULL AS INTEGER ) * + col2 AS col0 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT ALL + cor0.col0 + + cor0.col2 FROM tab2 AS cor0
----
104
117
34
query I rowsort
SELECT ALL col2 * 22 FROM tab2
----
572
594
836
query I rowsort
SELECT ALL col1 * + ( col0 ) - col0 AS col0 FROM tab0 AS cor0
----
2040
3360
8010
query I rowsort
SELECT ALL + cor0.col1 * 37 FROM tab2 AS cor0
----
1147
2183
629
query I rowsort
SELECT DISTINCT - + col1 * + col1 + col2 FROM tab0 AS cor0
----
-7363
-8199
-9408
query I rowsort
SELECT col1 + col0 + - col2 FROM tab0
----
131
77
98
onlyif mysql # use DIV operator for integer division
query I rowsort label-5678
SELECT DISTINCT - 86 + - 59 DIV col1 FROM tab2 cor0
----
-87
-89
skipif mysql # not compatible
query I rowsort label-5678
SELECT DISTINCT - 86 + - 59 / col1 FROM tab2 cor0
----
-87
-89
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5679
SELECT ALL - - CAST( + col0 AS SIGNED ) + - col1 FROM tab2 AS cor0
----
-24
19
62
skipif mysql # not compatible
query I rowsort label-5679
SELECT ALL - - CAST ( + col0 AS INTEGER ) + - col1 FROM tab2 AS cor0
----
-24
19
62
query I rowsort
SELECT + - cor0.col2 + + col1 * + col0 FROM tab1 AS cor0
----
24
583
944
query I rowsort
SELECT ALL ( + 36 ) FROM tab1 AS cor0
----
36
36
36
query I rowsort
SELECT ALL + cor0.col1 * + ( - col0 ) AS col0 FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT DISTINCT + ( - 40 ) AS col0 FROM tab2
----
-40
onlyif mysql # use DIV operator for integer division
query I rowsort label-5684
SELECT ALL - 88 + col0 DIV - col0 AS col1 FROM tab0 AS cor0
----
-89
-89
-89
skipif mysql # not compatible
query I rowsort label-5684
SELECT ALL - 88 + col0 / - col0 AS col1 FROM tab0 AS cor0
----
-89
-89
-89
query I rowsort
SELECT - tab2.col2 AS col1 FROM tab2, tab0, tab1 AS cor0
----
27 values hashing to f9d4bb8677db7b98c7ed89d06e6e8cd6
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 90 col2 FROM tab1, tab0, tab1 cor0
----
90
query I rowsort
SELECT ALL + ( col1 ) * + 63 AS col1 FROM tab1 AS cor0
----
1638
630
819
query I rowsort
SELECT - + col1 + col2 * + ( col2 ) * - col0 FROM tab2 AS cor0
----
-114093
-5134
-52787
query I rowsort
SELECT - col0 + - col0 AS col1 FROM tab2 cor0
----
-14
-156
-158
query I rowsort
SELECT - col0 * - col0 + + cor0.col1 FROM tab0 cor0
----
1322
662
8012
query I rowsort
SELECT DISTINCT - + col2 * 79 AS col0 FROM tab2 AS cor0
----
-2054
-2133
-3002
query I rowsort
SELECT col1 + - 45 * + col1 AS col2 FROM tab1 AS cor0
----
-1144
-440
-572
query I rowsort
SELECT col0 + + 89 AS col1 FROM tab1
----
153
169
92
query I rowsort
SELECT ALL 96 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to f1d978c2d5bfc6f26e0907ac777be83e
query I rowsort
SELECT + 4 + + cor1.col1 AS col2 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to bbaf4d06c68a96b568343f55f6ea41fd
onlyif mysql # use DIV operator for integer division
query I rowsort label-5696
SELECT + + col2 DIV ( + 81 ) FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-5696
SELECT + + col2 / ( + 81 ) FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT 23 AS col0 FROM tab0, tab0 AS cor0, tab2 cor1, tab2, tab0 AS cor2
----
243 values hashing to 631a83dca1a5a8dbe0757e533371de55
query I rowsort
SELECT - - col0 * + 66 FROM tab2 AS cor0
----
462
5148
5214
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5699
SELECT + CAST( + cor0.col2 AS SIGNED ) FROM tab1 AS cor0
----
54
57
96
skipif mysql # not compatible
query I rowsort label-5699
SELECT + CAST ( + cor0.col2 AS INTEGER ) FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT - col1 * 70 - cor0.col1 * + col2 * col0 FROM tab1 AS cor0
----
-100750
-37180
-6032
query I rowsort
SELECT DISTINCT col1 * + col1 * + col1 FROM tab2 AS cor0
----
205379
29791
4913
query I rowsort
SELECT col0 * + col0 - col0 AS col2 FROM tab1 cor0
----
4032
6
6320
query I rowsort
SELECT DISTINCT - col2 + 64 AS col1 FROM tab0 AS cor0
----
-18
31
63
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5704
SELECT + ( cor0.col2 ) * col2 + CAST( col2 AS SIGNED ) FROM tab2 AS cor0
----
1482
702
756
skipif mysql # not compatible
query I rowsort label-5704
SELECT + ( cor0.col2 ) * col2 + CAST ( col2 AS INTEGER ) FROM tab2 AS cor0
----
1482
702
756
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 28 + 59 col0 FROM tab0 AS cor0
----
87
onlyif mysql # use DIV operator for integer division
query I rowsort label-5706
SELECT ALL col1 + 73 DIV col2 FROM tab1 AS cor0
----
11
13
27
skipif mysql # not compatible
query I rowsort label-5706
SELECT ALL col1 + 73 / col2 FROM tab1 AS cor0
----
11
13
27
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 13 - 43 * + col0 col2 FROM tab2 AS cor0
----
-314
-3367
-3410
query I rowsort
SELECT - + cor0.col2 * + col0 - + col2 FROM tab1 cor0
----
-216
-3705
-7776
query I rowsort
SELECT ( ( - col0 ) ) AS col1 FROM tab1 AS cor0
----
-3
-64
-80
query I rowsort
SELECT ALL - col0 * 40 FROM tab1
----
-120
-2560
-3200
query I rowsort
SELECT - + 83 * + col0 FROM tab0 AS cor0
----
-1992
-2905
-7387
query I rowsort
SELECT 85 + 78 * + col1 FROM tab2 AS cor0
----
1411
2503
4687
query I rowsort
SELECT DISTINCT - 20 AS col0 FROM tab2, tab0 cor0
----
-20
onlyif mysql # use DIV operator for integer division
query I rowsort label-5714
SELECT col1 * - col0 + + col2 DIV tab1.col2 FROM tab1
----
-1039
-639
-77
skipif mysql # not compatible
query I rowsort label-5714
SELECT col1 * - col0 + + col2 / tab1.col2 FROM tab1
----
-1039
-639
-77
query I rowsort
SELECT 96 * col1 AS col2 FROM tab0 AS cor0
----
8256
8736
9312
query I rowsort
SELECT ALL 12 * col2 AS col1 FROM tab2 AS cor0
----
312
324
456
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5717
SELECT CAST( + col0 * col1 AS SIGNED ) FROM tab1
----
1040
640
78
skipif mysql # not compatible
query I rowsort label-5717
SELECT CAST ( + col0 * col1 AS INTEGER ) FROM tab1
----
1040
640
78
onlyif mysql # use DIV operator for integer division
query I rowsort label-5718
SELECT DISTINCT - col1 + col1 DIV - col0 + + CAST( col2 AS SIGNED ) FROM tab2
----
-33
-8
21
skipif mysql # not compatible
query I rowsort label-5718
SELECT DISTINCT - col1 + col1 / - col0 + + CAST ( col2 AS INTEGER ) FROM tab2
----
-33
-8
21
query I rowsort
SELECT + 1 * col0 * - col2 AS col2 FROM tab1
----
-162
-3648
-7680
query I rowsort
SELECT + - cor0.col0 * - col1 * col2 FROM tab1 cor0
----
36480
4212
99840
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 76 col0 FROM tab1 AS cor0
----
76
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5722
SELECT ALL + - ( + col0 ) * + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5722
SELECT ALL + - ( + col0 ) * + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - cor0.col2 + col1 * + col2 FROM tab0 AS cor0
----
2805
7380
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-5724
SELECT ALL col0 DIV + 48 FROM tab0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-5724
SELECT ALL col0 / + 48 FROM tab0
----
0
0
1
query I rowsort
SELECT - + col2 + 14 * col2 FROM tab0 AS cor0
----
1066
13
429
query I rowsort
SELECT + col2 + - cor0.col0 AS col2 FROM tab0 AS cor0
----
-34
-7
9
query I rowsort
SELECT - + col2 * + ( - cor0.col2 ) FROM tab1 AS cor0
----
2916
3249
9216
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5728
SELECT col2 * - CAST( + 88 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-4752
-5016
-8448
skipif mysql # not compatible
query I rowsort label-5728
SELECT col2 * - CAST ( + 88 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-4752
-5016
-8448
query I rowsort
SELECT + - cor0.col2 * col0 AS col0 FROM tab2 AS cor0
----
-189
-2028
-3002
onlyif mysql # use DIV operator for integer division
query I rowsort label-5730
SELECT - cor0.col2 + col2 DIV - ( col2 ) AS col1 FROM tab1 AS cor0
----
-55
-58
-97
skipif mysql # not compatible
query I rowsort label-5730
SELECT - cor0.col2 + col2 / - ( col2 ) AS col1 FROM tab1 AS cor0
----
-55
-58
-97
query I rowsort
SELECT + - col1 * 30 * cor0.col0 + col2 FROM tab0 AS cor0
----
-101849
-242888
-61887
query I rowsort
SELECT ALL + ( - col0 * 80 ) AS col1 FROM tab0
----
-1920
-2800
-7120
query I rowsort
SELECT ALL + 85 * + tab0.col0 * - tab0.col1 FROM tab0
----
-175440
-288575
-688415
query I rowsort
SELECT + 7 * - 54 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to b64666bb637dcc34752894944bcbce1d
query I rowsort
SELECT DISTINCT - col2 * + col1 + + col2 FROM tab2 AS cor0
----
-1508
-608
-810
query I rowsort
SELECT ALL + tab1.col1 * + tab1.col1 FROM tab1
----
100
169
676
query I rowsort
SELECT ALL tab2.col1 * + col1 AS col1 FROM tab2
----
289
3481
961
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 77 col2 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to d7b027bca5d37c67e29013904def8125
skipif mysql # not compatible
query I rowsort
SELECT ALL - col1 + CAST ( col1 AS REAL ) * - col1 AS col1 FROM tab2 AS cor0
----
-306
-3540
-992
query I rowsort
SELECT ALL - col0 + + 41 * - col0 FROM tab2 AS cor0
----
-294
-3276
-3318
query I rowsort
SELECT - col2 * - ( + cor0.col1 ) FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT DISTINCT + cor0.col1 + ( - 27 ) FROM tab1 AS cor0
----
-1
-14
-17
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5743
SELECT ALL - cor0.col1 * - cor0.col0 + col1 * - col2 - - CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5743
SELECT ALL - cor0.col1 * - cor0.col0 + col1 * - col2 - - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT col2 + 36 AS col0 FROM tab0 cor0
----
118
37
69
query I rowsort
SELECT ALL + cor0.col2 * + 8 FROM tab1 AS cor0
----
432
456
768
query I rowsort
SELECT DISTINCT col1 * + col2 + - cor0.col0 AS col0 FROM tab1 AS cor0
----
1168
1401
506
query I rowsort
SELECT ALL 55 * 69 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 24865c1822cd7b29b9d06077bbb3219a
query I rowsort
SELECT ALL + cor0.col0 * ( col1 ) - col0 FROM tab1 AS cor0
----
576
75
960
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - 38 col1 FROM tab0 AS cor0
----
-1254
-3116
-38
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( col2 ) * - col2 + 3 col1 FROM tab1 AS cor0
----
-2913
-3246
-9213
query I rowsort
SELECT + + ( - 88 ) + col2 AS col1 FROM tab0 AS cor0
----
-55
-6
-87
query I rowsort
SELECT DISTINCT col2 + + col0 * col2 AS col1 FROM tab0 AS cor0
----
36
7380
825
onlyif mysql # use DIV operator for integer division
query I rowsort label-5753
SELECT DISTINCT - ( + 84 ) * cor0.col1 DIV - col1 + + cor0.col0 AS col0 FROM tab1 AS cor0
----
148
164
87
skipif mysql # not compatible
query I rowsort label-5753
SELECT DISTINCT - ( + 84 ) * cor0.col1 / - col1 + + cor0.col0 AS col0 FROM tab1 AS cor0
----
148
164
87
query I rowsort
SELECT ALL col0 * - ( - cor0.col0 ) + cor0.col1 FROM tab1 AS cor0
----
35
4106
6413
query I rowsort
SELECT - col1 * + 91 + - col2 AS col1 FROM tab1 AS cor0
----
-1279
-2420
-967
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5756
SELECT - CAST( NULL AS SIGNED ) + - 14 * - col1 AS col2 FROM tab1 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5756
SELECT - CAST ( NULL AS INTEGER ) + - 14 * - col1 AS col2 FROM tab1 cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5757
SELECT - + CAST( ( - col2 ) AS SIGNED ) + col1 AS col0 FROM tab1 cor0
----
109
67
80
skipif mysql # not compatible
query I rowsort label-5757
SELECT - + CAST ( ( - col2 ) AS INTEGER ) + col1 AS col0 FROM tab1 cor0
----
109
67
80
query I rowsort
SELECT ALL + - ( cor0.col1 ) + col0 FROM tab1 AS cor0
----
-23
54
67
query I rowsort
SELECT 62 FROM tab0, tab1 cor0
----
9 values hashing to 51dd2771d516ceb935483eded78a5fa0
query I rowsort
SELECT DISTINCT + col2 + - col1 + - ( 29 ) AS col1 FROM tab1 AS cor0
----
-1
18
54
query I rowsort
SELECT ALL 91 FROM tab2, tab0 cor0
----
9 values hashing to 5748627ef5fd86a21cd559fd278d7277
query I rowsort
SELECT + 24 + col2 * + cor0.col2 AS col2 FROM tab0 AS cor0
----
1113
25
6748
query I rowsort
SELECT DISTINCT - ( + col2 ) * - 8 AS col2 FROM tab1 AS cor0
----
432
456
768
query I rowsort
SELECT - + 43 * + col2 + + col2 FROM tab2 AS cor0
----
-1092
-1134
-1596
onlyif mysql # use DIV operator for integer division
query I rowsort label-5765
SELECT DISTINCT cor0.col0 * col1 + - col1 DIV - col0 FROM tab1 AS cor0
----
1040
640
86
skipif mysql # not compatible
query I rowsort label-5765
SELECT DISTINCT cor0.col0 * col1 + - col1 / - col0 FROM tab1 AS cor0
----
1040
640
86
query I rowsort
SELECT cor0.col2 + col0 + + 3 * 96 AS col0 FROM tab0 AS cor0
----
324
345
459
query I rowsort
SELECT 7 * + col0 + - ( - col1 + col1 ) * + col1 FROM tab0 AS cor0
----
168
245
623
onlyif mysql # use DIV operator for integer division
query I rowsort label-5768
SELECT ALL - col2 * + col0 + + col2 DIV col0 FROM tab1 cor0
----
-144
-3648
-7679
skipif mysql # not compatible
query I rowsort label-5768
SELECT ALL - col2 * + col0 + + col2 / col0 FROM tab1 cor0
----
-144
-3648
-7679
query I rowsort
SELECT DISTINCT - + 56 * col0 + 81 FROM tab2 AS cor0
----
-311
-4287
-4343
query I rowsort
SELECT DISTINCT - + col1 + col2 * + col2 FROM tab0 AS cor0
----
-96
1003
6633
query I rowsort
SELECT ALL 54 + cor0.col0 AS col1 FROM tab0 AS cor0
----
143
78
89
query I rowsort
SELECT DISTINCT 89 * col1 + - 69 AS col1 FROM tab1 AS cor0
----
1088
2245
821
query I rowsort
SELECT DISTINCT + col0 + + col1 + col0 * + col2 FROM tab1 AS cor0
----
191
3722
7773
query I rowsort
SELECT DISTINCT + 63 * 60 AS col2 FROM tab1, tab2, tab1 AS cor0
----
3780
query I rowsort
SELECT 52 + + tab0.col2 * tab0.col2 - 17 FROM tab0
----
1124
36
6759
onlyif mysql # use DIV operator for integer division
query I rowsort label-5776
SELECT + col1 DIV col0 - col2 FROM tab1
----
-46
-57
-96
skipif mysql # not compatible
query I rowsort label-5776
SELECT + col1 / col0 - col2 FROM tab1
----
-46
-57
-96
onlyif mysql # use DIV operator for integer division
query I rowsort label-5777
SELECT ALL - 66 + + 47 DIV - col1 FROM tab0
----
-66
-66
-66
skipif mysql # not compatible
query I rowsort label-5777
SELECT ALL - 66 + + 47 / - col1 FROM tab0
----
-66
-66
-66
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + + col0 * + col1 col1 FROM tab0 AS cor0
----
2088
3430
8188
query I rowsort
SELECT ALL + + cor1.col2 * 2 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to b24047a4766c1dbbfa5abb9df45d1883
query I rowsort
SELECT ALL - 54 * - col0 FROM tab0 AS cor0
----
1296
1890
4806
query I rowsort
SELECT DISTINCT + + col1 + col0 + + 59 FROM tab0 AS cor0
----
169
191
239
query I rowsort
SELECT + + cor1.col2 + 90 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 6256ffdcbb980d3bf7725a2482f16587
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5783
SELECT CAST( NULL AS SIGNED ) * col2 + + col0 + + col0 / - cor0.col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5783
SELECT CAST ( NULL AS INTEGER ) * col2 + + col0 + + col0 / - cor0.col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab2.col0 + + col0 * - tab2.col0 + col2 col2 FROM tab2
----
-15
-5980
-6124
onlyif mysql # use DIV operator for integer division
query I rowsort label-5785
SELECT DISTINCT - col1 * - 11 - col0 DIV + col2 FROM tab1
----
109
143
286
skipif mysql # not compatible
query I rowsort label-5785
SELECT DISTINCT - col1 * - 11 - col0 / + col2 FROM tab1
----
109
143
286
query I rowsort
SELECT DISTINCT tab1.col1 + - 97 FROM tab1
----
-71
-84
-87
query I rowsort
SELECT ALL + 73 + + col2 FROM tab2
----
100
111
99
onlyif mysql # use DIV operator for integer division
query I rowsort label-5788
SELECT DISTINCT col2 DIV 94 + col2 * ( col2 * col0 + ( - col2 ) ) AS col2 FROM tab1
----
204687
5832
728065
skipif mysql # not compatible
query I rowsort label-5788
SELECT DISTINCT col2 / 94 + col2 * ( col2 * col0 + ( - col2 ) ) AS col2 FROM tab1
----
204687
5832
728065
query I rowsort
SELECT DISTINCT ( - 88 ) + col1 AS col1 FROM tab2
----
-29
-57
-71
query I rowsort
SELECT 72 * - col1 FROM tab2
----
-1224
-2232
-4248
query I rowsort
SELECT ( + col2 + col0 * + 39 ) FROM tab2
----
300
3068
3119
query I rowsort
SELECT DISTINCT cor0.col1 + + col2 * col2 * col0 FROM tab0 AS cor0
----
132
26222
598527
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5793
SELECT + - CAST( + col1 AS SIGNED ) + col1 * col2 AS col0 FROM tab2 AS cor0
----
1475
629
806
skipif mysql # not compatible
query I rowsort label-5793
SELECT + - CAST ( + col1 AS INTEGER ) + col1 * col2 AS col0 FROM tab2 AS cor0
----
1475
629
806
query I rowsort
SELECT - - cor0.col0 * - col2 AS col2 FROM tab2 cor0
----
-189
-2028
-3002
query I rowsort
SELECT + col0 + - ( - col0 ) * cor0.col0 AS col0 FROM tab1 AS cor0
----
12
4160
6480
query I rowsort
SELECT DISTINCT + col2 * col0 + + 79 FROM tab1
----
241
3727
7759
query I rowsort
SELECT + col0 + 54 AS col0 FROM tab1 AS cor0
----
118
134
57
query I rowsort
SELECT col2 * - 38 - col0 FROM tab1 AS cor0
----
-2055
-2230
-3728
query I rowsort
SELECT DISTINCT + col0 * - cor0.col2 AS col0 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT - - cor0.col1 + cor0.col2 * - cor0.col2 AS col1 FROM tab0 AS cor0
----
-1003
-6633
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-5801
SELECT ALL col0 * 67 DIV + 18 AS col1 FROM tab2
----
26
290
294
skipif mysql # not compatible
query I rowsort label-5801
SELECT ALL col0 * 67 / + 18 AS col1 FROM tab2
----
26
290
294
query I rowsort
SELECT ALL + cor0.col2 FROM tab1, tab1 AS cor0 CROSS JOIN tab2, tab2 cor1, tab2 AS cor2
----
243 values hashing to 39c7e653e7a493eb9c9e3dad9ba3b8c2
query I rowsort
SELECT col1 + - col2 * + 72 FROM tab0 AS cor0
----
-2290
-5813
25
query I rowsort
SELECT - ( + col1 ) * col0 AS col0 FROM tab0 AS cor0
----
-2064
-3395
-8099
onlyif mysql # use DIV operator for integer division
query I rowsort label-5805
SELECT DISTINCT - + 6 * col0 DIV - col1 col1 FROM tab2 AS cor0
----
1
27
7
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5805
SELECT DISTINCT - + 6 * col0 / - col1 col1 FROM tab2 AS cor0
----
1
27
7
query I rowsort
SELECT + col0 * 97 AS col2 FROM tab0 AS cor0
----
2328
3395
8633
query I rowsort
SELECT - ( - 16 * col2 ) AS col2 FROM tab0
----
1312
16
528
query I rowsort
SELECT ALL + col2 * col1 + + col1 FROM tab1 AS cor0
----
1261
1430
580
query I rowsort
SELECT - - 68 FROM tab1, tab2, tab0 cor0
----
27 values hashing to 10aa25f1c6b97582c34521ac6452e0b4
query I rowsort
SELECT DISTINCT + - ( col0 ) + - 63 AS col2 FROM tab0 AS cor0
----
-152
-87
-98
query I rowsort
SELECT ALL col2 * + col0 * - col0 FROM tab0
----
-1225
-19008
-649522
query I rowsort
SELECT DISTINCT tab2.col0 * tab2.col1 FROM tab2, tab1 AS cor0
----
1343
217
4602
query I rowsort
SELECT col0 + - col2 * col0 FROM tab2 AS cor0
----
-182
-1950
-2923
query I rowsort
SELECT + cor0.col0 * cor0.col2 * - col0 AS col1 FROM tab1 AS cor0
----
-233472
-486
-614400
query I rowsort
SELECT ALL ( + tab2.col2 ) + - col2 FROM tab2
----
0
0
0
query I rowsort
SELECT + col0 * - col0 + col2 * col1 FROM tab2 AS cor0
----
-4550
-5595
788
query I rowsort
SELECT ALL - + col2 + + col0 FROM tab2 AS cor0
----
-20
41
52
onlyif mysql # use DIV operator for integer division
query I rowsort label-5818
SELECT ALL cor0.col0 DIV + col1 - col2 DIV cor0.col1 AS col1 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-5818
SELECT ALL cor0.col0 / + col1 - col2 / cor0.col1 AS col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT col1 - col1 * col0 AS col1 FROM tab1 AS cor0
----
-1027
-52
-630
onlyif mysql # use DIV operator for integer division
query I rowsort label-5820
SELECT col0 DIV + 46 FROM tab1 AS cor0
----
0
1
1
skipif mysql # not compatible
query I rowsort label-5820
SELECT col0 / + 46 FROM tab1 AS cor0
----
0
1
1
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5821
SELECT ALL CAST( NULL AS DECIMAL ) + 74 * - col0 - col1 AS col0 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5821
SELECT ALL CAST ( NULL AS REAL ) + 74 * - col0 - col1 AS col0 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT ALL col0 * col0 + + col1 - - col0 FROM tab2
----
6221
6337
87
query I rowsort
SELECT + + ( + col0 ) + - col0 + col0 * col1 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT - + cor0.col0 FROM tab2, tab2 cor0
----
9 values hashing to 3000337dd3f11e9cfd5a312b01ef3f8b
query I rowsort
SELECT + col0 + - cor0.col2 + + col2 * col1 FROM tab0 cor0
----
131
2829
7469
query I rowsort
SELECT col2 + + 9 AS col2 FROM tab1 AS cor0
----
105
63
66
query I rowsort
SELECT DISTINCT 89 + col0 FROM tab2 AS cor0
----
167
168
96
query I rowsort
SELECT + + col1 + + cor0.col2 + cor0.col1 FROM tab1 AS cor0
----
106
122
77
query I rowsort
SELECT DISTINCT - col1 + cor0.col2 AS col1 FROM tab0 cor0
----
-53
-9
-96
query I rowsort
SELECT DISTINCT - + 30 + + col1 * - col1 FROM tab0 AS cor0
----
-7426
-8311
-9439
query I rowsort
SELECT + + col0 + col2 * - col2 AS col0 FROM tab2 AS cor0
----
-1365
-598
-722
query I rowsort
SELECT DISTINCT 26 * - 74 FROM tab1
----
-1924
query I rowsort
SELECT ALL + ( - col1 ) * - tab2.col0 * + tab2.col0 FROM tab2
----
106097
1519
358956
query I rowsort
SELECT 30 * - col1 FROM tab0
----
-2580
-2730
-2910
query I rowsort
SELECT DISTINCT cor0.col1 FROM tab2, tab1 AS cor0, tab1 cor1
----
10
13
26
query I rowsort
SELECT ALL + 33 - cor0.col1 FROM tab1 cor0
----
20
23
7
query I rowsort
SELECT cor0.col1 + 68 FROM tab2 AS cor0
----
127
85
99
query I rowsort
SELECT DISTINCT + - col0 * cor0.col1 - col1 FROM tab1 AS cor0
----
-104
-1053
-650
query I rowsort
SELECT - 58 * - ( col1 ) + + ( - col0 ) AS col1 FROM tab1 AS cor0
----
1505
516
674
query I rowsort
SELECT DISTINCT col1 * - cor0.col2 + col2 FROM tab0 AS cor0
----
-2805
-7380
-96
query I rowsort
SELECT ALL - 27 AS col0 FROM tab1, tab0 cor0
----
9 values hashing to 90b76caf54a4e48ee4a9784f52997a6a
query I rowsort
SELECT DISTINCT ( + 60 ) AS col1 FROM tab0
----
60
onlyif mysql # use DIV operator for integer division
query I rowsort label-5843
SELECT 40 + - col0 DIV + tab2.col1 AS col0 FROM tab2
----
36
39
40
skipif mysql # not compatible
query I rowsort label-5843
SELECT 40 + - col0 / + tab2.col1 AS col0 FROM tab2
----
36
39
40
query I rowsort
SELECT ALL + + col1 + 4 * + col0 AS col0 FROM tab1 cor0
----
266
333
38
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5845
SELECT DISTINCT + col1 + - 89 * col2 / + CAST( NULL AS SIGNED ) + + col0 * + col2 AS col0 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-5845
SELECT DISTINCT + col1 + - 89 * col2 / + CAST ( NULL AS INTEGER ) + + col0 * + col2 AS col0 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT ALL ( - cor0.col0 ) FROM tab2, tab0 AS cor0
----
9 values hashing to 09d8a912de1b8ab762e5ffbe028ce99e
query I rowsort
SELECT DISTINCT - col1 - tab1.col2 * + col1 FROM tab1
----
-1261
-1430
-580
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5848
SELECT DISTINCT tab1.col1 + CAST( NULL AS SIGNED ) FROM tab1, tab0 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-5848
SELECT DISTINCT tab1.col1 + CAST ( NULL AS INTEGER ) FROM tab1, tab0 cor0
----
NULL
query I rowsort
SELECT ALL - col0 + col1 * - col2 AS col2 FROM tab0
----
-132
-2862
-7551
query I rowsort
SELECT col2 * tab0.col2 + tab0.col0 AS col2 FROM tab0
----
1113
36
6813
query I rowsort
SELECT col0 * col1 + - col0 + col0 * - col0 FROM tab2
----
-1560
-4977
161
query I rowsort
SELECT col1 + - col1 * col0 AS col0 FROM tab1 AS cor0
----
-1027
-52
-630
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * + col0 + + 11 col0 FROM tab1 cor0
----
173
3659
7691
skipif mysql # not compatible
query I rowsort
SELECT ALL + cor0.col2 * CAST ( + 26 AS REAL ) FROM tab1 AS cor0
----
1404
1482
2496
onlyif mysql # use DIV operator for integer division
query I rowsort label-5855
SELECT col1 + col2 DIV + col2 FROM tab1
----
11
14
27
skipif mysql # not compatible
query I rowsort label-5855
SELECT col1 + col2 / + col2 FROM tab1
----
11
14
27
query I rowsort
SELECT ALL + col2 * 62 + + 41 + col1 * col1 FROM tab1 AS cor0
----
3675
4065
6162
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col2 * + ( - col1 * col0 ) col0 FROM tab2 AS cor0
----
-119652
-51034
-5859
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + col0 * - cor0.col0 col2 FROM tab1 AS cor0
----
-4086
-6387
17
onlyif mysql # use DIV operator for integer division
query I rowsort label-5859
SELECT ALL - + cor0.col0 + + 98 DIV - 92 + + col2 * 76 * - col2 AS col0 FROM tab0 AS cor0
----
-112
-511114
-82789
skipif mysql # not compatible
query I rowsort label-5859
SELECT ALL - + cor0.col0 + + 98 / - 92 + + col2 * 76 * - col2 AS col0 FROM tab0 AS cor0
----
-112
-511114
-82789
query I rowsort
SELECT DISTINCT - cor0.col0 - col0 * - cor0.col0 AS col0 FROM tab1 AS cor0
----
4032
6
6320
query I rowsort
SELECT - col2 * - 56 + col1 FROM tab2 AS cor0
----
1515
1543
2145
query I rowsort
SELECT ALL + col2 + col0 * ( + col1 ) FROM tab1 AS cor0
----
1136
132
697
query I rowsort
SELECT ALL + - cor0.col2 * - 57 * col2 + col2 FROM tab0 AS cor0
----
383350
58
62106
query I rowsort
SELECT + col2 * col2 + + 58 * + col2 FROM tab1 AS cor0
----
14784
6048
6555
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5865
SELECT ALL - col1 * CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5865
SELECT ALL - col1 * CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - col0 * + 39 + + col2 * - col2 + ( col1 + col0 * cor0.col0 ) AS col1 FROM tab0 AS cor0
----
-1363
-2183
-44
query I rowsort
SELECT DISTINCT - + col0 + col0 + col0 FROM tab1 AS cor0
----
3
64
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 + + 19 col2 FROM tab1 AS cor0
----
29
32
45
onlyif mysql # use DIV operator for integer division
query I rowsort label-5869
SELECT DISTINCT - col1 DIV 89 + col2 AS col0 FROM tab2 AS cor0
----
26
27
38
skipif mysql # not compatible
query I rowsort label-5869
SELECT DISTINCT - col1 / 89 + col2 AS col0 FROM tab2 AS cor0
----
26
27
38
query I rowsort
SELECT ALL + cor0.col0 * + col1 + + col2 FROM tab0 AS cor0
----
2097
3396
8181
onlyif mysql # use DIV operator for integer division
query I rowsort label-5871
SELECT - col0 DIV 98 FROM tab2
----
0
0
0
skipif mysql # not compatible
query I rowsort label-5871
SELECT - col0 / 98 FROM tab2
----
0
0
0
query I rowsort
SELECT - col2 + col1 * col2 + col1 FROM tab0
----
193
2891
7471
query I rowsort
SELECT ALL col0 + - 22 AS col1 FROM tab0
----
13
2
67
query I rowsort
SELECT DISTINCT tab1.col2 + 98 + col2 * tab1.col2 FROM tab1
----
3068
3404
9410
query I rowsort
SELECT ALL - col1 + col1 + col2 FROM tab2
----
26
27
38
query I rowsort
SELECT DISTINCT + col1 + 71 AS col0 FROM tab2
----
102
130
88
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col1 col1 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d
query I rowsort
SELECT DISTINCT - cor0.col2 + cor0.col0 FROM tab2, tab0 AS cor0
----
-9
34
7
query I rowsort
SELECT + 17 AS col2 FROM tab0, tab2 cor0
----
9 values hashing to 43298e43365fccb5146ea32003753c92
query I rowsort
SELECT DISTINCT - col0 * col1 - + col1 FROM tab1 cor0
----
-104
-1053
-650
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5881
SELECT - col0 - CAST( col2 + col1 AS SIGNED ) FROM tab0 AS cor0
----
-133
-143
-262
skipif mysql # not compatible
query I rowsort label-5881
SELECT - col0 - CAST ( col2 + col1 AS INTEGER ) FROM tab0 AS cor0
----
-133
-143
-262
query I rowsort
SELECT ALL + + col1 * 77 FROM tab0 AS cor0
----
6622
7007
7469
query I rowsort
SELECT + col0 * - ( col0 ) + + col1 * + 4 * col0 FROM tab0 cor0
----
12355
24475
7680
query I rowsort
SELECT ALL - + 71 AS col0 FROM tab0 AS cor0
----
-71
-71
-71
query I rowsort
SELECT + + 50 + col0 FROM tab2 AS cor0
----
128
129
57
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5886
SELECT DISTINCT + CAST( + 83 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
83
skipif mysql # not compatible
query I rowsort label-5886
SELECT DISTINCT + CAST ( + 83 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
83
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 52 * - col1 col2 FROM tab0 AS cor0
----
4472
4732
5044
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5888
SELECT ALL CAST( - col1 AS SIGNED ) * - col2 AS col2 FROM tab0 AS cor0
----
2838
7462
97
skipif mysql # not compatible
query I rowsort label-5888
SELECT ALL CAST ( - col1 AS INTEGER ) * - col2 AS col2 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT col1 + 40 FROM tab2 AS cor0
----
57
71
99
query I rowsort
SELECT DISTINCT cor0.col2 * 46 AS col0 FROM tab2 AS cor0
----
1196
1242
1748
query I rowsort
SELECT + ( col0 ) * col1 + - 10 FROM tab0 AS cor0
----
2054
3385
8089
query I rowsort
SELECT ALL - ( + ( - cor0.col0 ) ) * col1 AS col0 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT ( 36 ) + + col1 * + col1 AS col1 FROM tab1 AS cor0
----
136
205
712
onlyif mysql # use DIV operator for integer division
query I rowsort label-5894
SELECT ALL tab0.col0 + ( + col1 ) DIV - col0 FROM tab0
----
21
33
88
skipif mysql # not compatible
query I rowsort label-5894
SELECT ALL tab0.col0 + ( + col1 ) / - col0 FROM tab0
----
21
33
88
query I rowsort
SELECT - col0 * - col1 + col1 AS col2 FROM tab2 AS cor0
----
1360
248
4661
query I rowsort
SELECT - cor0.col2 * col1 + + col2 AS col2 FROM tab0 cor0
----
-2805
-7380
-96
query I rowsort
SELECT ALL + + 98 * + col1 * - col2 FROM tab1 AS cor0
----
-122304
-137592
-55860
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5898
SELECT DISTINCT + col2 * - col0 + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-5898
SELECT DISTINCT + 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-5899
SELECT DISTINCT + 62 DIV col0 col1 FROM tab2 AS cor0
----
0
8
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5899
SELECT DISTINCT + 62 / col0 col1 FROM tab2 AS cor0
----
0
8
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 15 + - col2 * ( + 17 ) col2 FROM tab2 AS cor0
----
-427
-444
-631
query I rowsort
SELECT col1 * + col1 + col2 FROM tab2 cor0
----
327
3507
988
query I rowsort
SELECT DISTINCT + ( + cor0.col1 ) + - ( cor0.col2 ) * col2 AS col2 FROM tab2 AS cor0
----
-1427
-617
-698
query I rowsort
SELECT ALL - col0 * col0 + + col2 FROM tab1 AS cor0
----
-4039
-6304
45
onlyif mysql # use DIV operator for integer division
query I rowsort label-5904
SELECT ( col2 ) DIV 6 FROM tab1 AS cor0
----
16
9
9
skipif mysql # not compatible
query I rowsort label-5904
SELECT ( col2 ) / 6 FROM tab1 AS cor0
----
16
9
9
query I rowsort
SELECT + ( - tab2.col1 ) - col0 FROM tab2
----
-137
-38
-96
onlyif mysql # use DIV operator for integer division
query I rowsort label-5906
SELECT - cor0.col0 DIV cor0.col1 AS col2 FROM tab1 AS cor0
----
-6
-6
0
skipif mysql # not compatible
query I rowsort label-5906
SELECT - cor0.col0 / cor0.col1 AS col2 FROM tab1 AS cor0
----
-6
-6
0
query I rowsort
SELECT ALL col2 + - col0 * - 65 FROM tab2 AS cor0
----
482
5096
5173
query I rowsort
SELECT 79 * col1 * 62 AS col2 FROM tab2
----
151838
288982
83266
query I rowsort
SELECT DISTINCT - ( - cor0.col1 ) FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
10
13
26
skipif mysql # not compatible
query I rowsort
SELECT ALL - col2 * + CAST ( ( col0 ) AS REAL ) FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT + col2 * col1 + + 14 + + cor0.col1 FROM tab2 AS cor0
----
1607
677
882
onlyif mysql # use DIV operator for integer division
query I rowsort label-5912
SELECT DISTINCT - col1 DIV - col1 + ( + tab1.col0 ) + col0 AS col0 FROM tab1
----
129
161
7
skipif mysql # not compatible
query I rowsort label-5912
SELECT DISTINCT - col1 / - col1 + ( + tab1.col0 ) + col0 AS col0 FROM tab1
----
129
161
7
query I rowsort
SELECT col1 * + col1 * col2 AS col1 FROM tab1 AS cor0
----
16224
36504
5700
query I rowsort
SELECT + 17 * + col0 FROM tab2 AS cor0
----
119
1326
1343
query I rowsort
SELECT DISTINCT 31 * - col1 + col0 AS col1 FROM tab2 AS cor0
----
-1751
-448
-954
query I rowsort
SELECT - col0 + + col0 * - 29 FROM tab0 cor0
----
-1050
-2670
-720
query I rowsort
SELECT + + 81 * cor0.col2 AS col1 FROM tab2 AS cor0
----
2106
2187
3078
query I rowsort
SELECT + 65 + + col1 AS col0 FROM tab0
----
151
156
162
onlyif mysql # use DIV operator for integer division
query I rowsort label-5919
SELECT CAST( - col0 AS SIGNED ) DIV cor0.col1 col1 FROM tab1 AS cor0
----
-6
-6
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5919
SELECT CAST ( - col0 AS INTEGER ) / cor0.col1 col1 FROM tab1 AS cor0
----
-6
-6
0
query I rowsort
SELECT DISTINCT col2 + ( + 43 * - col0 ) FROM tab2
----
-274
-3328
-3359
query I rowsort
SELECT + ( - 17 ) + - col0 FROM tab1 cor0
----
-20
-81
-97
query I rowsort
SELECT + col0 * 83 + + col2 * + col0 AS col2 FROM tab1 AS cor0
----
14320
411
8960
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 44 col0 FROM tab0 cor0
----
44
44
44
query I rowsort
SELECT ALL - col1 + - col0 * + col2 AS col1 FROM tab0
----
-132
-7389
-878
query I rowsort
SELECT ALL - col0 + + 21 FROM tab1
----
-43
-59
18
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 col2 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892
query I rowsort
SELECT col1 * - col0 + tab1.col1 * col1 AS col0 FROM tab1
----
-540
-871
598
query I rowsort
SELECT ( + 37 ) * - col0 + col1 FROM tab2
----
-228
-2827
-2906
query I rowsort
SELECT ALL 93 AS col0 FROM tab0 AS cor0
----
93
93
93
query I rowsort
SELECT ALL col0 + ( col2 ) + 78 * + col0 FROM tab2 cor0
----
580
6188
6279
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 25 col1 FROM tab2 AS cor0
----
25
25
25
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5932
SELECT - CAST( NULL AS DECIMAL ) * - col0 AS col1 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5932
SELECT - CAST ( NULL AS REAL ) * - col0 AS col1 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT + 16 * col1 + - col0 FROM tab0 cor0
----
1352
1367
1517
query I rowsort
SELECT DISTINCT - - col0 + cor0.col2 - + ( - col0 ) FROM tab2 AS cor0
----
182
196
41
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col2 col1 FROM tab0, tab0 AS cor0
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8
query I rowsort
SELECT ALL + + col1 - col0 AS col0 FROM tab0 AS cor0
----
2
62
62
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5937
SELECT ALL + CAST( + cor0.col2 AS SIGNED ) AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17
skipif mysql # not compatible
query I rowsort label-5937
SELECT ALL + CAST ( + cor0.col2 AS INTEGER ) AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17
query I rowsort
SELECT 71 + - cor0.col1 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to a94c0d6b672eb2de20a40ea0950b147c
onlyif mysql # use DIV operator for integer division
query I rowsort label-5939
SELECT DISTINCT - col0 DIV + 45 AS col1 FROM tab1
----
-1
0
skipif mysql # not compatible
query I rowsort label-5939
SELECT DISTINCT - col0 / + 45 AS col1 FROM tab1
----
-1
0
query I rowsort
SELECT ALL 50 AS col1 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 314aace40e704c20a6be06204a329f80
query I rowsort
SELECT col1 + 66 * col1 AS col1 FROM tab2 AS cor0
----
1139
2077
3953
query I rowsort
SELECT + 43 + + cor0.col0 + col0 FROM tab1 AS cor0
----
171
203
49
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5943
SELECT + CAST( col0 AS SIGNED ) - - col0 AS col1 FROM tab1 AS cor0
----
128
160
6
skipif mysql # not compatible
query I rowsort label-5943
SELECT + CAST ( col0 AS INTEGER ) - - col0 AS col1 FROM tab1 AS cor0
----
128
160
6
onlyif mysql # use DIV operator for integer division
query I rowsort label-5944
SELECT - col0 * col1 + cor0.col2 DIV 93 FROM tab1 AS cor0
----
-1039
-640
-78
skipif mysql # not compatible
query I rowsort label-5944
SELECT - col0 * col1 + cor0.col2 / 93 FROM tab1 AS cor0
----
-1039
-640
-78
query I rowsort
SELECT 41 - - col2 * cor0.col2 AS col2 FROM tab0 AS cor0
----
1130
42
6765
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - tab1.col1 + col0 col2 FROM tab1
----
-23
54
67
onlyif mysql # use DIV operator for integer division
query I rowsort label-5947
SELECT col0 DIV 98 col2 FROM tab2
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5947
SELECT col0 / 98 col2 FROM tab2
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-5948
SELECT 21 * 9 - - col2 DIV - 44 AS col1 FROM tab1 AS cor0
----
187
188
188
skipif mysql # not compatible
query I rowsort label-5948
SELECT 21 * 9 - - col2 / - 44 AS col1 FROM tab1 AS cor0
----
187
188
188
onlyif mysql # use DIV operator for integer division
query I rowsort label-5949
SELECT 23 DIV - 50 + col0 AS col1 FROM tab2 AS cor0
----
7
78
79
skipif mysql # not compatible
query I rowsort label-5949
SELECT 23 / - 50 + col0 AS col1 FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT - + 26 + - ( - col0 ) * col2 AS col0 FROM tab1 cor0
----
136
3622
7654
query I rowsort
SELECT - 42 * ( cor0.col1 ) + + 74 FROM tab2 AS cor0
----
-1228
-2404
-640
query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col0 = col1
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7
onlyif mysql # use DIV operator for integer division
query I rowsort label-5953
SELECT DISTINCT cor0.col1 DIV - cor0.col2 FROM tab1 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-5953
SELECT DISTINCT cor0.col1 / - cor0.col2 FROM tab1 AS cor0
----
0
query I rowsort
SELECT ALL col2 + col1 * col2 * - tab1.col0 AS col1 FROM tab1 WHERE NOT col0 <= NULL
----
query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( col1 * col1 + col1 ) BETWEEN ( NULL ) AND ( NULL )
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + tab2.col1 * + col2 col0 FROM tab2
----
1534
646
837
query I rowsort
SELECT DISTINCT tab2.col0 AS col1 FROM tab2 WHERE NULL NOT IN ( + col2 )
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + - col1 col1 FROM tab1 WHERE NOT ( col1 * - col0 + col0 ) BETWEEN col2 AND col0 / col0 + col0 + + col2
----
28
47
83
query I rowsort
SELECT ALL col2 / - col0 + + col2 AS col1 FROM tab1 WHERE NOT NULL >= ( col0 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-5960
SELECT col0 + + col2 + - col0 DIV col2 AS col1 FROM tab1
----
120
176
57
skipif mysql # not compatible
query I rowsort label-5960
SELECT col0 + + col2 + - col0 / col2 AS col1 FROM tab1
----
120
176
57
query I rowsort
SELECT ALL + col1 - tab1.col0 AS col1 FROM tab1
----
-54
-67
23
query I rowsort
SELECT - tab1.col1 * + col2 * - col0 AS col0 FROM tab1
----
36480
4212
99840
onlyif mysql # use DIV operator for integer division
query I rowsort label-5963
SELECT + col1 DIV - col0 AS col2 FROM tab1 WHERE col1 + - col2 NOT IN ( + col2 - - col0 )
----
-8
0
0
skipif mysql # not compatible
query I rowsort label-5963
SELECT + col1 / - col0 AS col2 FROM tab1 WHERE col1 + - col2 NOT IN ( + col2 - - col0 )
----
-8
0
0
query I rowsort
SELECT + col1 - col1 * - col1 AS col2 FROM tab2 WHERE ( NULL ) < ( NULL )
----
query I rowsort
SELECT col0 + col0 + - col2 AS col2 FROM tab2
----
-13
120
130
query I rowsort
SELECT - col1 AS col0 FROM tab1 WHERE NOT ( col1 + + col0 + + col1 ) BETWEEN - col2 AND - col2 * col0
----
-10
-13
-26
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * + tab1.col2 col2 FROM tab1
----
2916
3249
9216
query I rowsort
SELECT DISTINCT - col0 + + col1 * col2 - cor0.col0 * + col0 AS col1 FROM tab0 AS cor0
----
-1163
-548
2238
query I rowsort
SELECT ALL - col0 + + col2 - col1 FROM tab1 AS cor0
----
-17
25
3
query I rowsort
SELECT - - col2 + col1 * col0 * + cor0.col0 FROM tab0 cor0
----
118826
49569
720893
query I rowsort
SELECT ALL + col2 - col2 * col0 AS col1 FROM tab0 AS cor0
----
-34
-7216
-759
query I rowsort
SELECT ALL col0 - cor0.col1 * cor0.col1 FROM tab1 AS cor0
----
-36
-673
-89
query I rowsort
SELECT DISTINCT + col2 * + col1 + col1 FROM tab1 cor0
----
1261
1430
580
onlyif mysql # use DIV operator for integer division
query I rowsort label-5974
SELECT + col2 DIV col2 + col1 + + col2 FROM tab1
----
110
68
81
skipif mysql # not compatible
query I rowsort label-5974
SELECT + col2 / col2 + col1 + + col2 FROM tab1
----
110
68
81
query I rowsort
SELECT cor0.col2 AS col0 FROM tab2, tab2 AS cor0 CROSS JOIN tab0
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5
query I rowsort
SELECT DISTINCT tab2.col1 - + tab2.col1 * + tab2.col1 AS col0 FROM tab2
----
-272
-3422
-930
query I rowsort
SELECT col0 + - col1 + tab1.col1 * col1 AS col1 FROM tab1
----
154
236
653
query I rowsort
SELECT DISTINCT col1 * + col1 - col1 AS col0 FROM tab2
----
272
3422
930
query I rowsort
SELECT DISTINCT col0 * cor0.col2 * col2 + + col0 * col2 AS col0 FROM tab1 cor0
----
211584
744960
8910
query I rowsort
SELECT - - cor0.col1 - + col2 AS col1 FROM tab1 AS cor0
----
-28
-47
-83
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + - col1 col1 FROM tab1 WHERE NOT NULL NOT IN ( col0 + col1 * tab1.col0 - col2 )
----
query I rowsort
SELECT ALL + tab1.col2 - col0 FROM tab1
----
-7
16
51
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 98 col1 FROM tab0
----
-98
-98
-98
onlyif mysql # use DIV operator for integer division
query I rowsort label-5984
SELECT col0 DIV - 35 + col0 AS col1 FROM tab0 AS cor0
----
24
34
87
skipif mysql # not compatible
query I rowsort label-5984
SELECT col0 / - 35 + col0 AS col1 FROM tab0 AS cor0
----
24
34
87
query I rowsort
SELECT - 14 * col2 FROM tab2 AS cor0
----
-364
-378
-532
query I rowsort
SELECT ALL + + ( cor0.col0 ) * 13 AS col1 FROM tab1 AS cor0
----
1040
39
832
query I rowsort
SELECT ( - cor1.col1 ) AS col1 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to d4c673b7444eb9927ec63175b43c6b84
onlyif mysql # use DIV operator for integer division
query I rowsort label-5988
SELECT - col1 DIV ( + 98 ) + col2 * cor0.col1 FROM tab1 AS cor0
----
1248
1404
570
skipif mysql # not compatible
query I rowsort label-5988
SELECT - col1 / ( + 98 ) + col2 * cor0.col1 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT DISTINCT - col1 + 61 FROM tab0 AS cor0
----
-25
-30
-36
query I rowsort
SELECT DISTINCT + + col2 * + cor0.col0 + + col0 * + col0 AS col0 FROM tab0 cor0
----
1260
1368
15219
query I rowsort
SELECT col0 * ( col2 ) + + col1 * - col0 AS col2 FROM tab0 AS cor0
----
-1272
-3360
-801
query I rowsort
SELECT DISTINCT - col0 * cor0.col0 * + ( col2 ) FROM tab1 AS cor0
----
-233472
-486
-614400
onlyif mysql # use DIV operator for integer division
query I rowsort label-5993
SELECT tab2.col1 DIV CAST( col0 AS SIGNED ) FROM tab2
----
0
0
4
skipif mysql # not compatible
query I rowsort label-5993
SELECT tab2.col1 / CAST ( col0 AS INTEGER ) FROM tab2
----
0
0
4
query I rowsort
SELECT ALL - 68 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 5febf382d36d6e0191889c41b928786f
query I rowsort
SELECT col1 - cor0.col1 * col0 FROM tab0 AS cor0
----
-1978
-3298
-8008
query I rowsort
SELECT col1 * + ( + ( - col2 ) ) FROM tab0 cor0
----
-2838
-7462
-97
query I rowsort
SELECT + col2 * 94 - - 26 FROM tab2 AS cor0
----
2470
2564
3598
query I rowsort
SELECT ALL - col0 * ( - col2 ) + col1 AS col1 FROM tab0 AS cor0
----
132
7389
878
query I rowsort
SELECT ALL - + col1 + cor0.col2 * - col2 FROM tab0 AS cor0
----
-1175
-6815
-98
query I rowsort
SELECT ALL - col1 + col1 * col1 AS col0 FROM tab2 cor0
----
272
3422
930
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6001
SELECT DISTINCT + + cor0.col2 - - CAST( NULL AS SIGNED ) / col1 AS col1 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-6001
SELECT DISTINCT + + cor0.col2 - - CAST ( NULL AS INTEGER ) / col1 AS col1 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT - col2 + 63 AS col2 FROM tab0 cor0
----
-19
30
62
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL NOT IN ( col0 * - col2 - col2 )
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + col2 * col0 col1 FROM tab0
----
132
7389
878
query I rowsort
SELECT DISTINCT - col0 - col0 * - col0 FROM tab2
----
42
6006
6162
query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( NULL ) NOT IN ( - col2 + + col2 + + col0 )
----
query III rowsort
SELECT * FROM tab2 WHERE NULL BETWEEN + col0 AND + col0
----
query I rowsort
SELECT - tab2.col2 * col0 + - col2 AS col1 FROM tab2
----
-2054
-216
-3040
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 col0 FROM tab1 WHERE NOT - col0 / col2 NOT IN ( tab1.col2 )
----
query I rowsort
SELECT col2 FROM tab2 WHERE NULL >= - col2
----
query I rowsort
SELECT ALL - 92 + - col2 - - ( col0 ) AS col1 FROM tab2 AS cor0
----
-112
-40
-51
query I rowsort
SELECT DISTINCT + + 4 * - col2 AS col0 FROM tab2 AS cor0
----
-104
-108
-152
onlyif mysql # use DIV operator for integer division
query I rowsort label-6013
SELECT ALL - - 70 DIV col0 FROM tab1 cor0
----
0
1
23
skipif mysql # not compatible
query I rowsort label-6013
SELECT ALL - - 70 / col0 FROM tab1 cor0
----
0
1
23
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 9 col1 FROM tab0 AS cor0
----
9
9
9
query III rowsort
SELECT * FROM tab0 WHERE NOT col2 * + col0 < ( - col1 * col1 )
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7
query I rowsort
SELECT ALL - tab0.col0 - col0 AS col2 FROM tab0
----
-178
-48
-70
query I rowsort
SELECT col0 - col1 * - col2 * tab1.col0 FROM tab1
----
36544
4215
99920
query I rowsort
SELECT DISTINCT + col1 AS col0 FROM tab0 WHERE NOT NULL < NULL
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-6019
SELECT + col1 DIV + 85 + + col0 col0 FROM tab0
----
25
36
90
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6019
SELECT + col1 / + 85 + + col0 col0 FROM tab0
----
25
36
90
onlyif mysql # use DIV operator for integer division
query I rowsort label-6020
SELECT tab1.col2 DIV 82 + + col2 * col2 AS col2 FROM tab1
----
2916
3249
9217
skipif mysql # not compatible
query I rowsort label-6020
SELECT tab1.col2 / 82 + + col2 * col2 AS col2 FROM tab1
----
2916
3249
9217
query I rowsort
SELECT ALL + tab1.col0 * - ( 5 ) * - col1 FROM tab1
----
3200
390
5200
query I rowsort
SELECT DISTINCT 2 * - 50 FROM tab2, tab0 AS cor0
----
-100
query I rowsort
SELECT + col0 * 55 * - col1 AS col0 FROM tab1
----
-35200
-4290
-57200
query I rowsort
SELECT ALL 71 + - 88 FROM tab0
----
-17
-17
-17
query I rowsort
SELECT ALL - + col1 * + 3 - col1 AS col0 FROM tab1 cor0
----
-104
-40
-52
query I rowsort
SELECT - col0 * - col0 * 9 AS col0 FROM tab2
----
441
54756
56169
query I rowsort
SELECT ALL - col1 + 78 AS col1 FROM tab1 AS cor0
----
52
65
68
query I rowsort
SELECT - - col0 + 68 AS col1 FROM tab0 AS cor0
----
103
157
92
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6029
SELECT - + CAST( + 28 AS SIGNED ) FROM tab1 AS cor0
----
-28
-28
-28
skipif mysql # not compatible
query I rowsort label-6029
SELECT - + CAST ( + 28 AS INTEGER ) FROM tab1 AS cor0
----
-28
-28
-28
query I rowsort
SELECT DISTINCT - - 50 + col1 AS col1 FROM tab0 AS cor0
----
136
141
147
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6031
SELECT - 85 * + col2 + col1 * col0 + + col0 * + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6031
SELECT - 85 * + col2 + col1 * col0 + + col0 * + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + - col2 + + col1 AS col0 FROM tab0 cor0
----
53
9
96
query I rowsort
SELECT 17 + + col2 + + ( - 62 * col1 + - col1 ) AS col0 FROM tab1 AS cor0
----
-1567
-556
-706
query I rowsort
SELECT DISTINCT + 67 * + col0 AS col1 FROM tab0 AS cor0
----
1608
2345
5963
query I rowsort
SELECT ( - col0 ) * + cor0.col2 + col1 AS col0 FROM tab0 AS cor0
----
-706
-7207
62
query I rowsort
SELECT cor0.col0 * + cor0.col2 * + 46 AS col1 FROM tab0 AS cor0
----
1610
335708
36432
query I rowsort
SELECT - + cor0.col0 * col1 AS col1 FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT - + col0 * col1 * + col1 FROM tab0 AS cor0
----
-177504
-329315
-737009
query I rowsort
SELECT col2 * + col1 - + 79 FROM tab1 AS cor0
----
1169
1325
491
query I rowsort
SELECT - 61 - cor0.col1 * 81 FROM tab0 cor0
----
-7027
-7432
-7918
onlyif mysql # use DIV operator for integer division
query I rowsort label-6041
SELECT + 87 DIV col1 + - cor0.col1 FROM tab2 cor0
----
-12
-29
-58
skipif mysql # not compatible
query I rowsort label-6041
SELECT + 87 / col1 + - cor0.col1 FROM tab2 cor0
----
-12
-29
-58
query I rowsort
SELECT - + col1 * col2 + - col2 + 2 AS col1 FROM tab0 AS cor0
----
-2869
-7542
-96
query I rowsort
SELECT - - 12 * col0 + col2 FROM tab2 cor0
----
111
962
986
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + - ( + cor0.col2 ) + - col1 col1 FROM tab1 AS cor0
----
-10
-13
-26
query I rowsort
SELECT + - col2 + - col0 + col2 FROM tab0 AS cor0
----
-24
-35
-89
query I rowsort
SELECT ALL + 30 FROM tab0, tab0 AS cor0
----
9 values hashing to da5de0c411a2c0f445400f1b63ea9f89
query I rowsort
SELECT col1 * - cor0.col1 * col2 FROM tab1 AS cor0
----
-16224
-36504
-5700
query I rowsort
SELECT col2 * + col2 + + cor0.col1 + - cor0.col2 FROM tab1 cor0
----
2888
3202
9133
query I rowsort
SELECT col2 + 33 * - cor0.col0 FROM tab1 cor0
----
-2055
-2544
-45
query I rowsort
SELECT DISTINCT + - col1 + - ( + cor0.col2 ) FROM tab0 AS cor0
----
-119
-173
-98
query I rowsort
SELECT ALL + col2 + - 57 AS col0 FROM tab1 AS cor0
----
-3
0
39
query I rowsort
SELECT + col1 + 0 AS col0 FROM tab2 AS cor0
----
17
31
59
query I rowsort
SELECT + col0 * col2 * - col0 - - col0 * 47 AS col2 FROM tab0 AS cor0
----
-17880
-645339
420
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6054
SELECT + cor0.col0 * CAST( - col1 AS SIGNED ) + + col0 FROM tab2 cor0
----
-1264
-210
-4524
skipif mysql # not compatible
query I rowsort label-6054
SELECT + cor0.col0 * CAST ( - col1 AS INTEGER ) + + col0 FROM tab2 cor0
----
-1264
-210
-4524
query I rowsort
SELECT + - col2 + col0 - - col1 FROM tab1 AS cor0
----
-25
-3
17
query I rowsort
SELECT DISTINCT - col1 * - col0 * col1 FROM tab2 AS cor0
----
22831
271518
6727
query I rowsort
SELECT + col1 * - ( + col2 ) AS col0 FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT - 62 FROM tab2, tab1, tab1 cor0
----
27 values hashing to d2579f9395350eda865ff3a2d38a74f6
query I rowsort
SELECT - col1 * - col1 * 65 AS col1 FROM tab2
----
18785
226265
62465
query I rowsort
SELECT 55 * - col0 AS col2 FROM tab2
----
-385
-4290
-4345
query I rowsort
SELECT ALL - + col1 * - 44 FROM tab1 cor0
----
1144
440
572
query I rowsort
SELECT - - col1 - cor0.col2 * + col1 AS col2 FROM tab1 AS cor0
----
-1235
-1378
-560
query I rowsort
SELECT DISTINCT + col0 * col2 * - 49 AS col2 FROM tab0 AS cor0
----
-1715
-357602
-38808
query I rowsort
SELECT - + col0 * + col1 + - col0 + cor0.col1 AS col0 FROM tab2 AS cor0
----
-1405
-193
-4621
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6065
SELECT DISTINCT - - CAST( 23 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
23
skipif mysql # not compatible
query I rowsort label-6065
SELECT DISTINCT - - CAST ( 23 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
23
query I rowsort
SELECT DISTINCT + col0 + + col0 * col1 * - col1 - col1 AS col2 FROM tab2
----
-22769
-271499
-6751
query I rowsort
SELECT ALL - col1 * col1 * + 88 FROM tab2 cor0
----
-25432
-306328
-84568
query I rowsort
SELECT DISTINCT 24 - + col2 FROM tab1 AS cor0
----
-30
-33
-72
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6069
SELECT CAST( + col2 AS SIGNED ) AS col2 FROM tab2
----
26
27
38
skipif mysql # not compatible
query I rowsort label-6069
SELECT CAST ( + col2 AS INTEGER ) AS col2 FROM tab2
----
26
27
38
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor1.col0 col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870
query I rowsort
SELECT DISTINCT + 97 * col0 - tab2.col2 FROM tab2
----
652
7540
7625
query I rowsort
SELECT DISTINCT 8 * col1 FROM tab0 AS cor0
----
688
728
776
query I rowsort
SELECT DISTINCT - + 15 - - col1 * + col2 * + ( + col0 ) AS col0 FROM tab1 AS cor0
----
36465
4197
99825
query I rowsort
SELECT DISTINCT - 48 * - 73 AS col2 FROM tab0 AS cor0
----
3504
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6075
SELECT - CAST( NULL AS DECIMAL ) * col0 FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6075
SELECT - CAST ( NULL AS REAL ) * col0 FROM tab2 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL cor0.col0 + tab0.col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 13a45e994f0549dd29e84599a57026d0
onlyif mysql # use DIV operator for integer division
query I rowsort label-6077
SELECT DISTINCT - - 39 DIV + col0 FROM tab0 AS cor0
----
0
1
skipif mysql # not compatible
query I rowsort label-6077
SELECT DISTINCT - - 39 / + col0 FROM tab0 AS cor0
----
0
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 - 23 * col0 col0 FROM tab1 AS cor0
----
-1536
-1920
-72
query I rowsort
SELECT - - 11 AS col1 FROM tab2 cor0
----
11
11
11
query I rowsort
SELECT - ( + ( + col2 ) ) AS col2 FROM tab1 AS cor0
----
-54
-57
-96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 66 + col2 col1 FROM tab2 AS cor0
----
-28
-39
-40
query I rowsort
SELECT DISTINCT + cor0.col2 * - col0 + + 44 * + ( + col1 ) + - ( - 25 ) AS col1 FROM tab1 AS cor0
----
-3183
-7083
1007
onlyif mysql # use DIV operator for integer division
query I rowsort label-6083
SELECT - + col1 + - col2 + col1 DIV col1 FROM tab1 AS cor0
----
-108
-66
-79
skipif mysql # not compatible
query I rowsort label-6083
SELECT - + col1 + - col2 + col1 / col1 FROM tab1 AS cor0
----
-108
-66
-79
query I rowsort
SELECT - ( + 58 ) FROM tab0, tab0 AS cor0
----
9 values hashing to de0811e670e75d2aeeb657e32bddb0c0
query I rowsort
SELECT tab0.col1 + - col1 + - col1 FROM tab0
----
-86
-91
-97
onlyif mysql # use DIV operator for integer division
query I rowsort label-6086
SELECT DISTINCT 91 + - col0 DIV - 79 col2 FROM tab2 AS cor0
----
91
92
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6086
SELECT DISTINCT 91 + - col0 / - 79 col2 FROM tab2 AS cor0
----
91
92
query I rowsort
SELECT DISTINCT col2 + col2 + - col1 FROM tab0 AS cor0
----
-20
-95
73
query I rowsort
SELECT ALL + - col2 + col1 + cor0.col1 FROM tab1 AS cor0
----
-2
-37
-70
onlyif mysql # use DIV operator for integer division
query I rowsort label-6089
SELECT col2 DIV 3 AS col1 FROM tab2 cor0
----
12
8
9
skipif mysql # not compatible
query I rowsort label-6089
SELECT col2 / 3 AS col1 FROM tab2 cor0
----
12
8
9
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6090
SELECT ALL + CAST( NULL AS SIGNED ) col0 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6090
SELECT ALL + CAST ( NULL AS INTEGER ) col0 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT ALL - - col1 * 31 * - col0 FROM tab2 AS cor0
----
-142662
-41633
-6727
query I rowsort
SELECT DISTINCT + + col1 + cor0.col1 * col2 FROM tab1 cor0
----
1261
1430
580
query I rowsort
SELECT ALL + ( col2 ) + col2 * ( col1 ) FROM tab0 AS cor0
----
2871
7544
98
query I rowsort
SELECT + col1 + + ( - col2 ) AS col0 FROM tab1 AS cor0
----
-28
-47
-83
query I rowsort
SELECT ALL - + 49 AS col0 FROM tab2 AS cor0
----
-49
-49
-49
query I rowsort
SELECT ALL - 67 + - col2 * cor0.col1 AS col1 FROM tab1 AS cor0
----
-1315
-1471
-637
onlyif mysql # use DIV operator for integer division
query I rowsort label-6097
SELECT ALL + + col2 * col1 DIV - col2 FROM tab0 AS cor0
----
-86
-91
-97
skipif mysql # not compatible
query I rowsort label-6097
SELECT ALL + + col2 * col1 / - col2 FROM tab0 AS cor0
----
-86
-91
-97
query I rowsort
SELECT 5 + col1 * col2 FROM tab2 cor0
----
1539
651
842
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6099
SELECT + CAST( NULL AS SIGNED ) * + col2 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6099
SELECT + CAST ( NULL AS INTEGER ) * + col2 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT col1 * - tab0.col0 + - 19 AS col2 FROM tab0
----
-2083
-3414
-8118
query I rowsort
SELECT DISTINCT + tab1.col0 * + col1 AS col1 FROM tab1
----
1040
640
78
query I rowsort
SELECT 27 + 57 AS col2 FROM tab1, tab0 cor0
----
9 values hashing to cadd876c26338fc58b9297e74fc324d8
query I rowsort
SELECT col0 + ( - col2 ) * - col2 FROM tab0
----
1113
36
6813
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6104
SELECT ALL col1 * + CAST( - col0 AS SIGNED ) FROM tab0
----
-2064
-3395
-8099
skipif mysql # not compatible
query I rowsort label-6104
SELECT ALL col1 * + CAST ( - col0 AS INTEGER ) FROM tab0
----
-2064
-3395
-8099
query I rowsort
SELECT DISTINCT + cor1.col1 * - cor1.col0 AS col0 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
-1040
-640
-78
query I rowsort
SELECT + col1 - + col0 AS col0 FROM tab0
----
2
62
62
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6107
SELECT - tab0.col1 + - CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6107
SELECT - tab0.col1 + - CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + 86 FROM tab2, tab1 AS cor0
----
9 values hashing to 2d8c3a0d19ea51447f83cd18b49fee19
query I rowsort
SELECT DISTINCT - 41 AS col0 FROM tab2, tab2 AS cor0
----
-41
query I rowsort
SELECT ALL + + 21 * col1 AS col2 FROM tab0 AS cor0
----
1806
1911
2037
query I rowsort
SELECT DISTINCT ( + col0 ) * - col2 FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT DISTINCT + col2 + - col1 * - col1 FROM tab2 AS cor0
----
327
3507
988
query I rowsort
SELECT DISTINCT - col2 + 12 FROM tab2 AS cor0
----
-14
-15
-26
query I rowsort
SELECT - - col2 + - col1 * - col2 * + col2 FROM tab0 AS cor0
----
611966
93687
98
query I rowsort
SELECT DISTINCT + 21 + - col2 FROM tab2 AS cor0
----
-17
-5
-6
query I rowsort
SELECT ALL + cor0.col1 + 75 AS col0 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to eb385be89b87093149baf37dbdd855cb
query I rowsort
SELECT DISTINCT - ( col0 ) * - col0 AS col1 FROM tab1
----
4096
6400
9
query I rowsort
SELECT ALL - col2 + - tab1.col0 * tab1.col1 FROM tab1
----
-1136
-132
-697
onlyif mysql # use DIV operator for integer division
query I rowsort label-6119
SELECT DISTINCT + 41 * tab2.col1 + - ( + 51 + col0 ) DIV - col1 AS col1 FROM tab2
----
1272
2421
704
skipif mysql # not compatible
query I rowsort label-6119
SELECT DISTINCT + 41 * tab2.col1 + - ( + 51 + col0 ) / - col1 AS col1 FROM tab2
----
1272
2421
704
query I rowsort
SELECT + col2 * 24 + ( col1 + - 91 ) * col1 FROM tab0 AS cor0
----
1968
362
606
query I rowsort
SELECT 75 * col1 * - col0 AS col2 FROM tab1
----
-48000
-5850
-78000
query I rowsort
SELECT ( + col0 ) + ( col0 ) AS col0 FROM tab2
----
14
156
158
query I rowsort
SELECT col0 * + col1 + + col1 * + col2 + - tab1.col1 FROM tab1
----
1200
1456
2275
query I rowsort
SELECT ALL - - col2 * col2 - 79 FROM tab2 AS cor0
----
1365
597
650
query I rowsort
SELECT ALL + + col1 * - col1 + col1 + cor0.col2 FROM tab1 AS cor0
----
-33
-596
-60
onlyif mysql # use DIV operator for integer division
query I rowsort label-6126
SELECT ALL col1 + + col0 DIV + 26 FROM tab2 AS cor0
----
20
31
62
skipif mysql # not compatible
query I rowsort label-6126
SELECT ALL col1 + + col0 / + 26 FROM tab2 AS cor0
----
20
31
62
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6127
SELECT + col0 + + CAST( col0 AS SIGNED ) * - col0 FROM tab2 AS cor0
----
-42
-6006
-6162
skipif mysql # not compatible
query I rowsort label-6127
SELECT + col0 + + CAST ( col0 AS INTEGER ) * - col0 FROM tab2 AS cor0
----
-42
-6006
-6162
onlyif mysql # use DIV operator for integer division
query I rowsort label-6128
SELECT ALL - - col2 + + 4 DIV + col2 col0 FROM tab1 cor0
----
54
57
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6128
SELECT ALL - - col2 + + 4 / + col2 col0 FROM tab1 cor0
----
54
57
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col2 + 9 col1 FROM tab1 AS cor0
----
-45
-48
-87
query I rowsort
SELECT DISTINCT - col0 * - 99 FROM tab2 AS cor0
----
693
7722
7821
query I rowsort
SELECT col1 + ( cor0.col0 ) AS col1 FROM tab1 AS cor0
----
29
74
93
query I rowsort
SELECT + + col1 * + cor0.col2 AS col2 FROM tab1 AS cor0
----
1248
1404
570
onlyif mysql # use DIV operator for integer division
query I rowsort label-6133
SELECT + col1 DIV + col2 + col1 AS col0 FROM tab1
----
10
13
26
skipif mysql # not compatible
query I rowsort label-6133
SELECT + col1 / + col2 + col1 AS col0 FROM tab1
----
10
13
26
query I rowsort
SELECT - col0 * + tab0.col1 AS col2 FROM tab0
----
-2064
-3395
-8099
onlyif mysql # use DIV operator for integer division
query I rowsort label-6135
SELECT tab0.col0 DIV + ( col0 ) AS col2 FROM tab0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-6135
SELECT tab0.col0 / + ( col0 ) AS col2 FROM tab0
----
1
1
1
query I rowsort
SELECT - col0 * col2 + tab1.col2 * 7 + + 23 AS col2 FROM tab1
----
-3226
-6985
239
query I rowsort
SELECT ALL 37 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to a10b03e72860b949bdff53827700a9a8
query I rowsort
SELECT 1 + 9 FROM tab0, tab1 AS cor0, tab1 cor1
----
27 values hashing to 0fe3e45a9ecd49584c2ab442100d5176
query I rowsort
SELECT + col2 - - col1 * - col2 AS col1 FROM tab1 AS cor0
----
-1152
-1350
-513
onlyif mysql # use DIV operator for integer division
query I rowsort label-6140
SELECT - col1 DIV + cor0.col1 AS col0 FROM tab0 cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-6140
SELECT - col1 / + cor0.col1 AS col0 FROM tab0 cor0
----
-1
-1
-1
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2, tab1 AS cor1, tab1 cor2, tab2 cor3
----
3645 values hashing to 944e54872ec2718f5c1c2710e1806e36
query I rowsort
SELECT - 7 FROM tab0, tab0 AS cor0
----
9 values hashing to ba940cd66e21e94e95aada5f28e1faf5
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6143
SELECT ALL CAST( NULL AS SIGNED ) FROM tab0 AS cor0 CROSS JOIN tab1, tab0 AS cor1, tab0 AS cor2
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c
skipif mysql # not compatible
query I rowsort label-6143
SELECT ALL CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 CROSS JOIN tab1, tab0 AS cor1, tab0 AS cor2
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6144
SELECT ALL - col1 * CAST( + 39 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-3354
-3549
-3783
skipif mysql # not compatible
query I rowsort label-6144
SELECT ALL - col1 * CAST ( + 39 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-3354
-3549
-3783
query I rowsort
SELECT ALL col1 * + 94 FROM tab0 cor0
----
8084
8554
9118
query I rowsort
SELECT col0 * + ( 20 ) FROM tab0 AS cor0
----
1780
480
700
query I rowsort
SELECT + - cor0.col1 * ( col2 ) * col2 AS col1 FROM tab2 AS cor0
----
-22599
-24548
-39884
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6148
SELECT DISTINCT - col1 * CAST( NULL AS SIGNED ) - - 73 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-6148
SELECT DISTINCT - col1 * CAST ( NULL AS INTEGER ) - - 73 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT ALL + col2 + - 34 FROM tab1 AS cor0
----
20
23
62
query I rowsort
SELECT - 18 + - 96 - - col2 FROM tab1 cor0
----
-18
-57
-60
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6151
SELECT ALL + CAST( col1 AS SIGNED ) - + col0 AS col1 FROM tab0 AS cor0
----
2
62
62
skipif mysql # not compatible
query I rowsort label-6151
SELECT ALL + CAST ( col1 AS INTEGER ) - + col0 AS col1 FROM tab0 AS cor0
----
2
62
62
onlyif mysql # use DIV operator for integer division
query I rowsort label-6152
SELECT ALL + ( + col1 ) - col2 * - col1 DIV - ( + col1 ) FROM tab1 AS cor0
----
-28
-47
-83
skipif mysql # not compatible
query I rowsort label-6152
SELECT ALL + ( + col1 ) - col2 * - col1 / - ( + col1 ) FROM tab1 AS cor0
----
-28
-47
-83
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6153
SELECT - ( col2 ) * col2 - - CAST( - col0 AS SIGNED ) FROM tab1
----
-2919
-3313
-9296
skipif mysql # not compatible
query I rowsort label-6153
SELECT - ( col2 ) * col2 - - CAST ( - col0 AS INTEGER ) FROM tab1
----
-2919
-3313
-9296
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6154
SELECT - + ( ( cor0.col0 ) ) * - CAST( NULL AS SIGNED ) * - 69 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6154
SELECT - + ( ( cor0.col0 ) ) * - CAST ( NULL AS INTEGER ) * - 69 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + 11 * - col0 AS col0 FROM tab2 AS cor0
----
-77
-858
-869
query I rowsort
SELECT DISTINCT 54 AS col1 FROM tab2 AS cor0
----
54
query I rowsort
SELECT - 69 + col1 * col0 FROM tab1 AS cor0
----
571
9
971
query I rowsort
SELECT ALL + 47 * - col1 AS col0 FROM tab1 AS cor0
----
-1222
-470
-611
query I rowsort
SELECT 86 + - 4 * - cor0.col2 FROM tab2 AS cor0
----
190
194
238
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6160
SELECT - + ( cor0.col2 ) / CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6160
SELECT - + ( cor0.col2 ) / CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT 90 * - col0 AS col1 FROM tab1 cor0
----
-270
-5760
-7200
onlyif mysql # use DIV operator for integer division
query I rowsort label-6162
SELECT DISTINCT - + 83 DIV cor0.col0 FROM tab0 cor0
----
-2
-3
0
skipif mysql # not compatible
query I rowsort label-6162
SELECT DISTINCT - + 83 / cor0.col0 FROM tab0 cor0
----
-2
-3
0
query I rowsort
SELECT ALL + 25 * col2 * col0 FROM tab0 AS cor0
----
182450
19800
875
query I rowsort
SELECT DISTINCT - + cor0.col2 FROM tab0, tab1 AS cor0
----
-54
-57
-96
query I rowsort
SELECT ALL + - 20 AS col1 FROM tab2 AS cor0
----
-20
-20
-20
query I rowsort
SELECT - 44 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 07457d9e571e036a9a3a0f5a5a2e1ef2
query I rowsort
SELECT cor1.col2 + + tab0.col1 FROM tab0, tab1 cor0, tab2 AS cor1
----
27 values hashing to 23816fef3fc5905595dcd2fa002944d9
onlyif mysql # use DIV operator for integer division
query I rowsort label-6168
SELECT DISTINCT + col0 + + col0 * col2 DIV col1 AS col1 FROM tab2 AS cor0
----
112
13
255
skipif mysql # not compatible
query I rowsort label-6168
SELECT DISTINCT + col0 + + col0 * col2 / col1 AS col1 FROM tab2 AS cor0
----
112
13
255
query I rowsort
SELECT + + 0 * ( - col0 ) FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT + + 37 AS col2 FROM tab0 AS cor0
----
37
query I rowsort
SELECT 80 * col2 AS col0 FROM tab2 cor0
----
2080
2160
3040
query I rowsort
SELECT + 54 AS col1 FROM tab0, tab2 cor0, tab1 cor1
----
27 values hashing to 81150d59d6c3fc48b4ef5a4a5495bc7a
query I rowsort
SELECT DISTINCT + col0 * - 56 + col0 + col1 * col2 FROM tab1
----
-2950
-3152
1239
query I rowsort
SELECT ALL col2 * + 79 AS col2 FROM tab2
----
2054
2133
3002
query I rowsort
SELECT DISTINCT - col2 * 71 * + col0 FROM tab1
----
-11502
-259008
-545280
query I rowsort
SELECT DISTINCT - col1 + col0 - - col2 FROM tab1 AS cor0
----
111
163
31
query I rowsort
SELECT + - col0 + - 1 * + cor0.col0 FROM tab0 AS cor0
----
-178
-48
-70
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col0 * ( col2 ) - + col2 col1 FROM tab2 AS cor0
----
162
2002
2964
query I rowsort
SELECT DISTINCT - 71 AS col2 FROM tab2, tab2 AS cor0, tab2 cor1
----
-71
query I rowsort
SELECT ALL + col0 + ( + col0 + - col2 * col0 ) FROM tab1
----
-156
-3520
-7520
query I rowsort
SELECT DISTINCT - col2 + - col1 * - cor0.col1 FROM tab1 cor0
----
43
622
73
query I rowsort
SELECT DISTINCT cor1.col1 FROM tab0, tab2 AS cor0, tab2 AS cor1, tab1 cor2
----
17
31
59
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col1 + + col1 col1 FROM tab1 AS cor0
----
20
26
52
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6184
SELECT cor0.col2 * CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6184
SELECT cor0.col2 * CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + + cor0.col0 * ( - col2 ) + col2 * - col1 FROM tab2 AS cor0
----
-1026
-3562
-3648
query I rowsort
SELECT DISTINCT + cor1.col1 FROM tab0, tab0 AS cor0, tab1 AS cor1, tab0 AS cor2
----
10
13
26
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6187
SELECT DISTINCT - cor0.col0 + - CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-6187
SELECT DISTINCT - cor0.col0 + - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT + 29 - - 39 * + col0 FROM tab2
----
302
3071
3110
query I rowsort
SELECT 45 * - 6 FROM tab0
----
-270
-270
-270
query I rowsort
SELECT col2 * + ( - col2 ) + - ( + col0 ) + - col0 * 18 FROM tab1
----
-10736
-2973
-4465
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 col1 FROM tab2, tab1, tab2 AS cor0, tab1 AS cor1
----
81 values hashing to c4e6b1f1d28e731664a15a6f7cda4da9
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + col1 + tab1.col1 * col1 col1 FROM tab1
----
53
648
86
query I rowsort
SELECT + col1 * - tab0.col2 + col0 FROM tab0
----
-2814
-62
-7373
query I rowsort
SELECT ( col2 ) * + col0 AS col2 FROM tab2
----
189
2028
3002
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + + 13 col2 FROM tab0
----
-20
-69
12
query I rowsort
SELECT ALL - ( + 2 ) AS col1 FROM tab0 AS cor0
----
-2
-2
-2
query I rowsort
SELECT + ( 14 ) + col1 AS col0 FROM tab0 AS cor0
----
100
105
111
query I rowsort
SELECT DISTINCT 6 AS col2 FROM tab0, tab2 AS cor0, tab0 AS cor1, tab0 AS cor2
----
6
query I rowsort
SELECT ALL - + col1 + + col1 * 23 AS col0 FROM tab0 cor0
----
1892
2002
2134
query I rowsort
SELECT ALL + - 52 - - col2 * 64 * col1 AS col1 FROM tab0 cor0
----
181580
477516
6156
query I rowsort
SELECT DISTINCT + col1 * + col1 + - ( 36 ) + col2 AS col2 FROM tab0 AS cor0
----
7393
8327
9374
query I rowsort
SELECT DISTINCT 41 + col2 AS col0 FROM tab2 AS cor0
----
67
68
79
query I rowsort
SELECT DISTINCT 62 * col2 * - 17 AS col0 FROM tab0 cor0
----
-1054
-34782
-86428
query I rowsort
SELECT - ( + 3 ) * col1 AS col2 FROM tab0
----
-258
-273
-291
query I rowsort
SELECT ALL 97 + col0 AS col2 FROM tab1 AS cor0
----
100
161
177
query I rowsort
SELECT DISTINCT + 47 * - col0 FROM tab1 AS cor0
----
-141
-3008
-3760
query I rowsort
SELECT ALL - col0 * - col0 * 50 FROM tab0 AS cor0
----
28800
396050
61250
query I rowsort
SELECT DISTINCT - 35 * + col1 * - 76 + - col1 AS col2 FROM tab0 AS cor0
----
228674
241969
257923
query I rowsort
SELECT ALL - 60 + - col0 AS col2 FROM tab0 AS cor0
----
-149
-84
-95
query I rowsort
SELECT DISTINCT - + ( cor0.col0 ) + 15 * + cor0.col2 FROM tab0 cor0
----
-20
1141
471
query I rowsort
SELECT ALL 79 + - col1 AS col2 FROM tab2 AS cor0
----
20
48
62
query I rowsort
SELECT DISTINCT - 77 * - col0 * - cor0.col1 FROM tab2 AS cor0
----
-103411
-16709
-354354
query I rowsort
SELECT + + col0 * col0 * col2 FROM tab0 AS cor0
----
1225
19008
649522
query I rowsort
SELECT + 9 * col2 + col2 * col0 FROM tab2 cor0
----
2262
3344
432
query I rowsort
SELECT + col0 * 6 AS col1 FROM tab2 AS cor0
----
42
468
474
query I rowsort
SELECT col0 * ( + col1 * + cor0.col1 ) FROM tab2 AS cor0
----
22831
271518
6727
query I rowsort
SELECT - + col2 * + ( - col1 ) AS col2 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT ALL 76 * col2 AS col0 FROM tab1
----
4104
4332
7296
query I rowsort
SELECT ALL 20 * col2 * ( + ( col1 ) + + col0 * col2 ) FROM tab2
----
1085240
118800
2294440
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 35 + - col1 col2 FROM tab2
----
-24
18
4
query I rowsort
SELECT ALL 14 * + tab0.col1 * - col0 AS col2 FROM tab0
----
-113386
-28896
-47530
query I rowsort
SELECT ALL col1 + 7 AS col2 FROM tab2 AS cor0
----
24
38
66
query I rowsort
SELECT DISTINCT + col1 * - col0 - col2 FROM tab2 AS cor0
----
-1381
-244
-4628
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 33 col2 FROM tab2 AS cor0
----
33
33
33
query I rowsort
SELECT ALL col2 + - 3 FROM tab1 AS cor0
----
51
54
93
query I rowsort
SELECT + 2 * col0 + - col1 AS col0 FROM tab2 AS cor0
----
-17
141
97
query I rowsort
SELECT DISTINCT - col1 + 11 FROM tab0 AS cor0
----
-75
-80
-86
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + cor0.col0 + 46 col0 FROM tab2 AS cor0
----
124
125
53
query I rowsort
SELECT ALL + col2 + - col0 * col0 + - col0 * cor0.col2 FROM tab1 cor0
----
-117
-13984
-7687
onlyif mysql # use DIV operator for integer division
query I rowsort label-6230
SELECT col2 + + col1 * col2 DIV - col0 + 19 col2 FROM tab1
----
-395
100
68
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6230
SELECT col2 + + col1 * col2 / - col0 + 19 col2 FROM tab1
----
-395
100
68
query I rowsort
SELECT + col0 + col2 + - col0 FROM tab0
----
1
33
82
query I rowsort
SELECT col2 * + 41 - col2 * col0 FROM tab1
----
-1311
-3744
2052
query I rowsort
SELECT DISTINCT + col0 + - ( col0 + col2 ) AS col0 FROM tab1
----
-54
-57
-96
onlyif mysql # use DIV operator for integer division
query I rowsort label-6234
SELECT - col1 DIV col0 + col0 AS col1 FROM tab1 AS cor0
----
-5
64
80
skipif mysql # not compatible
query I rowsort label-6234
SELECT - col1 / col0 + col0 AS col1 FROM tab1 AS cor0
----
-5
64
80
query I rowsort
SELECT ALL - ( 41 ) FROM tab2 AS cor0
----
-41
-41
-41
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6236
SELECT col1 + - cor0.col2 * col2 / - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6236
SELECT col1 + - cor0.col2 * col2 / - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL 27 FROM tab1, tab1 AS cor0 CROSS JOIN tab2
----
27 values hashing to 1a3cef5c33b8f87ffeded378fd207753
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + + col0 col0 FROM tab2 AS cor0
----
137
38
96
query I rowsort
SELECT ALL + col1 + + col1 * col2 FROM tab1 AS cor0
----
1261
1430
580
query I rowsort
SELECT - - 9 * cor0.col0 + col2 + - col1 AS col1 FROM tab2 AS cor0
----
59
669
732
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 17 * - 66 col2 FROM tab1 cor0
----
1122
query I rowsort
SELECT DISTINCT + 20 + - col1 AS col0 FROM tab0 AS cor0
----
-66
-71
-77
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6243
SELECT ALL col0 * col1 + - col1 + CAST( - col2 + col0 AS SIGNED ) FROM tab2 AS cor0
----
1367
166
4595
skipif mysql # not compatible
query I rowsort label-6243
SELECT ALL col0 * col1 + - col1 + CAST ( - col2 + col0 AS INTEGER ) FROM tab2 AS cor0
----
1367
166
4595
query I rowsort
SELECT - col1 + - ( cor0.col2 ) AS col2 FROM tab1 AS cor0
----
-109
-67
-80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col0 col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a
onlyif mysql # use DIV operator for integer division
query I rowsort label-6246
SELECT + 96 * ( - col2 ) DIV col0 AS col1 FROM tab0 cor0
----
-132
-2
-88
skipif mysql # not compatible
query I rowsort label-6246
SELECT + 96 * ( - col2 ) / col0 AS col1 FROM tab0 cor0
----
-132
-2
-88
query I rowsort
SELECT + ( + col0 ) + + col2 AS col1 FROM tab1
----
121
176
57
query I rowsort
SELECT 42 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2, tab0 AS cor1, tab0 AS cor2, tab1 AS cor3
----
243 values hashing to 5986d1260195c81da622c6c47a971169
query I rowsort
SELECT ALL ( col0 ) * - col2 FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT + cor0.col0 AS col2 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f
query I rowsort
SELECT 0 * + col2 + - col1 AS col2 FROM tab2 AS cor0
----
-17
-31
-59
query I rowsort
SELECT - 95 AS col1 FROM tab1, tab0, tab0 AS cor0
----
27 values hashing to cf302b83f15b730fe35c19bdd9363c13
query I rowsort
SELECT ALL + col1 * - col2 * cor0.col1 FROM tab2 AS cor0
----
-10982
-25947
-90506
query I rowsort
SELECT col2 - col0 * - col1 FROM tab1 cor0
----
1136
132
697
query I rowsort
SELECT ALL - col1 * cor0.col2 + + col2 AS col0 FROM tab2 AS cor0
----
-1508
-608
-810
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * col2 * + cor0.col0 - + col1 * cor0.col0 col0 FROM tab1 AS cor0
----
35840
4134
98800
query I rowsort
SELECT ALL - 88 FROM tab1, tab0 AS cor0
----
9 values hashing to 467301f887614eb7beda22c561b0fad2
query I rowsort
SELECT ALL - 64 * - col2 AS col0 FROM tab0
----
2112
5248
64
query I rowsort
SELECT + 85 * col2 AS col1 FROM tab1
----
4590
4845
8160
onlyif mysql # use DIV operator for integer division
query I rowsort label-6260
SELECT ALL ( col0 ) DIV ( col2 + + col1 ) col0 FROM tab2
----
0
0
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6260
SELECT ALL ( col0 ) / ( col2 + + col1 ) col0 FROM tab2
----
0
0
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-6261
SELECT + col0 + + col2 DIV col1 FROM tab0 AS cor0
----
24
35
89
skipif mysql # not compatible
query I rowsort label-6261
SELECT + col0 + + col2 / col1 FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT ALL cor0.col1 + 11 AS col0 FROM tab1 AS cor0
----
21
24
37
query I rowsort
SELECT DISTINCT 27 + + col2 + - col0 FROM tab0 AS cor0
----
-7
20
36
query I rowsort
SELECT DISTINCT - - col1 * 22 AS col0 FROM tab2 AS cor0
----
1298
374
682
query I rowsort
SELECT DISTINCT - col1 * + col1 + + 44 * + tab1.col0 FROM tab1
----
-544
2716
3351
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab0.col2 * col0 + - ( col1 * - col1 ) col0 FROM tab0
----
15579
8188
9444
query I rowsort
SELECT + 81 + - col1 AS col0 FROM tab2 AS cor0
----
22
50
64
onlyif mysql # use DIV operator for integer division
query I rowsort label-6268
SELECT ALL 13 + - col1 DIV + col0 FROM tab2 AS cor0
----
13
13
9
skipif mysql # not compatible
query I rowsort label-6268
SELECT ALL 13 + - col1 / + col0 FROM tab2 AS cor0
----
13
13
9
query I rowsort
SELECT ALL + col1 * 49 + cor0.col1 FROM tab2 AS cor0
----
1550
2950
850
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6270
SELECT DISTINCT + CAST( col1 AS SIGNED ) * + col0 AS col2 FROM tab0 AS cor0
----
2064
3395
8099
skipif mysql # not compatible
query I rowsort label-6270
SELECT DISTINCT + CAST ( col1 AS INTEGER ) * + col0 AS col2 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT ALL + ( 75 ) * + col2 + col1 * - 8 FROM tab2 AS cor0
----
1478
1777
2714
query I rowsort
SELECT DISTINCT + col0 * + cor0.col1 * col1 FROM tab2 AS cor0
----
22831
271518
6727
query I rowsort
SELECT - - 19 * col0 AS col2 FROM tab0 AS cor0
----
1691
456
665
query I rowsort
SELECT ALL - + ( + 46 ) FROM tab2 AS cor0
----
-46
-46
-46
query I rowsort
SELECT ALL + - ( + col0 ) * + col0 AS col1 FROM tab0 AS cor0
----
-1225
-576
-7921
query I rowsort
SELECT DISTINCT + ( 38 ) FROM tab1 AS cor0
----
38
query I rowsort
SELECT + ( + col0 + + col2 ) * col1 FROM tab0
----
15561
3492
4902
query I rowsort
SELECT + - 40 * col0 + 59 AS col2 FROM tab0 AS cor0
----
-1341
-3501
-901
query I rowsort
SELECT + col0 * col1 + + cor0.col1 FROM tab0 AS cor0
----
2150
3492
8190
query I rowsort
SELECT - + 75 + + col2 FROM tab2 AS cor0
----
-37
-48
-49
query I rowsort
SELECT + 53 + col0 FROM tab0 AS cor0
----
142
77
88
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6282
SELECT DISTINCT - col0 - + CAST( NULL AS SIGNED ) * + col1 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-6282
SELECT DISTINCT - col0 - + CAST ( NULL AS INTEGER ) * + col1 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT - col0 * col0 + + cor0.col1 AS col1 FROM tab1 AS cor0
----
-4086
-6387
17
query I rowsort
SELECT ALL + col0 + - 52 * - 13 AS col1 FROM tab2 cor0
----
683
754
755
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6285
SELECT + ( - col2 + CAST( NULL AS SIGNED ) ) * tab1.col1 AS col1 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6285
SELECT + ( - col2 + CAST ( NULL AS INTEGER ) ) * tab1.col1 AS col1 FROM tab1
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-6286
SELECT + cor0.col2 DIV - ( 60 ) FROM tab2, tab2 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c
skipif mysql # not compatible
query I rowsort label-6286
SELECT + cor0.col2 / - ( 60 ) FROM tab2, tab2 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c
query I rowsort
SELECT ALL col1 + col0 * - col2 FROM tab1 AS cor0
----
-136
-3638
-7667
query I rowsort
SELECT DISTINCT - col1 * col1 + 88 * col1 * ( col0 * - col1 ) + cor0.col0 * 35 AS col1 FROM tab1 AS cor0
----
-1187129
-179035
-561060
query I rowsort
SELECT + cor0.col0 * + col1 * - col0 FROM tab0 AS cor0
----
-118825
-49536
-720811
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col2 * + col2 + col1 col2 FROM tab2 AS cor0
----
1461
735
760
query I rowsort
SELECT DISTINCT - - col1 + + col1 * col2 FROM tab0 cor0
----
194
2924
7553
onlyif mysql # use DIV operator for integer division
query I rowsort label-6292
SELECT ALL col2 + col0 DIV col0 FROM tab1 cor0
----
55
58
97
skipif mysql # not compatible
query I rowsort label-6292
SELECT ALL col2 + col0 / col0 FROM tab1 cor0
----
55
58
97
query I rowsort
SELECT ALL + - col2 + cor0.col0 * + col1 AS col2 FROM tab1 AS cor0
----
24
583
944
query I rowsort
SELECT - + cor0.col2 + col0 * col0 * col0 FROM tab2 AS cor0
----
316
474526
493001
query I rowsort
SELECT ALL - - col2 * col2 + col1 FROM tab0 AS cor0
----
1175
6815
98
query I rowsort
SELECT + col1 * - col2 AS col2 FROM tab2 cor0
----
-1534
-646
-837
query I rowsort
SELECT DISTINCT col2 + - col0 * - col0 FROM tab0 AS cor0
----
1226
609
8003
query I rowsort
SELECT DISTINCT col2 * + col2 + col1 AS col0 FROM tab2
----
1461
735
760
query I rowsort
SELECT + col0 * - col1 * - tab2.col0 + - col0 * + tab2.col1 FROM tab2
----
104754
1302
354354
query I rowsort
SELECT + col0 + + col2 * + col1 FROM tab0
----
132
2862
7551
query I rowsort
SELECT - col2 * - col0 + col0 * - col2 AS col0 FROM tab1 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * col0 col0 FROM tab2 AS cor0 WHERE col2 = - col1
----
query I rowsort
SELECT - col2 * cor0.col1 + col2 FROM tab1 cor0
----
-1152
-1350
-513
query I rowsort
SELECT col1 + + col1 * - col2 FROM tab0 WHERE NOT NULL BETWEEN NULL AND NULL
----
query I rowsort
SELECT col2 * + col0 + col0 FROM tab1
----
165
3712
7760
query I rowsort
SELECT DISTINCT col1 - - col2 * tab0.col1 AS col1 FROM tab0
----
194
2924
7553
query I rowsort
SELECT cor0.col0 + + col0 AS col2 FROM tab0 cor0
----
178
48
70
query I rowsort
SELECT - + col1 + + col1 * - col1 FROM tab2 AS cor0
----
-306
-3540
-992
query I rowsort
SELECT col0 * + col1 + col2 AS col1 FROM tab2
----
1381
244
4628
query I rowsort
SELECT DISTINCT - tab1.col0 * - col2 + col1 FROM tab1
----
188
3658
7693
query I rowsort
SELECT ALL - tab0.col2 - col0 AS col1 FROM tab0
----
-171
-36
-57
query I rowsort
SELECT + 20 + col2 + col0 FROM tab2
----
124
137
54
query I rowsort
SELECT - cor0.col0 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 4ec304b8ce935f2226e7548d72c2b2f0
query I rowsort
SELECT ALL + col2 * + tab2.col1 + - col2 AS col0 FROM tab2
----
1508
608
810
onlyif mysql # use DIV operator for integer division
query I rowsort label-6315
SELECT DISTINCT + col2 + col0 * col0 DIV - tab1.col2 FROM tab1
----
-14
30
54
skipif mysql # not compatible
query I rowsort label-6315
SELECT DISTINCT + col2 + col0 * col0 / - tab1.col2 FROM tab1
----
-14
30
54
query I rowsort
SELECT col0 + col0 * - tab1.col2 AS col1 FROM tab1
----
-159
-3584
-7600
query I rowsort
SELECT + col1 * col1 + + col0 AS col1 FROM tab0
----
7420
8370
9444
query I rowsort
SELECT DISTINCT - col1 + + col0 + + col0 FROM tab2
----
-17
141
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-6319
SELECT tab0.col0 + + col2 + col1 DIV col2 AS col1 FROM tab0
----
133
172
59
skipif mysql # not compatible
query I rowsort label-6319
SELECT tab0.col0 + + col2 + col1 / col2 AS col1 FROM tab0
----
133
172
59
onlyif mysql # use DIV operator for integer division
query I rowsort label-6320
SELECT + col0 DIV - cor0.col0 FROM tab2 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-6320
SELECT + col0 / - cor0.col0 FROM tab2 AS cor0
----
-1
-1
-1
onlyif mysql # use DIV operator for integer division
query I rowsort label-6321
SELECT DISTINCT + cor0.col1 DIV + col1 FROM tab0 AS cor0
----
1
skipif mysql # not compatible
query I rowsort label-6321
SELECT DISTINCT + cor0.col1 / + col1 FROM tab0 AS cor0
----
1
query I rowsort
SELECT DISTINCT tab2.col1 * - col1 + col2 AS col2 FROM tab2
----
-251
-3455
-934
onlyif mysql # use DIV operator for integer division
query I rowsort label-6323
SELECT + col0 DIV + tab1.col2 + col0 AS col2 FROM tab1
----
3
65
80
skipif mysql # not compatible
query I rowsort label-6323
SELECT + col0 / + tab1.col2 + col0 AS col2 FROM tab1
----
3
65
80
query I rowsort
SELECT DISTINCT + tab0.col1 * + col0 * - col2 + tab0.col2 AS col0 FROM tab0
----
-3394
-664036
-68079
query I rowsort
SELECT col0 * + col0 * col1 AS col0 FROM tab1
----
234
40960
83200
query I rowsort
SELECT col1 * - col2 + - tab2.col0 AS col1 FROM tab2
----
-1612
-725
-844
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * - col2 + col1 col0 FROM tab0
----
-706
-7207
62
query I rowsort
SELECT DISTINCT - col2 * col1 * + col2 - + col2 FROM tab2
----
-22626
-24586
-39910
query I rowsort
SELECT + col0 FROM tab1 WHERE - col1 * col1 * col1 + tab1.col2 * + col0 = NULL
----
query I rowsort
SELECT - col0 * tab2.col0 * col2 FROM tab2
----
-1323
-158184
-237158
query I rowsort
SELECT ALL col1 * - col1 + - tab0.col1 * - col2 AS col2 FROM tab0
----
-4558
-819
-9312
query III rowsort
SELECT * FROM tab2 WHERE NOT col1 * - col1 + col2 NOT IN ( col2 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-6333
SELECT + col2 + col1 DIV col0 FROM tab0
----
3
36
83
skipif mysql # not compatible
query I rowsort label-6333
SELECT + col2 + col1 / col0 FROM tab0
----
3
36
83
query I rowsort
SELECT + col2 - col1 * + col1 FROM tab1 WHERE NOT NULL > col1 * col2
----
query I rowsort
SELECT DISTINCT col2 FROM tab1 WHERE col0 NOT IN ( tab1.col2 )
----
54
57
96
query I rowsort
SELECT ALL tab0.col1 - tab0.col0 FROM tab0
----
2
62
62
query I rowsort
SELECT - 30 + + col1 FROM tab1 cor0
----
-17
-20
-4
query I rowsort
SELECT DISTINCT 95 * + col1 AS col0 FROM tab2 AS cor0
----
1615
2945
5605
query I rowsort
SELECT DISTINCT - 91 * col2 + 1 * - col2 AS col1 FROM tab2 cor0
----
-2392
-2484
-3496
query I rowsort
SELECT + col2 * col0 + 18 AS col1 FROM tab2 AS cor0
----
2046
207
3020
query I rowsort
SELECT - tab0.col1 + tab0.col1 * col1 * + tab0.col1 FROM tab0
----
635970
753480
912576
query III rowsort
SELECT * FROM tab0 WHERE NOT col2 <> ( NULL )
----
query I rowsort
SELECT ALL - col2 - col2 AS col1 FROM tab1 AS cor0
----
-108
-114
-192
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * - col2 + col0 * - col0 col2 FROM tab0 cor0
----
-1260
-1368
-15219
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 * + col2 - + col0 <= - col0
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-6346
SELECT DISTINCT + col2 DIV + col0 col2 FROM tab2
----
0
3
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6346
SELECT DISTINCT + col2 / + col0 col2 FROM tab2
----
0
3
query I rowsort
SELECT DISTINCT col2 + col1 + col1 * + col2 FROM tab2
----
1619
701
895
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + col2 + + col1 col1 FROM tab2
----
1593
663
868
query I rowsort
SELECT ALL + col1 * + col2 + + col1 - + tab0.col1 AS col2 FROM tab0
----
2838
7462
97
query I rowsort
SELECT col1 * + col0 * col2 FROM tab2
----
119652
51034
5859
onlyif mysql # use DIV operator for integer division
query I rowsort label-6351
SELECT - col0 * col0 DIV - col0 AS col0 FROM tab1
----
3
64
80
skipif mysql # not compatible
query I rowsort label-6351
SELECT - col0 * col0 / - col0 AS col0 FROM tab1
----
3
64
80
query I rowsort
SELECT ALL - col1 + + col0 + + col1 FROM tab0
----
24
35
89
query III rowsort
SELECT * FROM tab2 WHERE NOT col0 - col1 IN ( - tab2.col0 )
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45
onlyif mysql # use DIV operator for integer division
query I rowsort label-6354
SELECT tab0.col2 * col0 DIV - col2 AS col0 FROM tab0
----
-24
-35
-89
skipif mysql # not compatible
query I rowsort label-6354
SELECT tab0.col2 * col0 / - col2 AS col0 FROM tab0
----
-24
-35
-89
query I rowsort
SELECT DISTINCT col1 + + col0 - col1 * tab1.col0 FROM tab1
----
-49
-566
-947
query I rowsort
SELECT ALL col0 / - col1 + - col1 FROM tab2 WHERE NULL BETWEEN NULL AND NULL
----
query I rowsort
SELECT col0 + col1 * col2 + col2 AS col2 FROM tab0
----
133
2895
7633
query III rowsort
SELECT * FROM tab0 WHERE NOT col2 - + col0 NOT BETWEEN NULL AND NULL
----
query I rowsort
SELECT ALL col1 FROM tab0 WHERE NOT NULL > col1
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab1.col1 * - col2 col2 FROM tab1
----
-1248
-1404
-570
query I rowsort
SELECT - col2 * - tab2.col0 AS col1 FROM tab2
----
189
2028
3002
onlyif mysql # use DIV operator for integer division
query I rowsort label-6362
SELECT tab1.col1 - col1 DIV + col0 AS col2 FROM tab1
----
10
13
18
skipif mysql # not compatible
query I rowsort label-6362
SELECT tab1.col1 - col1 / + col0 AS col2 FROM tab1
----
10
13
18
query I rowsort
SELECT + col2 + - ( col1 ) AS col2 FROM tab1 AS cor0
----
28
47
83
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * ( - col2 ) col1 FROM tab1 cor0
----
2916
3249
9216
query I rowsort
SELECT DISTINCT + 56 * col0 FROM tab2
----
392
4368
4424
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 93 + - col1 col2 FROM tab1 AS cor0
----
-103
-106
-119
query I rowsort
SELECT + ( col2 ) + - col1 FROM tab2 AS cor0
----
-33
-4
21
query I rowsort
SELECT + 3 + - 95 * cor0.col1 FROM tab0 cor0
----
-8167
-8642
-9212
onlyif mysql # use DIV operator for integer division
query I rowsort label-6369
SELECT - 8 DIV + col2 + col0 FROM tab0 AS cor0
----
24
27
89
skipif mysql # not compatible
query I rowsort label-6369
SELECT - 8 / + col2 + col0 FROM tab0 AS cor0
----
24
27
89
query I rowsort
SELECT DISTINCT - - col0 * - 33 AS col1 FROM tab0 cor0
----
-1155
-2937
-792
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * - cor0.col2 col1 FROM tab0 AS cor0
----
-35
-7298
-792
onlyif mysql # use DIV operator for integer division
query I rowsort label-6372
SELECT + cor0.col1 DIV ( col0 + 26 ) FROM tab0 AS cor0
----
0
1
1
skipif mysql # not compatible
query I rowsort label-6372
SELECT + cor0.col1 / ( col0 + 26 ) FROM tab0 AS cor0
----
0
1
1
query I rowsort
SELECT ( col2 ) * + col0 + - col1 + + ( + cor0.col2 ) AS col2 FROM tab2 AS cor0
----
185
1995
3023
query I rowsort
SELECT col2 + col2 * 13 * tab2.col0 + - tab2.col0 AS col2 FROM tab2
----
2477
26312
38985
query I rowsort
SELECT col2 + col0 * + col0 AS col2 FROM tab2 cor0
----
6110
6279
76
onlyif mysql # use DIV operator for integer division
query I rowsort label-6376
SELECT + 53 + + col2 DIV cor0.col0 + + ( + col2 + col0 ) AS col2 FROM tab0 AS cor0
----
111
224
89
skipif mysql # not compatible
query I rowsort label-6376
SELECT + 53 + + col2 / cor0.col0 + + ( + col2 + col0 ) AS col2 FROM tab0 AS cor0
----
111
224
89
query I rowsort
SELECT DISTINCT + ( col1 * tab1.col2 + 9 * 7 ) FROM tab1
----
1311
1467
633
query I rowsort
SELECT ALL - col1 * col1 + 8 AS col1 FROM tab2 cor0
----
-281
-3473
-953
onlyif mysql # use DIV operator for integer division
query I rowsort label-6379
SELECT DISTINCT - col0 DIV - col1 - - col1 FROM tab2 AS cor0
----
21
31
60
skipif mysql # not compatible
query I rowsort label-6379
SELECT DISTINCT - col0 / - col1 - - col1 FROM tab2 AS cor0
----
21
31
60
query I rowsort
SELECT ALL col2 * col2 * + 84 FROM tab2 AS cor0
----
121296
56784
61236
onlyif mysql # use DIV operator for integer division
query I rowsort label-6381
SELECT DISTINCT col0 + - col2 DIV + col0 AS col1 FROM tab1 AS cor0
----
-15
64
79
skipif mysql # not compatible
query I rowsort label-6381
SELECT DISTINCT col0 + - col2 / + col0 AS col1 FROM tab1 AS cor0
----
-15
64
79
query I rowsort
SELECT ALL - col0 * - col2 + 18 AS col0 FROM tab2 AS cor0
----
2046
207
3020
query I rowsort
SELECT + 6 * + col1 + - 98 FROM tab2 AS cor0
----
256
4
88
query I rowsort
SELECT DISTINCT - col1 * col2 * col2 AS col1 FROM tab0 AS cor0
----
-611884
-93654
-97
query I rowsort
SELECT ALL - - 96 * - col1 + col2 FROM tab1 AS cor0
----
-1152
-2442
-903
query I rowsort
SELECT - 21 * - col2 AS col2 FROM tab2 AS cor0
----
546
567
798
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6387
SELECT ALL CAST( NULL AS SIGNED ) * ( col1 ) AS col1 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6387
SELECT ALL CAST ( NULL AS INTEGER ) * ( col1 ) AS col1 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + 18 FROM tab1, tab2, tab1 cor0, tab0
----
18
query I rowsort
SELECT tab1.col1 FROM tab1, tab0 AS cor0, tab1 cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892
query I rowsort
SELECT ALL - 40 + + tab2.col2 AS col0 FROM tab2
----
-13
-14
-2
query I rowsort
SELECT - 45 - col0 AS col0 FROM tab0
----
-134
-69
-80
query I rowsort
SELECT cor0.col0 * + col2 AS col0 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT col1 + cor0.col0 * - col2 AS col2 FROM tab0 AS cor0
----
-706
-7207
62
query I rowsort
SELECT ALL 14 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 83e5779d2487d12495e7d816c797264f
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab1, tab1 AS cor1, tab0, tab1 AS cor2 WHERE NOT NULL <> NULL
----
query I rowsort
SELECT + - cor0.col0 - - 65 FROM tab2 AS cor0
----
-13
-14
58
skipif mysql # not compatible
query I rowsort
SELECT ALL CAST ( col0 AS REAL ) - + col1 * col2 * col1 AS col2 FROM tab1
----
-16144
-36501
-5636
query I rowsort
SELECT ALL - ( + ( + col2 ) ) FROM tab0 AS cor0
----
-1
-33
-82
query I rowsort
SELECT ALL 12 + col2 FROM tab2 AS cor0
----
38
39
50
query IIIIII rowsort
SELECT DISTINCT * FROM tab0, tab2 AS cor0 WHERE ( NULL ) NOT BETWEEN NULL AND NULL
----
query I rowsort
SELECT DISTINCT + ( + col2 ) * - col0 AS col0 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT - - 18 * - col1 AS col2 FROM tab1 AS cor0
----
-180
-234
-468
query I rowsort
SELECT col2 + 72 + col1 FROM tab0 AS cor0
----
170
191
245
query I rowsort
SELECT - col1 * + 11 + + col2 + + col0 * col1 AS col2 FROM tab1 AS cor0
----
-154
587
993
query I rowsort
SELECT ALL col2 + + ( tab1.col0 * col2 ) FROM tab1
----
216
3705
7776
query I rowsort
SELECT - col1 * 31 + col2 * - col1 AS col1 FROM tab0 AS cor0
----
-10283
-3104
-5504
query I rowsort
SELECT + col1 + col1 + + col2 * - col0 AS col0 FROM tab0 AS cor0
----
-620
-7116
159
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6408
SELECT ALL + col0 + CAST( NULL AS SIGNED ) * 26 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6408
SELECT ALL + col0 + CAST ( NULL AS INTEGER ) * 26 FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-6409
SELECT + col1 DIV + CAST( 72 AS SIGNED ) + - col2 * + cor0.col0 col1 FROM tab1 cor0
----
-162
-3648
-7680
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6409
SELECT + col1 / + CAST ( 72 AS INTEGER ) + - col2 * + cor0.col0 col1 FROM tab1 cor0
----
-162
-3648
-7680
query I rowsort
SELECT ALL - + cor0.col0 * ( col1 ) FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT ALL + + col2 + - ( col2 ) * - cor0.col0 * ( col0 ) + + col1 FROM tab1 cor0
----
233539
566
614509
query I rowsort
SELECT + col1 + 98 * + 24 AS col2 FROM tab0 AS cor0
----
2438
2443
2449
query I rowsort
SELECT - col2 - - col2 * 48 FROM tab0 AS cor0
----
1551
3854
47
query I rowsort
SELECT DISTINCT - col2 - + 48 FROM tab1 AS cor0
----
-102
-105
-144
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6415
SELECT ALL col1 * CAST( NULL AS SIGNED ) + 53 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6415
SELECT ALL col1 * CAST ( NULL AS INTEGER ) + 53 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - cor0.col1 + + 56 col0 FROM tab1 cor0
----
30
43
46
query I rowsort
SELECT ALL + col1 * - 44 AS col0 FROM tab0 AS cor0
----
-3784
-4004
-4268
query I rowsort
SELECT col0 + - ( - col2 ) AS col0 FROM tab1 AS cor0
----
121
176
57
query I rowsort
SELECT ALL + ( - 10 ) * - col2 - + 12 AS col0 FROM tab1 AS cor0
----
528
558
948
query I rowsort
SELECT + col2 * + col1 + + cor0.col1 AS col0 FROM tab2 AS cor0
----
1593
663
868
query I rowsort
SELECT + cor1.col1 + 81 + 38 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0, tab1 AS cor1
----
27 values hashing to d52214186d46c7668da7889475f25685
onlyif mysql # use DIV operator for integer division
query I rowsort label-6422
SELECT ALL col1 DIV col2 + tab1.col1 FROM tab1
----
10
13
26
skipif mysql # not compatible
query I rowsort label-6422
SELECT ALL col1 / col2 + tab1.col1 FROM tab1
----
10
13
26
query I rowsort
SELECT DISTINCT + col1 + + 25 * + col1 AS col0 FROM tab0
----
2236
2366
2522
onlyif mysql # use DIV operator for integer division
query I rowsort label-6424
SELECT DISTINCT cor1.col1 + - cor1.col1 DIV cor1.col2 AS col0 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
10
13
26
skipif mysql # not compatible
query I rowsort label-6424
SELECT DISTINCT cor1.col1 + - cor1.col1 / cor1.col2 AS col0 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
10
13
26
query I rowsort
SELECT cor0.col0 - - col0 FROM tab0 cor0
----
178
48
70
query I rowsort
SELECT cor0.col2 + + col1 * 51 AS col2 FROM tab0 AS cor0
----
4419
4723
4948
query I rowsort
SELECT DISTINCT + 57 * - col2 * - col0 + col0 AS col2 FROM tab2 AS cor0
----
10780
115674
171193
query I rowsort
SELECT - + 65 * - col0 FROM tab1 AS cor0
----
195
4160
5200
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6429
SELECT CAST( NULL AS SIGNED ) AS col1 FROM tab0, tab2 AS cor0 CROSS JOIN tab2
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif mysql # not compatible
query I rowsort label-6429
SELECT CAST ( NULL AS INTEGER ) AS col1 FROM tab0, tab2 AS cor0 CROSS JOIN tab2
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
query I rowsort
SELECT ALL + 40 + cor0.col0 * ( col0 ) AS col1 FROM tab0 cor0
----
1265
616
7961
query I rowsort
SELECT ALL 0 * tab0.col2 - 10 AS col2 FROM tab0
----
-10
-10
-10
query I rowsort
SELECT ALL - tab1.col1 - col1 AS col0 FROM tab1
----
-20
-26
-52
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 32 - col2 col2 FROM tab2
----
-6
5
6
onlyif mysql # use DIV operator for integer division
query I rowsort label-6434
SELECT DISTINCT + 12 DIV col0 + 11 FROM tab1
----
11
15
skipif mysql # not compatible
query I rowsort label-6434
SELECT DISTINCT + 12 / col0 + 11 FROM tab1
----
11
15
query I rowsort
SELECT + ( 36 ) * cor0.col1 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 76914f330847d0243812dd0ae2e4649e
query I rowsort
SELECT ALL + col1 + col1 * + 78 AS col0 FROM tab2 AS cor0
----
1343
2449
4661
onlyif mysql # use DIV operator for integer division
query I rowsort label-6437
SELECT 82 DIV tab2.col0 FROM tab2
----
1
1
11
skipif mysql # not compatible
query I rowsort label-6437
SELECT 82 / tab2.col0 FROM tab2
----
1
1
11
query I rowsort
SELECT col2 + col0 * col2 + 28 FROM tab2
----
2082
244
3068
onlyif mysql # use DIV operator for integer division
query I rowsort label-6439
SELECT DISTINCT col0 + - col0 + col2 DIV col0 FROM tab2
----
0
3
skipif mysql # not compatible
query I rowsort label-6439
SELECT DISTINCT col0 + - col0 + col2 / col0 FROM tab2
----
0
3
query I rowsort
SELECT tab1.col2 * col1 + col2 AS col0 FROM tab1
----
1344
1458
627
query I rowsort
SELECT - col1 + 36 FROM tab2 AS cor0
----
-23
19
5
query I rowsort
SELECT - col2 * - 69 AS col2 FROM tab2 AS cor0
----
1794
1863
2622
onlyif mysql # use DIV operator for integer division
query I rowsort label-6443
SELECT DISTINCT + tab2.col1 DIV cor0.col2 col2 FROM tab2, tab1 AS cor0
----
0
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6443
SELECT DISTINCT + tab2.col1 / cor0.col2 col2 FROM tab2, tab1 AS cor0
----
0
1
query I rowsort
SELECT + 70 * tab1.col1 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 5ce922251d9fefa308e9f603b1333b8d
query I rowsort
SELECT DISTINCT - cor0.col1 FROM tab0, tab1, tab2 AS cor0
----
-17
-31
-59
query I rowsort
SELECT DISTINCT - col1 * + 3 + col2 + col2 FROM tab0
----
-109
-192
-289
query I rowsort
SELECT - col0 * col0 + - tab0.col2 * col1 * + 45 AS col0 FROM tab0
----
-128286
-343711
-5590
query I rowsort
SELECT - col1 * - 91 AS col2 FROM tab2
----
1547
2821
5369
query I rowsort
SELECT col2 * 0 AS col1 FROM tab0
----
0
0
0
query I rowsort
SELECT DISTINCT + col2 * ( col0 ) FROM tab1 cor0
----
162
3648
7680
query I rowsort
SELECT col1 * - col1 + - col2 - - col2 AS col2 FROM tab0 AS cor0
----
-7396
-8281
-9409
query I rowsort
SELECT DISTINCT + - col2 * - col1 + col1 + - col2 AS col0 FROM tab2 AS cor0
----
1567
625
841
query I rowsort
SELECT ( + col2 + col1 ) FROM tab2
----
55
58
85
query I rowsort
SELECT DISTINCT + tab2.col2 AS col2 FROM tab2, tab1, tab1 AS cor0
----
26
27
38
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - 81 * col2 ) col2 FROM tab1
----
-4374
-4617
-7776
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + ( col0 ) col1 FROM tab2
----
104
117
34
skipif mysql # not compatible
query I rowsort
SELECT + CAST ( - 79 AS REAL ) AS col0 FROM tab1 AS cor0
----
-79
-79
-79
query I rowsort
SELECT DISTINCT + - 79 * - 40 + - col2 AS col1 FROM tab1 AS cor0
----
3064
3103
3106
query I rowsort
SELECT col1 * + 84 FROM tab1
----
1092
2184
840
query I rowsort
SELECT ALL - cor0.col1 + col2 * cor0.col1 FROM tab1 AS cor0
----
1235
1378
560
query I rowsort
SELECT - col0 + + col0 * + ( - cor0.col2 ) AS col1 FROM tab0 AS cor0
----
-70
-7387
-816
onlyif mysql # use DIV operator for integer division
query I rowsort label-6462
SELECT col0 + 79 DIV col1 AS col0 FROM tab2
----
79
83
9
skipif mysql # not compatible
query I rowsort label-6462
SELECT col0 + 79 / col1 AS col0 FROM tab2
----
79
83
9
query I rowsort
SELECT ALL + 95 AS col0 FROM tab2 AS cor0
----
95
95
95
query I rowsort
SELECT - + 22 + + col0 AS col1 FROM tab2 AS cor0
----
-15
56
57
query I rowsort
SELECT DISTINCT 55 + + 82 AS col1 FROM tab0 AS cor0
----
137
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6466
SELECT DISTINCT - ( ( - col1 ) ) * CAST( NULL AS SIGNED ) + col1 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-6466
SELECT DISTINCT - ( ( - col1 ) ) * CAST ( NULL AS INTEGER ) + col1 FROM tab1 AS cor0
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-6467
SELECT col0 * col1 + - col2 DIV + col1 col1 FROM tab0
----
2064
3395
8099
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6467
SELECT col0 * col1 + - col2 / + col1 col1 FROM tab0
----
2064
3395
8099
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( 94 ) - - col0 col2 FROM tab0
----
-5
-59
-70
onlyif mysql # use DIV operator for integer division
query I rowsort label-6469
SELECT DISTINCT + + 97 * col2 DIV - col0 col2 FROM tab2 AS cor0
----
-32
-374
-46
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6469
SELECT DISTINCT + + 97 * col2 / - col0 col2 FROM tab2 AS cor0
----
-32
-374
-46
query I rowsort
SELECT tab0.col0 * - col2 AS col1 FROM tab0
----
-35
-7298
-792
query I rowsort
SELECT 12 * col1 AS col1 FROM tab0
----
1032
1092
1164
query I rowsort
SELECT + 79 * tab0.col2 AS col0 FROM tab0
----
2607
6478
79
query I rowsort
SELECT 22 * + col0 FROM tab2
----
154
1716
1738
query I rowsort
SELECT - - col0 * + col1 AS col0 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT ALL - 52 FROM tab2, tab2 cor0, tab0 AS cor1
----
27 values hashing to e8a5cb10c0973a78554f344d4f6e7e74
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * + col1 col2 FROM tab0
----
2064
3395
8099
query I rowsort
SELECT ALL 90 * - col2 - - 14 AS col1 FROM tab0
----
-2956
-7366
-76
query I rowsort
SELECT ALL col2 - col0 * col2 FROM tab1
----
-108
-3591
-7584
onlyif mysql # use DIV operator for integer division
query I rowsort label-6479
SELECT - + ( + col2 ) - 89 * col0 DIV cor0.col1 FROM tab2 AS cor0
----
-143
-451
-47
skipif mysql # not compatible
query I rowsort label-6479
SELECT - + ( + col2 ) - 89 * col0 / cor0.col1 FROM tab2 AS cor0
----
-143
-451
-47
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * 32 col0 FROM tab2 AS cor0
----
1216
832
864
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + col0 * - col2 col2 FROM tab1 AS cor0
----
-136
-3638
-7667
query I rowsort
SELECT col1 * col1 + 64 FROM tab2 AS cor0
----
1025
353
3545
query I rowsort
SELECT - col2 * - col0 * col2 - + col2 AS col0 FROM tab1 AS cor0
----
207879
737184
8694
onlyif mysql # use DIV operator for integer division
query I rowsort label-6484
SELECT ALL - col1 DIV ( + col2 * + col2 ) FROM tab1 cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-6484
SELECT ALL - col1 / ( + col2 * + col2 ) FROM tab1 cor0
----
0
0
0
query I rowsort
SELECT - + col1 * - col0 * - col1 AS col0 FROM tab1 AS cor0
----
-13520
-2028
-6400
query I rowsort
SELECT ALL + col0 + + 99 * col0 AS col0 FROM tab1
----
300
6400
8000
onlyif mysql # use DIV operator for integer division
query I rowsort label-6487
SELECT DISTINCT - col1 DIV col0 + 43 FROM tab2
----
39
43
skipif mysql # not compatible
query I rowsort label-6487
SELECT DISTINCT - col1 / col0 + 43 FROM tab2
----
39
43
query I rowsort
SELECT + col2 * col0 + + 94 FROM tab1 cor0
----
256
3742
7774
query I rowsort
SELECT DISTINCT col2 * + ( - col2 ) FROM tab2 cor0
----
-1444
-676
-729
query I rowsort
SELECT + - col0 * + 68 FROM tab1 AS cor0
----
-204
-4352
-5440
query I rowsort
SELECT ALL - cor0.col0 * + ( - col2 ) + col0 AS col2 FROM tab1 AS cor0
----
165
3712
7760
query I rowsort
SELECT - col1 * + 30 FROM tab2 AS cor0
----
-1770
-510
-930
query I rowsort
SELECT DISTINCT + col1 + ( col1 ) FROM tab1 AS cor0
----
20
26
52
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 * + 40 col2 FROM tab2 AS cor0
----
-280
-3120
-3160
query I rowsort
SELECT ALL - col1 - + 57 AS col0 FROM tab1 AS cor0
----
-67
-70
-83
query I rowsort
SELECT DISTINCT - + col1 * - cor0.col2 + + col2 - + col0 AS col0 FROM tab1 AS cor0
----
1264
1455
563
query I rowsort
SELECT ALL + 41 + 60 * col1 * col2 FROM tab1 AS cor0
----
34241
74921
84281
query I rowsort
SELECT - col1 + ( - col0 ) * col1 AS col2 FROM tab2 AS cor0
----
-1360
-248
-4661
onlyif mysql # use DIV operator for integer division
query I rowsort label-6499
SELECT DISTINCT 36 DIV col0 + + col0 + 72 FROM tab2 AS cor0
----
150
151
84
skipif mysql # not compatible
query I rowsort label-6499
SELECT DISTINCT 36 / col0 + + col0 + 72 FROM tab2 AS cor0
----
150
151
84
query I rowsort
SELECT - ( 84 ) * + cor0.col0 + - ( - col2 ) AS col0 FROM tab2 AS cor0
----
-561
-6526
-6598
onlyif mysql # use DIV operator for integer division
query I rowsort label-6501
SELECT DISTINCT - col0 DIV + col0 - col1 FROM tab1 AS cor0
----
-11
-14
-27
skipif mysql # not compatible
query I rowsort label-6501
SELECT DISTINCT - col0 / + col0 - col1 FROM tab1 AS cor0
----
-11
-14
-27
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + CAST ( - col1 AS REAL ) + col1 * - col1 FROM tab2 AS cor0
----
-306
-3540
-992
query I rowsort
SELECT ALL col1 * + col0 - + col2 AS col2 FROM tab2 AS cor0
----
1305
190
4576
query I rowsort
SELECT ALL - 99 AS col0 FROM tab2 cor0
----
-99
-99
-99
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 - + ( 80 ) col0 FROM tab2
----
-42
-53
-54
query I rowsort
SELECT + - ( col0 ) + col0 AS col1 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT ALL - - col1 + col0 * - ( - col2 ) AS col0 FROM tab0 AS cor0
----
132
7389
878
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - col2 ) col0 FROM tab1 cor0
----
-54
-57
-96
onlyif mysql # use DIV operator for integer division
query I rowsort label-6509
SELECT ALL - col2 * cor0.col2 + + 13 DIV 84 + + col1 FROM tab1 AS cor0
----
-2890
-3239
-9203
skipif mysql # not compatible
query I rowsort label-6509
SELECT ALL - col2 * cor0.col2 + + 13 / 84 + + col1 FROM tab1 AS cor0
----
-2890
-3239
-9203
query I rowsort
SELECT + cor0.col2 * col2 * 2 AS col2 FROM tab0 cor0
----
13448
2
2178
query I rowsort
SELECT DISTINCT + ( - col0 ) * col2 FROM tab1 cor0
----
-162
-3648
-7680
query I rowsort
SELECT - - 68 + col2 FROM tab0 cor0
----
101
150
69
query I rowsort
SELECT ALL + + col2 * - col0 * col2 + col2 FROM tab1 AS cor0
----
-207879
-737184
-8694
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6514
SELECT DISTINCT + - CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL
skipif mysql # not compatible
query I rowsort label-6514
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL
query I rowsort
SELECT - 19 - col1 AS col0 FROM tab0
----
-105
-110
-116
query I rowsort
SELECT ALL 4 + + col1 AS col0 FROM tab0
----
101
90
95
query I rowsort
SELECT ALL - col0 * col0 * + col2 + - 76 FROM tab0
----
-1301
-19084
-649598
query I rowsort
SELECT + col1 + + cor0.col1 FROM tab0 cor0
----
172
182
194
onlyif mysql # use DIV operator for integer division
query I rowsort label-6519
SELECT ALL - tab0.col1 + ( col1 ) DIV 15 FROM tab0
----
-81
-85
-91
skipif mysql # not compatible
query I rowsort label-6519
SELECT ALL - tab0.col1 + ( col1 ) / 15 FROM tab0
----
-81
-85
-91
query I rowsort
SELECT DISTINCT + ( + cor0.col0 ) - - 74 AS col1 FROM tab1, tab2 AS cor0
----
152
153
81
query I rowsort
SELECT ALL - 4 AS col0 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to 39ed23475412c3cbba02ecdd2d7018e6
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6522
SELECT + CAST( col1 AS SIGNED ) col1 FROM tab0 AS cor0
----
86
91
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6522
SELECT + CAST ( col1 AS INTEGER ) col1 FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT 83 AS col0 FROM tab1, tab0 AS cor0, tab1 AS cor1, tab2 AS cor2
----
81 values hashing to 5ced3720d5aeff0dd77d5059a38001b6
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 20 + col1 * col1 + - 53 * + col2 * - col0 col1 FROM tab1 AS cor0
----
193424
407189
9242
onlyif mysql # use DIV operator for integer division
query I rowsort label-6525
SELECT DISTINCT + col2 DIV - col1 + - 14 + + cor0.col2 FROM tab0 AS cor0
----
-13
19
68
skipif mysql # not compatible
query I rowsort label-6525
SELECT DISTINCT + col2 / - col1 + - 14 + + cor0.col2 FROM tab0 AS cor0
----
-13
19
68
query I rowsort
SELECT DISTINCT - 89 - + col0 FROM tab2 cor0
----
-167
-168
-96
query I rowsort
SELECT + col2 * - cor0.col1 - col1 AS col2 FROM tab0 AS cor0
----
-194
-2924
-7553
onlyif mysql # use DIV operator for integer division
query I rowsort label-6528
SELECT DISTINCT col2 DIV + cor0.col1 + + col0 FROM tab1 AS cor0
----
5
69
87
skipif mysql # not compatible
query I rowsort label-6528
SELECT DISTINCT col2 / + cor0.col1 + + col0 FROM tab1 AS cor0
----
5
69
87
query I rowsort
SELECT DISTINCT + 6 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
6
query I rowsort
SELECT + - 27 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 90b76caf54a4e48ee4a9784f52997a6a
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + - col1 + ( 14 ) col0 FROM tab2 AS cor0
----
-10
33
76
onlyif mysql # use DIV operator for integer division
query I rowsort label-6532
SELECT - col0 * col1 + 68 DIV + col0 - cor0.col0 AS col0 FROM tab0 cor0
----
-2086
-3429
-8188
skipif mysql # not compatible
query I rowsort label-6532
SELECT - col0 * col1 + 68 / + col0 - cor0.col0 AS col0 FROM tab0 cor0
----
-2086
-3429
-8188
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6533
SELECT col1 * + col1 + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6533
SELECT col1 * + col1 + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - col0 * col0 + - col1 * col0 AS col0 FROM tab1 AS cor0
----
-4736
-7440
-87
query I rowsort
SELECT DISTINCT col2 * col1 + col0 AS col2 FROM tab0 AS cor0
----
132
2862
7551
query I rowsort
SELECT ALL 37 * + col2 AS col0 FROM tab0 AS cor0
----
1221
3034
37
query I rowsort
SELECT ALL - 69 * col2 + col0 FROM tab2 AS cor0
----
-1716
-1856
-2543
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6538
SELECT DISTINCT + + cor0.col0 * col0 + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-6538
SELECT DISTINCT + + cor0.col0 * col0 + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT ALL ( - col1 ) + ( col2 ) - col2 FROM tab2 cor0
----
-17
-31
-59
query I rowsort
SELECT + ( col1 ) + 71 * col0 - col1 FROM tab0 cor0
----
1704
2485
6319
query I rowsort
SELECT tab2.col2 * + col1 + col0 * + col1 FROM tab2
----
1054
1989
6136
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6542
SELECT ALL - ( 77 ) / tab2.col1 + + CAST( NULL AS DECIMAL ) AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-6542
SELECT ALL - ( 77 ) / tab2.col1 + + CAST ( NULL AS REAL ) AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * - ( + col1 ) col1 FROM tab0 AS cor0
----
-7396
-8281
-9409
onlyif mysql # use DIV operator for integer division
query I rowsort label-6544
SELECT ALL + - col2 DIV - 36 AS col1 FROM tab1 cor0
----
1
1
2
skipif mysql # not compatible
query I rowsort label-6544
SELECT ALL + - col2 / - 36 AS col1 FROM tab1 cor0
----
1
1
2
query I rowsort
SELECT ALL + 30 + cor1.col2 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to d56ce23fec79771e57ce43fe6396fe37
query I rowsort
SELECT ALL - col1 + + col1 + col0 AS col2 FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT DISTINCT + cor0.col1 * + ( cor0.col0 ) + cor0.col0 AS col1 FROM tab2 AS cor0
----
1422
224
4680
query I rowsort
SELECT ALL - col0 * - ( + col2 ) FROM tab2 cor0
----
189
2028
3002
query I rowsort
SELECT ALL - - cor0.col0 + col0 * col1 FROM tab0 AS cor0
----
2088
3430
8188
query I rowsort
SELECT + - cor0.col2 + + col1 FROM tab2 AS cor0
----
-21
33
4
query I rowsort
SELECT DISTINCT - - col2 * ( col2 ) + col2 AS col2 FROM tab2 cor0
----
1482
702
756
query I rowsort
SELECT - col0 * - 61 * col2 AS col1 FROM tab1 AS cor0
----
222528
468480
9882
query I rowsort
SELECT + - col1 * + ( col0 ) AS col0 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT col2 * 47 FROM tab0 AS cor0
----
1551
3854
47
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * + ( - col2 ) col0 FROM tab1 cor0
----
-1248
-1404
-570
query I rowsort
SELECT + + col0 * + ( ( col1 ) ) FROM tab0 AS cor0
----
2064
3395
8099
onlyif mysql # use DIV operator for integer division
query I rowsort label-6557
SELECT DISTINCT - col2 DIV + cor0.col1 col0 FROM tab2 AS cor0
----
-2
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6557
SELECT DISTINCT - col2 / + cor0.col1 col0 FROM tab2 AS cor0
----
-2
0
query I rowsort
SELECT DISTINCT + + 74 AS col1 FROM tab0 AS cor0
----
74
onlyif mysql # use DIV operator for integer division
query I rowsort label-6559
SELECT ALL + 44 + + 45 DIV - col1 FROM tab1 AS cor0
----
40
41
43
skipif mysql # not compatible
query I rowsort label-6559
SELECT ALL + 44 + + 45 / - col1 FROM tab1 AS cor0
----
40
41
43
query I rowsort
SELECT ALL - col1 * - col0 + - col0 * col2 AS col2 FROM tab0 AS cor0
----
1272
3360
801
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6561
SELECT DISTINCT + CAST( + ( col0 ) AS SIGNED ) - CAST( NULL AS SIGNED ) AS col1 FROM tab2 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-6561
SELECT DISTINCT + CAST ( + ( col0 ) AS INTEGER ) - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + ( - col2 ) * col1 col0 FROM tab0 AS cor0
----
-2838
-7462
-97
onlyif mysql # use DIV operator for integer division
query I rowsort label-6563
SELECT - ( + col1 ) * col2 DIV 60 FROM tab1 AS cor0
----
-20
-23
-9
skipif mysql # not compatible
query I rowsort label-6563
SELECT - ( + col1 ) * col2 / 60 FROM tab1 AS cor0
----
-20
-23
-9
query I rowsort
SELECT DISTINCT ( + 7 ) AS col1 FROM tab2
----
7
query I rowsort
SELECT - 73 AS col1 FROM tab1, tab2 cor0
----
9 values hashing to 84ab9db5468b4a1781bd8d5c8e0e77fc
query I rowsort
SELECT ALL ( - 99 * col0 ) AS col0 FROM tab1
----
-297
-6336
-7920
query I rowsort
SELECT ALL + + cor0.col0 + cor0.col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 882fef197e3b41358c58e24f2db2f2e1
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6568
SELECT - col1 / - 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-6568
SELECT - col1 / - CAST ( NULL AS INTEGER ) col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + col0 + + 55 FROM tab0 AS cor0
----
144
79
90
query I rowsort
SELECT col1 + + col1 + - col1 FROM tab1
----
10
13
26
query I rowsort
SELECT - 12 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to e698dd57d3aac30af14ce35da434bb45
query I rowsort
SELECT DISTINCT 50 AS col2 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
50
query I rowsort
SELECT ALL - col0 * ( 14 ) * col2 AS col2 FROM tab1
----
-107520
-2268
-51072
query I rowsort
SELECT ALL + col2 * col0 * - col2 FROM tab2 cor0
----
-114076
-5103
-52728
onlyif mysql # use DIV operator for integer division
query I rowsort label-6575
SELECT DISTINCT + 15 + col0 DIV + col2 AS col2 FROM tab0 AS cor0
----
15
16
50
skipif mysql # not compatible
query I rowsort label-6575
SELECT DISTINCT + 15 + col0 / + col2 AS col2 FROM tab0 AS cor0
----
15
16
50
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6576
SELECT + + 4 * col2 + CAST( 37 AS SIGNED ) FROM tab1 AS cor0
----
253
265
421
skipif mysql # not compatible
query I rowsort label-6576
SELECT + + 4 * col2 + CAST ( 37 AS INTEGER ) FROM tab1 AS cor0
----
253
265
421
query I rowsort
SELECT - col1 * - col1 + + col1 FROM tab2 AS cor0
----
306
3540
992
query I rowsort
SELECT + ( col2 ) * 58 AS col2 FROM tab0 cor0
----
1914
4756
58
query I rowsort
SELECT 66 + col1 * - col1 AS col1 FROM tab0 AS cor0
----
-7330
-8215
-9343
onlyif mysql # use DIV operator for integer division
query I rowsort label-6580
SELECT ALL 99 DIV col2 FROM tab0
----
1
3
99
skipif mysql # not compatible
query I rowsort label-6580
SELECT ALL 99 / col2 FROM tab0
----
1
3
99
query I rowsort
SELECT + + 39 AS col1 FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to ed2ebd9def3e2c38aa46cb3af60fe229
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 58 col2 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 9ee363c6ac19cfdb8a50c7dfd5cc2b8a
query I rowsort
SELECT ALL + 22 * - col2 AS col2 FROM tab1
----
-1188
-1254
-2112
query I rowsort
SELECT DISTINCT ( col2 ) + + 43 AS col0 FROM tab1
----
100
139
97
query I rowsort
SELECT DISTINCT 4 * - col2 AS col0 FROM tab1 AS cor0
----
-216
-228
-384
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 56 col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 3d3dab400eef93c098acbbba3fc9bdc6
query I rowsort
SELECT + col1 + - 85 AS col2 FROM tab1 AS cor0
----
-59
-72
-75
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( + col2 ) - - col0 * - 22 col0 FROM tab2
----
-1742
-1776
-181
query I rowsort
SELECT + + 17 AS col0 FROM tab0 AS cor0
----
17
17
17
onlyif mysql # use DIV operator for integer division
query I rowsort label-6590
SELECT + 88 DIV 83 col2 FROM tab2 AS cor0
----
1
1
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6590
SELECT + 88 / 83 col2 FROM tab2 AS cor0
----
1
1
1
query I rowsort
SELECT ALL col2 * col2 * col1 AS col2 FROM tab1
----
119808
32490
75816
query I rowsort
SELECT - tab1.col0 FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to 729c1edda9332398299f39cd174ed840
query I rowsort
SELECT ( col2 ) * - col2 + col1 FROM tab2
----
-1427
-617
-698
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6594
SELECT DISTINCT + CAST( + tab0.col1 AS SIGNED ) AS col1 FROM tab0
----
86
91
97
skipif mysql # not compatible
query I rowsort label-6594
SELECT DISTINCT + CAST ( + tab0.col1 AS INTEGER ) AS col1 FROM tab0
----
86
91
97
query I rowsort
SELECT ALL col2 * 24 * col2 AS col0 FROM tab0
----
161376
24
26136
query I rowsort
SELECT - + 53 AS col2 FROM tab0 cor0
----
-53
-53
-53
query I rowsort
SELECT ALL - 80 + + col2 AS col1 FROM tab2 cor0
----
-42
-53
-54
onlyif mysql # use DIV operator for integer division
query I rowsort label-6598
SELECT - col2 DIV + col2 + - col1 AS col0 FROM tab1 AS cor0
----
-11
-14
-27
skipif mysql # not compatible
query I rowsort label-6598
SELECT - col2 / + col2 + - col1 AS col0 FROM tab1 AS cor0
----
-11
-14
-27
query I rowsort
SELECT DISTINCT - + col0 * col2 + - cor0.col0 FROM tab1 AS cor0
----
-165
-3712
-7760
query I rowsort
SELECT ALL + 68 * - col1 + - col2 FROM tab0 AS cor0
----
-5881
-6270
-6597
onlyif mysql # use DIV operator for integer division
query I rowsort label-6601
SELECT DISTINCT + 37 * + col0 + - col1 DIV + cor0.col1 - - col1 FROM tab2 AS cor0
----
289
2939
2944
skipif mysql # not compatible
query I rowsort label-6601
SELECT DISTINCT + 37 * + col0 + - col1 / + cor0.col1 - - col1 FROM tab2 AS cor0
----
289
2939
2944
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 26 * cor0.col1 + - cor0.col2 * col1 col1 FROM tab1 AS cor0
----
-1586
-2080
-830
query I rowsort
SELECT ALL - 24 + + col2 * col1 - - col1 AS col1 FROM tab1 AS cor0
----
1237
1406
556
query I rowsort
SELECT DISTINCT + col2 * + col2 + col1 * col0 AS col0 FROM tab1 AS cor0
----
10256
2994
3889
query I rowsort
SELECT DISTINCT - ( - cor0.col0 ) + col0 FROM tab0 AS cor0
----
178
48
70
query I rowsort
SELECT ALL 1 + col0 FROM tab2 AS cor0
----
79
8
80
query I rowsort
SELECT DISTINCT cor0.col2 * col0 * col2 + - col2 * - col1 + col1 FROM tab0 cor0
----
229
29060
605989
query I rowsort
SELECT - 86 + + col2 FROM tab2 AS cor0
----
-48
-59
-60
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6609
SELECT DISTINCT + CAST( col0 * col1 AS SIGNED ) FROM tab1
----
1040
640
78
skipif mysql # not compatible
query I rowsort label-6609
SELECT DISTINCT + CAST ( col0 * col1 AS INTEGER ) FROM tab1
----
1040
640
78
query I rowsort
SELECT - - 6 AS col0 FROM tab2 cor0
----
6
6
6
query I rowsort
SELECT col2 * - ( + 32 * col0 ) FROM tab0 cor0
----
-1120
-233536
-25344
query I rowsort
SELECT + + col0 * - 52 + + col0 AS col0 FROM tab1 AS cor0
----
-153
-3264
-4080
onlyif mysql # use DIV operator for integer division
query I rowsort label-6613
SELECT + - col0 + col0 * ( col0 ) DIV - cor0.col0 FROM tab0 cor0
----
-178
-48
-70
skipif mysql # not compatible
query I rowsort label-6613
SELECT + - col0 + col0 * ( col0 ) / - cor0.col0 FROM tab0 cor0
----
-178
-48
-70
query I rowsort
SELECT col2 + col0 * col2 AS col0 FROM tab0 AS cor0
----
36
7380
825
query I rowsort
SELECT ALL col0 + + 81 FROM tab2
----
159
160
88
query I rowsort
SELECT + col0 * + ( + col1 ) AS col0 FROM tab1 cor0
----
1040
640
78
query I rowsort
SELECT DISTINCT col1 * + ( col2 ) AS col0 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT - col2 + - 13 * col0 AS col1 FROM tab1 cor0
----
-1136
-889
-93
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6619
SELECT DISTINCT - col2 * CAST( ( col2 ) + + cor0.col2 AS SIGNED ) FROM tab1 AS cor0
----
-18432
-5832
-6498
skipif mysql # not compatible
query I rowsort label-6619
SELECT DISTINCT - col2 * CAST ( ( col2 ) + + cor0.col2 AS INTEGER ) FROM tab1 AS cor0
----
-18432
-5832
-6498
query I rowsort
SELECT + - col2 * 95 + 68 FROM tab0 AS cor0
----
-27
-3067
-7722
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6621
SELECT DISTINCT - col1 + CAST( col1 AS SIGNED ) * col2 AS col1 FROM tab1 AS cor0
----
1235
1378
560
skipif mysql # not compatible
query I rowsort label-6621
SELECT DISTINCT - col1 + CAST ( col1 AS INTEGER ) * col2 AS col1 FROM tab1 AS cor0
----
1235
1378
560
onlyif mysql # use DIV operator for integer division
query I rowsort label-6622
SELECT ALL cor0.col0 * ( - 78 ) DIV cor0.col2 FROM tab0 cor0
----
-2730
-56
-84
skipif mysql # not compatible
query I rowsort label-6622
SELECT ALL cor0.col0 * ( - 78 ) / cor0.col2 FROM tab0 cor0
----
-2730
-56
-84
query I rowsort
SELECT - col2 * - col2 + 41 * col1 AS col0 FROM tab0 AS cor0
----
10455
3978
4615
query I rowsort
SELECT DISTINCT - 99 FROM tab2 cor0
----
-99
query I rowsort
SELECT ALL + 58 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to ef6e63aeed2581a168f07646d258f666
query I rowsort
SELECT + + cor0.col0 * 36 FROM tab2 AS cor0
----
252
2808
2844
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6627
SELECT ALL - CAST( NULL AS SIGNED ) * ( + col0 ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6627
SELECT ALL - CAST ( NULL AS INTEGER ) * ( + col0 ) FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + ( + col1 ) + + col1 AS col2 FROM tab2 cor0
----
118
34
62
onlyif mysql # use DIV operator for integer division
query I rowsort label-6629
SELECT col0 * + 24 * col0 + col1 DIV col0 col1 FROM tab2
----
1180
146016
149784
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6629
SELECT col0 * + 24 * col0 + col1 / col0 col1 FROM tab2
----
1180
146016
149784
query I rowsort
SELECT DISTINCT tab0.col0 + + 97 AS col2 FROM tab0
----
121
132
186
query I rowsort
SELECT - col1 * 13 FROM tab0 AS cor0
----
-1118
-1183
-1261
query I rowsort
SELECT tab2.col0 * col2 + + tab2.col0 AS col1 FROM tab2
----
196
2106
3081
query I rowsort
SELECT + col0 * + col1 + - 7 AS col0 FROM tab0
----
2057
3388
8092
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 67 + - col0 col2 FROM tab2
----
-11
-12
60
query I rowsort
SELECT DISTINCT - 93 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-93
query I rowsort
SELECT + cor1.col0 * 26 FROM tab0 cor0 CROSS JOIN tab1, tab1 AS cor1
----
27 values hashing to 53b8bd369d3b19b3600ae5716f112bbf
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1 cor0 CROSS JOIN tab0, tab0 AS cor1, tab1, tab2 AS cor2
----
3645 values hashing to c3f17e238f07c9d20c4ee001084f26c7
query I rowsort
SELECT col1 * - 45 + - 59 + col1 AS col2 FROM tab1
----
-1203
-499
-631
query I rowsort
SELECT ALL 2 * + 46 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 516fa45c8b06f9f67d6e500bfd435c1a
query I rowsort
SELECT DISTINCT col1 * col2 * tab2.col0 + + col2 + + col2 AS col0 FROM tab2
----
119704
51110
5913
query I rowsort
SELECT ALL + col2 + - ( + cor0.col2 ) AS col0 FROM tab2 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-6642
SELECT - col1 DIV cor0.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-6642
SELECT - col1 / cor0.col1 col1 FROM tab1 AS cor0
----
-1
-1
-1
query I rowsort
SELECT ALL + col1 * - 49 * col1 FROM tab1 AS cor0
----
-33124
-4900
-8281
query I rowsort
SELECT - 69 + 57 FROM tab0, tab2 AS cor0
----
9 values hashing to e698dd57d3aac30af14ce35da434bb45
query I rowsort
SELECT ALL col0 * - cor0.col1 + + col2 * cor0.col2 FROM tab0 AS cor0
----
-1375
-3394
-975
query I rowsort
SELECT DISTINCT + 51 + tab2.col1 * col2 FROM tab2
----
1585
697
888
query I rowsort
SELECT DISTINCT cor0.col0 * - 7 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-49
-546
-553
query I rowsort
SELECT DISTINCT col0 * col0 * col1 AS col0 FROM tab0 AS cor0
----
118825
49536
720811
query I rowsort
SELECT DISTINCT - col2 * 42 - col1 FROM tab1 AS cor0
----
-2294
-2404
-4045
query I rowsort
SELECT DISTINCT - 40 + col1 FROM tab0 AS cor0
----
46
51
57
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6651
SELECT + CAST( NULL AS SIGNED ) + + 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-6651
SELECT + CAST ( NULL AS INTEGER ) + + col2 col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6652
SELECT DISTINCT + + 31 * cor0.col0 * + ( col1 ) + cor0.col2 * CAST( col2 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
105246
257793
65073
skipif mysql # not compatible
query I rowsort label-6652
SELECT DISTINCT + + 31 * cor0.col0 * + ( col1 ) + cor0.col2 * CAST ( col2 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
105246
257793
65073
query I rowsort
SELECT ALL - 88 + col0 AS col1 FROM tab2 AS cor0
----
-10
-81
-9
query I rowsort
SELECT ALL + 87 - + col1 FROM tab1 AS cor0
----
61
74
77
query I rowsort
SELECT ALL cor0.col0 + col0 + + 48 FROM tab0 AS cor0
----
118
226
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-6656
SELECT ALL + col0 + col2 DIV col1 AS col1 FROM tab1 AS cor0
----
5
69
87
skipif mysql # not compatible
query I rowsort label-6656
SELECT ALL + col0 + col2 / col1 AS col1 FROM tab1 AS cor0
----
5
69
87
query I rowsort
SELECT + 68 + + col2 FROM tab0 cor0
----
101
150
69
query I rowsort
SELECT DISTINCT - cor0.col0 AS col0 FROM tab0, tab1 AS cor0, tab0 AS cor1, tab2 AS cor2
----
-3
-64
-80
query I rowsort
SELECT ALL - cor0.col2 - + col1 FROM tab1 AS cor0
----
-109
-67
-80
query I rowsort
SELECT DISTINCT - - 96 * col0 FROM tab1 AS cor0
----
288
6144
7680
query I rowsort
SELECT 71 * - col2 + 64 FROM tab1 AS cor0
----
-3770
-3983
-6752
query I rowsort
SELECT ALL + ( + col1 ) + + col2 AS col1 FROM tab0 cor0
----
119
173
98
query I rowsort
SELECT DISTINCT + + 3 AS col1 FROM tab1 cor0
----
3
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1, tab0 cor0, tab2 AS cor1, tab0, tab2 AS cor2
----
3645 values hashing to 0c9c9a26da1b45580001288543ac8dbe
query I rowsort
SELECT ALL + 24 * - col0 + + col0 FROM tab0 AS cor0
----
-2047
-552
-805
query I rowsort
SELECT + ( + tab1.col2 ) * - col0 AS col0 FROM tab1
----
-162
-3648
-7680
query I rowsort
SELECT DISTINCT + ( - col2 ) + col1 AS col0 FROM tab0 AS cor0
----
53
9
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-6668
SELECT ALL col1 * col1 DIV col0 - col0 FROM tab0
----
233
284
4
skipif mysql # not compatible
query I rowsort label-6668
SELECT ALL col1 * col1 / col0 - col0 FROM tab0
----
233
284
4
query I rowsort
SELECT cor0.col0 + - 22 + col0 FROM tab1 AS cor0
----
-16
106
138
query I rowsort
SELECT ( - col1 ) * cor0.col2 AS col1 FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT ALL - 65 + - col1 AS col2 FROM tab2
----
-124
-82
-96
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6672
SELECT DISTINCT CAST( + ( col1 ) AS SIGNED ) + - ( tab0.col2 ) * col1 FROM tab0
----
-2752
-7371
0
skipif mysql # not compatible
query I rowsort label-6672
SELECT DISTINCT CAST ( + ( col1 ) AS INTEGER ) + - ( tab0.col2 ) * col1 FROM tab0
----
-2752
-7371
0
query I rowsort
SELECT ( + 81 ) * - col1 * + 78 FROM tab0
----
-543348
-574938
-612846
query I rowsort
SELECT cor0.col2 + + col0 * + col1 + col2 * - col1 AS col0 FROM tab0 AS cor0
----
-741
3299
719
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 2 * + col0 + - cor0.col0 col1 FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT ALL + 5 * col0 AS col0 FROM tab1
----
15
320
400
query I rowsort
SELECT ALL + col2 + + col1 + - col2 FROM tab2
----
17
31
59
query I rowsort
SELECT - ( col1 ) * - col1 AS col0 FROM tab1
----
100
169
676
query I rowsort
SELECT col0 * col2 * - tab1.col1 AS col2 FROM tab1
----
-36480
-4212
-99840
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6680
SELECT + CAST( + 3 AS SIGNED ) * + col2 col1 FROM tab2 AS cor0
----
114
78
81
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6680
SELECT + CAST ( + 3 AS INTEGER ) * + col2 col1 FROM tab2 AS cor0
----
114
78
81
query I rowsort
SELECT ALL + cor0.col1 + + 17 AS col0 FROM tab1 AS cor0
----
27
30
43
query I rowsort
SELECT DISTINCT - - 23 + - col1 FROM tab0 AS cor0
----
-63
-68
-74
query I rowsort
SELECT col2 * col1 + col0 * + cor0.col2 FROM tab2 AS cor0
----
1026
3562
3648
query I rowsort
SELECT DISTINCT + col0 * + col2 - + col0 * - col1 AS col0 FROM tab2 cor0
----
406
4345
6630
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6685
SELECT ALL CAST( col2 AS SIGNED ) + + cor0.col1 + 65 AS col0 FROM tab2 AS cor0
----
120
123
150
skipif mysql # not compatible
query I rowsort label-6685
SELECT ALL CAST ( col2 AS INTEGER ) + + cor0.col1 + 65 AS col0 FROM tab2 AS cor0
----
120
123
150
query I rowsort
SELECT + ( + 3 ) FROM tab2 AS cor0
----
3
3
3
query I rowsort
SELECT DISTINCT + col1 + + 92 AS col1 FROM tab0 AS cor0
----
178
183
189
query I rowsort
SELECT + 29 * + 68 FROM tab2 AS cor0
----
1972
1972
1972
query I rowsort
SELECT + 59 * + col0 + cor0.col0 * col1 * col1 FROM tab0 AS cor0
----
178920
331380
742260
query I rowsort
SELECT ALL 88 + cor0.col0 FROM tab2, tab1 cor0, tab2 AS cor1
----
27 values hashing to d969c544e8a436a9ea55849c1b3a55d4
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * + col0 + - col2 col1 FROM tab2 AS cor0
----
162
2002
2964
query I rowsort
SELECT ALL - 59 * - col0 + col1 FROM tab2 AS cor0
----
444
4661
4678
query I rowsort
SELECT - - col0 * - cor0.col2 + ( col0 ) FROM tab1 cor0
----
-159
-3584
-7600
query I rowsort
SELECT DISTINCT - 23 * + 69 AS col2 FROM tab2
----
-1587
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6695
SELECT + col1 / CAST( NULL AS SIGNED ) + + cor0.col1 AS col0 FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6695
SELECT + col1 / CAST ( NULL AS INTEGER ) + + cor0.col1 AS col0 FROM tab2 cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-6696
SELECT + col0 + - 69 DIV + col2 AS col0 FROM tab1 AS cor0
----
2
63
80
skipif mysql # not compatible
query I rowsort label-6696
SELECT + col0 + - 69 / + col2 AS col0 FROM tab1 AS cor0
----
2
63
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + ( col1 ) col0 FROM tab1 AS cor0
----
-54
-67
23
query I rowsort
SELECT ALL - 54 FROM tab2, tab1 AS cor0
----
9 values hashing to 4ecdb0f1b85f0d4fdc3a826efd9f2342
query I rowsort
SELECT - + col0 * col1 * col0 + col1 * - 67 FROM tab2 cor0
----
-107236
-3596
-362909
query I rowsort
SELECT ALL col2 * 63 * + tab1.col0 FROM tab1
----
10206
229824
483840
onlyif mysql # use DIV operator for integer division
query I rowsort label-6701
SELECT ALL + col2 DIV - 5 - + col0 AS col1 FROM tab0 AS cor0
----
-105
-30
-35
skipif mysql # not compatible
query I rowsort label-6701
SELECT ALL + col2 / - 5 - + col0 AS col1 FROM tab0 AS cor0
----
-105
-30
-35
query I rowsort
SELECT + cor0.col0 + - ( col1 ) * col2 FROM tab1 AS cor0
----
-1168
-1401
-506
query I rowsort
SELECT DISTINCT - - col0 * 84 + - col2 + - col2 AS col1 FROM tab2 AS cor0
----
534
6500
6560
query I rowsort
SELECT 46 + col0 AS col0 FROM tab0 AS cor0
----
135
70
81
query I rowsort
SELECT - col1 - col2 * + col2 FROM tab0
----
-1175
-6815
-98
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6706
SELECT CAST( NULL AS SIGNED ) FROM tab0, tab2, tab0 cor0, tab2 AS cor1
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c
skipif mysql # not compatible
query I rowsort label-6706
SELECT CAST ( NULL AS INTEGER ) FROM tab0, tab2, tab0 cor0, tab2 AS cor1
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c
query I rowsort
SELECT ALL cor0.col0 * - ( + cor0.col1 ) FROM tab1 cor0
----
-1040
-640
-78
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6708
SELECT ALL - CAST( 72 AS SIGNED ) + - col2 * + ( cor0.col1 ) FROM tab2 AS cor0
----
-1606
-718
-909
skipif mysql # not compatible
query I rowsort label-6708
SELECT ALL - CAST ( 72 AS INTEGER ) + - col2 * + ( cor0.col1 ) FROM tab2 AS cor0
----
-1606
-718
-909
query I rowsort
SELECT DISTINCT + ( - 0 ) FROM tab0 AS cor0
----
0
query I rowsort
SELECT DISTINCT ( cor0.col0 ) + cor0.col2 AS col2 FROM tab2, tab0 AS cor0
----
171
36
57
query I rowsort
SELECT DISTINCT col1 * - col2 AS col1 FROM tab1 cor0
----
-1248
-1404
-570
onlyif mysql # use DIV operator for integer division
query I rowsort label-6712
SELECT - col0 DIV + 90 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-6712
SELECT - col0 / + 90 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT ALL col1 + col0 * - 11 FROM tab0
----
-178
-288
-888
onlyif mysql # use DIV operator for integer division
query I rowsort label-6714
SELECT ALL + col1 DIV 75 col2 FROM tab1
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6714
SELECT ALL + col1 / 75 col2 FROM tab1
----
0
0
0
query I rowsort
SELECT DISTINCT tab0.col2 * 93 FROM tab0
----
3069
7626
93
query I rowsort
SELECT DISTINCT + ( 23 ) FROM tab0
----
23
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col0 + + 67 + - cor0.col1 col1 FROM tab2 AS cor0
----
129
43
86
query I rowsort
SELECT ALL 16 * + ( - col2 ) FROM tab0 AS cor0
----
-1312
-16
-528
query I rowsort
SELECT - col2 + ( + cor0.col0 ) * + ( + col0 + col2 ) FROM tab2 AS cor0
----
211
8086
9205
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6720
SELECT DISTINCT CAST( + col2 AS SIGNED ) * + col2 + col0 col2 FROM tab1 cor0
----
2919
3313
9296
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6720
SELECT DISTINCT CAST ( + col2 AS INTEGER ) * + col2 + col0 col2 FROM tab1 cor0
----
2919
3313
9296
query I rowsort
SELECT ALL tab1.col2 - col1 FROM tab1
----
28
47
83
query I rowsort
SELECT col0 * - col2 - 78 FROM tab0
----
-113
-7376
-870
query I rowsort
SELECT ALL + - col0 * + 15 FROM tab1 AS cor0
----
-1200
-45
-960
query I rowsort
SELECT + col1 + - ( col1 ) AS col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT - 8 * col0 AS col2 FROM tab1
----
-24
-512
-640
query I rowsort
SELECT - cor1.col1 AS col0 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to c7890469eabb2c6fc81454b35d2333b6
onlyif mysql # use DIV operator for integer division
query I rowsort label-6727
SELECT ALL col0 + - col0 * 3 DIV 65 FROM tab1
----
3
62
77
skipif mysql # not compatible
query I rowsort label-6727
SELECT ALL col0 + - col0 * 3 / 65 FROM tab1
----
3
62
77
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 - - col0 * col2 col0 FROM tab0 AS cor0
----
36
7380
825
query I rowsort
SELECT ALL 97 + col0 AS col1 FROM tab0
----
121
132
186
query I rowsort
SELECT + 41 + col0 AS col2 FROM tab0
----
130
65
76
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6731
SELECT tab2.col1 + + col2 + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6731
SELECT tab2.col1 + + col2 + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-6732
SELECT ALL - col2 DIV ( 5 ) + - col2 * + col0 FROM tab1 AS cor0
----
-172
-3659
-7699
skipif mysql # not compatible
query I rowsort label-6732
SELECT ALL - col2 / ( 5 ) + - col2 * + col0 FROM tab1 AS cor0
----
-172
-3659
-7699
query I rowsort
SELECT DISTINCT + + col0 * + 83 * - 84 + - col0 * + col2 FROM tab2 AS cor0
----
-48993
-545844
-553790
query I rowsort
SELECT DISTINCT cor0.col1 + - 20 AS col2 FROM tab2 AS cor0
----
-3
11
39
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6735
SELECT DISTINCT - cor0.col1 * CAST( NULL AS SIGNED ) * + col2 - col0 / 50 AS col0 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-6735
SELECT DISTINCT - cor0.col1 * CAST ( NULL AS INTEGER ) * + col2 - col0 / 50 AS col0 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT ALL - cor0.col1 + col0 * - col1 FROM tab1 AS cor0
----
-104
-1053
-650
query I rowsort
SELECT + - cor0.col0 + cor0.col1 AS col0 FROM tab0 AS cor0
----
2
62
62
onlyif mysql # use DIV operator for integer division
query I rowsort label-6738
SELECT DISTINCT + col2 DIV + col2 + - cor0.col2 FROM tab0 AS cor0
----
-32
-81
0
skipif mysql # not compatible
query I rowsort label-6738
SELECT DISTINCT + col2 / + col2 + - cor0.col2 FROM tab0 AS cor0
----
-32
-81
0
query I rowsort
SELECT col0 + + ( + col1 + + col1 ) * - col1 FROM tab1 AS cor0
----
-1349
-136
-258
onlyif mysql # use DIV operator for integer division
query I rowsort label-6740
SELECT ALL + + col0 DIV 7 + + col2 AS col0 FROM tab0 AS cor0
----
36
6
94
skipif mysql # not compatible
query I rowsort label-6740
SELECT ALL + + col0 / 7 + + col2 AS col0 FROM tab0 AS cor0
----
36
6
94
query I rowsort
SELECT ALL + cor0.col1 * - col1 AS col0 FROM tab1 AS cor0
----
-100
-169
-676
query I rowsort
SELECT ALL + col0 + 65 * - col1 FROM tab0 AS cor0
----
-5566
-5826
-6270
query I rowsort
SELECT - col1 + - ( col1 ) AS col2 FROM tab1 cor0
----
-20
-26
-52
query I rowsort
SELECT ALL cor0.col0 + + 45 FROM tab0 AS cor0
----
134
69
80
query I rowsort
SELECT cor0.col0 + - 77 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 0a908349aa7d0f0069b41b1f5cb0ed2a
query I rowsort
SELECT ALL + 94 - cor0.col1 AS col2 FROM tab1, tab0 AS cor0, tab2 AS cor1, tab1 AS cor2
----
81 values hashing to a973aa6cd7b59871c32737867b40b1ed
query I rowsort
SELECT cor0.col2 * cor0.col2 FROM tab2 cor0
----
1444
676
729
onlyif mysql # use DIV operator for integer division
query I rowsort label-6748
SELECT + 1 + - col2 - cor0.col1 DIV col0 AS col2 FROM tab2 AS cor0
----
-25
-30
-37
skipif mysql # not compatible
query I rowsort label-6748
SELECT + 1 + - col2 - cor0.col1 / col0 AS col2 FROM tab2 AS cor0
----
-25
-30
-37
query I rowsort
SELECT ALL - ( - cor0.col0 ) FROM tab0 cor0
----
24
35
89
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( 52 ) + + col1 * - col0 col1 FROM tab1 AS cor0
----
-26
-588
-988
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 - col2 * - col1 col0 FROM tab0 AS cor0
----
194
2924
7553
query I rowsort
SELECT - cor0.col2 * 4 + col0 + - col1 * cor0.col1 AS col0 FROM tab2 AS cor0
----
-1062
-3507
-362
query I rowsort
SELECT col0 + - col0 + + col2 AS col1 FROM tab1 AS cor0
----
54
57
96
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6754
SELECT + - CAST( + 11 AS SIGNED ) FROM tab1 AS cor0
----
-11
-11
-11
skipif mysql # not compatible
query I rowsort label-6754
SELECT + - CAST ( + 11 AS INTEGER ) FROM tab1 AS cor0
----
-11
-11
-11
query I rowsort
SELECT ALL - ( - col1 ) * col2 AS col2 FROM tab2 AS cor0
----
1534
646
837
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6756
SELECT ALL CAST( + col0 AS SIGNED ) * col0 * - col2 FROM tab1 cor0
----
-233472
-486
-614400
skipif mysql # not compatible
query I rowsort label-6756
SELECT ALL CAST ( + col0 AS INTEGER ) * col0 * - col2 FROM tab1 cor0
----
-233472
-486
-614400
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + col2 col0 FROM tab2
----
52
54
76
query I rowsort
SELECT ALL col1 + col2 * - tab1.col1 + col0 AS col1 FROM tab1
----
-1155
-1375
-496
query I rowsort
SELECT + col0 + + col1 + + col1 FROM tab1 AS cor0
----
106
55
84
query I rowsort
SELECT DISTINCT + 31 + 77 FROM tab1, tab2 AS cor0
----
108
query I rowsort
SELECT DISTINCT - col2 * ( col1 ) - col0 FROM tab1
----
-1328
-1407
-634
onlyif mysql # use DIV operator for integer division
query I rowsort label-6762
SELECT ALL + 79 * - cor0.col1 - tab1.col1 DIV 4 AS col0 FROM tab0, tab2, tab2 cor0, tab1
----
81 values hashing to 3b0b4c97fec5b64164141797f5d039e3
skipif mysql # not compatible
query I rowsort label-6762
SELECT ALL + 79 * - cor0.col1 - tab1.col1 / 4 AS col0 FROM tab0, tab2, tab2 cor0, tab1
----
81 values hashing to 3b0b4c97fec5b64164141797f5d039e3
onlyif mysql # use DIV operator for integer division
query I rowsort label-6763
SELECT ALL + 22 DIV - 50 + + tab2.col1 AS col2 FROM tab2
----
17
31
59
skipif mysql # not compatible
query I rowsort label-6763
SELECT ALL + 22 / - 50 + + tab2.col1 AS col2 FROM tab2
----
17
31
59
query I rowsort
SELECT DISTINCT + tab0.col1 + + ( - col1 ) + ( 20 + + col0 * ( 34 ) ) FROM tab0
----
1210
3046
836
query I rowsort
SELECT col1 * 51 * - col1 + 96 FROM tab2 AS cor0
----
-14643
-177435
-48915
query I rowsort
SELECT ALL + ( - col1 * col1 ) AS col1 FROM tab1
----
-100
-169
-676
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6767
SELECT - col1 + + col1 - + CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6767
SELECT - col1 + + col1 - + CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + 44 * + col2 FROM tab1
----
2376
2508
4224
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6769
SELECT CAST( NULL AS SIGNED ) * + 90 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6769
SELECT CAST ( NULL AS INTEGER ) * + 90 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT - col2 * cor0.col1 + - cor0.col1 AS col2 FROM tab2 AS cor0
----
-1593
-663
-868
query I rowsort
SELECT DISTINCT + ( ( + col0 ) ) AS col0 FROM tab2
----
7
78
79
query I rowsort
SELECT + 71 * col0 + 4 AS col1 FROM tab0 AS cor0
----
1708
2489
6323
query I rowsort
SELECT ALL tab0.col2 * + 11 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 6e88f16da9d6b414fc5ac22184e85d62
query I rowsort
SELECT ALL cor0.col0 * - 86 FROM tab1, tab2 AS cor0
----
9 values hashing to 12c5220abdba1de40a076f8163f445df
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6775
SELECT - col2 + - CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6775
SELECT - col2 + - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - - col2 - 53 FROM tab1 AS cor0
----
1
4
43
query I rowsort
SELECT col0 - + col0 AS col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT ALL - 77 + + col2 + col2 AS col2 FROM tab2 AS cor0
----
-1
-23
-25
query I rowsort
SELECT - + col0 * + 31 AS col2 FROM tab0 AS cor0
----
-1085
-2759
-744
query I rowsort
SELECT col1 * 43 + + col0 FROM tab0
----
3722
4002
4206
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 4 col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 6fec965b60b9885c4af73e85422cfd9b
query I rowsort
SELECT - 41 * + col2 + col2 FROM tab2 AS cor0
----
-1040
-1080
-1520
query I rowsort
SELECT + 51 + cor0.col2 FROM tab0 AS cor0
----
133
52
84
query I rowsort
SELECT - + col1 + col0 * 69 FROM tab0 AS cor0
----
1570
2318
6050
query I rowsort
SELECT ALL + + col1 * - ( + col0 + col2 ) FROM tab0 AS cor0
----
-15561
-3492
-4902
query I rowsort
SELECT - cor0.col1 + 43 FROM tab0 AS cor0
----
-43
-48
-54
query I rowsort
SELECT ALL col1 + 0 FROM tab1 cor0
----
10
13
26
query I rowsort
SELECT ALL col1 - 73 FROM tab0 AS cor0
----
13
18
24
query I rowsort
SELECT ALL + + col1 - col1 AS col2 FROM tab2 cor0
----
0
0
0
query I rowsort
SELECT DISTINCT cor0.col1 * + 72 FROM tab0 cor0
----
6192
6552
6984
query I rowsort
SELECT - col2 + - col1 * - cor0.col0 AS col2 FROM tab0 AS cor0
----
2031
3394
8017
query I rowsort
SELECT ALL col2 + + 90 AS col0 FROM tab1
----
144
147
186
query I rowsort
SELECT - - ( cor0.col0 ) + + col2 AS col2 FROM tab0 AS cor0
----
171
36
57
query I rowsort
SELECT + + col0 * cor0.col0 AS col1 FROM tab2 cor0
----
49
6084
6241
query I rowsort
SELECT 50 + col0 AS col0 FROM tab2 cor0
----
128
129
57
onlyif mysql # use DIV operator for integer division
query I rowsort label-6796
SELECT ALL col2 DIV col0 - - col1 AS col0 FROM tab2 AS cor0
----
17
34
59
skipif mysql # not compatible
query I rowsort label-6796
SELECT ALL col2 / col0 - - col1 AS col0 FROM tab2 AS cor0
----
17
34
59
query I rowsort
SELECT - - cor0.col0 * col1 + + ( - 47 * - col2 ) AS col1 FROM tab0 AS cor0
----
11953
3442
3615
query I rowsort
SELECT DISTINCT - col2 * + col0 + 0 AS col2 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT ALL + - col2 * + col2 FROM tab0 cor0
----
-1
-1089
-6724
query I rowsort
SELECT ( col0 ) * 76 + - 25 FROM tab2 cor0
----
507
5903
5979
onlyif mysql # use DIV operator for integer division
query I rowsort label-6801
SELECT + ( col1 ) * + col2 + col0 * col1 DIV col0 FROM tab0 AS cor0
----
194
2924
7553
skipif mysql # not compatible
query I rowsort label-6801
SELECT + ( col1 ) * + col2 + col0 * col1 / col0 FROM tab0 AS cor0
----
194
2924
7553
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6802
SELECT DISTINCT CAST( + col2 + - col2 AS SIGNED ) FROM tab1
----
0
skipif mysql # not compatible
query I rowsort label-6802
SELECT DISTINCT CAST ( + col2 + - col2 AS INTEGER ) FROM tab1
----
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-6803
SELECT - col0 DIV col2 + - col1 * + cor0.col2 AS col1 FROM tab1 AS cor0
----
-1248
-1404
-571
skipif mysql # not compatible
query I rowsort label-6803
SELECT - col0 / col2 + - col1 * + cor0.col2 AS col1 FROM tab1 AS cor0
----
-1248
-1404
-571
query I rowsort
SELECT + + cor0.col0 * + col2 + + ( - col2 ) + col1 AS col1 FROM tab2 cor0
----
193
2061
2981
query I rowsort
SELECT ALL + - 60 * - col2 + - 87 * - col2 AS col2 FROM tab1 cor0
----
14112
7938
8379
query I rowsort
SELECT + - ( cor0.col1 ) * - col2 + ( + col0 ) * + cor0.col0 AS col1 FROM tab1 AS cor0
----
1413
4666
7648
query I rowsort
SELECT 27 * + ( cor0.col1 ) * + 94 AS col1 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 5ceff9dc92f08f18d6a243f8ce49f809
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6808
SELECT ALL tab1.col2 + - col2 / CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6808
SELECT ALL tab1.col2 + - col2 / CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT tab1.col1 * col0 * col0 - col1 AS col0 FROM tab1
----
208
40950
83187
query I rowsort
SELECT cor0.col2 AS col1 FROM tab0, tab2, tab2 AS cor0, tab1 AS cor1
----
81 values hashing to c4e6b1f1d28e731664a15a6f7cda4da9
query I rowsort
SELECT DISTINCT col2 + - col2 + - col2 * + col2 FROM tab1 AS cor0
----
-2916
-3249
-9216
onlyif mysql # use DIV operator for integer division
query I rowsort label-6812
SELECT ALL + - col2 DIV col0 - + ( + col0 ) AS col0 FROM tab1 AS cor0
----
-21
-64
-81
skipif mysql # not compatible
query I rowsort label-6812
SELECT ALL + - col2 / col0 - + ( + col0 ) AS col0 FROM tab1 AS cor0
----
-21
-64
-81
query I rowsort
SELECT DISTINCT - - cor0.col2 + col2 * 39 AS col2 FROM tab2 AS cor0
----
1040
1080
1520
query I rowsort
SELECT ( + col1 ) * - 26 * - 66 - + col1 FROM tab0
----
147490
156065
166355
query I rowsort
SELECT DISTINCT + 71 * + col2 * - ( col2 * + col1 ) FROM tab1
----
-2306790
-5382936
-8506368
onlyif mysql # use DIV operator for integer division
query I rowsort label-6816
SELECT col2 DIV col2 + + tab1.col0 FROM tab1
----
4
65
81
skipif mysql # not compatible
query I rowsort label-6816
SELECT col2 / col2 + + tab1.col0 FROM tab1
----
4
65
81
query I rowsort
SELECT - - 13 AS col0 FROM tab0 AS cor0
----
13
13
13
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6818
SELECT DISTINCT - ( - 76 ) / cor0.col1 + CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-6818
SELECT DISTINCT - ( - 76 ) / cor0.col1 + CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + cor0.col2 * + 87 col2 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to 23a009775cc8bbb769ec91d35f36dc9e
query I rowsort
SELECT ALL 88 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 6be17b82ecb3e8b268fcb4ba610ddb37
query I rowsort
SELECT - col2 + - cor0.col0 * + col0 * + col0 + col0 AS col0 FROM tab1 AS cor0
----
-262137
-512016
-78
query I rowsort
SELECT DISTINCT - + 80 * - 47 FROM tab0 AS cor0
----
3760
query I rowsort
SELECT ALL + - ( + col1 ) * + col1 FROM tab1 AS cor0
----
-100
-169
-676
query I rowsort
SELECT ( - 34 ) * col2 FROM tab0 AS cor0
----
-1122
-2788
-34
query I rowsort
SELECT ALL - + col1 * 20 FROM tab2 AS cor0
----
-1180
-340
-620
query I rowsort
SELECT + 6 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 5d1cb90ed58fa7573895d2f95b211821
query I rowsort
SELECT + tab0.col0 * col2 + 56 FROM tab0
----
7354
848
91
onlyif mysql # use DIV operator for integer division
query I rowsort label-6828
SELECT - col0 * + ( + tab0.col2 ) + col0 DIV - 63 FROM tab0
----
-35
-7299
-792
skipif mysql # not compatible
query I rowsort label-6828
SELECT - col0 * + ( + tab0.col2 ) + col0 / - 63 FROM tab0
----
-35
-7299
-792
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 - + 48 col0 FROM tab1
----
-45
16
32
query I rowsort
SELECT col1 * col0 + - col2 * + col1 AS col0 FROM tab0
----
-774
3298
637
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6831
SELECT CAST( col0 * + col1 AS SIGNED ) + col2 + col0 AS col0 FROM tab0
----
2121
3431
8270
skipif mysql # not compatible
query I rowsort label-6831
SELECT CAST ( col0 * + col1 AS INTEGER ) + col2 + col0 AS col0 FROM tab0
----
2121
3431
8270
onlyif mysql # use DIV operator for integer division
query I rowsort label-6832
SELECT 39 DIV tab0.col0 col0 FROM tab0, tab2 cor0
----
9 values hashing to 43a387ef4ba85927dc3d9d573afc12c9
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6832
SELECT 39 / tab0.col0 col0 FROM tab0, tab2 cor0
----
9 values hashing to 43a387ef4ba85927dc3d9d573afc12c9
query I rowsort
SELECT DISTINCT + 12 * col2 * col1 - - tab0.col0 FROM tab0
----
1199
34080
89633
query I rowsort
SELECT + ( - cor0.col1 ) * + col2 + + 65 + - 88 FROM tab1 AS cor0
----
-1271
-1427
-593
query I rowsort
SELECT DISTINCT 55 * + 62 AS col2 FROM tab2 AS cor0
----
3410
query I rowsort
SELECT DISTINCT + - cor0.col0 * ( col2 ) FROM tab1 AS cor0
----
-162
-3648
-7680
onlyif mysql # use DIV operator for integer division
query I rowsort label-6837
SELECT ALL - + 53 DIV col2 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-6837
SELECT ALL - + 53 / col2 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT ALL ( + col2 ) + col2 FROM tab0
----
164
2
66
query I rowsort
SELECT - tab2.col2 * - 90 AS col2 FROM tab2
----
2340
2430
3420
query I rowsort
SELECT tab2.col2 * 43 * + 29 AS col1 FROM tab2
----
32422
33669
47386
query I rowsort
SELECT ALL col1 * col2 + col2 + col1 * + col1 AS col1 FROM tab2 AS cor0
----
1825
5041
973
query I rowsort
SELECT - + cor0.col2 * 32 AS col2 FROM tab2 AS cor0
----
-1216
-832
-864
query I rowsort
SELECT - - col1 - col1 * + 83 AS col1 FROM tab2 AS cor0
----
-1394
-2542
-4838
onlyif mysql # use DIV operator for integer division
query I rowsort label-6844
SELECT ALL - - col2 DIV - 71 FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-6844
SELECT ALL - - col2 / - 71 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT - col1 * + 27 AS col0 FROM tab0 AS cor0
----
-2322
-2457
-2619
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6846
SELECT DISTINCT + CAST( + col0 AS SIGNED ) + col1 FROM tab0 AS cor0
----
110
132
180
skipif mysql # not compatible
query I rowsort label-6846
SELECT DISTINCT + CAST ( + col0 AS INTEGER ) + col1 FROM tab0 AS cor0
----
110
132
180
query I rowsort
SELECT DISTINCT + - ( - col0 ) + + col1 AS col0 FROM tab1 AS cor0
----
29
74
93
query I rowsort
SELECT + - 96 + col0 AS col0 FROM tab0 cor0
----
-61
-7
-72
skipif mysql # not compatible
query I rowsort
SELECT - CAST ( 52 AS INTEGER ) * + cor0.col1 + + CAST ( ( - col1 ) AS REAL ) FROM tab1 AS cor0
----
-1378
-530
-689
onlyif mysql # use DIV operator for integer division
query I rowsort label-6850
SELECT DISTINCT 86 DIV col1 + col1 * + col1 * - cor0.col1 AS col0 FROM tab0 AS cor0
----
-636055
-753571
-912673
skipif mysql # not compatible
query I rowsort label-6850
SELECT DISTINCT 86 / col1 + col1 * + col1 * - cor0.col1 AS col0 FROM tab0 AS cor0
----
-636055
-753571
-912673
query I rowsort
SELECT ( - col2 ) * cor0.col2 FROM tab2 AS cor0
----
-1444
-676
-729
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + ( - col2 ) * col0 col1 FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT DISTINCT + 2 * - col0 + + col1 + - ( cor0.col0 ) FROM tab1 cor0
----
-182
-227
17
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + - tab0.col2 col1 FROM tab0
----
-9
34
7
query I rowsort
SELECT 35 * 6 * cor0.col1 FROM tab1, tab2 AS cor0
----
9 values hashing to ace6a643be75200110d6fac1adb6c073
query I rowsort
SELECT + ( 50 ) + - cor0.col1 FROM tab0 AS cor0
----
-36
-41
-47
onlyif mysql # use DIV operator for integer division
query I rowsort label-6857
SELECT - col1 DIV - col2 + - col2 * + cor0.col0 AS col0 FROM tab1 AS cor0
----
-162
-3648
-7680
skipif mysql # not compatible
query I rowsort label-6857
SELECT - col1 / - col2 + - col2 * + cor0.col0 AS col0 FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT col2 + cor0.col2 * + 11 * - col0 AS col2 FROM tab0 AS cor0
----
-384
-80196
-8679
query I rowsort
SELECT ALL + 27 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 701bf12d86392cb1585d9e4f3c72e9a8
query I rowsort
SELECT col1 + + col1 * - col0 * col1 AS col1 FROM tab2 AS cor0
----
-22814
-271459
-6696
query I rowsort
SELECT + ( + 90 ) + + col1 FROM tab1
----
100
103
116
onlyif mysql # use DIV operator for integer division
query I rowsort label-6862
SELECT tab2.col1 + col0 DIV tab2.col1 AS col0 FROM tab2
----
21
31
60
skipif mysql # not compatible
query I rowsort label-6862
SELECT tab2.col1 + col0 / tab2.col1 AS col0 FROM tab2
----
21
31
60
query I rowsort
SELECT 72 + - col0 * - col2 AS col2 FROM tab2 AS cor0
----
2100
261
3074
onlyif mysql # use DIV operator for integer division
query I rowsort label-6864
SELECT + + 71 DIV - cor0.col0 AS col0 FROM tab2 AS cor0
----
-10
0
0
skipif mysql # not compatible
query I rowsort label-6864
SELECT + + 71 / - cor0.col0 AS col0 FROM tab2 AS cor0
----
-10
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 78 * + col1 * ( col0 ) col2 FROM tab2 AS cor0
----
104754
16926
358956
query I rowsort
SELECT ALL col1 + - col0 * + col2 AS col0 FROM tab1 AS cor0
----
-136
-3638
-7667
onlyif mysql # use DIV operator for integer division
query I rowsort label-6867
SELECT - ( col2 ) + col1 DIV tab1.col0 - + col0 * ( + col0 + col0 ) FROM tab1
----
-12896
-64
-8249
skipif mysql # not compatible
query I rowsort label-6867
SELECT - ( col2 ) + col1 / tab1.col0 - + col0 * ( + col0 + col0 ) FROM tab1
----
-12896
-64
-8249
query I rowsort
SELECT + 7 * tab2.col2 AS col0 FROM tab2
----
182
189
266
query I rowsort
SELECT - + col1 * - 87 + col1 FROM tab0 AS cor0
----
7568
8008
8536
query I rowsort
SELECT col2 * col2 + 44 FROM tab2 AS cor0
----
1488
720
773
query I rowsort
SELECT DISTINCT + col0 * + col1 + tab0.col2 + col1 FROM tab0
----
2183
3493
8272
query I rowsort
SELECT ALL - cor0.col0 + 2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to ad0d39167de34bfb5df0707a79dd3779
query I rowsort
SELECT 72 + + col0 + col0 FROM tab2
----
228
230
86
onlyif mysql # use DIV operator for integer division
query I rowsort label-6874
SELECT col2 + + 79 DIV + col1 FROM tab1 AS cor0
----
102
57
64
skipif mysql # not compatible
query I rowsort label-6874
SELECT col2 + + 79 / + col1 FROM tab1 AS cor0
----
102
57
64
query I rowsort
SELECT + cor0.col0 + - 54 AS col0 FROM tab2 AS cor0
----
-47
24
25
query I rowsort
SELECT + + col1 * + ( - 51 ) FROM tab1 AS cor0
----
-1326
-510
-663
query I rowsort
SELECT + cor0.col0 * - col1 - col2 FROM tab2 AS cor0
----
-1381
-244
-4628
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + - ( - 94 ) col1 FROM tab1 AS cor0
----
104
107
120
query I rowsort
SELECT ALL 7 * - col0 FROM tab0
----
-168
-245
-623
onlyif mysql # use DIV operator for integer division
query I rowsort label-6880
SELECT ALL - tab1.col2 DIV - col2 AS col0 FROM tab1
----
1
1
1
skipif mysql # not compatible
query I rowsort label-6880
SELECT ALL - tab1.col2 / - col2 AS col0 FROM tab1
----
1
1
1
query I rowsort
SELECT DISTINCT + tab0.col1 AS col1 FROM tab0, tab2 AS cor0
----
86
91
97
query I rowsort
SELECT ALL 99 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 05ea182fd6036c7f5e0ea08fc061cc67
query I rowsort
SELECT - col0 + + col1 * col2 + - cor0.col0 AS col1 FROM tab0 AS cor0
----
27
2790
7284
query I rowsort
SELECT col1 * ( + 4 ) AS col1 FROM tab1 AS cor0
----
104
40
52
onlyif mysql # use DIV operator for integer division
query I rowsort label-6885
SELECT + cor0.col0 * col0 DIV + 38 - - col0 AS col0 FROM tab2 AS cor0
----
238
243
8
skipif mysql # not compatible
query I rowsort label-6885
SELECT + cor0.col0 * col0 / + 38 - - col0 AS col0 FROM tab2 AS cor0
----
238
243
8
query I rowsort
SELECT - - col1 * - 23 FROM tab0 AS cor0
----
-1978
-2093
-2231
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 14 * col1 col0 FROM tab1 AS cor0
----
140
182
364
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( 87 + col1 ) col0 FROM tab2
----
104
118
146
query I rowsort
SELECT DISTINCT + 75 * + col2 AS col2 FROM tab1
----
4050
4275
7200
onlyif mysql # use DIV operator for integer division
query I rowsort label-6890
SELECT ALL + + ( - col0 ) + + col2 * col0 DIV col1 FROM tab1 AS cor0
----
3
300
510
skipif mysql # not compatible
query I rowsort label-6890
SELECT ALL + + ( - col0 ) + + col2 * col0 / col1 FROM tab1 AS cor0
----
3
300
510
onlyif mysql # use DIV operator for integer division
query I rowsort label-6891
SELECT ALL + col2 DIV - col2 AS col1 FROM tab1
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-6891
SELECT ALL + col2 / - col2 AS col1 FROM tab1
----
-1
-1
-1
onlyif mysql # use DIV operator for integer division
query I rowsort label-6892
SELECT + col0 + cor0.col0 DIV + 85 AS col0 FROM tab0 AS cor0
----
24
35
90
skipif mysql # not compatible
query I rowsort label-6892
SELECT + col0 + cor0.col0 / + 85 AS col0 FROM tab0 AS cor0
----
24
35
90
onlyif mysql # use DIV operator for integer division
query I rowsort label-6893
SELECT - - col1 DIV - col1 AS col0 FROM tab1 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-6893
SELECT - - col1 / - col1 AS col0 FROM tab1 AS cor0
----
-1
-1
-1
query I rowsort
SELECT DISTINCT cor0.col2 + - 74 FROM tab1, tab0 AS cor0
----
-41
-73
8
query I rowsort
SELECT ALL + 3 * col2 + - col2 FROM tab0 AS cor0
----
164
2
66
query I rowsort
SELECT ALL + col0 + 80 FROM tab2 AS cor0
----
158
159
87
query I rowsort
SELECT - 5 + col0 AS col1 FROM tab1 AS cor0
----
-2
59
75
query I rowsort
SELECT ALL cor0.col2 * cor0.col1 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT col0 + + col0 * col1 AS col2 FROM tab2 AS cor0
----
1422
224
4680
query I rowsort
SELECT ALL + + 50 AS col1 FROM tab1 AS cor0
----
50
50
50
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6901
SELECT DISTINCT - - CAST( cor0.col1 AS SIGNED ) * - col2 FROM tab0 AS cor0
----
-2838
-7462
-97
skipif mysql # not compatible
query I rowsort label-6901
SELECT DISTINCT - - CAST ( cor0.col1 AS INTEGER ) * - col2 FROM tab0 AS cor0
----
-2838
-7462
-97
onlyif mysql # use DIV operator for integer division
query I rowsort label-6902
SELECT ALL + - col1 DIV 26 FROM tab1 AS cor0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-6902
SELECT ALL + - col1 / 26 FROM tab1 AS cor0
----
-1
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-6903
SELECT - - 30 + cor0.col1 DIV + col0 FROM tab1 AS cor0
----
30
30
38
skipif mysql # not compatible
query I rowsort label-6903
SELECT - - 30 + cor0.col1 / + col0 FROM tab1 AS cor0
----
30
30
38
query I rowsort
SELECT ALL - + ( + 49 ) * col1 FROM tab2 AS cor0
----
-1519
-2891
-833
onlyif mysql # use DIV operator for integer division
query I rowsort label-6905
SELECT DISTINCT + col2 DIV 15 AS col0 FROM tab2 AS cor0
----
1
2
skipif mysql # not compatible
query I rowsort label-6905
SELECT DISTINCT + col2 / 15 AS col0 FROM tab2 AS cor0
----
1
2
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6906
SELECT DISTINCT + CAST( col2 AS SIGNED ) AS col1 FROM tab1 cor0
----
54
57
96
skipif mysql # not compatible
query I rowsort label-6906
SELECT DISTINCT + CAST ( col2 AS INTEGER ) AS col1 FROM tab1 cor0
----
54
57
96
query I rowsort
SELECT - col1 + cor0.col0 * col1 FROM tab2 AS cor0
----
1326
186
4543
query I rowsort
SELECT DISTINCT - - ( col2 ) * col0 FROM tab0 AS cor0
----
35
7298
792
onlyif mysql # use DIV operator for integer division
query I rowsort label-6909
SELECT ALL + col2 - ( + col2 ) DIV + col0 AS col1 FROM tab1
----
36
57
95
skipif mysql # not compatible
query I rowsort label-6909
SELECT ALL + col2 - ( + col2 ) / + col0 AS col1 FROM tab1
----
36
57
95
query I rowsort
SELECT - col1 * 91 FROM tab2
----
-1547
-2821
-5369
onlyif mysql # use DIV operator for integer division
query I rowsort label-6911
SELECT col2 * col2 DIV - col0 FROM tab0 AS cor0
----
-45
-75
0
skipif mysql # not compatible
query I rowsort label-6911
SELECT col2 * col2 / - col0 FROM tab0 AS cor0
----
-45
-75
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( col1 ) col0 FROM tab2 AS cor0
----
17
31
59
query I rowsort
SELECT + cor0.col1 + - col1 * - 4 FROM tab0 AS cor0
----
430
455
485
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 - - col1 col2 FROM tab0
----
172
182
194
query I rowsort
SELECT DISTINCT + cor0.col0 AS col0 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
24
35
89
onlyif mysql # use DIV operator for integer division
query I rowsort label-6916
SELECT + col2 + col1 DIV 25 FROM tab2 AS cor0
----
28
28
38
skipif mysql # not compatible
query I rowsort label-6916
SELECT + col2 + col1 / 25 FROM tab2 AS cor0
----
28
28
38
query I rowsort
SELECT ALL + tab1.col1 * - col2 + + col2 * col0 * - ( + tab1.col2 ) AS col2 FROM tab1
----
-10152
-208506
-738528
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 4 col2 FROM tab0, tab1 AS cor0, tab2 cor1
----
27 values hashing to 39ed23475412c3cbba02ecdd2d7018e6
query I rowsort
SELECT + + col2 + 4 FROM tab1 cor0
----
100
58
61
query I rowsort
SELECT ALL + col1 + + col0 * col0 * - col0 FROM tab0 AS cor0
----
-13738
-42778
-704878
query I rowsort
SELECT ALL + cor0.col2 + - ( + 33 ) AS col2 FROM tab0 cor0
----
-32
0
49
query I rowsort
SELECT + col0 * col2 + - ( - col2 ) * col0 + - 62 FROM tab2 AS cor0
----
316
3994
5942
query I rowsort
SELECT DISTINCT - + col1 * 48 FROM tab1 cor0
----
-1248
-480
-624
query I rowsort
SELECT + col1 * col1 + + col2 AS col0 FROM tab2 cor0
----
327
3507
988
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6925
SELECT DISTINCT col0 * + CAST( + col2 AS SIGNED ) + - col1 FROM tab2
----
158
1969
2985
skipif mysql # not compatible
query I rowsort label-6925
SELECT DISTINCT col0 * + CAST ( + col2 AS INTEGER ) + - col1 FROM tab2
----
158
1969
2985
query I rowsort
SELECT - 51 FROM tab0, tab1 AS cor0
----
9 values hashing to 08d3853e39924d3c636260a6dd856837
query I rowsort
SELECT DISTINCT + + col0 + - 24 * col2 FROM tab1 AS cor0
----
-1293
-1304
-2224
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6928
SELECT - col1 + + CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6928
SELECT - col1 + + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + ( - col1 ) col0 FROM tab1 cor0
----
-29
-74
-93
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6930
SELECT DISTINCT + col0 * - CAST( 33 * col1 AS SIGNED ) + col0 FROM tab0 AS cor0
----
-112000
-267178
-68088
skipif mysql # not compatible
query I rowsort label-6930
SELECT DISTINCT + col0 * - CAST ( 33 * col1 AS INTEGER ) + col0 FROM tab0 AS cor0
----
-112000
-267178
-68088
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6931
SELECT + col0 - - CAST( + col2 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
171
36
57
skipif mysql # not compatible
query I rowsort label-6931
SELECT + col0 - - CAST ( + col2 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
171
36
57
query I rowsort
SELECT DISTINCT - - col1 * + col0 * - 5 + - col1 AS col0 FROM tab1 AS cor0
----
-3210
-416
-5213
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * 7 + - cor0.col0 - col1 col2 FROM tab1 AS cor0
----
-2
-4
153
query I rowsort
SELECT DISTINCT - col1 - + 70 FROM tab0 cor0
----
-156
-161
-167
query I rowsort
SELECT - - col2 * 19 + - col0 * - col2 FROM tab1 AS cor0
----
1188
4731
9504
query I rowsort
SELECT - col0 * col1 - + ( col2 * - col2 ) FROM tab1 cor0
----
2609
2838
8176
query I rowsort
SELECT DISTINCT - col1 + - 57 FROM tab0 AS cor0
----
-143
-148
-154
query I rowsort
SELECT ALL - - 81 * col0 + col0 * col1 FROM tab2 AS cor0
----
10920
7742
784
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6939
SELECT DISTINCT - CAST( NULL AS DECIMAL ) * - cor0.col1 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-6939
SELECT DISTINCT - CAST ( NULL AS REAL ) * - cor0.col1 FROM tab2 AS cor0
----
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6940
SELECT DISTINCT CAST( NULL AS SIGNED ) * + ( - col1 ) * col2 AS col2 FROM tab0
----
NULL
skipif mysql # not compatible
query I rowsort label-6940
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + ( - col1 ) * col2 AS col2 FROM tab0
----
NULL
query I rowsort
SELECT ALL col2 * cor0.col0 * - col0 FROM tab0 AS cor0
----
-1225
-19008
-649522
query I rowsort
SELECT ALL col1 * - col2 * - cor0.col1 AS col2 FROM tab1 AS cor0
----
16224
36504
5700
query I rowsort
SELECT DISTINCT + col2 * - col1 + + col0 AS col1 FROM tab2 AS cor0
----
-1456
-567
-830
query I rowsort
SELECT + col0 + col1 + - col0 AS col2 FROM tab1
----
10
13
26
query I rowsort
SELECT ALL + 52 + 73 * col2 * col2 FROM tab1 AS cor0
----
212920
237229
672820
query I rowsort
SELECT col1 * + 87 + col0 FROM tab1 AS cor0
----
1211
2265
934
query I rowsort
SELECT ALL - - col1 * - col1 - ( - col1 ) * col1 * col2 FROM tab0 cor0
----
0
236672
670761
query I rowsort
SELECT + ( + 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-6949
SELECT ALL - col0 + + col0 * - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6949
SELECT ALL - col0 + + col0 * - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + ( col1 ) - + col0 col0 FROM tab1 AS cor0
----
-44
-54
49
onlyif mysql # use DIV operator for integer division
query I rowsort label-6951
SELECT DISTINCT + col1 * ( - col2 ) + col1 DIV - cor0.col0 col1 FROM tab0 AS cor0
----
-2841
-7463
-99
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6951
SELECT DISTINCT + col1 * ( - col2 ) + col1 / - cor0.col0 col1 FROM tab0 AS cor0
----
-2841
-7463
-99
query I rowsort
SELECT ALL - + col1 * 14 + + col0 * cor0.col0 + col0 * col2 AS col1 FROM tab0 AS cor0
----
-98
13945
164
query I rowsort
SELECT DISTINCT + - col2 + col1 + - ( col2 ) FROM tab1 AS cor0
----
-104
-179
-82
query I rowsort
SELECT ALL col0 * 12 + col2 * col1 AS col1 FROM tab1 AS cor0
----
1338
1440
2208
query I rowsort
SELECT col1 + col1 * ( + 64 + + tab0.col2 ) FROM tab0
----
13377
6402
8428
query I rowsort
SELECT tab0.col1 + col0 * col1 * 52 AS col2 FROM tab0
----
107414
176637
421239
query I rowsort
SELECT col1 * tab1.col2 - - 61 AS col0 FROM tab1
----
1309
1465
631
onlyif mysql # use DIV operator for integer division
query I rowsort label-6958
SELECT col2 DIV - col2 + + col2 + + col0 FROM tab1 AS cor0
----
120
175
56
skipif mysql # not compatible
query I rowsort label-6958
SELECT col2 / - col2 + + col2 + + col0 FROM tab1 AS cor0
----
120
175
56
query I rowsort
SELECT + 14 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 83e5779d2487d12495e7d816c797264f
query I rowsort
SELECT + 99 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 4b77467dd5f346109d29f6364a7bb8db
query I rowsort
SELECT DISTINCT col0 * col2 * - 82 FROM tab1
----
-13284
-299136
-629760
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6962
SELECT DISTINCT ( col1 * - CAST( col2 AS SIGNED ) ) FROM tab1
----
-1248
-1404
-570
skipif mysql # not compatible
query I rowsort label-6962
SELECT DISTINCT ( col1 * - CAST ( col2 AS INTEGER ) ) FROM tab1
----
-1248
-1404
-570
query I rowsort
SELECT + + ( cor0.col2 ) + col1 * 89 AS col1 FROM tab0 cor0
----
7687
8181
8634
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6964
SELECT col1 * col2 * CAST( - col0 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-3395
-664118
-68112
skipif mysql # not compatible
query I rowsort label-6964
SELECT col1 * col2 * CAST ( - col0 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-3395
-664118
-68112
query I rowsort
SELECT - 17 + - col0 FROM tab2 AS cor0
----
-24
-95
-96
query I rowsort
SELECT 35 * col2 FROM tab2 AS cor0
----
1330
910
945
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6967
SELECT col1 * CAST( NULL AS SIGNED ) + - 7 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6967
SELECT col1 * CAST ( NULL AS INTEGER ) + - 7 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT + ( - 53 ) AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to fee5c00ad71c23e23683a32c71fe6e7d
query I rowsort
SELECT DISTINCT + - col0 + - col0 AS col0 FROM tab2 AS cor0
----
-14
-156
-158
query I rowsort
SELECT ALL col1 + - 49 * cor0.col0 FROM tab1 AS cor0
----
-121
-3126
-3907
query I rowsort
SELECT ALL cor0.col1 + col0 + + col0 FROM tab0 AS cor0
----
134
167
269
query I rowsort
SELECT ALL + - col1 + ( + col2 ) FROM tab0 cor0
----
-53
-9
-96
query I rowsort
SELECT DISTINCT + ( - col0 ) * - col1 + + 53 FROM tab0 AS cor0
----
2117
3448
8152
query I rowsort
SELECT - 82 + + col0 * + cor0.col1 FROM tab2 AS cor0
----
1261
135
4520
query I rowsort
SELECT DISTINCT + 51 * + col0 AS col1 FROM tab0 AS cor0
----
1224
1785
4539
query I rowsort
SELECT ALL - + 59 + + col0 AS col0 FROM tab2 AS cor0
----
-52
19
20
onlyif mysql # use DIV operator for integer division
query I rowsort label-6977
SELECT ALL 36 DIV col0 AS col0 FROM tab1
----
0
0
12
skipif mysql # not compatible
query I rowsort label-6977
SELECT ALL 36 / col0 AS col0 FROM tab1
----
0
0
12
onlyif mysql # use DIV operator for integer division
query I rowsort label-6978
SELECT ALL 87 DIV col0 FROM tab1 cor0
----
1
1
29
skipif mysql # not compatible
query I rowsort label-6978
SELECT ALL 87 / col0 FROM tab1 cor0
----
1
1
29
query I rowsort
SELECT - col0 + 68 AS col2 FROM tab1 AS cor0
----
-12
4
65
query I rowsort
SELECT ALL - - 91 * - col2 + col2 FROM tab2 AS cor0
----
-2340
-2430
-3420
query I rowsort
SELECT + 79 * col2 * col0 FROM tab1 AS cor0
----
12798
288192
606720
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6982
SELECT CAST( 53 AS SIGNED ) col0 FROM tab1 AS cor0
----
53
53
53
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6982
SELECT CAST ( 53 AS INTEGER ) col0 FROM tab1 AS cor0
----
53
53
53
query I rowsort
SELECT col2 - - 41 * + col1 AS col2 FROM tab0
----
3559
3813
3978
query I rowsort
SELECT + 35 + col0 AS col0 FROM tab1
----
115
38
99
query I rowsort
SELECT + - ( col2 ) * - col0 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT cor0.col0 * + cor0.col2 * + cor0.col2 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 97ab23134d78a8edddbab5d9ecebd090
query I rowsort
SELECT - col2 * - 75 AS col2 FROM tab0 AS cor0
----
2475
6150
75
query I rowsort
SELECT DISTINCT + col2 * - cor0.col0 + - col2 * - cor0.col0 AS col2 FROM tab1 AS cor0
----
0
query I rowsort
SELECT ALL + col1 + - col2 * 74 FROM tab1 AS cor0
----
-3970
-4208
-7091
query I rowsort
SELECT ALL - 38 * + col0 FROM tab1
----
-114
-2432
-3040
query I rowsort
SELECT ALL 97 * col2 * col1 - + cor0.col1 AS col2 FROM tab1 AS cor0
----
121043
136162
55280
query I rowsort
SELECT DISTINCT + 43 + col2 * + 59 FROM tab1 AS cor0
----
3229
3406
5707
query I rowsort
SELECT - - col1 * + col2 + + ( col1 ) AS col2 FROM tab0 AS cor0
----
194
2924
7553
query I rowsort
SELECT - col1 * col1 * - col2 + + col0 * - 47 FROM tab1 cor0
----
12464
2692
36363
onlyif mysql # use DIV operator for integer division
query I rowsort label-6995
SELECT + + col2 DIV 99 + cor0.col1 AS col2 FROM tab2 AS cor0
----
17
31
59
skipif mysql # not compatible
query I rowsort label-6995
SELECT + + col2 / 99 + cor0.col1 AS col2 FROM tab2 AS cor0
----
17
31
59
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6996
SELECT + col2 * CAST( - col2 + col1 AS SIGNED ) FROM tab1 AS cor0
----
-1512
-2679
-7968
skipif mysql # not compatible
query I rowsort label-6996
SELECT + col2 * CAST ( - col2 + col1 AS INTEGER ) FROM tab1 AS cor0
----
-1512
-2679
-7968
query I rowsort
SELECT - col1 + col1 * + col1 AS col0 FROM tab1 cor0
----
156
650
90
onlyif mysql # use DIV operator for integer division
query I rowsort label-6998
SELECT - col0 DIV 20 + + col1 FROM tab0 AS cor0
----
85
87
96
skipif mysql # not compatible
query I rowsort label-6998
SELECT - col0 / 20 + + col1 FROM tab0 AS cor0
----
85
87
96
query I rowsort
SELECT - col2 + - cor0.col0 + col1 * col0 FROM tab1 AS cor0
----
21
519
864
query I rowsort
SELECT + ( + col2 * 44 ) + col0 + col0 FROM tab0
----
114
1500
3786
query I rowsort
SELECT - - col2 * 67 AS col1 FROM tab0 AS cor0
----
2211
5494
67
query I rowsort
SELECT + cor0.col1 FROM tab0, tab0 AS cor0, tab2, tab1 AS cor1
----
81 values hashing to 8c9db501a604ea66e3b5e5598f3f2a91
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 + 41 col0 FROM tab0 AS cor0
----
-41
40
8
query I rowsort
SELECT ALL ( 2 ) - col2 AS col0 FROM tab1 AS cor0
----
-52
-55
-94
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 79 * cor1.col0 col0 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to e03b0755ee3b20784a36adc02389b791
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 - col0 * col1 col2 FROM tab2 cor0
----
-1264
-210
-4524
query I rowsort
SELECT col1 * + cor0.col2 * cor0.col2 AS col1 FROM tab1 AS cor0
----
119808
32490
75816
onlyif mysql # use DIV operator for integer division
query I rowsort label-7008
SELECT + col1 + col1 + 78 DIV col0 FROM tab0 AS cor0
----
175
182
196
skipif mysql # not compatible
query I rowsort label-7008
SELECT + col1 + col1 + 78 / col0 FROM tab0 AS cor0
----
175
182
196
query I rowsort
SELECT DISTINCT col0 * + 40 FROM tab2 AS cor0
----
280
3120
3160
query I rowsort
SELECT DISTINCT + col0 * + 54 AS col0 FROM tab0 AS cor0
----
1296
1890
4806
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - 10 * col2 + col2 col1 FROM tab2
----
-15314
-6422
-8343
onlyif mysql # use DIV operator for integer division
query I rowsort label-7012
SELECT + col0 DIV + col2 + 58 + col1 FROM tab0 AS cor0
----
144
150
190
skipif mysql # not compatible
query I rowsort label-7012
SELECT + col0 / + col2 + 58 + col1 FROM tab0 AS cor0
----
144
150
190
query I rowsort
SELECT - cor0.col0 * + col0 - cor0.col0 FROM tab1 AS cor0
----
-12
-4160
-6480
query I rowsort
SELECT - - cor0.col2 - + col2 FROM tab2 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-7015
SELECT ALL col0 DIV + 35 FROM tab1 AS cor0
----
0
1
2
skipif mysql # not compatible
query I rowsort label-7015
SELECT ALL col0 / + 35 FROM tab1 AS cor0
----
0
1
2
query I rowsort
SELECT col2 + - col1 + + col2 AS col2 FROM tab0 AS cor0
----
-20
-95
73
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7017
SELECT DISTINCT - col0 + - CAST( + cor0.col1 AS SIGNED ) * col0 FROM tab2 AS cor0
----
-1422
-224
-4680
skipif mysql # not compatible
query I rowsort label-7017
SELECT DISTINCT - col0 + - CAST ( + cor0.col1 AS INTEGER ) * col0 FROM tab2 AS cor0
----
-1422
-224
-4680
query I rowsort
SELECT ALL - - col2 + col0 * - col0 FROM tab2 AS cor0
----
-22
-6058
-6203
query I rowsort
SELECT - cor0.col1 - + col2 * ( col1 * - cor0.col1 ) AS col0 FROM tab2 AS cor0
----
10965
25916
90447
query I rowsort
SELECT - - cor0.col1 * - ( col1 ) * col2 FROM tab2 AS cor0
----
-10982
-25947
-90506
query I rowsort
SELECT DISTINCT + - col1 + 34 AS col1 FROM tab2 AS cor0
----
-25
17
3
query I rowsort
SELECT DISTINCT col2 + + 90 * + col2 AS col1 FROM tab2 AS cor0
----
2366
2457
3458
query I rowsort
SELECT col1 * + col2 * col0 AS col1 FROM tab0
----
3395
664118
68112
onlyif mysql # use DIV operator for integer division
query I rowsort label-7024
SELECT DISTINCT 73 * 22 DIV + cor0.col0 + + col0 + - cor0.col1 * - col1 FROM tab2 AS cor0
----
1197
3579
388
skipif mysql # not compatible
query I rowsort label-7024
SELECT DISTINCT 73 * 22 / + cor0.col0 + + col0 + - cor0.col1 * - col1 FROM tab2 AS cor0
----
1197
3579
388
query I rowsort
SELECT ( - col2 ) * col0 + col2 FROM tab2 AS cor0
----
-162
-2002
-2964
query I rowsort
SELECT ALL - col0 * - cor0.col1 + col1 * col2 * col0 FROM tab0 cor0
----
672217
6790
70176
query I rowsort
SELECT DISTINCT + + col0 - col0 AS col2 FROM tab1 AS cor0
----
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-7028
SELECT - + cor0.col0 * - col1 DIV - col1 + + col1 FROM tab0 AS cor0
----
2
62
62
skipif mysql # not compatible
query I rowsort label-7028
SELECT - + cor0.col0 * - col1 / - col1 + + col1 FROM tab0 AS cor0
----
2
62
62
query I rowsort
SELECT tab0.col1 + ( tab0.col0 ) * col0 AS col1 FROM tab0
----
1322
662
8012
query I rowsort
SELECT - col0 * col2 * - 14 AS col2 FROM tab2 AS cor0
----
2646
28392
42028
query III rowsort
SELECT ALL * FROM tab1 WHERE NULL = + col1
----
query I rowsort
SELECT + col2 + col2 * + col1 AS col1 FROM tab2
----
1560
684
864
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab2.col0 + - col2 col1 FROM tab2
----
-20
41
52
query I rowsort
SELECT - tab2.col0 AS col2 FROM tab2 WHERE NOT NULL > NULL
----
query I rowsort
SELECT - col1 * col2 * 3 AS col0 FROM tab2
----
-1938
-2511
-4602
query I rowsort
SELECT - 69 * col1 AS col1 FROM tab2
----
-1173
-2139
-4071
query I rowsort
SELECT DISTINCT 77 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
77
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7038
SELECT - cor0.col1 * col1 * + CAST( - col0 AS SIGNED ) col1 FROM tab0 AS cor0
----
177504
329315
737009
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7038
SELECT - cor0.col1 * col1 * + CAST ( - col0 AS INTEGER ) col1 FROM tab0 AS cor0
----
177504
329315
737009
query I rowsort
SELECT - col0 - tab2.col1 * + col0 FROM tab2
----
-1422
-224
-4680
onlyif mysql # use DIV operator for integer division
query I rowsort label-7040
SELECT - col2 DIV 47 AS col0 FROM tab1 AS cor0
----
-1
-1
-2
skipif mysql # not compatible
query I rowsort label-7040
SELECT - col2 / 47 AS col0 FROM tab1 AS cor0
----
-1
-1
-2
query I rowsort
SELECT ALL + + 57 AS col2 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 61da70c624ad60604a668f7f8f29392a
query I rowsort
SELECT ALL - - col0 + col0 * ( + col2 ) + col0 AS col1 FROM tab1 cor0
----
168
3776
7840
query I rowsort
SELECT - + ( col1 ) + + col2 * + col1 FROM tab0 cor0
----
0
2752
7371
onlyif mysql # use DIV operator for integer division
query I rowsort label-7044
SELECT + + cor0.col1 DIV col0 AS col2 FROM tab2 cor0
----
0
0
4
skipif mysql # not compatible
query I rowsort label-7044
SELECT + + cor0.col1 / col0 AS col2 FROM tab2 cor0
----
0
0
4
query I rowsort
SELECT DISTINCT + col1 + 83 AS col2 FROM tab1 cor0
----
109
93
96
query I rowsort
SELECT ALL + cor0.col1 * 46 AS col2 FROM tab1 AS cor0
----
1196
460
598
query I rowsort
SELECT DISTINCT + col2 * + 50 - 68 AS col0 FROM tab1 AS cor0
----
2632
2782
4732
query I rowsort
SELECT ALL cor0.col2 * 35 + col0 AS col0 FROM tab0 AS cor0
----
1179
2959
70
query I rowsort
SELECT ALL - - col1 * - 86 FROM tab1 AS cor0
----
-1118
-2236
-860
query I rowsort
SELECT - - col0 + 10 FROM tab2 AS cor0
----
17
88
89
query I rowsort
SELECT 27 + 47 FROM tab2
----
74
74
74
query I rowsort
SELECT DISTINCT - col1 * 15 + col1 * ( + 69 ) * col2 FROM tab2
----
104961
44319
57288
query I rowsort
SELECT + 88 * col0 * - col1 AS col1 FROM tab0
----
-181632
-298760
-712712
query I rowsort
SELECT ( + 85 * tab0.col2 ) + ( col0 ) * + col0 FROM tab0
----
1310
14891
3381
skipif mysql # not compatible
query I rowsort
SELECT - CAST ( col0 AS REAL ) + - col0 FROM tab1
----
-128
-160
-6
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 45 + + 38 col2 FROM tab1
----
83
83
83
query I rowsort
SELECT cor0.col1 + - col1 + + col0 AS col2 FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT ALL col0 * cor0.col2 + - col2 AS col2 FROM tab2 cor0
----
162
2002
2964
query I rowsort
SELECT - col1 + + col0 * - 93 AS col1 FROM tab2 AS cor0
----
-682
-7313
-7364
query I rowsort
SELECT ALL 15 * col1 AS col0 FROM tab2 AS cor0
----
255
465
885
onlyif mysql # use DIV operator for integer division
query I rowsort label-7061
SELECT DISTINCT + col1 DIV - col2 + 74 * col0 FROM tab1 AS cor0
----
222
4736
5920
skipif mysql # not compatible
query I rowsort label-7061
SELECT DISTINCT + col1 / - col2 + 74 * col0 FROM tab1 AS cor0
----
222
4736
5920
query I rowsort
SELECT DISTINCT - 23 * + col1 * col2 + 74 * col1 AS col0 FROM tab0 AS cor0
----
-164892
-58910
4947
query I rowsort
SELECT DISTINCT col0 + - cor0.col0 * 61 AS col2 FROM tab1 AS cor0
----
-180
-3840
-4800
query I rowsort
SELECT ALL - col1 + cor0.col1 * + cor0.col0 * col0 FROM tab2 AS cor0
----
106080
1488
358897
query I rowsort
SELECT DISTINCT + + 74 FROM tab0 AS cor0
----
74
query I rowsort
SELECT ALL - col0 * col0 + 79 AS col2 FROM tab0 AS cor0
----
-1146
-497
-7842
query I rowsort
SELECT DISTINCT ( - cor0.col2 ) * col1 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT ALL + 39 + + col2 FROM tab2 AS cor0
----
65
66
77
query I rowsort
SELECT DISTINCT + col0 * col1 + 3 * - ( col2 ) FROM tab1 cor0
----
-84
469
752
query I rowsort
SELECT DISTINCT - - col2 * col2 + ( 79 ) * col0 + + col1 FROM tab0 AS cor0
----
13846
2863
3071
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 91 + - col1 * 56 col2 FROM tab1 AS cor0
----
-1547
-651
-819
onlyif mysql # use DIV operator for integer division
query I rowsort label-7072
SELECT ALL - 16 + col1 DIV 30 - + col2 * - col1 FROM tab1 AS cor0
----
1232
1388
554
skipif mysql # not compatible
query I rowsort label-7072
SELECT ALL - 16 + col1 / 30 - + col2 * - col1 FROM tab1 AS cor0
----
1232
1388
554
query I rowsort
SELECT ALL ( - col1 ) * + ( - 22 ) AS col1 FROM tab0 AS cor0
----
1892
2002
2134
query I rowsort
SELECT - ( + col0 ) * - col2 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT ALL col2 * col2 - + ( + col0 ) AS col1 FROM tab1 AS cor0
----
2913
3185
9136
query I rowsort
SELECT DISTINCT + + col2 + + col1 * - col1 AS col2 FROM tab2 AS cor0
----
-251
-3455
-934
query I rowsort
SELECT + col0 - - col2 * col1 FROM tab0 AS cor0
----
132
2862
7551
query I rowsort
SELECT DISTINCT + col2 * col1 - + cor0.col0 * + col1 FROM tab1 AS cor0
----
-70
1326
208
onlyif mysql # use DIV operator for integer division
query I rowsort label-7079
SELECT DISTINCT tab0.col0 DIV - col0 FROM tab0
----
-1
skipif mysql # not compatible
query I rowsort label-7079
SELECT DISTINCT tab0.col0 / - col0 FROM tab0
----
-1
query I rowsort
SELECT DISTINCT + col2 + col2 + col2 AS col0 FROM tab0
----
246
3
99
query I rowsort
SELECT + + ( col1 ) * - col2 + - col0 FROM tab2 cor0
----
-1612
-725
-844
query I rowsort
SELECT ( - col2 * col0 ) FROM tab1
----
-162
-3648
-7680
query I rowsort
SELECT col0 * - ( - col0 ) AS col2 FROM tab1
----
4096
6400
9
onlyif mysql # use DIV operator for integer division
query I rowsort label-7084
SELECT DISTINCT col1 + col0 DIV tab2.col1 AS col0 FROM tab2
----
21
31
60
skipif mysql # not compatible
query I rowsort label-7084
SELECT DISTINCT col1 + col0 / tab2.col1 AS col0 FROM tab2
----
21
31
60
query I rowsort
SELECT ALL - ( 37 ) * - tab2.col2 + col0 * col2 FROM tab2
----
1188
2990
4408
query I rowsort
SELECT + ( 73 + col2 * col2 ) FROM tab1
----
2989
3322
9289
query I rowsort
SELECT ALL 69 * col1 * col0 FROM tab2 AS cor0
----
14973
317538
92667
query I rowsort
SELECT ALL + col1 + + col1 * - col1 FROM tab1 AS cor0
----
-156
-650
-90
onlyif mysql # use DIV operator for integer division
query I rowsort label-7089
SELECT DISTINCT + + 71 DIV col0 FROM tab2 cor0
----
0
10
skipif mysql # not compatible
query I rowsort label-7089
SELECT DISTINCT + + 71 / col0 FROM tab2 cor0
----
0
10
query I rowsort
SELECT 95 * col1 + - col2 * col1 AS col0 FROM tab0 AS cor0
----
1183
5332
9118
query I rowsort
SELECT ALL col1 + - cor0.col0 * col0 FROM tab2 AS cor0
----
-18
-6025
-6224
query I rowsort
SELECT ALL - - 34 * - cor0.col1 FROM tab1 cor0
----
-340
-442
-884
query I rowsort
SELECT + col1 + col0 * + col0 FROM tab2 AS cor0
----
6143
6258
80
query I rowsort
SELECT DISTINCT cor0.col2 + + col0 AS col2 FROM tab2 AS cor0
----
104
117
34
query I rowsort
SELECT col2 FROM tab2 WHERE col0 BETWEEN ( NULL ) AND col2 * col1 + col0
----
query I rowsort
SELECT tab0.col1 * tab0.col1 + tab0.col1 FROM tab0
----
7482
8372
9506
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col1 = ( NULL )
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - tab1.col1 + - col1 col2 FROM tab1
----
-20
-26
-52
onlyif mysql # use DIV operator for integer division
query I rowsort label-7099
SELECT + col2 + - col2 DIV + col1 FROM tab2
----
26
27
36
skipif mysql # not compatible
query I rowsort label-7099
SELECT + col2 + - col2 / + col1 FROM tab2
----
26
27
36
query I rowsort
SELECT ALL + tab0.col0 * col0 - col0 * - col1 FROM tab0
----
16020
2640
4620
query I rowsort
SELECT tab1.col0 + - col2 * col1 * col0 + - col0 * - col2 FROM tab1 WHERE NOT - col0 * col0 / col2 <> NULL
----
query III rowsort
SELECT ALL * FROM tab2 WHERE col0 = - col2
----
query I rowsort
SELECT col1 * col0 AS col1 FROM tab1 WHERE NULL <> NULL
----
query I rowsort
SELECT - col2 + - col0 + col1 AS col0 FROM tab2
----
-100
-3
-45
onlyif mysql # use DIV operator for integer division
query I rowsort label-7105
SELECT - col1 DIV col2 + - col2 AS col1 FROM tab1 WHERE NOT - col2 IN ( + col0 )
----
-54
-57
-96
skipif mysql # not compatible
query I rowsort label-7105
SELECT - col1 / col2 + - col2 AS col1 FROM tab1 WHERE NOT - col2 IN ( + col0 )
----
-54
-57
-96
query I rowsort
SELECT ALL col0 FROM tab0 WHERE ( NULL ) <> NULL
----
query I rowsort
SELECT ALL + col0 * tab1.col1 - col2 FROM tab1
----
24
583
944
query I rowsort
SELECT DISTINCT + col0 + col2 * col0 FROM tab0 cor0
----
70
7387
816
query I rowsort
SELECT DISTINCT col1 + col2 * col0 FROM tab2 AS cor0
----
2087
220
3019
query I rowsort
SELECT ALL + col1 + col0 * col1 * col2 AS col2 FROM tab2 AS cor0
----
119711
51051
5890
query I rowsort
SELECT col0 * - col2 + - cor0.col0 AS col2 FROM tab0 AS cor0
----
-70
-7387
-816
onlyif mysql # use DIV operator for integer division
query I rowsort label-7112
SELECT col1 * + col1 DIV - col1 col2 FROM tab2 AS cor0
----
-17
-31
-59
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7112
SELECT col1 * + col1 / - col1 col2 FROM tab2 AS cor0
----
-17
-31
-59
query I rowsort
SELECT + + col0 * col1 + - cor0.col1 FROM tab2 AS cor0
----
1326
186
4543
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + col0 - - col0 col0 FROM tab2 AS cor0
----
56
6162
6320
query I rowsort
SELECT + col2 * - col0 - + col0 AS col1 FROM tab2 AS cor0
----
-196
-2106
-3081
query I rowsort
SELECT - + col2 - col0 * col0 * cor0.col1 FROM tab2 AS cor0
----
-106135
-1546
-358982
query I rowsort
SELECT col0 * - col1 * + col1 + - col0 FROM tab0 AS cor0
----
-177528
-329350
-737098
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) <= ( col0 )
----
query IIIIII rowsort
SELECT * FROM tab1, tab2 AS cor0 WHERE NOT NULL NOT IN ( + cor0.col1 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-7120
SELECT + col1 DIV - col0 AS col0 FROM tab1
----
-8
0
0
skipif mysql # not compatible
query I rowsort label-7120
SELECT + col1 / - col0 AS col0 FROM tab1
----
-8
0
0
query I rowsort
SELECT - col1 + - tab2.col2 AS col0 FROM tab2
----
-55
-58
-85
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 45 col0 FROM tab2, tab0 AS cor0
----
45
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - col1 - - col2 * - col1 col2 FROM tab1
----
-1417
-2080
-670
query I rowsort
SELECT DISTINCT ( col0 * + col1 ) AS col0 FROM tab0
----
2064
3395
8099
query I rowsort
SELECT DISTINCT 91 * - 71 * - col2 AS col0 FROM tab0
----
213213
529802
6461
query I rowsort
SELECT + col2 + col2 * - col1 AS col2 FROM tab0
----
-2805
-7380
-96
query I rowsort
SELECT DISTINCT - ( col2 + col1 ) * + ( col0 ) * + col2 FROM tab1
----
-12960
-244416
-837120
query I rowsort
SELECT DISTINCT - - col1 - 92 FROM tab2 cor0
----
-33
-61
-75
query I rowsort
SELECT DISTINCT col0 - - 90 * col1 AS col2 FROM tab1 AS cor0
----
1250
2343
964
query I rowsort
SELECT - col0 * col0 + col0 AS col1 FROM tab2
----
-42
-6006
-6162
query I rowsort
SELECT ALL + col1 * col0 * - col2 AS col0 FROM tab2 AS cor0
----
-119652
-51034
-5859
query I rowsort
SELECT DISTINCT + col1 + - cor0.col0 + - 53 FROM tab2 AS cor0
----
-115
-29
-72
onlyif mysql # use DIV operator for integer division
query I rowsort label-7133
SELECT + - col2 + + col0 DIV col1 - col0 FROM tab0 AS cor0
----
-171
-36
-57
skipif mysql # not compatible
query I rowsort label-7133
SELECT + - col2 + + col0 / col1 - col0 FROM tab0 AS cor0
----
-171
-36
-57
query I rowsort
SELECT + + col1 * col0 + col1 - + col2 FROM tab2 AS cor0
----
1322
221
4635
query I rowsort
SELECT + 73 + - col1 AS col0 FROM tab2 AS cor0
----
14
42
56
query I rowsort
SELECT + 82 + - col1 AS col1 FROM tab2 AS cor0
----
23
51
65
query I rowsort
SELECT ALL + 52 + col2 FROM tab1 AS cor0
----
106
109
148
query I rowsort
SELECT DISTINCT 65 * col0 + + 33 FROM tab2 AS cor0
----
488
5103
5168
query I rowsort
SELECT ALL + col0 * col0 + + ( - col1 ) FROM tab2 cor0
----
18
6025
6224
query I rowsort
SELECT - - 92 + col0 FROM tab0 AS cor0
----
116
127
181
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + - cor0.col0 col0 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT col0 * cor0.col1 * 79 FROM tab0 AS cor0
----
163056
268205
639821
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7143
SELECT ALL - col0 * - col0 + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7143
SELECT ALL - col0 * - col0 + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 76 col1 FROM tab1 AS cor0
----
76
76
76
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0 cor0 CROSS JOIN tab1, tab0 AS cor1, tab0, tab2 AS cor2
----
3645 values hashing to 713ff9f9cde43214a064a8e6ada00f4e
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * 40 * - col0 col1 FROM tab0 AS cor0
----
-1400
-291920
-31680
query I rowsort
SELECT DISTINCT + col1 * 18 FROM tab1 AS cor0
----
180
234
468
query I rowsort
SELECT - col0 * - col1 + 70 FROM tab1 AS cor0
----
1110
148
710
query I rowsort
SELECT DISTINCT + col2 * 60 AS col2 FROM tab0 AS cor0
----
1980
4920
60
query I rowsort
SELECT DISTINCT + col1 * 6 FROM tab0 AS cor0
----
516
546
582
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7151
SELECT ALL - col2 * CAST( + 93 AS SIGNED ) FROM tab1 AS cor0
----
-5022
-5301
-8928
skipif mysql # not compatible
query I rowsort label-7151
SELECT ALL - col2 * CAST ( + 93 AS INTEGER ) FROM tab1 AS cor0
----
-5022
-5301
-8928
query I rowsort
SELECT ALL - 27 AS col2 FROM tab0 AS cor0
----
-27
-27
-27
query I rowsort
SELECT ALL cor0.col1 AS col1 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892
query I rowsort
SELECT + ( - cor0.col1 ) FROM tab0, tab0 cor0
----
9 values hashing to 58ed467a9a332e4d7bfaa9abdbbd063f
query I rowsort
SELECT ALL + - ( ( - col2 ) ) AS col0 FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT ALL - 81 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 205b3ff2d7b1817c98d7980b8c17e6c1
query I rowsort
SELECT - cor1.col1 FROM tab1, tab2 AS cor0, tab1 cor1
----
27 values hashing to c7890469eabb2c6fc81454b35d2333b6
query I rowsort
SELECT DISTINCT col0 * ( + col0 ) AS col0 FROM tab1 AS cor0
----
4096
6400
9
query I rowsort
SELECT ALL 89 FROM tab2 AS cor0 CROSS JOIN tab0, tab2 AS cor1
----
27 values hashing to 860d55eb6785972467218a9c3badb5ad
query I rowsort
SELECT DISTINCT + 93 * cor0.col0 * col0 FROM tab1 AS cor0
----
380928
595200
837
query I rowsort
SELECT DISTINCT 68 * - col0 - + col2 AS col0 FROM tab1 AS cor0
----
-258
-4409
-5536
query I rowsort
SELECT DISTINCT + ( 37 ) + - col2 FROM tab0 cor0
----
-45
36
4
onlyif mysql # use DIV operator for integer division
query I rowsort label-7163
SELECT - + ( + col0 ) + - col1 DIV + 69 AS col2 FROM tab0 AS cor0
----
-25
-36
-90
skipif mysql # not compatible
query I rowsort label-7163
SELECT - + ( + col0 ) + - col1 / + 69 AS col2 FROM tab0 AS cor0
----
-25
-36
-90
query I rowsort
SELECT ALL - cor0.col1 * - 97 AS col0 FROM tab2 AS cor0
----
1649
3007
5723
onlyif mysql # use DIV operator for integer division
query I rowsort label-7165
SELECT DISTINCT + + col1 DIV + col1 + col0 FROM tab0 AS cor0
----
25
36
90
skipif mysql # not compatible
query I rowsort label-7165
SELECT DISTINCT + + col1 / + col1 + col0 FROM tab0 AS cor0
----
25
36
90
query I rowsort
SELECT ALL - 53 * + 43 - - col1 * col0 FROM tab2 AS cor0
----
-2062
-936
2323
query I rowsort
SELECT DISTINCT - 67 * + col1 FROM tab0 cor0
----
-5762
-6097
-6499
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( 4 ) col0 FROM tab1 AS cor0
----
4
4
4
query I rowsort
SELECT DISTINCT - ( 87 ) * - col0 + 12 FROM tab1 AS cor0
----
273
5580
6972
query I rowsort
SELECT ALL ( cor0.col2 ) * col2 + col1 * + col0 * - col2 FROM tab2 AS cor0
----
-118976
-49590
-5130
query I rowsort
SELECT + 54 * col0 + col1 AS col1 FROM tab2 AS cor0
----
409
4271
4283
query I rowsort
SELECT - + col2 * 67 AS col1 FROM tab1 AS cor0
----
-3618
-3819
-6432
query I rowsort
SELECT ALL + 68 * - col1 + col0 * + 1 + col2 AS col0 FROM tab0 AS cor0
----
-5791
-6017
-6560
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + col1 + ( tab1.col0 * 78 ) col2 FROM tab1
----
314
5059
6349
query I rowsort
SELECT - col2 + 35 * + col1 FROM tab2 AS cor0
----
1058
2039
557
onlyif mysql # use DIV operator for integer division
query I rowsort label-7176
SELECT - - 42 DIV col0 AS col0 FROM tab1 AS cor0
----
0
0
14
skipif mysql # not compatible
query I rowsort label-7176
SELECT - - 42 / col0 AS col0 FROM tab1 AS cor0
----
0
0
14
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7177
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + 60 AS col1 FROM tab2
----
NULL
skipif mysql # not compatible
query I rowsort label-7177
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + 60 AS col1 FROM tab2
----
NULL
query I rowsort
SELECT cor0.col2 + 99 * + 10 * col1 + - 21 * cor0.col1 FROM tab2 AS cor0
----
16511
30066
57197
query I rowsort
SELECT ALL col2 + col1 - col2 AS col1 FROM tab0
----
86
91
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-7180
SELECT DISTINCT + col0 DIV + tab0.col2 + + col0 AS col0 FROM tab0
----
24
70
90
skipif mysql # not compatible
query I rowsort label-7180
SELECT DISTINCT + col0 / + tab0.col2 + + col0 AS col0 FROM tab0
----
24
70
90
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * col1 * col0 + + ( - col2 ) * ( - col1 ) col0 FROM tab0
----
180342
329412
744471
query I rowsort
SELECT col1 + - ( + col0 ) * + col1 FROM tab0
----
-1978
-3298
-8008
query I rowsort
SELECT DISTINCT 75 AS col1 FROM tab0, tab1 AS cor0
----
75
query I rowsort
SELECT DISTINCT + col2 * - 26 FROM tab2 cor0
----
-676
-702
-988
onlyif mysql # use DIV operator for integer division
query I rowsort label-7185
SELECT ALL cor0.col1 DIV - ( col0 ) + + col1 FROM tab0 AS cor0
----
83
90
95
skipif mysql # not compatible
query I rowsort label-7185
SELECT ALL cor0.col1 / - ( col0 ) + + col1 FROM tab0 AS cor0
----
83
90
95
query I rowsort
SELECT DISTINCT col2 * ( + ( col1 ) ) FROM tab0 AS cor0
----
2838
7462
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-7187
SELECT + col2 DIV ( col1 ) FROM tab2 AS cor0
----
0
0
2
skipif mysql # not compatible
query I rowsort label-7187
SELECT + col2 / ( col1 ) FROM tab2 AS cor0
----
0
0
2
query I rowsort
SELECT col2 + col1 * - 65 * col1 FROM tab1 AS cor0
----
-10889
-43886
-6443
query I rowsort
SELECT - - 14 * - col0 + ( col2 ) FROM tab2 AS cor0
----
-1066
-1068
-71
query I rowsort
SELECT ALL + col1 + col1 * - ( - col2 * + cor0.col0 ) FROM tab1 AS cor0
----
36490
4238
99853
query I rowsort
SELECT ALL + - col1 + col2 - 14 * 27 FROM tab1 AS cor0
----
-295
-331
-350
query I rowsort
SELECT DISTINCT - - ( - col0 ) FROM tab2 AS cor0
----
-7
-78
-79
query I rowsort
SELECT DISTINCT + 18 * + col2 FROM tab2 AS cor0
----
468
486
684
query I rowsort
SELECT ALL col2 + col2 + col1 * - col1 FROM tab2 cor0
----
-213
-3429
-907
query I rowsort
SELECT + col1 * + ( + 81 ) * - col1 AS col0 FROM tab0 AS cor0
----
-599076
-670761
-762129
query I rowsort
SELECT cor0.col1 * - ( col2 * col0 ) FROM tab2 AS cor0
----
-119652
-51034
-5859
query I rowsort
SELECT + col2 * col2 * col2 + - col2 * - cor0.col0 AS col0 FROM tab1 AS cor0
----
157626
188841
892416
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 71 col1 FROM tab1, tab2 cor0, tab0 cor1, tab0 AS cor2
----
71
query I rowsort
SELECT col1 + 72 * - col0 FROM tab0 AS cor0
----
-1642
-2423
-6317
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7200
SELECT - CAST( NULL AS SIGNED ) * col1 FROM tab1 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7200
SELECT - CAST ( NULL AS INTEGER ) * col1 FROM tab1 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL 35 + + ( col2 ) FROM tab2
----
61
62
73
query I rowsort
SELECT - 98 + col2 AS col2 FROM tab0 AS cor0
----
-16
-65
-97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 36 * + col1 + 89 col1 FROM tab2 cor0
----
1205
2213
701
query I rowsort
SELECT + col1 * - 96 FROM tab1
----
-1248
-2496
-960
query I rowsort
SELECT + ( + col1 ) * + col2 * tab1.col0 FROM tab1
----
36480
4212
99840
query I rowsort
SELECT DISTINCT - ( + 96 ) * col2 * col2 FROM tab1
----
-279936
-311904
-884736
query I rowsort
SELECT + col2 * tab1.col0 * - col0 FROM tab1
----
-233472
-486
-614400
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * + col2 col2 FROM tab1
----
162
3648
7680
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 65 col0 FROM tab2
----
65
query I rowsort
SELECT col1 * + col1 + col1 FROM tab0 AS cor0
----
7482
8372
9506
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7211
SELECT DISTINCT + + col1 + - cor0.col1 * CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-7211
SELECT DISTINCT + + col1 + - cor0.col1 * CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 78 col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 2aff42d3e015022a738905090a20dfd4
query I rowsort
SELECT + col2 + col0 + col2 * + 54 AS col1 FROM tab2 cor0
----
1492
1508
2169
query I rowsort
SELECT 75 + + 90 FROM tab0, tab2 AS cor0, tab0 cor1
----
27 values hashing to 3bead38bbc273b32c3680892faf10d6b
query I rowsort
SELECT 17 AS col0 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to e0dd9155e4d67132637a04c18ef46b2a
query I rowsort
SELECT 61 * col2 * + col2 AS col2 FROM tab2
----
41236
44469
88084
query I rowsort
SELECT - ( 85 ) AS col0 FROM tab1, tab1 cor0
----
9 values hashing to 8ebc8ffafb1517ea04e3a6fc4059d88a
query I rowsort
SELECT + col1 + + col0 * col2 FROM tab2
----
2087
220
3019
query I rowsort
SELECT - 30 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to a96370a8187089b6b83ce9bfbade5142
query I rowsort
SELECT ALL - 89 FROM tab2, tab0 cor0
----
9 values hashing to 924a74d31360fa4301c953b423a4710e
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7221
SELECT - CAST( col1 AS SIGNED ) * col1 AS col1 FROM tab2 AS cor0
----
-289
-3481
-961
skipif mysql # not compatible
query I rowsort label-7221
SELECT - CAST ( col1 AS INTEGER ) * col1 AS col1 FROM tab2 AS cor0
----
-289
-3481
-961
query I rowsort
SELECT + + col2 * 89 + - col1 FROM tab0 AS cor0
----
-8
2851
7207
onlyif mysql # use DIV operator for integer division
query I rowsort label-7223
SELECT + col2 + col2 + col0 DIV cor0.col1 col0 FROM tab1 AS cor0
----
108
120
198
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7223
SELECT + col2 + col2 + col0 / cor0.col1 col0 FROM tab1 AS cor0
----
108
120
198
query I rowsort
SELECT + col2 + + 59 * col2 FROM tab1 AS cor0
----
3240
3420
5760
query I rowsort
SELECT + cor0.col2 + + col2 * col2 AS col2 FROM tab1 AS cor0
----
2970
3306
9312
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7226
SELECT - + CAST( NULL AS SIGNED ) + + col0 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7226
SELECT - + CAST ( NULL AS INTEGER ) + + col0 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort
SELECT - CAST ( - col1 AS REAL ) * - col1 + ( - col2 ) + + col0 AS col0 FROM tab0 cor0
----
-7405
-8274
-9375
query I rowsort
SELECT + col1 + - col0 * col1 * cor0.col2 FROM tab1 cor0
----
-36470
-4186
-99827
query I rowsort
SELECT ALL - 76 * + col2 FROM tab0
----
-2508
-6232
-76
query I rowsort
SELECT - 30 + - col1 AS col1 FROM tab1
----
-40
-43
-56
query I rowsort
SELECT DISTINCT ( + col2 ) * + ( - ( - col0 ) ) * + 16 + col0 FROM tab0
----
116857
12696
595
query I rowsort
SELECT tab2.col1 - - col2 AS col0 FROM tab2
----
55
58
85
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 62 * + col1 + tab1.col2 col0 FROM tab1
----
1666
677
902
query I rowsort
SELECT DISTINCT cor0.col0 * 62 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2, tab2 AS cor1
----
1488
2170
5518
onlyif mysql # use DIV operator for integer division
query I rowsort label-7235
SELECT DISTINCT - - col2 DIV + 94 + col0 * col2 DIV col1 + 38 * col1 FROM tab2 AS cor0
----
1184
2276
822
skipif mysql # not compatible
query I rowsort label-7235
SELECT DISTINCT - - col2 / + 94 + col0 * col2 / col1 + 38 * col1 FROM tab2 AS cor0
----
1184
2276
822
query I rowsort
SELECT DISTINCT - - col2 * + 76 FROM tab2 AS cor0
----
1976
2052
2888
onlyif mysql # use DIV operator for integer division
query I rowsort label-7237
SELECT - col0 DIV + ( - 61 ) FROM tab0 AS cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-7237
SELECT - col0 / + ( - 61 ) FROM tab0 AS cor0
----
0
0
1
query I rowsort
SELECT + col1 + col1 * col1 * - col2 AS col1 FROM tab0 AS cor0
----
-243982
-678951
-9312
query I rowsort
SELECT + ( + col1 ) + + col2 * - col1 FROM tab1 cor0
----
-1235
-1378
-560
query I rowsort
SELECT - - 91 + - col0 FROM tab0 AS cor0
----
2
56
67
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col2 + col1 * + col1 col1 FROM tab0 AS cor0
----
7363
8199
9408
query I rowsort
SELECT - + col1 - - 5 AS col1 FROM tab1 AS cor0
----
-21
-5
-8
query I rowsort
SELECT ALL - - col1 * col0 + col1 * - cor0.col0 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT ALL 7 * col0 + + 60 + cor0.col1 AS col2 FROM tab1 AS cor0
----
107
518
633
query I rowsort
SELECT - col0 + + col2 * 7 FROM tab1 AS cor0
----
335
375
592
query I rowsort
SELECT ALL - 40 + + cor0.col0 FROM tab2 AS cor0
----
-33
38
39
query I rowsort
SELECT ALL - 44 + col0 FROM tab1 AS cor0
----
-41
20
36
query I rowsort
SELECT DISTINCT + 47 + col2 FROM tab2 cor0
----
73
74
85
query I rowsort
SELECT DISTINCT + + cor0.col0 + + col1 AS col0 FROM tab0 cor0
----
110
132
180
query I rowsort
SELECT ALL - - col2 - cor0.col2 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT + col2 * + col1 + ( 16 ) AS col0 FROM tab1 AS cor0
----
1264
1420
586
query I rowsort
SELECT ALL + - cor0.col0 + col1 * - 57 - + 36 AS col0 FROM tab0 AS cor0
----
-4962
-5312
-5600
query I rowsort
SELECT DISTINCT col2 * + col0 + + 18 + col2 FROM tab0 cor0
----
54
7398
843
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7254
SELECT - + CAST( NULL AS SIGNED ) col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7254
SELECT - + CAST ( NULL AS INTEGER ) col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
onlyif mysql # use DIV operator for integer division
query I rowsort label-7255
SELECT + 16 * + col0 + + CAST( + cor0.col2 AS SIGNED ) DIV + cor0.col0 FROM tab1 cor0
----
1024
1281
66
skipif mysql # not compatible
query I rowsort label-7255
SELECT + 16 * + col0 + + CAST ( + cor0.col2 AS INTEGER ) / + cor0.col0 FROM tab1 cor0
----
1024
1281
66
query I rowsort
SELECT - col2 - col1 AS col1 FROM tab0 cor0
----
-119
-173
-98
query I rowsort
SELECT DISTINCT 96 * col1 FROM tab2 AS cor0
----
1632
2976
5664
query I rowsort
SELECT - - cor0.col0 + col2 * - col0 + + cor0.col0 FROM tab0 AS cor0
----
-7120
-744
35
query I rowsort
SELECT + - 63 * col2 AS col1 FROM tab0 AS cor0
----
-2079
-5166
-63
query I rowsort
SELECT DISTINCT - 62 AS col0 FROM tab0 AS cor0
----
-62
query I rowsort
SELECT - ( col1 ) - - col0 FROM tab1 cor0
----
-23
54
67
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7262
SELECT ALL 85 + col1 * + CAST( + col1 AS SIGNED ) * col1 AS col2 FROM tab1 AS cor0
----
1085
17661
2282
skipif mysql # not compatible
query I rowsort label-7262
SELECT ALL 85 + col1 * + CAST ( + col1 AS INTEGER ) * col1 AS col2 FROM tab1 AS cor0
----
1085
17661
2282
onlyif mysql # use DIV operator for integer division
query I rowsort label-7263
SELECT DISTINCT - - 3 + - col0 DIV + 52 AS col0 FROM tab2 AS cor0
----
2
3
skipif mysql # not compatible
query I rowsort label-7263
SELECT DISTINCT - - 3 + - col0 / + 52 AS col0 FROM tab2 AS cor0
----
2
3
query I rowsort
SELECT DISTINCT - col2 * col1 + + ( col1 ) FROM tab1 AS cor0
----
-1235
-1378
-560
query I rowsort
SELECT + + cor0.col1 + ( + col1 ) FROM tab1 cor0
----
20
26
52
query I rowsort
SELECT DISTINCT col1 + ( + col1 + + col1 ) FROM tab1 AS cor0
----
30
39
78
onlyif mysql # use DIV operator for integer division
query I rowsort label-7267
SELECT DISTINCT + cor0.col1 * cor0.col2 DIV + 43 + - col0 FROM tab0 cor0
----
-33
42
84
skipif mysql # not compatible
query I rowsort label-7267
SELECT DISTINCT + cor0.col1 * cor0.col2 / + 43 + - col0 FROM tab0 cor0
----
-33
42
84
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7268
SELECT + + col2 * CAST( 20 AS SIGNED ) + cor0.col0 AS col0 FROM tab1 AS cor0
----
1083
1204
2000
skipif mysql # not compatible
query I rowsort label-7268
SELECT + + col2 * CAST ( 20 AS INTEGER ) + cor0.col0 AS col0 FROM tab1 AS cor0
----
1083
1204
2000
query I rowsort
SELECT ALL col0 + tab0.col1 + 52 FROM tab0
----
162
184
232
query I rowsort
SELECT ALL + tab0.col1 + + col0 FROM tab0
----
110
132
180
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7271
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - ( col0 ) / cor0.col2 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-7271
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - ( col0 ) / cor0.col2 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT ALL 1 * - col1 FROM tab2 AS cor0
----
-17
-31
-59
query I rowsort
SELECT + + ( + col1 ) * col2 FROM tab2 AS cor0
----
1534
646
837
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7274
SELECT DISTINCT + CAST( 20 AS SIGNED ) FROM tab1 AS cor0
----
20
skipif mysql # not compatible
query I rowsort label-7274
SELECT DISTINCT + CAST ( 20 AS INTEGER ) FROM tab1 AS cor0
----
20
query I rowsort
SELECT DISTINCT 60 - col2 AS col0 FROM tab0 AS cor0
----
-22
27
59
query I rowsort
SELECT ALL + col1 * 82 FROM tab0 cor0
----
7052
7462
7954
query I rowsort
SELECT - - 15 - + 36 AS col1 FROM tab1 AS cor0
----
-21
-21
-21
query I rowsort
SELECT - 45 - - col0 FROM tab0 AS cor0
----
-10
-21
44
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 9 col2 FROM tab1, tab0 cor0
----
9 values hashing to 03b93b53107e36cf7d524e48c509b17b
query I rowsort
SELECT DISTINCT - col2 + 15 FROM tab2
----
-11
-12
-23
query I rowsort
SELECT cor0.col1 + cor0.col0 * + 52 FROM tab1 AS cor0
----
182
3338
4173
query I rowsort
SELECT + 52 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 7f4ae30893ab330784829711032ae599
query I rowsort
SELECT ALL 81 - - col2 FROM tab2
----
107
108
119
query I rowsort
SELECT + ( + 70 ) * col1 + ( col0 ) * col2 FROM tab1
----
1982
4348
8590
query I rowsort
SELECT col1 * + col2 * tab2.col1 + col1 AS col0 FROM tab2
----
10999
25978
90565
onlyif mysql # use DIV operator for integer division
query I rowsort label-7286
SELECT - col1 DIV + col2 - + col2 * - col1 * - col0 col2 FROM tab0 AS cor0
----
-3492
-664119
-68114
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7286
SELECT - col1 / + col2 - + col2 * - col1 * - col0 col2 FROM tab0 AS cor0
----
-3492
-664119
-68114
query I rowsort
SELECT ALL - col0 * col0 * col1 AS col0 FROM tab0 AS cor0
----
-118825
-49536
-720811
query I rowsort
SELECT DISTINCT col0 * + 45 + col2 * col0 AS col2 FROM tab1
----
11280
297
6528
onlyif mysql # use DIV operator for integer division
query I rowsort label-7289
SELECT tab2.col0 * 82 DIV - 37 FROM tab2
----
-15
-172
-175
skipif mysql # not compatible
query I rowsort label-7289
SELECT tab2.col0 * 82 / - 37 FROM tab2
----
-15
-172
-175
query I rowsort
SELECT + 1 + 94 * col1 AS col1 FROM tab1 AS cor0
----
1223
2445
941
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + + col2 + - col2 * col0 col1 FROM tab2
----
-155
-1924
-2885
query I rowsort
SELECT DISTINCT 45 AS col1 FROM tab0, tab0 AS cor0
----
45
query I rowsort
SELECT - - col2 + - 54 * col1 FROM tab2 AS cor0
----
-1647
-3160
-880
query I rowsort
SELECT ALL - col1 * - col2 - col1 FROM tab1 AS cor0
----
1235
1378
560
query I rowsort
SELECT DISTINCT + col2 + 16 FROM tab1 AS cor0
----
112
70
73
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - ( - col0 ) + - col2 * ( col1 * cor0.col0 + + col1 * col2 ) col2 FROM tab1 AS cor0
----
-219568
-68906
-80025
query I rowsort
SELECT - + ( col2 ) * col1 AS col1 FROM tab0 AS cor0
----
-2838
-7462
-97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab0.col2 col0 FROM tab0, tab1 AS cor0
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8
query I rowsort
SELECT DISTINCT 79 * + tab0.col2 FROM tab0
----
2607
6478
79
query I rowsort
SELECT - col0 * 9 + + col2 FROM tab1 cor0
----
-519
-624
27
query I rowsort
SELECT + col2 + - 65 AS col1 FROM tab0 cor0
----
-32
-64
17
query I rowsort
SELECT - + cor0.col2 * + col1 + - col0 FROM tab0 cor0
----
-132
-2862
-7551
onlyif mysql # use DIV operator for integer division
query I rowsort label-7303
SELECT DISTINCT cor0.col1 * cor0.col1 + - cor0.col0 + col1 DIV col0 FROM tab2 AS cor0
----
210
3403
958
skipif mysql # not compatible
query I rowsort label-7303
SELECT DISTINCT cor0.col1 * cor0.col1 + - cor0.col0 + col1 / col0 FROM tab2 AS cor0
----
210
3403
958
query I rowsort
SELECT cor0.col2 + col0 * + 2 AS col0 FROM tab1 AS cor0
----
185
256
60
query I rowsort
SELECT DISTINCT - col1 * - col1 - col0 FROM tab1 AS cor0
----
36
673
89
query I rowsort
SELECT ALL ( + cor0.col1 ) AS col1 FROM tab1 AS cor0
----
10
13
26
onlyif mysql # use DIV operator for integer division
query I rowsort label-7307
SELECT ALL + - 29 DIV col2 + col0 * + col1 - - cor0.col2 FROM tab1 AS cor0
----
1136
132
697
skipif mysql # not compatible
query I rowsort label-7307
SELECT ALL + - 29 / col2 + col0 * + col1 - - cor0.col2 FROM tab1 AS cor0
----
1136
132
697
query I rowsort
SELECT - col2 * 77 FROM tab1 AS cor0
----
-4158
-4389
-7392
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + cor0.col1 + cor0.col0 col0 FROM tab1 cor0
----
29
74
93
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 + col2 * - col1 col1 FROM tab1 AS cor0
----
-1344
-1458
-627
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7311
SELECT - + col0 * - CAST( col1 AS SIGNED ) + + col1 FROM tab2 AS cor0
----
1360
248
4661
skipif mysql # not compatible
query I rowsort label-7311
SELECT - + col0 * - CAST ( col1 AS INTEGER ) + + col1 FROM tab2 AS cor0
----
1360
248
4661
onlyif mysql # use DIV operator for integer division
query I rowsort label-7312
SELECT 18 DIV 61 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2
skipif mysql # not compatible
query I rowsort label-7312
SELECT 18 / 61 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2
query I rowsort
SELECT - + cor0.col2 - 18 * cor0.col2 FROM tab1 AS cor0
----
-1026
-1083
-1824
onlyif mysql # use DIV operator for integer division
query I rowsort label-7314
SELECT ALL + col0 * - tab0.col2 + ( col0 ) DIV + col0 AS col0 FROM tab0
----
-34
-7297
-791
skipif mysql # not compatible
query I rowsort label-7314
SELECT ALL + col0 * - tab0.col2 + ( col0 ) / + col0 AS col0 FROM tab0
----
-34
-7297
-791
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT col0 + col1 * - CAST ( - tab0.col0 AS REAL ) AS col2 FROM tab0
----
2088
3430
8188
onlyif mysql # use DIV operator for integer division
query I rowsort label-7316
SELECT - col1 DIV tab1.col0 col1 FROM tab1
----
-8
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7316
SELECT - col1 / tab1.col0 col1 FROM tab1
----
-8
0
0
query I rowsort
SELECT DISTINCT - + col2 * ( col0 * - 13 ) FROM tab0 cor0
----
10296
455
94874
onlyif mysql # use DIV operator for integer division
query I rowsort label-7318
SELECT DISTINCT col2 DIV + col1 + - col1 FROM tab0 AS cor0
----
-86
-91
-97
skipif mysql # not compatible
query I rowsort label-7318
SELECT DISTINCT col2 / + col1 + - col1 FROM tab0 AS cor0
----
-86
-91
-97
query I rowsort
SELECT ALL - - col0 * 69 - col0 * col0 FROM tab2 AS cor0
----
-702
-790
434
query I rowsort
SELECT col0 * + col2 + + col1 FROM tab1 AS cor0
----
188
3658
7693
query I rowsort
SELECT DISTINCT - cor0.col2 + + ( col2 ) AS col2 FROM tab1 AS cor0
----
0
query I rowsort
SELECT + col2 + col2 * cor0.col0 FROM tab2 AS cor0
----
2054
216
3040
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7323
SELECT ALL + - CAST( NULL AS SIGNED ) * cor0.col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7323
SELECT ALL + - CAST ( NULL AS INTEGER ) * cor0.col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - 97 * 92 AS col1 FROM tab2 AS cor0
----
-8924
-8924
-8924
query I rowsort
SELECT - col1 + - 47 FROM tab1 AS cor0
----
-57
-60
-73
onlyif mysql # use DIV operator for integer division
query I rowsort label-7326
SELECT DISTINCT - col1 + + col2 DIV col1 col0 FROM tab1 AS cor0
----
-24
-5
-6
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7326
SELECT DISTINCT - col1 + + col2 / col1 col0 FROM tab1 AS cor0
----
-24
-5
-6
query I rowsort
SELECT + cor1.col2 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7328
SELECT DISTINCT col1 - + CAST( - col1 AS SIGNED ) AS col1 FROM tab0
----
172
182
194
skipif mysql # not compatible
query I rowsort label-7328
SELECT DISTINCT col1 - + CAST ( - col1 AS INTEGER ) AS col1 FROM tab0
----
172
182
194
query I rowsort
SELECT ALL - 38 * + 15 * cor0.col0 FROM tab2, tab2 cor0
----
9 values hashing to ef9049bbce7a161e4f7dbf6930d53e8c
query I rowsort
SELECT + col2 * - col0 * col1 AS col0 FROM tab0 AS cor0
----
-3395
-664118
-68112
query I rowsort
SELECT - 35 + + col0 FROM tab0 AS cor0
----
-11
0
54
query I rowsort
SELECT - cor0.col2 * - col0 * col0 AS col0 FROM tab0 AS cor0
----
1225
19008
649522
query I rowsort
SELECT + col2 * col2 * + col0 FROM tab2 cor0
----
114076
5103
52728
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 DISTINCT 59 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
59
query I rowsort
SELECT - - ( col1 ) * - col1 FROM tab1 AS cor0
----
-100
-169
-676
query I rowsort
SELECT col1 * - col1 + + 69 AS col2 FROM tab1 cor0
----
-100
-31
-607
query I rowsort
SELECT DISTINCT - - col2 + col2 AS col2 FROM tab0 cor0
----
164
2
66
query I rowsort
SELECT + col1 * col0 + - col2 AS col2 FROM tab2 AS cor0
----
1305
190
4576
query I rowsort
SELECT DISTINCT - + 48 + + col2 * ( 24 ) - col0 AS col1 FROM tab2 AS cor0
----
498
593
785
query I rowsort
SELECT col0 * cor0.col2 AS col1 FROM tab1 cor0
----
162
3648
7680
query I rowsort
SELECT DISTINCT ( col0 * - 73 ) FROM tab0
----
-1752
-2555
-6497
query I rowsort
SELECT col0 * + col2 + col1 * col2 AS col2 FROM tab1
----
1566
4218
8928
query I rowsort
SELECT DISTINCT col2 + + col0 * - tab0.col1 * col2 + + tab0.col1 * - col0 AS col0 FROM tab0
----
-672135
-6789
-70143
onlyif mysql # use DIV operator for integer division
query I rowsort label-7345
SELECT col1 + col0 * - col2 DIV - tab0.col2 + col1 * col1 FROM tab0
----
7506
8461
9541
skipif mysql # not compatible
query I rowsort label-7345
SELECT col1 + col0 * - col2 / - tab0.col2 + col1 * col1 FROM tab0
----
7506
8461
9541
query I rowsort
SELECT ALL col1 + col0 + + tab2.col0 AS col2 FROM tab2
----
175
215
45
onlyif mysql # use DIV operator for integer division
query I rowsort label-7347
SELECT DISTINCT + col2 * col1 DIV col0 FROM tab0
----
118
2
83
skipif mysql # not compatible
query I rowsort label-7347
SELECT DISTINCT + col2 * col1 / col0 FROM tab0
----
118
2
83
query I rowsort
SELECT DISTINCT - ( - col2 ) AS col2 FROM tab1 cor0
----
54
57
96
query I rowsort
SELECT + 29 + + col0 AS col0 FROM tab2 AS cor0
----
107
108
36
query I rowsort
SELECT ALL + + ( col2 ) * - col0 FROM tab1 AS cor0
----
-162
-3648
-7680
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + tab2.col1 col2 FROM tab2
----
118
34
62
query I rowsort
SELECT ALL 88 + col0 AS col0 FROM tab1
----
152
168
91
query I rowsort
SELECT DISTINCT - col2 * + col2 + 4 AS col0 FROM tab0
----
-1085
-6720
3
query I rowsort
SELECT + tab2.col2 + col2 * ( - tab2.col1 ) FROM tab2
----
-1508
-608
-810
query I rowsort
SELECT DISTINCT 10 * + col0 * col1 FROM tab2
----
13430
2170
46020
query I rowsort
SELECT DISTINCT col1 * col0 + col1 AS col0 FROM tab0
----
2150
3492
8190
onlyif mysql # use DIV operator for integer division
query I rowsort label-7357
SELECT tab1.col0 DIV tab1.col1 - - col1 FROM tab1
----
16
19
26
skipif mysql # not compatible
query I rowsort label-7357
SELECT tab1.col0 / tab1.col1 - - col1 FROM tab1
----
16
19
26
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( col2 * col2 ) <> col2
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-7359
SELECT col2 DIV tab1.col1 + col2 DIV - tab1.col0 FROM tab1
----
-16
5
6
skipif mysql # not compatible
query I rowsort label-7359
SELECT col2 / tab1.col1 + col2 / - tab1.col0 FROM tab1
----
-16
5
6
onlyif mysql # use DIV operator for integer division
query I rowsort label-7360
SELECT - tab2.col2 + col1 DIV col0 AS col0 FROM tab2
----
-23
-26
-38
skipif mysql # not compatible
query I rowsort label-7360
SELECT - tab2.col2 + col1 / col0 AS col0 FROM tab2
----
-23
-26
-38
query III rowsort
SELECT * FROM tab1 WHERE + col1 NOT BETWEEN + col1 / + col1 - - col1 * col2 AND NULL
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d
onlyif mysql # use DIV operator for integer division
query I rowsort label-7362
SELECT col0 DIV col0 + + col2 AS col1 FROM tab2
----
27
28
39
skipif mysql # not compatible
query I rowsort label-7362
SELECT col0 / col0 + + col2 AS col1 FROM tab2
----
27
28
39
onlyif mysql # use DIV operator for integer division
query I rowsort label-7363
SELECT col1 + col2 - col2 DIV + col2 FROM tab0
----
118
172
97
skipif mysql # not compatible
query I rowsort label-7363
SELECT col1 + col2 - col2 / + col2 FROM tab0
----
118
172
97
query I rowsort
SELECT DISTINCT tab2.col2 * col2 * + col2 FROM tab2 WHERE ( NULL ) IN ( col0 * col0 * + tab2.col0 - - col1 )
----
query I rowsort
SELECT DISTINCT col0 - - col0 AS col0 FROM tab2
----
14
156
158
query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT BETWEEN col0 AND ( NULL )
----
query I rowsort
SELECT + col2 + col0 - - col1 * + tab2.col1 FROM tab2
----
3585
406
995
onlyif mysql # use DIV operator for integer division
query I rowsort label-7368
SELECT ALL - tab2.col2 - - col2 DIV - col0 AS col2 FROM tab2
----
-26
-30
-38
skipif mysql # not compatible
query I rowsort label-7368
SELECT ALL - tab2.col2 - - col2 / - col0 AS col2 FROM tab2
----
-26
-30
-38
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + col0 * col2 col1 FROM tab0
----
36
7380
825
onlyif mysql # use DIV operator for integer division
query I rowsort label-7370
SELECT col1 * col2 DIV + col0 AS col2 FROM tab2
----
119
19
8
skipif mysql # not compatible
query I rowsort label-7370
SELECT col1 * col2 / + col0 AS col2 FROM tab2
----
119
19
8
query I rowsort
SELECT ALL + col0 + + col2 * tab0.col1 + - col1 FROM tab0
----
2776
35
7460
query I rowsort
SELECT col1 FROM tab0 WHERE NOT ( NULL ) IN ( col2 )
----
query III rowsort
SELECT * FROM tab2 WHERE ( + col2 / - col1 + - col1 ) NOT IN ( col2 )
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45
query I rowsort
SELECT col0 * - col0 + + col0 + + col2 * - col1 AS col1 FROM tab1 WHERE NULL NOT BETWEEN ( NULL ) AND NULL
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-7375
SELECT DISTINCT - col1 * + col0 DIV + col0 + + col1 + + col1 AS col0 FROM tab0
----
86
91
97
skipif mysql # not compatible
query I rowsort label-7375
SELECT DISTINCT - col1 * + col0 / + col0 + + col1 + + col1 AS col0 FROM tab0
----
86
91
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * + col0 col2 FROM tab1
----
-162
-3648
-7680
query I rowsort
SELECT DISTINCT tab2.col0 * col0 AS col2 FROM tab2
----
49
6084
6241
query I rowsort
SELECT ALL col2 * + col1 * + col2 FROM tab1
----
119808
32490
75816
query I rowsort
SELECT + col0 * col0 + tab0.col2 FROM tab0 WHERE NOT NULL BETWEEN ( NULL ) AND ( NULL )
----
query I rowsort
SELECT ALL + col2 * col0 + col0 * - col1 + col0 FROM tab0
----
-1248
-3325
-712
query I rowsort
SELECT - col2 + tab2.col1 AS col2 FROM tab2
----
-21
33
4
query I rowsort
SELECT DISTINCT - col1 * col1 * col1 AS col2 FROM tab2
----
-205379
-29791
-4913
query I rowsort
SELECT ALL - col0 * + col1 * - col1 FROM tab1
----
13520
2028
6400
onlyif mysql # use DIV operator for integer division
query I rowsort label-7384
SELECT + col1 * + tab2.col0 + + col0 * col0 DIV col1 FROM tab2
----
1710
218
4705
skipif mysql # not compatible
query I rowsort label-7384
SELECT + col1 * + tab2.col0 + + col0 * col0 / col1 FROM tab2
----
1710
218
4705
query I rowsort
SELECT + col1 * tab2.col0 * + col1 FROM tab2
----
22831
271518
6727
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 - col2 * + tab2.col1 col2 FROM tab2
----
-1508
-608
-810
query I rowsort
SELECT + col1 * col1 + + col1 AS col1 FROM tab1
----
110
182
702
query I rowsort
SELECT col2 - tab2.col2 FROM tab2 WHERE - col1 + - col1 NOT BETWEEN ( NULL ) AND col1
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-7389
SELECT - ( 72 ) DIV col2 AS col2 FROM tab0
----
-2
-72
0
skipif mysql # not compatible
query I rowsort label-7389
SELECT - ( 72 ) / col2 AS col2 FROM tab0
----
-2
-72
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-7390
SELECT ALL col1 + + 49 DIV + col1 FROM tab0
----
86
91
97
skipif mysql # not compatible
query I rowsort label-7390
SELECT ALL col1 + + 49 / + col1 FROM tab0
----
86
91
97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7391
SELECT - col1 * + col2 - - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7391
SELECT - col1 * + col2 - - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - - col0 * cor0.col1 + col1 AS col1 FROM tab0 AS cor0
----
2150
3492
8190
onlyif mysql # use DIV operator for integer division
query I rowsort label-7393
SELECT ALL + col1 + 47 DIV + col1 + + col2 AS col2 FROM tab0
----
119
173
98
skipif mysql # not compatible
query I rowsort label-7393
SELECT ALL + col1 + 47 / + col1 + + col2 AS col2 FROM tab0
----
119
173
98
onlyif mysql # use DIV operator for integer division
query I rowsort label-7394
SELECT ALL - 52 + - col2 * tab1.col2 + - CAST( + col2 AS SIGNED ) DIV col1 AS col2 FROM tab1
----
-2970
-3306
-9275
skipif mysql # not compatible
query I rowsort label-7394
SELECT ALL - 52 + - col2 * tab1.col2 + - CAST ( + col2 AS INTEGER ) / col1 AS col2 FROM tab1
----
-2970
-3306
-9275
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7395
SELECT - 59 * - col1 + + CAST( + col1 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
5160
5460
5820
skipif mysql # not compatible
query I rowsort label-7395
SELECT - 59 * - col1 + + CAST ( + col1 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
5160
5460
5820
onlyif mysql # use DIV operator for integer division
query I rowsort label-7396
SELECT - - 88 DIV + cor0.col0 + + col2 AS col2 FROM tab2 AS cor0
----
27
39
39
skipif mysql # not compatible
query I rowsort label-7396
SELECT - - 88 / + cor0.col0 + + col2 AS col2 FROM tab2 AS cor0
----
27
39
39
query I rowsort
SELECT 69 * - cor0.col1 AS col1 FROM tab2 AS cor0
----
-1173
-2139
-4071
query I rowsort
SELECT - col2 + cor0.col1 AS col2 FROM tab0 cor0
----
53
9
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-7399
SELECT col0 - - col0 DIV + col0 AS col1 FROM tab1 AS cor0
----
4
65
81
skipif mysql # not compatible
query I rowsort label-7399
SELECT col0 - - col0 / + col0 AS col1 FROM tab1 AS cor0
----
4
65
81
query I rowsort
SELECT DISTINCT ( col2 ) * - col1 AS col0 FROM tab1 cor0
----
-1248
-1404
-570
query I rowsort
SELECT ALL - ( - cor0.col2 ) * 3 FROM tab0 AS cor0
----
246
3
99
query I rowsort
SELECT + 18 * + col2 + col1 FROM tab2 AS cor0
----
517
527
701
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab1, tab1 AS cor1, tab2, tab1 AS cor2
----
3645 values hashing to 35707ade138fec4b370f5140a4cd2963
query I rowsort
SELECT 2 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 84dbfaf9bc17dd097f15bc36b4186261
query I rowsort
SELECT DISTINCT - + col0 + col2 * col1 FROM tab0 AS cor0
----
2814
62
7373
query I rowsort
SELECT DISTINCT col2 - - 21 AS col1 FROM tab1 AS cor0
----
117
75
78
query I rowsort
SELECT ALL + + col0 + - col1 * + 54 AS col2 FROM tab2 AS cor0
----
-1667
-3108
-839
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + 33 - - 72 * col2 col0 FROM tab2 AS cor0
----
1983
1984
2848
query I rowsort
SELECT DISTINCT + col2 * ( 75 * - col2 ) FROM tab2 AS cor0
----
-108300
-50700
-54675
query I rowsort
SELECT ALL + - col2 + col0 * - col1 AS col2 FROM tab1 AS cor0
----
-1136
-132
-697
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7411
SELECT ALL col0 * CAST( col0 AS SIGNED ) + col0 * col2 AS col1 FROM tab0 AS cor0
----
1260
1368
15219
skipif mysql # not compatible
query I rowsort label-7411
SELECT ALL col0 * CAST ( col0 AS INTEGER ) + col0 * col2 AS col1 FROM tab0 AS cor0
----
1260
1368
15219
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + cor0.col1 col2 FROM tab2 AS cor0
----
118
34
62
query I rowsort
SELECT ALL + 11 * col0 FROM tab0 AS cor0
----
264
385
979
query I rowsort
SELECT ALL + 15 FROM tab2, tab0 cor0
----
9 values hashing to d1d280d38bf9c2d5d5ec90dd43aeaffd
query I rowsort
SELECT DISTINCT - 30 * + 95 + col1 * ( 31 ) AS col2 FROM tab2 AS cor0
----
-1021
-1889
-2323
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 98 col0 FROM tab0, tab1 AS cor0
----
9 values hashing to f17b7008a7deae1eb5a2e707ec237638
query I rowsort
SELECT DISTINCT - 51 - - col1 AS col0 FROM tab0 cor0
----
35
40
46
query I rowsort
SELECT + 96 + + col0 FROM tab2 AS cor0
----
103
174
175
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + cor0.col0 col2 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT - - 56 + col0 * col1 AS col0 FROM tab0 AS cor0
----
2120
3451
8155
query I rowsort
SELECT + - 36 * - 66 + col1 FROM tab2 AS cor0
----
2393
2407
2435
query I rowsort
SELECT - 47 - + col1 FROM tab1 cor0
----
-57
-60
-73
query I rowsort
SELECT + col2 + + col0 * col0 AS col2 FROM tab1 AS cor0
----
4153
63
6496
query I rowsort
SELECT - + col2 * col0 + - col1 FROM tab2 AS cor0
----
-2087
-220
-3019
query I rowsort
SELECT + col1 + + col0 * + col2 * - col2 FROM tab1 AS cor0
----
-207926
-737267
-8722
onlyif mysql # use DIV operator for integer division
query I rowsort label-7426
SELECT + col0 * + col1 + col1 DIV col2 + - cor0.col0 col0 FROM tab1 AS cor0
----
576
75
960
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7426
SELECT + col0 * + col1 + col1 / col2 + - cor0.col0 col0 FROM tab1 AS cor0
----
576
75
960
query I rowsort
SELECT 25 + col0 * col0 AS col1 FROM tab0 AS cor0
----
1250
601
7946
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( col0 ) * col1 + + col0 col2 FROM tab2 AS cor0
----
1422
224
4680
query I rowsort
SELECT - 79 * col0 AS col0 FROM tab1 AS cor0
----
-237
-5056
-6320
query I rowsort
SELECT ALL - col1 - col2 * + col2 FROM tab1
----
-2942
-3259
-9229
onlyif mysql # use DIV operator for integer division
query I rowsort label-7431
SELECT + col0 * + col0 + + cor0.col1 DIV - col0 FROM tab0 AS cor0
----
1223
573
7920
skipif mysql # not compatible
query I rowsort label-7431
SELECT + col0 * + col0 + + cor0.col1 / - col0 FROM tab0 AS cor0
----
1223
573
7920
query I rowsort
SELECT - - cor0.col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc
query I rowsort
SELECT DISTINCT - col1 * ( col1 ) AS col2 FROM tab2
----
-289
-3481
-961
query I rowsort
SELECT 71 - tab0.col1 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 99eede064c724b79a7d74789c7d4cddf
query I rowsort
SELECT + 57 AS col2 FROM tab1, tab1 cor0
----
9 values hashing to 61da70c624ad60604a668f7f8f29392a
query I rowsort
SELECT ALL col2 * 58 AS col1 FROM tab0
----
1914
4756
58
query I rowsort
SELECT + - 44 + + col1 * cor0.col2 AS col1 FROM tab1 AS cor0
----
1204
1360
526
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7438
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - 71 * - col0 AS col1 FROM tab1
----
NULL
skipif mysql # not compatible
query I rowsort label-7438
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - 71 * - col0 AS col1 FROM tab1
----
NULL
query I rowsort
SELECT ALL - - col0 * + col1 + - cor0.col0 FROM tab0 AS cor0
----
2040
3360
8010
query I rowsort
SELECT ALL + 23 * col2 FROM tab0
----
1886
23
759
query I rowsort
SELECT + 6 * col0 * - col0 AS col0 FROM tab1 AS cor0
----
-24576
-38400
-54
onlyif mysql # use DIV operator for integer division
query I rowsort label-7442
SELECT + + col1 DIV - col2 AS col1 FROM tab0 cor0
----
-1
-2
-97
skipif mysql # not compatible
query I rowsort label-7442
SELECT + + col1 / - col2 AS col1 FROM tab0 cor0
----
-1
-2
-97
query IIIIII rowsort
SELECT ALL * FROM tab1 cor0 CROSS JOIN tab0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----
query I rowsort
SELECT col0 / col2 FROM tab1 WHERE NOT col1 NOT IN ( col1 * col1 * col0 + col1 )
----
query I rowsort
SELECT DISTINCT + col0 + col2 FROM tab0 WHERE NOT - col0 * + col1 BETWEEN - col1 AND ( + col2 )
----
171
36
57
query I rowsort
SELECT col2 * - cor0.col1 FROM tab0 cor0
----
-2838
-7462
-97
query I rowsort
SELECT col2 * - tab1.col1 - + col1 FROM tab1
----
-1261
-1430
-580
query IIIIIIIII rowsort
SELECT * FROM tab2, tab2 AS cor0 CROSS JOIN tab1 WHERE NULL = NULL
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + cor0.col1 col2 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT ALL col0 * col1 - col1 FROM tab1
----
1027
52
630
query III rowsort
SELECT * FROM tab0 WHERE + col0 NOT BETWEEN - col2 + col2 AND ( col1 * + col2 )
----
query III rowsort
SELECT ALL * FROM tab2 WHERE NULL NOT IN ( - col0 )
----
query I rowsort
SELECT ALL + col0 * col0 + + col2 AS col1 FROM tab0 AS cor0
----
1226
609
8003
query I rowsort
SELECT ALL col2 * col1 + col1 AS col1 FROM tab2
----
1593
663
868
query I rowsort
SELECT ALL - tab1.col2 * col1 + - col2 FROM tab1
----
-1344
-1458
-627
query I rowsort
SELECT + col0 * col2 * - col2 + col2 * col2 - + col2 AS col0 FROM tab1
----
-204744
-5886
-728160
query I rowsort
SELECT col0 * - col1 + + col1 AS col2 FROM tab2 cor0
----
-1326
-186
-4543
query I rowsort
SELECT - col2 + - cor0.col1 * - cor0.col0 AS col2 FROM tab1 AS cor0
----
24
583
944
query I rowsort
SELECT - cor0.col0 * - col1 + cor0.col2 AS col2 FROM tab2 cor0
----
1381
244
4628
onlyif mysql # use DIV operator for integer division
query I rowsort label-7460
SELECT DISTINCT col2 DIV + col0 AS col0 FROM tab1 cor0
----
0
1
18
skipif mysql # not compatible
query I rowsort label-7460
SELECT DISTINCT col2 / + col0 AS col0 FROM tab1 cor0
----
0
1
18
query I rowsort
SELECT ALL - cor0.col0 + col1 * + cor0.col2 FROM tab2 AS cor0
----
1456
567
830
query I rowsort
SELECT DISTINCT - col0 * cor0.col1 * - col0 AS col0 FROM tab0 AS cor0
----
118825
49536
720811
query I rowsort
SELECT ALL - - col2 + + col2 + col1 AS col2 FROM tab0 AS cor0
----
152
255
99
query I rowsort
SELECT - col0 + + cor0.col0 * + col1 FROM tab2 AS cor0
----
1264
210
4524
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + - col2 * + col2 col1 FROM tab0 cor0
----
-1113
-36
-6813
onlyif mysql # use DIV operator for integer division
query I rowsort label-7466
SELECT DISTINCT col1 DIV + 68 + col1 * col1 AS col0 FROM tab2
----
289
3481
961
skipif mysql # not compatible
query I rowsort label-7466
SELECT DISTINCT col1 / + 68 + col1 * col1 AS col0 FROM tab2
----
289
3481
961
query I rowsort
SELECT ALL - col1 + + ( col0 ) * + col0 * 2 FROM tab1
----
-8
12787
8182
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7468
SELECT + col2 + + CAST( NULL AS DECIMAL ) 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-7468
SELECT + col2 + + CAST ( NULL AS REAL ) col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-7469
SELECT DISTINCT + + cor0.col1 DIV 16 AS col0 FROM tab2 AS cor0
----
1
3
skipif mysql # not compatible
query I rowsort label-7469
SELECT DISTINCT + + cor0.col1 / 16 AS col0 FROM tab2 AS cor0
----
1
3
query I rowsort
SELECT DISTINCT - col2 * ( + 81 ) FROM tab2 AS cor0
----
-2106
-2187
-3078
query I rowsort
SELECT ALL - - col2 * - 4 + - cor0.col1 FROM tab2 cor0
----
-139
-163
-169
query I rowsort
SELECT ALL - col2 + col0 * - col2 * 37 AS col0 FROM tab2 AS cor0
----
-111112
-7020
-75062
query I rowsort
SELECT - 73 * col1 + col0 * 48 FROM tab0 cor0
----
-2371
-5126
-5401
query I rowsort
SELECT DISTINCT + col0 + 20 * col2 AS col2 FROM tab2 AS cor0
----
547
598
839
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 6 * 83 col2 FROM tab1 AS cor0
----
498
query I rowsort
SELECT ALL + col2 * - col0 + - col2 AS col2 FROM tab1 AS cor0
----
-216
-3705
-7776
query I rowsort
SELECT ALL - ( - col2 ) * col2 AS col0 FROM tab2 AS cor0
----
1444
676
729
query I rowsort
SELECT DISTINCT + 0 * col0 FROM tab2 AS cor0
----
0
query I rowsort
SELECT DISTINCT - 0 + col2 * - col0 AS col1 FROM tab2 cor0
----
-189
-2028
-3002
query I rowsort
SELECT ALL ( ( col2 ) ) * - 47 AS col2 FROM tab0 AS cor0
----
-1551
-3854
-47
onlyif mysql # use DIV operator for integer division
query I rowsort label-7481
SELECT DISTINCT + 3 DIV + 59 AS col2 FROM tab1 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-7481
SELECT DISTINCT + 3 / + 59 AS col2 FROM tab1 AS cor0
----
0
query I rowsort
SELECT ALL col0 * - col2 + col2 AS col0 FROM tab1 AS cor0
----
-108
-3591
-7584
query I rowsort
SELECT + col2 + col0 * - 58 + tab2.col2 AS col0 FROM tab2
----
-352
-4472
-4506
query I rowsort
SELECT col2 + + 74 AS col2 FROM tab0
----
107
156
75
query I rowsort
SELECT DISTINCT + col2 * - ( + col0 ) + + col1 FROM tab1
----
-136
-3638
-7667
query I rowsort
SELECT ALL col0 * tab2.col0 + - col2 AS col1 FROM tab2
----
22
6058
6203
query I rowsort
SELECT - - ( col0 ) * col2 - + 57 * col0 AS col2 FROM tab2 AS cor0
----
-1501
-210
-2418
query I rowsort
SELECT ALL - - col0 * + col1 + col0 AS col2 FROM tab1 AS cor0
----
1120
704
81
query I rowsort
SELECT DISTINCT + col2 + - col0 * - col0 FROM tab0 AS cor0
----
1226
609
8003
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 - - col0 col2 FROM tab1
----
29
74
93
query I rowsort
SELECT col0 + - col2 + + 65 * tab0.col0 FROM tab0
----
1551
2309
5792
query I rowsort
SELECT ALL + col2 - - ( col2 ) * col0 FROM tab2
----
2054
216
3040
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7493
SELECT ALL + col0 + + col0 + CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7493
SELECT ALL + col0 + + col0 + CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + + cor0.col2 * col1 * cor0.col0 - - col2 FROM tab0 AS cor0
----
3396
664200
68145
query I rowsort
SELECT col0 * - col2 * col0 AS col1 FROM tab2 AS cor0
----
-1323
-158184
-237158
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + cor0.col2 * col1 col1 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT ALL - - 52 AS col2 FROM tab0 cor0
----
52
52
52
query I rowsort
SELECT DISTINCT + 62 + + col0 * - cor0.col1 FROM tab1 AS cor0
----
-16
-578
-978
onlyif mysql # use DIV operator for integer division
query I rowsort label-7499
SELECT ALL - col2 + col0 * ( - 63 ) - - col0 * ( 81 ) DIV cor0.col2 AS col0 FROM tab1 AS cor0
----
-239
-3999
-5069
skipif mysql # not compatible
query I rowsort label-7499
SELECT ALL - col2 + col0 * ( - 63 ) - - col0 * ( 81 ) / cor0.col2 AS col0 FROM tab1 AS cor0
----
-239
-3999
-5069
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 76 * - col1 col1 FROM tab1
----
1976
760
988
query I rowsort
SELECT 36 AS col0 FROM tab0, tab0 cor0
----
9 values hashing to eee96a85519f92856a7500dc8b6cf752
query I rowsort
SELECT + ( col0 ) * 29 FROM tab2 AS cor0
----
203
2262
2291
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 65 * col0 * - ( col1 ) col1 FROM tab1 AS cor0
----
-41600
-5070
-67600
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 86 col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 2d8c3a0d19ea51447f83cd18b49fee19
query I rowsort
SELECT + 86 - col1 FROM tab0
----
-11
-5
0
query I rowsort
SELECT DISTINCT col0 * + 61 * - 14 + cor0.col1 * + cor0.col2 AS col0 FROM tab2 AS cor0
----
-5141
-65078
-66820
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7507
SELECT col2 + + CAST( 17 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
43
44
55
skipif mysql # not compatible
query I rowsort label-7507
SELECT col2 + + CAST ( 17 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
43
44
55
query I rowsort
SELECT - col0 * col0 * cor0.col2 AS col1 FROM tab0 AS cor0
----
-1225
-19008
-649522
onlyif mysql # use DIV operator for integer division
query I rowsort label-7509
SELECT tab0.col1 DIV + 52 AS col1 FROM tab0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-7509
SELECT tab0.col1 / + 52 AS col1 FROM tab0
----
1
1
1
query I rowsort
SELECT - tab2.col2 * - 36 + 13 * col1 + - col0 FROM tab2
----
1368
1510
1625
query I rowsort
SELECT DISTINCT + col1 * - cor0.col2 FROM tab2 cor0
----
-1534
-646
-837
query I rowsort
SELECT + col0 * + 95 FROM tab0 cor0
----
2280
3325
8455
query I rowsort
SELECT ALL col2 * - 31 * col0 AS col2 FROM tab0 AS cor0
----
-1085
-226238
-24552
query I rowsort
SELECT DISTINCT - col0 * - cor0.col1 AS col0 FROM tab1 cor0
----
1040
640
78
query I rowsort
SELECT - col1 * 85 AS col1 FROM tab1 cor0
----
-1105
-2210
-850
query I rowsort
SELECT DISTINCT col2 + - 98 * col2 FROM tab0 AS cor0
----
-3201
-7954
-97
query I rowsort
SELECT DISTINCT cor0.col2 * + cor0.col2 * col2 + 81 FROM tab2 AS cor0
----
17657
19764
54953
query I rowsort
SELECT ALL ( + col1 ) - cor0.col1 FROM tab0 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-7519
SELECT ( col2 ) DIV cor0.col1 + col0 FROM tab2 AS cor0
----
7
78
81
skipif mysql # not compatible
query I rowsort label-7519
SELECT ( col2 ) / cor0.col1 + col0 FROM tab2 AS cor0
----
7
78
81
onlyif mysql # use DIV operator for integer division
query I rowsort label-7520
SELECT ALL + ( + col1 ) + + col1 DIV ( col1 ) FROM tab2 AS cor0
----
18
32
60
skipif mysql # not compatible
query I rowsort label-7520
SELECT ALL + ( + col1 ) + + col1 / ( col1 ) FROM tab2 AS cor0
----
18
32
60
onlyif mysql # use DIV operator for integer division
query I rowsort label-7521
SELECT ALL + - 41 DIV - col2 AS col0 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-7521
SELECT ALL + - 41 / - col2 AS col0 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT ALL + col1 * col2 + - col1 AS col1 FROM tab0 AS cor0
----
0
2752
7371
query I rowsort
SELECT DISTINCT + 48 AS col2 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
48
query I rowsort
SELECT ALL col2 + - col1 * - ( - col1 ) * col0 AS col1 FROM tab1 AS cor0
----
-13424
-1974
-6343
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7525
SELECT DISTINCT + - col2 * + col2 + - CAST( NULL AS SIGNED ) col2 FROM tab2 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7525
SELECT DISTINCT + - col2 * + col2 + - CAST ( NULL AS INTEGER ) col2 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT + + col0 * + 65 FROM tab2 AS cor0
----
455
5070
5135
query I rowsort
SELECT ALL ( 25 ) + col0 + col1 * col2 FROM tab2 cor0
----
1637
750
869
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7528
SELECT + CAST( NULL AS SIGNED ) * - 35 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7528
SELECT + CAST ( NULL AS INTEGER ) * - 35 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + col1 + + ( + cor0.col2 ) * col1 FROM tab1 AS cor0
----
1261
1430
580
query I rowsort
SELECT cor0.col0 + + ( col2 * col0 ) AS col0 FROM tab2 AS cor0
----
196
2106
3081
query I rowsort
SELECT ALL 90 AS col1 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 5d25a546acf3ae171e731e50adc0112e
onlyif mysql # use DIV operator for integer division
query I rowsort label-7532
SELECT + cor0.col0 * 9 DIV col2 + - col1 FROM tab1 AS cor0
----
-26
-6
0
skipif mysql # not compatible
query I rowsort label-7532
SELECT + cor0.col0 * 9 / col2 + - col1 FROM tab1 AS cor0
----
-26
-6
0
query I rowsort
SELECT + ( - cor0.col0 ) AS col0 FROM tab0, tab1 cor0, tab2 cor1
----
27 values hashing to 729c1edda9332398299f39cd174ed840
query I rowsort
SELECT ALL cor0.col1 * tab0.col1 FROM tab0, tab2 cor0
----
9 values hashing to 73681df8216070e2d6c1ade2e7109825
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7535
SELECT DISTINCT tab0.col1 * - CAST( - col1 AS SIGNED ) FROM tab0
----
7396
8281
9409
skipif mysql # not compatible
query I rowsort label-7535
SELECT DISTINCT tab0.col1 * - CAST ( - col1 AS INTEGER ) FROM tab0
----
7396
8281
9409
query I rowsort
SELECT col0 * ( - col0 ) + + col1 FROM tab1
----
-4086
-6387
17
query I rowsort
SELECT - cor0.col0 * + cor0.col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 18f45a7edd86e3eccc832dcdb6123662
query I rowsort
SELECT ALL + col0 * col1 * + col1 + cor0.col0 FROM tab0 AS cor0
----
177528
329350
737098
query I rowsort
SELECT ALL - 31 * col1 FROM tab1 AS cor0
----
-310
-403
-806
query I rowsort
SELECT ALL - ( + 16 ) * + col2 FROM tab1
----
-1536
-864
-912
query I rowsort
SELECT DISTINCT col2 * col1 * - col1 AS col2 FROM tab2
----
-10982
-25947
-90506
onlyif mysql # use DIV operator for integer division
query I rowsort label-7542
SELECT ALL ( - col2 ) DIV + col1 AS col1 FROM tab1
----
-2
-5
-7
skipif mysql # not compatible
query I rowsort label-7542
SELECT ALL ( - col2 ) / + col1 AS col1 FROM tab1
----
-2
-5
-7
query I rowsort
SELECT + + 15 + cor0.col1 * col1 * - 19 AS col2 FROM tab0 AS cor0
----
-140509
-157324
-178756
query I rowsort
SELECT ALL 13 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to a90d0f37cec603ae1bc0a60dc7fbaeed
query I rowsort
SELECT - + col1 * col1 - col0 AS col1 FROM tab1 AS cor0
----
-164
-249
-679
onlyif mysql # use DIV operator for integer division
query I rowsort label-7546
SELECT + col0 DIV - col1 AS col2 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-7546
SELECT + col0 / - col1 AS col2 FROM tab0 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + - col1 * - col1 - col1 col2 FROM tab1 AS cor0
----
154
236
653
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + cor0.col2 * - 97 + - col2 col0 FROM tab0 cor0
----
3168
7872
96
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7549
SELECT cor0.col1 * CAST( NULL AS SIGNED ) / col0 FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7549
SELECT cor0.col1 * CAST ( NULL AS INTEGER ) / col0 FROM tab0 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - cor0.col0 * 9 AS col0 FROM tab1 cor0
----
-27
-576
-720
query I rowsort
SELECT col1 * 66 + 23 AS col2 FROM tab2 AS cor0
----
1145
2069
3917
query I rowsort
SELECT - + cor0.col2 - 41 * col0 AS col1 FROM tab2 AS cor0
----
-314
-3224
-3277
query I rowsort
SELECT ALL + + col1 * + 70 AS col2 FROM tab2 AS cor0
----
1190
2170
4130
query I rowsort
SELECT DISTINCT cor0.col0 * + ( col1 ) + + col2 FROM tab2 cor0
----
1381
244
4628
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 33 col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 620d384286e82d1c6c8b1b2b109a7da5
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7556
SELECT DISTINCT CAST( NULL AS SIGNED ) + - 75 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-7556
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - 75 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT ALL 89 + col1 + - col1 FROM tab1 AS cor0
----
89
89
89
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * col0 col1 FROM tab1
----
1040
640
78
query I rowsort
SELECT ALL - ( + col2 ) + ( col1 ) FROM tab2 AS cor0
----
-21
33
4
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 + - 70 col0 FROM tab0, tab0 AS cor0
----
9 values hashing to d2bce778033a27407315aef6f3e10df5
query I rowsort
SELECT DISTINCT + 31 * col2 FROM tab1 AS cor0
----
1674
1767
2976
query I rowsort
SELECT ALL tab1.col2 + - col2 AS col0 FROM tab1
----
0
0
0
query I rowsort
SELECT - 28 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to eac00a95d734c7071360ed392c3f39bc
query I rowsort
SELECT 51 * col1 FROM tab2 cor0
----
1581
3009
867
query I rowsort
SELECT col1 * - col2 * col2 AS col2 FROM tab2 cor0
----
-22599
-24548
-39884
onlyif mysql # use DIV operator for integer division
query I rowsort label-7566
SELECT + tab2.col0 DIV 53 + 66 * tab2.col1 * 26 FROM tab2
----
101245
29173
53196
skipif mysql # not compatible
query I rowsort label-7566
SELECT + tab2.col0 / 53 + 66 * tab2.col1 * 26 FROM tab2
----
101245
29173
53196
query I rowsort
SELECT col2 * col0 * tab2.col2 AS col2 FROM tab2
----
114076
5103
52728
onlyif mysql # use DIV operator for integer division
query I rowsort label-7568
SELECT DISTINCT + col2 DIV - col2 + col2 col1 FROM tab0 AS cor0
----
0
32
81
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7568
SELECT DISTINCT + col2 / - col2 + col2 col1 FROM tab0 AS cor0
----
0
32
81
query I rowsort
SELECT DISTINCT + col0 + + col2 + col0 AS col0 FROM tab1 AS cor0
----
185
256
60
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7570
SELECT DISTINCT col2 * - CAST( - ( col0 ) AS SIGNED ) + CAST( NULL AS SIGNED ) * col0 + col0 AS col1 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-7570
SELECT DISTINCT col2 * - CAST ( - ( col0 ) AS INTEGER ) + CAST ( NULL AS INTEGER ) * col0 + col0 AS col1 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT + col0 + 8 * + 79 AS col2 FROM tab0 AS cor0
----
656
667
721
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + + ( col0 ) * - 74 col0 FROM tab1 AS cor0
----
-196
-4726
-5907
query I rowsort
SELECT DISTINCT + ( - col0 ) + + cor0.col0 FROM tab0 AS cor0
----
0
query I rowsort
SELECT ALL + col1 + 26 FROM tab0 cor0
----
112
117
123
query I rowsort
SELECT + + col0 + + col2 AS col2 FROM tab1 cor0
----
121
176
57
query I rowsort
SELECT DISTINCT + - ( + cor0.col2 ) AS col1 FROM tab1 AS cor0
----
-54
-57
-96
onlyif mysql # use DIV operator for integer division
query I rowsort label-7577
SELECT ALL - 90 DIV col2 + cor0.col1 AS col1 FROM tab1 AS cor0
----
13
25
9
skipif mysql # not compatible
query I rowsort label-7577
SELECT ALL - 90 / col2 + cor0.col1 AS col1 FROM tab1 AS cor0
----
13
25
9
query I rowsort
SELECT DISTINCT - col2 * 56 FROM tab0 cor0
----
-1848
-4592
-56
onlyif mysql # use DIV operator for integer division
query I rowsort label-7579
SELECT 43 DIV + col1 FROM tab0 cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-7579
SELECT 43 / + col1 FROM tab0 cor0
----
0
0
0
query I rowsort
SELECT DISTINCT col1 * + col0 * col1 FROM tab1 AS cor0
----
13520
2028
6400
onlyif mysql # use DIV operator for integer division
query I rowsort label-7581
SELECT - - 60 DIV col1 AS col2 FROM tab1 AS cor0
----
2
4
6
skipif mysql # not compatible
query I rowsort label-7581
SELECT - - 60 / col1 AS col2 FROM tab1 AS cor0
----
2
4
6
query I rowsort
SELECT ALL + col0 + col2 + - col1 FROM tab0 AS cor0
----
-29
-61
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - ( ( - col0 ) ) col0 FROM tab0 AS cor0
----
-24
-35
-89
query I rowsort
SELECT - + ( 80 ) + - col1 FROM tab0 AS cor0
----
-166
-171
-177
query I rowsort
SELECT DISTINCT + 15 * + col0 + + col0 FROM tab1 AS cor0
----
1024
1280
48
query I rowsort
SELECT DISTINCT - + col2 * 72 + cor0.col0 FROM tab2 AS cor0
----
-1794
-1937
-2657
query I rowsort
SELECT ALL col0 + - 54 * - col2 FROM tab1 AS cor0
----
2919
3142
5264
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 21 col1 FROM tab1, tab1 AS cor0
----
21
query I rowsort
SELECT + 55 + - cor1.col2 AS col1 FROM tab2, tab2 AS cor0, tab2 AS cor1, tab2 AS cor2
----
81 values hashing to bbd31a86e0de9a798f369b3db4d48fe2
query I rowsort
SELECT + col0 * cor0.col0 + + col2 * 65 FROM tab1 AS cor0
----
12640
3519
7801
query I rowsort
SELECT - - ( col0 ) + col1 AS col2 FROM tab2 cor0
----
137
38
96
query I rowsort
SELECT ALL - + 63 * col0 - - col1 AS col1 FROM tab0 AS cor0
----
-1426
-2108
-5516
query I rowsort
SELECT + 52 + col1 AS col1 FROM tab0 cor0
----
138
143
149
skipif mysql # not compatible
query I rowsort
SELECT - CAST ( col1 + col0 AS REAL ) AS col1 FROM tab0
----
-110
-132
-180
skipif mysql # not compatible
query I rowsort
SELECT CAST ( col1 + col2 AS REAL ) AS col1 FROM tab0
----
119
173
98
query I rowsort
SELECT col2 + - ( col0 + col2 ) AS col1 FROM tab1 AS cor0
----
-3
-64
-80
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7597
SELECT cor0.col0 * - CAST( col2 AS SIGNED ) + - cor0.col2 * + col1 * - col1 FROM tab0 AS cor0
----
243276
671744
9374
skipif mysql # not compatible
query I rowsort label-7597
SELECT cor0.col0 * - CAST ( col2 AS INTEGER ) + - cor0.col2 * + col1 * - col1 FROM tab0 AS cor0
----
243276
671744
9374
query I rowsort
SELECT DISTINCT + col2 * 24 AS col0 FROM tab2 AS cor0
----
624
648
912
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 * col0 col0 FROM tab0 AS cor0
----
-1225
-576
-7921
query I rowsort
SELECT cor0.col0 * + cor0.col0 + + cor0.col0 FROM tab0 cor0
----
1260
600
8010
query I rowsort
SELECT ALL - - col0 + ( + col1 ) AS col2 FROM tab2 AS cor0
----
137
38
96
query I rowsort
SELECT + col0 + - col2 + - col2 AS col2 FROM tab2
----
-47
26
3
query I rowsort
SELECT DISTINCT col0 + - tab0.col0 * - col1 FROM tab0
----
2088
3430
8188
query I rowsort
SELECT ( - cor0.col1 ) * - col2 * col1 + - col1 AS col2 FROM tab1 AS cor0
----
16211
36478
5690
query I rowsort
SELECT col1 * 75 FROM tab0
----
6450
6825
7275
query I rowsort
SELECT DISTINCT + - 58 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-58
query I rowsort
SELECT DISTINCT - cor0.col1 * ( col0 * col2 ) FROM tab2 AS cor0
----
-119652
-51034
-5859
query I rowsort
SELECT DISTINCT + - 62 AS col2 FROM tab1, tab2 AS cor0
----
-62
query I rowsort
SELECT ALL ( col0 ) + col0 * + col0 AS col2 FROM tab0
----
1260
600
8010
query I rowsort
SELECT col1 * - ( 48 ) AS col2 FROM tab1 cor0
----
-1248
-480
-624
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 * col0 col0 FROM tab0 AS cor0
----
1225
576
7921
query I rowsort
SELECT DISTINCT - 64 + + 49 AS col0 FROM tab1, tab2 cor0
----
-15
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7613
SELECT ALL col2 + CAST( NULL AS SIGNED ) * - 36 * - col1 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7613
SELECT ALL col2 + CAST ( NULL AS INTEGER ) * - 36 * - col1 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + col1 * 7 AS col2 FROM tab0 AS cor0
----
602
637
679
onlyif mysql # use DIV operator for integer division
query I rowsort label-7615
SELECT + col2 * col1 DIV 45 FROM tab2 AS cor0
----
14
18
34
skipif mysql # not compatible
query I rowsort label-7615
SELECT + col2 * col1 / 45 FROM tab2 AS cor0
----
14
18
34
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7616
SELECT + - col0 * CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7616
SELECT + - col0 * CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7617
SELECT ALL CAST( + col1 AS SIGNED ) * col1 + ( col0 ) FROM tab0 AS cor0
----
7420
8370
9444
skipif mysql # not compatible
query I rowsort label-7617
SELECT ALL CAST ( + col1 AS INTEGER ) * col1 + ( col0 ) FROM tab0 AS cor0
----
7420
8370
9444
onlyif mysql # use DIV operator for integer division
query I rowsort label-7618
SELECT DISTINCT + col2 DIV - cor0.col1 FROM tab0 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-7618
SELECT DISTINCT + col2 / - cor0.col1 FROM tab0 AS cor0
----
0
query I rowsort
SELECT - + col2 * + col0 - col2 AS col0 FROM tab0 cor0
----
-36
-7380
-825
query I rowsort
SELECT + 34 + cor0.col1 AS col1 FROM tab0 AS cor0
----
120
125
131
query I rowsort
SELECT 75 + cor0.col1 * col1 FROM tab2 cor0
----
1036
3556
364
query I rowsort
SELECT + - 30 + col2 AS col0 FROM tab2 cor0
----
-3
-4
8
query I rowsort
SELECT cor0.col1 * + 33 - - cor0.col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 0adb1d9df904a0e1429b33ea26867805
query I rowsort
SELECT + 67 * - col0 FROM tab0 AS cor0
----
-1608
-2345
-5963
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 30 + + col0 col0 FROM tab2 AS cor0
----
-23
48
49
query I rowsort
SELECT DISTINCT - 45 * col0 + col2 AS col0 FROM tab1 cor0
----
-2823
-3504
-81
query I rowsort
SELECT ALL col0 - - col0 * + ( 64 + + col2 ) AS col0 FROM tab2 AS cor0
----
644
7098
8137
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7628
SELECT DISTINCT + ( - col1 ) * + CAST( col2 * col2 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-22599
-24548
-39884
skipif mysql # not compatible
query I rowsort label-7628
SELECT DISTINCT + ( - col1 ) * + CAST ( col2 * col2 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-22599
-24548
-39884
query I rowsort
SELECT - col0 * cor0.col2 + - col0 FROM tab1 AS cor0
----
-165
-3712
-7760
query I rowsort
SELECT DISTINCT - cor0.col2 - - col1 * - cor0.col0 AS col2 FROM tab2 AS cor0
----
-1381
-244
-4628
query I rowsort
SELECT 36 * 20 FROM tab1
----
720
720
720
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col0 * col2 + + cor0.col2 col2 FROM tab0 AS cor0
----
36
7380
825
query I rowsort
SELECT DISTINCT + col1 * cor0.col1 - cor0.col1 FROM tab2 AS cor0
----
272
3422
930
query I rowsort
SELECT ALL + col0 * + col2 + col0 AS col2 FROM tab2 AS cor0
----
196
2106
3081
onlyif mysql # use DIV operator for integer division
query I rowsort label-7635
SELECT - + col0 * + cor0.col1 - + col2 DIV 72 FROM tab2 cor0
----
-1343
-217
-4602
skipif mysql # not compatible
query I rowsort label-7635
SELECT - + col0 * + cor0.col1 - + col2 / 72 FROM tab2 cor0
----
-1343
-217
-4602
query I rowsort
SELECT DISTINCT + + 67 - col1 AS col2 FROM tab0 cor0
----
-19
-24
-30
query I rowsort
SELECT - tab1.col2 AS col0 FROM tab1, tab1 AS cor0, tab0 cor1
----
27 values hashing to 44fdcd7cd603352d4d127811d164cc1e
query I rowsort
SELECT ALL col0 + + 9 * cor0.col2 FROM tab2 AS cor0
----
250
312
421
onlyif mysql # use DIV operator for integer division
query I rowsort label-7639
SELECT ALL + - col1 * col2 * col0 - cor0.col2 DIV 44 FROM tab0 cor0
----
-3395
-664119
-68112
skipif mysql # not compatible
query I rowsort label-7639
SELECT ALL + - col1 * col2 * col0 - cor0.col2 / 44 FROM tab0 cor0
----
-3395
-664119
-68112
query I rowsort
SELECT - 6 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to e92b2679faac7be63701967e3f0c0934
query I rowsort
SELECT ALL col1 + cor0.col2 * + col0 * 22 FROM tab0 AS cor0
----
160647
17510
867
query I rowsort
SELECT DISTINCT + col2 * ( + col2 ) + - col1 * col0 FROM tab1 AS cor0
----
2609
2838
8176
query I rowsort
SELECT + 37 * - col2 AS col1 FROM tab1 AS cor0
----
-1998
-2109
-3552
onlyif mysql # use DIV operator for integer division
query I rowsort label-7644
SELECT col0 + - col0 DIV col1 AS col1 FROM tab0 AS cor0
----
24
35
89
skipif mysql # not compatible
query I rowsort label-7644
SELECT col0 + - col0 / col1 AS col1 FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT DISTINCT - col0 * 78 AS col0 FROM tab0
----
-1872
-2730
-6942
onlyif mysql # use DIV operator for integer division
query I rowsort label-7646
SELECT DISTINCT col0 DIV - ( + col1 ) - 23 AS col2 FROM tab2
----
-23
-24
-27
skipif mysql # not compatible
query I rowsort label-7646
SELECT DISTINCT col0 / - ( + col1 ) - 23 AS col2 FROM tab2
----
-23
-24
-27
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 - + ( + col1 ) col1 FROM tab1
----
28
47
83
query I rowsort
SELECT + ( - ( tab2.col1 ) ) FROM tab2
----
-17
-31
-59
query I rowsort
SELECT DISTINCT + 87 AS col2 FROM tab0, tab2 cor0
----
87
query I rowsort
SELECT 45 * tab0.col2 + tab0.col1 - - ( col2 ) AS col1 FROM tab0
----
143
1604
3863
query I rowsort
SELECT - ( col0 ) + tab1.col2 AS col1 FROM tab1
----
-7
16
51
query I rowsort
SELECT - col1 * col1 - - tab2.col0 FROM tab2
----
-210
-3403
-954
query I rowsort
SELECT + tab0.col1 + col0 * col2 FROM tab0
----
132
7389
878
query I rowsort
SELECT - cor0.col0 + + col0 AS col1 FROM tab0 cor0
----
0
0
0
query I rowsort
SELECT ALL + col0 * - 98 - - col1 * + col1 FROM tab1 AS cor0
----
-6172
-7671
382
query I rowsort
SELECT DISTINCT - cor0.col0 * + col2 AS col2 FROM tab0 AS cor0
----
-35
-7298
-792
query I rowsort
SELECT ALL + - col1 * - cor0.col0 - col0 AS col0 FROM tab2 AS cor0
----
1264
210
4524
query I rowsort
SELECT - col0 + + 79 * col1 * - col0 AS col0 FROM tab0
----
-163080
-268240
-639910
query I rowsort
SELECT DISTINCT col1 * + ( - col2 ) AS col1 FROM tab1
----
-1248
-1404
-570
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + + 9 col0 FROM tab2
----
-17
-18
-29
query I rowsort
SELECT DISTINCT + col0 * - col2 * 86 AS col1 FROM tab0
----
-3010
-627628
-68112
query I rowsort
SELECT col1 + + tab1.col0 * - col2 * + tab1.col1 AS col2 FROM tab1
----
-36470
-4186
-99827
query I rowsort
SELECT DISTINCT 26 FROM tab0, tab1 AS cor0, tab2 cor1
----
26
onlyif mysql # use DIV operator for integer division
query I rowsort label-7664
SELECT tab1.col2 DIV + ( + col1 * + col2 ) + + 30 FROM tab1
----
30
30
30
skipif mysql # not compatible
query I rowsort label-7664
SELECT tab1.col2 / + ( + col1 * + col2 ) + + 30 FROM tab1
----
30
30
30
query I rowsort
SELECT ALL + + col2 * + col2 + + 0 * + col0 AS col1 FROM tab1 cor0
----
2916
3249
9216
query I rowsort
SELECT + col0 + - cor0.col2 * col2 AS col1 FROM tab0 cor0
----
-1065
-6635
34
query I rowsort
SELECT - col2 * ( col2 ) AS col1 FROM tab2 cor0
----
-1444
-676
-729
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 50 + col2 FROM tab0 AS cor0
----
132
51
83
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * tab0.col1 col1 FROM tab0
----
-2838
-7462
-97
query I rowsort
SELECT DISTINCT - col2 + + col1 - col0 FROM tab2
----
-100
-3
-45
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7672
SELECT ALL CAST( NULL AS SIGNED ) + col1 * - tab0.col1 * col1 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7672
SELECT ALL CAST ( NULL AS INTEGER ) + col1 * - tab0.col1 * col1 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT - ( col2 ) + - tab2.col0 AS col0 FROM tab2
----
-104
-117
-34
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 62 col0 FROM tab1 AS cor0
----
62
62
62
query I rowsort
SELECT 78 * + col1 AS col1 FROM tab2 AS cor0
----
1326
2418
4602
query I rowsort
SELECT ALL + - ( col0 ) AS col0 FROM tab2 cor0
----
-7
-78
-79
onlyif mysql # use DIV operator for integer division
query I rowsort label-7677
SELECT ALL - - 57 + col0 DIV - col1 AS col1 FROM tab1 AS cor0
----
51
51
57
skipif mysql # not compatible
query I rowsort label-7677
SELECT ALL - - 57 + col0 / - col1 AS col1 FROM tab1 AS cor0
----
51
51
57
query I rowsort
SELECT ALL - col0 + col1 * + col2 AS col2 FROM tab0 AS cor0
----
2814
62
7373
query I rowsort
SELECT ALL col2 * - col1 + + 49 AS col2 FROM tab1 cor0
----
-1199
-1355
-521
query I rowsort
SELECT - - 43 * - col2 + ( 44 ) * + col2 * col1 AS col0 FROM tab1 AS cor0
----
22629
50784
59454
query I rowsort
SELECT ALL + + 52 FROM tab1 AS cor0
----
52
52
52
query I rowsort
SELECT col2 * + col1 + + col1 AS col0 FROM tab0 AS cor0
----
194
2924
7553
query I rowsort
SELECT + 62 * - col2 AS col0 FROM tab0
----
-2046
-5084
-62
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7684
SELECT - ( - col2 ) * CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7684
SELECT - ( - col2 ) * CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT - 26 * tab2.col0 AS col0 FROM tab2
----
-182
-2028
-2054
query I rowsort
SELECT tab0.col1 * - col0 + + ( - col1 ) FROM tab0
----
-2150
-3492
-8190
query I rowsort
SELECT DISTINCT - 87 + tab1.col2 AS col2 FROM tab1
----
-30
-33
9
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7688
SELECT DISTINCT - 87 * col0 * CAST( col0 * col2 AS SIGNED ) AS col2 FROM tab0
----
-106575
-1653696
-56508414
skipif mysql # not compatible
query I rowsort label-7688
SELECT DISTINCT - 87 * col0 * CAST ( col0 * col2 AS INTEGER ) AS col2 FROM tab0
----
-106575
-1653696
-56508414
onlyif mysql # use DIV operator for integer division
query I rowsort label-7689
SELECT ALL 85 DIV - tab0.col1 AS col0 FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-7689
SELECT ALL 85 / - tab0.col1 AS col0 FROM tab0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * col0 + col1 col0 FROM tab0 AS cor0
----
2150
3492
8190
query I rowsort
SELECT DISTINCT - + ( 15 ) FROM tab1, tab2 AS cor0
----
-15
query I rowsort
SELECT ALL - ( - col2 ) + ( - 68 ) * col1 FROM tab0 AS cor0
----
-5815
-6106
-6595
query I rowsort
SELECT + col0 * cor0.col0 * col1 FROM tab0 AS cor0
----
118825
49536
720811
query I rowsort
SELECT DISTINCT + col0 * - 57 FROM tab2 AS cor0
----
-399
-4446
-4503
query I rowsort
SELECT ALL - cor0.col2 * + col1 * + 66 + col1 FROM tab0 AS cor0
----
-187222
-492401
-6305
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7696
SELECT - + cor0.col2 + CAST( + col0 AS SIGNED ) * cor0.col0 FROM tab2 AS cor0
----
22
6058
6203
skipif mysql # not compatible
query I rowsort label-7696
SELECT - + cor0.col2 + CAST ( + col0 AS INTEGER ) * cor0.col0 FROM tab2 AS cor0
----
22
6058
6203
query I rowsort
SELECT - col1 + - 32 * 61 AS col2 FROM tab1 AS cor0
----
-1962
-1965
-1978
query I rowsort
SELECT 47 + + col2 FROM tab2
----
73
74
85
query I rowsort
SELECT col1 * + col0 + - col2 AS col2 FROM tab0 cor0
----
2031
3394
8017
query I rowsort
SELECT - + cor0.col0 + - ( + col0 * col1 ) FROM tab2 AS cor0
----
-1422
-224
-4680
query I rowsort
SELECT ALL + 69 * + col1 * col1 + col2 * col1 * col0 FROM tab2 AS cor0
----
359841
70975
72168
query I rowsort
SELECT DISTINCT + - 45 AS col2 FROM tab2 cor0
----
-45
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7703
SELECT DISTINCT CAST( 85 AS SIGNED ) * col2 * + ( cor0.col2 ) AS col0 FROM tab1 AS cor0
----
247860
276165
783360
skipif mysql # not compatible
query I rowsort label-7703
SELECT DISTINCT CAST ( 85 AS INTEGER ) * col2 * + ( cor0.col2 ) AS col0 FROM tab1 AS cor0
----
247860
276165
783360
query I rowsort
SELECT ALL + 71 + - col1 FROM tab1 AS cor0
----
45
58
61
query I rowsort
SELECT ALL - col0 + - col2 * + cor0.col2 FROM tab2 AS cor0
----
-1523
-736
-754
query I rowsort
SELECT + ( - cor0.col2 ) * + col0 AS col1 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT ALL + 41 + + col0 + col2 AS col1 FROM tab1 AS cor0
----
162
217
98
query I rowsort
SELECT - 99 + ( cor0.col1 ) FROM tab2 AS cor0
----
-40
-68
-82
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7709
SELECT CAST( NULL AS SIGNED ) + + cor0.col1 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7709
SELECT CAST ( NULL AS INTEGER ) + + cor0.col1 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT tab2.col0 * - tab2.col1 + + col0 * col0 * col0 FROM tab2
----
126
469950
491696
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * 96 col2 FROM tab2 AS cor0
----
2496
2592
3648
query I rowsort
SELECT DISTINCT cor0.col0 + 33 AS col2 FROM tab2 AS cor0
----
111
112
40
query I rowsort
SELECT ALL - 49 * + col2 * col1 FROM tab2 AS cor0
----
-31654
-41013
-75166
onlyif mysql # use DIV operator for integer division
query I rowsort label-7714
SELECT + 20 DIV col2 AS col2 FROM tab0 AS cor0
----
0
0
20
skipif mysql # not compatible
query I rowsort label-7714
SELECT + 20 / col2 AS col2 FROM tab0 AS cor0
----
0
0
20
query I rowsort
SELECT + - col0 + - cor0.col2 FROM tab1 cor0
----
-121
-176
-57
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab0 cor0 CROSS JOIN tab0, tab1 AS cor1, tab0 AS cor2
----
3645 values hashing to ced36882687f040e969c817b62d2e456
query I rowsort
SELECT DISTINCT 10 * - col1 + - col2 FROM tab0
----
-893
-971
-992
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7718
SELECT + ( col1 ) + col2 * + CAST( col2 AS SIGNED ) * col2 + col1 AS col1 FROM tab1
----
157516
185213
884762
skipif mysql # not compatible
query I rowsort label-7718
SELECT + ( col1 ) + col2 * + CAST ( col2 AS INTEGER ) * col2 + col1 AS col1 FROM tab1
----
157516
185213
884762
query I rowsort
SELECT DISTINCT - 21 + + col2 AS col0 FROM tab1
----
33
36
75
query I rowsort
SELECT - col2 + + 49 FROM tab0 AS cor0
----
-33
16
48
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7721
SELECT + CAST( NULL AS SIGNED ) * 78 * + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7721
SELECT + CAST ( NULL AS INTEGER ) * 78 * + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT tab1.col1 * + 36 AS col2 FROM tab1
----
360
468
936
query I rowsort
SELECT ALL col0 * ( col2 ) FROM tab2
----
189
2028
3002
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7724
SELECT + + col2 + col2 * - col0 * + CAST( NULL AS SIGNED ) + col0 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7724
SELECT + + col2 + col2 * - col0 * + CAST ( NULL AS INTEGER ) + col0 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-7725
SELECT ( - col2 ) DIV col1 AS col2 FROM tab2 AS cor0
----
-2
0
0
skipif mysql # not compatible
query I rowsort label-7725
SELECT ( - col2 ) / col1 AS col2 FROM tab2 AS cor0
----
-2
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7726
SELECT CAST( NULL AS SIGNED ) + cor0.col0 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7726
SELECT CAST ( NULL AS INTEGER ) + cor0.col0 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 - col1 col1 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT col0 * + col1 * + 74 AS col2 FROM tab0
----
152736
251230
599326
query I rowsort
SELECT col0 * + 51 FROM tab1
----
153
3264
4080
onlyif mysql # use DIV operator for integer division
query I rowsort label-7730
SELECT col1 * col2 DIV + col0 FROM tab2
----
119
19
8
skipif mysql # not compatible
query I rowsort label-7730
SELECT col1 * col2 / + col0 FROM tab2
----
119
19
8
query I rowsort
SELECT - col0 * - ( col2 ) AS col0 FROM tab1
----
162
3648
7680
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 - - 19 * - col1 col1 FROM tab1
----
-200
-260
-520
query I rowsort
SELECT 90 * - col1 FROM tab1 AS cor0
----
-1170
-2340
-900
query I rowsort
SELECT col1 * + col2 + col2 + + col0 FROM tab1 AS cor0
----
1424
1461
691
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col0 * + col2 + col0 col1 FROM tab1 AS cor0
----
-159
-3584
-7600
query I rowsort
SELECT ALL - col2 * col0 + - col2 FROM tab0 AS cor0
----
-36
-7380
-825
query I rowsort
SELECT + 92 AS col2 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 516fa45c8b06f9f67d6e500bfd435c1a
query I rowsort
SELECT ALL col0 * col1 + 1 * col1 AS col1 FROM tab1 AS cor0
----
104
1053
650
query I rowsort
SELECT + col1 * 33 + + col0 AS col1 FROM tab2 AS cor0
----
1030
2025
640
query I rowsort
SELECT - cor0.col2 + - ( - ( col1 ) ) + col0 * col2 * - col2 FROM tab1 AS cor0
----
-207983
-737363
-8776
query I rowsort
SELECT ALL - col2 * + col1 - + 56 FROM tab2
----
-1590
-702
-893
query I rowsort
SELECT DISTINCT - tab1.col1 * + 76 AS col2 FROM tab1
----
-1976
-760
-988
query I rowsort
SELECT ALL col1 + ( col0 + cor0.col0 ) FROM tab1 AS cor0
----
138
173
32
query I rowsort
SELECT - col2 + ( + col2 ) AS col2 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT ALL - cor0.col1 * 21 + 85 + cor0.col1 * col1 AS col1 FROM tab2 AS cor0
----
17
2327
395
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7746
SELECT DISTINCT col2 - - CAST( - 62 AS SIGNED ) FROM tab0 AS cor0
----
-29
-61
20
skipif mysql # not compatible
query I rowsort label-7746
SELECT DISTINCT col2 - - CAST ( - 62 AS INTEGER ) FROM tab0 AS cor0
----
-29
-61
20
query I rowsort
SELECT + col0 * 16 AS col0 FROM tab1 AS cor0
----
1024
1280
48
query I rowsort
SELECT ALL 48 FROM tab2, tab0 AS cor0, tab1 AS cor1, tab2 cor2
----
81 values hashing to df6d12001a34fdcf5cfb2ca3a4a22108
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7749
SELECT + CAST( - col1 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-86
-91
-97
skipif mysql # not compatible
query I rowsort label-7749
SELECT + CAST ( - col1 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-86
-91
-97
query I rowsort
SELECT - col2 + cor0.col0 AS col2 FROM tab0 cor0
----
-9
34
7
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( cor0.col2 ) + + cor0.col2 col2 FROM tab0, tab2 AS cor0
----
9 values hashing to b24047a4766c1dbbfa5abb9df45d1883
query I rowsort
SELECT 56 * + col1 + - col0 FROM tab0 AS cor0
----
4792
5007
5397
query I rowsort
SELECT DISTINCT + 6 + col2 FROM tab2 AS cor0
----
32
33
44
query I rowsort
SELECT DISTINCT - 90 + + 5 FROM tab0, tab1 AS cor0
----
-85
query I rowsort
SELECT + - ( col1 ) * 11 FROM tab2 AS cor0
----
-187
-341
-649
query I rowsort
SELECT ALL + + ( - col1 ) AS col0 FROM tab2 cor0
----
-17
-31
-59
query I rowsort
SELECT - cor1.col1 FROM tab2, tab0, tab1 AS cor0, tab0 cor1
----
81 values hashing to 786a240f80bef6f9c6a190e92cd4f9e8
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 29 col1 FROM tab2
----
29
29
29
query I rowsort
SELECT DISTINCT col1 * cor0.col1 * + col2 - col0 FROM tab2 AS cor0
----
10903
25940
90428
query I rowsort
SELECT + - col1 * - 94 * col1 AS col2 FROM tab0 AS cor0
----
695224
778414
884446
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * 39 + - cor0.col1 col2 FROM tab2 AS cor0
----
1022
1465
955
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * 18 - + 78 col0 FROM tab2 AS cor0
----
1326
1344
48
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col2 * - 78 col1 FROM tab1 AS cor0
----
4212
4446
7488
query I rowsort
SELECT 90 AS col0 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 5d25a546acf3ae171e731e50adc0112e
query I rowsort
SELECT col2 * - tab2.col1 * + col1 + + col1 AS col0 FROM tab2
----
-10965
-25916
-90447
onlyif mysql # use DIV operator for integer division
query I rowsort label-7766
SELECT 26 + - tab1.col2 DIV - ( tab1.col2 * - col1 ) FROM tab1
----
26
26
26
skipif mysql # not compatible
query I rowsort label-7766
SELECT 26 + - tab1.col2 / - ( tab1.col2 * - col1 ) FROM tab1
----
26
26
26
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 37 col2 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
37
onlyif mysql # use DIV operator for integer division
query I rowsort label-7768
SELECT ALL + + col1 + cor0.col1 DIV - col1 AS col2 FROM tab0 AS cor0
----
85
90
96
skipif mysql # not compatible
query I rowsort label-7768
SELECT ALL + + col1 + cor0.col1 / - col1 AS col2 FROM tab0 AS cor0
----
85
90
96
query I rowsort
SELECT DISTINCT - - 67 * + col2 FROM tab1 AS cor0
----
3618
3819
6432
query I rowsort
SELECT ALL + col0 + + col2 * + cor0.col2 FROM tab2 AS cor0
----
1523
736
754
query I rowsort
SELECT - col0 + col0 * - 49 AS col0 FROM tab0 AS cor0
----
-1200
-1750
-4450
query I rowsort
SELECT ALL - 29 * col2 + cor0.col1 FROM tab2 AS cor0
----
-1085
-695
-752
query I rowsort
SELECT ALL col0 * col2 - ( 84 ) AS col1 FROM tab0 AS cor0
----
-49
708
7214
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 78 * col1 col0 FROM tab0 cor0
----
6708
7098
7566
query I rowsort
SELECT DISTINCT - - 29 * col0 + col1 * col0 + col1 FROM tab0 AS cor0
----
10771
2846
4507
query I rowsort
SELECT + 34 + col1 FROM tab0 AS cor0
----
120
125
131
query I rowsort
SELECT - 64 + - col0 AS col0 FROM tab0 AS cor0
----
-153
-88
-99
query I rowsort
SELECT - col1 * - col0 + + col1 AS col1 FROM tab2 AS cor0
----
1360
248
4661
query I rowsort
SELECT ALL + + col1 * + col0 + 82 + col0 FROM tab2 AS cor0
----
1504
306
4762
query I rowsort
SELECT - + 22 + col1 FROM tab1 cor0
----
-12
-9
4
query I rowsort
SELECT DISTINCT - col0 + ( + col1 ) * col0 FROM tab2 cor0
----
1264
210
4524
query I rowsort
SELECT ALL + - cor0.col2 * + ( col2 ) + - col2 * col2 AS col0 FROM tab0 AS cor0
----
-13448
-2
-2178
query I rowsort
SELECT - col1 * - 29 + + cor0.col1 FROM tab2 AS cor0
----
1770
510
930
query I rowsort
SELECT DISTINCT - 41 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-41
query I rowsort
SELECT DISTINCT cor0.col0 * + 62 FROM tab2 AS cor0
----
434
4836
4898
query I rowsort
SELECT DISTINCT 69 * + col0 + cor0.col2 AS col2 FROM tab1 AS cor0
----
261
4473
5616
query I rowsort
SELECT DISTINCT + col0 * - cor0.col2 AS col0 FROM tab0 cor0
----
-35
-7298
-792
query I rowsort
SELECT col0 * - 60 + - col1 FROM tab2 cor0
----
-451
-4739
-4757
query I rowsort
SELECT DISTINCT - ( cor0.col0 ) * - col2 FROM tab0 AS cor0
----
35
7298
792
onlyif mysql # use DIV operator for integer division
query I rowsort label-7790
SELECT DISTINCT ( - 25 ) DIV + cor0.col0 AS col2 FROM tab2 AS cor0
----
-3
0
skipif mysql # not compatible
query I rowsort label-7790
SELECT DISTINCT ( - 25 ) / + cor0.col0 AS col2 FROM tab2 AS cor0
----
-3
0
query I rowsort
SELECT - - col0 - + col0 AS col0 FROM tab0 cor0
----
0
0
0
query I rowsort
SELECT - col0 * 27 AS col2 FROM tab0 AS cor0
----
-2403
-648
-945
query I rowsort
SELECT ALL + 76 + - col1 AS col1 FROM tab0 AS cor0
----
-10
-15
-21
onlyif mysql # use DIV operator for integer division
query I rowsort label-7794
SELECT tab1.col2 + + col2 DIV col2 AS col0 FROM tab1
----
55
58
97
skipif mysql # not compatible
query I rowsort label-7794
SELECT tab1.col2 + + col2 / col2 AS col0 FROM tab1
----
55
58
97
query I rowsort
SELECT ALL col0 + - col1 * col0 FROM tab2 AS cor0
----
-1264
-210
-4524
query I rowsort
SELECT ALL ( + 63 ) + col1 * col2 FROM tab0 cor0
----
160
2901
7525
query I rowsort
SELECT ALL col2 * + col2 + col1 FROM tab0 AS cor0
----
1175
6815
98
query I rowsort
SELECT ALL tab0.col2 + 48 AS col1 FROM tab0
----
130
49
81
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 47 * + 53 col0 FROM tab0
----
2491
2491
2491
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7800
SELECT ALL + CAST( col0 AS SIGNED ) * - col2 + + 0 FROM tab1 AS cor0
----
-162
-3648
-7680
skipif mysql # not compatible
query I rowsort label-7800
SELECT ALL + CAST ( col0 AS INTEGER ) * - col2 + + 0 FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT - ( 12 ) AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to e698dd57d3aac30af14ce35da434bb45
query I rowsort
SELECT ( col1 ) * - 65 AS col0 FROM tab1 AS cor0
----
-1690
-650
-845
onlyif mysql # use DIV operator for integer division
query I rowsort label-7803
SELECT tab1.col1 DIV - col2 AS col2 FROM tab1
----
0
0
0
skipif mysql # not compatible
query I rowsort label-7803
SELECT tab1.col1 / - col2 AS col2 FROM tab1
----
0
0
0
query I rowsort
SELECT DISTINCT + col2 + - col2 * col2 FROM tab0
----
-1056
-6642
0
query I rowsort
SELECT 32 * - col2 FROM tab0
----
-1056
-2624
-32
query I rowsort
SELECT - col2 * - tab2.col1 AS col1 FROM tab2
----
1534
646
837
onlyif mysql # use DIV operator for integer division
query I rowsort label-7807
SELECT ( col1 ) DIV 44 AS col1 FROM tab0
----
1
2
2
skipif mysql # not compatible
query I rowsort label-7807
SELECT ( col1 ) / 44 AS col1 FROM tab0
----
1
2
2
query I rowsort
SELECT + 9 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to ebef7303942834ca1e6ca8604ec18a07
query I rowsort
SELECT - col0 * + col1 * - col0 FROM tab2
----
106097
1519
358956
onlyif mysql # use DIV operator for integer division
query I rowsort label-7810
SELECT - + cor0.col2 + col1 DIV + col1 AS col0 FROM tab1 cor0
----
-53
-56
-95
skipif mysql # not compatible
query I rowsort label-7810
SELECT - + cor0.col2 + col1 / + col1 AS col0 FROM tab1 cor0
----
-53
-56
-95
query I rowsort
SELECT - + col2 + + col2 * + col0 * col0 AS col1 FROM tab0 AS cor0
----
1224
18975
649440
query I rowsort
SELECT DISTINCT + - col1 + 61 * col0 AS col0 FROM tab1 AS cor0
----
157
3894
4867
query I rowsort
SELECT DISTINCT - col1 * ( + cor0.col0 ) + col1 AS col0 FROM tab2 cor0
----
-1326
-186
-4543
onlyif mysql # use DIV operator for integer division
query I rowsort label-7814
SELECT - - col1 * col1 DIV + col1 FROM tab2 AS cor0
----
17
31
59
skipif mysql # not compatible
query I rowsort label-7814
SELECT - - col1 * col1 / + col1 FROM tab2 AS cor0
----
17
31
59
query I rowsort
SELECT ALL + - 68 + cor0.col0 * - col0 * - col1 FROM tab1 AS cor0
----
166
40892
83132
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7816
SELECT DISTINCT + CAST( col2 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
1
33
82
skipif mysql # not compatible
query I rowsort label-7816
SELECT DISTINCT + CAST ( col2 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT ALL - + col0 * + 19 AS col0 FROM tab1 AS cor0
----
-1216
-1520
-57
query I rowsort
SELECT + - col0 * 86 FROM tab2 cor0
----
-602
-6708
-6794
query I rowsort
SELECT - + ( - col2 ) * col0 * + col0 FROM tab1 AS cor0
----
233472
486
614400
onlyif mysql # use DIV operator for integer division
query I rowsort label-7820
SELECT DISTINCT - 46 DIV cor0.col1 AS col2 FROM tab2 AS cor0
----
-1
-2
0
skipif mysql # not compatible
query I rowsort label-7820
SELECT DISTINCT - 46 / cor0.col1 AS col2 FROM tab2 AS cor0
----
-1
-2
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7821
SELECT + CAST( NULL AS DECIMAL ) * - cor0.col0 AS col1 FROM tab1 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7821
SELECT + CAST ( NULL AS REAL ) * - cor0.col0 AS col1 FROM tab1 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + 97 AS col1 FROM tab2 cor0
----
97
97
97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7823
SELECT - CAST( NULL AS SIGNED ) * 68 * col0 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7823
SELECT - CAST ( NULL AS INTEGER ) * 68 * col0 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + + 65 * - cor0.col0 FROM tab2 AS cor0
----
-455
-5070
-5135
query I rowsort
SELECT + cor0.col2 - - ( col1 ) FROM tab0 AS cor0
----
119
173
98
query I rowsort
SELECT DISTINCT col1 * + 92 FROM tab2 AS cor0
----
1564
2852
5428
onlyif mysql # use DIV operator for integer division
query I rowsort label-7827
SELECT DISTINCT + col0 DIV col2 - - cor0.col2 FROM tab0 AS cor0
----
33
36
83
skipif mysql # not compatible
query I rowsort label-7827
SELECT DISTINCT + col0 / col2 - - cor0.col2 FROM tab0 AS cor0
----
33
36
83
query I rowsort
SELECT DISTINCT - 60 * col0 FROM tab0 AS cor0
----
-1440
-2100
-5340
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - ( + col2 + col0 ) * - cor0.col1 col2 FROM tab1 AS cor0
----
183040
4446
77440
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( col0 ) * col0 + + col0 col1 FROM tab2 AS cor0
----
-42
-6006
-6162
query I rowsort
SELECT DISTINCT cor0.col1 * col2 + + cor0.col2 AS col0 FROM tab1 AS cor0
----
1344
1458
627
query I rowsort
SELECT DISTINCT + 11 AS col2 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
11
query I rowsort
SELECT DISTINCT - - cor0.col0 + cor0.col1 FROM tab2 AS cor0
----
137
38
96
query I rowsort
SELECT ALL - + col0 + - cor0.col1 FROM tab0 cor0
----
-110
-132
-180
query I rowsort
SELECT DISTINCT - + ( + 94 ) AS col1 FROM tab1 AS cor0
----
-94
query I rowsort
SELECT + ( 25 ) + col0 FROM tab2 AS cor0
----
103
104
32
query I rowsort
SELECT ALL - col0 + 10 FROM tab1 AS cor0
----
-54
-70
7
onlyif mysql # use DIV operator for integer division
query I rowsort label-7838
SELECT col1 DIV + 77 AS col0 FROM tab0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-7838
SELECT col1 / + 77 AS col0 FROM tab0
----
1
1
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-7839
SELECT col2 + + col1 DIV + col0 + - col0 FROM tab2
----
-41
-52
24
skipif mysql # not compatible
query I rowsort label-7839
SELECT col2 + + col1 / + col0 + - col0 FROM tab2
----
-41
-52
24
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 - 82 col0 FROM tab2
----
-3
-4
-75
query I rowsort
SELECT DISTINCT tab0.col1 - - 0 AS col2 FROM tab0
----
86
91
97
query I rowsort
SELECT DISTINCT + tab1.col2 - - tab1.col0 FROM tab1
----
121
176
57
query I rowsort
SELECT col0 * - ( 64 ) AS col0 FROM tab1
----
-192
-4096
-5120
query I rowsort
SELECT + col2 * - col1 * + col0 FROM tab2 AS cor0
----
-119652
-51034
-5859
query I rowsort
SELECT ALL - col2 * cor0.col2 * + cor0.col0 AS col1 FROM tab2 AS cor0
----
-114076
-5103
-52728
query I rowsort
SELECT cor0.col0 * cor0.col0 + + ( + 95 * col2 ) AS col1 FROM tab0 AS cor0
----
1320
15711
3711
query I rowsort
SELECT DISTINCT + col2 - col0 * - 78 AS col2 FROM tab1 AS cor0
----
288
5049
6336
query I rowsort
SELECT + - 64 FROM tab0 AS cor0
----
-64
-64
-64
onlyif mysql # use DIV operator for integer division
query I rowsort label-7849
SELECT - col2 DIV cor0.col0 AS col0 FROM tab0 AS cor0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-7849
SELECT - col2 / cor0.col0 AS col0 FROM tab0 AS cor0
----
-1
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * tab2.col1 col1 FROM tab2
----
-1343
-217
-4602
query I rowsort
SELECT ( 32 ) AS col2 FROM tab0
----
32
32
32
query I rowsort
SELECT - + 49 AS col0 FROM tab1 cor0
----
-49
-49
-49
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col2 * 19 col2 FROM tab0, tab1 AS cor0
----
1026
1083
1824
query I rowsort
SELECT tab1.col1 * tab1.col1 + + 0 * ( col1 ) FROM tab1
----
100
169
676
query I rowsort
SELECT ALL + col1 * 79 AS col1 FROM tab2 cor0
----
1343
2449
4661
query I rowsort
SELECT + - col2 + cor0.col0 AS col1 FROM tab2 AS cor0
----
-20
41
52
query I rowsort
SELECT DISTINCT + col2 * + 61 * 86 FROM tab2 AS cor0
----
136396
141642
199348
onlyif mysql # use DIV operator for integer division
query I rowsort label-7858
SELECT DISTINCT tab0.col1 DIV - col2 AS col2 FROM tab0
----
-1
-2
-97
skipif mysql # not compatible
query I rowsort label-7858
SELECT DISTINCT tab0.col1 / - col2 AS col2 FROM tab0
----
-1
-2
-97
query I rowsort
SELECT 97 + col2 FROM tab1
----
151
154
193
onlyif mysql # use DIV operator for integer division
query I rowsort label-7860
SELECT ALL ( - col0 ) DIV col1 FROM tab2
----
-1
-4
0
skipif mysql # not compatible
query I rowsort label-7860
SELECT ALL ( - col0 ) / col1 FROM tab2
----
-1
-4
0
query I rowsort
SELECT 86 + - col0 FROM tab1
----
22
6
83
query I rowsort
SELECT + cor0.col2 * - 20 FROM tab0 AS cor0
----
-1640
-20
-660
query I rowsort
SELECT ALL + col2 + 27 * + col1 * cor0.col1 FROM tab1 AS cor0
----
18306
2757
4659
query I rowsort
SELECT cor0.col1 * - ( - col1 + col0 ) FROM tab2 AS cor0
----
-1054
-1121
744
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7865
SELECT DISTINCT + col1 + - CAST( col1 AS SIGNED ) * col0 FROM tab1 AS cor0
----
-1027
-52
-630
skipif mysql # not compatible
query I rowsort label-7865
SELECT DISTINCT + col1 + - CAST ( col1 AS INTEGER ) * col0 FROM tab1 AS cor0
----
-1027
-52
-630
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7866
SELECT cor0.col2 + CAST( + col1 AS SIGNED ) * col1 FROM tab2 cor0
----
327
3507
988
skipif mysql # not compatible
query I rowsort label-7866
SELECT cor0.col2 + CAST ( + col1 AS INTEGER ) * col1 FROM tab2 cor0
----
327
3507
988
query I rowsort
SELECT ALL - col0 * + 59 - + col1 FROM tab0 AS cor0
----
-1502
-2162
-5342
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7868
SELECT + cor0.col1 * - CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7868
SELECT + cor0.col1 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7869
SELECT + cor0.col2 * CAST( NULL AS DECIMAL ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7869
SELECT + cor0.col2 * CAST ( NULL AS REAL ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - col2 - ( col2 ) AS col1 FROM tab1
----
-108
-114
-192
query I rowsort
SELECT DISTINCT col2 * + col1 + tab2.col0 * ( + col0 + col1 ) AS col1 FROM tab2
----
1103
12220
8230
query I rowsort
SELECT DISTINCT + 89 AS col0 FROM tab0, tab1 AS cor0
----
89
query I rowsort
SELECT ( - ( - col1 ) ) * col2 FROM tab0 AS cor0
----
2838
7462
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-7874
SELECT ALL 44 DIV - cor0.col0 + + col0 FROM tab1 AS cor0
----
-11
64
80
skipif mysql # not compatible
query I rowsort label-7874
SELECT ALL 44 / - cor0.col0 + + col0 FROM tab1 AS cor0
----
-11
64
80
query I rowsort
SELECT col1 + + 19 * - col0 AS col0 FROM tab0 AS cor0
----
-1600
-370
-568
query I rowsort
SELECT col0 * 93 + + cor0.col1 FROM tab1 AS cor0
----
305
5962
7453
query I rowsort
SELECT ALL + - 31 AS col1 FROM tab2 AS cor0
----
-31
-31
-31
query I rowsort
SELECT - - col2 * cor0.col1 + - 45 * - col2 * col1 FROM tab2 AS cor0
----
29716
38502
70564
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( cor0.col2 ) + 7 * col0 col0 FROM tab1 cor0
----
505
656
75
query I rowsort
SELECT 36 + col2 AS col1 FROM tab1 AS cor0
----
132
90
93
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7881
SELECT DISTINCT CAST( - 32 AS SIGNED ) AS col2 FROM tab2, tab1 cor0, tab2 AS cor1
----
-32
skipif mysql # not compatible
query I rowsort label-7881
SELECT DISTINCT CAST ( - 32 AS INTEGER ) AS col2 FROM tab2, tab1 cor0, tab2 AS cor1
----
-32
query I rowsort
SELECT ALL - cor0.col0 + tab0.col0 FROM tab0, tab0 AS cor0
----
9 values hashing to b337e71075b2c62e6c77b94cec980fb8
query I rowsort
SELECT DISTINCT 55 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
55
query I rowsort
SELECT ALL + ( + col0 ) + - 44 FROM tab1 AS cor0
----
-41
20
36
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 90 - + 42 col0 FROM tab0, tab1 cor0
----
9 values hashing to 805b9eac28b33d003ecdf3c2f31b8588
onlyif mysql # use DIV operator for integer division
query I rowsort label-7886
SELECT DISTINCT col1 DIV + ( + ( + col0 ) * col1 ) + - col1 AS col0 FROM tab2
----
-17
-31
-59
skipif mysql # not compatible
query I rowsort label-7886
SELECT DISTINCT col1 / + ( + ( + col0 ) * col1 ) + - col1 AS col0 FROM tab2
----
-17
-31
-59
query I rowsort
SELECT ALL - + col0 * + 6 + col1 + - col1 * col1 FROM tab0 AS cor0
----
-7454
-8724
-9522
query I rowsort
SELECT DISTINCT + col1 * + ( col0 + col2 ) FROM tab0 AS cor0
----
15561
3492
4902
query I rowsort
SELECT DISTINCT - col1 + - 21 FROM tab1 AS cor0
----
-31
-34
-47
query I rowsort
SELECT DISTINCT col1 * - 5 + col0 * + col2 AS col0 FROM tab2 cor0
----
1733
2917
34
query I rowsort
SELECT ALL + - col2 * col1 + + col2 AS col0 FROM tab0 AS cor0
----
-2805
-7380
-96
query I rowsort
SELECT - 47 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 6942a0d9558277afd0d00408d65cf5aa
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * col1 + col1 + col1 col1 FROM tab0 AS cor0
----
2236
3589
8281
query I rowsort
SELECT ALL - col0 + ( col0 + col0 ) FROM tab1 AS cor0
----
3
64
80
onlyif mysql # use DIV operator for integer division
query I rowsort label-7895
SELECT + + col2 + col0 DIV col1 FROM tab0 AS cor0
----
1
33
82
skipif mysql # not compatible
query I rowsort label-7895
SELECT + + col2 + col0 / col1 FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT 66 * col0 FROM tab2
----
462
5148
5214
query I rowsort
SELECT ALL - ( 64 ) AS col1 FROM tab0 AS cor0
----
-64
-64
-64
onlyif mysql # use DIV operator for integer division
query I rowsort label-7898
SELECT + col1 DIV - tab1.col0 FROM tab1
----
-8
0
0
skipif mysql # not compatible
query I rowsort label-7898
SELECT + col1 / - tab1.col0 FROM tab1
----
-8
0
0
query I rowsort
SELECT - - cor0.col0 + col2 * - cor0.col2 FROM tab2 cor0
----
-1365
-598
-722
query I rowsort
SELECT ALL - - ( 19 ) FROM tab1 AS cor0
----
19
19
19
query I rowsort
SELECT + ( col1 ) * + cor0.col2 + col1 AS col0 FROM tab1 AS cor0
----
1261
1430
580
query I rowsort
SELECT 64 * + cor0.col1 + col0 AS col0 FROM tab2 AS cor0
----
1167
1991
3854
query I rowsort
SELECT DISTINCT - + col0 + - col1 * col2 AS col1 FROM tab0 AS cor0
----
-132
-2862
-7551
query I rowsort
SELECT - 2 AS col0 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 20c9213316527d507e26425041e08387
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 - cor0.col2 col2 FROM tab0 AS cor0
----
-171
-36
-57
query I rowsort
SELECT ALL 91 * cor0.col1 * col2 AS col2 FROM tab1 AS cor0
----
113568
127764
51870
query I rowsort
SELECT ALL 87 + - col2 AS col2 FROM tab0 cor0
----
5
54
86
query I rowsort
SELECT - col1 + col2 * col2 AS col2 FROM tab1 AS cor0
----
2890
3239
9203
query I rowsort
SELECT DISTINCT 45 * - col2 + cor0.col0 * 97 FROM tab0 AS cor0
----
3350
4943
843
query I rowsort
SELECT 64 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to c8b19f4c3ff38700cd2bb8a077bf29b9
query I rowsort
SELECT ALL - cor0.col1 * - col1 AS col1 FROM tab0 AS cor0
----
7396
8281
9409
query I rowsort
SELECT ALL - - cor0.col1 * 23 AS col1 FROM tab1 cor0
----
230
299
598
query I rowsort
SELECT col2 - tab0.col0 * - col1 * + col2 FROM tab0
----
3396
664200
68145
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7914
SELECT + col0 - + CAST( col1 AS SIGNED ) * - col2 * CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7914
SELECT + col0 - + CAST ( col1 AS INTEGER ) * - col2 * CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + cor0.col1 * col2 + - col1 * - col1 + - col0 FROM tab2 AS cor0
----
1791
4937
856
query I rowsort
SELECT DISTINCT + cor0.col0 * + col2 * 4 + col2 + + 39 * - ( col0 ) FROM tab2 cor0
----
5096
510
8965
query I rowsort
SELECT DISTINCT - - col2 + 23 FROM tab2 AS cor0
----
49
50
61
query I rowsort
SELECT ALL + col0 * + 44 AS col2 FROM tab1 AS cor0
----
132
2816
3520
query I rowsort
SELECT - ( + col2 ) + + ( + ( col1 ) ) FROM tab0
----
53
9
96
query I rowsort
SELECT 27 + col2 AS col2 FROM tab0
----
109
28
60
query I rowsort
SELECT ALL + 76 AS col1 FROM tab1
----
76
76
76
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - tab0.col2 + + col2 col1 FROM tab0
----
36
7380
825
onlyif mysql # use DIV operator for integer division
query I rowsort label-7923
SELECT DISTINCT col1 + 38 DIV - col1 AS col1 FROM tab2 AS cor0
----
15
30
59
skipif mysql # not compatible
query I rowsort label-7923
SELECT DISTINCT col1 + 38 / - col1 AS col1 FROM tab2 AS cor0
----
15
30
59
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7924
SELECT col0 + col0 * CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7924
SELECT col0 + col0 * CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + col0 + col0 * - tab1.col1 AS col0 FROM tab1
----
-576
-75
-960
query I rowsort
SELECT ALL - cor0.col2 FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to 6a43e7f15194af73fe1c83385e6ebebc
onlyif mysql # use DIV operator for integer division
query I rowsort label-7927
SELECT + ( cor0.col2 ) DIV cor0.col2 - - CAST( - col2 AS SIGNED ) * cor0.col0 AS col1 FROM tab1 AS cor0
----
-161
-3647
-7679
skipif mysql # not compatible
query I rowsort label-7927
SELECT + ( cor0.col2 ) / cor0.col2 - - CAST ( - col2 AS INTEGER ) * cor0.col0 AS col1 FROM tab1 AS cor0
----
-161
-3647
-7679
query I rowsort
SELECT + 92 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to c64cb7a81da51f4be0b6906a223e8817
query I rowsort
SELECT cor1.col1 AS col1 FROM tab2, tab2 cor0, tab0 cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd
query I rowsort
SELECT ALL cor0.col2 + 72 FROM tab2 AS cor0
----
110
98
99
query I rowsort
SELECT DISTINCT 79 AS col2 FROM tab0, tab2 AS cor0
----
79
query I rowsort
SELECT DISTINCT + - tab1.col0 AS col2 FROM tab1, tab0, tab0 AS cor0
----
-3
-64
-80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col2 * - col1 * col2 + 32 * + cor0.col0 col0 FROM tab0 AS cor0
----
1217
614732
94422
query I rowsort
SELECT + ( col1 ) + - ( - col0 ) FROM tab0 AS cor0
----
110
132
180
query I rowsort
SELECT + col2 * + col2 * - 25 AS col2 FROM tab2 AS cor0
----
-16900
-18225
-36100
onlyif mysql # use DIV operator for integer division
query I rowsort label-7936
SELECT DISTINCT col0 DIV - 83 + col2 AS col2 FROM tab2
----
26
27
38
skipif mysql # not compatible
query I rowsort label-7936
SELECT DISTINCT col0 / - 83 + col2 AS col2 FROM tab2
----
26
27
38
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 30 * - 42 + - col2 col2 FROM tab1
----
-1314
-1317
-1356
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 * + col2 * col1 col2 FROM tab0 AS cor0
----
244068
679042
9409
query I rowsort
SELECT DISTINCT - + cor0.col1 - + cor0.col2 AS col1 FROM tab2 AS cor0
----
-55
-58
-85
query I rowsort
SELECT ( - col0 ) + cor0.col2 * - col2 * col0 AS col1 FROM tab2 AS cor0
----
-114155
-5110
-52806
query I rowsort
SELECT + + 90 + - col1 FROM tab2 cor0
----
31
59
73
onlyif mysql # use DIV operator for integer division
query I rowsort label-7942
SELECT col0 + + 52 DIV col1 AS col1 FROM tab0
----
24
35
89
skipif mysql # not compatible
query I rowsort label-7942
SELECT col0 + + 52 / col1 AS col1 FROM tab0
----
24
35
89
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7943
SELECT - + CAST( NULL AS DECIMAL ) * - col2 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7943
SELECT - + CAST ( NULL AS REAL ) * - col2 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - ( ( - cor0.col2 ) ) AS col1 FROM tab1 AS cor0
----
54
57
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col0 + col0 col1 FROM tab0 AS cor0
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7946
SELECT col2 * - cor0.col2 + - CAST( - col2 AS SIGNED ) AS col0 FROM tab0 cor0
----
-1056
-6642
0
skipif mysql # not compatible
query I rowsort label-7946
SELECT col2 * - cor0.col2 + - CAST ( - col2 AS INTEGER ) AS col0 FROM tab0 cor0
----
-1056
-6642
0
query I rowsort
SELECT 39 * - col0 AS col2 FROM tab1 AS cor0
----
-117
-2496
-3120
query I rowsort
SELECT ALL - 43 AS col2 FROM tab1 cor0
----
-43
-43
-43
query I rowsort
SELECT 26 * col1 AS col2 FROM tab1 cor0
----
260
338
676
query I rowsort
SELECT + 91 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 5748627ef5fd86a21cd559fd278d7277
query I rowsort
SELECT tab2.col0 AS col2 FROM tab2, tab0, tab0 AS cor0
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83
query I rowsort
SELECT ALL ( - tab1.col1 ) FROM tab1, tab1 AS cor0
----
9 values hashing to b234798d4706314ba14eaad539d0aa88
query I rowsort
SELECT DISTINCT + col0 * + col2 * 87 AS col0 FROM tab1 AS cor0
----
14094
317376
668160
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 90 col2 FROM tab0 AS cor0
----
-90
-90
-90
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7955
SELECT ALL + - col1 + - col1 * + CAST( col2 AS SIGNED ) col0 FROM tab2 AS cor0
----
-1593
-663
-868
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7955
SELECT ALL + - col1 + - col1 * + CAST ( col2 AS INTEGER ) col0 FROM tab2 AS cor0
----
-1593
-663
-868
query I rowsort
SELECT col0 * 41 FROM tab2 cor0
----
287
3198
3239
query I rowsort
SELECT col1 + ( - cor0.col0 + col0 ) AS col1 FROM tab1 cor0
----
10
13
26
query I rowsort
SELECT - tab1.col2 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 44fdcd7cd603352d4d127811d164cc1e
query I rowsort
SELECT + col2 + + col1 * ( col1 ) * col0 AS col1 FROM tab2 AS cor0
----
22869
271544
6754
query I rowsort
SELECT + col2 + 2 FROM tab0 AS cor0
----
3
35
84
query I rowsort
SELECT + - 46 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 491ad1fb79fec0b5715ea54949d1aa2d
query I rowsort
SELECT - 84 AS col1 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 02f1688b8610806ca28739b1735f6ae4
onlyif mysql # use DIV operator for integer division
query I rowsort label-7963
SELECT ALL - 3 DIV - col0 FROM tab1 AS cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-7963
SELECT ALL - 3 / - col0 FROM tab1 AS cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT CAST ( - tab2.col0 AS REAL ) FROM tab2, tab0 AS cor0, tab0, tab1 cor1
----
-7
-78
-79
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7965
SELECT - CAST( NULL AS DECIMAL ) * col2 + col0 * 1 FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7965
SELECT - CAST ( NULL AS REAL ) * col2 + col0 * 1 FROM tab2 cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-7966
SELECT ALL col2 * + 67 + cor0.col1 DIV - col1 FROM tab1 AS cor0
----
3617
3818
6431
skipif mysql # not compatible
query I rowsort label-7966
SELECT ALL col2 * + 67 + cor0.col1 / - col1 FROM tab1 AS cor0
----
3617
3818
6431
query I rowsort
SELECT DISTINCT - - 81 - col0 FROM tab2 AS cor0
----
2
3
74
query I rowsort
SELECT DISTINCT - col1 + + 95 FROM tab0 cor0
----
-2
4
9
query I rowsort
SELECT cor0.col2 * + col1 + col0 FROM tab1 AS cor0
----
1328
1407
634
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7970
SELECT ALL + CAST( NULL AS SIGNED ) * - col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7970
SELECT ALL + CAST ( NULL AS INTEGER ) * - col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + 99 * - col1 * col1 FROM tab2 AS cor0
----
-28611
-344619
-95139
query I rowsort
SELECT ALL - 70 * col1 FROM tab2 AS cor0
----
-1190
-2170
-4130
query I rowsort
SELECT + ( 56 ) + col1 AS col0 FROM tab0 AS cor0
----
142
147
153
query I rowsort
SELECT DISTINCT - - col2 * - 20 FROM tab0 AS cor0
----
-1640
-20
-660
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col0 * - col0 + + col0 col2 FROM tab2 AS cor0
----
56
6162
6320
query I rowsort
SELECT col2 * col0 * 10 AS col0 FROM tab2
----
1890
20280
30020
query I rowsort
SELECT DISTINCT 4 - + col1 AS col2 FROM tab2 AS cor0
----
-13
-27
-55
query I rowsort
SELECT col0 * col0 * ( + col2 ) AS col2 FROM tab0
----
1225
19008
649522
query I rowsort
SELECT - col0 + - cor0.col2 * - cor0.col1 AS col0 FROM tab2 AS cor0
----
1456
567
830
query I rowsort
SELECT - + col1 + cor0.col2 * - col0 AS col1 FROM tab2 cor0
----
-2087
-220
-3019
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 * 15 col2 FROM tab0 AS cor0
----
1290
1365
1455
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7982
SELECT + CAST( col0 AS SIGNED ) + col2 * CAST( + col0 AS SIGNED ) col1 FROM tab0
----
70
7387
816
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7982
SELECT + CAST ( col0 AS INTEGER ) + col2 * CAST ( + col0 AS INTEGER ) col1 FROM tab0
----
70
7387
816
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab0.col1 col2 FROM tab0, tab0 cor0
----
9 values hashing to 58ed467a9a332e4d7bfaa9abdbbd063f
query I rowsort
SELECT ALL col2 * col1 * 87 AS col1 FROM tab2 AS cor0
----
133458
56202
72819
query I rowsort
SELECT DISTINCT + col0 - col0 AS col0 FROM tab0
----
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 - - cor0.col2 * col1 col0 FROM tab0 AS cor0
----
2805
7380
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-7987
SELECT + - ( + col0 ) DIV + col2 FROM tab1 cor0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-7987
SELECT + - ( + col0 ) / + col2 FROM tab1 cor0
----
-1
0
0
query I rowsort
SELECT ALL 66 + col0 * - 70 - col2 FROM tab1
----
-198
-4471
-5630
query I rowsort
SELECT DISTINCT + 52 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
52
query I rowsort
SELECT + - col1 + col2 + - col0 FROM tab2 AS cor0
----
-11
-111
-58
query I rowsort
SELECT DISTINCT - ( cor0.col1 ) FROM tab1, tab0 AS cor0
----
-86
-91
-97
query I rowsort
SELECT DISTINCT - tab1.col0 + cor0.col1 + + cor0.col0 FROM tab1, tab0, tab1 AS cor0
----
9 values hashing to c50189517c654556e1d87527fc68b49a
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7993
SELECT DISTINCT - CAST( NULL AS SIGNED ) * col1 col2 FROM tab1
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7993
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * col1 col2 FROM tab1
----
NULL
query I rowsort
SELECT ALL 6 * + col0 AS col2 FROM tab2
----
42
468
474
query I rowsort
SELECT col0 * ( col1 ) * + ( 28 ) + col1 AS col2 FROM tab0
----
226863
57878
95157
query I rowsort
SELECT ( + col0 ) + col1 AS col1 FROM tab1
----
29
74
93
query I rowsort
SELECT - ( tab0.col1 + col2 ) FROM tab0
----
-119
-173
-98
query I rowsort
SELECT - 75 + tab0.col2 AS col2 FROM tab0
----
-42
-74
7
onlyif mysql # use DIV operator for integer division
query I rowsort label-7999
SELECT + col2 DIV 18 + col2 FROM tab0
----
1
34
86
skipif mysql # not compatible
query I rowsort label-7999
SELECT + col2 / 18 + col2 FROM tab0
----
1
34
86
query I rowsort
SELECT DISTINCT 30 + - col1 FROM tab0
----
-56
-61
-67
onlyif mysql # use DIV operator for integer division
query I rowsort label-8001
SELECT - 81 DIV tab1.col0 FROM tab1
----
-1
-1
-27
skipif mysql # not compatible
query I rowsort label-8001
SELECT - 81 / tab1.col0 FROM tab1
----
-1
-1
-27
query I rowsort
SELECT DISTINCT - - col0 - - cor0.col1 AS col1 FROM tab1 AS cor0
----
29
74
93
onlyif mysql # use DIV operator for integer division
query I rowsort label-8003
SELECT DISTINCT - 50 DIV col0 + cor0.col1 AS col2 FROM tab0 AS cor0
----
84
91
96
skipif mysql # not compatible
query I rowsort label-8003
SELECT DISTINCT - 50 / col0 + cor0.col1 AS col2 FROM tab0 AS cor0
----
84
91
96
query I rowsort
SELECT ALL - col1 + + col0 - ( + col2 * - col1 ) AS col2 FROM tab0 AS cor0
----
2776
35
7460
onlyif mysql # use DIV operator for integer division
query I rowsort label-8005
SELECT ALL - ( - col2 ) DIV - ( - col0 ) FROM tab0 cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-8005
SELECT ALL - ( - col2 ) / - ( - col0 ) FROM tab0 cor0
----
0
0
1
query I rowsort
SELECT ALL 2 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 84dbfaf9bc17dd097f15bc36b4186261
query I rowsort
SELECT DISTINCT - 72 * col2 * - 98 + + 9 - col2 * - col0 FROM tab1 AS cor0
----
381195
405849
685065
query I rowsort
SELECT DISTINCT col0 * - cor0.col0 + col1 AS col1 FROM tab0 AS cor0
----
-1128
-490
-7830
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8009
SELECT DISTINCT + col0 + CAST( col0 AS SIGNED ) col1 FROM tab0
----
178
48
70
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8009
SELECT DISTINCT + col0 + CAST ( col0 AS INTEGER ) col1 FROM tab0
----
178
48
70
query I rowsort
SELECT DISTINCT col2 + 70 AS col0 FROM tab1
----
124
127
166
query I rowsort
SELECT DISTINCT cor0.col0 + + col1 * + col0 FROM tab2 cor0
----
1422
224
4680
query I rowsort
SELECT col1 * cor0.col0 AS col1 FROM tab1 cor0
----
1040
640
78
query I rowsort
SELECT DISTINCT cor0.col1 + col2 * col0 AS col0 FROM tab1 AS cor0
----
188
3658
7693
onlyif mysql # use DIV operator for integer division
query I rowsort label-8014
SELECT - ( - 83 ) DIV col2 AS col1 FROM tab0 AS cor0
----
1
2
83
skipif mysql # not compatible
query I rowsort label-8014
SELECT - ( - 83 ) / col2 AS col1 FROM tab0 AS cor0
----
1
2
83
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 56 * + col0 + - col0 col1 FROM tab0 AS cor0
----
1320
1925
4895
query I rowsort
SELECT DISTINCT + 97 - - cor0.col0 FROM tab0 AS cor0
----
121
132
186
query I rowsort
SELECT - 72 FROM tab2, tab0, tab0 AS cor0, tab1
----
81 values hashing to 95a1a68628dd064d94b4fe1543a3419f
query I rowsort
SELECT DISTINCT + col0 * 19 + - cor0.col2 AS col0 FROM tab0 AS cor0
----
1609
423
664
query I rowsort
SELECT + ( + col2 ) * + col2 * 3 AS col0 FROM tab0 AS cor0
----
20172
3
3267
query I rowsort
SELECT DISTINCT col2 * + 97 + col1 FROM tab0 AS cor0
----
194
3287
8045
query I rowsort
SELECT DISTINCT + 67 * cor0.col0 AS col1 FROM tab0, tab1 AS cor0, tab1, tab1 AS cor1
----
201
4288
5360
onlyif mysql # use DIV operator for integer division
query I rowsort label-8022
SELECT + - col0 DIV 74 AS col0 FROM tab2 AS cor0
----
-1
-1
0
skipif mysql # not compatible
query I rowsort label-8022
SELECT + - col0 / 74 AS col0 FROM tab2 AS cor0
----
-1
-1
0
query I rowsort
SELECT + 66 + col2 FROM tab2 AS cor0
----
104
92
93
query I rowsort
SELECT + 71 + 47 + cor0.col0 FROM tab1 AS cor0
----
121
182
198
query I rowsort
SELECT + 6 * col1 FROM tab2 AS cor0
----
102
186
354
query I rowsort
SELECT cor0.col1 + 69 FROM tab2, tab1 AS cor0
----
9 values hashing to 35cd26f33597c096312fa50511b41cbe
query I rowsort
SELECT + col0 * ( + col1 ) AS col0 FROM tab2
----
1343
217
4602
onlyif mysql # use DIV operator for integer division
query I rowsort label-8028
SELECT ALL - col1 + col1 DIV - cor0.col1 AS col0 FROM tab0 AS cor0
----
-87
-92
-98
skipif mysql # not compatible
query I rowsort label-8028
SELECT ALL - col1 + col1 / - cor0.col1 AS col0 FROM tab0 AS cor0
----
-87
-92
-98
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col0 col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 3000337dd3f11e9cfd5a312b01ef3f8b
query I rowsort
SELECT cor0.col1 * + 0 + 30 AS col2 FROM tab1 cor0
----
30
30
30
query I rowsort
SELECT + + cor0.col2 * ( - col2 ) + cor0.col1 FROM tab2 AS cor0
----
-1427
-617
-698
query I rowsort
SELECT 87 + + 75 * - col0 FROM tab0 AS cor0
----
-1713
-2538
-6588
query I rowsort
SELECT ALL tab1.col1 * col2 * - tab1.col0 + col1 FROM tab1
----
-36470
-4186
-99827
query I rowsort
SELECT + 47 * col0 FROM tab1 AS cor0
----
141
3008
3760
query I rowsort
SELECT ALL - col2 * + col0 * + ( col0 ) FROM tab1
----
-233472
-486
-614400
query I rowsort
SELECT col1 + - ( tab1.col1 ) * + col2 + - col1 FROM tab1
----
-1248
-1404
-570
query I rowsort
SELECT DISTINCT - + tab0.col1 AS col2 FROM tab0, tab2, tab1 AS cor0
----
-86
-91
-97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8038
SELECT + - col1 * CAST( - col1 AS SIGNED ) + - cor0.col2 AS col1 FROM tab1 AS cor0
----
43
622
73
skipif mysql # not compatible
query I rowsort label-8038
SELECT + - col1 * CAST ( - col1 AS INTEGER ) + - cor0.col2 AS col1 FROM tab1 AS cor0
----
43
622
73
query I rowsort
SELECT ALL + 56 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 9c4523312174730bbc525b9977aa99fa
query I rowsort
SELECT tab1.col0 - - col0 * col2 FROM tab1
----
165
3712
7760
query I rowsort
SELECT ALL tab1.col2 * - tab1.col0 FROM tab1
----
-162
-3648
-7680
query I rowsort
SELECT - col1 * - 64 FROM tab0 AS cor0
----
5504
5824
6208
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8043
SELECT - cor0.col1 + + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8043
SELECT - cor0.col1 + + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + + col0 * ( - col1 ) FROM tab1 AS cor0
----
-1040
-640
-78
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 24 * + col0 * col0 col1 FROM tab0
----
13824
190104
29400
query I rowsort
SELECT + col1 * 98 + col1 * + col0 FROM tab1 AS cor0
----
1620
2314
2626
query I rowsort
SELECT 90 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 96f7a90428db93f472e0d219bab64853
query I rowsort
SELECT DISTINCT col2 - col2 * tab1.col2 * - col0 AS col1 FROM tab1
----
207993
737376
8802
query I rowsort
SELECT ALL + 95 + col1 - + col1 FROM tab2
----
95
95
95
query I rowsort
SELECT DISTINCT 14 - - ( + col2 ) AS col2 FROM tab2
----
40
41
52
query I rowsort
SELECT cor0.col2 * - col0 + + col1 AS col1 FROM tab0 cor0
----
-706
-7207
62
query I rowsort
SELECT - 36 * col0 + 54 FROM tab2 AS cor0
----
-198
-2754
-2790
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8053
SELECT ALL - CAST( NULL AS SIGNED ) * + 57 AS col0 FROM tab1, tab2 cor0, tab0 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif mysql # not compatible
query I rowsort label-8053
SELECT ALL - CAST ( NULL AS INTEGER ) * + 57 AS col0 FROM tab1, tab2 cor0, tab0 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
query I rowsort
SELECT + cor0.col0 * + col2 AS col1 FROM tab0 cor0
----
35
7298
792
onlyif mysql # use DIV operator for integer division
query I rowsort label-8055
SELECT col2 + - col0 DIV - col1 FROM tab0 AS cor0
----
1
33
82
skipif mysql # not compatible
query I rowsort label-8055
SELECT col2 + - col0 / - col1 FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT + ( col1 ) + col1 AS col0 FROM tab2 AS cor0
----
118
34
62
query I rowsort
SELECT ALL 33 * - cor0.col1 AS col0 FROM tab0 AS cor0
----
-2838
-3003
-3201
onlyif mysql # use DIV operator for integer division
query I rowsort label-8058
SELECT ( + tab2.col0 ) DIV + col1 AS col0 FROM tab2
----
0
1
4
skipif mysql # not compatible
query I rowsort label-8058
SELECT ( + tab2.col0 ) / + col1 AS col0 FROM tab2
----
0
1
4
query I rowsort
SELECT - col0 + col2 * + col0 AS col2 FROM tab2 AS cor0
----
182
1950
2923
query I rowsort
SELECT - col2 * col0 * col1 + - col0 FROM tab2 AS cor0
----
-119730
-51113
-5866
query I rowsort
SELECT ALL - 91 * col0 AS col1 FROM tab2 AS cor0
----
-637
-7098
-7189
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * col1 + + col1 col2 FROM tab2
----
306
3540
992
onlyif mysql # use DIV operator for integer division
query I rowsort label-8063
SELECT + + cor0.col2 * cor0.col1 DIV col0 AS col2 FROM tab1 AS cor0
----
15
468
8
skipif mysql # not compatible
query I rowsort label-8063
SELECT + + cor0.col2 * cor0.col1 / col0 AS col2 FROM tab1 AS cor0
----
15
468
8
query I rowsort
SELECT ALL + col1 * - col2 + col0 * + col0 FROM tab0
----
-2262
1128
459
query I rowsort
SELECT ALL col1 + col0 * + ( col1 ) AS col2 FROM tab1
----
104
1053
650
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 * - col1 + col1 col2 FROM tab1 AS cor0
----
-1235
-1378
-560
query I rowsort
SELECT ALL cor0.col1 * + cor0.col2 AS col2 FROM tab2 cor0
----
1534
646
837
query I rowsort
SELECT ALL + col1 * col1 + - col2 FROM tab1 AS cor0
----
43
622
73
query I rowsort
SELECT DISTINCT + col1 + cor0.col0 AS col1 FROM tab0 AS cor0
----
110
132
180
query I rowsort
SELECT ALL + ( + col1 ) + 32 * - col2 AS col2 FROM tab2 AS cor0
----
-1199
-773
-833
query I rowsort
SELECT ALL 69 * + col0 FROM tab1 AS cor0
----
207
4416
5520
query I rowsort
SELECT ALL + 59 * col2 AS col1 FROM tab2 cor0
----
1534
1593
2242
query I rowsort
SELECT ALL - col0 + - 92 * col1 AS col1 FROM tab0 AS cor0
----
-7936
-8461
-8959
query I rowsort
SELECT - - col2 + cor0.col2 FROM tab1 AS cor0
----
108
114
192
query I rowsort
SELECT DISTINCT col0 * 92 + col0 AS col1 FROM tab1 AS cor0
----
279
5952
7440
query I rowsort
SELECT DISTINCT + col1 + + 12 AS col2 FROM tab2 AS cor0
----
29
43
71
query I rowsort
SELECT - col2 * cor0.col2 * col0 AS col2 FROM tab0 AS cor0
----
-26136
-35
-598436
query I rowsort
SELECT cor0.col0 + + ( col2 ) FROM tab0 cor0
----
171
36
57
query I rowsort
SELECT DISTINCT cor0.col0 * cor0.col1 + col1 FROM tab2 AS cor0
----
1360
248
4661
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8080
SELECT DISTINCT + - col0 * + CAST( NULL AS SIGNED ) + ( + col1 + 1 ) FROM tab2 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-8080
SELECT DISTINCT + - col0 * + CAST ( NULL AS INTEGER ) + ( + col1 + 1 ) FROM tab2 cor0
----
NULL
query I rowsort
SELECT DISTINCT col0 * + col2 + col1 FROM tab0
----
132
7389
878
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8082
SELECT - col1 * + CAST( NULL AS SIGNED ) + 63 col1 FROM tab1 cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8082
SELECT - col1 * + CAST ( NULL AS INTEGER ) + 63 col1 FROM tab1 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + 53 + + col1 * 82 AS col1 FROM tab0
----
7105
7515
8007
query I rowsort
SELECT ALL col1 + tab1.col2 * - ( + col2 * col1 ) + - tab1.col2 * - col1 AS col1 FROM tab1
----
-118547
-31910
-74386
query I rowsort
SELECT DISTINCT - col2 + tab0.col0 + + col2 * col0 AS col1 FROM tab0
----
69
7305
783
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8086
SELECT DISTINCT + col0 * - col1 + col2 - CAST( 77 AS SIGNED ) * col1 * ( - ( + cor0.col1 ) ) AS col1 FROM tab2 AS cor0
----
20948
263461
73807
skipif mysql # not compatible
query I rowsort label-8086
SELECT DISTINCT + col0 * - col1 + col2 - CAST ( 77 AS INTEGER ) * col1 * ( - ( + cor0.col1 ) ) AS col1 FROM tab2 AS cor0
----
20948
263461
73807
onlyif mysql # use DIV operator for integer division
query I rowsort label-8087
SELECT DISTINCT col2 DIV ( col1 * - col0 ) FROM tab1 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-8087
SELECT DISTINCT col2 / ( col1 * - col0 ) FROM tab1 AS cor0
----
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + - col2 * col0 col1 FROM tab0 AS cor0
----
-70
-7387
-816
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 26 col0 FROM tab1 cor0
----
26
query I rowsort
SELECT DISTINCT 44 + - 3 + - col0 FROM tab1 AS cor0
----
-23
-39
38
query I rowsort
SELECT - + 13 * col1 AS col2 FROM tab1 AS cor0
----
-130
-169
-338
onlyif mysql # use DIV operator for integer division
query I rowsort label-8092
SELECT DISTINCT + cor0.col1 DIV + col2 + col1 FROM tab1 AS cor0
----
10
13
26
skipif mysql # not compatible
query I rowsort label-8092
SELECT DISTINCT + cor0.col1 / + col2 + col1 FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT ALL - + cor0.col0 * col1 AS col0 FROM tab1 AS cor0
----
-1040
-640
-78
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8094
SELECT ALL - CAST( NULL AS SIGNED ) col2 FROM tab2 cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8094
SELECT ALL - CAST ( NULL AS INTEGER ) col2 FROM tab2 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + 29 + col1 AS col1 FROM tab0 AS cor0
----
115
120
126
query I rowsort
SELECT ALL col1 * - col1 + col2 FROM tab1
----
-43
-622
-73
onlyif mysql # use DIV operator for integer division
query I rowsort label-8097
SELECT ALL - col0 DIV col0 + col1 * - col2 * tab0.col0 FROM tab0
----
-3396
-664119
-68113
skipif mysql # not compatible
query I rowsort label-8097
SELECT ALL - col0 / col0 + col1 * - col2 * tab0.col0 FROM tab0
----
-3396
-664119
-68113
onlyif mysql # use DIV operator for integer division
query I rowsort label-8098
SELECT DISTINCT - col0 DIV col2 + col2 * - col1 FROM tab0
----
-132
-2838
-7463
skipif mysql # not compatible
query I rowsort label-8098
SELECT DISTINCT - col0 / col2 + col2 * - col1 FROM tab0
----
-132
-2838
-7463
onlyif mysql # use DIV operator for integer division
query I rowsort label-8099
SELECT DISTINCT - col0 DIV + col0 - - tab1.col1 AS col0 FROM tab1
----
12
25
9
skipif mysql # not compatible
query I rowsort label-8099
SELECT DISTINCT - col0 / + col0 - - tab1.col1 AS col0 FROM tab1
----
12
25
9
query I rowsort
SELECT - col1 * col2 + + tab2.col2 + col0 FROM tab2
----
-1430
-529
-803
onlyif mysql # use DIV operator for integer division
query I rowsort label-8101
SELECT DISTINCT - col1 DIV + col2 - - col1 AS col1 FROM tab1
----
10
13
26
skipif mysql # not compatible
query I rowsort label-8101
SELECT DISTINCT - col1 / + col2 - - col1 AS col1 FROM tab1
----
10
13
26
query I rowsort
SELECT DISTINCT + col2 * + col0 * col1 AS col0 FROM tab2
----
119652
51034
5859
query I rowsort
SELECT ALL - col2 * col1 * - col1 FROM tab2
----
10982
25947
90506
onlyif mysql # use DIV operator for integer division
query I rowsort label-8104
SELECT DISTINCT + col1 DIV col0 + col1 DIV col2 FROM tab1
----
0
8
skipif mysql # not compatible
query I rowsort label-8104
SELECT DISTINCT + col1 / col0 + col1 / col2 FROM tab1
----
0
8
query I rowsort
SELECT - col1 * col2 + + col2 FROM tab1 WHERE NOT NULL BETWEEN - col1 * - col2 / col0 AND - col2 - col0
----
query I rowsort
SELECT ALL col1 * + col2 + col2 FROM tab0
----
2871
7544
98
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + col2 col1 FROM tab2
----
-41
-52
20
query I rowsort
SELECT ALL tab0.col1 * + col2 FROM tab0 WHERE NULL IN ( - col0 * + col0 * col1 )
----
query III rowsort
SELECT * FROM tab1 WHERE - col2 > col0
----
query I rowsort
SELECT col1 * col2 AS col0 FROM tab1 WHERE NOT NULL IN ( + col0 * col1 * col1 )
----
query I rowsort
SELECT DISTINCT - col2 * + col1 - - tab1.col0 AS col1 FROM tab1
----
-1168
-1401
-506
query I rowsort
SELECT - col0 - col2 * + col2 AS col2 FROM tab2
----
-1523
-736
-754
query I rowsort
SELECT - col2 + + tab1.col2 FROM tab1 WHERE NOT NULL NOT IN ( col2 + col1 )
----
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col0 <= ( col1 )
----
78
59
26
79
17
38
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + - col0 col0 FROM tab0
----
-171
-36
-57
query I rowsort
SELECT + col0 * + col0 * + col0 + + col1 * - col0 * - col2 FROM tab2 AS cor0
----
544073
594204
6202
query I rowsort
SELECT ALL col1 + - col0 + col0 FROM tab0
----
86
91
97
query I rowsort
SELECT col1 + + col0 + col1 AS col2 FROM tab2
----
113
196
69
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * col1 * + col0 + - col0 col1 FROM tab0 AS cor0
----
3360
664029
68088
onlyif mysql # use DIV operator for integer division
query I rowsort label-8120
SELECT col2 DIV col0 + - col2 col1 FROM tab2 AS cor0
----
-24
-26
-38
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8120
SELECT col2 / col0 + - col2 col1 FROM tab2 AS cor0
----
-24
-26
-38
query I rowsort
SELECT DISTINCT + col1 + + col2 + + col2 AS col0 FROM tab0
----
152
255
99
query I rowsort
SELECT col1 + + col2 - col2 FROM tab2
----
17
31
59
query I rowsort
SELECT DISTINCT - tab1.col2 + col0 + - col0 * - col1 * + col2 AS col2 FROM tab1
----
36487
4161
99824
query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab2 WHERE NOT NULL <> NULL
----
query I rowsort
SELECT col0 * - tab1.col2 - col0 FROM tab1
----
-165
-3712
-7760
query I rowsort
SELECT col1 * - col1 + - col2 AS col2 FROM tab1
----
-157
-265
-730
query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND - col0 * col0 + - col1 - col1
----
query I rowsort
SELECT DISTINCT + col2 * - col0 * col0 + - col0 * col1 * col1 FROM tab0 AS cor0
----
-1386531
-196512
-330540
query I rowsort
SELECT + 63 FROM tab1, tab2 cor0, tab2 AS cor1
----
27 values hashing to 38764a6e696d1a6b5095e29ef84959c0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( 66 ) * col1 + col2 col0 FROM tab2 AS cor0
----
-1084
-2019
-3868
query I rowsort
SELECT - col2 * tab1.col1 * - col0 AS col2 FROM tab1
----
36480
4212
99840
query I rowsort
SELECT + 78 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 2aff42d3e015022a738905090a20dfd4
query I rowsort
SELECT ALL - + col2 + cor0.col1 AS col2 FROM tab2 cor0
----
-21
33
4
query I rowsort
SELECT ALL - + cor0.col1 * + cor0.col2 AS col1 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT DISTINCT 97 + - 52 AS col0 FROM tab1 AS cor0
----
45
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * col2 + col1 * col0 col1 FROM tab0 AS cor0
----
14823
3153
3396
query I rowsort
SELECT ALL + ( 22 ) AS col0 FROM tab0
----
22
22
22
query I rowsort
SELECT - - 66 * + col1 + - col1 * - ( col1 ) + col1 FROM tab1 AS cor0
----
1040
2418
770
query I rowsort
SELECT ( - 78 ) * + col2 + + 8 * - col1 AS col1 FROM tab2 AS cor0
----
-2354
-2500
-3100
query I rowsort
SELECT - 31 FROM tab1, tab0 cor0, tab1 AS cor1, tab1 cor2
----
81 values hashing to cb21a77465f6a7c6b5c4c99bafc9df52
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col2 col1 FROM tab2, tab1 AS cor0
----
54
57
96
query I rowsort
SELECT + + ( col2 ) + - ( - col2 ) AS col0 FROM tab1 AS cor0
----
108
114
192
query I rowsort
SELECT ALL 16 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to ee5bde9f68ee828e8cd86b0d590090bc
query I rowsort
SELECT ALL 21 + - col1 AS col0 FROM tab0
----
-65
-70
-76
query I rowsort
SELECT - + col0 * cor0.col1 + 30 FROM tab2 AS cor0
----
-1313
-187
-4572
query I rowsort
SELECT DISTINCT + - 82 + + col0 AS col2 FROM tab0 AS cor0
----
-47
-58
7
query I rowsort
SELECT col0 * - col1 + - col2 * col2 AS col0 FROM tab0 AS cor0
----
-14823
-3153
-3396
onlyif mysql # use DIV operator for integer division
query I rowsort label-8148
SELECT cor0.col2 DIV - ( col1 ) + cor0.col0 AS col1 FROM tab2 AS cor0
----
7
77
78
skipif mysql # not compatible
query I rowsort label-8148
SELECT cor0.col2 / - ( col1 ) + cor0.col0 AS col1 FROM tab2 AS cor0
----
7
77
78
query I rowsort
SELECT col2 + - col1 + col1 * col0 * col1 AS col2 FROM tab0 AS cor0
----
177451
329219
737000
query I rowsort
SELECT col2 * - 64 - 1 FROM tab1 AS cor0
----
-3457
-3649
-6145
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8151
SELECT - cor0.col2 + CAST( col0 AS SIGNED ) * cor0.col1 AS col2 FROM tab2 AS cor0
----
1305
190
4576
skipif mysql # not compatible
query I rowsort label-8151
SELECT - cor0.col2 + CAST ( col0 AS INTEGER ) * cor0.col1 AS col2 FROM tab2 AS cor0
----
1305
190
4576
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + + col2 * + 31 + 54 * - col2 col1 FROM tab0
----
-1797
-735
12
query I rowsort
SELECT ALL 80 + + col0 AS col1 FROM tab1
----
144
160
83
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + tab2.col1 * + col0 col1 FROM tab2
----
1326
186
4543
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + cor0.col2 + + col0 col1 FROM tab1 AS cor0
----
165
3712
7760
onlyif mysql # use DIV operator for integer division
query I rowsort label-8156
SELECT - col0 DIV col0 + - col0 - + col1 AS col2 FROM tab0 AS cor0
----
-111
-133
-181
skipif mysql # not compatible
query I rowsort label-8156
SELECT - col0 / col0 + - col0 - + col1 AS col2 FROM tab0 AS cor0
----
-111
-133
-181
query I rowsort
SELECT ALL - + ( col2 ) + - col2 * + col2 AS col1 FROM tab0 AS cor0
----
-1122
-2
-6806
onlyif mysql # use DIV operator for integer division
query I rowsort label-8158
SELECT ALL - cor0.col1 + ( - col1 ) DIV + col0 + - col2 FROM tab1 AS cor0
----
-109
-67
-88
skipif mysql # not compatible
query I rowsort label-8158
SELECT ALL - cor0.col1 + ( - col1 ) / + col0 + - col2 FROM tab1 AS cor0
----
-109
-67
-88
query I rowsort
SELECT - 54 + col2 AS col2 FROM tab0 AS cor0
----
-21
-53
28
query I rowsort
SELECT + 84 * col1 FROM tab0 AS cor0
----
7224
7644
8148
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 60 col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 067a4b5daf8747042e3b07ca8459859f
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8162
SELECT CAST( - ( + col1 ) AS SIGNED ) * + col1 + tab0.col0 * col1 * + tab0.col0 AS col2 FROM tab0
----
109416
42140
712530
skipif mysql # not compatible
query I rowsort label-8162
SELECT CAST ( - ( + col1 ) AS INTEGER ) * + col1 + tab0.col0 * col1 * + tab0.col0 AS col2 FROM tab0
----
109416
42140
712530
query I rowsort
SELECT ALL ( 29 ) * col2 * + col1 + - col0 AS col0 FROM tab1
----
16466
36112
40713
query I rowsort
SELECT ALL + - cor0.col1 - col2 AS col2 FROM tab0 cor0
----
-119
-173
-98
query I rowsort
SELECT tab1.col1 * 74 * - col1 AS col1 FROM tab1
----
-12506
-50024
-7400
query I rowsort
SELECT ALL tab1.col0 + + 38 * col1 FROM tab1
----
444
574
991
query I rowsort
SELECT DISTINCT + 51 AS col0 FROM tab1, tab1 AS cor0
----
51
query I rowsort
SELECT ALL 83 * - col1 + tab2.col0 * + col1 FROM tab2
----
-2356
-295
-68
onlyif mysql # use DIV operator for integer division
query I rowsort label-8169
SELECT ALL ( tab0.col2 ) + - col1 DIV col2 AS col2 FROM tab0
----
-96
31
81
skipif mysql # not compatible
query I rowsort label-8169
SELECT ALL ( tab0.col2 ) + - col1 / col2 AS col2 FROM tab0
----
-96
31
81
query I rowsort
SELECT ALL 65 AS col0 FROM tab2
----
65
65
65
onlyif mysql # use DIV operator for integer division
query I rowsort label-8171
SELECT col2 DIV + 35 col2 FROM tab0 cor0
----
0
0
2
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8171
SELECT col2 / + 35 col2 FROM tab0 cor0
----
0
0
2
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8172
SELECT - ( col1 ) - - CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8172
SELECT - ( col1 ) - - CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT col1 + ( + 51 ) * col1 FROM tab2
----
1612
3068
884
query I rowsort
SELECT ALL col2 * 99 - col2 FROM tab0
----
3234
8036
98
query I rowsort
SELECT col2 - 48 AS col1 FROM tab2
----
-10
-21
-22
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8176
SELECT col1 * CAST( col1 AS SIGNED ) * - col1 - + col0 * + col0 AS col2 FROM tab0 cor0
----
-636632
-761492
-913898
skipif mysql # not compatible
query I rowsort label-8176
SELECT col1 * CAST ( col1 AS INTEGER ) * - col1 - + col0 * + col0 AS col2 FROM tab0 cor0
----
-636632
-761492
-913898
query I rowsort
SELECT col2 * - 85 FROM tab0 cor0
----
-2805
-6970
-85
query I rowsort
SELECT cor0.col0 - + 70 * - 98 AS col2 FROM tab1 AS cor0
----
6863
6924
6940
query I rowsort
SELECT col0 + - col2 * - col2 * col1 AS col1 FROM tab1
----
119888
32554
75819
onlyif mysql # use DIV operator for integer division
query I rowsort label-8180
SELECT - col2 - col2 * + col1 DIV col1 FROM tab1
----
-108
-114
-192
skipif mysql # not compatible
query I rowsort label-8180
SELECT - col2 - col2 * + col1 / col1 FROM tab1
----
-108
-114
-192
query I rowsort
SELECT tab1.col1 * - tab1.col2 * col2 - col0 AS col0 FROM tab1
----
-119888
-32554
-75819
query I rowsort
SELECT - col2 + - tab2.col2 AS col0 FROM tab2
----
-52
-54
-76
onlyif mysql # use DIV operator for integer division
query I rowsort label-8183
SELECT col1 * tab1.col2 - - col0 DIV col1 FROM tab1
----
1254
1404
576
skipif mysql # not compatible
query I rowsort label-8183
SELECT col1 * tab1.col2 - - col0 / col1 FROM tab1
----
1254
1404
576
query I rowsort
SELECT col1 + - col2 * cor0.col2 * col0 AS col1 FROM tab1 cor0
----
-207926
-737267
-8722
onlyif mysql # use DIV operator for integer division
query I rowsort label-8185
SELECT DISTINCT col2 + col1 DIV + col1 FROM tab0 AS cor0
----
2
34
83
skipif mysql # not compatible
query I rowsort label-8185
SELECT DISTINCT col2 + col1 / + col1 FROM tab0 AS cor0
----
2
34
83
query I rowsort
SELECT - col2 + + tab2.col1 * col1 * col1 AS col0 FROM tab2
----
205353
29764
4875
query I rowsort
SELECT col1 + - col0 * col1 FROM tab1
----
-1027
-52
-630
query I rowsort
SELECT DISTINCT col1 * col0 * col2 AS col1 FROM tab1
----
36480
4212
99840
query I rowsort
SELECT ALL col1 * + col1 * - col2 AS col0 FROM tab2 cor0
----
-10982
-25947
-90506
query I rowsort
SELECT + col1 + - cor0.col2 + col2 * + cor0.col1 FROM tab0 AS cor0
----
193
2891
7471
onlyif mysql # use DIV operator for integer division
query I rowsort label-8191
SELECT + + col0 DIV col2 + - col0 AS col2 FROM tab0 AS cor0
----
-24
-88
0
skipif mysql # not compatible
query I rowsort label-8191
SELECT + + col0 / col2 + - col0 AS col2 FROM tab0 AS cor0
----
-24
-88
0
query I rowsort
SELECT + col2 * col1 * col2 - col1 FROM tab0 AS cor0
----
0
611793
93568
query I rowsort
SELECT col1 + col2 * - col1 AS col0 FROM tab2 cor0
----
-1475
-629
-806
query I rowsort
SELECT + cor0.col0 + cor0.col1 + + cor0.col2 FROM tab0 AS cor0
----
133
143
262
query I rowsort
SELECT ALL + - cor0.col0 + - col2 * col1 FROM tab2 AS cor0
----
-1612
-725
-844
query I rowsort
SELECT DISTINCT + col2 + + col0 * + col2 FROM tab0 AS cor0
----
36
7380
825
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * + col0 * - col1 col2 FROM tab0
----
-118825
-49536
-720811
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + col0 * col1 col2 FROM tab1 AS cor0
----
1136
132
697
query I rowsort
SELECT DISTINCT - - col1 + col2 * + col1 AS col1 FROM tab0 cor0
----
194
2924
7553
query I rowsort
SELECT col1 * col1 + - col0 * col0 AS col0 FROM tab2 AS cor0
----
-2603
-5952
912
query I rowsort
SELECT - 87 + + col2 AS col2 FROM tab0 cor0
----
-5
-54
-86
query I rowsort
SELECT - - 2 + + cor0.col1 FROM tab1 AS cor0
----
12
15
28
query I rowsort
SELECT - 14 * col2 FROM tab1 AS cor0
----
-1344
-756
-798
query I rowsort
SELECT DISTINCT cor0.col2 + col0 * + cor0.col0 FROM tab0 AS cor0
----
1226
609
8003
query I rowsort
SELECT DISTINCT 95 + col0 * col1 + + col1 AS col2 FROM tab1 AS cor0
----
1148
199
745
query I rowsort
SELECT ALL 18 * + col0 FROM tab2 cor0
----
126
1404
1422
query I rowsort
SELECT ALL - 30 + - col2 * col0 * col0 + col2 * + col1 AS col1 FROM tab0 AS cor0
----
-1158
-16200
-642090
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + - cor0.col2 * col1 col1 FROM tab2 AS cor0
----
-1475
-629
-806
query I rowsort
SELECT ALL - - 64 + col1 FROM tab1 AS cor0
----
74
77
90
query I rowsort
SELECT DISTINCT - - 29 AS col2 FROM tab1 AS cor0
----
29
query I rowsort
SELECT ALL - col0 + - col2 * col0 AS col2 FROM tab2 AS cor0
----
-196
-2106
-3081
query I rowsort
SELECT - - col1 * + col0 + - 81 * - cor0.col1 AS col2 FROM tab0 AS cor0
----
11252
15470
9030
onlyif mysql # use DIV operator for integer division
query I rowsort label-8213
SELECT 9 DIV cor0.col0 AS col0 FROM tab1 AS cor0
----
0
0
3
skipif mysql # not compatible
query I rowsort label-8213
SELECT 9 / cor0.col0 AS col0 FROM tab1 AS cor0
----
0
0
3
query I rowsort
SELECT 69 AS col0 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 2810c3097fe4771e273cfff903357b40
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 25 * - col0 col1 FROM tab2
----
175
1950
1975
query I rowsort
SELECT DISTINCT 62 + + col0 AS col0 FROM tab0 AS cor0
----
151
86
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-8217
SELECT + col0 * col0 DIV ( + col1 ) AS col1 FROM tab2 AS cor0
----
1
103
367
skipif mysql # not compatible
query I rowsort label-8217
SELECT + col0 * col0 / ( + col1 ) AS col1 FROM tab2 AS cor0
----
1
103
367
query I rowsort
SELECT - cor0.col0 + col0 * 84 AS col2 FROM tab0 AS cor0
----
1992
2905
7387
query I rowsort
SELECT DISTINCT col0 + + ( col2 ) AS col1 FROM tab1 cor0
----
121
176
57
query I rowsort
SELECT - col2 + 54 AS col0 FROM tab1 AS cor0
----
-3
-42
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-8221
SELECT ALL + + col0 DIV ( col2 ) FROM tab0 AS cor0
----
0
1
35
skipif mysql # not compatible
query I rowsort label-8221
SELECT ALL + + col0 / ( col2 ) FROM tab0 AS cor0
----
0
1
35
onlyif mysql # use DIV operator for integer division
query I rowsort label-8222
SELECT - col1 DIV + 83 + col1 AS col2 FROM tab0 cor0
----
85
90
96
skipif mysql # not compatible
query I rowsort label-8222
SELECT - col1 / + 83 + col1 AS col2 FROM tab0 cor0
----
85
90
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-8223
SELECT ALL col2 * - col0 DIV + cor0.col0 col0 FROM tab1 AS cor0
----
-54
-57
-96
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8223
SELECT ALL col2 * - col0 / + cor0.col0 col0 FROM tab1 AS cor0
----
-54
-57
-96
onlyif mysql # use DIV operator for integer division
query I rowsort label-8224
SELECT ALL + tab0.col1 DIV col1 + 71 DIV + col1 + + col0 AS col1 FROM tab0
----
25
36
90
skipif mysql # not compatible
query I rowsort label-8224
SELECT ALL + tab0.col1 / col1 + 71 / + col1 + + col0 AS col1 FROM tab0
----
25
36
90
query I rowsort
SELECT DISTINCT - col0 + col0 + - cor0.col0 * ( - col1 ) FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT + col1 + + 22 FROM tab0 AS cor0
----
108
113
119
query I rowsort
SELECT DISTINCT - + col1 * + 39 + + col1 AS col2 FROM tab0 AS cor0
----
-3268
-3458
-3686
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8228
SELECT DISTINCT + + CAST( NULL AS SIGNED ) + col1 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-8228
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) + col1 FROM tab2 AS cor0
----
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8229
SELECT - + col2 * 33 + cor0.col2 * - CAST( 9 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-1386
-3444
-42
skipif mysql # not compatible
query I rowsort label-8229
SELECT - + col2 * 33 + cor0.col2 * - CAST ( 9 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-1386
-3444
-42
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8230
SELECT - CAST( NULL AS SIGNED ) * + col2 + + col2 + ( tab0.col0 * - col2 ) AS col0 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8230
SELECT - CAST ( NULL AS INTEGER ) * + col2 + + col2 + ( tab0.col0 * - col2 ) AS col0 FROM tab0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + tab2.col1 ) col0 FROM tab0, tab0 AS cor0 CROSS JOIN tab2
----
27 values hashing to 7599b480125de521efed71b5b2413c7d
query I rowsort
SELECT ALL + 68 * col2 AS col0 FROM tab0 cor0
----
2244
5576
68
query I rowsort
SELECT ALL - + 20 * + 59 + col2 * - col2 * 88 FROM tab1 AS cor0
----
-257788
-287092
-812188
query I rowsort
SELECT - + col1 + + col0 * - col0 FROM tab2 AS cor0
----
-6143
-6258
-80
onlyif mysql # use DIV operator for integer division
query I rowsort label-8235
SELECT + - col1 DIV ( col0 ) FROM tab0 AS cor0
----
-1
-2
-3
skipif mysql # not compatible
query I rowsort label-8235
SELECT + - col1 / ( col0 ) FROM tab0 AS cor0
----
-1
-2
-3
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8236
SELECT + CAST( col1 AS SIGNED ) * - cor0.col2 FROM tab2 AS cor0
----
-1534
-646
-837
skipif mysql # not compatible
query I rowsort label-8236
SELECT + CAST ( col1 AS INTEGER ) * - cor0.col2 FROM tab2 AS cor0
----
-1534
-646
-837
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - 85 ) col0 FROM tab1 AS cor0
----
85
85
85
skipif mysql # not compatible
query I rowsort
SELECT + col0 * - cor0.col2 + CAST ( - 24 * + col0 AS REAL ) AS col1 FROM tab1 AS cor0
----
-234
-5184
-9600
query I rowsort
SELECT - + col2 * cor0.col0 - + 62 AS col1 FROM tab2 AS cor0
----
-2090
-251
-3064
query I rowsort
SELECT 66 - col1 AS col0 FROM tab1 AS cor0
----
40
53
56
onlyif mysql # use DIV operator for integer division
query I rowsort label-8241
SELECT + col1 DIV col1 - col2 * col2 FROM tab0 AS cor0
----
-1088
-6723
0
skipif mysql # not compatible
query I rowsort label-8241
SELECT + col1 / col1 - col2 * col2 FROM tab0 AS cor0
----
-1088
-6723
0
query I rowsort
SELECT ALL - col0 + ( col1 ) AS col2 FROM tab1 cor0
----
-54
-67
23
query I rowsort
SELECT ALL col0 * col2 + - col1 AS col1 FROM tab1 AS cor0
----
136
3638
7667
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 78 col2 FROM tab0
----
78
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8245
SELECT col2 / col0 + col0 / + ( + col2 * CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8245
SELECT col2 / col0 + col0 / + ( + col2 * CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 1 col1 FROM tab0 cor0
----
1
1
1
query I rowsort
SELECT ALL col1 * 95 * col1 FROM tab1
----
16055
64220
9500
query I rowsort
SELECT DISTINCT + ( + col0 ) * col0 FROM tab1 cor0
----
4096
6400
9
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8249
SELECT CAST( - col0 AS SIGNED ) * col1 AS col1 FROM tab2 AS cor0
----
-1343
-217
-4602
skipif mysql # not compatible
query I rowsort label-8249
SELECT CAST ( - col0 AS INTEGER ) * col1 AS col1 FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT ALL ( + tab1.col2 + - col2 ) FROM tab1
----
0
0
0
query I rowsort
SELECT ALL col1 * tab2.col1 * col1 AS col1 FROM tab2
----
205379
29791
4913
query I rowsort
SELECT col1 * + 65 FROM tab0 cor0
----
5590
5915
6305
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + 52 - - ( + col0 ) col0 FROM tab0
----
100
122
230
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1, tab2 cor1, tab1 AS cor2, tab2 cor3
----
3645 values hashing to bd2b318ad064d89aa12ab468220362b6
onlyif mysql # use DIV operator for integer division
query I rowsort label-8255
SELECT ALL col0 DIV - ( - col1 ) AS col1 FROM tab1 AS cor0
----
0
6
6
skipif mysql # not compatible
query I rowsort label-8255
SELECT ALL col0 / - ( - col1 ) AS col1 FROM tab1 AS cor0
----
0
6
6
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8256
SELECT DISTINCT - col2 * + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-8256
SELECT DISTINCT - col2 * + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8257
SELECT col0 * - CAST( NULL AS SIGNED ) * col1 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8257
SELECT col0 * - CAST ( NULL AS INTEGER ) * col1 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + - cor0.col2 + + 63 AS col1 FROM tab2 cor0
----
25
36
37
query I rowsort
SELECT ALL - cor0.col0 + + ( + col0 ) AS col2 FROM tab2 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col0 * - col0 col0 FROM tab1 AS cor0
----
-4096
-6400
-9
onlyif mysql # use DIV operator for integer division
query I rowsort label-8261
SELECT + col1 * col1 DIV col0 + - ( + 44 ) * col0 + 77 * - cor0.col2 AS col0 FROM tab2 AS cor0
----
-2250
-5390
-6399
skipif mysql # not compatible
query I rowsort label-8261
SELECT + col1 * col1 / col0 + - ( + 44 ) * col0 + 77 * - cor0.col2 AS col0 FROM tab2 AS cor0
----
-2250
-5390
-6399
onlyif mysql # use DIV operator for integer division
query I rowsort label-8262
SELECT + col1 DIV - 91 + + cor0.col2 * - ( col0 + - col2 ) * 39 FROM tab0 AS cor0
----
-1327
-22387
11583
skipif mysql # not compatible
query I rowsort label-8262
SELECT + col1 / - 91 + + cor0.col2 * - ( col0 + - col2 ) * 39 FROM tab0 AS cor0
----
-1327
-22387
11583
query I rowsort
SELECT ALL cor1.col0 AS col0 FROM tab1, tab2 AS cor0, tab1 cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f
query I rowsort
SELECT ALL + + cor0.col1 * 55 FROM tab0 AS cor0
----
4730
5005
5335
query I rowsort
SELECT DISTINCT + 96 * col2 FROM tab1 AS cor0
----
5184
5472
9216
query I rowsort
SELECT DISTINCT - + col2 * ( + col1 ) * cor0.col0 AS col2 FROM tab0 AS cor0
----
-3395
-664118
-68112
query I rowsort
SELECT ALL - - col1 * - col1 + + col1 FROM tab2 AS cor0
----
-272
-3422
-930
query I rowsort
SELECT col1 * - col1 + col0 * - 4 FROM tab1 AS cor0
----
-356
-489
-688
query I rowsort
SELECT ALL + 51 AS col1 FROM tab1
----
51
51
51
query I rowsort
SELECT ALL + - col2 * cor0.col0 + col2 * + 12 FROM tab1 AS cor0
----
-2964
-6528
486
onlyif mysql # use DIV operator for integer division
query I rowsort label-8271
SELECT DISTINCT - col1 + + col1 DIV + 92 AS col0 FROM tab2 AS cor0
----
-17
-31
-59
skipif mysql # not compatible
query I rowsort label-8271
SELECT DISTINCT - col1 + + col1 / + 92 AS col0 FROM tab2 AS cor0
----
-17
-31
-59
query I rowsort
SELECT DISTINCT + - col0 + col1 * col2 FROM tab0 AS cor0
----
2814
62
7373
query I rowsort
SELECT DISTINCT col1 + col0 * + cor0.col2 AS col0 FROM tab0 AS cor0
----
132
7389
878
query I rowsort
SELECT DISTINCT - col2 * + ( + col0 ) * - cor0.col2 + - col2 FROM tab2 AS cor0
----
114038
5076
52702
query I rowsort
SELECT ALL - + col2 + 38 * - 27 AS col0 FROM tab0 AS cor0
----
-1027
-1059
-1108
query I rowsort
SELECT ALL 55 * col1 AS col2 FROM tab2
----
1705
3245
935
query I rowsort
SELECT + 74 AS col1 FROM tab0, tab2, tab0 cor0
----
27 values hashing to dc22979e6d261795bd3ce2990fdbbf82
query I rowsort
SELECT col1 * + ( + cor0.col0 + - col1 ) * - col1 AS col2 FROM tab0 cor0
----
16562
458552
583358
query I rowsort
SELECT ALL 25 AS col1 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 2c77240b60ac01c717a5ed5d0165f450
query I rowsort
SELECT DISTINCT col2 * ( - 6 ) - col2 AS col2 FROM tab0 AS cor0
----
-231
-574
-7
query I rowsort
SELECT DISTINCT 87 AS col0 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
87
onlyif mysql # use DIV operator for integer division
query I rowsort label-8282
SELECT - col0 * + ( col2 ) - col0 * + tab1.col1 DIV + col1 col1 FROM tab1
----
-165
-3712
-7760
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8282
SELECT - col0 * + ( col2 ) - col0 * + tab1.col1 / + col1 col1 FROM tab1
----
-165
-3712
-7760
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col2 - col2 col1 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT ALL col2 * col1 * + col2 + - col0 AS col2 FROM tab1 AS cor0
----
119728
32426
75813
query I rowsort
SELECT col1 + - 65 AS col1 FROM tab1
----
-39
-52
-55
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 24 col0 FROM tab0, tab2 AS cor0
----
9 values hashing to b0d834ef9e4346801b6aaa0e74b2c8ef
onlyif mysql # use DIV operator for integer division
query I rowsort label-8287
SELECT + tab1.col2 * - col2 + + tab1.col0 * - ( + col1 ) - + col0 DIV 97 FROM tab1
----
-10256
-2994
-3889
skipif mysql # not compatible
query I rowsort label-8287
SELECT + tab1.col2 * - col2 + + tab1.col0 * - ( + col1 ) - + col0 / 97 FROM tab1
----
-10256
-2994
-3889
query I rowsort
SELECT 94 + col0 AS col0 FROM tab1
----
158
174
97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8289
SELECT - 87 * + col2 + + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8289
SELECT - 87 * + col2 + + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ( 53 ) * tab1.col1 * - ( + col2 ) AS col2 FROM tab1
----
-30210
-66144
-74412
query I rowsort
SELECT DISTINCT 36 + col1 * - tab0.col0 + tab0.col2 * + col0 FROM tab0
----
-1236
-3324
-765
query I rowsort
SELECT ALL - ( col0 ) + + col0 * col1 AS col2 FROM tab0
----
2040
3360
8010
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8293
SELECT + CAST( NULL AS SIGNED ) + col1 * col0 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8293
SELECT + CAST ( NULL AS INTEGER ) + col1 * col0 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + col2 + ( - col2 ) * + col0 AS col1 FROM tab0
----
-34
-7216
-759
query I rowsort
SELECT DISTINCT + 49 AS col2 FROM tab0 AS cor0
----
49
query I rowsort
SELECT + cor0.col1 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775
onlyif mysql # use DIV operator for integer division
query I rowsort label-8297
SELECT ALL 81 DIV col1 + col1 FROM tab0 AS cor0
----
86
91
97
skipif mysql # not compatible
query I rowsort label-8297
SELECT ALL 81 / col1 + col1 FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT 39 * col2 FROM tab1 AS cor0
----
2106
2223
3744
query I rowsort
SELECT DISTINCT - 99 * - col2 AS col2 FROM tab1 AS cor0
----
5346
5643
9504
query I rowsort
SELECT - + col0 * cor0.col2 * - 45 AS col1 FROM tab0 AS cor0
----
1575
328410
35640
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 81 * + col1 col2 FROM tab0 AS cor0
----
6966
7371
7857
onlyif mysql # use DIV operator for integer division
query I rowsort label-8302
SELECT DISTINCT - + col1 DIV + col0 col1 FROM tab0 AS cor0
----
-1
-2
-3
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8302
SELECT DISTINCT - + col1 / + col0 col1 FROM tab0 AS cor0
----
-1
-2
-3
query I rowsort
SELECT DISTINCT col0 + col2 * 64 FROM tab0 AS cor0
----
2136
5337
99
onlyif mysql # use DIV operator for integer division
query I rowsort label-8304
SELECT - 85 DIV + col2 FROM tab1 AS cor0
----
-1
-1
0
skipif mysql # not compatible
query I rowsort label-8304
SELECT - 85 / + col2 FROM tab1 AS cor0
----
-1
-1
0
query I rowsort
SELECT DISTINCT + cor0.col2 + col0 * - col2 AS col2 FROM tab0 AS cor0
----
-34
-7216
-759
query I rowsort
SELECT - - col0 * cor0.col0 + col0 + + ( + col0 ) * - col2 * + col0 FROM tab1 AS cor0
----
-229312
-474
-607920
query I rowsort
SELECT DISTINCT + 84 * col0 * col2 + + col0 AS col2 FROM tab0 AS cor0
----
2975
613121
66552
query I rowsort
SELECT + 70 + cor0.col0 AS col2 FROM tab1 AS cor0
----
134
150
73
query I rowsort
SELECT + - col2 * - col2 + col0 AS col2 FROM tab1 AS cor0
----
2919
3313
9296
query I rowsort
SELECT ( ( + col1 ) ) + + col1 * - col0 AS col1 FROM tab0 cor0
----
-1978
-3298
-8008
query I rowsort
SELECT ( col1 ) + + col1 + 78 * + col1 AS col0 FROM tab0 AS cor0
----
6880
7280
7760
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8312
SELECT ALL col0 + - CAST( + 49 AS SIGNED ) FROM tab2
----
-42
29
30
skipif mysql # not compatible
query I rowsort label-8312
SELECT ALL col0 + - CAST ( + 49 AS INTEGER ) FROM tab2
----
-42
29
30
query I rowsort
SELECT ALL - col2 * + 44 AS col1 FROM tab2
----
-1144
-1188
-1672
query I rowsort
SELECT ALL col2 * + 92 + - col1 AS col1 FROM tab0
----
-5
2950
7453
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8315
SELECT + col2 * ( ( + col2 ) ) + - CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8315
SELECT + col2 * ( ( + col2 ) ) + - CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL 89 * 90 FROM tab0
----
8010
8010
8010
query I rowsort
SELECT - 1 * + col2 - col0 FROM tab2 AS cor0
----
-104
-117
-34
query I rowsort
SELECT DISTINCT + 97 * 8 FROM tab0 AS cor0
----
776
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8319
SELECT DISTINCT - CAST( NULL AS SIGNED ) * col2 + + cor0.col0 + - col1 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-8319
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * col2 + + cor0.col0 + - col1 FROM tab0 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * 2 col1 FROM tab2 AS cor0
----
118
34
62
query I rowsort
SELECT - col0 + + 45 * + col2 FROM tab1 AS cor0
----
2427
2501
4240
query I rowsort
SELECT - + 30 * + 25 + + col1 * + 12 + col1 FROM tab1 AS cor0
----
-412
-581
-620
query I rowsort
SELECT ALL - ( + col2 ) AS col1 FROM tab1 AS cor0
----
-54
-57
-96
query I rowsort
SELECT DISTINCT ( + 2 ) + cor0.col1 * - 74 AS col0 FROM tab1 AS cor0
----
-1922
-738
-960
query I rowsort
SELECT ALL + - 87 * cor0.col1 - col1 AS col0 FROM tab2 AS cor0
----
-1496
-2728
-5192
query I rowsort
SELECT - - col1 * col0 - - col2 * + col0 FROM tab0 cor0
----
15397
2856
3430
query I rowsort
SELECT DISTINCT + col2 * + col0 + + cor0.col2 FROM tab1 AS cor0
----
216
3705
7776
onlyif mysql # use DIV operator for integer division
query I rowsort label-8328
SELECT - + col2 DIV + col2 AS col2 FROM tab0 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-8328
SELECT - + col2 / + col2 AS col2 FROM tab0 AS cor0
----
-1
-1
-1
query I rowsort
SELECT DISTINCT + 36 + col2 * + 51 + - cor0.col1 * col1 FROM tab2 cor0
----
-2119
1685
452
onlyif mysql # use DIV operator for integer division
query I rowsort label-8330
SELECT col2 + + col1 DIV 63 AS col1 FROM tab2 AS cor0
----
26
27
38
skipif mysql # not compatible
query I rowsort label-8330
SELECT col2 + + col1 / 63 AS col1 FROM tab2 AS cor0
----
26
27
38
onlyif mysql # use DIV operator for integer division
query I rowsort label-8331
SELECT DISTINCT + + col0 * + cor0.col1 + + ( col1 + col1 ) DIV col0 FROM tab1 AS cor0
----
1040
640
95
skipif mysql # not compatible
query I rowsort label-8331
SELECT DISTINCT + + col0 * + cor0.col1 + + ( col1 + col1 ) / col0 FROM tab1 AS cor0
----
1040
640
95
query I rowsort
SELECT DISTINCT - col0 + col2 * col0 AS col2 FROM tab2 cor0
----
182
1950
2923
query I rowsort
SELECT ALL + col2 + + col1 * 70 * + col2 FROM tab1 AS cor0
----
39957
87456
98334
onlyif mysql # use DIV operator for integer division
query I rowsort label-8334
SELECT DISTINCT - 46 + col1 DIV - col0 FROM tab1 AS cor0
----
-46
-54
skipif mysql # not compatible
query I rowsort label-8334
SELECT DISTINCT - 46 + col1 / - col0 FROM tab1 AS cor0
----
-46
-54
query I rowsort
SELECT DISTINCT - + 62 * col2 AS col2 FROM tab1 AS cor0
----
-3348
-3534
-5952
onlyif mysql # use DIV operator for integer division
query I rowsort label-8336
SELECT + 66 DIV col1 FROM tab2 AS cor0
----
1
2
3
skipif mysql # not compatible
query I rowsort label-8336
SELECT + 66 / col1 FROM tab2 AS cor0
----
1
2
3
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8337
SELECT + - col0 + - CAST( - 87 AS SIGNED ) * + cor0.col0 * + col1 AS col1 FROM tab2 AS cor0
----
116762
18872
400296
skipif mysql # not compatible
query I rowsort label-8337
SELECT + - col0 + - CAST ( - 87 AS INTEGER ) * + cor0.col0 * + col1 AS col1 FROM tab2 AS cor0
----
116762
18872
400296
query I rowsort
SELECT ALL + cor0.col2 * col1 + col1 AS col1 FROM tab2 cor0
----
1593
663
868
query I rowsort
SELECT - - col2 * - cor0.col1 * col0 - col0 FROM tab0 AS cor0
----
-3430
-664207
-68136
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * ( col1 + cor0.col2 ) col2 FROM tab0 AS cor0
----
15397
2856
3430
query I rowsort
SELECT ALL col0 + ( 19 ) * + col1 FROM tab1 cor0
----
254
327
497
query I rowsort
SELECT ALL 51 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 02a7de94365b8cb5b5cb92c4b1d1e7c5
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8343
SELECT CAST( NULL AS DECIMAL ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-8343
SELECT CAST ( NULL AS REAL ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + ( col1 ) * cor0.col0 col0 FROM tab2 AS cor0
----
1422
224
4680
query I rowsort
SELECT - - col1 * 87 FROM tab0 AS cor0
----
7482
7917
8439
query I rowsort
SELECT 41 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0, tab2 AS cor1, tab1 AS cor2
----
81 values hashing to 0733f496a5445ffeac9d19797afe4831
query I rowsort
SELECT - col0 * ( 50 ) FROM tab1 AS cor0
----
-150
-3200
-4000
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 + + col1 col2 FROM tab1 AS cor0
----
20
26
52
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8349
SELECT - col1 * CAST( col2 AS SIGNED ) col2 FROM tab2 AS cor0
----
-1534
-646
-837
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8349
SELECT - col1 * CAST ( col2 AS INTEGER ) col2 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT ALL - col1 * col1 + + col1 FROM tab2 AS cor0
----
-272
-3422
-930
query I rowsort
SELECT - + 2 AS col2 FROM tab1 AS cor0
----
-2
-2
-2
query I rowsort
SELECT cor0.col0 + cor0.col2 + - cor0.col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a
query I rowsort
SELECT ( + cor0.col0 ) AS col2 FROM tab1, tab1 cor0
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870
query IIIIIIIIIIII rowsort
SELECT * FROM tab0 cor0 CROSS JOIN tab1, tab1 AS cor1, tab2 AS cor2
----
972 values hashing to 0fcd8d0934383dd58863be894b07a6ed
query I rowsort
SELECT ALL + 20 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 2fdd942fe0307a6ff66b63004ef102c4
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2 cor0 CROSS JOIN tab2, tab2 AS cor1, tab1 AS cor2
----
972 values hashing to 263f0eb7d5dfd4076c74918bc141bd9b
query I rowsort
SELECT DISTINCT + col1 * col0 * - tab0.col0 FROM tab0
----
-118825
-49536
-720811
query I rowsort
SELECT - + col0 * + col2 + 81 FROM tab1 AS cor0
----
-3567
-7599
-81
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 28 col2 FROM tab2
----
28
onlyif mysql # use DIV operator for integer division
query I rowsort label-8360
SELECT tab0.col0 + + col1 * ( ( + col1 ) + - ( 62 ) ) DIV col1 FROM tab0
----
118
48
70
skipif mysql # not compatible
query I rowsort label-8360
SELECT tab0.col0 + + col1 * ( ( + col1 ) + - ( 62 ) ) / col1 FROM tab0
----
118
48
70
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8361
SELECT ALL - cor0.col1 * col1 + - CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8361
SELECT ALL - cor0.col1 * col1 + - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - col2 * 82 AS col2 FROM tab2
----
-2132
-2214
-3116
query I rowsort
SELECT - col0 * + col2 * - col2 FROM tab0 cor0
----
26136
35
598436
query I rowsort
SELECT DISTINCT ( col2 ) * + col0 * - col2 FROM tab2
----
-114076
-5103
-52728
query I rowsort
SELECT col2 * - col2 * col1 + 33 FROM tab2
----
-22566
-24515
-39851
query I rowsort
SELECT ALL + ( + col2 ) + - 18 - - ( col1 ) AS col2 FROM tab1 AS cor0
----
49
62
91
query I rowsort
SELECT DISTINCT 74 + + col2 * + 77 FROM tab0 cor0
----
151
2615
6388
query I rowsort
SELECT DISTINCT + 92 * col0 AS col2 FROM tab1 cor0
----
276
5888
7360
query I rowsort
SELECT DISTINCT - - cor0.col1 AS col2 FROM tab1, tab1 cor0
----
10
13
26
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * 77 + + ( + col0 ) col0 FROM tab0 AS cor0
----
112
2565
6403
query I rowsort
SELECT ALL col1 + - ( - 54 ) * col2 AS col2 FROM tab2
----
1463
1489
2069
query I rowsort
SELECT ALL + tab1.col2 + - 96 FROM tab1
----
-39
-42
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8373
SELECT ALL - col2 + CAST( - tab2.col2 AS SIGNED ) * + col0 FROM tab2
----
-2054
-216
-3040
skipif mysql # not compatible
query I rowsort label-8373
SELECT ALL - col2 + CAST ( - tab2.col2 AS INTEGER ) * + col0 FROM tab2
----
-2054
-216
-3040
onlyif mysql # use DIV operator for integer division
query I rowsort label-8374
SELECT + - col0 + 73 DIV + 93 FROM tab2 AS cor0
----
-7
-78
-79
skipif mysql # not compatible
query I rowsort label-8374
SELECT + - col0 + 73 / + 93 FROM tab2 AS cor0
----
-7
-78
-79
query I rowsort
SELECT ALL - + col2 * col2 + 90 * col0 FROM tab2 cor0
----
-99
5666
6344
query I rowsort
SELECT DISTINCT - 95 * + cor1.col2 FROM tab0, tab1 cor0, tab1 AS cor1
----
-5130
-5415
-9120
query I rowsort
SELECT ( - cor0.col0 ) + - col2 FROM tab2 AS cor0
----
-104
-117
-34
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8378
SELECT DISTINCT - ( 81 ) * - col1 + - CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-8378
SELECT DISTINCT - ( 81 ) * - col1 + - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 99 * cor0.col1 col2 FROM tab0 AS cor0
----
8514
9009
9603
query I rowsort
SELECT DISTINCT col0 * - 46 + - cor0.col1 FROM tab1 AS cor0
----
-164
-2954
-3693
query I rowsort
SELECT - col0 + ( - col1 ) * ( - col1 * col0 ) AS col0 FROM tab2 cor0
----
22752
271440
6720
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + col1 * col2 col1 FROM tab1 AS cor0
----
1168
1401
506
query I rowsort
SELECT + + ( 20 ) * - col2 AS col1 FROM tab0 AS cor0
----
-1640
-20
-660
query I rowsort
SELECT - - 43 * - col2 AS col2 FROM tab2 AS cor0
----
-1118
-1161
-1634
query I rowsort
SELECT + - 91 * cor0.col0 * col2 FROM tab1 AS cor0
----
-14742
-331968
-698880
query I rowsort
SELECT - col1 + col1 * - col2 AS col2 FROM tab1 AS cor0
----
-1261
-1430
-580
query I rowsort
SELECT ALL - 94 + 61 + - col1 * + col1 * - 25 FROM tab2 AS cor0
----
23992
7192
86992
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT ALL + + CAST ( col0 AS REAL ) + + col0 * + 18 col1 FROM tab1 AS cor0
----
1216
1520
57
query I rowsort
SELECT + col2 * - col1 + - col1 * col2 FROM tab1 AS cor0
----
-1140
-2496
-2808
query I rowsort
SELECT + 86 + - col2 AS col1 FROM tab0 cor0
----
4
53
85
query I rowsort
SELECT ALL + + col2 * + col2 + + col1 AS col2 FROM tab2 AS cor0
----
1461
735
760
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + cor0.col1 * col1 col0 FROM tab1 AS cor0
----
156
650
90
query I rowsort
SELECT ALL + ( 28 ) + col2 * + col0 FROM tab2 cor0
----
2056
217
3030
query I rowsort
SELECT ALL + 32 + - cor0.col2 AS col2 FROM tab1 AS cor0
----
-22
-25
-64
query I rowsort
SELECT DISTINCT - + col0 + ( cor0.col2 * - col0 + 71 ) FROM tab1 AS cor0
----
-3641
-7689
-94
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col2 + - cor0.col2 * col1 + col2 col0 FROM tab2 cor0
----
-1482
-570
-783
query I rowsort
SELECT ALL 77 + col0 * col1 FROM tab1
----
1117
155
717
query I rowsort
SELECT ALL + col1 + + col0 + col2 * - col0 FROM tab1 AS cor0
----
-133
-3574
-7587
query I rowsort
SELECT + + col2 * col2 + - 14 AS col2 FROM tab2 AS cor0
----
1430
662
715
query I rowsort
SELECT - ( tab2.col2 * + tab2.col1 ) + 72 AS col1 FROM tab2
----
-1462
-574
-765
query I rowsort
SELECT col2 + + tab1.col0 * col0 AS col1 FROM tab1
----
4153
63
6496
query I rowsort
SELECT ALL - col1 * ( col0 ) AS col1 FROM tab1
----
-1040
-640
-78
query I rowsort
SELECT cor0.col1 * 66 * col1 FROM tab0 AS cor0
----
488136
546546
620994
query I rowsort
SELECT ALL + col0 - + 88 * - col0 AS col0 FROM tab0 AS cor0
----
2136
3115
7921
query I rowsort
SELECT - col1 + - col0 + cor0.col0 FROM tab1 AS cor0
----
-10
-13
-26
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 97 col1 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
97
query I rowsort
SELECT + 58 - tab0.col1 FROM tab0
----
-28
-33
-39
query I rowsort
SELECT 65 * col1 + + col2 FROM tab1
----
1744
707
941
onlyif mysql # use DIV operator for integer division
query I rowsort label-8409
SELECT DISTINCT col2 + ( - tab2.col2 ) * + col1 DIV col1 FROM tab2
----
0
skipif mysql # not compatible
query I rowsort label-8409
SELECT DISTINCT col2 + ( - tab2.col2 ) * + col1 / col1 FROM tab2
----
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-8410
SELECT col1 + - col1 * - tab1.col0 DIV - tab1.col0 FROM tab1
----
0
0
0
skipif mysql # not compatible
query I rowsort label-8410
SELECT col1 + - col1 * - tab1.col0 / - tab1.col0 FROM tab1
----
0
0
0
query I rowsort
SELECT 53 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to fede6033dee346dbd272085c05724fda
query I rowsort
SELECT DISTINCT - col0 - ( - col0 ) * - col1 AS col1 FROM tab1 AS cor0
----
-1120
-704
-81
query I rowsort
SELECT DISTINCT col0 * 82 + col1 FROM tab2 AS cor0
----
605
6455
6495
query I rowsort
SELECT ALL + + cor0.col2 * 45 FROM tab0 AS cor0
----
1485
3690
45
query I rowsort
SELECT DISTINCT cor0.col0 * col1 - - 12 AS col0 FROM tab1 AS cor0
----
1052
652
90
query I rowsort
SELECT + + col2 * + col1 + col2 * - col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT cor0.col1 + 54 FROM tab1 AS cor0
----
64
67
80
query I rowsort
SELECT DISTINCT - cor0.col2 AS col1 FROM tab1, tab2 cor0
----
-26
-27
-38
query I rowsort
SELECT - col2 AS col1 FROM tab2 AS cor0 WHERE col0 <= NULL
----
query I rowsort
SELECT ALL - col1 FROM tab2 AS cor0 WHERE col1 >= NULL
----
query I rowsort
SELECT col2 + - col2 FROM tab1 AS cor0 WHERE NOT - col2 NOT IN ( col0 + + col1 * - cor0.col1 )
----
query I rowsort
SELECT + col2 AS col0 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN NULL AND - col2 + - col2 + - col0
----
query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 * col0 + + col1 * + col0 <= ( NULL )
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 - col1 col1 FROM tab1
----
28
47
83
query I rowsort
SELECT ALL + col0 AS col0 FROM tab0 WHERE NOT NULL = ( NULL )
----
query I rowsort
SELECT ALL col0 AS col1 FROM tab1 WHERE NULL > ( + col1 * col1 )
----
query I rowsort
SELECT DISTINCT col1 * col0 * - col1 FROM tab0
----
-177504
-329315
-737009
query I rowsort
SELECT ALL col1 AS col0 FROM tab2 WHERE ( + col2 * col2 + + col0 + - col1 ) > ( NULL )
----
query I rowsort
SELECT ALL + col2 * + col2 * - col1 + col0 + col1 AS col0 FROM tab1
----
-119715
-32416
-75787
query I rowsort
SELECT col1 AS col2 FROM tab0 WHERE NOT col0 + + col1 <= NULL
----
query I rowsort
SELECT DISTINCT col0 - - col2 AS col0 FROM tab2
----
104
117
34
query I rowsort
SELECT ALL tab0.col1 * + tab0.col2 AS col0 FROM tab0
----
2838
7462
97
query III rowsort
SELECT * FROM tab2 WHERE NOT col1 <> + col2 + - col2
----
query I rowsort
SELECT col0 AS col0 FROM tab0 WHERE NULL BETWEEN NULL AND ( NULL )
----
query I rowsort
SELECT ALL col0 FROM tab2 WHERE NOT NULL > NULL
----
query I rowsort
SELECT + col0 * + col1 + + col2 AS col0 FROM tab2 cor0
----
1381
244
4628
onlyif mysql # use DIV operator for integer division
query I rowsort label-8437
SELECT tab2.col0 DIV - col1 + - col2 AS col1 FROM tab2
----
-27
-27
-42
skipif mysql # not compatible
query I rowsort label-8437
SELECT tab2.col0 / - col1 + - col2 AS col1 FROM tab2
----
-27
-27
-42
onlyif mysql # use DIV operator for integer division
query I rowsort label-8438
SELECT ALL + col1 * + cor0.col0 + col2 DIV col1 FROM tab2 AS cor0
----
1345
217
4602
skipif mysql # not compatible
query I rowsort label-8438
SELECT ALL + col1 * + cor0.col0 + col2 / col1 FROM tab2 AS cor0
----
1345
217
4602
query I rowsort
SELECT DISTINCT + + col2 + - col2 * col2 AS col1 FROM tab0 AS cor0
----
-1056
-6642
0
query I rowsort
SELECT ALL - col2 + col1 * 32 AS col2 FROM tab1 cor0
----
263
320
778
onlyif mysql # use DIV operator for integer division
query I rowsort label-8441
SELECT ALL - col2 DIV - col1 + - col2 FROM tab0
----
-1
-33
-82
skipif mysql # not compatible
query I rowsort label-8441
SELECT ALL - col2 / - col1 + - col2 FROM tab0
----
-1
-33
-82
query I rowsort
SELECT DISTINCT - 11 * cor0.col2 AS col1 FROM tab2, tab1, tab2 AS cor0
----
-286
-297
-418
query I rowsort
SELECT col2 * cor0.col1 * - col1 FROM tab1 AS cor0
----
-16224
-36504
-5700
query I rowsort
SELECT ALL col0 * + col1 * 12 FROM tab1
----
12480
7680
936
query I rowsort
SELECT col2 * 22 AS col1 FROM tab2 AS cor0
----
572
594
836
query I rowsort
SELECT ALL col2 * - ( col1 ) AS col2 FROM tab0
----
-2838
-7462
-97
query I rowsort
SELECT + col0 * 9 AS col0 FROM tab2 cor0
----
63
702
711
query I rowsort
SELECT DISTINCT - col0 + - col2 * 28 AS col0 FROM tab1 cor0
----
-1515
-1660
-2768
query I rowsort
SELECT ALL col0 * - tab2.col1 + - col2 AS col0 FROM tab2
----
-1381
-244
-4628
onlyif mysql # use DIV operator for integer division
query I rowsort label-8450
SELECT DISTINCT col0 - tab2.col2 DIV + col0 FROM tab2
----
4
78
79
skipif mysql # not compatible
query I rowsort label-8450
SELECT DISTINCT col0 - tab2.col2 / + col0 FROM tab2
----
4
78
79
query I rowsort
SELECT - col2 * col2 - + col1 * col2 FROM tab0
----
-14186
-3927
-98
query I rowsort
SELECT - tab1.col2 * col0 * col0 FROM tab1
----
-233472
-486
-614400
query I rowsort
SELECT DISTINCT + col2 * col2 + + col0 FROM tab0
----
1113
36
6813
query I rowsort
SELECT DISTINCT - col2 * tab1.col0 * col2 AS col1 FROM tab1
----
-207936
-737280
-8748
query I rowsort
SELECT col2 FROM tab1 WHERE NOT NULL > ( NULL )
----
query I rowsort
SELECT + col1 + col0 + + col0 * col1 FROM tab1
----
107
1133
714
query I rowsort
SELECT ALL - tab0.col2 + + col2 + + col0 AS col0 FROM tab0 WHERE NOT NULL NOT BETWEEN ( col1 ) AND - col2
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 col1 FROM tab2 WHERE NOT ( NULL ) NOT IN ( col0 * + col2 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-8459
SELECT ALL - tab0.col0 DIV col1 AS col0 FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-8459
SELECT ALL - tab0.col0 / col1 AS col0 FROM tab0
----
0
0
0
query I rowsort
SELECT DISTINCT - col1 + tab2.col0 * col1 + col1 * col1 * tab2.col2 AS col0 FROM tab2
----
12308
26133
95049
query I rowsort
SELECT 61 + + cor0.col2 * + ( - cor0.col2 ) AS col2 FROM tab1 cor0
----
-2855
-3188
-9155
query I rowsort
SELECT - col0 * + cor0.col1 * 64 + cor0.col1 AS col1 FROM tab1 AS cor0
----
-40950
-4966
-66547
query I rowsort
SELECT DISTINCT + col1 + tab0.col0 AS col0 FROM tab0
----
110
132
180
query I rowsort
SELECT col1 * col2 + tab2.col2 * col0 AS col2 FROM tab2
----
1026
3562
3648
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8465
SELECT ALL ( col0 ) + 37 * ( - col2 * CAST( 85 AS SIGNED ) ) AS col1 FROM tab0 AS cor0
----
-103761
-257801
-3110
skipif mysql # not compatible
query I rowsort label-8465
SELECT ALL ( col0 ) + 37 * ( - col2 * CAST ( 85 AS INTEGER ) ) AS col1 FROM tab0 AS cor0
----
-103761
-257801
-3110
query I rowsort
SELECT ALL + - col1 * + col1 + col0 * col0 * + col0 FROM tab1 AS cor0
----
-649
262044
511831
query I rowsort
SELECT DISTINCT + - col0 + + 53 AS col0 FROM tab0 AS cor0
----
-36
18
29
query I rowsort
SELECT - - col2 * col2 + 90 AS col0 FROM tab2 cor0
----
1534
766
819
onlyif mysql # use DIV operator for integer division
query I rowsort label-8469
SELECT DISTINCT - col1 - ( col0 ) * - cor0.col1 DIV + col1 FROM tab0 AS cor0
----
-2
-62
skipif mysql # not compatible
query I rowsort label-8469
SELECT DISTINCT - col1 - ( col0 ) * - cor0.col1 / + col1 FROM tab0 AS cor0
----
-2
-62
onlyif mysql # use DIV operator for integer division
query I rowsort label-8470
SELECT + col0 DIV col2 + ( + col0 ) FROM tab0 AS cor0
----
24
70
90
skipif mysql # not compatible
query I rowsort label-8470
SELECT + col0 / col2 + ( + col0 ) FROM tab0 AS cor0
----
24
70
90
query I rowsort
SELECT ALL col0 + + ( + col1 ) + col0 FROM tab1 AS cor0
----
138
173
32
query I rowsort
SELECT DISTINCT - - col0 * col1 + + col2 AS col2 FROM tab2 AS cor0
----
1381
244
4628
query I rowsort
SELECT ALL - - col2 - col0 * - 81 AS col2 FROM tab2 AS cor0
----
594
6344
6437
query I rowsort
SELECT DISTINCT col1 + 29 FROM tab2 AS cor0
----
46
60
88
query I rowsort
SELECT ALL - col2 * + ( + cor0.col2 + + cor0.col0 * col1 ) FROM tab0 AS cor0
----
-3396
-670842
-69201
query I rowsort
SELECT DISTINCT col0 * - 83 + + 74 FROM tab0 cor0
----
-1918
-2831
-7313
query I rowsort
SELECT + col1 * - ( - col0 ) AS col2 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT DISTINCT col0 * col1 + col1 AS col2 FROM tab1
----
104
1053
650
query I rowsort
SELECT DISTINCT - 38 + col0 AS col0 FROM tab1
----
-35
26
42
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 34 col1 FROM tab1, tab2, tab2 AS cor0
----
27 values hashing to 4e2ca147a59e0d5661c28cf3e5431caa
query I rowsort
SELECT ALL + col2 * + col1 + col0 FROM tab2 AS cor0
----
1612
725
844
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col2 * - col2 - cor0.col1 * col2 col2 FROM tab2 AS cor0
----
-108
-858
798
query I rowsort
SELECT 9 * tab2.col0 AS col2 FROM tab2
----
63
702
711
query I rowsort
SELECT + 55 * tab0.col0 AS col0 FROM tab0
----
1320
1925
4895
query I rowsort
SELECT - tab0.col2 - col2 FROM tab0
----
-164
-2
-66
query I rowsort
SELECT ALL - col2 + col0 * - col2 FROM tab2 AS cor0
----
-2054
-216
-3040
query I rowsort
SELECT + + col0 + + 69 AS col2 FROM tab0 AS cor0
----
104
158
93
query I rowsort
SELECT ALL + tab2.col2 AS col1 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5
query I rowsort
SELECT ALL col2 * 21 AS col1 FROM tab1
----
1134
1197
2016
onlyif mysql # use DIV operator for integer division
query I rowsort label-8490
SELECT DISTINCT - cor0.col1 + col2 DIV + col1 AS col1 FROM tab2 AS cor0
----
-15
-31
-59
skipif mysql # not compatible
query I rowsort label-8490
SELECT DISTINCT - cor0.col1 + col2 / + col1 AS col1 FROM tab2 AS cor0
----
-15
-31
-59
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 96 - - col2 col2 FROM tab2 AS cor0
----
-58
-69
-70
onlyif mysql # use DIV operator for integer division
query I rowsort label-8492
SELECT + cor0.col0 * col0 DIV - cor0.col0 + - col1 * col2 AS col1 FROM tab1 AS cor0
----
-1328
-1407
-634
skipif mysql # not compatible
query I rowsort label-8492
SELECT + cor0.col0 * col0 / - cor0.col0 + - col1 * col2 AS col1 FROM tab1 AS cor0
----
-1328
-1407
-634
query I rowsort
SELECT 26 * + tab2.col1 AS col0 FROM tab2, tab0 AS cor0, tab0, tab1 cor1
----
81 values hashing to 2ae5234c32059b857fa226609ada85ab
query I rowsort
SELECT ( + col1 ) * col1 AS col0 FROM tab0
----
7396
8281
9409
query I rowsort
SELECT ALL - tab2.col2 * - col1 - - col0 FROM tab2
----
1612
725
844
query I rowsort
SELECT + 42 * 44 + + cor0.col1 FROM tab0 AS cor0
----
1934
1939
1945
query I rowsort
SELECT cor0.col1 * 4 FROM tab1, tab2 AS cor0
----
9 values hashing to 59e0193abedbe8f6196ef3516a6ea8d0
onlyif mysql # use DIV operator for integer division
query I rowsort label-8498
SELECT ALL 58 DIV col1 + col0 * + 28 AS col0 FROM tab2
----
197
2184
2215
skipif mysql # not compatible
query I rowsort label-8498
SELECT ALL 58 / col1 + col0 * + 28 AS col0 FROM tab2
----
197
2184
2215
query I rowsort
SELECT ALL + col2 * - col2 + col0 AS col0 FROM tab1 cor0
----
-2913
-3185
-9136
query I rowsort
SELECT - 23 + + col0 * - 8 AS col1 FROM tab1 AS cor0
----
-47
-535
-663
query I rowsort
SELECT DISTINCT - ( col0 ) + + col2 + col0 * col0 FROM tab2 AS cor0
----
6032
6200
69
query I rowsort
SELECT ALL col2 * + col1 * - col0 + col1 + - cor0.col0 AS col2 FROM tab0 AS cor0
----
-3333
-664116
-68050
query I rowsort
SELECT DISTINCT - 28 * - cor0.col2 - ( col1 ) AS col1 FROM tab1 AS cor0
----
1486
1586
2675
query I rowsort
SELECT + + 90 * - col0 + - cor0.col0 AS col2 FROM tab2 AS cor0
----
-637
-7098
-7189
query I rowsort
SELECT + 13 + col1 AS col2 FROM tab2 AS cor0
----
30
44
72
query I rowsort
SELECT ALL + + 23 + + col2 + + ( col2 * - col1 ) AS col2 FROM tab2 AS cor0
----
-1485
-585
-787
query I rowsort
SELECT DISTINCT + tab2.col1 + col1 AS col1 FROM tab2
----
118
34
62
query I rowsort
SELECT ALL - col2 + col1 * col2 FROM tab2
----
1508
608
810
query I rowsort
SELECT ( + col0 ) + col1 + col0 * col0 FROM tab1
----
38
4170
6493
query I rowsort
SELECT 90 - col0 AS col0 FROM tab1 AS cor0
----
10
26
87
query I rowsort
SELECT ALL - - col0 * cor0.col2 AS col0 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT - + col2 + col2 * col1 AS col1 FROM tab2 AS cor0
----
1508
608
810
query I rowsort
SELECT DISTINCT - - 98 * - col2 AS col2 FROM tab1 AS cor0
----
-5292
-5586
-9408
query I rowsort
SELECT + + col1 * cor0.col2 + cor0.col0 AS col1 FROM tab1 AS cor0
----
1328
1407
634
query I rowsort
SELECT ALL - col2 * col2 * + col2 AS col2 FROM tab2 AS cor0
----
-17576
-19683
-54872
query I rowsort
SELECT col1 + col1 * col2 * col2 FROM tab0 AS cor0
----
194
611975
93740
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col1 * col0 col0 FROM tab1 cor0
----
-1040
-640
-78
query I rowsort
SELECT col1 * - col1 * - tab0.col2 FROM tab0
----
244068
679042
9409
onlyif mysql # use DIV operator for integer division
query I rowsort label-8519
SELECT + col1 + - col2 + + col0 DIV col1 FROM tab1 AS cor0
----
-28
-41
-77
skipif mysql # not compatible
query I rowsort label-8519
SELECT + col1 + - col2 + + col0 / col1 FROM tab1 AS cor0
----
-28
-41
-77
query I rowsort
SELECT ALL - ( + col0 ) * - col1 + col2 FROM tab0 cor0
----
2097
3396
8181
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8521
SELECT DISTINCT CAST( NULL AS SIGNED ) * - col2 + + col2 * - col1 / - col0 AS col0 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-8521
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - col2 + + col2 * - col1 / - col0 AS col0 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT ALL + col2 * + ( cor0.col2 ) * col2 + col2 AS col1 FROM tab0 AS cor0
----
2
35970
551450
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8523
SELECT ALL + CAST( NULL AS SIGNED ) / ( + col2 ) AS col1 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8523
SELECT ALL + CAST ( NULL AS INTEGER ) / ( + col2 ) AS col1 FROM tab0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-8524
SELECT + + CAST( - col2 AS SIGNED ) DIV + col2 AS col1 FROM tab0 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-8524
SELECT + + CAST ( - col2 AS INTEGER ) / + col2 AS col1 FROM tab0 AS cor0
----
-1
-1
-1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * - col1 * col1 col2 FROM tab1 AS cor0
----
-13520
-2028
-6400
query I rowsort
SELECT DISTINCT - + col1 + cor0.col0 * col1 FROM tab1 AS cor0
----
1027
52
630
query I rowsort
SELECT - - col1 + - col0 * + col0 AS col1 FROM tab0 AS cor0
----
-1128
-490
-7830
query I rowsort
SELECT DISTINCT - ( cor0.col0 ) AS col2 FROM tab1 cor0
----
-3
-64
-80
query I rowsort
SELECT - 13 * col2 + col2 + + col1 AS col2 FROM tab1 AS cor0
----
-1139
-622
-674
query I rowsort
SELECT - 90 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to f6f26b9a04da14807208b93d507095c5
query I rowsort
SELECT col2 * cor0.col0 + + col0 - - col1 AS col1 FROM tab1 AS cor0
----
191
3722
7773
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 65 * cor0.col0 col0 FROM tab0 cor0
----
1560
2275
5785
query I rowsort
SELECT col2 * col0 - - col0 * - col2 AS col1 FROM tab0 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + col0 * col1 col1 FROM tab1 AS cor0
----
1136
132
697
query I rowsort
SELECT 17 + col0 + col0 * col2 AS col0 FROM tab0 AS cor0
----
7404
833
87
query I rowsort
SELECT ALL + 70 + col2 FROM tab0 AS cor0
----
103
152
71
query I rowsort
SELECT col1 * - col0 + + col0 AS col2 FROM tab0
----
-2040
-3360
-8010
query I rowsort
SELECT - 82 + + col1 AS col0 FROM tab1
----
-56
-69
-72
query I rowsort
SELECT DISTINCT - col0 * col2 * - col1 AS col1 FROM tab2
----
119652
51034
5859
query I rowsort
SELECT + col0 + + 47 FROM tab0
----
136
71
82
query I rowsort
SELECT ALL - ( + col1 ) * col2 + 80 FROM tab2 cor0
----
-1454
-566
-757
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 78 * col1 + - col0 col2 FROM tab0 cor0
----
-6732
-7187
-7601
onlyif mysql # use DIV operator for integer division
query I rowsort label-8543
SELECT ALL ( + ( - cor0.col1 ) ) DIV 29 + - col0 * + col1 AS col2 FROM tab2 AS cor0
----
-1343
-218
-4604
skipif mysql # not compatible
query I rowsort label-8543
SELECT ALL ( + ( - cor0.col1 ) ) / 29 + - col0 * + col1 AS col2 FROM tab2 AS cor0
----
-1343
-218
-4604
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8544
SELECT - CAST( + col2 + - col0 AS SIGNED ) FROM tab2
----
-20
41
52
skipif mysql # not compatible
query I rowsort label-8544
SELECT - CAST ( + col2 + - col0 AS INTEGER ) FROM tab2
----
-20
41
52
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8545
SELECT + CAST( NULL AS SIGNED ) + cor0.col0 + col1 * - col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8545
SELECT + CAST ( NULL AS INTEGER ) + cor0.col0 + col1 * - col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT 63 * col1 FROM tab0 AS cor0
----
5418
5733
6111
onlyif mysql # use DIV operator for integer division
query I rowsort label-8547
SELECT + col1 * col0 + - col2 DIV 97 FROM tab2 cor0
----
1343
217
4602
skipif mysql # not compatible
query I rowsort label-8547
SELECT + col1 * col0 + - col2 / 97 FROM tab2 cor0
----
1343
217
4602
query I rowsort
SELECT DISTINCT 4 * cor0.col1 + + col2 * ( col2 ) FROM tab0 cor0
----
1433
389
7088
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 74 * - col1 + + col0 col0 FROM tab2 AS cor0
----
-1179
-2287
-4288
query I rowsort
SELECT - col1 + - col2 + - col0 * + col0 AS col0 FROM tab1 AS cor0
----
-4163
-6509
-89
query I rowsort
SELECT DISTINCT + 83 AS col1 FROM tab1, tab2 cor0
----
83
query I rowsort
SELECT 70 + col1 FROM tab0
----
156
161
167
query I rowsort
SELECT DISTINCT ( + 36 ) * - col0 FROM tab1
----
-108
-2304
-2880
query I rowsort
SELECT - col2 * - 88 + col2 FROM tab1 AS cor0
----
4806
5073
8544
query I rowsort
SELECT col1 * 40 * 70 + col1 AS col2 FROM tab0 AS cor0
----
240886
254891
271697
query I rowsort
SELECT DISTINCT - cor0.col0 * - ( + col2 ) * + col0 AS col0 FROM tab2 AS cor0
----
1323
158184
237158
query I rowsort
SELECT DISTINCT col1 * + 9 + - cor0.col2 + + col0 FROM tab2 AS cor0
----
194
259
583
query I rowsort
SELECT + cor0.col0 + + 53 FROM tab1 AS cor0
----
117
133
56
query I rowsort
SELECT ALL col0 + col1 * 72 * + col1 FROM tab0 cor0
----
532536
596321
677483
query I rowsort
SELECT DISTINCT + col1 * + ( cor0.col0 ) FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT DISTINCT + col1 * - col0 + + col1 AS col0 FROM tab0
----
-1978
-3298
-8008
onlyif mysql # use DIV operator for integer division
query I rowsort label-8562
SELECT col0 DIV + col0 col0 FROM tab1
----
1
1
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8562
SELECT col0 / + col0 col0 FROM tab1
----
1
1
1
query I rowsort
SELECT + + cor0.col2 + + col2 + - col1 FROM tab1 AS cor0
----
104
179
82
query I rowsort
SELECT - col0 * + col2 + - ( 6 ) * + col1 AS col0 FROM tab2
----
-2382
-3104
-375
query I rowsort
SELECT col0 + + ( col0 ) * col2 FROM tab2
----
196
2106
3081
query I rowsort
SELECT + - col1 + + col0 * 90 AS col1 FROM tab1 AS cor0
----
244
5750
7187
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT col1 + CAST ( col1 AS REAL ) + col1 AS col0 FROM tab2 cor0
----
177
51
93
query I rowsort
SELECT DISTINCT - col0 + cor0.col0 * + col0 FROM tab0 AS cor0
----
1190
552
7832
query I rowsort
SELECT col2 + - col2 * col1 FROM tab2 AS cor0
----
-1508
-608
-810
onlyif mysql # use DIV operator for integer division
query I rowsort label-8570
SELECT DISTINCT + - col2 DIV + col0 + + col1 AS col0 FROM tab1 cor0
----
10
12
8
skipif mysql # not compatible
query I rowsort label-8570
SELECT DISTINCT + - col2 / + col0 + + col1 AS col0 FROM tab1 cor0
----
10
12
8
query I rowsort
SELECT + cor0.col0 + 25 AS col1 FROM tab1 AS cor0
----
105
28
89
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8572
SELECT + - CAST( col1 AS SIGNED ) FROM tab2 AS cor0
----
-17
-31
-59
skipif mysql # not compatible
query I rowsort label-8572
SELECT + - CAST ( col1 AS INTEGER ) FROM tab2 AS cor0
----
-17
-31
-59
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * + col0 + col1 col0 FROM tab2 cor0
----
-158
-1969
-2985
query I rowsort
SELECT ALL - - 31 * col1 AS col0 FROM tab1 AS cor0
----
310
403
806
query I rowsort
SELECT DISTINCT col2 * 51 * + col0 FROM tab0
----
1785
372198
40392
query I rowsort
SELECT + - 9 * + cor0.col0 + - cor0.col0 FROM tab1 AS cor0
----
-30
-640
-800
query I rowsort
SELECT ( - col1 ) + + col0 AS col0 FROM tab2 AS cor0
----
-24
19
62
query I rowsort
SELECT - ( + ( + col0 ) ) AS col1 FROM tab1 cor0
----
-3
-64
-80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 59 + - col2 col0 FROM tab2 AS cor0
----
21
32
33
query I rowsort
SELECT ALL + 73 AS col0 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 3933a906d17a820ccf95467e2206df8f
onlyif mysql # use DIV operator for integer division
query I rowsort label-8581
SELECT DISTINCT + 52 DIV - col1 FROM tab0
----
0
skipif mysql # not compatible
query I rowsort label-8581
SELECT DISTINCT + 52 / - col1 FROM tab0
----
0
query I rowsort
SELECT + col1 * + col0 * - col1 FROM tab1 AS cor0
----
-13520
-2028
-6400
query I rowsort
SELECT DISTINCT - 66 * + col0 AS col0 FROM tab0 AS cor0
----
-1584
-2310
-5874
query I rowsort
SELECT col2 * 33 AS col0 FROM tab1 cor0
----
1782
1881
3168
onlyif mysql # use DIV operator for integer division
query I rowsort label-8585
SELECT col0 DIV + 92 FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-8585
SELECT col0 / + 92 FROM tab0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + col2 - - col2 col1 FROM tab0
----
246
3
99
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + col0 + cor0.col2 col2 FROM tab2 cor0
----
6110
6279
76
query I rowsort
SELECT DISTINCT - col1 * - col1 + - ( - 82 ) AS col1 FROM tab1 cor0
----
182
251
758
query I rowsort
SELECT ALL - cor0.col0 * + col1 - col2 FROM tab2 AS cor0
----
-1381
-244
-4628
query I rowsort
SELECT ALL - 63 * - col1 AS col1 FROM tab2 AS cor0
----
1071
1953
3717
onlyif mysql # use DIV operator for integer division
query I rowsort label-8591
SELECT DISTINCT + + col1 DIV - col1 FROM tab0 AS cor0
----
-1
skipif mysql # not compatible
query I rowsort label-8591
SELECT DISTINCT + + col1 / - col1 FROM tab0 AS cor0
----
-1
query I rowsort
SELECT 7 * + col0 + 71 AS col0 FROM tab0 AS cor0
----
239
316
694
query I rowsort
SELECT ALL + col0 * cor0.col0 + 27 FROM tab0 AS cor0
----
1252
603
7948
query I rowsort
SELECT ALL ( + col1 ) + cor0.col1 * - col0 AS col2 FROM tab2 AS cor0
----
-1326
-186
-4543
query I rowsort
SELECT DISTINCT + col0 + col0 * - col0 AS col1 FROM tab0 AS cor0
----
-1190
-552
-7832
query I rowsort
SELECT DISTINCT - col0 * - col2 + - col0 * 48 AS col0 FROM tab2 AS cor0
----
-147
-1716
-790
query I rowsort
SELECT - - cor0.col1 + + col0 FROM tab0 AS cor0
----
110
132
180
query I rowsort
SELECT col2 + col1 - col1 * + col2 AS col0 FROM tab1 AS cor0
----
-1139
-1324
-503
query I rowsort
SELECT col2 * col1 + 43 FROM tab0 AS cor0
----
140
2881
7505
onlyif mysql # use DIV operator for integer division
query I rowsort label-8600
SELECT ALL col2 DIV col2 AS col2 FROM tab0 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-8600
SELECT ALL col2 / col2 AS col2 FROM tab0 AS cor0
----
1
1
1
query I rowsort
SELECT DISTINCT - col0 + 98 FROM tab0 AS cor0
----
63
74
9
query I rowsort
SELECT DISTINCT col2 * + col2 + - tab2.col2 FROM tab2
----
1406
650
702
query I rowsort
SELECT DISTINCT 84 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
84
query I rowsort
SELECT ALL + + col0 * 74 AS col1 FROM tab2 AS cor0
----
518
5772
5846
query I rowsort
SELECT ALL - 32 + - 58 AS col2 FROM tab2 AS cor0
----
-90
-90
-90
query I rowsort
SELECT ALL + cor0.col2 * col0 + - col1 FROM tab0 AS cor0
----
-62
706
7207
query I rowsort
SELECT 9 AS col0 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to ebef7303942834ca1e6ca8604ec18a07
query I rowsort
SELECT 51 FROM tab0, tab1 cor0
----
9 values hashing to d8bf0a05c9c4d2a93812d106baae4752
query I rowsort
SELECT - 97 - tab2.col2 * col2 FROM tab2
----
-1541
-773
-826
query I rowsort
SELECT ALL ( col0 ) * col2 * 17 - + col1 FROM tab0
----
123975
13378
498
query I rowsort
SELECT 15 * 37 FROM tab2
----
555
555
555
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8612
SELECT DISTINCT CAST( NULL AS SIGNED ) - - 43 AS col0 FROM tab0
----
NULL
skipif mysql # not compatible
query I rowsort label-8612
SELECT DISTINCT CAST ( NULL AS INTEGER ) - - 43 AS col0 FROM tab0
----
NULL
query I rowsort
SELECT DISTINCT - col2 - + ( + col2 ) AS col2 FROM tab1
----
-108
-114
-192
query I rowsort
SELECT col0 + - 0 * + col0 FROM tab1
----
3
64
80
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8615
SELECT CAST( NULL AS SIGNED ) - - 54 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8615
SELECT CAST ( NULL AS INTEGER ) - - 54 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT 33 - col0 * col2 * - col1 AS col0 FROM tab2 AS cor0
----
119685
51067
5892
query I rowsort
SELECT ALL ( - col0 ) * - col1 AS col2 FROM tab0
----
2064
3395
8099
query I rowsort
SELECT DISTINCT tab2.col2 * - tab2.col2 AS col0 FROM tab2
----
-1444
-676
-729
query I rowsort
SELECT + 36 - + col2 * + col1 FROM tab0 AS cor0
----
-2802
-61
-7426
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + + col0 col0 FROM tab1
----
121
176
57
query I rowsort
SELECT ALL - - 67 AS col0 FROM tab2 AS cor0
----
67
67
67
query I rowsort
SELECT DISTINCT + + col0 + col2 * col0 AS col2 FROM tab1 cor0
----
165
3712
7760
query I rowsort
SELECT 92 + - col1 AS col2 FROM tab1 AS cor0
----
66
79
82
query I rowsort
SELECT ALL 21 * col1 FROM tab2 AS cor0
----
1239
357
651
onlyif mysql # use DIV operator for integer division
query I rowsort label-8625
SELECT ALL cor0.col2 + col1 DIV + cor0.col1 FROM tab0 AS cor0
----
2
34
83
skipif mysql # not compatible
query I rowsort label-8625
SELECT ALL cor0.col2 + col1 / + cor0.col1 FROM tab0 AS cor0
----
2
34
83
query I rowsort
SELECT 98 AS col1 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to c758e8afbdfa6aae279045b0e9cbacc2
query I rowsort
SELECT ALL + ( - col0 ) * - ( + cor0.col2 + - col1 ) FROM tab1 AS cor0
----
3008
6640
84
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8628
SELECT DISTINCT - - CAST( NULL AS SIGNED ) / 13 FROM tab0, tab0 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-8628
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) / 13 FROM tab0, tab0 cor0
----
NULL
query I rowsort
SELECT col1 * - ( col1 ) + + col0 FROM tab0
----
-7372
-8192
-9374
query I rowsort
SELECT ALL - tab0.col1 AS col0 FROM tab0, tab2 AS cor0, tab1 cor1
----
27 values hashing to d4c673b7444eb9927ec63175b43c6b84
query I rowsort
SELECT cor0.col1 * col0 * - 10 + - col0 AS col0 FROM tab1 AS cor0
----
-10480
-6464
-783
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8632
SELECT DISTINCT - + col2 * CAST( ( - col1 ) AS SIGNED ) FROM tab0 AS cor0
----
2838
7462
97
skipif mysql # not compatible
query I rowsort label-8632
SELECT DISTINCT - + col2 * CAST ( ( - col1 ) AS INTEGER ) FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT DISTINCT - + cor0.col0 + + col0 * cor0.col1 AS col1 FROM tab1 cor0
----
576
75
960
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8634
SELECT + - col1 * CAST( col0 + + col2 * - col0 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
115050
49691
5642
skipif mysql # not compatible
query I rowsort label-8634
SELECT + - col1 * CAST ( col0 + + col2 * - col0 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
115050
49691
5642
query I rowsort
SELECT DISTINCT col2 * - ( + col2 ) * col0 FROM tab0 AS cor0
----
-26136
-35
-598436
onlyif mysql # use DIV operator for integer division
query I rowsort label-8636
SELECT DISTINCT - col0 DIV + ( + 81 * - col1 ) FROM tab1 cor0
----
0
skipif mysql # not compatible
query I rowsort label-8636
SELECT DISTINCT - col0 / + ( + 81 * - col1 ) FROM tab1 cor0
----
0
query I rowsort
SELECT ALL + + col2 + 63 FROM tab0 cor0
----
145
64
96
query I rowsort
SELECT - - 57 * + 75 FROM tab1 AS cor0
----
4275
4275
4275
onlyif mysql # use DIV operator for integer division
query I rowsort label-8639
SELECT - + col0 DIV + 95 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-8639
SELECT - + col0 / + 95 FROM tab1 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 6 col1 FROM tab1 AS cor0
----
-6
-6
-6
query I rowsort
SELECT ALL - 98 * 70 AS col1 FROM tab1 cor0
----
-6860
-6860
-6860
query I rowsort
SELECT DISTINCT + 0 + - col0 * cor0.col0 AS col2 FROM tab2 AS cor0
----
-49
-6084
-6241
query I rowsort
SELECT ALL - - 49 * - ( col1 ) + - col2 AS col0 FROM tab1 AS cor0
----
-1328
-547
-733
query I rowsort
SELECT + 61 * cor0.col2 * + col0 FROM tab0 AS cor0
----
2135
445178
48312
query I rowsort
SELECT ALL + ( - col0 ) * - col1 + col0 * cor0.col0 AS col1 FROM tab1 cor0
----
4736
7440
87
onlyif mysql # use DIV operator for integer division
query I rowsort label-8646
SELECT DISTINCT col2 * col0 - - col2 DIV - col0 FROM tab1 AS cor0
----
144
3648
7679
skipif mysql # not compatible
query I rowsort label-8646
SELECT DISTINCT col2 * col0 - - col2 / - col0 FROM tab1 AS cor0
----
144
3648
7679
query I rowsort
SELECT ( + cor0.col2 ) * + col2 AS col1 FROM tab1 AS cor0
----
2916
3249
9216
query I rowsort
SELECT ALL + ( cor0.col0 ) + cor0.col0 * + col0 FROM tab0 AS cor0
----
1260
600
8010
query I rowsort
SELECT + col0 * 92 * - 29 + col1 * col1 AS col2 FROM tab1 AS cor0
----
-170652
-213271
-7328
query I rowsort
SELECT DISTINCT ( - cor1.col1 ) AS col1 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
-86
-91
-97
query I rowsort
SELECT DISTINCT - + col1 + col2 - col0 FROM tab1 AS cor0
----
-17
25
3
query I rowsort
SELECT ALL + col0 * - col2 * col1 + - col1 AS col2 FROM tab1 AS cor0
----
-36490
-4238
-99853
query I rowsort
SELECT + col1 * + col1 * + 38 + col2 * col0 FROM tab1 AS cor0
----
14102
25850
7448
query I rowsort
SELECT DISTINCT + col2 - col2 * - col0 FROM tab2 AS cor0
----
2054
216
3040
query I rowsort
SELECT DISTINCT + - ( cor0.col1 ) * - cor0.col0 + + ( cor1.col2 ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 8830ec40bfb3529ec81417611ad8c84e
query IIIIIIIIIIII rowsort
SELECT * FROM tab2, tab0, tab2 cor0, tab2 cor1
----
972 values hashing to 617c9545df26d6d983e3967864e8e9e4
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 45 col1 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 14cec871edc37b5056cda01c8331fdca
onlyif mysql # use DIV operator for integer division
query I rowsort label-8658
SELECT col1 DIV + col1 + - 45 AS col2 FROM tab1 AS cor0
----
-44
-44
-44
skipif mysql # not compatible
query I rowsort label-8658
SELECT col1 / + col1 + - 45 AS col2 FROM tab1 AS cor0
----
-44
-44
-44
query I rowsort
SELECT cor0.col2 * ( + col1 ) + col2 * + 92 AS col0 FROM tab2 AS cor0
----
3321
3926
4142
query I rowsort
SELECT ALL col1 + col0 * - tab2.col0 FROM tab2
----
-18
-6025
-6224
query I rowsort
SELECT 78 + + col2 * cor0.col1 * cor0.col2 AS col0 FROM tab1 AS cor0
----
119886
32568
75894
query I rowsort
SELECT DISTINCT - ( col1 ) + col1 * col1 FROM tab1 AS cor0
----
156
650
90
query I rowsort
SELECT ALL - 73 * col1 FROM tab1 AS cor0
----
-1898
-730
-949
query I rowsort
SELECT ALL - col0 + - 18 * col0 AS col1 FROM tab2 AS cor0
----
-133
-1482
-1501
query I rowsort
SELECT + col0 + + col0 * + col0 FROM tab0 AS cor0
----
1260
600
8010
query I rowsort
SELECT - col0 * - col1 + - 32 * + col2 AS col1 FROM tab1 cor0
----
-1184
-1650
-2032
query I rowsort
SELECT col0 + col0 - col0 FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT + 82 + col2 AS col1 FROM tab1 AS cor0
----
136
139
178
query I rowsort
SELECT col1 * col1 + 38 FROM tab2 cor0
----
327
3519
999
query I rowsort
SELECT - 41 + 95 + col2 AS col2 FROM tab1
----
108
111
150
query I rowsort
SELECT tab2.col1 * + tab2.col2 * - tab2.col0 FROM tab2
----
-119652
-51034
-5859
query I rowsort
SELECT + ( col1 ) + + col2 FROM tab2 AS cor0
----
55
58
85
query I rowsort
SELECT + col2 * col1 - 8 * - 17 AS col1 FROM tab0
----
233
2974
7598
onlyif mysql # use DIV operator for integer division
query I rowsort label-8674
SELECT DISTINCT + col1 DIV + col1 + + ( 21 ) - col0 FROM tab0
----
-13
-2
-67
skipif mysql # not compatible
query I rowsort label-8674
SELECT DISTINCT + col1 / + col1 + + ( 21 ) - col0 FROM tab0
----
-13
-2
-67
query I rowsort
SELECT ALL + col1 + + col0 - col2 FROM tab2
----
11
111
58
query I rowsort
SELECT - ( + col2 ) * - col2 * - 79 + - col2 AS col1 FROM tab0 AS cor0
----
-531278
-80
-86064
query I rowsort
SELECT - + 55 FROM tab1 cor0
----
-55
-55
-55
query I rowsort
SELECT ALL + 59 * + col0 + 40 AS col0 FROM tab1 AS cor0
----
217
3816
4760
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8679
SELECT col2 + + CAST( NULL AS DECIMAL ) * col0 - + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8679
SELECT col2 + + CAST ( NULL AS REAL ) * col0 - + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + col0 * + col2 + + col0 FROM tab0 AS cor0
----
70
7387
816
query I rowsort
SELECT col0 * + 21 + - col1 + + col0 AS col1 FROM tab2 AS cor0
----
123
1657
1721
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + + col2 * col0 + col0 * + col2 col2 FROM tab1
----
15264
270
7239
query I rowsort
SELECT DISTINCT - col1 - - col1 FROM tab2
----
0
query I rowsort
SELECT DISTINCT + 69 AS col0 FROM tab2
----
69
query I rowsort
SELECT ALL cor0.col0 * + 19 + + cor0.col0 FROM tab2 AS cor0
----
140
1560
1580
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8686
SELECT ALL + CAST( NULL AS SIGNED ) - + 31 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8686
SELECT ALL + CAST ( NULL AS INTEGER ) - + 31 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT 21 AS col1 FROM tab0 AS cor0
----
21
21
21
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8688
SELECT - - CAST( 76 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
76
76
76
skipif mysql # not compatible
query I rowsort label-8688
SELECT - - CAST ( 76 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
76
76
76
query I rowsort
SELECT - cor1.col2 FROM tab0, tab0 AS cor0, tab0 cor1
----
27 values hashing to 6a43e7f15194af73fe1c83385e6ebebc
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8690
SELECT DISTINCT CAST( - 77 AS SIGNED ) * tab1.col1 * 24 AS col1 FROM tab1
----
-18480
-24024
-48048
skipif mysql # not compatible
query I rowsort label-8690
SELECT DISTINCT CAST ( - 77 AS INTEGER ) * tab1.col1 * 24 AS col1 FROM tab1
----
-18480
-24024
-48048
query I rowsort
SELECT + cor0.col0 + - col2 * - col1 FROM tab1 AS cor0
----
1328
1407
634
onlyif mysql # use DIV operator for integer division
query I rowsort label-8692
SELECT - col2 DIV - ( - col2 ) FROM tab0 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-8692
SELECT - col2 / - ( - col2 ) FROM tab0 AS cor0
----
-1
-1
-1
query I rowsort
SELECT + tab1.col1 * tab1.col2 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 16ae0e1090cb09b93854a4788f17716b
query I rowsort
SELECT DISTINCT + col1 * ( + 0 ) FROM tab0
----
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8695
SELECT col1 - CAST( NULL AS SIGNED ) * + col1 col1 FROM tab2
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8695
SELECT col1 - CAST ( NULL AS INTEGER ) * + col1 col1 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT ALL 70 AS col2 FROM tab2, tab0 AS cor0, tab0 cor1
----
27 values hashing to c76157a7a7ec18de56823b2058b49f32
query I rowsort
SELECT - col2 * 68 AS col0 FROM tab0
----
-2244
-5576
-68
query I rowsort
SELECT DISTINCT + - cor0.col2 - + ( - 65 ) * - col2 AS col2 FROM tab0 AS cor0
----
-2178
-5412
-66
query I rowsort
SELECT ALL col0 * col1 * + ( + col2 + - col0 ) AS col1 FROM tab2 AS cor0
----
-239304
-55063
4340
onlyif mysql # use DIV operator for integer division
query I rowsort label-8700
SELECT DISTINCT col0 DIV - 85 FROM tab0
----
-1
0
skipif mysql # not compatible
query I rowsort label-8700
SELECT DISTINCT col0 / - 85 FROM tab0
----
-1
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 10 col0 FROM tab2, tab0 AS cor0
----
9 values hashing to f68f33032846e21ee6b2c668fc10355e
query I rowsort
SELECT ALL - + col2 - col0 * + col1 AS col2 FROM tab0 AS cor0
----
-2097
-3396
-8181
onlyif mysql # use DIV operator for integer division
query I rowsort label-8703
SELECT ALL - cor0.col2 DIV 90 AS col1 FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-8703
SELECT ALL - cor0.col2 / 90 AS col1 FROM tab2 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col0 * - cor0.col0 col0 FROM tab2 AS cor0
----
-49
-6084
-6241
query I rowsort
SELECT DISTINCT - ( 63 ) FROM tab2 cor0
----
-63
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8706
SELECT CAST( NULL AS SIGNED ) * - col1 - + col1 / 62 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8706
SELECT CAST ( NULL AS INTEGER ) * - col1 - + col1 / 62 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL col1 + + 36 AS col1 FROM tab0 AS cor0
----
122
127
133
query I rowsort
SELECT ALL - col0 * col0 * + col0 + + cor0.col0 FROM tab2 AS cor0
----
-336
-474474
-492960
query I rowsort
SELECT ALL - 89 - - col1 AS col1 FROM tab2 AS cor0
----
-30
-58
-72
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8710
SELECT + + col2 * col1 - col1 * - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8710
SELECT + + col2 * col1 - col1 * - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - ( - 30 ) * + col1 * ( col1 ) + - col0 FROM tab0 AS cor0
----
221856
248341
282235
onlyif mysql # use DIV operator for integer division
query I rowsort label-8712
SELECT - - col0 DIV - col0 - col1 FROM tab2 AS cor0
----
-18
-32
-60
skipif mysql # not compatible
query I rowsort label-8712
SELECT - - col0 / - col0 - col1 FROM tab2 AS cor0
----
-18
-32
-60
query I rowsort
SELECT + col2 - col0 AS col1 FROM tab0 cor0
----
-34
-7
9
query I rowsort
SELECT ALL + - cor0.col2 * + ( col1 ) AS col0 FROM tab2 AS cor0
----
-1534
-646
-837
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8715
SELECT ALL CAST( 96 AS SIGNED ) * - col2 FROM tab2 AS cor0
----
-2496
-2592
-3648
skipif mysql # not compatible
query I rowsort label-8715
SELECT ALL CAST ( 96 AS INTEGER ) * - col2 FROM tab2 AS cor0
----
-2496
-2592
-3648
query I rowsort
SELECT + + 54 - - 76 AS col0 FROM tab2 AS cor0
----
130
130
130
onlyif mysql # use DIV operator for integer division
query I rowsort label-8717
SELECT DISTINCT + cor0.col0 + 19 DIV - col1 FROM tab0 AS cor0
----
24
35
89
skipif mysql # not compatible
query I rowsort label-8717
SELECT DISTINCT + cor0.col0 + 19 / - col1 FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT - col0 + - 76 FROM tab1 cor0
----
-140
-156
-79
query I rowsort
SELECT + 24 + col0 + col1 * - col1 AS col2 FROM tab2 AS cor0
----
-186
-3379
-930
query I rowsort
SELECT + col0 * - cor0.col2 + + ( col2 ) FROM tab1 AS cor0
----
-108
-3591
-7584
query I rowsort
SELECT DISTINCT col2 * - tab2.col2 FROM tab2
----
-1444
-676
-729
query I rowsort
SELECT DISTINCT - 18 * cor0.col2 FROM tab1 AS cor0
----
-1026
-1728
-972
query I rowsort
SELECT + ( col0 ) * + ( cor0.col2 ) AS col1 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT + cor0.col0 * - col1 AS col1 FROM tab2 cor0
----
-1343
-217
-4602
query I rowsort
SELECT ALL col0 + + col2 * cor0.col1 AS col1 FROM tab1 AS cor0
----
1328
1407
634
query I rowsort
SELECT + - col1 * ( - 89 ) AS col1 FROM tab1 AS cor0
----
1157
2314
890
query I rowsort
SELECT ALL - cor0.col2 * - cor0.col1 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT DISTINCT + + col1 * + cor0.col0 FROM tab2 cor0
----
1343
217
4602
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 14 + + 15 col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 1e7120ba8e9191084172ddced17e5eb2
onlyif mysql # use DIV operator for integer division
query I rowsort label-8730
SELECT col0 DIV + 73 AS col1 FROM tab2 AS cor0
----
0
1
1
skipif mysql # not compatible
query I rowsort label-8730
SELECT col0 / + 73 AS col1 FROM tab2 AS cor0
----
0
1
1
query I rowsort
SELECT ALL + col1 * ( ( - col0 ) ) * + cor0.col1 FROM tab1 AS cor0
----
-13520
-2028
-6400
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 10 - + col1 col1 FROM tab1
----
-20
-23
-36
query I rowsort
SELECT DISTINCT - - col2 * + 65 FROM tab1 AS cor0
----
3510
3705
6240
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + cor0.col0 + - col0 col1 FROM tab1 AS cor0
----
-128
-160
-6
query I rowsort
SELECT ALL + col1 + 62 AS col2 FROM tab1 AS cor0
----
72
75
88
query I rowsort
SELECT + col2 * ( col2 ) * cor0.col1 FROM tab0 AS cor0
----
611884
93654
97
query I rowsort
SELECT ALL - col0 + ( + 51 + col2 * - 44 ) FROM tab1 AS cor0
----
-2328
-2521
-4253
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8738
SELECT DISTINCT - col0 + CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-8738
SELECT DISTINCT - col0 + CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT + tab2.col1 AS col0 FROM tab2, tab1, tab1 cor0
----
27 values hashing to 7599b480125de521efed71b5b2413c7d
query I rowsort
SELECT - + col1 + + ( 9 ) AS col2 FROM tab0 AS cor0
----
-77
-82
-88
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 60 col2 FROM tab2, tab0 AS cor0
----
60
onlyif mysql # use DIV operator for integer division
query I rowsort label-8742
SELECT - + 96 DIV col0 AS col2 FROM tab0 AS cor0
----
-1
-2
-4
skipif mysql # not compatible
query I rowsort label-8742
SELECT - + 96 / col0 AS col2 FROM tab0 AS cor0
----
-1
-2
-4
query I rowsort
SELECT DISTINCT + + col2 * col0 + + col1 AS col0 FROM tab2 AS cor0
----
2087
220
3019
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8744
SELECT + - ( col2 ) + CAST( 39 AS SIGNED ) * - col0 AS col1 FROM tab0 AS cor0
----
-1366
-3553
-969
skipif mysql # not compatible
query I rowsort label-8744
SELECT + - ( col2 ) + CAST ( 39 AS INTEGER ) * - col0 AS col1 FROM tab0 AS cor0
----
-1366
-3553
-969
onlyif mysql # use DIV operator for integer division
query I rowsort label-8745
SELECT ALL - - col2 + col2 + 27 DIV col0 FROM tab0 AS cor0
----
164
2
67
skipif mysql # not compatible
query I rowsort label-8745
SELECT ALL - - col2 + col2 + 27 / col0 FROM tab0 AS cor0
----
164
2
67
query I rowsort
SELECT ALL - - ( - col2 ) + + 28 AS col0 FROM tab0 AS cor0
----
-5
-54
27
query I rowsort
SELECT - 74 + + col2 FROM tab2 AS cor0
----
-36
-47
-48
query I rowsort
SELECT DISTINCT - col0 * - col2 + 36 + + cor0.col1 AS col0 FROM tab2 AS cor0
----
2123
256
3055
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 + + col1 col2 FROM tab0 AS cor0
----
2
62
62
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( col1 ) * ( cor0.col0 ) + - col2 col0 FROM tab0 cor0
----
-2097
-3396
-8181
query I rowsort
SELECT - - col0 * col0 + + 56 FROM tab1 cor0
----
4152
6456
65
query I rowsort
SELECT DISTINCT 10 + + col1 * ( col2 ) AS col1 FROM tab0 AS cor0
----
107
2848
7472
query I rowsort
SELECT DISTINCT + col2 * cor0.col1 + ( + col2 ) FROM tab2 cor0
----
1560
684
864
query I rowsort
SELECT DISTINCT 91 + + col1 * col1 FROM tab0 AS cor0
----
7487
8372
9500
query I rowsort
SELECT + - cor0.col1 - col0 AS col0 FROM tab2 AS cor0
----
-137
-38
-96
query IIIIII rowsort
SELECT * FROM tab2, tab1 AS cor0 WHERE NOT NULL < ( NULL )
----
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8757
SELECT col1 + + CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8757
SELECT col1 + + CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT + ( cor0.col2 ) * col2 + 16 FROM tab0 AS cor0
----
1105
17
6740
onlyif mysql # use DIV operator for integer division
query I rowsort label-8759
SELECT tab2.col2 DIV ( 53 ) AS col2 FROM tab2
----
0
0
0
skipif mysql # not compatible
query I rowsort label-8759
SELECT tab2.col2 / ( 53 ) AS col2 FROM tab2
----
0
0
0
query I rowsort
SELECT 4 * col1 AS col1 FROM tab0
----
344
364
388
query I rowsort
SELECT + 19 * - col2 AS col2 FROM tab0 AS cor0
----
-1558
-19
-627
onlyif mysql # use DIV operator for integer division
query I rowsort label-8762
SELECT col1 + col1 * col2 DIV tab0.col2 FROM tab0
----
172
182
194
skipif mysql # not compatible
query I rowsort label-8762
SELECT col1 + col1 * col2 / tab0.col2 FROM tab0
----
172
182
194
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab1.col1 + col2 col1 FROM tab1
----
109
67
80
query I rowsort
SELECT 75 + + col0 * col0 AS col2 FROM tab0
----
1300
651
7996
query I rowsort
SELECT ALL col1 * col1 * + 17 AS col1 FROM tab2
----
16337
4913
59177
query I rowsort
SELECT DISTINCT - 75 * + 61 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
-4575
query I rowsort
SELECT + ( - col2 ) + col2 AS col0 FROM tab2
----
0
0
0
query I rowsort
SELECT + - col1 * + col1 * 1 FROM tab1 AS cor0
----
-100
-169
-676
query I rowsort
SELECT DISTINCT - 9 + + col1 * - col2 FROM tab1 AS cor0
----
-1257
-1413
-579
onlyif mysql # use DIV operator for integer division
query I rowsort label-8770
SELECT DISTINCT col0 DIV + col0 AS col1 FROM tab0
----
1
skipif mysql # not compatible
query I rowsort label-8770
SELECT DISTINCT col0 / + col0 AS col1 FROM tab0
----
1
query I rowsort
SELECT col1 * ( cor0.col2 ) AS col1 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT - col0 * ( - col1 + col2 ) AS col0 FROM tab2 AS cor0
----
-1659
2574
28
query I rowsort
SELECT - - cor0.col2 * - col1 FROM tab1 cor0
----
-1248
-1404
-570
onlyif mysql # use DIV operator for integer division
query I rowsort label-8774
SELECT ALL - 66 DIV + cor1.col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c
skipif mysql # not compatible
query I rowsort label-8774
SELECT ALL - 66 / + cor1.col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c
query I rowsort
SELECT DISTINCT col2 + col2 * + col1 * col0 AS col0 FROM tab2 AS cor0
----
119678
51072
5886
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * + col0 col1 FROM tab2 AS cor0
----
-49
-6084
-6241
query I rowsort
SELECT + col1 * - 9 + cor0.col0 FROM tab2 AS cor0
----
-272
-453
-74
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 + 3 col0 FROM tab1 AS cor0
----
13
16
29
onlyif mysql # use DIV operator for integer division
query I rowsort label-8779
SELECT DISTINCT + col2 DIV - 27 AS col0 FROM tab1
----
-2
-3
skipif mysql # not compatible
query I rowsort label-8779
SELECT DISTINCT + col2 / - 27 AS col0 FROM tab1
----
-2
-3
query I rowsort
SELECT - col1 - - col2 * - tab0.col0 FROM tab0
----
-132
-7389
-878
query I rowsort
SELECT col2 + ( - 9 ) AS col0 FROM tab1
----
45
48
87
query I rowsort
SELECT - col1 * 77 AS col1 FROM tab2 AS cor0
----
-1309
-2387
-4543
query I rowsort
SELECT - + col0 * col1 * + 93 AS col0 FROM tab0 AS cor0
----
-191952
-315735
-753207
query I rowsort
SELECT - cor0.col2 * ( - cor0.col1 ) * col0 FROM tab0 AS cor0
----
3395
664118
68112
query I rowsort
SELECT - 83 * col1 AS col0 FROM tab1 AS cor0
----
-1079
-2158
-830
query I rowsort
SELECT DISTINCT + ( - 30 ) * col0 FROM tab0 AS cor0
----
-1050
-2670
-720
query I rowsort
SELECT DISTINCT - cor0.col0 + 85 * col0 FROM tab1 AS cor0
----
252
5376
6720
query I rowsort
SELECT col1 * - 65 AS col2 FROM tab2 AS cor0
----
-1105
-2015
-3835
query I rowsort
SELECT + col2 * + col2 * + col1 FROM tab1 AS cor0
----
119808
32490
75816
query I rowsort
SELECT + + cor0.col1 * + col0 + col2 * 37 * cor0.col1 AS col1 FROM tab1 AS cor0
----
21730
47216
52026
query I rowsort
SELECT - - col1 + + 74 * - col0 * col2 + - col0 AS col2 FROM tab0 AS cor0
----
-2528
-540050
-58546
query I rowsort
SELECT - col2 + - 0 * + col0 FROM tab1 AS cor0
----
-54
-57
-96
query I rowsort
SELECT col2 * - col1 * col2 FROM tab1 AS cor0
----
-119808
-32490
-75816
onlyif mysql # use DIV operator for integer division
query I rowsort label-8794
SELECT - - 53 DIV - col2 FROM tab0 AS cor0
----
-1
-53
0
skipif mysql # not compatible
query I rowsort label-8794
SELECT - - 53 / - col2 FROM tab0 AS cor0
----
-1
-53
0
query I rowsort
SELECT ALL - 2 * + 42 AS col0 FROM tab1 AS cor0
----
-84
-84
-84
query I rowsort
SELECT - + col0 * col0 + - cor0.col2 FROM tab0 AS cor0
----
-1226
-609
-8003
query I rowsort
SELECT - cor0.col1 + - cor0.col0 FROM tab0 AS cor0
----
-110
-132
-180
query I rowsort
SELECT - - 25 + col2 * + col0 + - col0 AS col0 FROM tab0 AS cor0
----
25
7234
793
query I rowsort
SELECT + + 65 + + col1 FROM tab0 AS cor0
----
151
156
162
query I rowsort
SELECT 40 + col2 FROM tab0 AS cor0
----
122
41
73
query I rowsort
SELECT - - 9 * cor0.col2 AS col0 FROM tab2 cor0
----
234
243
342
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab2.col2 col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3
query I rowsort
SELECT ALL 38 * col1 FROM tab0
----
3268
3458
3686
query I rowsort
SELECT ALL - 23 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to ce60bf4b0647d0fcb18a0562e351c52d
query I rowsort
SELECT DISTINCT - cor0.col1 - col0 * - col1 * - cor0.col1 AS col2 FROM tab2 AS cor0
----
-22848
-271577
-6758
query I rowsort
SELECT + - 13 AS col2 FROM tab1 AS cor0
----
-13
-13
-13
onlyif mysql # use DIV operator for integer division
query I rowsort label-8807
SELECT ALL - ( col1 ) * ( - col0 ) + - col1 * 65 DIV - col0 FROM tab2 AS cor0
----
1356
4651
504
skipif mysql # not compatible
query I rowsort label-8807
SELECT ALL - ( col1 ) * ( - col0 ) + - col1 * 65 / - col0 FROM tab2 AS cor0
----
1356
4651
504
query I rowsort
SELECT - 5 * + col0 AS col2 FROM tab2 cor0
----
-35
-390
-395
query I rowsort
SELECT DISTINCT cor0.col0 + col0 FROM tab0 cor0
----
178
48
70
query I rowsort
SELECT DISTINCT + col1 * - col1 * 23 + - col1 AS col0 FROM tab1 AS cor0
----
-15574
-2310
-3900
query I rowsort
SELECT ALL ( - col1 ) + - col2 + col0 AS col2 FROM tab2 AS cor0
----
-51
-7
24
query I rowsort
SELECT DISTINCT 9 * - col0 AS col0 FROM tab0 cor0
----
-216
-315
-801
query I rowsort
SELECT ALL + cor0.col1 * - col1 * 49 + - cor0.col1 AS col2 FROM tab0 AS cor0
----
-362490
-405860
-461138
query I rowsort
SELECT DISTINCT 28 + - cor0.col1 * - col0 * + 15 FROM tab2 AS cor0
----
20173
3283
69058
query I rowsort
SELECT DISTINCT col2 * col2 * - ( col0 ) + - tab2.col0 AS col1 FROM tab2
----
-114155
-5110
-52806
query I rowsort
SELECT + + col2 * 48 * ( + col1 ) FROM tab2 AS cor0
----
31008
40176
73632
query I rowsort
SELECT + col1 + + col2 * col1 * - col1 FROM tab0
----
-243982
-678951
-9312
onlyif mysql # use DIV operator for integer division
query I rowsort label-8818
SELECT - + col2 DIV + cor0.col2 AS col2 FROM tab0 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-8818
SELECT - + col2 / + cor0.col2 AS col2 FROM tab0 AS cor0
----
-1
-1
-1
query I rowsort
SELECT + - col0 * 32 + ( col0 ) FROM tab1 AS cor0
----
-1984
-2480
-93
onlyif mysql # use DIV operator for integer division
query I rowsort label-8820
SELECT + - col0 + col0 DIV - col1 FROM tab1 AS cor0
----
-3
-70
-86
skipif mysql # not compatible
query I rowsort label-8820
SELECT + - col0 + col0 / - col1 FROM tab1 AS cor0
----
-3
-70
-86
query I rowsort
SELECT DISTINCT + 4 * 47 FROM tab1 AS cor0
----
188
query I rowsort
SELECT ALL - col1 - - col2 FROM tab1 cor0
----
28
47
83
query I rowsort
SELECT + + 56 * ( col0 ) FROM tab0 AS cor0
----
1344
1960
4984
query I rowsort
SELECT - col0 * + col2 + - col2 * col0 FROM tab2 AS cor0
----
-378
-4056
-6004
onlyif mysql # use DIV operator for integer division
query I rowsort label-8825
SELECT - col2 DIV - 31 + col2 FROM tab2 AS cor0
----
26
27
39
skipif mysql # not compatible
query I rowsort label-8825
SELECT - col2 / - 31 + col2 FROM tab2 AS cor0
----
26
27
39
query I rowsort
SELECT ALL + 16 * + cor0.col2 * - col1 FROM tab2 AS cor0
----
-10336
-13392
-24544
query I rowsort
SELECT DISTINCT - - cor0.col1 + + col1 AS col1 FROM tab1 AS cor0
----
20
26
52
query I rowsort
SELECT + col1 * 57 + + col1 AS col2 FROM tab1 AS cor0
----
1508
580
754
query I rowsort
SELECT + 69 FROM tab0, tab1 AS cor0 CROSS JOIN tab2, tab1 AS cor1
----
81 values hashing to dfada1ee7a4e3e5c74a063a1282769f9
query I rowsort
SELECT col2 + + col2 * col2 AS col2 FROM tab2 AS cor0
----
1482
702
756
query I rowsort
SELECT DISTINCT - - cor0.col1 * cor0.col0 * col1 AS col1 FROM tab0 AS cor0
----
177504
329315
737009
onlyif mysql # use DIV operator for integer division
query I rowsort label-8832
SELECT ALL col2 * col0 DIV - col2 FROM tab1 AS cor0
----
-3
-64
-80
skipif mysql # not compatible
query I rowsort label-8832
SELECT ALL col2 * col0 / - col2 FROM tab1 AS cor0
----
-3
-64
-80
query I rowsort
SELECT ( col2 ) + - col0 * 35 FROM tab0 AS cor0
----
-1224
-3033
-807
query I rowsort
SELECT ALL - 73 + - cor0.col0 AS col0 FROM tab2 AS cor0
----
-151
-152
-80
query I rowsort
SELECT ALL ( - col0 ) + - col0 FROM tab0 AS cor0
----
-178
-48
-70
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8836
SELECT DISTINCT - - CAST( NULL AS SIGNED ) + col1 * - col2 * 16 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-8836
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) + col1 * - col2 * 16 FROM tab0 AS cor0
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-8837
SELECT col0 + - col1 DIV - cor0.col0 AS col2 FROM tab1 AS cor0
----
11
64
80
skipif mysql # not compatible
query I rowsort label-8837
SELECT col0 + - col1 / - cor0.col0 AS col2 FROM tab1 AS cor0
----
11
64
80
query I rowsort
SELECT - 14 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to c2bf0e2420d22cd58d7ee3b30827afcc
onlyif mysql # use DIV operator for integer division
query I rowsort label-8839
SELECT col0 DIV + col1 AS col1 FROM tab2 cor0
----
0
1
4
skipif mysql # not compatible
query I rowsort label-8839
SELECT col0 / + col1 AS col1 FROM tab2 cor0
----
0
1
4
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 43 col2 FROM tab2
----
-43
query I rowsort
SELECT - 35 + col2 * col2 FROM tab0
----
-34
1054
6689
query I rowsort
SELECT DISTINCT col0 + cor0.col2 * cor0.col0 FROM tab1 AS cor0
----
165
3712
7760
query I rowsort
SELECT DISTINCT col2 + col1 * + col2 FROM tab1 AS cor0
----
1344
1458
627
query I rowsort
SELECT + - cor0.col0 + - col2 AS col1 FROM tab0 AS cor0
----
-171
-36
-57
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8845
SELECT DISTINCT + col0 * CAST( - col0 AS SIGNED ) AS col0 FROM tab0 cor0
----
-1225
-576
-7921
skipif mysql # not compatible
query I rowsort label-8845
SELECT DISTINCT + col0 * CAST ( - col0 AS INTEGER ) AS col0 FROM tab0 cor0
----
-1225
-576
-7921
query I rowsort
SELECT DISTINCT 67 FROM tab2, tab1 cor0
----
67
query I rowsort
SELECT 7 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 3362c0cb2b2c663037159d0699d46b76
query I rowsort
SELECT ALL + + cor0.col2 * 40 FROM tab0 cor0
----
1320
3280
40
query I rowsort
SELECT ALL - 98 * cor1.col1 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 009508492fed9ea83e6be43afd91f7e8
onlyif mysql # use DIV operator for integer division
query I rowsort label-8850
SELECT DISTINCT cor0.col2 DIV cor0.col0 + - col2 FROM tab0 AS cor0
----
-1
-32
-82
skipif mysql # not compatible
query I rowsort label-8850
SELECT DISTINCT cor0.col2 / cor0.col0 + - col2 FROM tab0 AS cor0
----
-1
-32
-82
query I rowsort
SELECT DISTINCT col2 + + col0 * - col1 FROM tab2
----
-1305
-190
-4576
query I rowsort
SELECT - ( + 80 ) AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 4dde3bd5652d30396b9cadd0e2cfb680
query I rowsort
SELECT + col1 + col2 + 11 AS col0 FROM tab1
----
120
78
91
query I rowsort
SELECT tab0.col2 + - ( + 53 ) AS col1 FROM tab0
----
-20
-52
29
onlyif mysql # use DIV operator for integer division
query I rowsort label-8855
SELECT 50 DIV + cor0.col2 AS col1 FROM tab0 AS cor0
----
0
1
50
skipif mysql # not compatible
query I rowsort label-8855
SELECT 50 / + cor0.col2 AS col1 FROM tab0 AS cor0
----
0
1
50
query I rowsort
SELECT col2 * + 59 AS col1 FROM tab1
----
3186
3363
5664
query I rowsort
SELECT col1 + ( + col0 ) * col0 + - col1 * col0 FROM tab1
----
-43
3466
5373
query I rowsort
SELECT + col0 + 94 AS col1 FROM tab0
----
118
129
183
query I rowsort
SELECT ALL col2 + 65 AS col2 FROM tab0
----
147
66
98
query I rowsort
SELECT ALL - col1 * - col1 + ( col2 ) + - 67 AS col0 FROM tab2
----
260
3440
921
query I rowsort
SELECT DISTINCT - - col0 * + col1 AS col0 FROM tab2 AS cor0
----
1343
217
4602
onlyif mysql # use DIV operator for integer division
query I rowsort label-8862
SELECT + col2 DIV col2 + tab1.col1 * + col1 * + tab1.col2 AS col2 FROM tab1
----
16225
36505
5701
skipif mysql # not compatible
query I rowsort label-8862
SELECT + col2 / col2 + tab1.col1 * + col1 * + tab1.col2 AS col2 FROM tab1
----
16225
36505
5701
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8863
SELECT DISTINCT CAST( - 12 AS SIGNED ) FROM tab0, tab1 AS cor0
----
-12
skipif mysql # not compatible
query I rowsort label-8863
SELECT DISTINCT CAST ( - 12 AS INTEGER ) FROM tab0, tab1 AS cor0
----
-12
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8864
SELECT ALL - tab1.col2 + + CAST( + 19 AS SIGNED ) AS col0 FROM tab1
----
-35
-38
-77
skipif mysql # not compatible
query I rowsort label-8864
SELECT ALL - tab1.col2 + + CAST ( + 19 AS INTEGER ) AS col0 FROM tab1
----
-35
-38
-77
query I rowsort
SELECT col1 * col2 - 53 FROM tab1
----
1195
1351
517
query I rowsort
SELECT + col0 * 56 * - col2 FROM tab2 AS cor0
----
-10584
-113568
-168112
query I rowsort
SELECT ALL - cor0.col0 + cor0.col1 * - col1 FROM tab2 cor0
----
-3559
-368
-968
query I rowsort
SELECT ALL - - 68 AS col0 FROM tab2 AS cor0
----
68
68
68
query I rowsort
SELECT DISTINCT 58 * cor0.col2 FROM tab0, tab1 cor0
----
3132
3306
5568
onlyif mysql # use DIV operator for integer division
query I rowsort label-8870
SELECT - 22 + - 61 DIV col1 AS col1 FROM tab2 AS cor0
----
-23
-23
-25
skipif mysql # not compatible
query I rowsort label-8870
SELECT - 22 + - 61 / col1 AS col1 FROM tab2 AS cor0
----
-23
-23
-25
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8871
SELECT ALL + CAST( NULL AS SIGNED ) FROM tab1, tab1 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-8871
SELECT ALL + CAST ( NULL AS INTEGER ) FROM tab1, tab1 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT 91 + col2 AS col2 FROM tab1 cor0
----
145
148
187
query I rowsort
SELECT - 95 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 1c7934db0632c123332c43f17b661d6c
query I rowsort
SELECT - 83 * + col0 + 30 AS col0 FROM tab0 AS cor0
----
-1962
-2875
-7357
query I rowsort
SELECT ALL 72 AS col2 FROM tab0, tab2, tab2 AS cor0
----
27 values hashing to 92cc3d5daa550304e96c1542787691c7
query I rowsort
SELECT ALL + 94 + col2 AS col1 FROM tab1 AS cor0
----
148
151
190
query I rowsort
SELECT ALL - cor0.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-8878
SELECT + + cor0.col2 * + CAST( NULL AS DECIMAL ) + - col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8878
SELECT + + cor0.col2 * + CAST ( NULL AS REAL ) + - col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-8879
SELECT DISTINCT + col1 DIV + 21 + ( - col1 * col1 + 9 * + col1 ) FROM tab0 AS cor0
----
-6618
-7458
-8532
skipif mysql # not compatible
query I rowsort label-8879
SELECT DISTINCT + col1 / + 21 + ( - col1 * col1 + 9 * + col1 ) FROM tab0 AS cor0
----
-6618
-7458
-8532
query I rowsort
SELECT ALL + cor0.col2 * col2 - col1 FROM tab1 AS cor0
----
2890
3239
9203
query I rowsort
SELECT ALL - 62 + + col1 AS col2 FROM tab0
----
24
29
35
query I rowsort
SELECT + + col2 + + col1 * + col2 FROM tab0 AS cor0
----
2871
7544
98
query I rowsort
SELECT DISTINCT + col2 + - ( ( cor0.col1 ) ) * + 91 FROM tab1 AS cor0
----
-1087
-2312
-853
query I rowsort
SELECT DISTINCT - col0 + ( 0 ) FROM tab0 cor0
----
-24
-35
-89
onlyif mysql # use DIV operator for integer division
query I rowsort label-8885
SELECT + ( col1 ) DIV - tab2.col0 FROM tab2
----
-4
0
0
skipif mysql # not compatible
query I rowsort label-8885
SELECT + ( col1 ) / - tab2.col0 FROM tab2
----
-4
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 85 col1 FROM tab2
----
-85
-85
-85
query I rowsort
SELECT col2 + col1 * col2 + - tab1.col1 FROM tab1
----
1331
1432
617
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8888
SELECT CAST( + col0 AS SIGNED ) * col0 * col2 FROM tab2
----
1323
158184
237158
skipif mysql # not compatible
query I rowsort label-8888
SELECT CAST ( + col0 AS INTEGER ) * col0 * col2 FROM tab2
----
1323
158184
237158
onlyif mysql # use DIV operator for integer division
query I rowsort label-8889
SELECT 47 DIV + col0 AS col2 FROM tab2
----
0
0
6
skipif mysql # not compatible
query I rowsort label-8889
SELECT 47 / + col0 AS col2 FROM tab2
----
0
0
6
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - col0 col1 FROM tab0 cor0
----
-2064
-3395
-8099
query I rowsort
SELECT + col1 * - col1 - tab2.col0 AS col2 FROM tab2
----
-3559
-368
-968
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 - col1 * col2 col2 FROM tab2
----
-1612
-725
-844
onlyif mysql # use DIV operator for integer division
query I rowsort label-8893
SELECT + ( 29 ) DIV + col0 FROM tab0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-8893
SELECT + ( 29 ) / + col0 FROM tab0
----
0
0
1
query I rowsort
SELECT col0 + + cor0.col1 * col2 AS col2 FROM tab0 AS cor0
----
132
2862
7551
query I rowsort
SELECT - + 28 * - col1 AS col1 FROM tab1 AS cor0
----
280
364
728
query I rowsort
SELECT 83 * - col2 AS col1 FROM tab2 AS cor0
----
-2158
-2241
-3154
query I rowsort
SELECT ALL - + ( col0 ) * + ( 34 ) + - cor0.col2 AS col0 FROM tab0 AS cor0
----
-1191
-3108
-849
query I rowsort
SELECT DISTINCT cor0.col0 - - col0 * - ( + col1 + col1 ) FROM tab1 AS cor0
----
-1216
-153
-2000
query I rowsort
SELECT DISTINCT + 62 FROM tab2, tab0 AS cor0
----
62
query I rowsort
SELECT DISTINCT col0 * + col1 + ( col0 ) AS col0 FROM tab0 AS cor0
----
2088
3430
8188
query I rowsort
SELECT - 18 + col0 * col1 + + col0 * col2 FROM tab2 AS cor0
----
388
4327
6612
onlyif mysql # use DIV operator for integer division
query I rowsort label-8902
SELECT DISTINCT cor0.col0 DIV cor0.col0 col0 FROM tab0 AS cor0
----
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8902
SELECT DISTINCT cor0.col0 / cor0.col0 col0 FROM tab0 AS cor0
----
1
query I rowsort
SELECT col0 * col0 + - 9 + - col1 * col0 AS col0 FROM tab0 cor0
----
-1497
-187
-2179
query I rowsort
SELECT ALL - - cor0.col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63
query I rowsort
SELECT + - 79 + col2 FROM tab2 AS cor0
----
-41
-52
-53
query I rowsort
SELECT DISTINCT - 92 * col1 + - col2 + + col1 AS col2 FROM tab1 AS cor0
----
-1279
-2420
-967
onlyif mysql # use DIV operator for integer division
query I rowsort label-8907
SELECT DISTINCT ( + 30 ) DIV tab1.col2 FROM tab1
----
0
skipif mysql # not compatible
query I rowsort label-8907
SELECT DISTINCT ( + 30 ) / tab1.col2 FROM tab1
----
0
query I rowsort
SELECT + col1 * - col2 * - cor0.col0 AS col2 FROM tab2 AS cor0
----
119652
51034
5859
query I rowsort
SELECT 8 + + cor0.col2 AS col2 FROM tab2 AS cor0
----
34
35
46
query I rowsort
SELECT DISTINCT - cor1.col1 AS col0 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
-10
-13
-26
query I rowsort
SELECT + 21 * - col0 + - col2 AS col2 FROM tab1 AS cor0
----
-117
-1401
-1776
query I rowsort
SELECT DISTINCT + col2 * ( cor0.col2 ) * + ( - col0 ) + - col0 AS col0 FROM tab1 AS cor0
----
-208000
-737360
-8751
query I rowsort
SELECT ALL + + cor0.col1 + - 35 * + col0 FROM tab1 AS cor0
----
-2230
-2787
-79
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8914
SELECT ALL + CAST( NULL AS SIGNED ) + col0 FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8914
SELECT ALL + CAST ( NULL AS INTEGER ) + col0 FROM tab2 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - + 83 + 99 * col0 * + 20 FROM tab0 AS cor0
----
176137
47437
69217
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 6 * 33 col1 FROM tab0
----
198
onlyif mysql # use DIV operator for integer division
query I rowsort label-8917
SELECT ALL 21 * - 2 DIV + col2 AS col2 FROM tab1
----
0
0
0
skipif mysql # not compatible
query I rowsort label-8917
SELECT ALL 21 * - 2 / + col2 AS col2 FROM tab1
----
0
0
0
query I rowsort
SELECT ALL col0 * col0 + - 77 AS col2 FROM tab2 AS cor0
----
-28
6007
6164
onlyif mysql # use DIV operator for integer division
query I rowsort label-8919
SELECT + cor0.col0 DIV col0 AS col0 FROM tab1 cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-8919
SELECT + cor0.col0 / col0 AS col0 FROM tab1 cor0
----
1
1
1
query I rowsort
SELECT + 8 * - 20 AS col2 FROM tab1
----
-160
-160
-160
query I rowsort
SELECT DISTINCT - tab0.col0 * ( col0 ) AS col2 FROM tab0
----
-1225
-576
-7921
query I rowsort
SELECT ALL - - col0 * ( + col2 ) AS col1 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT ALL + col2 + - cor0.col0 * ( - col0 ) AS col2 FROM tab0 AS cor0
----
1226
609
8003
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + - 58 * - cor0.col0 - - col1 col0 FROM tab1 cor0
----
226
3732
4666
onlyif mysql # use DIV operator for integer division
query I rowsort label-8925
SELECT ALL cor0.col2 DIV - col1 AS col2 FROM tab1 AS cor0
----
-2
-5
-7
skipif mysql # not compatible
query I rowsort label-8925
SELECT ALL cor0.col2 / - col1 AS col2 FROM tab1 AS cor0
----
-2
-5
-7
query I rowsort
SELECT ALL - - col2 + 1 FROM tab1 AS cor0
----
55
58
97
query I rowsort
SELECT ALL - col1 + + 39 FROM tab1 AS cor0
----
13
26
29
onlyif mysql # use DIV operator for integer division
query I rowsort label-8928
SELECT + col2 * + 34 - + col1 DIV col2 AS col0 FROM tab1 AS cor0
----
1836
1938
3264
skipif mysql # not compatible
query I rowsort label-8928
SELECT + col2 * + 34 - + col1 / col2 AS col0 FROM tab1 AS cor0
----
1836
1938
3264
query I rowsort
SELECT ALL tab1.col2 * col0 - col0 FROM tab1
----
159
3584
7600
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8930
SELECT 77 * col0 + CAST( NULL AS SIGNED ) - 86 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8930
SELECT 77 * col0 + CAST ( NULL AS INTEGER ) - 86 FROM tab2
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-8931
SELECT DISTINCT col1 - + col1 DIV - 49 FROM tab1
----
10
13
26
skipif mysql # not compatible
query I rowsort label-8931
SELECT DISTINCT col1 - + col1 / - 49 FROM tab1
----
10
13
26
query I rowsort
SELECT DISTINCT + col0 + + ( ( col0 ) ) FROM tab2
----
14
156
158
query I rowsort
SELECT ALL - col0 + 30 FROM tab1
----
-34
-50
27
query I rowsort
SELECT ALL - cor0.col2 + col1 AS col2 FROM tab0 cor0
----
53
9
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-8935
SELECT - + col2 DIV + ( - col1 ) AS col2 FROM tab1 AS cor0
----
2
5
7
skipif mysql # not compatible
query I rowsort label-8935
SELECT - + col2 / + ( - col1 ) AS col2 FROM tab1 AS cor0
----
2
5
7
query I rowsort
SELECT cor0.col0 * 90 AS col2 FROM tab0 AS cor0
----
2160
3150
8010
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 30 col1 FROM tab1, tab0 AS cor0
----
9 values hashing to da5de0c411a2c0f445400f1b63ea9f89
query I rowsort
SELECT ALL col1 + - ( + col2 ) AS col0 FROM tab1 AS cor0
----
-28
-47
-83
query I rowsort
SELECT DISTINCT + col1 * tab2.col1 * - col1 + col0 * 32 AS col1 FROM tab2
----
-202883
-2385
-29567
query I rowsort
SELECT ALL - col1 * col1 + tab0.col2 AS col2 FROM tab0
----
-7363
-8199
-9408
query I rowsort
SELECT - col0 * col0 + col2 AS col0 FROM tab2 cor0
----
-22
-6058
-6203
query I rowsort
SELECT ALL col2 * 56 FROM tab2
----
1456
1512
2128
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 72 col1 FROM tab2, tab2 AS cor0
----
9 values hashing to ad521144c976ff25e77cdf10a84d1dc6
query I rowsort
SELECT - col0 + + col1 + - 20 FROM tab0
----
-18
42
42
onlyif mysql # use DIV operator for integer division
query I rowsort label-8945
SELECT ALL col1 + - col2 DIV + col0 FROM tab2
----
17
28
59
skipif mysql # not compatible
query I rowsort label-8945
SELECT ALL col1 + - col2 / + col0 FROM tab2
----
17
28
59
query I rowsort
SELECT ALL + col1 + - 65 FROM tab0
----
21
26
32
query I rowsort
SELECT DISTINCT - 92 AS col0 FROM tab0, tab1 cor0
----
-92
query I rowsort
SELECT + col0 * - 26 AS col1 FROM tab2 AS cor0
----
-182
-2028
-2054
query I rowsort
SELECT - ( - ( - col2 ) ) + col2 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT + cor0.col0 * + col0 + col1 FROM tab0 AS cor0
----
1322
662
8012
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8951
SELECT ALL + CAST( NULL AS SIGNED ) * 35 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8951
SELECT ALL + CAST ( NULL AS INTEGER ) * 35 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT col0 + - col1 - + col0 AS col2 FROM tab1 AS cor0
----
-10
-13
-26
onlyif mysql # use DIV operator for integer division
query I rowsort label-8953
SELECT - - col1 + + col1 * col2 DIV + col1 col1 FROM tab1 AS cor0
----
109
67
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8953
SELECT - - col1 + + col1 * col2 / + col1 col1 FROM tab1 AS cor0
----
109
67
80
query I rowsort
SELECT DISTINCT + ( col0 ) + col0 AS col1 FROM tab0 AS cor0
----
178
48
70
query I rowsort
SELECT + + 15 * col1 + col2 FROM tab2 AS cor0
----
293
492
911
query I rowsort
SELECT 0 + - cor0.col0 FROM tab0 cor0
----
-24
-35
-89
query I rowsort
SELECT DISTINCT - ( 73 ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-73
query I rowsort
SELECT ALL + col2 + - col0 * + 28 AS col0 FROM tab2 AS cor0
----
-169
-2158
-2174
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + cor0.col2 * - col1 * 9 col1 FROM tab0 AS cor0
----
25542
67158
873
onlyif mysql # use DIV operator for integer division
query I rowsort label-8960
SELECT ALL + col0 + + col2 + ( col2 ) DIV - col1 AS col1 FROM tab0 AS cor0
----
171
36
57
skipif mysql # not compatible
query I rowsort label-8960
SELECT ALL + col0 + + col2 + ( col2 ) / - col1 AS col1 FROM tab0 AS cor0
----
171
36
57
query I rowsort
SELECT ALL ( col1 ) * col2 AS col1 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT col2 + - col0 * col2 AS col1 FROM tab2 AS cor0
----
-162
-2002
-2964
query I rowsort
SELECT DISTINCT + 38 AS col0 FROM tab0 AS cor0
----
38
query I rowsort
SELECT DISTINCT col0 + - col0 * + col2 FROM tab1 AS cor0
----
-159
-3584
-7600
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8965
SELECT ALL - + col2 + + col0 * + CAST( - cor0.col0 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-1226
-609
-8003
skipif mysql # not compatible
query I rowsort label-8965
SELECT ALL - + col2 + + col0 * + CAST ( - cor0.col0 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-1226
-609
-8003
query I rowsort
SELECT ALL 88 * col1 * col2 FROM tab2 AS cor0
----
134992
56848
73656
query I rowsort
SELECT 53 * cor0.col1 FROM tab0 cor0
----
4558
4823
5141
query I rowsort
SELECT - col2 * ( ( col0 ) + + col0 * - col1 ) AS col0 FROM tab1 AS cor0
----
32832
4050
92160
query I rowsort
SELECT DISTINCT 36 FROM tab2, tab0 cor0, tab0 AS cor1
----
36
query I rowsort
SELECT DISTINCT - col2 * - 33 AS col1 FROM tab2 AS cor0
----
1254
858
891
query I rowsort
SELECT ALL + 17 * + col1 FROM tab1
----
170
221
442
onlyif mysql # use DIV operator for integer division
query I rowsort label-8972
SELECT - col2 DIV + cor0.col1 FROM tab2 AS cor0
----
-2
0
0
skipif mysql # not compatible
query I rowsort label-8972
SELECT - col2 / + cor0.col1 FROM tab2 AS cor0
----
-2
0
0
query I rowsort
SELECT DISTINCT ( col2 ) * + col2 * 45 FROM tab0
----
302580
45
49005
query I rowsort
SELECT + col2 + - ( col1 ) * col1 AS col1 FROM tab2 AS cor0
----
-251
-3455
-934
query I rowsort
SELECT col1 * + ( - col2 ) * col1 FROM tab1 AS cor0
----
-16224
-36504
-5700
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + cor0.col2 * - col0 col0 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT + - ( - col0 ) * - col1 AS col0 FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT + col0 * + 93 AS col0 FROM tab1 AS cor0
----
279
5952
7440
query I rowsort
SELECT - 68 + col0 * + col2 * - col0 AS col1 FROM tab2 AS cor0
----
-1391
-158252
-237226
query I rowsort
SELECT DISTINCT col2 * 29 AS col0 FROM tab2
----
1102
754
783
query I rowsort
SELECT ALL - col0 + + col1 + + col1 AS col1 FROM tab0
----
148
159
93
query I rowsort
SELECT - cor0.col0 * ( + col1 ) FROM tab0 cor0
----
-2064
-3395
-8099
query I rowsort
SELECT - 71 + col1 AS col2 FROM tab1 cor0
----
-45
-58
-61
query I rowsort
SELECT + col0 + col1 * col2 * + ( col2 ) FROM tab1 cor0
----
119888
32554
75819
query I rowsort
SELECT + - col0 + - col0 * col0 * + col0 AS col2 FROM tab1 cor0
----
-262208
-30
-512080
query I rowsort
SELECT - - ( - 87 ) FROM tab2 AS cor0
----
-87
-87
-87
query I rowsort
SELECT - col0 * - ( 73 ) FROM tab0
----
1752
2555
6497
query I rowsort
SELECT - 77 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to c7e5f48ecd3843d54a76808ed1f43ff6
onlyif mysql # use DIV operator for integer division
query I rowsort label-8989
SELECT - col2 + col0 DIV col1 col1 FROM tab1
----
-51
-54
-90
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8989
SELECT - col2 + col0 / col1 col1 FROM tab1
----
-51
-54
-90
query I rowsort
SELECT ALL 53 * col0 FROM tab1 AS cor0
----
159
3392
4240
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8991
SELECT + cor0.col2 + + 80 * - col0 * + CAST( col2 + - col0 AS SIGNED ) AS col2 FROM tab1 cor0
----
-102304
-12186
35897
skipif mysql # not compatible
query I rowsort label-8991
SELECT + cor0.col2 + + 80 * - col0 * + CAST ( col2 + - col0 AS INTEGER ) AS col2 FROM tab1 cor0
----
-102304
-12186
35897
query I rowsort
SELECT ALL + + col1 + + ( col1 ) FROM tab0 AS cor0
----
172
182
194
query I rowsort
SELECT col2 * + col2 * + col1 + col2 FROM tab0 AS cor0
----
611966
93687
98
query I rowsort
SELECT - 68 + col1 AS col0 FROM tab2 AS cor0
----
-37
-51
-9
query I rowsort
SELECT DISTINCT 94 + col2 AS col1 FROM tab0 AS cor0
----
127
176
95
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col0 * ( - col0 ) - cor0.col0 * ( + col2 ) col1 FROM tab1 AS cor0
----
-1280
-153
448
query I rowsort
SELECT - col2 * 35 FROM tab1
----
-1890
-1995
-3360
query I rowsort
SELECT ( tab2.col1 * tab2.col0 ) FROM tab2, tab2 AS cor0
----
9 values hashing to bc669a3cc969c7619ebcffb5400ba0ba
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( 80 ) col1 FROM tab0
----
-80
query I rowsort
SELECT + 87 + - col2 AS col2 FROM tab0
----
5
54
86
query I rowsort
SELECT ALL + 15 + - col2 * col2 * - col1 FROM tab0
----
112
611899
93669
query I rowsort
SELECT col0 + 55 FROM tab1
----
119
135
58
query I rowsort
SELECT ALL 13 * col1 FROM tab2 AS cor0
----
221
403
767
query I rowsort
SELECT + ( - tab1.col1 ) * tab1.col1 AS col1 FROM tab1
----
-100
-169
-676
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9005
SELECT - CAST( col0 AS SIGNED ) * + col1 + col0 + ( col1 + - 56 ) * + col1 FROM tab0
----
-4825
540
617
skipif mysql # not compatible
query I rowsort label-9005
SELECT - CAST ( col0 AS INTEGER ) * + col1 + col0 + ( col1 + - 56 ) * + col1 FROM tab0
----
-4825
540
617
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9006
SELECT ALL + CAST( + cor0.col2 AS SIGNED ) AS col0 FROM tab1, tab2, tab1 AS cor0
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79
skipif mysql # not compatible
query I rowsort label-9006
SELECT ALL + CAST ( + cor0.col2 AS INTEGER ) AS col0 FROM tab1, tab2, tab1 AS cor0
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + + col1 col0 FROM tab0
----
119
173
98
query I rowsort
SELECT ALL - col0 * col0 * col1 + col0 FROM tab2 AS cor0
----
-106018
-1512
-358878
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9009
SELECT - col2 * CAST( col2 AS SIGNED ) + - col2 AS col0 FROM tab0 AS cor0
----
-1122
-2
-6806
skipif mysql # not compatible
query I rowsort label-9009
SELECT - col2 * CAST ( col2 AS INTEGER ) + - col2 AS col0 FROM tab0 AS cor0
----
-1122
-2
-6806
query I rowsort
SELECT ALL - + cor0.col2 * + ( - cor0.col2 ) + col1 * - 41 FROM tab0 AS cor0
----
-2437
-3976
2993
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - col1 + - CAST ( col2 AS REAL ) * cor0.col0 FROM tab0 AS cor0
----
-132
-7389
-878
query I rowsort
SELECT + col1 + - 52 AS col2 FROM tab0 AS cor0
----
34
39
45
query I rowsort
SELECT ALL + cor0.col2 + ( col0 ) * col1 FROM tab2 AS cor0
----
1381
244
4628
query I rowsort
SELECT ALL 69 AS col1 FROM tab2
----
69
69
69
query I rowsort
SELECT + - col0 - - col0 * + col1 FROM tab2 AS cor0
----
1264
210
4524
query I rowsort
SELECT + col2 + - col1 * col0 AS col0 FROM tab0 cor0
----
-2031
-3394
-8017
query I rowsort
SELECT - col2 * + col2 + + col1 FROM tab0 AS cor0
----
-1003
-6633
96
query I rowsort
SELECT col2 * + ( ( - col0 ) * + 53 ) FROM tab0 cor0
----
-1855
-386794
-41976
onlyif mysql # use DIV operator for integer division
query I rowsort label-9019
SELECT ALL col2 * + tab1.col0 + + 23 DIV col2 AS col0 FROM tab1
----
162
3648
7680
skipif mysql # not compatible
query I rowsort label-9019
SELECT ALL col2 * + tab1.col0 + + 23 / col2 AS col0 FROM tab1
----
162
3648
7680
query I rowsort
SELECT ALL - ( col1 ) AS col1 FROM tab0 cor0
----
-86
-91
-97
onlyif mysql # use DIV operator for integer division
query I rowsort label-9021
SELECT ALL ( + col2 ) + ( col0 ) DIV - col0 AS col0 FROM tab1
----
53
56
95
skipif mysql # not compatible
query I rowsort label-9021
SELECT ALL ( + col2 ) + ( col0 ) / - col0 AS col0 FROM tab1
----
53
56
95
query I rowsort
SELECT DISTINCT + 22 * + col0 FROM tab2 AS cor0
----
154
1716
1738
query I rowsort
SELECT ALL 0 + - col2 * - col0 AS col1 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT - + col1 * + 24 FROM tab1 cor0
----
-240
-312
-624
query I rowsort
SELECT col0 * - col0 * col1 + - cor0.col0 FROM tab0 cor0
----
-118860
-49560
-720900
query I rowsort
SELECT ALL col1 * ( col2 ) * - col0 AS col2 FROM tab0 AS cor0
----
-3395
-664118
-68112
onlyif mysql # use DIV operator for integer division
query I rowsort label-9027
SELECT - col0 DIV CAST( - cor0.col2 AS SIGNED ) AS col0 FROM tab1 cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-9027
SELECT - col0 / CAST ( - cor0.col2 AS INTEGER ) AS col0 FROM tab1 cor0
----
0
0
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-9028
SELECT DISTINCT - col0 DIV ( 49 ) FROM tab2 cor0
----
-1
0
skipif mysql # not compatible
query I rowsort label-9028
SELECT DISTINCT - col0 / ( 49 ) FROM tab2 cor0
----
-1
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col2 - + 62 col0 FROM tab1 AS cor0
----
-5
-8
34
onlyif mysql # use DIV operator for integer division
query I rowsort label-9030
SELECT col0 * ( col1 ) + col2 DIV ( col2 ) FROM tab0 AS cor0
----
2065
3396
8100
skipif mysql # not compatible
query I rowsort label-9030
SELECT col0 * ( col1 ) + col2 / ( col2 ) FROM tab0 AS cor0
----
2065
3396
8100
query I rowsort
SELECT DISTINCT - - col1 * + 28 FROM tab2 cor0
----
1652
476
868
query I rowsort
SELECT tab2.col0 + + col0 + + 79 AS col0 FROM tab2
----
235
237
93
query I rowsort
SELECT ALL + col2 * - tab1.col0 + col0 * col1 FROM tab1
----
-3008
-6640
-84
onlyif mysql # use DIV operator for integer division
query I rowsort label-9034
SELECT DISTINCT + tab1.col1 DIV col2 + col2 FROM tab1
----
54
57
96
skipif mysql # not compatible
query I rowsort label-9034
SELECT DISTINCT + tab1.col1 / col2 + col2 FROM tab1
----
54
57
96
query I rowsort
SELECT ALL + col1 * + col0 * 63 + col0 AS col2 FROM tab2
----
13678
290004
84688
query I rowsort
SELECT + col0 * 14 AS col2 FROM tab2 AS cor0
----
1092
1106
98
query I rowsort
SELECT DISTINCT + 92 + + col1 * col2 FROM tab1
----
1340
1496
662
query I rowsort
SELECT ALL - 22 + col0 * col2 FROM tab1 AS cor0
----
140
3626
7658
query I rowsort
SELECT ALL - 22 * 81 FROM tab1 AS cor0
----
-1782
-1782
-1782
query I rowsort
SELECT - cor0.col2 + - 35 AS col1 FROM tab1 AS cor0
----
-131
-89
-92
query I rowsort
SELECT DISTINCT - ( 98 ) FROM tab2 AS cor0
----
-98
query I rowsort
SELECT - ( + col1 ) * col0 + 70 FROM tab1 AS cor0
----
-570
-8
-970
query I rowsort
SELECT ALL 36 * col2 + col1 FROM tab1 AS cor0
----
1970
2062
3469
query I rowsort
SELECT DISTINCT - 56 * - 76 + col1 FROM tab1 AS cor0
----
4266
4269
4282
onlyif mysql # use DIV operator for integer division
query I rowsort label-9045
SELECT - ( - col1 ) DIV + col0 col0 FROM tab0 AS cor0
----
1
2
3
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9045
SELECT - ( - col1 ) / + col0 col0 FROM tab0 AS cor0
----
1
2
3
query I rowsort
SELECT ALL 4 + col1 FROM tab0 cor0
----
101
90
95
query I rowsort
SELECT + col2 * 42 FROM tab1 AS cor0
----
2268
2394
4032
query I rowsort
SELECT DISTINCT + col1 * + col1 * cor0.col1 AS col1 FROM tab0 AS cor0
----
636056
753571
912673
onlyif mysql # use DIV operator for integer division
query I rowsort label-9049
SELECT ALL - col1 DIV + 44 FROM tab0
----
-1
-2
-2
skipif mysql # not compatible
query I rowsort label-9049
SELECT ALL - col1 / + 44 FROM tab0
----
-1
-2
-2
query I rowsort
SELECT DISTINCT + 2 * + col2 * cor0.col1 AS col0 FROM tab0 AS cor0
----
14924
194
5676
query I rowsort
SELECT ALL 35 * col2 FROM tab2 cor0
----
1330
910
945
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + + col0 col1 FROM tab0 AS cor0
----
-9
34
7
query I rowsort
SELECT - 80 + - col0 FROM tab0 AS cor0
----
-104
-115
-169
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 15 col1 FROM tab2 AS cor0
----
-15
-15
-15
query I rowsort
SELECT ALL + - 66 FROM tab2 cor0
----
-66
-66
-66
query I rowsort
SELECT ALL - - col1 * + col2 + - col1 FROM tab1 AS cor0
----
1235
1378
560
query I rowsort
SELECT + col0 * - col2 + col2 + col2 FROM tab1
----
-3534
-54
-7488
onlyif mysql # use DIV operator for integer division
query I rowsort label-9058
SELECT + - col0 * + col2 * 75 + - 61 + - col2 DIV + 88 AS col1 FROM tab1 AS cor0
----
-12211
-273661
-576062
skipif mysql # not compatible
query I rowsort label-9058
SELECT + - col0 * + col2 * 75 + - 61 + - col2 / + 88 AS col1 FROM tab1 AS cor0
----
-12211
-273661
-576062
query I rowsort
SELECT DISTINCT - 14 - - col2 AS col2 FROM tab0
----
-13
19
68
query I rowsort
SELECT col1 - + col1 * col0 FROM tab0
----
-1978
-3298
-8008
onlyif mysql # use DIV operator for integer division
query I rowsort label-9061
SELECT DISTINCT + col1 * col0 DIV + col1 + - col0 FROM tab1 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-9061
SELECT DISTINCT + col1 * col0 / + col1 + - col0 FROM tab1 AS cor0
----
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9062
SELECT + CAST( NULL AS SIGNED ) + 83 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9062
SELECT + CAST ( NULL AS INTEGER ) + 83 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT 49 * - col2 + tab2.col1 * + 36 FROM tab2
----
-1250
-207
850
query I rowsort
SELECT 81 + - col0 FROM tab1
----
1
17
78
query I rowsort
SELECT 17 FROM tab0, tab0 AS cor0, tab1 cor1
----
27 values hashing to e0dd9155e4d67132637a04c18ef46b2a
onlyif mysql # use DIV operator for integer division
query I rowsort label-9066
SELECT col0 * tab0.col2 DIV ( col0 ) FROM tab0
----
1
33
82
skipif mysql # not compatible
query I rowsort label-9066
SELECT col0 * tab0.col2 / ( col0 ) FROM tab0
----
1
33
82
query I rowsort
SELECT - col2 * col2 + ( + 60 ) FROM tab2 AS cor0
----
-1384
-616
-669
query I rowsort
SELECT + - 89 * - col2 AS col1 FROM tab2 cor0
----
2314
2403
3382
query I rowsort
SELECT ALL - + cor0.col2 + - col2 * col0 AS col2 FROM tab1 cor0
----
-216
-3705
-7776
query I rowsort
SELECT DISTINCT - + 20 + - col2 FROM tab1 AS cor0
----
-116
-74
-77
query I rowsort
SELECT ALL - 30 AS col1 FROM tab0 cor0
----
-30
-30
-30
query I rowsort
SELECT ALL - col2 + + cor0.col2 FROM tab2 cor0
----
0
0
0
query I rowsort
SELECT DISTINCT - cor0.col1 * + cor0.col2 AS col0 FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT ALL 65 + col2 FROM tab0 AS cor0
----
147
66
98
query I rowsort
SELECT DISTINCT 79 + + col1 * ( - col2 ) - - col0 * - 64 FROM tab0 AS cor0
----
-13079
-2258
-4295
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab2 cor0 CROSS JOIN tab0, tab2 AS cor1, tab0 cor2
----
972 values hashing to 86dbd337f00ab84c613ad03d6fc06e28
query I rowsort
SELECT tab2.col0 + - col0 * col2 FROM tab2
----
-182
-1950
-2923
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * - col2 + - cor0.col2 col2 FROM tab0 AS cor0
----
-36
-7380
-825
query I rowsort
SELECT + + col0 + 26 * 90 FROM tab1 AS cor0
----
2343
2404
2420
query I rowsort
SELECT - 8 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 47f43f23dcd23959d97d8e3b0aab692e
query I rowsort
SELECT ALL - col2 - + col2 * - col2 * 60 FROM tab0 AS cor0
----
403358
59
65307
query I rowsort
SELECT + ( - ( col2 ) ) + - col0 * + col1 FROM tab1 AS cor0
----
-1136
-132
-697
query I rowsort
SELECT ALL + col0 * + col2 + col2 AS col1 FROM tab0 AS cor0
----
36
7380
825
query I rowsort
SELECT + 87 FROM tab1, tab2 AS cor0
----
9 values hashing to fa0cdd86483844cda3bb806e032d5c64
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 39 col1 FROM tab0
----
39
39
39
query I rowsort
SELECT ALL ( 57 ) AS col0 FROM tab2
----
57
57
57
query I rowsort
SELECT - ( - 38 ) FROM tab2 cor0
----
38
38
38
query I rowsort
SELECT col0 + 79 AS col2 FROM tab0 AS cor0
----
103
114
168
onlyif mysql # use DIV operator for integer division
query I rowsort label-9089
SELECT ALL - col1 + + ( + 95 ) DIV + col2 + - col2 col1 FROM tab1 AS cor0
----
-109
-66
-79
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9089
SELECT ALL - col1 + + ( + 95 ) / + col2 + - col2 col1 FROM tab1 AS cor0
----
-109
-66
-79
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + ( - 8 ) col1 FROM tab2 AS cor0
----
-34
-35
-46
query I rowsort
SELECT ALL + col2 + - 30 AS col2 FROM tab2 AS cor0
----
-3
-4
8
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 55 col0 FROM tab0
----
55
55
55
query I rowsort
SELECT + 34 * col1 AS col2 FROM tab1
----
340
442
884
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9094
SELECT ALL col2 * - CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9094
SELECT ALL col2 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT col2 * - col2 + + 20 * - cor0.col1 + col1 * + col0 FROM tab2 AS cor0
----
-1132
-441
2746
query I rowsort
SELECT DISTINCT col2 * - col2 + + col0 AS col0 FROM tab0
----
-1065
-6635
34
onlyif mysql # use DIV operator for integer division
query I rowsort label-9097
SELECT - col2 DIV + col0 + - col2 col1 FROM tab0 AS cor0
----
-1
-34
-82
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9097
SELECT - col2 / + col0 + - col2 col1 FROM tab0 AS cor0
----
-1
-34
-82
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9098
SELECT + - col2 * CAST( NULL AS SIGNED ) + col1 FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9098
SELECT + - col2 * CAST ( NULL AS INTEGER ) + col1 FROM tab0 cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-9099
SELECT - tab1.col0 DIV col0 FROM tab1
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-9099
SELECT - tab1.col0 / col0 FROM tab1
----
-1
-1
-1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * - ( - col1 ) col1 FROM tab2
----
289
3481
961
query I rowsort
SELECT DISTINCT 84 * - col0 FROM tab1
----
-252
-5376
-6720
onlyif mysql # use DIV operator for integer division
query I rowsort label-9102
SELECT ALL - ( + col1 * col1 ) + tab0.col1 DIV + col2 AS col0 FROM tab0
----
-7394
-8280
-9312
skipif mysql # not compatible
query I rowsort label-9102
SELECT ALL - ( + col1 * col1 ) + tab0.col1 / + col2 AS col0 FROM tab0
----
-7394
-8280
-9312
onlyif mysql # use DIV operator for integer division
query I rowsort label-9103
SELECT DISTINCT + col1 DIV cor0.col2 col1 FROM tab1 AS cor0
----
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9103
SELECT DISTINCT + col1 / cor0.col2 col1 FROM tab1 AS cor0
----
0
query I rowsort
SELECT ALL - 85 AS col2 FROM tab2 AS cor0
----
-85
-85
-85
query I rowsort
SELECT + - col2 * - 10 AS col1 FROM tab0 AS cor0
----
10
330
820
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9106
SELECT ALL - CAST( NULL AS SIGNED ) + + 61 * col0 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9106
SELECT ALL - CAST ( NULL AS INTEGER ) + + 61 * col0 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 83 col0 FROM tab1, tab2 AS cor0
----
9 values hashing to d55748f39f403ec273099c0d87b0bfbb
onlyif mysql # use DIV operator for integer division
query I rowsort label-9108
SELECT col1 DIV + tab1.col0 FROM tab1
----
0
0
8
skipif mysql # not compatible
query I rowsort label-9108
SELECT col1 / + tab1.col0 FROM tab1
----
0
0
8
query I rowsort
SELECT DISTINCT + col0 * col0 - 20 AS col0 FROM tab2
----
29
6064
6221
query I rowsort
SELECT - col0 * col0 * - tab2.col0 + + col0 * col0 - - ( + 99 ) * col1 AS col1 FROM tab2
----
3461
486477
500963
query I rowsort
SELECT DISTINCT ( - col1 ) * 83 - + tab1.col1 AS col2 FROM tab1
----
-1092
-2184
-840
query I rowsort
SELECT - 72 * col2 + - col1 * - col1 + col1 AS col2 FROM tab0 AS cor0
----
2468
5106
9434
query I rowsort
SELECT 90 + col1 AS col2 FROM tab0 AS cor0
----
176
181
187
query I rowsort
SELECT - col1 * - col2 * - col0 FROM tab1 AS cor0
----
-36480
-4212
-99840
onlyif mysql # use DIV operator for integer division
query I rowsort label-9115
SELECT - - col1 DIV + col0 AS col2 FROM tab2 cor0
----
0
0
4
skipif mysql # not compatible
query I rowsort label-9115
SELECT - - col1 / + col0 AS col2 FROM tab2 cor0
----
0
0
4
query I rowsort
SELECT ALL - col2 * cor0.col1 + col0 AS col1 FROM tab2 AS cor0
----
-1456
-567
-830
onlyif mysql # use DIV operator for integer division
query I rowsort label-9117
SELECT + ( col1 ) DIV - col0 FROM tab0 AS cor0
----
-1
-2
-3
skipif mysql # not compatible
query I rowsort label-9117
SELECT + ( col1 ) / - col0 FROM tab0 AS cor0
----
-1
-2
-3
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9118
SELECT ALL cor0.col2 + CAST( ( col1 ) AS SIGNED ) * + ( + cor0.col1 ) - col2 AS col1 FROM tab0 AS cor0
----
7396
8281
9409
skipif mysql # not compatible
query I rowsort label-9118
SELECT ALL cor0.col2 + CAST ( ( col1 ) AS INTEGER ) * + ( + cor0.col1 ) - col2 AS col1 FROM tab0 AS cor0
----
7396
8281
9409
query I rowsort
SELECT - + 92 * cor0.col0 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 62cbe633c9b04e947c440521f1325c3b
query I rowsort
SELECT DISTINCT col2 * - ( + 81 ) + cor0.col2 + + 41 FROM tab0 AS cor0
----
-2599
-39
-6519
onlyif mysql # use DIV operator for integer division
query I rowsort label-9121
SELECT DISTINCT col2 DIV col1 + col1 AS col1 FROM tab1 AS cor0
----
15
20
28
skipif mysql # not compatible
query I rowsort label-9121
SELECT DISTINCT col2 / col1 + col1 AS col1 FROM tab1 AS cor0
----
15
20
28
query I rowsort
SELECT DISTINCT - col2 * + 21 + + col2 AS col2 FROM tab1 cor0
----
-1080
-1140
-1920
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9123
SELECT + cor0.col0 * + CAST( NULL AS DECIMAL ) - + tab0.col1 FROM tab0, tab1 AS cor0, tab2, tab1 AS cor1
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c
skipif mysql # not compatible
query I rowsort label-9123
SELECT + cor0.col0 * + CAST ( NULL AS REAL ) - + tab0.col1 FROM tab0, tab1 AS cor0, tab2, tab1 AS cor1
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c
onlyif mysql # use DIV operator for integer division
query I rowsort label-9124
SELECT col0 + + col2 DIV 36 + - col2 DIV col0 FROM tab0 AS cor0
----
23
35
91
skipif mysql # not compatible
query I rowsort label-9124
SELECT col0 + + col2 / 36 + - col2 / col0 FROM tab0 AS cor0
----
23
35
91
onlyif mysql # use DIV operator for integer division
query I rowsort label-9125
SELECT - + col2 + 60 DIV cor0.col0 FROM tab1 AS cor0
----
-34
-57
-96
skipif mysql # not compatible
query I rowsort label-9125
SELECT - + col2 + 60 / cor0.col0 FROM tab1 AS cor0
----
-34
-57
-96
query I rowsort
SELECT ALL cor0.col2 AS col1 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5
onlyif mysql # use DIV operator for integer division
query I rowsort label-9127
SELECT + col2 DIV 57 FROM tab0 AS cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-9127
SELECT + col2 / 57 FROM tab0 AS cor0
----
0
0
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-9128
SELECT DISTINCT + cor0.col0 + - col1 + - col1 DIV + 17 FROM tab2 AS cor0
----
-25
16
61
skipif mysql # not compatible
query I rowsort label-9128
SELECT DISTINCT + cor0.col0 + - col1 + - col1 / + 17 FROM tab2 AS cor0
----
-25
16
61
query I rowsort
SELECT col1 + 52 * - col2 AS col2 FROM tab1 AS cor0
----
-2782
-2954
-4979
skipif mysql # not compatible
query I rowsort
SELECT - + CAST ( col1 AS REAL ) AS col2 FROM tab0 AS cor0
----
-86
-91
-97
query I rowsort
SELECT ALL cor1.col2 + - 60 AS col2 FROM tab2, tab2 AS cor0, tab2 cor1
----
27 values hashing to 89505ee6cf41cad6a212897d172b639a
query I rowsort
SELECT DISTINCT - 25 + - col2 FROM tab2 AS cor0
----
-51
-52
-63
query I rowsort
SELECT ALL - 85 + + col0 + cor0.col2 AS col1 FROM tab1 cor0
----
-28
36
91
onlyif mysql # use DIV operator for integer division
query I rowsort label-9134
SELECT DISTINCT + ( - ( + col1 ) + col1 ) DIV + col0 col0 FROM tab2
----
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9134
SELECT DISTINCT + ( - ( + col1 ) + col1 ) / + col0 col0 FROM tab2
----
0
query I rowsort
SELECT ALL ( 91 ) FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to deebbcfb9c7803a34dca6bd860849afe
query I rowsort
SELECT + + ( - cor0.col1 ) FROM tab2 AS cor0
----
-17
-31
-59
query I rowsort
SELECT - - col0 + + cor0.col1 AS col0 FROM tab0 AS cor0
----
110
132
180
query I rowsort
SELECT DISTINCT + ( + 75 ) * col0 AS col2 FROM tab1
----
225
4800
6000
query I rowsort
SELECT + ( + col1 ) + col1 * col1 FROM tab1 AS cor0
----
110
182
702
onlyif mysql # use DIV operator for integer division
query I rowsort label-9140
SELECT ALL 43 * - col2 * - col1 + + cor0.col1 DIV - ( col0 * + 6 ) AS col0 FROM tab2 AS cor0
----
27778
35991
65962
skipif mysql # not compatible
query I rowsort label-9140
SELECT ALL 43 * - col2 * - col1 + + cor0.col1 / - ( col0 * + 6 ) AS col0 FROM tab2 AS cor0
----
27778
35991
65962
query I rowsort
SELECT DISTINCT + 98 * 15 AS col0 FROM tab1 AS cor0
----
1470
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + 73 ) col0 FROM tab1 AS cor0
----
-73
-73
-73
query I rowsort
SELECT DISTINCT - 0 * col1 FROM tab2 AS cor0
----
0
query I rowsort
SELECT col1 + col1 * ( - col0 * - col0 ) FROM tab2
----
106114
1550
359015
onlyif mysql # use DIV operator for integer division
query I rowsort label-9145
SELECT - col1 * cor0.col0 + 11 DIV col1 AS col2 FROM tab2 AS cor0
----
-1343
-217
-4602
skipif mysql # not compatible
query I rowsort label-9145
SELECT - col1 * cor0.col0 + 11 / col1 AS col2 FROM tab2 AS cor0
----
-1343
-217
-4602
onlyif mysql # use DIV operator for integer division
query I rowsort label-9146
SELECT ALL + 61 DIV col2 FROM tab0 AS cor0
----
0
1
61
skipif mysql # not compatible
query I rowsort label-9146
SELECT ALL + 61 / col2 FROM tab0 AS cor0
----
0
1
61
query I rowsort
SELECT ALL + + 85 * col0 * + 7 + 89 FROM tab2 AS cor0
----
4254
46499
47094
onlyif mysql # use DIV operator for integer division
query I rowsort label-9148
SELECT DISTINCT - - col1 * - col0 + - col0 + - col2 DIV 61 FROM tab2 AS cor0
----
-1422
-224
-4680
skipif mysql # not compatible
query I rowsort label-9148
SELECT DISTINCT - - col1 * - col0 + - col0 + - col2 / 61 FROM tab2 AS cor0
----
-1422
-224
-4680
query I rowsort
SELECT DISTINCT - - col0 + 8 * + col1 FROM tab2 AS cor0
----
215
255
550
query I rowsort
SELECT DISTINCT + cor0.col0 * col1 - - 54 AS col1 FROM tab1 cor0
----
1094
132
694
query I rowsort
SELECT + col2 + - ( col2 ) * + col2 AS col2 FROM tab1 AS cor0
----
-2862
-3192
-9120
onlyif mysql # use DIV operator for integer division
query I rowsort label-9152
SELECT ALL + col0 - + col2 DIV - cor0.col0 AS col2 FROM tab0 AS cor0
----
25
35
89
skipif mysql # not compatible
query I rowsort label-9152
SELECT ALL + col0 - + col2 / - cor0.col0 AS col2 FROM tab0 AS cor0
----
25
35
89
query I rowsort
SELECT DISTINCT + col2 + + 92 * 2 FROM tab2 AS cor0
----
210
211
222
query I rowsort
SELECT ALL - cor0.col0 + - ( + col2 ) * - col0 FROM tab1 cor0
----
159
3584
7600
query I rowsort
SELECT ALL col1 + col0 + + cor0.col2 AS col2 FROM tab1 AS cor0
----
131
189
83
query I rowsort
SELECT ALL - - col2 * 1 FROM tab1 cor0
----
54
57
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-9157
SELECT ALL + cor0.col1 + 22 * col2 DIV col1 AS col2 FROM tab0 AS cor0
----
110
94
97
skipif mysql # not compatible
query I rowsort label-9157
SELECT ALL + cor0.col1 + 22 * col2 / col1 AS col2 FROM tab0 AS cor0
----
110
94
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 * - col2 col2 FROM tab0 AS cor0
----
-1
-1089
-6724
query I rowsort
SELECT DISTINCT col1 + - col0 * cor0.col0 AS col2 FROM tab2 AS cor0
----
-18
-6025
-6224
query I rowsort
SELECT + cor0.col2 * ( 24 * + col2 ) AS col0 FROM tab2 AS cor0
----
16224
17496
34656
query I rowsort
SELECT + - col2 * col2 * + col1 AS col1 FROM tab0 AS cor0
----
-611884
-93654
-97
query I rowsort
SELECT + - cor0.col2 + + cor0.col0 * col2 AS col1 FROM tab0 AS cor0
----
34
7216
759
query I rowsort
SELECT 45 * + 12 AS col1 FROM tab1 AS cor0
----
540
540
540
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9164
SELECT + CAST( cor0.col1 AS SIGNED ) * + col0 * 56 FROM tab0 AS cor0
----
115584
190120
453544
skipif mysql # not compatible
query I rowsort label-9164
SELECT + CAST ( cor0.col1 AS INTEGER ) * + col0 * 56 FROM tab0 AS cor0
----
115584
190120
453544
query I rowsort
SELECT DISTINCT - col2 * - 8 AS col2 FROM tab1
----
432
456
768
query I rowsort
SELECT DISTINCT + col2 * 16 FROM tab1
----
1536
864
912
query I rowsort
SELECT 34 AS col0 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 4e2ca147a59e0d5661c28cf3e5431caa
query I rowsort
SELECT + + col1 + cor0.col0 AS col1 FROM tab2 cor0
----
137
38
96
query I rowsort
SELECT + 30 + + col2 * 12 AS col0 FROM tab0 AS cor0
----
1014
42
426
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 14 * - col1 col1 FROM tab1 AS cor0
----
-140
-182
-364
query I rowsort
SELECT + + col1 * + col0 * + ( col1 ) AS col1 FROM tab1 AS cor0
----
13520
2028
6400
query I rowsort
SELECT ALL 84 * + col1 AS col2 FROM tab0 AS cor0
----
7224
7644
8148
query I rowsort
SELECT + col0 + col0 * 86 FROM tab0 AS cor0
----
2088
3045
7743
query I rowsort
SELECT ALL col2 + + 24 FROM tab1
----
120
78
81
onlyif mysql # use DIV operator for integer division
query I rowsort label-9175
SELECT DISTINCT - 35 + col1 DIV col0 FROM tab1
----
-27
-35
skipif mysql # not compatible
query I rowsort label-9175
SELECT DISTINCT - 35 + col1 / col0 FROM tab1
----
-27
-35
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( 49 ) col0 FROM tab0, tab1, tab1 cor0
----
27 values hashing to a40d8754a5be3ce2309c61bfd3e00197
query I rowsort
SELECT + tab0.col0 * + 72 AS col1 FROM tab0
----
1728
2520
6408
query I rowsort
SELECT + + cor0.col0 + col1 * 21 FROM tab2 cor0
----
1317
436
658
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9179
SELECT + tab2.col1 + - tab2.col0 * - col0 * + CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9179
SELECT + tab2.col1 + - tab2.col0 * - col0 * + CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + col1 + + 26 AS col1 FROM tab0
----
112
117
123
query I rowsort
SELECT + - 52 FROM tab2 cor0
----
-52
-52
-52
query I rowsort
SELECT ALL + tab2.col0 * + col0 AS col1 FROM tab2
----
49
6084
6241
query I rowsort
SELECT col0 * - col2 + - col0 + col1 FROM tab1 cor0
----
-139
-3702
-7747
onlyif mysql # use DIV operator for integer division
query I rowsort label-9184
SELECT col2 * + col1 DIV - col1 FROM tab2 AS cor0
----
-26
-27
-38
skipif mysql # not compatible
query I rowsort label-9184
SELECT col2 * + col1 / - col1 FROM tab2 AS cor0
----
-26
-27
-38
query I rowsort
SELECT + col1 + col1 - cor0.col2 * col2 AS col0 FROM tab1 cor0
----
-2864
-3229
-9190
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 * col0 + + cor0.col2 col1 FROM tab2 AS cor0
----
1381
244
4628
query I rowsort
SELECT - col2 + cor0.col2 - + col2 * col0 FROM tab2 AS cor0
----
-189
-2028
-3002
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - tab0.col1 + col0 col1 FROM tab0
----
-2
-62
query I rowsort
SELECT ALL + col1 + + col1 * - col1 AS col1 FROM tab1
----
-156
-650
-90
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + + col1 * col1 col2 FROM tab0 AS cor0
----
7429
8363
9410
onlyif mysql # use DIV operator for integer division
query I rowsort label-9191
SELECT ALL col0 + col0 DIV - col0 col1 FROM tab0 AS cor0
----
23
34
88
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9191
SELECT ALL col0 + col0 / - col0 col1 FROM tab0 AS cor0
----
23
34
88
query I rowsort
SELECT DISTINCT cor0.col0 * col1 * col1 FROM tab0 AS cor0
----
177504
329315
737009
query I rowsort
SELECT ALL - tab0.col0 * + col0 * col1 FROM tab0 WHERE NOT ( - col0 ) IN ( + col2 * col0 )
----
-118825
-49536
-720811
query I rowsort
SELECT DISTINCT tab1.col0 AS col2 FROM tab1 WHERE + col2 * col2 <= NULL
----
query I rowsort
SELECT ALL + col0 * col2 - col2 FROM tab0
----
34
7216
759
onlyif mysql # use DIV operator for integer division
query I rowsort label-9196
SELECT ALL col2 + - col1 DIV col0 AS col0 FROM tab0
----
-1
30
81
skipif mysql # not compatible
query I rowsort label-9196
SELECT ALL col2 + - col1 / col0 AS col0 FROM tab0
----
-1
30
81
query III rowsort
SELECT * FROM tab1 WHERE ( NULL ) <= - col0
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * col0 + col2 * - tab1.col1 + col2 col2 FROM tab1 WHERE NOT ( - col2 ) NOT IN ( col0 )
----
query I rowsort
SELECT + col1 * + tab0.col1 AS col2 FROM tab0
----
7396
8281
9409
query I rowsort
SELECT col2 + + col0 - tab2.col0 FROM tab2
----
26
27
38
query I rowsort
SELECT ALL col0 * col1 - tab0.col2 * col1 FROM tab0 WHERE NOT NULL <= col1
----
query I rowsort
SELECT ALL + tab0.col0 - tab0.col1 AS col2 FROM tab0
----
-2
-62
-62
query I rowsort
SELECT DISTINCT - col0 + + col1 * col1 AS col1 FROM tab1
----
36
673
89
query I rowsort
SELECT col0 + col0 * + col2 * col0 FROM tab1
----
233536
489
614480
query I rowsort
SELECT DISTINCT col1 + - col1 * + col1 FROM tab0
----
-7310
-8190
-9312
query I rowsort
SELECT + col2 * - col1 * - col1 FROM tab2 WHERE NULL = col1
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 70 - cor0.col2 col1 FROM tab2 AS cor0
----
-108
-96
-97
query I rowsort
SELECT + 4 FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to 730dff78e83112374961ea711f98ebaa
query I rowsort
SELECT DISTINCT - col2 + col0 AS col0 FROM tab1 cor0
----
-16
-51
7
query I rowsort
SELECT - 0 FROM tab0 cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + + col2 * cor0.col2 col0 FROM tab0 AS cor0 WHERE ( + col2 ) = col2 * col1 / + col1
----
1122
2
6806
query I rowsort
SELECT DISTINCT col0 + - col1 + col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT IN ( col0 )
----
query I rowsort
SELECT - col0 * + col0 * col2 AS col2 FROM tab2 AS cor0
----
-1323
-158184
-237158
query I rowsort
SELECT ALL col2 FROM tab2 WHERE NOT col0 + + col2 <> ( NULL )
----
query III rowsort
SELECT ALL * FROM tab2 WHERE NULL IN ( tab2.col0 )
----
query I rowsort
SELECT col0 + - col2 + - col1 AS col0 FROM tab2
----
-51
-7
24
query I rowsort
SELECT ALL - col0 - + col2 * + col1 AS col1 FROM tab2
----
-1612
-725
-844
query I rowsort
SELECT ALL + col2 - tab2.col2 FROM tab2
----
0
0
0
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( col1 ) BETWEEN - tab1.col2 AND NULL
----
query I rowsort
SELECT ALL col2 - - col0 FROM tab2
----
104
117
34
onlyif mysql # use DIV operator for integer division
query I rowsort label-9221
SELECT col0 + tab0.col0 DIV + col2 FROM tab0
----
24
70
90
skipif mysql # not compatible
query I rowsort label-9221
SELECT col0 + tab0.col0 / + col2 FROM tab0
----
24
70
90
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( col0 ) = NULL
----
query I rowsort
SELECT DISTINCT - col1 + - col0 * tab2.col1 AS col2 FROM tab2
----
-1360
-248
-4661
query I rowsort
SELECT ALL + 96 * + col1 AS col0 FROM tab2 AS cor0
----
1632
2976
5664
query I rowsort
SELECT 45 AS col1 FROM tab2 AS cor0
----
45
45
45
query I rowsort
SELECT DISTINCT 3 + col2 * + col1 AS col2 FROM tab2 AS cor0
----
1537
649
840
query I rowsort
SELECT + ( + col0 + + col1 ) FROM tab1
----
29
74
93
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 52 col1 FROM tab0
----
-52
-52
-52
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9229
SELECT DISTINCT - col0 + - col0 * - CAST( 10 AS SIGNED ) FROM tab2 AS cor0
----
63
702
711
skipif mysql # not compatible
query I rowsort label-9229
SELECT DISTINCT - col0 + - col0 * - CAST ( 10 AS INTEGER ) FROM tab2 AS cor0
----
63
702
711
query I rowsort
SELECT ALL - col1 + + col1 * ( + 32 + col1 ) * - col2 AS col1 FROM tab1 AS cor0
----
-23950
-56173
-81458
query I rowsort
SELECT 45 * cor0.col2 FROM tab2 AS cor0
----
1170
1215
1710
query I rowsort
SELECT 76 + col0 * + 44 AS col2 FROM tab2
----
3508
3552
384
query I rowsort
SELECT - 7 + - col1 FROM tab1
----
-17
-20
-33
query I rowsort
SELECT DISTINCT + 66 AS col1 FROM tab1
----
66
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9235
SELECT + col0 + - CAST( 53 AS SIGNED ) + col0 AS col0 FROM tab1
----
-47
107
75
skipif mysql # not compatible
query I rowsort label-9235
SELECT + col0 + - CAST ( 53 AS INTEGER ) + col0 AS col0 FROM tab1
----
-47
107
75
query I rowsort
SELECT + col2 - col2 * 8 FROM tab1
----
-378
-399
-672
query I rowsort
SELECT DISTINCT cor1.col2 AS col1 FROM tab1, tab0 AS cor0, tab1 cor1
----
54
57
96
query I rowsort
SELECT DISTINCT col1 * - 82 + col1 FROM tab0 AS cor0
----
-6966
-7371
-7857
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - ( - 62 ) + col1 * - CAST ( col1 AS REAL ) * - col0 FROM tab0 AS cor0
----
177566
329377
737071
query I rowsort
SELECT ALL - + ( - col2 ) + - col2 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT ALL - col0 + - tab0.col2 AS col2 FROM tab0
----
-171
-36
-57
query I rowsort
SELECT ALL - col2 * - 91 + - tab1.col1 * col1 FROM tab1
----
4238
5087
8567
query I rowsort
SELECT DISTINCT col2 * - col0 + - ( + col0 ) FROM tab2
----
-196
-2106
-3081
onlyif mysql # use DIV operator for integer division
query I rowsort label-9244
SELECT ALL - col1 DIV + col2 + tab0.col0 * + col1 FROM tab0
----
2062
3298
8098
skipif mysql # not compatible
query I rowsort label-9244
SELECT ALL - col1 / + col2 + tab0.col0 * + col1 FROM tab0
----
2062
3298
8098
query I rowsort
SELECT - cor0.col2 + cor1.col2 + tab0.col0 AS col1 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 2fbd1c53c3ec95338d327d03287d1acd
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9246
SELECT ALL + CAST( + col0 AS SIGNED ) + col2 * 35 AS col1 FROM tab1 cor0
----
1893
2059
3440
skipif mysql # not compatible
query I rowsort label-9246
SELECT ALL + CAST ( + col0 AS INTEGER ) + col2 * 35 AS col1 FROM tab1 cor0
----
1893
2059
3440
query I rowsort
SELECT DISTINCT - ( ( - cor0.col0 ) ) * + 47 FROM tab2 AS cor0
----
329
3666
3713
query I rowsort
SELECT ALL - col1 + 45 FROM tab1 AS cor0
----
19
32
35
query I rowsort
SELECT - cor0.col1 + 31 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 097bcc3fdbfa313cfe42737379b42efa
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + - col2 * col0 col0 FROM tab0 AS cor0
----
-34
-7216
-759
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * - 6 col0 FROM tab2 AS cor0
----
156
162
228
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 99 + 66 col0 FROM tab0 AS cor0
----
165
165
165
query I rowsort
SELECT DISTINCT + + col2 * + cor0.col1 * col1 + - col0 + + col1 FROM tab1 AS cor0
----
16157
36527
5646
query I rowsort
SELECT + col1 * col1 + + col1 AS col1 FROM tab1 AS cor0
----
110
182
702
query I rowsort
SELECT 96 * col0 FROM tab1 AS cor0
----
288
6144
7680
query I rowsort
SELECT ALL + 97 + - col2 FROM tab1 AS cor0
----
1
40
43
query I rowsort
SELECT DISTINCT - 96 - col1 * - col0 FROM tab1 AS cor0
----
-18
544
944
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9258
SELECT ALL + CAST( NULL AS SIGNED ) * - col2 AS col0 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9258
SELECT ALL + CAST ( NULL AS INTEGER ) * - col2 AS col0 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT - + col1 + 62 AS col1 FROM tab1 AS cor0
----
36
49
52
query I rowsort
SELECT ALL - ( 13 ) + col1 AS col1 FROM tab0 AS cor0
----
73
78
84
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + - col0 * + cor0.col2 col0 FROM tab0 AS cor0
----
-36
-7380
-825
query I rowsort
SELECT 0 * - cor0.col0 AS col0 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT ALL - + 13 + cor0.col1 AS col2 FROM tab1 AS cor0
----
-3
0
13
query I rowsort
SELECT DISTINCT + 76 * + col2 + - col0 AS col2 FROM tab0 AS cor0
----
2484
41
6143
query I rowsort
SELECT + col0 + col0 * - col2 AS col2 FROM tab0 AS cor0
----
-7209
-768
0
query I rowsort
SELECT + + 30 * col1 FROM tab0 AS cor0
----
2580
2730
2910
query I rowsort
SELECT col1 * - col2 + + cor0.col2 * col2 AS col1 FROM tab1 AS cor0
----
1512
2679
7968
query I rowsort
SELECT - col1 * cor0.col1 * - 25 AS col2 FROM tab0 cor0
----
184900
207025
235225
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9269
SELECT ALL - col0 * CAST( NULL AS SIGNED ) / col2 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9269
SELECT ALL - col0 * CAST ( NULL AS INTEGER ) / col2 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-9270
SELECT - col1 + 24 DIV + 31 + - cor0.col0 col1 FROM tab2 AS cor0
----
-137
-38
-96
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9270
SELECT - col1 + 24 / + 31 + - cor0.col0 col1 FROM tab2 AS cor0
----
-137
-38
-96
query I rowsort
SELECT DISTINCT - col2 + 33 AS col2 FROM tab1 AS cor0
----
-21
-24
-63
query I rowsort
SELECT col1 * col2 * 44 FROM tab0 AS cor0
----
124872
328328
4268
query I rowsort
SELECT col2 * - 54 FROM tab1 AS cor0
----
-2916
-3078
-5184
query I rowsort
SELECT col2 - - tab2.col1 * - col2 AS col2 FROM tab2
----
-1508
-608
-810
query I rowsort
SELECT ALL + col2 * - 38 + - col2 AS col1 FROM tab2 AS cor0
----
-1014
-1053
-1482
query I rowsort
SELECT col2 - + ( - col1 ) FROM tab1 AS cor0
----
109
67
80
query I rowsort
SELECT DISTINCT + col1 + - col2 * + cor0.col0 AS col1 FROM tab1 cor0
----
-136
-3638
-7667
query I rowsort
SELECT + + col2 - cor0.col0 FROM tab2 AS cor0
----
-41
-52
20
query I rowsort
SELECT ALL - col1 * 12 AS col0 FROM tab0 AS cor0
----
-1032
-1092
-1164
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9280
SELECT + + col2 - CAST( ( + col2 ) AS SIGNED ) FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-9280
SELECT + + col2 - CAST ( ( + col2 ) AS INTEGER ) FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT ALL + 78 FROM tab2, tab2 cor0
----
9 values hashing to 2aff42d3e015022a738905090a20dfd4
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9282
SELECT - CAST( NULL AS DECIMAL ) + + 64 AS col2 FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9282
SELECT - CAST ( NULL AS REAL ) + + 64 AS col2 FROM tab0 cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + 10 col2 FROM tab0
----
34
45
99
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0, tab1 cor1, tab1, tab1 cor2
----
3645 values hashing to 93e5b836e3f52f458344e73ebce589b5
onlyif mysql # use DIV operator for integer division
query I rowsort label-9285
SELECT + col0 DIV 58 AS col1 FROM tab2
----
0
1
1
skipif mysql # not compatible
query I rowsort label-9285
SELECT + col0 / 58 AS col1 FROM tab2
----
0
1
1
query I rowsort
SELECT ALL + tab0.col1 + col0 + - tab0.col2 FROM tab0
----
131
77
98
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab0.col0 + 87 col0 FROM tab0
----
111
122
176
query I rowsort
SELECT + col2 + 42 AS col0 FROM tab0 AS cor0
----
124
43
75
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 84 col2 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to e8cd683fe8cea77b4326d9b80f21c74a
query I rowsort
SELECT col2 * ( col0 ) AS col1 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT + cor0.col0 - col2 AS col2 FROM tab1 AS cor0
----
-16
-51
7
query I rowsort
SELECT DISTINCT + 47 + 43 AS col0 FROM tab1 AS cor0
----
90
query I rowsort
SELECT + + col1 * cor0.col2 * col0 - col2 FROM tab1 AS cor0
----
36423
4158
99744
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + - col2 col0 FROM tab2 AS cor0
----
-55
-58
-85
query I rowsort
SELECT + 70 - - 90 AS col2 FROM tab1 AS cor0
----
160
160
160
query I rowsort
SELECT + cor0.col1 + + ( + col0 ) FROM tab1 AS cor0
----
29
74
93
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9297
SELECT - CAST( NULL AS SIGNED ) * - col1 AS col2 FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9297
SELECT - CAST ( NULL AS INTEGER ) * - col1 AS col2 FROM tab2 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - tab0.col2 AS col1 FROM tab0, tab1, tab0 cor0
----
27 values hashing to 6a43e7f15194af73fe1c83385e6ebebc
query I rowsort
SELECT ALL + col1 * - 94 - - cor0.col1 FROM tab1 AS cor0
----
-1209
-2418
-930
query I rowsort
SELECT ALL - col2 + 58 * cor0.col0 AS col1 FROM tab1 AS cor0
----
120
3655
4544
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9301
SELECT DISTINCT + + CAST( NULL AS SIGNED ) * + 42 + col1 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-9301
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) * + 42 + col1 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT col1 * 7 FROM tab0 cor0
----
602
637
679
query I rowsort
SELECT ALL + col0 + 48 * col2 - + ( col2 ) AS col0 FROM tab2 AS cor0
----
1276
1300
1865
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9304
SELECT ALL - + CAST( col2 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-54
-57
-96
skipif mysql # not compatible
query I rowsort label-9304
SELECT ALL - + CAST ( col2 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-54
-57
-96
query I rowsort
SELECT - 7 + + cor0.col1 AS col0 FROM tab1 AS cor0
----
19
3
6
query I rowsort
SELECT DISTINCT 93 + - col2 FROM tab1 AS cor0
----
-3
36
39
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 * col2 + ( col0 ) * cor0.col2 col2 FROM tab2 AS cor0
----
378
4056
6004
onlyif mysql # use DIV operator for integer division
query I rowsort label-9308
SELECT 1 DIV col2 FROM tab0 AS cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-9308
SELECT 1 / col2 FROM tab0 AS cor0
----
0
0
1
query I rowsort
SELECT - col1 * col0 + - ( 12 ) * cor0.col1 FROM tab2 AS cor0
----
-1547
-5310
-589
query I rowsort
SELECT cor0.col0 * + col0 * + ( col1 ) + col0 FROM tab0 AS cor0
----
118860
49560
720900
query I rowsort
SELECT ALL - 22 + col1 FROM tab0 cor0
----
64
69
75
query I rowsort
SELECT col1 + col2 + col2 * + cor0.col0 AS col1 FROM tab2 AS cor0
----
2113
247
3057
onlyif mysql # use DIV operator for integer division
query I rowsort label-9313
SELECT - col2 DIV ( - 16 ) FROM tab0 AS cor0
----
0
2
5
skipif mysql # not compatible
query I rowsort label-9313
SELECT - col2 / ( - 16 ) FROM tab0 AS cor0
----
0
2
5
query I rowsort
SELECT DISTINCT + - col2 + ( col0 ) AS col2 FROM tab1 AS cor0
----
-16
-51
7
query I rowsort
SELECT - col1 * + 89 FROM tab0 cor0
----
-7654
-8099
-8633
query I rowsort
SELECT col1 + - 69 FROM tab1 AS cor0
----
-43
-56
-59
query I rowsort
SELECT ALL 90 * + col2 * + col1 AS col1 FROM tab1
----
112320
126360
51300
query I rowsort
SELECT - tab2.col2 * col0 - col1 AS col2 FROM tab2
----
-2087
-220
-3019
query I rowsort
SELECT - col1 + + 57 + - col0 FROM tab2 cor0
----
-39
-80
19
query I rowsort
SELECT ALL - + cor0.col2 * col2 AS col1 FROM tab1 AS cor0
----
-2916
-3249
-9216
query I rowsort
SELECT DISTINCT - + col1 + - 1 * ( + cor0.col1 ) FROM tab0 AS cor0
----
-172
-182
-194
query I rowsort
SELECT DISTINCT - col0 * 55 FROM tab2 AS cor0
----
-385
-4290
-4345
query I rowsort
SELECT DISTINCT - 21 FROM tab2, tab1, tab0 AS cor0
----
-21
query I rowsort
SELECT DISTINCT - col1 * - col1 + col0 FROM tab0
----
7420
8370
9444
query I rowsort
SELECT - col2 + - ( - col1 * col2 + cor0.col2 ) FROM tab1 AS cor0
----
1056
1296
456
query I rowsort
SELECT + col2 + - ( 75 ) FROM tab0
----
-42
-74
7
query I rowsort
SELECT + col1 - - col0 * - 25 * - col0 AS col2 FROM tab2
----
1256
152159
156042
query I rowsort
SELECT ALL col1 * + 36 * col1 + col2 FROM tab2 AS cor0
----
10442
125342
34623
onlyif mysql # use DIV operator for integer division
query I rowsort label-9329
SELECT ALL - col0 DIV + 62 FROM tab0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-9329
SELECT ALL - col0 / + 62 FROM tab0
----
-1
0
0
query I rowsort
SELECT DISTINCT - cor0.col2 * - cor0.col0 * col0 FROM tab1 cor0
----
233472
486
614400
query I rowsort
SELECT ALL - + col1 * col0 + col1 AS col0 FROM tab1 AS cor0
----
-1027
-52
-630
query I rowsort
SELECT DISTINCT - col1 - col0 AS col2 FROM tab2 cor0
----
-137
-38
-96
query I rowsort
SELECT ALL 21 AS col2 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 312c166f4dc412730c43555105b1f44b
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab2 AS cor0 CROSS JOIN tab0, tab2 cor1
----
972 values hashing to 42e69ecdafb3c81046bc5cb4c98b1666
query I rowsort
SELECT DISTINCT col0 * col1 + col1 * tab2.col1 AS col0 FROM tab2
----
1178
1632
8083
query I rowsort
SELECT - tab0.col1 * - col2 + 28 - col2 FROM tab0
----
124
2833
7408
query I rowsort
SELECT ALL col1 * - col0 + - col2 FROM tab2 AS cor0
----
-1381
-244
-4628
query I rowsort
SELECT ALL + cor0.col2 - - col0 AS col1 FROM tab0 AS cor0
----
171
36
57
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col2 + - col1 + 58 col2 FROM tab1 AS cor0
----
-22
-51
-9
query I rowsort
SELECT DISTINCT + col0 * - cor0.col0 + - 13 + + col0 AS col2 FROM tab2 AS cor0
----
-55
-6019
-6175
onlyif mysql # use DIV operator for integer division
query I rowsort label-9341
SELECT DISTINCT - - col2 DIV ( cor0.col0 ) FROM tab0 AS cor0
----
0
1
skipif mysql # not compatible
query I rowsort label-9341
SELECT DISTINCT - - col2 / ( cor0.col0 ) FROM tab0 AS cor0
----
0
1
query I rowsort
SELECT DISTINCT - + col2 + + 85 * - col1 FROM tab0 AS cor0
----
-7343
-7817
-8246
query I rowsort
SELECT + ( col2 ) + - col1 * - col2 AS col0 FROM tab1 AS cor0
----
1344
1458
627
query I rowsort
SELECT ALL + - col2 * 70 AS col0 FROM tab1 AS cor0
----
-3780
-3990
-6720
query I rowsort
SELECT col2 * - 96 * col1 + 45 + col1 * + cor0.col0 FROM tab1 AS cor0
----
-118723
-134661
-54035
query I rowsort
SELECT col0 * col2 + - col0 * ( + col1 ) FROM tab0 AS cor0
----
-1272
-3360
-801
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9347
SELECT CAST( 88 AS SIGNED ) FROM tab1 AS cor0
----
88
88
88
skipif mysql # not compatible
query I rowsort label-9347
SELECT CAST ( 88 AS INTEGER ) FROM tab1 AS cor0
----
88
88
88
query I rowsort
SELECT DISTINCT - ( + 65 ) * cor0.col0 FROM tab1 AS cor0
----
-195
-4160
-5200
onlyif mysql # use DIV operator for integer division
query I rowsort label-9349
SELECT + 85 DIV - col2 FROM tab0 AS cor0
----
-1
-2
-85
skipif mysql # not compatible
query I rowsort label-9349
SELECT + 85 / - col2 FROM tab0 AS cor0
----
-1
-2
-85
query I rowsort
SELECT ALL + ( + col2 ) * + col2 FROM tab0 cor0
----
1
1089
6724
query I rowsort
SELECT - 38 * cor0.col0 * - col1 AS col1 FROM tab1 AS cor0
----
24320
2964
39520
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( col1 ) + - 7 * ( - col1 ) col1 FROM tab1 AS cor0
----
104
208
80
query I rowsort
SELECT DISTINCT 25 FROM tab2, tab2 cor0
----
25
query I rowsort
SELECT DISTINCT - cor0.col1 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-17
-31
-59
query I rowsort
SELECT DISTINCT 15 AS col1 FROM tab2, tab2 cor0
----
15
query I rowsort
SELECT col1 + + 13 FROM tab2 cor0
----
30
44
72
query I rowsort
SELECT ALL + col1 * col0 + 89 AS col0 FROM tab0 AS cor0
----
2153
3484
8188
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0, tab2 AS cor0, tab0 cor1, tab2, tab0 cor2
----
3645 values hashing to c8e4a9d810c83d17322e338b2adc95b6
query I rowsort
SELECT DISTINCT + col0 * - col2 + - 93 FROM tab0 cor0
----
-128
-7391
-885
query I rowsort
SELECT col1 + col2 * ( col0 + - col1 ) FROM tab2 cor0
----
-617
2373
553
query I rowsort
SELECT + 34 * col0 AS col0 FROM tab0
----
1190
3026
816
query I rowsort
SELECT DISTINCT + 79 + cor1.col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
110
138
96
query I rowsort
SELECT DISTINCT + tab1.col0 + + ( - col1 + + col0 * col0 ) AS col0 FROM tab1
----
-14
4150
6467
query I rowsort
SELECT DISTINCT + col2 * col2 + + 7 FROM tab2
----
1451
683
736
query I rowsort
SELECT - cor0.col0 AS col1 FROM tab0, tab1 AS cor0, tab0 cor1
----
27 values hashing to 729c1edda9332398299f39cd174ed840
query I rowsort
SELECT - col0 + 87 * col2 FROM tab2
----
2184
2342
3227
onlyif mysql # use DIV operator for integer division
query I rowsort label-9367
SELECT DISTINCT + col0 + 2 DIV 29 + - col1 col0 FROM tab2
----
-24
19
62
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9367
SELECT DISTINCT + col0 + 2 / 29 + - col1 col0 FROM tab2
----
-24
19
62
query I rowsort
SELECT tab0.col0 * + 20 - + col1 AS col0 FROM tab0
----
1689
394
603
query I rowsort
SELECT ALL + tab0.col2 + 11 * + ( col1 ) + + col2 FROM tab0
----
1012
1069
1165
query I rowsort
SELECT ALL + 49 FROM tab2, tab2 cor0
----
9 values hashing to cb40783c0fff72e8802cdf0682e7cb55
query I rowsort
SELECT DISTINCT + col0 + - ( - ( col0 ) ) + 86 AS col1 FROM tab1
----
214
246
92
query I rowsort
SELECT col2 * 23 FROM tab0
----
1886
23
759
query I rowsort
SELECT - - col0 + + cor0.col0 * col2 FROM tab1 AS cor0
----
165
3712
7760
query I rowsort
SELECT - col2 * - col2 + - col0 AS col2 FROM tab2 AS cor0
----
1365
598
722
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * col2 + + col0 col0 FROM tab0
----
70
7387
816
query I rowsort
SELECT + 53 AS col1 FROM tab2 AS cor0
----
53
53
53
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9377
SELECT CAST( NULL AS SIGNED ) * + col1 AS col0 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9377
SELECT CAST ( NULL AS INTEGER ) * + col1 AS col0 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT + cor1.col0 AS col0 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83
onlyif mysql # use DIV operator for integer division
query I rowsort label-9379
SELECT DISTINCT col2 + cor0.col2 DIV + col1 AS col0 FROM tab1 AS cor0
----
103
56
62
skipif mysql # not compatible
query I rowsort label-9379
SELECT DISTINCT col2 + cor0.col2 / + col1 AS col0 FROM tab1 AS cor0
----
103
56
62
query I rowsort
SELECT DISTINCT - col1 + col1 * + col1 * col0 AS col1 FROM tab2 cor0
----
22814
271459
6696
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9381
SELECT ALL + col2 * - CAST( - 89 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
2314
2403
3382
skipif mysql # not compatible
query I rowsort label-9381
SELECT ALL + col2 * - CAST ( - 89 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
2314
2403
3382
query I rowsort
SELECT - - col1 + 82 FROM tab1 AS cor0
----
108
92
95
query I rowsort
SELECT DISTINCT - cor0.col2 + + 3 + + col0 FROM tab2 AS cor0
----
-17
44
55
query I rowsort
SELECT ALL - col1 * + cor0.col1 + - col2 AS col1 FROM tab0 AS cor0
----
-7429
-8363
-9410
onlyif mysql # use DIV operator for integer division
query I rowsort label-9385
SELECT col1 DIV + ( + tab2.col1 ) FROM tab2
----
1
1
1
skipif mysql # not compatible
query I rowsort label-9385
SELECT col1 / + ( + tab2.col1 ) FROM tab2
----
1
1
1
query I rowsort
SELECT + - col1 * 59 * cor0.col1 FROM tab0 AS cor0
----
-436364
-488579
-555131
query I rowsort
SELECT - 79 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 1b7b0b34fe3431fb409719624d12791f
query I rowsort
SELECT tab1.col2 * 46 AS col1 FROM tab1
----
2484
2622
4416
query I rowsort
SELECT - 8 FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to 852581644118629bf652b1aa4b8f4363
onlyif mysql # use DIV operator for integer division
query I rowsort label-9390
SELECT DISTINCT ( - col0 ) + col1 DIV + ( - col2 ) + col0 FROM tab0
----
-1
-2
-97
skipif mysql # not compatible
query I rowsort label-9390
SELECT DISTINCT ( - col0 ) + col1 / + ( - col2 ) + col0 FROM tab0
----
-1
-2
-97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 + - cor0.col1 * col1 col1 FROM tab2 AS cor0
----
-3559
-368
-968
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9392
SELECT ALL CAST( NULL AS DECIMAL ) AS col2 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9392
SELECT ALL CAST ( NULL AS REAL ) AS col2 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT 16 + - col0 * + col0 AS col1 FROM tab1
----
-4080
-6384
7
query I rowsort
SELECT DISTINCT - 89 - - col0 * col0 * - col0 FROM tab1 AS cor0
----
-116
-262233
-512089
query I rowsort
SELECT ALL - - cor0.col0 * cor0.col0 AS col1 FROM tab2 AS cor0
----
49
6084
6241
query I rowsort
SELECT ALL + - ( col2 ) + ( 97 ) FROM tab0 cor0
----
15
64
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col2 * - col2 col1 FROM tab1 AS cor0
----
2916
3249
9216
query I rowsort
SELECT - + ( + col2 ) + col0 FROM tab0 cor0
----
-9
34
7
onlyif mysql # use DIV operator for integer division
query I rowsort label-9399
SELECT + col1 * col1 + - col1 DIV - col0 col2 FROM tab1 AS cor0
----
100
169
684
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9399
SELECT + col1 * col1 + - col1 / - col0 col2 FROM tab1 AS cor0
----
100
169
684
query I rowsort
SELECT - - col0 * 19 + + col0 + - col2 * col0 * + col1 FROM tab2 cor0
----
-118092
-49454
-5719
query I rowsort
SELECT + col2 + ( - col0 ) * col1 * + col2 + - col1 FROM tab0 AS cor0
----
-3491
-664127
-68165
query I rowsort
SELECT cor0.col1 * 68 + cor0.col2 + - col0 FROM tab2 AS cor0
----
1115
2128
3960
query I rowsort
SELECT - - col1 + cor0.col1 - col1 AS col2 FROM tab0 AS cor0
----
86
91
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-9404
SELECT - col2 * col2 DIV 4 + + col2 - + col1 FROM tab0 AS cor0
----
-1690
-325
-96
skipif mysql # not compatible
query I rowsort label-9404
SELECT - col2 * col2 / 4 + + col2 - + col1 FROM tab0 AS cor0
----
-1690
-325
-96
query I rowsort
SELECT + col0 + 64 AS col0 FROM tab0 AS cor0
----
153
88
99
query I rowsort
SELECT DISTINCT - 30 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-30
query I rowsort
SELECT 37 + 13 FROM tab0 AS cor0
----
50
50
50
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9408
SELECT + - CAST( - 72 AS SIGNED ) * col0 * - ( - cor0.col0 ) + + col1 FROM tab0 AS cor0
----
41558
570403
88297
skipif mysql # not compatible
query I rowsort label-9408
SELECT + - CAST ( - 72 AS INTEGER ) * col0 * - ( - cor0.col0 ) + + col1 FROM tab0 AS cor0
----
41558
570403
88297
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 + 71 col1 FROM tab2 AS cor0
----
102
130
88
query I rowsort
SELECT ALL ( + col1 ) + - col0 * - 34 * - 15 AS col2 FROM tab0 AS cor0
----
-12154
-17753
-45299
query I rowsort
SELECT DISTINCT + ( - ( col2 ) ) FROM tab0 AS cor0
----
-1
-33
-82
onlyif mysql # use DIV operator for integer division
query I rowsort label-9412
SELECT ALL - - col1 * col0 DIV col1 AS col1 FROM tab2 AS cor0
----
7
78
79
skipif mysql # not compatible
query I rowsort label-9412
SELECT ALL - - col1 * col0 / col1 AS col1 FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT ( 36 + + tab2.col2 ) FROM tab2
----
62
63
74
query I rowsort
SELECT 60 * - 32 + - col1 AS col1 FROM tab2 AS cor0
----
-1937
-1951
-1979
query I rowsort
SELECT col1 * 27 FROM tab2 AS cor0
----
1593
459
837
query I rowsort
SELECT + + col1 * col0 + cor0.col0 AS col0 FROM tab0 AS cor0
----
2088
3430
8188
onlyif mysql # use DIV operator for integer division
query I rowsort label-9417
SELECT DISTINCT - 35 + col2 DIV + col2 FROM tab0 cor0
----
-34
skipif mysql # not compatible
query I rowsort label-9417
SELECT DISTINCT - 35 + col2 / + col2 FROM tab0 cor0
----
-34
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 - ( col1 ) + + col2 col0 FROM tab0 cor0
----
-53
-9
-96
query I rowsort
SELECT + 13 + + cor0.col0 FROM tab2 AS cor0
----
20
91
92
onlyif mysql # use DIV operator for integer division
query I rowsort label-9421
SELECT ALL col1 DIV 57 + col0 * + col0 FROM tab1 cor0
----
4096
6400
9
skipif mysql # not compatible
query I rowsort label-9421
SELECT ALL col1 / 57 + col0 * + col0 FROM tab1 cor0
----
4096
6400
9
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 60 AS col2 FROM tab2 cor0
----
60
60
60
query I rowsort
SELECT ALL + 30 + 5 FROM tab1 cor0
----
35
35
35
query I rowsort
SELECT DISTINCT col2 + - cor0.col0 + col2 FROM tab0 cor0
----
-33
42
75
query I rowsort
SELECT - + cor0.col1 + col0 AS col1 FROM tab0 AS cor0
----
-2
-62
-62
query I rowsort
SELECT ALL col1 - cor0.col1 AS col0 FROM tab0 AS cor0
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9428
SELECT + + cor0.col1 * + col2 * CAST( NULL AS SIGNED ) + 78 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9428
SELECT + + cor0.col1 * + col2 * CAST ( NULL AS INTEGER ) + 78 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - 61 * - tab0.col1 + tab0.col2 FROM tab0
----
5279
5633
5918
query I rowsort
SELECT + + cor1.col2 AS col2 FROM tab0, tab2 cor0, tab2, tab0 AS cor1
----
81 values hashing to e938777ebffc2e3e9c0cdfaa4f732c05
query I rowsort
SELECT DISTINCT col2 * - 46 FROM tab0 AS cor0
----
-1518
-3772
-46
query I rowsort
SELECT ALL cor0.col0 + - 98 FROM tab2 AS cor0
----
-19
-20
-91
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9433
SELECT DISTINCT - - col1 * CAST( + col0 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
1343
217
4602
skipif mysql # not compatible
query I rowsort label-9433
SELECT DISTINCT - - col1 * CAST ( + col0 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT ALL + col1 * ( 32 ) FROM tab2 AS cor0
----
1888
544
992
query I rowsort
SELECT ALL col1 + + ( col1 ) * + col2 - col2 FROM tab2
----
1567
625
841
query I rowsort
SELECT - col2 - 1 FROM tab0
----
-2
-34
-83
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9437
SELECT DISTINCT - col0 - + CAST( - 45 + - col1 AS SIGNED ) * col2 FROM tab0
----
107
11063
4299
skipif mysql # not compatible
query I rowsort label-9437
SELECT DISTINCT - col0 - + CAST ( - 45 + - col1 AS INTEGER ) * col2 FROM tab0
----
107
11063
4299
query I rowsort
SELECT DISTINCT col2 - + 61 AS col0 FROM tab0
----
-28
-60
21
query I rowsort
SELECT - col0 * + ( - col0 ) - cor0.col1 * - 56 FROM tab1 AS cor0
----
1465
4656
7128
query I rowsort
SELECT - - col0 - - col1 FROM tab2 AS cor0
----
137
38
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-9441
SELECT tab1.col0 DIV ( 33 ) AS col1 FROM tab1
----
0
1
2
skipif mysql # not compatible
query I rowsort label-9441
SELECT tab1.col0 / ( 33 ) AS col1 FROM tab1
----
0
1
2
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9442
SELECT DISTINCT - col2 - + CAST( + col1 AS SIGNED ) * - col1 AS col2 FROM tab1
----
43
622
73
skipif mysql # not compatible
query I rowsort label-9442
SELECT DISTINCT - col2 - + CAST ( + col1 AS INTEGER ) * - col1 AS col2 FROM tab1
----
43
622
73
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 91 col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
91
onlyif mysql # use DIV operator for integer division
query I rowsort label-9444
SELECT DISTINCT - 61 DIV + col1 AS col2 FROM tab0 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-9444
SELECT DISTINCT - 61 / + col1 AS col2 FROM tab0 AS cor0
----
0
query I rowsort
SELECT cor0.col1 * - col1 + - ( col1 ) + col0 AS col0 FROM tab2 AS cor0
----
-227
-3462
-985
query I rowsort
SELECT - - col0 + col2 * 56 + col1 * + col1 FROM tab2 AS cor0
----
2480
2496
5015
query I rowsort
SELECT DISTINCT 61 * col2 + col1 FROM tab1 AS cor0
----
3320
3487
5869
query I rowsort
SELECT ALL + - 23 AS col1 FROM tab1 AS cor0
----
-23
-23
-23
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9449
SELECT - col1 * + col1 * - CAST( 71 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
525116
587951
668039
skipif mysql # not compatible
query I rowsort label-9449
SELECT - col1 * + col1 * - CAST ( 71 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
525116
587951
668039
query I rowsort
SELECT col1 + col2 * + ( col0 ) * - col1 + cor0.col0 * col2 AS col2 FROM tab2 AS cor0
----
-117565
-48015
-5639
query I rowsort
SELECT DISTINCT - - 27 * - col2 FROM tab0 AS cor0
----
-2214
-27
-891
query I rowsort
SELECT col0 * col1 + ( 81 ) FROM tab1 cor0
----
1121
159
721
query I rowsort
SELECT DISTINCT + + 90 * cor0.col0 AS col0 FROM tab1 AS cor0
----
270
5760
7200
query I rowsort
SELECT DISTINCT - + 92 AS col1 FROM tab1 AS cor0
----
-92
query I rowsort
SELECT + - 9 + + cor0.col1 AS col1 FROM tab0 AS cor0
----
77
82
88
query I rowsort
SELECT DISTINCT - col0 * - 22 FROM tab2 AS cor0
----
154
1716
1738
query I rowsort
SELECT - 99 * 95 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 130ac5e04573ec6997eed1e592b24212
query I rowsort
SELECT ALL + + cor0.col1 * + col0 + + col1 AS col1 FROM tab1 AS cor0
----
104
1053
650
onlyif mysql # use DIV operator for integer division
query I rowsort label-9459
SELECT - col2 + 89 DIV col2 FROM tab1 AS cor0
----
-53
-56
-96
skipif mysql # not compatible
query I rowsort label-9459
SELECT - col2 + 89 / col2 FROM tab1 AS cor0
----
-53
-56
-96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + col2 * col0 col1 FROM tab2 AS cor0
----
158
1969
2985
query I rowsort
SELECT - - col0 * ( + 22 ) + col2 AS col2 FROM tab1 AS cor0
----
120
1465
1856
query I rowsort
SELECT + + col2 * ( + 97 ) + col2 AS col2 FROM tab2 AS cor0
----
2548
2646
3724
query I rowsort
SELECT ALL + ( - 37 ) AS col1 FROM tab1 AS cor0
----
-37
-37
-37
query I rowsort
SELECT DISTINCT - col1 * + ( cor0.col2 ) FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT - col2 * 78 AS col2 FROM tab0 AS cor0
----
-2574
-6396
-78
query I rowsort
SELECT ALL - 37 AS col2 FROM tab1, tab0 cor0
----
9 values hashing to ed4644af7729c2425ea6cc3d84c6504f
query I rowsort
SELECT DISTINCT - col2 + - col0 * + cor0.col2 FROM tab1 AS cor0
----
-216
-3705
-7776
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 5 col1 FROM tab0 AS cor0
----
5
5
5
query I rowsort
SELECT - - cor0.col0 * + col2 AS col0 FROM tab2 cor0
----
189
2028
3002
query I rowsort
SELECT col2 * + 13 FROM tab0 AS cor0
----
1066
13
429
query I rowsort
SELECT ALL + ( col1 ) * + cor0.col0 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT ALL - - 33 + 21 FROM tab0, tab2, tab2 AS cor0
----
27 values hashing to 81150d59d6c3fc48b4ef5a4a5495bc7a
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 - + col0 col0 FROM tab2
----
-19
-62
24
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9474
SELECT + 93 / col2 + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9474
SELECT + 93 / col2 + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - col0 + + col0 + + col1 AS col2 FROM tab1 cor0
----
10
13
26
query I rowsort
SELECT - 4 * + cor0.col1 AS col0 FROM tab0 AS cor0
----
-344
-364
-388
query I rowsort
SELECT ALL + - col0 * + col2 - - col2 AS col1 FROM tab1 AS cor0
----
-108
-3591
-7584
query I rowsort
SELECT - + col1 + - col1 FROM tab0 cor0
----
-172
-182
-194
query I rowsort
SELECT DISTINCT + 28 + col2 * ( 61 ) AS col0 FROM tab0 AS cor0
----
2041
5030
89
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col1 + col2 * col0 col1 FROM tab0 AS cor0
----
-62
706
7207
onlyif mysql # use DIV operator for integer division
query I rowsort label-9481
SELECT DISTINCT + col2 DIV tab2.col1 FROM tab2
----
0
2
skipif mysql # not compatible
query I rowsort label-9481
SELECT DISTINCT + col2 / tab2.col1 FROM tab2
----
0
2
query I rowsort
SELECT + 7 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 3362c0cb2b2c663037159d0699d46b76
query I rowsort
SELECT + tab0.col1 * - col1 * col1 + col1 AS col0 FROM tab0
----
-635970
-753480
-912576
query I rowsort
SELECT + 46 + + 72 AS col1 FROM tab0
----
118
118
118
query I rowsort
SELECT + col1 + 17 + col2 * + col0 FROM tab0
----
149
7406
895
query I rowsort
SELECT col0 * + tab1.col2 + col0 AS col0 FROM tab1
----
165
3712
7760
query I rowsort
SELECT ALL ( col1 ) * col0 AS col2 FROM tab0
----
2064
3395
8099
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 81 * + col1 col2 FROM tab1 AS cor0
----
-1053
-2106
-810
query I rowsort
SELECT + col0 + + col2 * - col0 FROM tab2 AS cor0
----
-182
-1950
-2923
query I rowsort
SELECT DISTINCT + cor0.col2 AS col1 FROM tab0, tab1 cor0
----
54
57
96
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9491
SELECT DISTINCT col0 * col1 + CAST( col1 * + col0 AS SIGNED ) AS col0 FROM tab1
----
1280
156
2080
skipif mysql # not compatible
query I rowsort label-9491
SELECT DISTINCT col0 * col1 + CAST ( col1 * + col0 AS INTEGER ) AS col0 FROM tab1
----
1280
156
2080
query I rowsort
SELECT ALL - col1 * + col0 + tab2.col0 + col0 AS col1 FROM tab2
----
-1185
-203
-4446
query I rowsort
SELECT DISTINCT 99 AS col1 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
99
query I rowsort
SELECT DISTINCT - 17 * tab2.col2 + + col1 FROM tab2
----
-383
-428
-629
query I rowsort
SELECT col1 - col2 * - 72 AS col0 FROM tab2 AS cor0
----
1931
1975
2753
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9496
SELECT + col2 * + CAST( NULL AS SIGNED ) + + 52 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9496
SELECT + col2 * + CAST ( NULL AS INTEGER ) + + 52 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + + col0 * + col1 + col2 AS col2 FROM tab1 AS cor0
----
1136
132
697
query I rowsort
SELECT + 5 + + col1 FROM tab0
----
102
91
96
query I rowsort
SELECT ALL + ( - col1 + + 48 ) FROM tab2
----
-11
17
31
query I rowsort
SELECT ALL + 49 FROM tab1, tab0 AS cor0
----
9 values hashing to cb40783c0fff72e8802cdf0682e7cb55
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 24 col0 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
24
query I rowsort
SELECT + col0 * 15 AS col1 FROM tab1 AS cor0
----
1200
45
960
query I rowsort
SELECT - + ( + col1 ) + + col1 * cor0.col1 AS col0 FROM tab1 AS cor0
----
156
650
90
query I rowsort
SELECT ALL col2 * - col2 * + tab2.col0 AS col0 FROM tab2
----
-114076
-5103
-52728
query I rowsort
SELECT ALL 29 FROM tab1, tab0 cor0, tab0 cor1
----
27 values hashing to 4c56285992bcb76e1aac22e6d23d1318
query I rowsort
SELECT + col2 * - 94 FROM tab0 AS cor0
----
-3102
-7708
-94
query I rowsort
SELECT DISTINCT + - col0 + 26 FROM tab0 cor0
----
-63
-9
2
query I rowsort
SELECT DISTINCT + 25 * - col2 + col2 AS col2 FROM tab2 AS cor0
----
-624
-648
-912
query I rowsort
SELECT ALL - + 66 * col1 AS col1 FROM tab1 AS cor0
----
-1716
-660
-858
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 47 * + 60 + + col1 * col2 * - 82 col2 FROM tab1 AS cor0
----
-112308
-43920
-99516
onlyif mysql # use DIV operator for integer division
query I rowsort label-9511
SELECT ALL col1 + col1 * - col0 DIV + col0 - col0 AS col2 FROM tab2 AS cor0
----
-7
-78
-79
skipif mysql # not compatible
query I rowsort label-9511
SELECT ALL col1 + col1 * - col0 / + col0 - col0 AS col2 FROM tab2 AS cor0
----
-7
-78
-79
query I rowsort
SELECT - col2 + + col2 * col0 AS col2 FROM tab0 AS cor0
----
34
7216
759
onlyif mysql # use DIV operator for integer division
query I rowsort label-9513
SELECT + col0 + col1 DIV col2 AS col2 FROM tab1 cor0
----
3
64
80
skipif mysql # not compatible
query I rowsort label-9513
SELECT + col0 + col1 / col2 AS col2 FROM tab1 cor0
----
3
64
80
onlyif mysql # use DIV operator for integer division
query I rowsort label-9514
SELECT ALL + - col2 DIV - col1 AS col1 FROM tab0 cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-9514
SELECT ALL + - col2 / - col1 AS col1 FROM tab0 cor0
----
0
0
0
query I rowsort
SELECT ALL - col2 * + cor0.col0 AS col0 FROM tab0 AS cor0
----
-35
-7298
-792
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * col0 * col1 + - tab0.col1 col1 FROM tab0
----
118728
49450
720720
query I rowsort
SELECT ALL - col0 + col1 + + tab1.col2 * col0 AS col1 FROM tab1
----
185
3594
7613
onlyif mysql # use DIV operator for integer division
query I rowsort label-9518
SELECT + col1 + cor0.col0 DIV col2 AS col1 FROM tab1 AS cor0
----
11
13
26
skipif mysql # not compatible
query I rowsort label-9518
SELECT + col1 + cor0.col0 / col2 AS col1 FROM tab1 AS cor0
----
11
13
26
query I rowsort
SELECT - col0 * - col1 + col2 * col1 FROM tab0
----
15561
3492
4902
query I rowsort
SELECT + col1 * col0 + + col1 + col2 AS col2 FROM tab1
----
1149
158
707
query I rowsort
SELECT DISTINCT col0 * - col0 + + col1 FROM tab2
----
-18
-6025
-6224
query I rowsort
SELECT DISTINCT + col2 * - tab2.col2 * + col0 + - tab2.col0 AS col2 FROM tab2
----
-114155
-5110
-52806
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + + col0 * col1 + tab0.col2 col2 FROM tab0
----
2073
3361
8092
query I rowsort
SELECT DISTINCT + 51 * col0 - col0 FROM tab0 AS cor0
----
1200
1750
4450
query I rowsort
SELECT + + col2 + + col0 - - col0 AS col1 FROM tab2 AS cor0
----
182
196
41
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab1.col1 - col1 * col1 col2 FROM tab1
----
-156
-650
-90
query I rowsort
SELECT + col1 + - col0 * col1 FROM tab0 AS cor0
----
-1978
-3298
-8008
query I rowsort
SELECT - 9 - col1 AS col0 FROM tab1
----
-19
-22
-35
query I rowsort
SELECT DISTINCT - col2 * col1 - col2 FROM tab2
----
-1560
-684
-864
query I rowsort
SELECT - col0 - col0 AS col0 FROM tab0 cor0
----
-178
-48
-70
query I rowsort
SELECT + - col2 - + col2 * col2 AS col2 FROM tab2 AS cor0
----
-1482
-702
-756
query I rowsort
SELECT - - 91 * col1 - - col0 AS col2 FROM tab0 AS cor0
----
7850
8370
8862
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col1 + + col0 col1 FROM tab2 cor0
----
137
38
96
query I rowsort
SELECT DISTINCT - col1 * + col2 + col2 + cor0.col0 * col2 FROM tab1 AS cor0
----
-1188
3135
6528
query I rowsort
SELECT - tab0.col1 * col0 + - col0 + col2 AS col1 FROM tab0
----
-2055
-3429
-8106
query I rowsort
SELECT DISTINCT + col0 + - col1 - - col1 * + col1 FROM tab1
----
154
236
653
query I rowsort
SELECT tab1.col0 - col2 * col0 FROM tab1
----
-159
-3584
-7600
query III rowsort
SELECT * FROM tab0 WHERE ( NULL ) IN ( + col1 + col2 )
----
query I rowsort
SELECT ALL - col1 * + col2 AS col1 FROM tab1 WHERE NOT NULL NOT IN ( col0 )
----
query I rowsort
SELECT - col2 AS col2 FROM tab0 WHERE NOT + col1 - - col1 BETWEEN NULL AND NULL
----
query I rowsort
SELECT ALL - tab2.col2 * - col2 AS col0 FROM tab2 WHERE NULL IN ( - col2 + col2 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-9542
SELECT DISTINCT tab1.col2 DIV col1 AS col1 FROM tab1
----
2
5
7
skipif mysql # not compatible
query I rowsort label-9542
SELECT DISTINCT tab1.col2 / col1 AS col1 FROM tab1
----
2
5
7
query I rowsort
SELECT - col0 + col1 * col0 FROM tab0
----
2040
3360
8010
query III rowsort
SELECT * FROM tab1 WHERE ( col2 * + col0 * + col1 ) BETWEEN col1 AND col0
----
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( NULL ) NOT BETWEEN - col0 AND NULL
----
query I rowsort
SELECT ALL - col0 * - col1 + col2 FROM tab1
----
1136
132
697
query I rowsort
SELECT ALL + col1 FROM tab0 WHERE NOT col0 >= NULL
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-9548
SELECT + col0 DIV col1 + col0 * + col0 FROM tab0
----
1225
576
7921
skipif mysql # not compatible
query I rowsort label-9548
SELECT + col0 / col1 + col0 * + col0 FROM tab0
----
1225
576
7921
query I rowsort
SELECT col1 * col0 + + col0 FROM tab2
----
1422
224
4680
query I rowsort
SELECT ALL col0 * tab0.col1 AS col0 FROM tab0 WHERE NOT NULL BETWEEN NULL AND NULL
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-9551
SELECT DISTINCT col2 DIV - tab0.col0 FROM tab0
----
-1
0
skipif mysql # not compatible
query I rowsort label-9551
SELECT DISTINCT col2 / - tab0.col0 FROM tab0
----
-1
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-9552
SELECT ALL - col2 DIV - col0 AS col0 FROM tab1
----
0
1
18
skipif mysql # not compatible
query I rowsort label-9552
SELECT ALL - col2 / - col0 AS col0 FROM tab1
----
0
1
18
query I rowsort
SELECT DISTINCT - col1 * - tab0.col2 + col0 * col2 FROM tab0
----
132
14760
3630
onlyif mysql # use DIV operator for integer division
query I rowsort label-9554
SELECT + + col1 DIV col0 + col0 * cor0.col0 col0 FROM tab1 cor0
----
17
4096
6400
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9554
SELECT + + col1 / col0 + col0 * cor0.col0 col0 FROM tab1 cor0
----
17
4096
6400
query I rowsort
SELECT + - col2 * - col2 * col1 FROM tab0 AS cor0
----
611884
93654
97
query I rowsort
SELECT DISTINCT cor0.col2 - + cor0.col1 * col0 AS col1 FROM tab1 AS cor0
----
-24
-583
-944
query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + col0 <= NULL
----
query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT - col2 <> col2
----
query I rowsort
SELECT DISTINCT + col1 * + tab2.col2 AS col2 FROM tab2
----
1534
646
837
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * col0 + - col0 col2 FROM tab0
----
-70
-7387
-816
query I rowsort
SELECT + tab1.col2 - - col0 FROM tab1
----
121
176
57
query I rowsort
SELECT col1 FROM tab1 WHERE ( + col2 ) IN ( - col0 )
----
query I rowsort
SELECT - col1 * - 66 AS col0 FROM tab0 AS cor0
----
5676
6006
6402
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9564
SELECT - - CAST( NULL AS SIGNED ) * ( + cor0.col0 + + ( - col1 ) ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9564
SELECT - - CAST ( NULL AS INTEGER ) * ( + cor0.col0 + + ( - col1 ) ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9565
SELECT CAST( NULL AS SIGNED ) + col2 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9565
SELECT CAST ( NULL AS INTEGER ) + col2 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9566
SELECT CAST( NULL AS SIGNED ) * - ( col1 ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9566
SELECT CAST ( NULL AS INTEGER ) * - ( col1 ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT 50 AS col2 FROM tab2, tab1 AS cor0 CROSS JOIN tab1, tab0 AS cor1
----
81 values hashing to 6932c991110d256d3f92f3e9538f8040
skipif mysql # not compatible
query I rowsort
SELECT ALL - CAST ( + ( + col2 ) AS REAL ) + - 74 AS col2 FROM tab1
----
-128
-131
-170
query I rowsort
SELECT - - 26 + + col1 + - col1 AS col1 FROM tab2 AS cor0
----
26
26
26
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9570
SELECT ALL + CAST( col1 AS SIGNED ) * cor0.col1 FROM tab1 AS cor0
----
100
169
676
skipif mysql # not compatible
query I rowsort label-9570
SELECT ALL + CAST ( col1 AS INTEGER ) * cor0.col1 FROM tab1 AS cor0
----
100
169
676
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9571
SELECT DISTINCT - - CAST( + 16 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
16
skipif mysql # not compatible
query I rowsort label-9571
SELECT DISTINCT - - CAST ( + 16 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
16
query I rowsort
SELECT ALL + - col2 * 29 + col2 AS col2 FROM tab0 AS cor0
----
-2296
-28
-924
query I rowsort
SELECT - - col2 * + col1 * col2 + col2 * col2 FROM tab2 AS cor0
----
23328
25992
40560
query I rowsort
SELECT - 7 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to ba940cd66e21e94e95aada5f28e1faf5
query I rowsort
SELECT DISTINCT + + cor0.col1 + - cor0.col1 FROM tab2 cor0
----
0
query I rowsort
SELECT ALL + 33 * - col2 - 23 FROM tab0 AS cor0
----
-1112
-2729
-56
query I rowsort
SELECT ALL col0 * + ( + col1 ) + col1 AS col1 FROM tab1 AS cor0
----
104
1053
650
onlyif mysql # use DIV operator for integer division
query I rowsort label-9578
SELECT ALL - - col0 + + ( + 87 ) DIV col0 FROM tab0 AS cor0
----
27
37
89
skipif mysql # not compatible
query I rowsort label-9578
SELECT ALL - - col0 + + ( + 87 ) / col0 FROM tab0 AS cor0
----
27
37
89
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col0 * - col0 * 35 col1 FROM tab0 AS cor0
----
-20160
-277235
-42875
query I rowsort
SELECT ALL - col2 + ( col1 * col1 ) FROM tab1 AS cor0
----
43
622
73
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab0, tab1 AS cor1, tab2, tab1 AS cor2
----
3645 values hashing to 1c1b1a313871216b88e662d7d3078b12
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + - cor0.col2 col0 FROM tab2 AS cor0
----
-52
-54
-76
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9583
SELECT + cor0.col0 + CAST( - col2 AS SIGNED ) FROM tab1 AS cor0
----
-16
-51
7
skipif mysql # not compatible
query I rowsort label-9583
SELECT + cor0.col0 + CAST ( - col2 AS INTEGER ) FROM tab1 AS cor0
----
-16
-51
7
query I rowsort
SELECT + + col0 + + ( cor0.col1 ) FROM tab2 AS cor0
----
137
38
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-9585
SELECT - - col1 + col1 * 98 DIV col1 AS col1 FROM tab1 AS cor0
----
108
111
124
skipif mysql # not compatible
query I rowsort label-9585
SELECT - - col1 + col1 * 98 / col1 AS col1 FROM tab1 AS cor0
----
108
111
124
query I rowsort
SELECT - cor0.col2 * col1 FROM tab1 cor0
----
-1248
-1404
-570
query I rowsort
SELECT - ( - 70 ) AS col1 FROM tab0 AS cor0
----
70
70
70
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2, tab2 AS cor1, tab0, tab1 AS cor2
----
3645 values hashing to a1a9b1c1e9ca8f59e89e834a7cdebbd0
query I rowsort
SELECT + 89 + cor0.col1 * + col0 AS col1 FROM tab2 AS cor0
----
1432
306
4691
onlyif mysql # use DIV operator for integer division
query I rowsort label-9590
SELECT ALL + ( - col0 ) DIV + col1 + col0 FROM tab2 cor0
----
7
75
77
skipif mysql # not compatible
query I rowsort label-9590
SELECT ALL + ( - col0 ) / + col1 + col0 FROM tab2 cor0
----
7
75
77
query I rowsort
SELECT DISTINCT 34 AS col2 FROM tab0, tab0 cor0
----
34
query I rowsort
SELECT + col1 * + col0 + cor0.col0 * + 60 FROM tab1 AS cor0
----
258
4480
5840
query I rowsort
SELECT 45 + cor0.col2 AS col0 FROM tab0 AS cor0
----
127
46
78
query I rowsort
SELECT col2 * col1 * + col1 + col1 AS col2 FROM tab1 AS cor0
----
16237
36530
5710
query I rowsort
SELECT 53 * + col1 AS col2 FROM tab1
----
1378
530
689
query I rowsort
SELECT - cor0.col2 * - col2 + - ( col1 ) FROM tab0 AS cor0
----
-96
1003
6633
query I rowsort
SELECT + col0 + col0 * cor0.col2 AS col1 FROM tab1 AS cor0
----
165
3712
7760
query I rowsort
SELECT + + 26 + col0 * 77 * col0 - - col0 AS col2 FROM tab1 AS cor0
----
315482
492906
722
onlyif mysql # use DIV operator for integer division
query I rowsort label-9599
SELECT - + col2 DIV col0 + col2 + - 3 * + col0 FROM tab2 AS cor0
----
-199
-208
3
skipif mysql # not compatible
query I rowsort label-9599
SELECT - + col2 / col0 + col2 + - 3 * + col0 FROM tab2 AS cor0
----
-199
-208
3
query I rowsort
SELECT 55 + col0 + - ( - col0 + - col2 ) AS col2 FROM tab2 AS cor0
----
237
251
96
query I rowsort
SELECT - + col0 * - cor0.col1 * ( col1 ) + col1 FROM tab1 AS cor0
----
13533
2054
6410
query I rowsort
SELECT - cor0.col1 * 29 AS col0 FROM tab1 AS cor0
----
-290
-377
-754
query I rowsort
SELECT col2 * + 65 FROM tab1 cor0
----
3510
3705
6240
query I rowsort
SELECT 63 * - col0 AS col1 FROM tab0
----
-1512
-2205
-5607
query I rowsort
SELECT 28 FROM tab2, tab1 AS cor0, tab0 cor1
----
27 values hashing to 8a39580587f2831072e93c319ff94bbf
query I rowsort
SELECT DISTINCT - col1 + + col1 - ( - col1 + - col0 * 15 ) FROM tab1
----
1213
71
970
query I rowsort
SELECT DISTINCT - col0 * + col1 * col1 AS col1 FROM tab0 cor0
----
-177504
-329315
-737009
query I rowsort
SELECT cor0.col0 + cor0.col0 + - col1 FROM tab1 cor0
----
-20
118
147
onlyif mysql # use DIV operator for integer division
query I rowsort label-9609
SELECT - col1 DIV - cor0.col1 AS col0 FROM tab0 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-9609
SELECT - col1 / - cor0.col1 AS col0 FROM tab0 AS cor0
----
1
1
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 67 col0 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 95c9eba643f6489e03be4d5e83f1ef99
onlyif mysql # use DIV operator for integer division
query I rowsort label-9611
SELECT DISTINCT + col0 DIV col2 AS col2 FROM tab0 cor0
----
0
1
35
skipif mysql # not compatible
query I rowsort label-9611
SELECT DISTINCT + col0 / col2 AS col2 FROM tab0 cor0
----
0
1
35
query I rowsort
SELECT + + cor0.col0 * - col2 + + 34 + - col0 AS col0 FROM tab0 AS cor0
----
-36
-7353
-782
query I rowsort
SELECT + col2 * + ( + col2 * - col0 ) + - ( + col1 + + col2 ) FROM tab2 AS cor0
----
-114131
-5161
-52813
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9614
SELECT DISTINCT - + col2 + + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-9614
SELECT DISTINCT - + col2 + + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9615
SELECT ALL + + col0 - CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9615
SELECT ALL + + col0 - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + - col0 + cor0.col0 AS col1 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT ALL - - cor0.col2 + + 38 AS col1 FROM tab2 AS cor0
----
64
65
76
query I rowsort
SELECT - - 20 * cor0.col2 FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to 130e9380a35d5a6129deb95fb5f8852f
query I rowsort
SELECT ALL + cor0.col2 * - 62 FROM tab1 AS cor0
----
-3348
-3534
-5952
onlyif mysql # use DIV operator for integer division
query I rowsort label-9620
SELECT ALL col2 * col2 DIV + ( col0 ) AS col1 FROM tab2 cor0
----
104
18
8
skipif mysql # not compatible
query I rowsort label-9620
SELECT ALL col2 * col2 / + ( col0 ) AS col1 FROM tab2 cor0
----
104
18
8
query I rowsort
SELECT - cor0.col1 + 87 * 98 FROM tab1 AS cor0
----
8500
8513
8516
query I rowsort
SELECT + cor0.col0 * + 47 + cor0.col1 FROM tab1 AS cor0
----
167
3018
3773
onlyif mysql # use DIV operator for integer division
query I rowsort label-9623
SELECT DISTINCT + - col2 + 64 * + col2 DIV col2 AS col1 FROM tab0 AS cor0
----
-18
31
63
skipif mysql # not compatible
query I rowsort label-9623
SELECT DISTINCT + - col2 + 64 * + col2 / col2 AS col1 FROM tab0 AS cor0
----
-18
31
63
query I rowsort
SELECT ALL - - cor0.col2 * col1 - - col0 FROM tab1 AS cor0
----
1328
1407
634
query I rowsort
SELECT DISTINCT + tab2.col1 + col2 * + col1 * + col0 - tab2.col2 AS col2 FROM tab2
----
119685
51013
5863
query I rowsort
SELECT col2 * + col2 * col0 FROM tab1
----
207936
737280
8748
query I rowsort
SELECT 14 * - tab0.col0 AS col2 FROM tab0
----
-1246
-336
-490
query I rowsort
SELECT ALL 68 * - col1 * - col2 FROM tab1
----
38760
84864
95472
onlyif mysql # use DIV operator for integer division
query I rowsort label-9629
SELECT + col2 + + 97 DIV col1 FROM tab2 AS cor0
----
27
30
43
skipif mysql # not compatible
query I rowsort label-9629
SELECT + col2 + + 97 / col1 FROM tab2 AS cor0
----
27
30
43
query I rowsort
SELECT DISTINCT + + ( 57 ) + - cor0.col1 FROM tab0 AS cor0
----
-29
-34
-40
query I rowsort
SELECT 56 * - col0 FROM tab0 AS cor0
----
-1344
-1960
-4984
query I rowsort
SELECT + 73 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to e5fbf5d129b181bacd6113bbc8732496
query I rowsort
SELECT ALL 58 FROM tab1, tab1 AS cor0
----
9 values hashing to ef6e63aeed2581a168f07646d258f666
query I rowsort
SELECT ALL ( - col1 + col0 ) * col0 AS col1 FROM tab0
----
-1488
-178
-2170
query I rowsort
SELECT tab0.col2 AS col2 FROM tab1, tab2 AS cor0 CROSS JOIN tab0, tab0 AS cor1
----
81 values hashing to e938777ebffc2e3e9c0cdfaa4f732c05
query I rowsort
SELECT DISTINCT + 0 + + col0 AS col2 FROM tab2 AS cor0
----
7
78
79
onlyif mysql # use DIV operator for integer division
query I rowsort label-9637
SELECT DISTINCT col2 DIV col0 + CAST( col1 AS SIGNED ) AS col0 FROM tab2 cor0
----
17
34
59
skipif mysql # not compatible
query I rowsort label-9637
SELECT DISTINCT col2 / col0 + CAST ( col1 AS INTEGER ) AS col0 FROM tab2 cor0
----
17
34
59
onlyif mysql # use DIV operator for integer division
query I rowsort label-9638
SELECT DISTINCT - - 43 DIV + col1 AS col1 FROM tab2 AS cor0
----
0
1
2
skipif mysql # not compatible
query I rowsort label-9638
SELECT DISTINCT - - 43 / + col1 AS col1 FROM tab2 AS cor0
----
0
1
2
query I rowsort
SELECT DISTINCT - col0 * - col2 + cor0.col0 FROM tab2 AS cor0
----
196
2106
3081
onlyif mysql # use DIV operator for integer division
query I rowsort label-9640
SELECT DISTINCT 9 DIV col1 + col1 AS col0 FROM tab0 AS cor0
----
86
91
97
skipif mysql # not compatible
query I rowsort label-9640
SELECT DISTINCT 9 / col1 + col1 AS col0 FROM tab0 AS cor0
----
86
91
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-9641
SELECT cor0.col1 + col0 * col0 DIV col0 FROM tab2 cor0
----
137
38
96
skipif mysql # not compatible
query I rowsort label-9641
SELECT cor0.col1 + col0 * col0 / col0 FROM tab2 cor0
----
137
38
96
query I rowsort
SELECT DISTINCT cor1.col1 AS col2 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
10
13
26
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 11 col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to f4d199584b44732f1a897e6691b4ea00
query I rowsort
SELECT - + 66 AS col2 FROM tab2 AS cor0
----
-66
-66
-66
onlyif mysql # use DIV operator for integer division
query I rowsort label-9645
SELECT ALL + col0 DIV + col1 + - 46 * - 44 AS col1 FROM tab0 cor0
----
2024
2024
2024
skipif mysql # not compatible
query I rowsort label-9645
SELECT ALL + col0 / + col1 + - 46 * - 44 AS col1 FROM tab0 cor0
----
2024
2024
2024
query I rowsort
SELECT DISTINCT - ( - col2 ) * 21 - 69 * + col0 AS col2 FROM tab1 AS cor0
----
-3219
-3504
927
query I rowsort
SELECT - + 43 + - col1 FROM tab0 AS cor0
----
-129
-134
-140
onlyif mysql # use DIV operator for integer division
query I rowsort label-9648
SELECT DISTINCT + col1 * col1 * col2 + + col0 + col2 * ( + col0 ) DIV - col1 AS col1 FROM tab0 AS cor0
----
244083
679051
9444
skipif mysql # not compatible
query I rowsort label-9648
SELECT DISTINCT + col1 * col1 * col2 + + col0 + col2 * ( + col0 ) / - col1 AS col1 FROM tab0 AS cor0
----
244083
679051
9444
onlyif mysql # use DIV operator for integer division
query I rowsort label-9649
SELECT ALL cor0.col2 + - col1 * col2 DIV + cor0.col2 AS col0 FROM tab1 AS cor0
----
28
47
83
skipif mysql # not compatible
query I rowsort label-9649
SELECT ALL cor0.col2 + - col1 * col2 / + cor0.col2 AS col0 FROM tab1 AS cor0
----
28
47
83
onlyif mysql # use DIV operator for integer division
query I rowsort label-9650
SELECT ALL - 12 * + col0 + - ( 79 ) DIV col1 AS col0 FROM tab2 AS cor0
----
-86
-937
-952
skipif mysql # not compatible
query I rowsort label-9650
SELECT ALL - 12 * + col0 + - ( 79 ) / col1 AS col0 FROM tab2 AS cor0
----
-86
-937
-952
query I rowsort
SELECT - - col1 * + col0 + col0 AS col0 FROM tab2 cor0
----
1422
224
4680
query I rowsort
SELECT ALL - + col1 * + col1 + 51 FROM tab0 AS cor0
----
-7345
-8230
-9358
query I rowsort
SELECT 93 + - col2 AS col2 FROM tab0 AS cor0
----
11
60
92
query I rowsort
SELECT DISTINCT - cor0.col1 * - col2 + col1 AS col1 FROM tab2 AS cor0
----
1593
663
868
query I rowsort
SELECT DISTINCT - ( col2 ) * ( - 30 ) FROM tab2 AS cor0
----
1140
780
810
query I rowsort
SELECT - 98 AS col2 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 9b0655947ad21e0b95a137a474fa6a1f
query I rowsort
SELECT - col1 + - 34 FROM tab0
----
-120
-125
-131
query I rowsort
SELECT - cor0.col2 * cor0.col1 * + col2 + - col0 AS col1 FROM tab1 AS cor0
----
-119888
-32554
-75819
query I rowsort
SELECT DISTINCT col0 * + 99 FROM tab1 AS cor0
----
297
6336
7920
query I rowsort
SELECT + col1 + 91 FROM tab1
----
101
104
117
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9661
SELECT DISTINCT tab0.col1 + CAST( col1 AS SIGNED ) AS col2 FROM tab0
----
172
182
194
skipif mysql # not compatible
query I rowsort label-9661
SELECT DISTINCT tab0.col1 + CAST ( col1 AS INTEGER ) AS col2 FROM tab0
----
172
182
194
query I rowsort
SELECT + col2 * - col0 * col0 + col1 * - col2 FROM tab0 AS cor0
----
-1322
-21846
-656984
query I rowsort
SELECT - + cor0.col2 + + cor0.col0 AS col2 FROM tab1 AS cor0
----
-16
-51
7
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9664
SELECT + CAST( 74 AS SIGNED ) FROM tab1 AS cor0
----
74
74
74
skipif mysql # not compatible
query I rowsort label-9664
SELECT + CAST ( 74 AS INTEGER ) FROM tab1 AS cor0
----
74
74
74
query I rowsort
SELECT ALL col0 * 7 + - col2 FROM tab0 cor0
----
135
244
541
query I rowsort
SELECT ALL - col2 + - 36 AS col1 FROM tab2 AS cor0
----
-62
-63
-74
query I rowsort
SELECT ALL + ( + 98 ) + col0 * + ( cor0.col1 * col2 ) FROM tab2 AS cor0
----
119750
51132
5957
query I rowsort
SELECT ALL - 77 * + col1 * + cor0.col1 AS col2 FROM tab0 cor0
----
-569492
-637637
-724493
query I rowsort
SELECT DISTINCT - + ( 24 ) - + col0 * + col2 FROM tab2 AS cor0
----
-2052
-213
-3026
query I rowsort
SELECT 25 + - 25 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT + + 30 * + col2 - col2 FROM tab1 AS cor0
----
1566
1653
2784
onlyif mysql # use DIV operator for integer division
query I rowsort label-9672
SELECT DISTINCT 43 DIV - 48 FROM tab2 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-9672
SELECT DISTINCT 43 / - 48 FROM tab2 AS cor0
----
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 28 + col2 col1 FROM tab0 AS cor0
----
110
29
61
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9674
SELECT DISTINCT + CAST( + cor0.col0 AS SIGNED ) - col2 FROM tab1 AS cor0
----
-16
-51
7
skipif mysql # not compatible
query I rowsort label-9674
SELECT DISTINCT + CAST ( + cor0.col0 AS INTEGER ) - col2 FROM tab1 AS cor0
----
-16
-51
7
query I rowsort
SELECT + col1 + + 95 * + col1 AS col2 FROM tab2 cor0
----
1632
2976
5664
query I rowsort
SELECT DISTINCT - cor0.col1 * - col2 FROM tab0 cor0
----
2838
7462
97
query I rowsort
SELECT DISTINCT + cor0.col0 * + cor0.col2 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT DISTINCT - cor0.col1 * col0 * + col0 AS col1 FROM tab2 AS cor0
----
-106097
-1519
-358956
query I rowsort
SELECT DISTINCT + col2 + - ( + col1 ) FROM tab1 AS cor0
----
28
47
83
query I rowsort
SELECT + col2 + 25 FROM tab0 AS cor0
----
107
26
58
query I rowsort
SELECT ALL - 58 AS col0 FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to a38440572743ed8a3d8af7b49a5388c9
onlyif mysql # use DIV operator for integer division
query I rowsort label-9682
SELECT - + col1 * col0 DIV col1 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-9682
SELECT - + col1 * col0 / col1 col0 FROM tab0 AS cor0
----
-24
-35
-89
query I rowsort
SELECT + col0 * 78 AS col2 FROM tab0 AS cor0
----
1872
2730
6942
query I rowsort
SELECT - col0 + 53 FROM tab2 AS cor0
----
-25
-26
46
onlyif mysql # use DIV operator for integer division
query I rowsort label-9685
SELECT + + col2 + col1 DIV - col1 AS col2 FROM tab0 AS cor0
----
0
32
81
skipif mysql # not compatible
query I rowsort label-9685
SELECT + + col2 + col1 / - col1 AS col2 FROM tab0 AS cor0
----
0
32
81
onlyif mysql # use DIV operator for integer division
query I rowsort label-9686
SELECT ALL col0 + col2 + tab1.col0 DIV col0 FROM tab1
----
122
177
58
skipif mysql # not compatible
query I rowsort label-9686
SELECT ALL col0 + col2 + tab1.col0 / col0 FROM tab1
----
122
177
58
query I rowsort
SELECT DISTINCT + col0 * col2 * - tab2.col1 AS col0 FROM tab2
----
-119652
-51034
-5859
query I rowsort
SELECT DISTINCT col1 - col0 * ( + col0 ) AS col2 FROM tab1 AS cor0
----
-4086
-6387
17
query I rowsort
SELECT DISTINCT + + cor0.col0 + cor0.col0 AS col2 FROM tab0 AS cor0
----
178
48
70
query I rowsort
SELECT - col2 * - col1 + col1 - + col0 AS col2 FROM tab1
----
1181
1427
516
query III rowsort
SELECT * FROM tab1 WHERE NULL BETWEEN ( - col2 / col1 ) AND NULL
----
query I rowsort
SELECT + col2 * col2 - tab2.col0 AS col2 FROM tab2
----
1365
598
722
onlyif mysql # use DIV operator for integer division
query I rowsort label-9693
SELECT DISTINCT - col2 DIV col0 - col2 AS col1 FROM tab1
----
-57
-72
-97
skipif mysql # not compatible
query I rowsort label-9693
SELECT DISTINCT - col2 / col0 - col2 AS col1 FROM tab1
----
-57
-72
-97
query I rowsort
SELECT col2 FROM tab2 WHERE NOT ( NULL ) <= ( NULL )
----
query I rowsort
SELECT ALL - col2 + col0 * - col2 FROM tab0
----
-36
-7380
-825
query I rowsort
SELECT col2 * col2 + + col0 * col2 AS col1 FROM tab1
----
16896
3078
6897
onlyif mysql # use DIV operator for integer division
query I rowsort label-9697
SELECT DISTINCT col1 DIV + col2 + col2 + col2 * col2 col0 FROM tab1
----
2970
3306
9312
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9697
SELECT DISTINCT col1 / + col2 + col2 + col2 * col2 col0 FROM tab1
----
2970
3306
9312
query III rowsort
SELECT * FROM tab0 WHERE col0 * col0 + col1 <> ( col1 + + col2 )
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7
query I rowsort
SELECT + col2 * + col0 * - col2 AS col2 FROM tab1
----
-207936
-737280
-8748
query I rowsort
SELECT - col0 * - col2 * - col1 AS col0 FROM tab0
----
-3395
-664118
-68112
onlyif mysql # use DIV operator for integer division
query I rowsort label-9701
SELECT DISTINCT + tab2.col0 DIV - tab2.col0 FROM tab2
----
-1
skipif mysql # not compatible
query I rowsort label-9701
SELECT DISTINCT + tab2.col0 / - tab2.col0 FROM tab2
----
-1
query I rowsort
SELECT ALL + ( tab0.col2 ) AS col2 FROM tab0
----
1
33
82
query I rowsort
SELECT ALL + 34 AS col0 FROM tab0
----
34
34
34
query I rowsort
SELECT ALL col2 * col2 + col0 * col1 * - col0 FROM tab0 AS cor0
----
-118824
-48447
-714087
query I rowsort
SELECT ALL - cor0.col1 * col2 + - 63 + 81 * - col2 AS col0 FROM tab0 AS cor0
----
-14167
-241
-5574
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab2 AS cor0, tab2 AS cor1, tab2, tab1 cor2
----
3645 values hashing to 97b2ae21242e1e40418ee2ad06544f7a
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9707
SELECT DISTINCT cor0.col1 + col1 * - CAST( col1 AS SIGNED ) FROM tab2 AS cor0
----
-272
-3422
-930
skipif mysql # not compatible
query I rowsort label-9707
SELECT DISTINCT cor0.col1 + col1 * - CAST ( col1 AS INTEGER ) FROM tab2 AS cor0
----
-272
-3422
-930
query I rowsort
SELECT - col1 + + col0 + + col0 FROM tab2
----
-17
141
97
query I rowsort
SELECT + 52 * cor0.col0 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to c0b781d06e1af43437c8bc5017e4e658
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1, tab2 AS cor0, tab0 cor1, tab2, tab2 cor2
----
3645 values hashing to 42d854e4c33cb5afd5528228bff9250d
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9711
SELECT col0 + - CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9711
SELECT col0 + - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 + col2 col2 FROM tab2 AS cor0
----
52
54
76
query I rowsort
SELECT ALL + col1 * tab2.col2 * col2 + + col1 * + col2 FROM tab2
----
23436
25194
41418
query I rowsort
SELECT 83 * 73 FROM tab1
----
6059
6059
6059
query I rowsort
SELECT DISTINCT - 36 AS col1 FROM tab0, tab0 AS cor0
----
-36
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - ( 41 ) * + col2 col0 FROM tab2 AS cor0
----
-1066
-1107
-1558
onlyif mysql # use DIV operator for integer division
query I rowsort label-9717
SELECT - 67 DIV + col2 FROM tab1 AS cor0
----
-1
-1
0
skipif mysql # not compatible
query I rowsort label-9717
SELECT - 67 / + col2 FROM tab1 AS cor0
----
-1
-1
0
query I rowsort
SELECT + col2 * + 52 * - col2 AS col0 FROM tab2 AS cor0
----
-35152
-37908
-75088
query I rowsort
SELECT - 36 - - cor0.col1 FROM tab1 AS cor0
----
-10
-23
-26
onlyif mysql # use DIV operator for integer division
query I rowsort label-9720
SELECT + + 32 * col0 DIV col2 + - col2 FROM tab0 AS cor0
----
-10
-48
1119
skipif mysql # not compatible
query I rowsort label-9720
SELECT + + 32 * col0 / col2 + - col2 FROM tab0 AS cor0
----
-10
-48
1119
query I rowsort
SELECT - - col0 * + col0 + 11 AS col0 FROM tab2 AS cor0
----
60
6095
6252
onlyif mysql # use DIV operator for integer division
query I rowsort label-9722
SELECT - 93 DIV col1 FROM tab2
----
-1
-3
-5
skipif mysql # not compatible
query I rowsort label-9722
SELECT - 93 / col1 FROM tab2
----
-1
-3
-5
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + cor0.col2 - col0 col0 FROM tab1 cor0
----
-121
-176
-57
query I rowsort
SELECT + ( col1 ) * + col0 + + 87 * - col2 FROM tab2 AS cor0
----
-1963
-2132
2340
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9725
SELECT + 28 - + col1 * + CAST( + col1 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-261
-3453
-933
skipif mysql # not compatible
query I rowsort label-9725
SELECT + 28 - + col1 * + CAST ( + col1 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-261
-3453
-933
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9726
SELECT DISTINCT CAST( + col1 AS SIGNED ) * + tab0.col2 + + 69 AS col1 FROM tab0
----
166
2907
7531
skipif mysql # not compatible
query I rowsort label-9726
SELECT DISTINCT CAST ( + col1 AS INTEGER ) * + tab0.col2 + + 69 AS col1 FROM tab0
----
166
2907
7531
onlyif mysql # use DIV operator for integer division
query I rowsort label-9727
SELECT - col0 + + 88 DIV + 17 FROM tab1
----
-59
-75
2
skipif mysql # not compatible
query I rowsort label-9727
SELECT - col0 + + 88 / + 17 FROM tab1
----
-59
-75
2
query I rowsort
SELECT cor0.col0 * 90 FROM tab1 AS cor0
----
270
5760
7200
query I rowsort
SELECT 75 + - 23 FROM tab2
----
52
52
52
query I rowsort
SELECT 92 + + col2 AS col1 FROM tab0
----
125
174
93
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col2 * - 86 col0 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
-2838
-7052
-86
query I rowsort
SELECT DISTINCT + col0 + col0 * - col2 FROM tab0 AS cor0
----
-7209
-768
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col1 * + col2 col0 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT DISTINCT - - 71 * ( col1 ) + 60 * 25 AS col0 FROM tab0 AS cor0
----
7606
7961
8387
query I rowsort
SELECT ALL - 51 * cor0.col0 AS col1 FROM tab1 AS cor0
----
-153
-3264
-4080
query I rowsort
SELECT DISTINCT - ( + col1 ) + - ( - col1 ) FROM tab1
----
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9737
SELECT DISTINCT + col1 + - col2 * + CAST( 63 + + col1 AS SIGNED ) FROM tab1
----
-4151
-4780
-7283
skipif mysql # not compatible
query I rowsort label-9737
SELECT DISTINCT + col1 + - col2 * + CAST ( 63 + + col1 AS INTEGER ) FROM tab1
----
-4151
-4780
-7283
query I rowsort
SELECT ( tab0.col1 ) - col1 FROM tab0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-9739
SELECT DISTINCT - 28 + + col0 DIV - ( tab1.col0 ) AS col2 FROM tab1
----
-29
skipif mysql # not compatible
query I rowsort label-9739
SELECT DISTINCT - 28 + + col0 / - ( tab1.col0 ) AS col2 FROM tab1
----
-29
query I rowsort
SELECT + + 62 + + col2 FROM tab1 AS cor0
----
116
119
158
query I rowsort
SELECT DISTINCT + 14 * col1 FROM tab1 AS cor0
----
140
182
364
query I rowsort
SELECT + col1 * - col2 + - col1 FROM tab0 cor0
----
-194
-2924
-7553
query I rowsort
SELECT + - 16 * col1 + + col1 * - 48 FROM tab2 AS cor0
----
-1088
-1984
-3776
query I rowsort
SELECT ALL cor0.col0 * + col2 + + 82 AS col1 FROM tab2 cor0
----
2110
271
3084
query I rowsort
SELECT ALL - col1 + col2 * ( + col1 + + col0 ) FROM tab2 AS cor0
----
3503
3631
995
query I rowsort
SELECT DISTINCT + col1 * ( col2 ) + col0 AS col1 FROM tab0 cor0
----
132
2862
7551
query I rowsort
SELECT ALL + - col1 * + 97 AS col1 FROM tab0 AS cor0
----
-8342
-8827
-9409
query I rowsort
SELECT DISTINCT col0 * col1 * 89 FROM tab0 AS cor0
----
183696
302155
720811
query I rowsort
SELECT col0 * - 56 FROM tab0 AS cor0
----
-1344
-1960
-4984
query I rowsort
SELECT ( - col2 * col1 ) AS col0 FROM tab0
----
-2838
-7462
-97
query I rowsort
SELECT ( tab2.col1 ) * ( + tab2.col1 ) AS col1 FROM tab2
----
289
3481
961
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9752
SELECT ALL + col2 * CAST( NULL AS SIGNED ) + cor0.col2 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9752
SELECT ALL + col2 * CAST ( NULL AS INTEGER ) + cor0.col2 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + col1 * - col1 * + col0 - - col0 * - 34 AS col0 FROM tab0 AS cor0
----
-178320
-330505
-740035
query I rowsort
SELECT ALL - ( + col2 * 72 ) AS col0 FROM tab0
----
-2376
-5904
-72
query I rowsort
SELECT DISTINCT cor0.col2 - 45 * 70 AS col0 FROM tab0 AS cor0
----
-3068
-3117
-3149
query I rowsort
SELECT - col2 * 3 * ( + col0 + col2 ) AS col0 FROM tab2 AS cor0
----
-13338
-2754
-8112
onlyif mysql # use DIV operator for integer division
query I rowsort label-9757
SELECT DISTINCT col2 + + 12 + col0 DIV col2 AS col2 FROM tab1 AS cor0
----
108
66
70
skipif mysql # not compatible
query I rowsort label-9757
SELECT DISTINCT col2 + + 12 + col0 / col2 AS col2 FROM tab1 AS cor0
----
108
66
70
query I rowsort
SELECT DISTINCT col0 * + ( ( - col2 ) ) AS col2 FROM tab0 AS cor0
----
-35
-7298
-792
query I rowsort
SELECT + col2 * + col0 * - cor0.col2 AS col0 FROM tab1 AS cor0
----
-207936
-737280
-8748
onlyif mysql # use DIV operator for integer division
query I rowsort label-9760
SELECT + - cor0.col2 DIV ( + col0 ) AS col1 FROM tab2 AS cor0
----
-3
0
0
skipif mysql # not compatible
query I rowsort label-9760
SELECT + - cor0.col2 / ( + col0 ) AS col1 FROM tab2 AS cor0
----
-3
0
0
query I rowsort
SELECT ALL + + col2 + - col0 * 62 AS col2 FROM tab1 AS cor0
----
-132
-3911
-4864
query I rowsort
SELECT col1 * + 74 * + col0 FROM tab2 AS cor0
----
16058
340548
99382
query I rowsort
SELECT ALL - - col2 * + 99 AS col0 FROM tab2 cor0
----
2574
2673
3762
query I rowsort
SELECT ALL - + col2 + + ( 25 ) * + col0 AS col1 FROM tab1 AS cor0
----
1543
1904
21
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9765
SELECT - + CAST( + 90 AS SIGNED ) * + col1 FROM tab2 AS cor0
----
-1530
-2790
-5310
skipif mysql # not compatible
query I rowsort label-9765
SELECT - + CAST ( + 90 AS INTEGER ) * + col1 FROM tab2 AS cor0
----
-1530
-2790
-5310
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9766
SELECT - + CAST( - 39 AS SIGNED ) * - col2 col2 FROM tab1 AS cor0
----
-2106
-2223
-3744
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9766
SELECT - + CAST ( - 39 AS INTEGER ) * - col2 col2 FROM tab1 AS cor0
----
-2106
-2223
-3744
query I rowsort
SELECT 14 * 72 AS col1 FROM tab2 AS cor0
----
1008
1008
1008
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - col1 * + col2 col1 FROM tab1 AS cor0
----
-119808
-32490
-75816
query I rowsort
SELECT DISTINCT + col0 * - ( col0 ) AS col1 FROM tab0
----
-1225
-576
-7921
query I rowsort
SELECT - 86 AS col0 FROM tab0, tab1 cor0
----
9 values hashing to 9ac806793c03d3a6b5e3a3029d20e4da
onlyif mysql # use DIV operator for integer division
query I rowsort label-9771
SELECT ALL - + col2 + + col0 DIV cor0.col0 AS col1 FROM tab2 AS cor0
----
-25
-26
-37
skipif mysql # not compatible
query I rowsort label-9771
SELECT ALL - + col2 + + col0 / cor0.col0 AS col1 FROM tab2 AS cor0
----
-25
-26
-37
query I rowsort
SELECT col2 * cor0.col1 + - ( - col2 ) - cor0.col2 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT DISTINCT - 51 + col2 FROM tab0 cor0
----
-18
-50
31
query I rowsort
SELECT DISTINCT - + 77 AS col1 FROM tab1 AS cor0
----
-77
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9775
SELECT 4 * col2 + + CAST( - col0 AS SIGNED ) FROM tab2 AS cor0
----
101
26
73
skipif mysql # not compatible
query I rowsort label-9775
SELECT 4 * col2 + + CAST ( - col0 AS INTEGER ) FROM tab2 AS cor0
----
101
26
73
onlyif mysql # use DIV operator for integer division
query I rowsort label-9776
SELECT ALL + + col0 + cor0.col2 DIV cor0.col1 FROM tab2 AS cor0
----
7
78
81
skipif mysql # not compatible
query I rowsort label-9776
SELECT ALL + + col0 + cor0.col2 / cor0.col1 FROM tab2 AS cor0
----
7
78
81
onlyif mysql # use DIV operator for integer division
query I rowsort label-9777
SELECT ALL col2 DIV col2 AS col1 FROM tab1 cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-9777
SELECT ALL col2 / col2 AS col1 FROM tab1 cor0
----
1
1
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + col2 + 36 col0 FROM tab1 AS cor0
----
198
3684
7716
query I rowsort
SELECT DISTINCT col1 + col0 * + cor0.col0 * 50 FROM tab1 AS cor0
----
204810
320013
476
query I rowsort
SELECT ALL - - 75 + - col1 AS col1 FROM tab2 AS cor0
----
16
44
58
query I rowsort
SELECT DISTINCT + col0 - + col2 AS col0 FROM tab1
----
-16
-51
7
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9782
SELECT + CAST( NULL AS SIGNED ) * col2 AS col1 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9782
SELECT + 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 + col2 DIV - col2 AS col1 FROM tab0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-9783
SELECT + col2 / - col2 AS col1 FROM tab0
----
-1
-1
-1
query I rowsort
SELECT col1 * 93 FROM tab0
----
7998
8463
9021
query I rowsort
SELECT DISTINCT ( + tab2.col0 ) + - col1 AS col0 FROM tab2
----
-24
19
62
query I rowsort
SELECT col1 + - col1 - - ( + cor0.col2 + col2 ) FROM tab0 AS cor0
----
164
2
66
onlyif mysql # use DIV operator for integer division
query I rowsort label-9787
SELECT - - col0 * col2 DIV - CAST( ( col1 ) AS SIGNED ) FROM tab2 AS cor0
----
-176
-34
-6
skipif mysql # not compatible
query I rowsort label-9787
SELECT - - col0 * col2 / - CAST ( ( col1 ) AS INTEGER ) FROM tab2 AS cor0
----
-176
-34
-6
query I rowsort
SELECT DISTINCT - - col0 + col2 * + 71 * col2 FROM tab1 AS cor0
----
207039
230743
654416
query I rowsort
SELECT DISTINCT ( col2 ) + - col0 * + 27 AS col2 FROM tab2 cor0
----
-162
-2080
-2095
onlyif mysql # use DIV operator for integer division
query I rowsort label-9790
SELECT + col1 DIV - col1 + col0 col2 FROM tab0 AS cor0
----
23
34
88
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9790
SELECT + col1 / - col1 + col0 col2 FROM tab0 AS cor0
----
23
34
88
query I rowsort
SELECT DISTINCT - 41 * cor0.col0 + col1 AS col2 FROM tab1 AS cor0
----
-2614
-3267
-97
onlyif mysql # use DIV operator for integer division
query I rowsort label-9792
SELECT + col1 * col0 DIV cor0.col0 col2 FROM tab1 AS cor0
----
10
13
26
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9792
SELECT + col1 * col0 / cor0.col0 col2 FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT - col2 + 76 AS col0 FROM tab0 cor0
----
-6
43
75
onlyif mysql # use DIV operator for integer division
query I rowsort label-9794
SELECT col1 * col0 + - col2 DIV col1 FROM tab2 AS cor0
----
1341
217
4602
skipif mysql # not compatible
query I rowsort label-9794
SELECT col1 * col0 + - col2 / col1 FROM tab2 AS cor0
----
1341
217
4602
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 57 * - col0 col0 FROM tab2
----
399
4446
4503
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9796
SELECT DISTINCT CAST( - col2 * + tab0.col1 AS SIGNED ) FROM tab0
----
-2838
-7462
-97
skipif mysql # not compatible
query I rowsort label-9796
SELECT DISTINCT CAST ( - col2 * + tab0.col1 AS INTEGER ) FROM tab0
----
-2838
-7462
-97
query I rowsort
SELECT DISTINCT col1 * - col0 + col2 AS col1 FROM tab0 AS cor0
----
-2031
-3394
-8017
onlyif mysql # use DIV operator for integer division
query I rowsort label-9798
SELECT + + col1 * + col1 * + col0 + 87 * col0 DIV - ( 29 * col2 + col1 * col0 ) AS col0 FROM tab1 AS cor0
----
13519
2028
6398
skipif mysql # not compatible
query I rowsort label-9798
SELECT + + col1 * + col1 * + col0 + 87 * col0 / - ( 29 * col2 + col1 * col0 ) AS col0 FROM tab1 AS cor0
----
13519
2028
6398
query I rowsort
SELECT DISTINCT - col2 + col2 * + col2 AS col1 FROM tab1 AS cor0
----
2862
3192
9120
onlyif mysql # use DIV operator for integer division
query I rowsort label-9800
SELECT ALL + + cor0.col1 DIV col1 AS col0 FROM tab0 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-9800
SELECT ALL + + cor0.col1 / col1 AS col0 FROM tab0 AS cor0
----
1
1
1
query I rowsort
SELECT DISTINCT + cor0.col0 * + col1 * 15 FROM tab0 AS cor0
----
121485
30960
50925
query I rowsort
SELECT DISTINCT ( + ( - col1 ) * + 33 ) FROM tab1
----
-330
-429
-858
query I rowsort
SELECT ALL 70 * + col1 * col2 FROM tab2
----
107380
45220
58590
query I rowsort
SELECT + col0 * cor0.col0 + + 48 AS col2 FROM tab1 AS cor0
----
4144
57
6448
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9805
SELECT + - col0 * col0 + - CAST( NULL AS DECIMAL ) AS col0 FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9805
SELECT + - col0 * col0 + - CAST ( NULL AS REAL ) AS col0 FROM tab0 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - cor0.col0 + - ( 41 ) + - col0 AS col0 FROM tab0 AS cor0
----
-111
-219
-89
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + cor0.col2 * 48 - 61 col2 FROM tab1 AS cor0
----
-2653
-2797
-4669
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9808
SELECT DISTINCT + col0 / + CAST( NULL AS SIGNED ) + - 27 + col1 AS col2 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-9808
SELECT DISTINCT + col0 / + CAST ( NULL AS INTEGER ) + - 27 + col1 AS col2 FROM tab2 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * ( + col2 ) + cor0.col1 * 80 col2 FROM tab2 cor0
----
-1642
2291
2692
query I rowsort
SELECT ALL + cor0.col2 + ( cor0.col1 ) * + col1 FROM tab0 AS cor0
----
7429
8363
9410
query I rowsort
SELECT DISTINCT + col2 * - 15 FROM tab0 cor0
----
-1230
-15
-495
query I rowsort
SELECT - col2 * 69 - col1 FROM tab2 cor0
----
-1853
-1894
-2639
query I rowsort
SELECT ALL col2 * ( - col0 ) * - col2 FROM tab2 cor0
----
114076
5103
52728
query I rowsort
SELECT col1 * + ( col1 ) AS col2 FROM tab2 AS cor0
----
289
3481
961
query I rowsort
SELECT col1 + col0 + - 2 * col1 FROM tab1 AS cor0
----
-23
54
67
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9816
SELECT - cor0.col0 * - CAST( + col2 AS SIGNED ) - - col1 AS col2 FROM tab0 AS cor0
----
132
7389
878
skipif mysql # not compatible
query I rowsort label-9816
SELECT - cor0.col0 * - CAST ( + col2 AS INTEGER ) - - col1 AS col2 FROM tab0 AS cor0
----
132
7389
878
query I rowsort
SELECT - col2 - col0 AS col0 FROM tab0 cor0
----
-171
-36
-57
query I rowsort
SELECT DISTINCT - 38 + cor0.col0 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
-35
26
42
query I rowsort
SELECT 37 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to a10b03e72860b949bdff53827700a9a8
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9820
SELECT + CAST( NULL AS DECIMAL ) + col1 * + col1 + 29 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9820
SELECT + CAST ( NULL AS REAL ) + col1 * + col1 + 29 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT col2 + + 32 * + col1 FROM tab0
----
2785
2994
3105
query I rowsort
SELECT col0 * col2 + col1 * + 81 AS col1 FROM tab1 AS cor0
----
2268
4458
8733
query I rowsort
SELECT col2 * - 36 * + col0 AS col2 FROM tab1
----
-131328
-276480
-5832
query I rowsort
SELECT + tab0.col1 + 73 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 4721c071bcaf513fe282787bcb4da2a8
query I rowsort
SELECT + tab1.col0 * - 89 FROM tab1
----
-267
-5696
-7120
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9826
SELECT + CAST( ( col0 ) AS SIGNED ) AS col1 FROM tab1 AS cor0
----
3
64
80
skipif mysql # not compatible
query I rowsort label-9826
SELECT + CAST ( ( col0 ) AS INTEGER ) AS col1 FROM tab1 AS cor0
----
3
64
80
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9827
SELECT ALL - + CAST( col2 AS SIGNED ) * - col2 AS col2 FROM tab1 AS cor0
----
2916
3249
9216
skipif mysql # not compatible
query I rowsort label-9827
SELECT ALL - + CAST ( col2 AS INTEGER ) * - col2 AS col2 FROM tab1 AS cor0
----
2916
3249
9216
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9828
SELECT CAST( NULL AS DECIMAL ) + - cor0.col1 - - col2 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9828
SELECT CAST ( NULL AS REAL ) + - cor0.col1 - - col2 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col1 + col1 * col2 col1 FROM tab1 cor0
----
1261
1430
580
onlyif mysql # use DIV operator for integer division
query I rowsort label-9830
SELECT 8 DIV + col0 AS col1 FROM tab1 AS cor0
----
0
0
2
skipif mysql # not compatible
query I rowsort label-9830
SELECT 8 / + col0 AS col1 FROM tab1 AS cor0
----
0
0
2
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab2.col2 * col1 * col0 col0 FROM tab2
----
119652
51034
5859
query I rowsort
SELECT ALL + tab0.col1 AS col1 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd
query I rowsort
SELECT 74 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 2ccf8ef3f477e1a1a3e30c8b8154ff31
query I rowsort
SELECT - + col2 * col1 + - cor0.col2 * - col0 AS col2 FROM tab2 AS cor0
----
-648
2356
494
query I rowsort
SELECT DISTINCT - cor0.col1 + + cor0.col0 FROM tab0 AS cor0
----
-2
-62
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9836
SELECT DISTINCT - 2 + - col1 - CAST( ( - col0 ) + + 53 AS SIGNED ) * col2 AS col0 FROM tab2 cor0
----
-1275
589
969
skipif mysql # not compatible
query I rowsort label-9836
SELECT DISTINCT - 2 + - col1 - CAST ( ( - col0 ) + + 53 AS INTEGER ) * col2 AS col0 FROM tab2 cor0
----
-1275
589
969
onlyif mysql # use DIV operator for integer division
query I rowsort label-9837
SELECT DISTINCT 14 * col0 + + col1 DIV - col0 FROM tab1
----
1120
34
896
skipif mysql # not compatible
query I rowsort label-9837
SELECT DISTINCT 14 * col0 + + col1 / - col0 FROM tab1
----
1120
34
896
query I rowsort
SELECT - 44 + + tab0.col1 FROM tab0
----
42
47
53
query I rowsort
SELECT col1 * - col0 + - col1 AS col1 FROM tab2
----
-1360
-248
-4661
onlyif mysql # use DIV operator for integer division
query I rowsort label-9840
SELECT ALL - col0 * col2 DIV - ( + col1 ) AS col0 FROM tab0 AS cor0
----
0
80
9
skipif mysql # not compatible
query I rowsort label-9840
SELECT ALL - col0 * col2 / - ( + col1 ) AS col0 FROM tab0 AS cor0
----
0
80
9
query I rowsort
SELECT ALL cor0.col0 + + cor0.col2 FROM tab2 AS cor0
----
104
117
34
query I rowsort
SELECT DISTINCT + 84 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
84
query I rowsort
SELECT + col0 * 26 + - col2 * col0 FROM tab0
----
-168
-4984
875
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 23 col0 FROM tab0, tab2 AS cor0
----
9 values hashing to ce60bf4b0647d0fcb18a0562e351c52d
query I rowsort
SELECT + col1 * - tab2.col2 * col0 FROM tab2
----
-119652
-51034
-5859
query I rowsort
SELECT DISTINCT - col1 * - col2 * col2 - - col1 * + ( - col2 ) AS col2 FROM tab2
----
21762
23902
38350
query I rowsort
SELECT - tab2.col1 + 96 + tab2.col2 AS col2 FROM tab2
----
117
63
92
query I rowsort
SELECT + 59 + + col1 * - col1 FROM tab2 AS cor0
----
-230
-3422
-902
query I rowsort
SELECT + ( + col1 ) + - col0 * - col0 AS col0 FROM tab2 AS cor0
----
6143
6258
80
query I rowsort
SELECT DISTINCT + ( + 64 ) + - col1 * + 0 * cor0.col2 + col0 * cor0.col2 AS col0 FROM tab0 AS cor0
----
7362
856
99
query I rowsort
SELECT col0 + + 36 AS col2 FROM tab2 AS cor0
----
114
115
43
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 86 - + col1 col0 FROM tab0 AS cor0
----
-11
-5
0
query I rowsort
SELECT DISTINCT ( + col1 ) + col0 AS col2 FROM tab2 AS cor0
----
137
38
96
query I rowsort
SELECT - 41 * col0 + col2 * + col0 FROM tab0 AS cor0
----
-1400
-192
3649
query I rowsort
SELECT ALL col2 * - col1 + - col2 + 24 FROM tab1 AS cor0
----
-1320
-1434
-603
query I rowsort
SELECT DISTINCT - col2 + - 8 AS col0 FROM tab0 AS cor0
----
-41
-9
-90
query I rowsort
SELECT - - ( cor0.col1 ) + - cor0.col2 FROM tab1 AS cor0
----
-28
-47
-83
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9858
SELECT ALL + - CAST( col1 AS SIGNED ) * col0 + 77 FROM tab0 AS cor0
----
-1987
-3318
-8022
skipif mysql # not compatible
query I rowsort label-9858
SELECT ALL + - CAST ( col1 AS INTEGER ) * col0 + 77 FROM tab0 AS cor0
----
-1987
-3318
-8022
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 7 * + col1 + + col1 col0 FROM tab2 AS cor0
----
-102
-186
-354
query I rowsort
SELECT - col0 + + col0 * - col1 AS col2 FROM tab0 AS cor0
----
-2088
-3430
-8188
query I rowsort
SELECT DISTINCT + col2 * col2 + + col0 * 5 + 57 FROM tab2 AS cor0
----
1123
1896
821
query I rowsort
SELECT - ( + tab2.col1 ) + col1 FROM tab2
----
0
0
0
query I rowsort
SELECT ALL + ( - col0 ) * - col1 + + ( + col0 ) FROM tab1
----
1120
704
81
query I rowsort
SELECT ALL 45 * - col0 + - tab2.col1 AS col0 FROM tab2
----
-346
-3569
-3572
query I rowsort
SELECT DISTINCT col0 * + col1 + + col1 AS col0 FROM tab2 AS cor0
----
1360
248
4661
query I rowsort
SELECT - ( + col2 ) * - col1 + + 95 * col0 AS col0 FROM tab1 AS cor0
----
1689
6650
8848
query I rowsort
SELECT DISTINCT + - 13 FROM tab1 AS cor0
----
-13
query I rowsort
SELECT + 96 + - col1 + col2 AS col2 FROM tab2 AS cor0
----
117
63
92
query I rowsort
SELECT ALL + + col1 * + 68 FROM tab1 AS cor0
----
1768
680
884
query I rowsort
SELECT + 59 * - 62 + col1 FROM tab1 AS cor0
----
-3632
-3645
-3648
onlyif mysql # use DIV operator for integer division
query I rowsort label-9871
SELECT DISTINCT - - col2 DIV col2 + + 90 AS col0 FROM tab1 AS cor0
----
91
skipif mysql # not compatible
query I rowsort label-9871
SELECT DISTINCT - - col2 / col2 + + 90 AS col0 FROM tab1 AS cor0
----
91
query I rowsort
SELECT ALL - - 15 + + col2 + - ( col2 ) * + col2 AS col1 FROM tab2 cor0
----
-1391
-635
-687
query I rowsort
SELECT DISTINCT - + cor0.col1 + - col1 AS col1 FROM tab2 AS cor0
----
-118
-34
-62
query I rowsort
SELECT ALL + col0 * col2 + + col1 * col2 FROM tab1 AS cor0
----
1566
4218
8928
query I rowsort
SELECT + + cor0.col0 + - col1 * - cor0.col0 FROM tab2 AS cor0
----
1422
224
4680
query I rowsort
SELECT - 1 * col2 FROM tab0 cor0
----
-1
-33
-82
query I rowsort
SELECT DISTINCT cor0.col0 * - col1 FROM tab2 cor0
----
-1343
-217
-4602
query I rowsort
SELECT DISTINCT + + col0 * + col1 + - col2 AS col2 FROM tab1 AS cor0
----
24
583
944
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + + col1 col2 FROM tab2 AS cor0
----
137
38
96
query I rowsort
SELECT ALL + 33 FROM tab0 AS cor0
----
33
33
33
query I rowsort
SELECT DISTINCT - col0 + 18 AS col2 FROM tab0
----
-17
-6
-71
query I rowsort
SELECT DISTINCT + col2 + - 59 * col1 FROM tab1
----
-1480
-533
-671
query I rowsort
SELECT DISTINCT + col2 * - col0 + + col0 AS col0 FROM tab0
----
-7209
-768
0
query I rowsort
SELECT + ( col2 ) * ( ( col2 ) ) + + 62 FROM tab2 AS cor0
----
1506
738
791
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + - 7 col1 FROM tab0
----
17
28
82
query I rowsort
SELECT col1 * - col0 - - col1 AS col0 FROM tab2
----
-1326
-186
-4543
query I rowsort
SELECT DISTINCT cor0.col1 * + 96 AS col0 FROM tab1 AS cor0
----
1248
2496
960
query I rowsort
SELECT - col2 * + ( ( + col0 ) ) AS col0 FROM tab0 AS cor0
----
-35
-7298
-792
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * - ( + 91 ) col2 FROM tab1 AS cor0
----
-4914
-5187
-8736
query I rowsort
SELECT DISTINCT - cor0.col2 * col0 AS col1 FROM tab0 cor0
----
-35
-7298
-792
query I rowsort
SELECT DISTINCT - col1 + col1 * + col1 FROM tab2 cor0
----
272
3422
930
query I rowsort
SELECT col0 * - 82 FROM tab1 cor0
----
-246
-5248
-6560
onlyif mysql # use DIV operator for integer division
query I rowsort label-9893
SELECT ALL col2 + CAST( + col0 AS SIGNED ) DIV col2 AS col2 FROM tab1 AS cor0
----
54
58
96
skipif mysql # not compatible
query I rowsort label-9893
SELECT ALL col2 + CAST ( + col0 AS INTEGER ) / col2 AS col2 FROM tab1 AS cor0
----
54
58
96
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9894
SELECT DISTINCT + + col1 + + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-9894
SELECT DISTINCT + + col1 + + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT - - col2 * + cor0.col1 AS col0 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT ALL col1 * ( + col1 ) AS col1 FROM tab0 AS cor0
----
7396
8281
9409
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + cor0.col1 col2 FROM tab1 cor0
----
-100
-169
-676
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9898
SELECT DISTINCT + col0 * CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-9898
SELECT DISTINCT + col0 * CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT ALL + cor0.col0 + - cor0.col2 * + cor0.col0 FROM tab1 AS cor0
----
-159
-3584
-7600
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab1 cor0 CROSS JOIN tab0, tab1 cor1, tab1, tab2 cor2
----
3645 values hashing to a8f0522dfcc0ffd1116145dd0d0134ff
query I rowsort
SELECT DISTINCT + cor0.col2 + 50 * cor0.col1 FROM tab1 AS cor0 CROSS JOIN tab1, tab0 AS cor1
----
1354
557
746
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - CAST ( + col2 AS REAL ) FROM tab2 AS cor0
----
-26
-27
-38
query I rowsort
SELECT ALL - - col1 * col0 AS col2 FROM tab0 cor0
----
2064
3395
8099
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( + 76 ) * + col2 col1 FROM tab1 AS cor0
----
4104
4332
7296
query I rowsort
SELECT - cor0.col1 FROM tab2, tab2 cor0, tab2 AS cor1
----
27 values hashing to 6e0b7d583bc2c53842166d3e6ba2d6d2
query I rowsort
SELECT ALL - col1 + - ( 72 ) * col0 AS col2 FROM tab0
----
-1814
-2617
-6499
query I rowsort
SELECT ALL tab1.col2 - + 60 AS col2 FROM tab1
----
-3
-6
36
query I rowsort
SELECT DISTINCT + 59 + + col0 AS col0 FROM tab2
----
137
138
66
query I rowsort
SELECT - col0 + col2 + col1 * col0 * col1 FROM tab1
----
13536
2079
6393
onlyif mysql # use DIV operator for integer division
query I rowsort label-9910
SELECT DISTINCT ( + col0 ) DIV col1 + ( col2 ) FROM tab2
----
27
42
skipif mysql # not compatible
query I rowsort label-9910
SELECT DISTINCT ( + col0 ) / col1 + ( col2 ) FROM tab2
----
27
42
query I rowsort
SELECT + col1 * - col1 + col1 AS col2 FROM tab0 AS cor0
----
-7310
-8190
-9312
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * col0 + - 15 col1 FROM tab1
----
1025
625
63
onlyif mysql # use DIV operator for integer division
query I rowsort label-9913
SELECT DISTINCT - col0 DIV 20 FROM tab1 AS cor0
----
-3
-4
0
skipif mysql # not compatible
query I rowsort label-9913
SELECT DISTINCT - col0 / 20 FROM tab1 AS cor0
----
-3
-4
0
query I rowsort
SELECT ALL - cor0.col0 + col0 * + col0 AS col1 FROM tab0 AS cor0
----
1190
552
7832
query I rowsort
SELECT ALL + 85 FROM tab1, tab1 AS cor0
----
9 values hashing to aafa8e5cfb9e02cea8717833e7581f7b
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9916
SELECT - col0 + + CAST( NULL AS SIGNED ) * - col1 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9916
SELECT - col0 + + CAST ( NULL AS INTEGER ) * - col1 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-9917
SELECT - col1 + col2 DIV cor0.col1 AS col1 FROM tab2 AS cor0
----
-15
-31
-59
skipif mysql # not compatible
query I rowsort label-9917
SELECT - col1 + col2 / cor0.col1 AS col1 FROM tab2 AS cor0
----
-15
-31
-59
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + + col1 * + cor0.col1 col1 FROM tab0 AS cor0
----
7482
8372
9506
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9919
SELECT DISTINCT col1 * - CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-9919
SELECT DISTINCT col1 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT ALL - cor0.col1 * - cor0.col1 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 9708a433b981d9b5fd095bfe2ea45aea
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab1 AS cor0 CROSS JOIN tab2, tab0, tab0 cor1
----
3645 values hashing to a5677c50b23f70287df35c2388a1c9bf
query I rowsort
SELECT DISTINCT + + 80 * - 46 AS col0 FROM tab2 AS cor0
----
-3680
query I rowsort
SELECT DISTINCT + col0 + col0 + - col0 AS col1 FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT DISTINCT + + cor0.col1 + col0 * col2 * 41 FROM tab2 AS cor0
----
123099
7780
83207
query I rowsort
SELECT ALL col0 * - col2 + - col1 AS col0 FROM tab2 AS cor0
----
-2087
-220
-3019
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( cor0.col1 ) col2 FROM tab2 cor0
----
-17
-31
-59
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9927
SELECT ALL + col2 * col1 + - cor0.col0 - - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9927
SELECT ALL + col2 * col1 + - cor0.col0 - - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - - 10 * col0 + col2 FROM tab0 AS cor0
----
273
351
972
query I rowsort
SELECT ( ( cor0.col0 ) ) * + ( col2 ) FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT cor1.col0 - 3 AS col1 FROM tab2, tab0 cor0, tab0 AS cor1
----
27 values hashing to 0f07abde3f2df8420b8e2d179c674a53
query I rowsort
SELECT + col0 * + col2 + col0 * + col2 AS col1 FROM tab0 AS cor0
----
14596
1584
70
query I rowsort
SELECT 44 FROM tab1, tab0 cor0, tab0 AS cor1
----
27 values hashing to 0cc3e52e781e46962291c3060c6ae73b
query I rowsort
SELECT + 57 * + col0 AS col0 FROM tab1 AS cor0
----
171
3648
4560
query I rowsort
SELECT DISTINCT + - col0 * 71 AS col1 FROM tab2 AS cor0
----
-497
-5538
-5609
query I rowsort
SELECT DISTINCT col2 * col1 * col0 + - col0 * 82 AS col1 FROM tab1 AS cor0
----
31232
3966
93280
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - tab0.col1 * + col2 col2 FROM tab0
----
-2838
-7462
-97
query I rowsort
SELECT - + 34 * cor0.col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 084eb7f6d2e434c1a92d97f46838c084
query I rowsort
SELECT - ( col1 ) + col1 AS col0 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT col1 + - cor0.col0 * - col1 AS col2 FROM tab1 AS cor0
----
104
1053
650
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9940
SELECT DISTINCT + CAST( NULL AS SIGNED ) AS col2 FROM tab0, tab0 AS cor0, tab1 cor1, tab1 cor2
----
NULL
skipif mysql # not compatible
query I rowsort label-9940
SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col2 FROM tab0, tab0 AS cor0, tab1 cor1, tab1 cor2
----
NULL
query I rowsort
SELECT ( 12 ) + col1 AS col0 FROM tab1 AS cor0
----
22
25
38
query I rowsort
SELECT 50 FROM tab2, tab2 AS cor0, tab1 AS cor1, tab2 AS cor2
----
81 values hashing to 6932c991110d256d3f92f3e9538f8040
query I rowsort
SELECT - 81 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to d0bfe8494f52235d9fcafb5ac5de3f81
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * 33 * + col1 col1 FROM tab1
----
22308
3300
5577
onlyif mysql # use DIV operator for integer division
query I rowsort label-9945
SELECT - ( tab1.col0 ) DIV col2 + - 82 AS col0 FROM tab1
----
-82
-82
-83
skipif mysql # not compatible
query I rowsort label-9945
SELECT - ( tab1.col0 ) / col2 + - 82 AS col0 FROM tab1
----
-82
-82
-83
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9946
SELECT ALL CAST( col1 AS SIGNED ) AS col2 FROM tab0
----
86
91
97
skipif mysql # not compatible
query I rowsort label-9946
SELECT ALL CAST ( col1 AS INTEGER ) AS col2 FROM tab0
----
86
91
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-9947
SELECT DISTINCT + col0 DIV + col1 + + col2 AS col1 FROM tab2 AS cor0
----
27
42
skipif mysql # not compatible
query I rowsort label-9947
SELECT DISTINCT + col0 / + col1 + + col2 AS col1 FROM tab2 AS cor0
----
27
42
query I rowsort
SELECT + + col1 * + col2 + cor0.col2 + 48 * - 52 FROM tab1 cor0
----
-1038
-1152
-1869
query I rowsort
SELECT ALL - ( col1 ) + - col2 AS col1 FROM tab0 AS cor0
----
-119
-173
-98
query I rowsort
SELECT ALL - ( - col0 ) * cor0.col2 - - col1 FROM tab1 cor0
----
188
3658
7693
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9951
SELECT ALL - ( - col1 ) * col0 + + CAST( col2 * col0 AS SIGNED ) col1 FROM tab1 AS cor0
----
240
4288
8720
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9951
SELECT ALL - ( - col1 ) * col0 + + CAST ( col2 * col0 AS INTEGER ) col1 FROM tab1 AS cor0
----
240
4288
8720
query I rowsort
SELECT ( 94 ) * col2 FROM tab2 AS cor0
----
2444
2538
3572
onlyif mysql # use DIV operator for integer division
query I rowsort label-9953
SELECT - - ( + col1 ) DIV col1 FROM tab0 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-9953
SELECT - - ( + col1 ) / col1 FROM tab0 AS cor0
----
1
1
1
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9954
SELECT ALL CAST( - col2 AS SIGNED ) * + col0 AS col1 FROM tab0 AS cor0
----
-35
-7298
-792
skipif mysql # not compatible
query I rowsort label-9954
SELECT ALL CAST ( - col2 AS INTEGER ) * + col0 AS col1 FROM tab0 AS cor0
----
-35
-7298
-792
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 55 + col2 * col0 * - col1 col2 FROM tab0 AS cor0
----
-3340
-664063
-68057
query I rowsort
SELECT ALL + 59 * 58 + col0 AS col1 FROM tab2 AS cor0
----
3429
3500
3501
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 59 col1 FROM tab0 AS cor0
----
-59
query I rowsort
SELECT - tab1.col2 FROM tab1, tab2, tab2 AS cor0, tab0
----
81 values hashing to 2df272448a67587d4635afedff278dcc
query I rowsort
SELECT ALL cor0.col0 + cor0.col1 FROM tab2 cor0
----
137
38
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 56 + - 83 col0 FROM tab1 AS cor0
----
-27
-27
-27
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 42 + - 50 * col1 col0 FROM tab0 AS cor0
----
-4258
-4508
-4808
query I rowsort
SELECT + 7 + cor0.col1 FROM tab2 AS cor0
----
24
38
66
query I rowsort
SELECT ALL + + 46 * col1 * - col1 FROM tab1 AS cor0
----
-31096
-4600
-7774
query I rowsort
SELECT DISTINCT - col0 * col1 + - col1 * - col0 - + 89 FROM tab0 AS cor0
----
-89
query I rowsort
SELECT DISTINCT ( - cor0.col2 ) FROM tab2 AS cor0
----
-26
-27
-38
query I rowsort
SELECT ALL - + col2 * - col1 AS col0 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT ALL - - col2 - col1 AS col1 FROM tab0 AS cor0
----
-53
-9
-96
query I rowsort
SELECT ALL - 84 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 02f1688b8610806ca28739b1735f6ae4
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + - 99 col2 FROM tab2
----
-116
-130
-158
query I rowsort
SELECT ALL - + col2 * ( + col1 + col2 ) FROM tab1 AS cor0
----
-10464
-3819
-4320
query I rowsort
SELECT DISTINCT - col0 * + ( + col1 ) FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT DISTINCT + + col2 * - 19 AS col0 FROM tab2 AS cor0
----
-494
-513
-722
query I rowsort
SELECT DISTINCT cor0.col0 * + ( - col0 ) FROM tab1 AS cor0
----
-4096
-6400
-9
query I rowsort
SELECT + - cor0.col1 * + 57 * - ( cor0.col0 + 54 * col2 ) AS col2 FROM tab0 AS cor0
----
23429679
492081
8853012
skipif mysql # not compatible
query I rowsort
SELECT - tab2.col1 - col0 * CAST ( col0 AS REAL ) AS col0 FROM tab2
----
-6143
-6258
-80
query I rowsort
SELECT ALL + 17 * - col0 FROM tab2
----
-119
-1326
-1343
query I rowsort
SELECT ALL + col1 * col1 - + ( + col0 ) AS col1 FROM tab2
----
210
3403
954
query I rowsort
SELECT ALL col1 * 45 * 53 AS col0 FROM tab1
----
23850
31005
62010
query I rowsort
SELECT ALL - 40 + cor0.col0 FROM tab0, tab1 AS cor0
----
9 values hashing to bd2b664f41aee9382bc4dc0687033d02
query I rowsort
SELECT col0 * + ( + col1 * - col1 ) AS col1 FROM tab2 AS cor0
----
-22831
-271518
-6727
query I rowsort
SELECT + col0 * + col0 + cor0.col1 + col0 FROM tab0 AS cor0
----
1357
686
8101
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 - + col2 col0 FROM tab1
----
-28
-47
-83
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * ( col2 ) * col0 col0 FROM tab0
----
3395
664118
68112
query I rowsort
SELECT DISTINCT + col1 * 10 + - col2 + + tab1.col2 FROM tab1
----
100
130
260
query I rowsort
SELECT ALL - 20 FROM tab1 AS cor0 CROSS JOIN tab0, tab1 cor1, tab1 AS cor2
----
81 values hashing to 3d45fa4e6631691e5f0e0ca86982e9c2
onlyif mysql # use DIV operator for integer division
query I rowsort label-9986
SELECT ALL + tab1.col2 + CAST( - col2 AS SIGNED ) * - col0 - - 95 DIV col1 FROM tab1
----
219
3714
7783
skipif mysql # not compatible
query I rowsort label-9986
SELECT ALL + tab1.col2 + CAST ( - col2 AS INTEGER ) * - col0 - - 95 / col1 FROM tab1
----
219
3714
7783
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * col2 + col0 col1 FROM tab2 AS cor0
----
-1365
-598
-722
query I rowsort
SELECT - 95 + + col0 FROM tab2 AS cor0
----
-16
-17
-88
query I rowsort
SELECT DISTINCT cor0.col2 * 59 AS col1 FROM tab1, tab1 AS cor0
----
3186
3363
5664
onlyif mysql # use DIV operator for integer division
query I rowsort label-9990
SELECT ALL ( + col2 + col1 ) DIV 19 col1 FROM tab1
----
3
4
5
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9990
SELECT ALL ( + col2 + col1 ) / 19 col1 FROM tab1
----
3
4
5
query I rowsort
SELECT DISTINCT 77 + + col0 * - col1 AS col0 FROM tab0
----
-1987
-3318
-8022
query I rowsort
SELECT ALL + 24 AS col0 FROM tab1 cor0
----
24
24
24
query I rowsort
SELECT - cor0.col0 AS col0 FROM tab0, tab2 AS cor0, tab0 cor1, tab2, tab2 AS cor2
----
243 values hashing to b2b584cb071e1d63bf99874835e1bfc4
query I rowsort
SELECT DISTINCT - + col1 + - col2 * - cor0.col1 * - col2 FROM tab1 AS cor0
----
-119821
-32500
-75842
query I rowsort
SELECT DISTINCT - col2 * - 60 FROM tab2 AS cor0
----
1560
1620
2280
query I rowsort
SELECT + col2 + - 80 FROM tab2 AS cor0
----
-42
-53
-54
query I rowsort
SELECT + col1 * col0 - tab0.col0 FROM tab0
----
2040
3360
8010
query I rowsort
SELECT DISTINCT + - 66 * - col1 + + col2 FROM tab1 cor0
----
1770
717
954
query I rowsort
SELECT - - ( cor0.col0 ) + 24 * col1 FROM tab0 AS cor0
----
2088
2273
2363