sqllogictest
Artifact Content
Not logged in

Artifact 50d8e6d044034ddae4ae83adc7120c52bcc7c0eb:


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 col2 - ( 7 ) AS col0 FROM tab2
----
19
20
31

query I rowsort
SELECT - col2 + col2 * col0 AS col1 FROM tab2 AS cor0
----
162
2002
2964

query I rowsort
SELECT DISTINCT - 42 * - ( col1 ) FROM tab0 AS cor0
----
3612
3822
4074

query I rowsort
SELECT DISTINCT + 47 * - 74 * + col2 FROM tab1 AS cor0
----
-187812
-198246
-333888

query I rowsort
SELECT - - 7 + + col1 - col1 AS col2 FROM tab1 AS cor0
----
7
7
7

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5
SELECT ALL - CAST( - ( - col0 ) AS SIGNED ) + tab2.col1 FROM tab2
----
-19
-62
24

skipif mysql # not compatible
query I rowsort label-5
SELECT ALL - CAST ( - ( - col0 ) AS INTEGER ) + tab2.col1 FROM tab2
----
-19
-62
24

query I rowsort
SELECT + 20 * col2 FROM tab1
----
1080
1140
1920

onlyif mysql # use DIV operator for integer division
query I rowsort label-7
SELECT - col0 DIV + col0 + col0 FROM tab2
----
6
77
78

skipif mysql # not compatible
query I rowsort label-7
SELECT - col0 / + col0 + col0 FROM tab2
----
6
77
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 90 + tab2.col1 col0 FROM tab2
----
107
121
149

query I rowsort
SELECT DISTINCT - col1 + 12 AS col2 FROM tab0 AS cor0
----
-74
-79
-85

query I rowsort
SELECT + col1 * - col2 + col1 + col1 AS col2 FROM tab2 AS cor0
----
-1416
-612
-775

query I rowsort
SELECT DISTINCT cor0.col0 * col2 + col1 FROM tab2 AS cor0
----
2087
220
3019

query I rowsort
SELECT - + 6 * col2 + col2 - col2 AS col1 FROM tab1 AS cor0
----
-324
-342
-576

query I rowsort
SELECT ALL col2 * 85 FROM tab2 AS cor0
----
2210
2295
3230

query I rowsort
SELECT + col0 * col0 * + col2 AS col1 FROM tab1
----
233472
486
614400

query I rowsort
SELECT + 52 + - 93 * + col2 - col0 AS col0 FROM tab2 AS cor0
----
-2444
-2466
-3561

query I rowsort
SELECT ALL + cor0.col2 * + 85 AS col2 FROM tab1 AS cor0
----
4590
4845
8160

query I rowsort
SELECT col2 + - col2 * - col0 + - col0 FROM tab1 cor0
----
213
3641
7696

query I rowsort
SELECT DISTINCT 49 * + 80 * col0 AS col2 FROM tab0 AS cor0
----
137200
348880
94080

query I rowsort
SELECT DISTINCT + col2 * cor0.col2 + col0 * + col2 + + col0 AS col2 FROM tab2 AS cor0
----
2782
4525
925

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 81 * col0 col0 FROM tab0
----
1944
2835
7209

query I rowsort
SELECT + ( cor0.col2 ) FROM tab2, tab0, tab0 cor0
----
27 values hashing to 7786718bd8042022537378d40ec87475

onlyif mysql # use DIV operator for integer division
query I rowsort label-22
SELECT ALL - 81 DIV col0 AS col0 FROM tab1
----
-1
-1
-27

skipif mysql # not compatible
query I rowsort label-22
SELECT ALL - 81 / col0 AS col0 FROM tab1
----
-1
-1
-27

query I rowsort
SELECT 96 AS col0 FROM tab1
----
96
96
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 51 * col2 col1 FROM tab0 AS cor0
----
-1683
-4182
-51

query I rowsort
SELECT ALL 22 AS col0 FROM tab1 AS cor0
----
22
22
22

query I rowsort
SELECT + ( col1 ) * col1 * + ( col0 ) FROM tab0 AS cor0
----
177504
329315
737009

query I rowsort
SELECT - col1 + + col2 + + 29 * + col0 AS col0 FROM tab0 AS cor0
----
2572
643
919

query I rowsort
SELECT DISTINCT - col1 + col2 + col2 FROM tab1 AS cor0
----
104
179
82

query I rowsort
SELECT - 37 * - col0 AS col1 FROM tab1
----
111
2368
2960

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 42 col1 FROM tab1
----
42

query I rowsort
SELECT DISTINCT cor0.col1 + - col2 * - col1 FROM tab2 AS cor0
----
1593
663
868

query I rowsort
SELECT DISTINCT col2 * - col0 + - ( col2 ) AS col1 FROM tab1 AS cor0
----
-216
-3705
-7776

onlyif mysql # use DIV operator for integer division
query I rowsort label-33
SELECT + col2 DIV - col0 AS col1 FROM tab1 cor0
----
-1
-18
0

skipif mysql # not compatible
query I rowsort label-33
SELECT + col2 / - col0 AS col1 FROM tab1 cor0
----
-1
-18
0

query I rowsort
SELECT ALL - col1 * - cor0.col2 + col1 FROM tab1 AS cor0
----
1261
1430
580

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + + 33 col0 FROM tab0 AS cor0
----
-2
-56
9

query I rowsort
SELECT DISTINCT col0 * - 79 AS col2 FROM tab1
----
-237
-5056
-6320

query I rowsort
SELECT ALL col1 + ( - col2 ) AS col2 FROM tab1 AS cor0
----
-28
-47
-83

query I rowsort
SELECT DISTINCT + col2 * ( - col1 ) AS col2 FROM tab1 AS cor0
----
-1248
-1404
-570

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + 80 col0 FROM tab1 cor0
----
144
160
83

query I rowsort
SELECT - col2 * + 57 AS col0 FROM tab2 AS cor0
----
-1482
-1539
-2166

query I rowsort
SELECT - col0 * - 21 * + col1 AS col1 FROM tab1 AS cor0
----
13440
1638
21840

query I rowsort
SELECT ALL + col0 + cor0.col0 AS col1 FROM tab1 AS cor0
----
128
160
6

query I rowsort
SELECT DISTINCT - col2 + + col0 AS col1 FROM tab1 AS cor0
----
-16
-51
7

query I rowsort
SELECT DISTINCT 95 AS col0 FROM tab1, tab2 AS cor0, tab2 AS cor1, tab0 AS cor2
----
95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * cor0.col2 + ( - col2 ) col2 FROM tab0 AS cor0
----
34
7216
759

query I rowsort
SELECT DISTINCT + cor0.col2 + tab1.col0 FROM tab1, tab0, tab1 AS cor0
----
9 values hashing to f2656d9e76ae2d6dc568bba21c85e398

query I rowsort
SELECT cor0.col1 FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd

query I rowsort
SELECT - 25 AS col1 FROM tab2, tab0, tab0 AS cor0
----
27 values hashing to 2e7a33467ee3a4d9570560d60302b35a

query I rowsort
SELECT ALL 51 * col1 + 36 * col2 AS col2 FROM tab1 AS cor0
----
2562
3270
4119

query I rowsort
SELECT col1 + col0 * + 84 FROM tab2 AS cor0
----
619
6611
6653

query I rowsort
SELECT 94 FROM tab2, tab2 AS cor0, tab0 cor1, tab2 AS cor2
----
81 values hashing to d876bb0ae813b06a5ee497ecacf37ee6

onlyif mysql # use DIV operator for integer division
query I rowsort label-52
SELECT + col0 * - col2 + + col2 DIV - col1 AS col2 FROM tab2 cor0
----
-189
-2028
-3004

skipif mysql # not compatible
query I rowsort label-52
SELECT + col0 * - col2 + + col2 / - col1 AS col2 FROM tab2 cor0
----
-189
-2028
-3004

query I rowsort
SELECT - + col2 * + col0 + 70 * + col0 FROM tab2 cor0
----
2528
301
3432

query I rowsort
SELECT ALL - 84 * + col1 FROM tab0
----
-7224
-7644
-8148

query I rowsort
SELECT ALL 33 FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to 76da8bc7cae18ecf856438f872430c80

query I rowsort
SELECT + + 2 * - cor0.col2 FROM tab2, tab1, tab2 cor0
----
27 values hashing to c9dae561420572cb9389fe3e7fcc7e77

query I rowsort
SELECT - col0 + col2 + - col0 AS col1 FROM tab2 AS cor0
----
-120
-130
13

query I rowsort
SELECT ( - 73 ) * col1 FROM tab2 AS cor0
----
-1241
-2263
-4307

query I rowsort
SELECT - ( + 43 ) * - cor0.col0 AS col2 FROM tab2 AS cor0
----
301
3354
3397

query I rowsort
SELECT - col0 + 27 * col1 FROM tab1
----
206
271
699

query I rowsort
SELECT - col2 + - ( - col0 ) AS col2 FROM tab2
----
-20
41
52

onlyif mysql # use DIV operator for integer division
query I rowsort label-62
SELECT ALL - col2 DIV col2 col0 FROM tab0
----
-1
-1
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-62
SELECT ALL - col2 / col2 col0 FROM tab0
----
-1
-1
-1

query I rowsort
SELECT ( + cor0.col1 ) + tab0.col1 FROM tab0, tab2 cor0
----
9 values hashing to 07a9fa96c94913f866af2be611e89dab

query I rowsort
SELECT DISTINCT + 94 FROM tab2, tab2 AS cor0
----
94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 31 col0 FROM tab0
----
31
31
31

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-66
SELECT ALL + + CAST( NULL AS SIGNED ) + - ( cor0.col1 ) * - ( cor0.col0 ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-66
SELECT ALL + + CAST ( NULL AS INTEGER ) + - ( cor0.col1 ) * - ( cor0.col0 ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - + ( cor0.col1 ) * + col2 AS col0 FROM tab2 cor0
----
-1534
-646
-837

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 19 col1 FROM tab0
----
19
19
19

query I rowsort
SELECT + - 99 AS col1 FROM tab1 cor0
----
-99
-99
-99

query I rowsort
SELECT DISTINCT + ( - tab0.col2 ) AS col0 FROM tab0
----
-1
-33
-82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col1 * col2 + + 79 col2 FROM tab1 AS cor0
----
1327
1483
649

query I rowsort
SELECT ALL - 29 * cor0.col1 AS col0 FROM tab1 cor0
----
-290
-377
-754

query I rowsort
SELECT DISTINCT + 33 * col1 AS col1 FROM tab2 AS cor0
----
1023
1947
561

onlyif mysql # use DIV operator for integer division
query I rowsort label-74
SELECT ALL + col0 DIV - col0 AS col1 FROM tab1 cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-74
SELECT ALL + col0 / - col0 AS col1 FROM tab1 cor0
----
-1
-1
-1

query I rowsort
SELECT + 79 * - col1 AS col2 FROM tab1 AS cor0
----
-1027
-2054
-790

query I rowsort
SELECT - 74 AS col0 FROM tab1 AS cor0
----
-74
-74
-74

query I rowsort
SELECT ALL + tab0.col2 * 36 * + col2 FROM tab0
----
242064
36
39204

query I rowsort
SELECT + cor0.col2 + + col1 + col2 * col0 FROM tab0 cor0
----
133
7471
911

query I rowsort
SELECT - col1 + ( col1 ) FROM tab0 AS cor0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-80
SELECT + cor0.col2 * CAST( NULL AS SIGNED ) + + cor0.col1 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-80
SELECT + cor0.col2 * CAST ( NULL AS INTEGER ) + + cor0.col1 col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - ( 5 ) * col2 FROM tab1 AS cor0
----
-270
-285
-480

onlyif mysql # use DIV operator for integer division
query I rowsort label-82
SELECT 28 DIV col2 + col2 + - 34 FROM tab0 AS cor0
----
-1
-5
48

skipif mysql # not compatible
query I rowsort label-82
SELECT 28 / col2 + col2 + - 34 FROM tab0 AS cor0
----
-1
-5
48

query I rowsort
SELECT + cor1.col1 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d

query I rowsort
SELECT ALL + - 26 FROM tab0 cor0
----
-26
-26
-26

query I rowsort
SELECT 51 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to d8bf0a05c9c4d2a93812d106baae4752

query I rowsort
SELECT ALL 15 FROM tab0, tab2 AS cor0
----
9 values hashing to d1d280d38bf9c2d5d5ec90dd43aeaffd

query I rowsort
SELECT + col0 * + ( 12 * + col2 ) FROM tab2
----
2268
24336
36024

query I rowsort
SELECT col2 + - 67 FROM tab0
----
-34
-66
15

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-89
SELECT DISTINCT + col2 - - CAST( - col1 AS SIGNED ) FROM tab1
----
28
47
83

skipif mysql # not compatible
query I rowsort label-89
SELECT DISTINCT + col2 - - CAST ( - col1 AS INTEGER ) FROM tab1
----
28
47
83

query I rowsort
SELECT DISTINCT 57 FROM tab1 cor0
----
57

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-91
SELECT ALL - CAST( NULL AS SIGNED ) * col2 + col0 + + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-91
SELECT ALL - CAST ( NULL AS INTEGER ) * col2 + col0 + + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + tab0.col1 - col1 AS col0 FROM tab0
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-93
SELECT col2 DIV - 11 FROM tab0
----
-3
-7
0

skipif mysql # not compatible
query I rowsort label-93
SELECT col2 / - 11 FROM tab0
----
-3
-7
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-94
SELECT + col1 + + col1 DIV 26 FROM tab2
----
17
32
61

skipif mysql # not compatible
query I rowsort label-94
SELECT + col1 + + col1 / 26 FROM tab2
----
17
32
61

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab0.col0 * - col2 + + col0 col1 FROM tab0
----
-7209
-768
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-96
SELECT DISTINCT col0 DIV cor0.col0 + + cor0.col1 + col2 AS col1 FROM tab0 AS cor0
----
120
174
99

skipif mysql # not compatible
query I rowsort label-96
SELECT DISTINCT col0 / cor0.col0 + + cor0.col1 + col2 AS col1 FROM tab0 AS cor0
----
120
174
99

query I rowsort
SELECT DISTINCT + tab0.col1 + 84 FROM tab0
----
170
175
181

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-98
SELECT ALL col0 + + CAST( NULL AS SIGNED ) + ( + col0 ) AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-98
SELECT ALL col0 + + CAST ( NULL AS INTEGER ) + ( + col0 ) AS col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT col1 * + 22 + col2 AS col0 FROM tab2 AS cor0
----
1324
412
709

query I rowsort
SELECT DISTINCT col1 * col0 * + col0 AS col2 FROM tab2 AS cor0
----
106097
1519
358956

query I rowsort
SELECT ALL 3 AS col2 FROM tab2 cor0
----
3
3
3

query I rowsort
SELECT ALL col2 * col1 AS col2 FROM tab0 cor0
----
2838
7462
97

query I rowsort
SELECT ALL 78 * col2 AS col2 FROM tab0 AS cor0
----
2574
6396
78

query I rowsort
SELECT DISTINCT + 54 * ( col0 ) * - col2 + - tab1.col0 * + col2 FROM tab1
----
-200640
-422400
-8910

onlyif mysql # use DIV operator for integer division
query I rowsort label-105
SELECT DISTINCT ( + col1 ) + col1 + + col1 DIV + ( cor0.col0 ) FROM tab2 AS cor0
----
118
34
66

skipif mysql # not compatible
query I rowsort label-105
SELECT DISTINCT ( + col1 ) + col1 + + col1 / + ( cor0.col0 ) FROM tab2 AS cor0
----
118
34
66

onlyif mysql # use DIV operator for integer division
query I rowsort label-106
SELECT cor0.col2 DIV - 61 + cor0.col0 + - col1 AS col1 FROM tab2 AS cor0
----
-24
19
62

skipif mysql # not compatible
query I rowsort label-106
SELECT cor0.col2 / - 61 + cor0.col0 + - col1 AS col1 FROM tab2 AS cor0
----
-24
19
62

onlyif mysql # use DIV operator for integer division
query I rowsort label-107
SELECT + CAST( + 99 AS SIGNED ) + cor0.col2 DIV - col0 FROM tab2 AS cor0
----
96
99
99

skipif mysql # not compatible
query I rowsort label-107
SELECT + CAST ( + 99 AS INTEGER ) + cor0.col2 / - col0 FROM tab2 AS cor0
----
96
99
99

query I rowsort
SELECT DISTINCT + 49 * + 52 FROM tab0 AS cor0
----
2548

onlyif mysql # use DIV operator for integer division
query I rowsort label-109
SELECT + cor0.col0 * col2 + col1 * - col1 DIV col1 FROM tab0 AS cor0
----
-62
706
7207

skipif mysql # not compatible
query I rowsort label-109
SELECT + cor0.col0 * col2 + col1 * - col1 / col1 FROM tab0 AS cor0
----
-62
706
7207

query I rowsort
SELECT ALL - col1 + - col2 * col0 FROM tab2 AS cor0
----
-2087
-220
-3019

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 * - col0 - - col1 col1 FROM tab1 AS cor0
----
104
1053
650

query I rowsort
SELECT ALL - ( cor0.col1 ) FROM tab2 cor0
----
-17
-31
-59

query I rowsort
SELECT - - ( col1 ) + - col2 AS col1 FROM tab0 AS cor0
----
53
9
96

query I rowsort
SELECT DISTINCT - 46 * + col1 * cor0.col0 FROM tab0 AS cor0
----
-156170
-372554
-94944

query I rowsort
SELECT - col2 + - col2 - col2 FROM tab2 AS cor0
----
-114
-78
-81

query I rowsort
SELECT ALL - 47 AS col2 FROM tab1
----
-47
-47
-47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - ( - cor0.col1 ) * 21 + col2 * + col0 col0 FROM tab1 cor0
----
-384
3438
7407

query I rowsort
SELECT DISTINCT cor0.col0 * - col1 + col2 + - 36 * - col1 AS col0 FROM tab0 AS cor0
----
-4741
1065
98

query I rowsort
SELECT DISTINCT - col1 + col0 * col2 FROM tab1 cor0
----
136
3638
7667

query I rowsort
SELECT ALL - 8 - col0 FROM tab1 AS cor0
----
-11
-72
-88

query I rowsort
SELECT ALL - col2 * + cor0.col0 - + ( + cor0.col0 ) * col1 AS col2 FROM tab2 AS cor0
----
-406
-4345
-6630

query I rowsort
SELECT - - 13 FROM tab0 cor0
----
13
13
13

onlyif mysql # use DIV operator for integer division
query I rowsort label-123
SELECT - - col2 DIV col0 AS col2 FROM tab1 cor0
----
0
1
18

skipif mysql # not compatible
query I rowsort label-123
SELECT - - col2 / col0 AS col2 FROM tab1 cor0
----
0
1
18

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-124
SELECT ALL - col2 + + col0 + col1 * col2 * CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-124
SELECT ALL - col2 + + col0 + col1 * col2 * CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col2 * - cor0.col0 * col0 FROM tab1 AS cor0
----
233472
486
614400

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * ( col2 ) col1 FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT ALL + col0 + 13 FROM tab2 AS cor0
----
20
91
92

onlyif mysql # use DIV operator for integer division
query I rowsort label-128
SELECT DISTINCT + col2 * col2 + - col2 DIV col0 FROM tab2 cor0
----
1444
676
726

skipif mysql # not compatible
query I rowsort label-128
SELECT DISTINCT + col2 * col2 + - col2 / col0 FROM tab2 cor0
----
1444
676
726

query I rowsort
SELECT DISTINCT col2 * col2 + col0 AS col2 FROM tab0 AS cor0
----
1113
36
6813

query I rowsort
SELECT DISTINCT + + cor0.col1 + + ( + ( col1 ) ) FROM tab1 AS cor0
----
20
26
52

query I rowsort
SELECT ALL + - col2 * - cor0.col2 AS col2 FROM tab1 AS cor0
----
2916
3249
9216

query I rowsort
SELECT DISTINCT - - col2 * - col1 + + 34 * col0 * - 86 + + ( col2 ) * - col1 * cor0.col0 FROM tab2 cor0
----
-27164
-282676
-349258

onlyif mysql # use DIV operator for integer division
query I rowsort label-133
SELECT ALL + col0 + 35 * 43 + + col2 * 76 DIV - 84 col0 FROM tab0 AS cor0
----
1500
1520
1540

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-133
SELECT ALL + col0 + 35 * 43 + + col2 * 76 / - 84 col0 FROM tab0 AS cor0
----
1500
1520
1540

query I rowsort
SELECT - - col0 + col0 * 77 AS col0 FROM tab1 AS cor0
----
234
4992
6240

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-135
SELECT + col0 * + CAST( NULL AS SIGNED ) AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-135
SELECT + col0 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-136
SELECT ALL col2 - ( - ( col2 ) ) * - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-136
SELECT ALL col2 - ( - ( col2 ) ) * - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col1 + + col2 * cor0.col2 * col2 AS col2 FROM tab1 AS cor0
----
157490
185203
884749

query I rowsort
SELECT col1 * ( - 51 ) FROM tab1 AS cor0
----
-1326
-510
-663

query I rowsort
SELECT + 82 + - col2 AS col1 FROM tab1 AS cor0
----
-14
25
28

query I rowsort
SELECT - 53 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to fee5c00ad71c23e23683a32c71fe6e7d

query I rowsort
SELECT + 69 + col1 * col0 FROM tab0 AS cor0
----
2133
3464
8168

onlyif mysql # use DIV operator for integer division
query I rowsort label-142
SELECT DISTINCT - col0 + col2 DIV - col1 FROM tab1
----
-5
-69
-87

skipif mysql # not compatible
query I rowsort label-142
SELECT DISTINCT - col0 + col2 / - col1 FROM tab1
----
-5
-69
-87

query I rowsort
SELECT 65 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 1c9d0bf96cd3361942fadad668138b9c

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 75 col0 FROM tab1, tab0, tab2 AS cor0
----
75

query I rowsort
SELECT DISTINCT - 74 + col1 AS col2 FROM tab0 AS cor0
----
12
17
23

query I rowsort
SELECT 28 * col0 AS col0 FROM tab2
----
196
2184
2212

query I rowsort
SELECT ( 6 * col2 ) FROM tab1
----
324
342
576

onlyif mysql # use DIV operator for integer division
query I rowsort label-148
SELECT DISTINCT col0 DIV + ( + col2 * ( col1 ) ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-148
SELECT DISTINCT col0 / + ( + col2 * ( col1 ) ) FROM tab0
----
0

query I rowsort
SELECT ( ( - col2 ) ) * - col2 AS col1 FROM tab2 AS cor0
----
1444
676
729

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 5 col2 FROM tab1 AS cor0
----
-5
-5
-5

query I rowsort
SELECT + 33 + - cor0.col2 * + col0 AS col1 FROM tab2 AS cor0
----
-156
-1995
-2969

query I rowsort
SELECT 10 * + col0 AS col2 FROM tab2 AS cor0
----
70
780
790

query I rowsort
SELECT ( col0 + col0 ) FROM tab2
----
14
156
158

query I rowsort
SELECT - col2 + col0 * + col1 FROM tab2 AS cor0
----
1305
190
4576

query I rowsort
SELECT + 82 * + col2 AS col1 FROM tab2 AS cor0
----
2132
2214
3116

query I rowsort
SELECT + - 68 * + col1 AS col2 FROM tab0 cor0
----
-5848
-6188
-6596

query I rowsort
SELECT col1 * - cor0.col2 AS col1 FROM tab0 cor0
----
-2838
-7462
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - cor0.col0 + col1 col2 FROM tab1 AS cor0
----
29
74
93

query I rowsort
SELECT ALL + 37 + col0 * ( col2 ) FROM tab2 AS cor0
----
2065
226
3039

query I rowsort
SELECT + - 38 * col1 + - 58 FROM tab2 AS cor0
----
-1236
-2300
-704

query I rowsort
SELECT DISTINCT cor0.col1 * - 6 AS col2 FROM tab1 AS cor0
----
-156
-60
-78

query I rowsort
SELECT DISTINCT col1 + col2 * col2 + - col1 FROM tab2 AS cor0
----
1444
676
729

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + col2 + + cor0.col0 col2 FROM tab1 AS cor0
----
1328
1407
634

skipif mysql # not compatible
query I rowsort
SELECT - tab2.col0 * + CAST ( col1 AS REAL ) * tab2.col1 FROM tab2
----
-22831
-271518
-6727

query I rowsort
SELECT - - cor0.col1 * 81 + 57 AS col0 FROM tab0 AS cor0
----
7023
7428
7914

query I rowsort
SELECT - + ( 34 ) AS col0 FROM tab1 AS cor0
----
-34
-34
-34

query I rowsort
SELECT + 9 * col2 FROM tab2 AS cor0
----
234
243
342

query I rowsort
SELECT - 94 + col0 * col0 + + col1 AS col0 FROM tab2 AS cor0
----
-14
6049
6164

query I rowsort
SELECT col0 * + 61 AS col2 FROM tab2
----
427
4758
4819

query I rowsort
SELECT ALL cor0.col2 - 21 FROM tab0 AS cor0
----
-20
12
61

query I rowsort
SELECT DISTINCT - ( ( col2 ) ) * col0 + + col1 FROM tab1 AS cor0
----
-136
-3638
-7667

query I rowsort
SELECT ALL 2 FROM tab1, tab0 AS cor0
----
9 values hashing to 84dbfaf9bc17dd097f15bc36b4186261

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-173
SELECT ( 71 ) * - col2 + CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-173
SELECT ( 71 ) * - col2 + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL ( - col0 ) * col1 FROM tab1 cor0
----
-1040
-640
-78

query I rowsort
SELECT - 79 - + 38 AS col0 FROM tab2, tab0 cor0
----
9 values hashing to 52dac45f33d6404e37f10f4a0ca24a50

query I rowsort
SELECT - tab1.col2 * + 30 AS col2 FROM tab1
----
-1620
-1710
-2880

query I rowsort
SELECT - cor0.col2 * col1 * - col1 FROM tab1 AS cor0
----
16224
36504
5700

query I rowsort
SELECT ALL 75 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 22042bfd4d787415457a42bb93d48eea

query I rowsort
SELECT DISTINCT - ( col0 ) + - 21 AS col2 FROM tab0 AS cor0
----
-110
-45
-56

query I rowsort
SELECT DISTINCT + - 49 + - col0 AS col1 FROM tab1 AS cor0
----
-113
-129
-52

query I rowsort
SELECT ALL + ( col0 ) + 80 * + 91 AS col1 FROM tab2 cor0
----
7287
7358
7359

query I rowsort
SELECT ALL 31 * 70 + - col2 FROM tab1
----
2074
2113
2116

query I rowsort
SELECT ALL + 37 + col0 FROM tab2
----
115
116
44

onlyif mysql # use DIV operator for integer division
query I rowsort label-184
SELECT ALL - tab1.col0 + 50 DIV - col1 AS col2 FROM tab1
----
-4
-69
-83

skipif mysql # not compatible
query I rowsort label-184
SELECT ALL - tab1.col0 + 50 / - col1 AS col2 FROM tab1
----
-4
-69
-83

query I rowsort
SELECT col2 * + col1 - - tab2.col1 AS col0 FROM tab2
----
1593
663
868

onlyif mysql # use DIV operator for integer division
query I rowsort label-186
SELECT + col2 + - col0 DIV - col1 AS col0 FROM tab2
----
27
27
42

skipif mysql # not compatible
query I rowsort label-186
SELECT + col2 + - col0 / - col1 AS col0 FROM tab2
----
27
27
42

query I rowsort
SELECT DISTINCT + 10 + col0 * col2 AS col1 FROM tab0
----
45
7308
802

onlyif mysql # use DIV operator for integer division
query I rowsort label-188
SELECT ALL col1 + 62 DIV 10 AS col2 FROM tab0 AS cor0
----
103
92
97

skipif mysql # not compatible
query I rowsort label-188
SELECT ALL col1 + 62 / 10 AS col2 FROM tab0 AS cor0
----
103
92
97

query I rowsort
SELECT - + col0 + ( + col2 + - col1 ) FROM tab2 AS cor0
----
-11
-111
-58

query I rowsort
SELECT - col0 * + 97 AS col0 FROM tab2 AS cor0
----
-679
-7566
-7663

query I rowsort
SELECT - - col1 * + col1 - + ( - col0 ) AS col0 FROM tab0 AS cor0
----
7420
8370
9444

query I rowsort
SELECT DISTINCT col0 * col0 + + col1 AS col0 FROM tab0 cor0
----
1322
662
8012

query I rowsort
SELECT ALL - col1 * + col2 - col1 * col0 FROM tab0 AS cor0
----
-15561
-3492
-4902

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-194
SELECT DISTINCT + - col2 * - CAST( NULL AS SIGNED ) - cor0.col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-194
SELECT DISTINCT + - col2 * - CAST ( NULL AS INTEGER ) - cor0.col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT + - col1 * ( 38 ) + col0 FROM tab0 AS cor0
----
-3244
-3369
-3651

onlyif mysql # use DIV operator for integer division
query I rowsort label-196
SELECT ALL + col0 DIV + col1 AS col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-196
SELECT ALL + col0 / + col1 AS col1 FROM tab0
----
0
0
0

query I rowsort
SELECT DISTINCT - 67 FROM tab1, tab0, tab2 cor0
----
-67

query I rowsort
SELECT DISTINCT col1 * tab0.col1 * - ( col0 * + col2 + + ( col0 ) ) FROM tab0
----
-6035136
-61171747
-658630

query I rowsort
SELECT col2 * col0 + 91 * + col1 - - 87 FROM tab0 AS cor0
----
15666
8705
8949

query I rowsort
SELECT + col0 + - ( col2 ) * + col1 AS col0 FROM tab0 AS cor0
----
-2814
-62
-7373

query I rowsort
SELECT - + col1 * - 97 - 96 * + col1 AS col2 FROM tab0 AS cor0
----
86
91
97

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab2, tab2 AS cor1, tab1 cor2
----
972 values hashing to 980274175fafec015a83080672486a9a

onlyif mysql # use DIV operator for integer division
query I rowsort label-203
SELECT - col0 + + col0 DIV - 83 + - col0 * ( - col0 + - cor0.col0 ) FROM tab1 AS cor0
----
12720
15
8128

skipif mysql # not compatible
query I rowsort label-203
SELECT - col0 + + col0 / - 83 + - col0 * ( - col0 + - cor0.col0 ) FROM tab1 AS cor0
----
12720
15
8128

query I rowsort
SELECT ALL + - 40 * - col0 AS col0 FROM tab2 AS cor0
----
280
3120
3160

query I rowsort
SELECT DISTINCT - col0 + col0 * - 83 AS col2 FROM tab2 AS cor0
----
-588
-6552
-6636

onlyif mysql # use DIV operator for integer division
query I rowsort label-206
SELECT DISTINCT - col1 DIV col2 FROM tab0 cor0
----
-1
-2
-97

skipif mysql # not compatible
query I rowsort label-206
SELECT DISTINCT - col1 / col2 FROM tab0 cor0
----
-1
-2
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( col2 ) - - 0 * + cor0.col2 col1 FROM tab1 AS cor0
----
-54
-57
-96

query I rowsort
SELECT ALL - + cor0.col1 * - col2 AS col0 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT DISTINCT col1 * cor0.col1 * ( + col0 ) + - col1 * - 82 * 45 FROM tab0 AS cor0
----
1072799
494844
687245

query I rowsort
SELECT DISTINCT + 38 + col2 AS col1 FROM tab0 cor0
----
120
39
71

query I rowsort
SELECT - ( col0 ) * 75 AS col1 FROM tab2 AS cor0
----
-525
-5850
-5925

query I rowsort
SELECT ALL + ( col2 + tab2.col0 ) * col0 AS col2 FROM tab2
----
238
8112
9243

query I rowsort
SELECT 52 * col1 + - col1 * - 11 FROM tab0
----
5418
5733
6111

onlyif mysql # use DIV operator for integer division
query I rowsort label-214
SELECT - - col2 DIV col0 AS col0 FROM tab2 AS cor0
----
0
0
3

skipif mysql # not compatible
query I rowsort label-214
SELECT - - col2 / col0 AS col0 FROM tab2 AS cor0
----
0
0
3

query I rowsort
SELECT - - 19 * col2 AS col2 FROM tab0 cor0
----
1558
19
627

query I rowsort
SELECT 4 + 44 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 8b09cc2c99c2102036162d063e0e5a4b

query I rowsort
SELECT + - cor0.col0 + 47 AS col2 FROM tab2 AS cor0
----
-31
-32
40

onlyif mysql # use DIV operator for integer division
query I rowsort label-218
SELECT DISTINCT col2 DIV tab1.col0 + col0 * + col1 FROM tab1
----
1041
640
96

skipif mysql # not compatible
query I rowsort label-218
SELECT DISTINCT col2 / tab1.col0 + col0 * + col1 FROM tab1
----
1041
640
96

query I rowsort
SELECT - 82 * + 1 FROM tab2 AS cor0
----
-82
-82
-82

query I rowsort
SELECT - + ( col0 ) + + col2 AS col1 FROM tab1 cor0
----
-7
16
51

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-221
SELECT DISTINCT - CAST( NULL AS SIGNED ) + + cor0.col0 AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-221
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + + cor0.col0 AS col2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL ( - 37 ) AS col2 FROM tab0 AS cor0
----
-37
-37
-37

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 57 * col0 col2 FROM tab1
----
-171
-3648
-4560

query I rowsort
SELECT ALL 70 * + col0 + col0 * col0 AS col1 FROM tab1 AS cor0
----
12000
219
8576

query I rowsort
SELECT - ( - col2 ) AS col1 FROM tab0 cor0
----
1
33
82

query I rowsort
SELECT ALL - tab1.col1 AS col0 FROM tab2, tab1 AS cor0 CROSS JOIN tab1
----
27 values hashing to c7890469eabb2c6fc81454b35d2333b6

query I rowsort
SELECT + 63 + col2 FROM tab1
----
117
120
159

query I rowsort
SELECT ALL col0 * + col0 - + col2 AS col2 FROM tab1 AS cor0
----
-45
4039
6304

query I rowsort
SELECT DISTINCT col1 + 61 AS col0 FROM tab1 AS cor0
----
71
74
87

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-230
SELECT DISTINCT + CAST( NULL AS SIGNED ) + + col2 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-230
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + + col2 FROM tab0 cor0
----
NULL

query I rowsort
SELECT ALL - col1 + col0 * cor0.col0 - - col1 * col1 AS col0 FROM tab0 AS cor0
----
10537
16111
7886

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-232
SELECT - + CAST( ( + col2 ) AS SIGNED ) + CAST( NULL AS SIGNED ) * cor0.col0 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-232
SELECT - + CAST ( ( + col2 ) AS INTEGER ) + CAST ( NULL AS INTEGER ) * cor0.col0 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 49 + ( - col2 ) col0 FROM tab1 AS cor0
----
-103
-106
-145

onlyif mysql # use DIV operator for integer division
query I rowsort label-234
SELECT ALL - + col0 - + col0 DIV cor0.col1 col2 FROM tab1 cor0
----
-3
-70
-86

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-234
SELECT ALL - + col0 - + col0 / cor0.col1 col2 FROM tab1 cor0
----
-3
-70
-86

query I rowsort
SELECT + - col2 + col1 AS col2 FROM tab0 cor0
----
53
9
96

query I rowsort
SELECT ALL + - 28 * + 73 + - col2 FROM tab0 AS cor0
----
-2045
-2077
-2126

query I rowsort
SELECT DISTINCT - 10 + col0 * + col1 FROM tab1 AS cor0
----
1030
630
68

query I rowsort
SELECT DISTINCT - col1 + - col1 - + col1 AS col2 FROM tab1 AS cor0
----
-30
-39
-78

onlyif mysql # use DIV operator for integer division
query I rowsort label-239
SELECT + ( - col1 ) * col2 + 55 DIV + 37 FROM tab0 AS cor0
----
-2837
-7461
-96

skipif mysql # not compatible
query I rowsort label-239
SELECT + ( - col1 ) * col2 + 55 / + 37 FROM tab0 AS cor0
----
-2837
-7461
-96

query I rowsort
SELECT - col2 * 17 + + cor0.col2 AS col2 FROM tab2 AS cor0
----
-416
-432
-608

query I rowsort
SELECT ALL - cor0.col1 * col1 + - col2 AS col2 FROM tab2 AS cor0
----
-327
-3507
-988

query I rowsort
SELECT 64 * 79 + + col0 FROM tab1 AS cor0
----
5059
5120
5136

query I rowsort
SELECT - 84 AS col0 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 02f1688b8610806ca28739b1735f6ae4

onlyif mysql # use DIV operator for integer division
query I rowsort label-244
SELECT ALL - col1 + + col0 DIV - col1 FROM tab1 AS cor0
----
-16
-19
-26

skipif mysql # not compatible
query I rowsort label-244
SELECT ALL - col1 + + col0 / - col1 FROM tab1 AS cor0
----
-16
-19
-26

onlyif mysql # use DIV operator for integer division
query I rowsort label-245
SELECT - cor0.col2 DIV - col2 AS col2 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-245
SELECT - cor0.col2 / - col2 AS col2 FROM tab1 AS cor0
----
1
1
1

query I rowsort
SELECT ALL + cor0.col2 + + ( - cor0.col2 ) AS col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - col0 - - 14 AS col2 FROM tab1 AS cor0
----
-50
-66
11

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-248
SELECT ALL col1 + - CAST( - 1 AS SIGNED ) + col2 * ( - 5 ) FROM tab0 cor0
----
-318
-78
93

skipif mysql # not compatible
query I rowsort label-248
SELECT ALL col1 + - CAST ( - 1 AS INTEGER ) + col2 * ( - 5 ) FROM tab0 cor0
----
-318
-78
93

query I rowsort
SELECT ALL col2 * col1 + col2 FROM tab2 AS cor0
----
1560
684
864

query I rowsort
SELECT - col0 + - 83 AS col2 FROM tab2 AS cor0
----
-161
-162
-90

query I rowsort
SELECT DISTINCT cor0.col1 + + 26 FROM tab0 AS cor0
----
112
117
123

onlyif mysql # use DIV operator for integer division
query I rowsort label-252
SELECT col1 * + col2 - 74 DIV col2 FROM tab0 AS cor0
----
23
2836
7462

skipif mysql # not compatible
query I rowsort label-252
SELECT col1 * + col2 - 74 / col2 FROM tab0 AS cor0
----
23
2836
7462

query I rowsort
SELECT DISTINCT - - cor0.col2 - - 32 FROM tab1 AS cor0
----
128
86
89

query I rowsort
SELECT DISTINCT col0 + - 18 AS col1 FROM tab0
----
17
6
71

query I rowsort
SELECT + tab1.col1 * 65 * col1 FROM tab1
----
10985
43940
6500

query I rowsort
SELECT ( col0 ) * col0 + + col0 AS col1 FROM tab0 AS cor0
----
1260
600
8010

onlyif mysql # use DIV operator for integer division
query I rowsort label-257
SELECT - 59 DIV - col1 + col2 AS col1 FROM tab1 cor0
----
100
56
62

skipif mysql # not compatible
query I rowsort label-257
SELECT - 59 / - col1 + col2 AS col1 FROM tab1 cor0
----
100
56
62

query I rowsort
SELECT ALL col0 + 51 AS col1 FROM tab0
----
140
75
86

onlyif mysql # use DIV operator for integer division
query I rowsort label-259
SELECT ALL 9 DIV cor0.col1 FROM tab2, tab1 cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

skipif mysql # not compatible
query I rowsort label-259
SELECT ALL 9 / cor0.col1 FROM tab2, tab1 cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

onlyif mysql # use DIV operator for integer division
query I rowsort label-260
SELECT + col2 DIV + col2 + col0 + - col2 AS col0 FROM tab1
----
-15
-50
8

skipif mysql # not compatible
query I rowsort label-260
SELECT + col2 / + col2 + col0 + - col2 AS col0 FROM tab1
----
-15
-50
8

query I rowsort
SELECT ALL + col0 + tab0.col0 FROM tab0
----
178
48
70

query I rowsort
SELECT ALL - ( + ( cor1.col2 ) ) FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 0dc9bbe392d52df93d2a115d7f622dba

query I rowsort
SELECT DISTINCT - 1 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-1

query I rowsort
SELECT ALL + col0 * 4 * - 97 AS col0 FROM tab0
----
-13580
-34532
-9312

query I rowsort
SELECT - tab2.col1 + cor0.col1 FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to 9b7a2a902d3451f8fc30dda59e4968c9

onlyif mysql # use DIV operator for integer division
query I rowsort label-266
SELECT - col2 DIV tab1.col1 FROM tab1
----
-2
-5
-7

skipif mysql # not compatible
query I rowsort label-266
SELECT - col2 / tab1.col1 FROM tab1
----
-2
-5
-7

query I rowsort
SELECT ALL 87 * + tab2.col0 + - col2 FROM tab2
----
582
6760
6835

query I rowsort
SELECT ( 40 ) FROM tab2
----
40
40
40

onlyif mysql # use DIV operator for integer division
query I rowsort label-269
SELECT + cor0.col0 + cor0.col2 DIV col2 FROM tab0 AS cor0
----
25
36
90

skipif mysql # not compatible
query I rowsort label-269
SELECT + cor0.col0 + cor0.col2 / col2 FROM tab0 AS cor0
----
25
36
90

query I rowsort
SELECT - cor0.col2 + - col2 * - 39 * + col1 FROM tab2 AS cor0
----
25156
32616
59800

query I rowsort
SELECT + 31 + col2 FROM tab0 cor0
----
113
32
64

query I rowsort
SELECT 49 - - col2 * 1 AS col1 FROM tab1 AS cor0
----
103
106
145

query I rowsort
SELECT - + cor0.col2 + col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT + - col0 - + col2 * 83 AS col0 FROM tab2 AS cor0
----
-2236
-2248
-3233

query I rowsort
SELECT ALL ( + col1 ) AS col0 FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT + + col2 * col2 * ( ( - col1 ) * col0 ) AS col1 FROM tab2 AS cor0
----
-158193
-1939292
-3110952

onlyif mysql # use DIV operator for integer division
query I rowsort label-277
SELECT col2 + col1 DIV ( col2 * col1 ) FROM tab0 AS cor0
----
2
33
82

skipif mysql # not compatible
query I rowsort label-277
SELECT col2 + col1 / ( col2 * col1 ) FROM tab0 AS cor0
----
2
33
82

query I rowsort
SELECT + - 79 + - col1 AS col2 FROM tab0 AS cor0
----
-165
-170
-176

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-279
SELECT col0 * tab2.col2 * CAST( - 20 + col2 AS SIGNED ) AS col1 FROM tab2
----
12168
1323
54036

skipif mysql # not compatible
query I rowsort label-279
SELECT col0 * tab2.col2 * CAST ( - 20 + col2 AS INTEGER ) AS col1 FROM tab2
----
12168
1323
54036

query I rowsort
SELECT + - cor0.col0 FROM tab0, tab2, tab2 AS cor0
----
27 values hashing to c82df1de3cb666224690a83f3d790d79

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-281
SELECT + col1 * col1 + CAST( col2 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
157
265
730

skipif mysql # not compatible
query I rowsort label-281
SELECT + col1 * col1 + CAST ( col2 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
157
265
730

onlyif mysql # use DIV operator for integer division
query I rowsort label-282
SELECT - tab1.col1 DIV tab1.col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-282
SELECT - tab1.col1 / tab1.col2 FROM tab1
----
0
0
0

query I rowsort
SELECT - col0 * col0 + + 75 FROM tab2
----
-6009
-6166
26

query I rowsort
SELECT DISTINCT + tab0.col0 + col2 - + col0 * col0 AS col2 FROM tab0
----
-1189
-519
-7750

query I rowsort
SELECT 62 * - col0 FROM tab1
----
-186
-3968
-4960

query I rowsort
SELECT DISTINCT + 5 * + col0 AS col1 FROM tab0 AS cor0
----
120
175
445

query I rowsort
SELECT - - col1 - cor0.col0 AS col2 FROM tab1 AS cor0
----
-54
-67
23

query I rowsort
SELECT + ( col2 ) + col1 FROM tab1 AS cor0
----
109
67
80

query I rowsort
SELECT + col2 * - ( + 52 + + col1 ) FROM tab2 AS cor0
----
-2241
-2622
-2886

query I rowsort
SELECT cor0.col2 + + 41 FROM tab1 cor0
----
137
95
98

query I rowsort
SELECT ALL - col2 * - 7 FROM tab1 AS cor0
----
378
399
672

query I rowsort
SELECT ALL col0 * 24 AS col0 FROM tab1 AS cor0
----
1536
1920
72

query I rowsort
SELECT ALL + + cor0.col2 + col2 * - col1 FROM tab1 AS cor0
----
-1152
-1350
-513

query I rowsort
SELECT ALL - col2 + - 85 FROM tab2 cor0
----
-111
-112
-123

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-295
SELECT DISTINCT cor0.col0 * CAST( col0 * col1 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
118825
49536
720811

skipif mysql # not compatible
query I rowsort label-295
SELECT DISTINCT cor0.col0 * CAST ( col0 * col1 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
118825
49536
720811

query I rowsort
SELECT DISTINCT - cor0.col0 * + 31 * col2 FROM tab2 AS cor0
----
-5859
-62868
-93062

query I rowsort
SELECT - col2 * 63 + + ( - col2 ) FROM tab2 AS cor0
----
-1664
-1728
-2432

query I rowsort
SELECT DISTINCT + 88 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
88

query I rowsort
SELECT - 44 * col1 AS col0 FROM tab1
----
-1144
-440
-572

query I rowsort
SELECT + - col0 + - cor0.col0 AS col1 FROM tab1 AS cor0
----
-128
-160
-6

query I rowsort
SELECT col1 * - col1 + cor0.col2 AS col0 FROM tab1 AS cor0
----
-43
-622
-73

query I rowsort
SELECT DISTINCT - - cor0.col1 * + 2 * + col0 + - col1 * cor0.col1 * cor0.col0 AS col1 FROM tab2 cor0
----
-20145
-262314
-6293

query I rowsort
SELECT DISTINCT - + col0 + 74 FROM tab0 AS cor0
----
-15
39
50

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-304
SELECT CAST( - col0 AS SIGNED ) FROM tab0 AS cor0
----
-24
-35
-89

skipif mysql # not compatible
query I rowsort label-304
SELECT CAST ( - col0 AS INTEGER ) FROM tab0 AS cor0
----
-24
-35
-89

query I rowsort
SELECT DISTINCT - col0 * 67 FROM tab0
----
-1608
-2345
-5963

query I rowsort
SELECT - + 20 * + col0 FROM tab0 cor0
----
-1780
-480
-700

query I rowsort
SELECT DISTINCT 72 AS col1 FROM tab1, tab0 AS cor0
----
72

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-308
SELECT DISTINCT CAST( 82 AS SIGNED ) AS col0 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
82

skipif mysql # not compatible
query I rowsort label-308
SELECT DISTINCT CAST ( 82 AS INTEGER ) AS col0 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
82

query I rowsort
SELECT ALL - - 34 + col2 * col1 FROM tab0 AS cor0
----
131
2872
7496

query I rowsort
SELECT col1 * col2 * + cor0.col2 AS col2 FROM tab2 AS cor0
----
22599
24548
39884

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - ( col0 ) ) col2 FROM tab0
----
-24
-35
-89

query I rowsort
SELECT col0 + 83 FROM tab2 AS cor0
----
161
162
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col0 + + 14 col0 FROM tab1 AS cor0
----
17
78
94

query I rowsort
SELECT DISTINCT cor0.col2 * col2 AS col1 FROM tab1 cor0
----
2916
3249
9216

query I rowsort
SELECT + - col2 * ( + col1 ) AS col0 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT 62 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 51dd2771d516ceb935483eded78a5fa0

query I rowsort
SELECT 30 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to da5de0c411a2c0f445400f1b63ea9f89

query I rowsort
SELECT ALL + col1 * - col0 AS col0 FROM tab0 cor0
----
-2064
-3395
-8099

query I rowsort
SELECT col0 + - ( col1 ) AS col0 FROM tab0 AS cor0
----
-2
-62
-62

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-320
SELECT DISTINCT - + col2 + - CAST( NULL AS SIGNED ) * - col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-320
SELECT DISTINCT - + col2 + - CAST ( NULL AS INTEGER ) * - col2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT + col2 * - col0 * col0 FROM tab1 AS cor0
----
-233472
-486
-614400

query I rowsort
SELECT - col2 * 36 AS col0 FROM tab1 AS cor0
----
-1944
-2052
-3456

query I rowsort
SELECT ALL 29 + 96 FROM tab0 AS cor0
----
125
125
125

query I rowsort
SELECT ALL - col2 * cor0.col1 + cor0.col1 FROM tab2 AS cor0
----
-1475
-629
-806

query I rowsort
SELECT DISTINCT col2 * col1 + + cor0.col1 AS col0 FROM tab1 AS cor0
----
1261
1430
580

onlyif mysql # use DIV operator for integer division
query I rowsort label-326
SELECT - col0 DIV col1 AS col1 FROM tab2 AS cor0
----
-1
-4
0

skipif mysql # not compatible
query I rowsort label-326
SELECT - col0 / col1 AS col1 FROM tab2 AS cor0
----
-1
-4
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-327
SELECT ALL - + cor0.col1 - ( col1 * + CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-327
SELECT ALL - + cor0.col1 - ( col1 * + CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 + ( - tab1.col1 ) * + col0 FROM tab1
----
-1027
-52
-630

onlyif mysql # use DIV operator for integer division
query I rowsort label-329
SELECT DISTINCT + - 36 + - col1 DIV 55 + col0 AS col1 FROM tab2 AS cor0
----
-29
41
43

skipif mysql # not compatible
query I rowsort label-329
SELECT DISTINCT + - 36 + - col1 / 55 + col0 AS col1 FROM tab2 AS cor0
----
-29
41
43

query I rowsort
SELECT ALL col0 - col1 FROM tab2 cor0
----
-24
19
62

query I rowsort
SELECT col1 * + col1 + - col0 FROM tab1 AS cor0
----
36
673
89

query I rowsort
SELECT - 96 + + col0 FROM tab2 AS cor0
----
-17
-18
-89

query I rowsort
SELECT ALL - + 70 * col1 * col1 FROM tab0 AS cor0
----
-517720
-579670
-658630

query I rowsort
SELECT DISTINCT cor0.col2 * col1 AS col0 FROM tab1 AS cor0
----
1248
1404
570

onlyif mysql # use DIV operator for integer division
query I rowsort label-335
SELECT 82 DIV - cor0.col0 FROM tab2 AS cor0
----
-1
-1
-11

skipif mysql # not compatible
query I rowsort label-335
SELECT 82 / - cor0.col0 FROM tab2 AS cor0
----
-1
-1
-11

query I rowsort
SELECT ALL cor0.col1 * - col1 * + 20 AS col0 FROM tab1 AS cor0
----
-13520
-2000
-3380

query I rowsort
SELECT DISTINCT - - ( - col0 ) * 2 * col1 + - col1 * col1 FROM tab1 AS cor0
----
-1380
-2249
-832

query I rowsort
SELECT ALL + col0 * - col2 + + cor0.col2 + - 46 * col1 FROM tab1 AS cor0
----
-1304
-4051
-8182

query I rowsort
SELECT - ( 51 ) - + tab2.col1 AS col1 FROM tab2
----
-110
-68
-82

query I rowsort
SELECT tab1.col1 + + col1 * + tab1.col2 * - col2 FROM tab1
----
-119795
-32480
-75790

onlyif mysql # use DIV operator for integer division
query I rowsort label-341
SELECT - col1 + 30 + - col2 * ( - col0 ) DIV col2 AS col0 FROM tab0
----
-32
-32
28

skipif mysql # not compatible
query I rowsort label-341
SELECT - col1 + 30 + - col2 * ( - col0 ) / col2 AS col0 FROM tab0
----
-32
-32
28

query I rowsort
SELECT - ( cor0.col2 + - tab0.col0 ) AS col0 FROM tab0, tab2 cor0
----
9 values hashing to 77d5402d9a44ec3df4c59b12a5c1c789

query I rowsort
SELECT DISTINCT col0 * col1 - - col0 FROM tab2
----
1422
224
4680

query I rowsort
SELECT DISTINCT tab0.col0 + - tab0.col0 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
0

query I rowsort
SELECT DISTINCT + col0 * col0 - - col0 FROM tab1 cor0
----
12
4160
6480

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-346
SELECT + - CAST( NULL AS SIGNED ) * 45 AS col0 FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-346
SELECT + - CAST ( NULL AS INTEGER ) * 45 AS col0 FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT DISTINCT - col1 - ( + col1 ) FROM tab2
----
-118
-34
-62

query I rowsort
SELECT tab0.col1 - + tab0.col2 * tab0.col2 * 42 AS col1 FROM tab0
----
-282317
-45652
55

query I rowsort
SELECT ALL + ( col1 ) * col1 + + col2 FROM tab2
----
327
3507
988

skipif mysql # not compatible
query I rowsort
SELECT - cor0.col0 + CAST ( + 27 AS REAL ) FROM tab2, tab2 AS cor0
----
9 values hashing to 79594e5a945fc94179551fa2b81a8e26

query I rowsort
SELECT ALL ( 10 ) * cor1.col0 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to eac72a19176f52ed86650bfbb5c81eb1

query I rowsort
SELECT + 72 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 906b63c9adb7d9ac7355cab71a25fc49

onlyif mysql # use DIV operator for integer division
query I rowsort label-353
SELECT + col2 * - col2 * + cor0.col0 + + col2 DIV col1 AS col1 FROM tab0 AS cor0
----
-26136
-35
-598436

skipif mysql # not compatible
query I rowsort label-353
SELECT + col2 * - col2 * + cor0.col0 + + col2 / col1 AS col1 FROM tab0 AS cor0
----
-26136
-35
-598436

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * tab1.col1 + + tab1.col2 col1 FROM tab1
----
157
265
730

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-355
SELECT - col2 * - CAST( col0 AS SIGNED ) + col1 * + col1 FROM tab1 AS cor0
----
3748
7849
838

skipif mysql # not compatible
query I rowsort label-355
SELECT - col2 * - CAST ( col0 AS INTEGER ) + col1 * + col1 FROM tab1 AS cor0
----
3748
7849
838

query I rowsort
SELECT ALL col0 * col1 * 25 + col2 FROM tab0
----
202557
51633
84876

onlyif mysql # use DIV operator for integer division
query I rowsort label-357
SELECT + col2 + col0 DIV + col0 FROM tab1 AS cor0
----
55
58
97

skipif mysql # not compatible
query I rowsort label-357
SELECT + col2 + col0 / + col0 FROM tab1 AS cor0
----
55
58
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 21 * col0 col0 FROM tab0
----
1869
504
735

query I rowsort
SELECT ALL 48 + col2 FROM tab1
----
102
105
144

query I rowsort
SELECT 32 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to d30a2acbf33c88274474306936d3227b

query I rowsort
SELECT ALL tab1.col1 * + 24 FROM tab1
----
240
312
624

query I rowsort
SELECT cor0.col2 * + ( + cor0.col2 ) + - col1 * col1 FROM tab0 AS cor0
----
-1557
-6307
-9408

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - 50 * col0 col1 FROM tab2 AS cor0
----
-10850
-230100
-67150

onlyif mysql # use DIV operator for integer division
query I rowsort label-364
SELECT DISTINCT + - col2 + - ( col0 ) DIV col2 FROM tab0 AS cor0
----
-33
-36
-83

skipif mysql # not compatible
query I rowsort label-364
SELECT DISTINCT + - col2 + - ( col0 ) / col2 FROM tab0 AS cor0
----
-33
-36
-83

query I rowsort
SELECT + + cor0.col2 + - col2 AS col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT + cor0.col2 * + ( - col1 ) FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT DISTINCT col1 * cor0.col2 * + ( col2 ) FROM tab0 AS cor0
----
611884
93654
97

query I rowsort
SELECT ( - col2 + - col2 ) AS col2 FROM tab2
----
-52
-54
-76

skipif mysql # not compatible
query I rowsort
SELECT CAST ( + col1 AS REAL ) + + col0 AS col2 FROM tab0 AS cor0
----
110
132
180

query I rowsort
SELECT - + ( 24 ) + + col0 * ( 97 ) FROM tab2 AS cor0
----
655
7542
7639

query I rowsort
SELECT DISTINCT - - col2 * + 71 AS col1 FROM tab2 AS cor0
----
1846
1917
2698

query I rowsort
SELECT DISTINCT + ( + col0 * col0 + + 93 ) FROM tab0
----
1318
669
8014

onlyif mysql # use DIV operator for integer division
query I rowsort label-373
SELECT DISTINCT - col2 DIV + col2 + - cor0.col0 DIV - col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-373
SELECT DISTINCT - col2 / + col2 + - cor0.col0 / - col0 FROM tab1 AS cor0
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-374
SELECT - col2 + col0 DIV ( col2 ) FROM tab0 AS cor0
----
-33
-81
34

skipif mysql # not compatible
query I rowsort label-374
SELECT - col2 + col0 / ( col2 ) FROM tab0 AS cor0
----
-33
-81
34

query I rowsort
SELECT ( col2 ) + 73 FROM tab2 AS cor0
----
100
111
99

query I rowsort
SELECT DISTINCT - - 20 + - col2 * - col0 FROM tab2 AS cor0
----
2048
209
3022

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 30 + - cor0.col2 col1 FROM tab1 AS cor0
----
-24
-27
-66

query I rowsort
SELECT + - 93 + col0 - 11 AS col2 FROM tab2 AS cor0
----
-25
-26
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-379
SELECT - 14 DIV - col0 AS col0 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-379
SELECT - 14 / - col0 AS col0 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-380
SELECT - 61 + col0 - - col0 DIV - col0 FROM tab0 AS cor0
----
-27
-38
27

skipif mysql # not compatible
query I rowsort label-380
SELECT - 61 + col0 - - col0 / - col0 FROM tab0 AS cor0
----
-27
-38
27

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 76 col2 FROM tab2 AS cor0
----
76
76
76

query I rowsort
SELECT - + col0 * - ( col0 ) - col1 FROM tab2 AS cor0
----
18
6025
6224

query I rowsort
SELECT - 48 * - cor0.col1 - - col0 FROM tab2 AS cor0
----
1495
2910
895

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col1 * cor0.col0 col0 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT DISTINCT - - 27 + + col1 AS col1 FROM tab1 AS cor0
----
37
40
53

query I rowsort
SELECT 14 * col1 + col2 AS col2 FROM tab2 AS cor0
----
276
461
852

query I rowsort
SELECT DISTINCT + - ( 10 ) FROM tab1 AS cor0
----
-10

query I rowsort
SELECT DISTINCT - 56 * ( + col2 ) + col1 AS col0 FROM tab2 AS cor0
----
-1397
-1481
-2111

query I rowsort
SELECT DISTINCT + col1 + tab1.col0 FROM tab1
----
29
74
93

query I rowsort
SELECT - col2 + + 88 FROM tab0 AS cor0
----
55
6
87

onlyif mysql # use DIV operator for integer division
query I rowsort label-391
SELECT 8 DIV + col1 + col1 AS col0 FROM tab2 AS cor0
----
17
31
59

skipif mysql # not compatible
query I rowsort label-391
SELECT 8 / + col1 + col1 AS col0 FROM tab2 AS cor0
----
17
31
59

query I rowsort
SELECT + + 11 + col1 FROM tab0 AS cor0
----
102
108
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-393
SELECT ALL + - col1 DIV - col1 + 51 * col0 DIV - cor0.col0 FROM tab2 AS cor0
----
-50
-50
-50

skipif mysql # not compatible
query I rowsort label-393
SELECT ALL + - col1 / - col1 + 51 * col0 / - cor0.col0 FROM tab2 AS cor0
----
-50
-50
-50

query I rowsort
SELECT - - 9 * col0 AS col0 FROM tab1 AS cor0
----
27
576
720

query I rowsort
SELECT DISTINCT + col1 * - col0 * 34 AS col0 FROM tab2
----
-156468
-45662
-7378

query I rowsort
SELECT col0 * - 36 AS col1 FROM tab1 AS cor0
----
-108
-2304
-2880

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-397
SELECT ALL - CAST( NULL AS SIGNED ) AS col1 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-397
SELECT ALL - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT - 38 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to e571541ae40cb0ddaca16e11f4359507

query I rowsort
SELECT 14 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 83e5779d2487d12495e7d816c797264f

query I rowsort
SELECT + - tab1.col2 AS col0 FROM tab1, tab2, tab2 AS cor0
----
27 values hashing to 44fdcd7cd603352d4d127811d164cc1e

query I rowsort
SELECT - col2 * - col1 * - col0 FROM tab0 AS cor0
----
-3395
-664118
-68112

query I rowsort
SELECT tab1.col2 * - 42 + - ( - col1 ) AS col1 FROM tab1
----
-2242
-2384
-4019

query I rowsort
SELECT - cor0.col1 * - col0 AS col1 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT - 68 AS col0 FROM tab1, tab0 AS cor0, tab2 AS cor1, tab1 cor2
----
81 values hashing to 3a5c3d9872a8a4148ab98ed0ab0a6c62

query I rowsort
SELECT DISTINCT + 23 AS col1 FROM tab0 AS cor0
----
23

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab1, tab2 AS cor1, tab1 cor2
----
972 values hashing to dd771e0c15d524f62127686e9bd43f9a

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0, tab1 cor1, tab1, tab2 AS cor2
----
3645 values hashing to a8f0522dfcc0ffd1116145dd0d0134ff

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-408
SELECT DISTINCT + CAST( + cor0.col0 AS SIGNED ) FROM tab0, tab1 AS cor0
----
3
64
80

skipif mysql # not compatible
query I rowsort label-408
SELECT DISTINCT + CAST ( + cor0.col0 AS INTEGER ) FROM tab0, tab1 AS cor0
----
3
64
80

query I rowsort
SELECT - col1 * + 94 + 95 FROM tab0
----
-7989
-8459
-9023

query I rowsort
SELECT + ( 70 ) * col2 AS col2 FROM tab0
----
2310
5740
70

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-411
SELECT ALL CAST( NULL AS SIGNED ) + col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-411
SELECT ALL CAST ( NULL AS INTEGER ) + col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT - col0 - - 21 FROM tab0
----
-14
-3
-68

onlyif mysql # use DIV operator for integer division
query I rowsort label-413
SELECT ( - col1 ) DIV + col2 AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-413
SELECT ( - col1 ) / + col2 AS col2 FROM tab1
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-414
SELECT + ( + col1 * col1 ) + col1 DIV - col2 col0 FROM tab1
----
100
169
676

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-414
SELECT + ( + col1 * col1 ) + col1 / - col2 col0 FROM tab1
----
100
169
676

query I rowsort
SELECT ALL - col1 * col2 + - col0 AS col2 FROM tab0 AS cor0
----
-132
-2862
-7551

query I rowsort
SELECT DISTINCT - cor0.col2 + + 35 * col1 FROM tab0 AS cor0
----
2977
3103
3394

query I rowsort
SELECT ALL + col0 * 42 * col0 FROM tab1 cor0
----
172032
268800
378

onlyif mysql # use DIV operator for integer division
query I rowsort label-418
SELECT + 35 - - col0 DIV col2 FROM tab1 AS cor0
----
35
35
36

skipif mysql # not compatible
query I rowsort label-418
SELECT + 35 - - col0 / col2 FROM tab1 AS cor0
----
35
35
36

query I rowsort
SELECT ALL + tab0.col0 + + col0 + col0 FROM tab0
----
105
267
72

query I rowsort
SELECT + 79 FROM tab2, tab0, tab1 AS cor0
----
27 values hashing to 4857f2e1b1dbd184de4827f145dd02a1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( - 49 ) * cor0.col2 col0 FROM tab1, tab1 AS cor0
----
2646
2793
4704

onlyif mysql # use DIV operator for integer division
query I rowsort label-422
SELECT + col2 DIV + col0 AS col0 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-422
SELECT + col2 / + col0 AS col0 FROM tab0 AS cor0
----
0
0
1

query I rowsort
SELECT DISTINCT + col2 + col0 AS col2 FROM tab2 cor0
----
104
117
34

query I rowsort
SELECT + col1 * + ( col0 ) * col1 FROM tab0 AS cor0
----
177504
329315
737009

query I rowsort
SELECT - + col1 * - ( - 49 ) AS col1 FROM tab2 AS cor0
----
-1519
-2891
-833

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 48 col1 FROM tab0
----
48
48
48

query I rowsort
SELECT 9 AS col2 FROM tab0
----
9
9
9

query I rowsort
SELECT ALL col1 * - col0 * + ( - col0 ) FROM tab0 AS cor0
----
118825
49536
720811

query I rowsort
SELECT - col0 * + 5 FROM tab2 AS cor0
----
-35
-390
-395

query I rowsort
SELECT - col0 * ( + 0 + col1 ) FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT + + col1 * + col2 AS col1 FROM tab2 cor0
----
1534
646
837

onlyif mysql # use DIV operator for integer division
query I rowsort label-432
SELECT DISTINCT + - cor0.col2 + + col1 DIV col2 FROM tab0 AS cor0
----
-31
-81
96

skipif mysql # not compatible
query I rowsort label-432
SELECT DISTINCT + - cor0.col2 + + col1 / col2 FROM tab0 AS cor0
----
-31
-81
96

query I rowsort
SELECT ALL + 60 + - col1 FROM tab0
----
-26
-31
-37

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-434
SELECT ALL + ( col1 ) + CAST( col2 AS SIGNED ) * - col0 AS col1 FROM tab2
----
-158
-1969
-2985

skipif mysql # not compatible
query I rowsort label-434
SELECT ALL + ( col1 ) + CAST ( col2 AS INTEGER ) * - col0 AS col1 FROM tab2
----
-158
-1969
-2985

query I rowsort
SELECT - - 38 * - 83 FROM tab1, tab0 AS cor0
----
9 values hashing to 8ebb0150cabb757cb9930019fc2c76e8

query I rowsort
SELECT ALL - col1 * col1 + - ( 69 ) * + col1 FROM tab2 AS cor0
----
-1462
-3100
-7552

query I rowsort
SELECT DISTINCT - - col2 - col1 FROM tab1 AS cor0
----
28
47
83

query I rowsort
SELECT col1 * col2 - 72 FROM tab2 AS cor0
----
1462
574
765

query I rowsort
SELECT ALL + + col1 + - col2 AS col2 FROM tab2 AS cor0
----
-21
33
4

query I rowsort
SELECT cor0.col0 + cor0.col0 * - col0 FROM tab1 AS cor0
----
-4032
-6
-6320

query I rowsort
SELECT ALL - 3 + col1 FROM tab1 AS cor0
----
10
23
7

onlyif mysql # use DIV operator for integer division
query I rowsort label-442
SELECT - - col0 + col0 + 86 * + col1 DIV - col1 AS col2 FROM tab1 AS cor0
----
-80
42
74

skipif mysql # not compatible
query I rowsort label-442
SELECT - - col0 + col0 + 86 * + col1 / - col1 AS col2 FROM tab1 AS cor0
----
-80
42
74

query I rowsort
SELECT col1 + - 52 + + cor0.col2 FROM tab1 AS cor0
----
15
28
57

query I rowsort
SELECT + cor0.col2 + col1 FROM tab0 cor0
----
119
173
98

query I rowsort
SELECT DISTINCT - col1 * 32 AS col0 FROM tab2 AS cor0
----
-1888
-544
-992

query I rowsort
SELECT DISTINCT - col1 + + col2 AS col1 FROM tab2 AS cor0
----
-33
-4
21

query I rowsort
SELECT ALL cor0.col0 * cor0.col1 AS col1 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT DISTINCT ( col2 ) + - 62 * 34 AS col1 FROM tab0
----
-2026
-2075
-2107

onlyif mysql # use DIV operator for integer division
query I rowsort label-449
SELECT col2 + col0 DIV + col2 FROM tab0
----
33
36
83

skipif mysql # not compatible
query I rowsort label-449
SELECT col2 + col0 / + col2 FROM tab0
----
33
36
83

query I rowsort
SELECT ALL - + cor0.col2 + + ( + cor0.col1 ) FROM tab2 cor0
----
-21
33
4

query I rowsort
SELECT + - col2 * 32 + col1 + - cor0.col1 FROM tab1 AS cor0
----
-1728
-1824
-3072

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-452
SELECT DISTINCT + col2 * CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-452
SELECT DISTINCT + col2 * CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT tab2.col0 * col1 * tab2.col1 AS col0 FROM tab2
----
22831
271518
6727

query I rowsort
SELECT DISTINCT col1 * col1 + tab0.col1 AS col1 FROM tab0
----
7482
8372
9506

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 col0 FROM tab1 WHERE col0 IN ( tab1.col1 )
----

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 ALL + col1 * col2 + - col1 * + col2 FROM tab2
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col2 NOT IN ( - col2 + col2 * + col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 - col2 col0 FROM tab0
----
-9
34
7

query I rowsort
SELECT DISTINCT col1 + + tab2.col0 AS col2 FROM tab2
----
137
38
96

query I rowsort
SELECT ALL tab2.col2 + + col2 * + col2 * col2 + col1 AS col2 FROM tab2
----
17661
19741
54927

query I rowsort
SELECT ALL + col1 + col1 + col2 AS col2 FROM tab0
----
195
205
264

onlyif mysql # use DIV operator for integer division
query I rowsort label-463
SELECT DISTINCT - tab0.col2 * col0 + col2 + col1 DIV col2 AS col1 FROM tab0
----
-7215
-757
63

skipif mysql # not compatible
query I rowsort label-463
SELECT DISTINCT - tab0.col2 * col0 + col2 + col1 / col2 AS col1 FROM tab0
----
-7215
-757
63

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * + col0 col0 FROM tab1 cor0
----
-4096
-6400
-9

query I rowsort
SELECT DISTINCT col0 - + col0 * ( + col0 ) AS col0 FROM tab1 AS cor0
----
-4032
-6
-6320

query I rowsort
SELECT + col1 + + col1 * ( - col0 ) FROM tab2 AS cor0
----
-1326
-186
-4543

query I rowsort
SELECT DISTINCT - col2 + col0 + tab0.col0 AS col1 FROM tab0
----
15
69
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-468
SELECT + col2 DIV col1 + col2 AS col1 FROM tab1
----
103
56
62

skipif mysql # not compatible
query I rowsort label-468
SELECT + col2 / col1 + col2 AS col1 FROM tab1
----
103
56
62

onlyif mysql # use DIV operator for integer division
query I rowsort label-469
SELECT ALL + col1 DIV - col1 AS col0 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-469
SELECT ALL + col1 / - col1 AS col0 FROM tab2
----
-1
-1
-1

query I rowsort
SELECT - col1 * - tab0.col2 + + col2 + col0 * - col1 FROM tab0
----
-3297
-555
807

onlyif mysql # use DIV operator for integer division
query I rowsort label-471
SELECT DISTINCT col1 + - col2 DIV + col1 + - col1 AS col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-471
SELECT DISTINCT col1 + - col2 / + col1 + - col1 AS col2 FROM tab0
----
0

query I rowsort
SELECT - col2 * col2 + + col2 FROM tab2
----
-1406
-650
-702

query I rowsort
SELECT + col1 * - col0 * col2 AS col2 FROM tab0
----
-3395
-664118
-68112

query I rowsort
SELECT ALL - col1 * col0 + tab1.col2 * - col2 + + col2 * + tab1.col0 AS col1 FROM tab1
----
-241
-2576
-2832

query III rowsort
SELECT * FROM tab0 WHERE NULL IN ( + tab0.col1 * col1 )
----

query I rowsort
SELECT + tab0.col2 * + col2 + + col0 - col1 FROM tab0
----
-61
1027
6722

query I rowsort
SELECT - col0 * col2 FROM tab1 WHERE NOT NULL NOT IN ( - col1 )
----

query I rowsort
SELECT DISTINCT col1 * + col0 + col0 + col0 AS col0 FROM tab0
----
2112
3465
8277

query I rowsort
SELECT - col0 + + cor0.col2 AS col2 FROM tab0 cor0
----
-34
-7
9

query I rowsort
SELECT DISTINCT + + 89 + col1 AS col0 FROM tab2 cor0
----
106
120
148

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 44 + + col1 * col2 col2 FROM tab0
----
141
2882
7506

query I rowsort
SELECT tab2.col1 AS col2 FROM tab2, tab2 cor0
----
9 values hashing to c61d27a0022e6d022371dc58819ab272

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-483
SELECT - 91 + col0 * CAST( NULL AS SIGNED ) * col0 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-483
SELECT - 91 + col0 * CAST ( NULL AS INTEGER ) * col0 AS col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + ( 30 ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
30

query I rowsort
SELECT - col1 * + tab2.col0 + col0 FROM tab2
----
-1264
-210
-4524

onlyif mysql # use DIV operator for integer division
query I rowsort label-486
SELECT + col1 DIV + col0 AS col2 FROM tab1
----
0
0
8

skipif mysql # not compatible
query I rowsort label-486
SELECT + col1 / + col0 AS col2 FROM tab1
----
0
0
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * + col1 * ( + cor0.col1 ) col0 FROM tab2 cor0
----
-10982
-25947
-90506

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-488
SELECT ( - col1 ) * + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-488
SELECT ( - col1 ) * + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT - 6 * - col2 FROM tab1
----
324
342
576

query I rowsort
SELECT DISTINCT - col1 * 72 AS col0 FROM tab2
----
-1224
-2232
-4248

query I rowsort
SELECT col0 + ( - col0 ) * ( - cor0.col1 ) AS col2 FROM tab0 cor0
----
2088
3430
8188

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 73 col1 FROM tab2 AS cor0
----
73
73
73

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab1 cor0, tab0 cor1, tab1, tab1 AS cor2
----
3645 values hashing to 90e25bbdedfdeba1119139dab203aeea

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-494
SELECT ALL + CAST( NULL AS SIGNED ) + + 0 FROM tab1, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-494
SELECT ALL + CAST ( NULL AS INTEGER ) + + 0 FROM tab1, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # use DIV operator for integer division
query I rowsort label-495
SELECT ALL col2 DIV - tab0.col0 AS col0 FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-495
SELECT ALL col2 / - tab0.col0 AS col0 FROM tab0
----
-1
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-496
SELECT + tab2.col0 DIV ( col1 ) + - col0 FROM tab2
----
-7
-75
-77

skipif mysql # not compatible
query I rowsort label-496
SELECT + tab2.col0 / ( col1 ) + - col0 FROM tab2
----
-7
-75
-77

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-497
SELECT CAST( + col1 AS SIGNED ) AS col1 FROM tab0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-497
SELECT CAST ( + col1 AS INTEGER ) AS col1 FROM tab0
----
86
91
97

query I rowsort
SELECT - ( ( - col2 ) ) FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT - 48 FROM tab0, tab2 AS cor0
----
9 values hashing to 31c94943c073954e4ca20b170ab61f8c

query I rowsort
SELECT DISTINCT + 37 AS col2 FROM tab0 AS cor0
----
37

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-501
SELECT - cor0.col1 * CAST( NULL AS SIGNED ) FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-501
SELECT - cor0.col1 * CAST ( NULL AS INTEGER ) FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-502
SELECT - + CAST( - col1 AS SIGNED ) AS col1 FROM tab0 cor0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-502
SELECT - + CAST ( - col1 AS INTEGER ) AS col1 FROM tab0 cor0
----
86
91
97

query I rowsort
SELECT DISTINCT + - 60 FROM tab1 cor0
----
-60

query I rowsort
SELECT 52 - - tab2.col0 FROM tab2
----
130
131
59

query I rowsort
SELECT - ( + col1 + - col1 ) FROM tab2
----
0
0
0

query I rowsort
SELECT - col1 + + col2 * - cor0.col0 AS col0 FROM tab2 AS cor0
----
-2087
-220
-3019

query I rowsort
SELECT + + col0 + cor0.col1 FROM tab0 AS cor0
----
110
132
180

query I rowsort
SELECT - cor0.col1 + + col0 AS col2 FROM tab2 cor0
----
-24
19
62

onlyif mysql # use DIV operator for integer division
query I rowsort label-509
SELECT - - cor0.col2 * + col0 DIV col0 FROM tab2 AS cor0
----
26
27
38

skipif mysql # not compatible
query I rowsort label-509
SELECT - - cor0.col2 * + col0 / col0 FROM tab2 AS cor0
----
26
27
38

query I rowsort
SELECT ALL + cor0.col1 + col1 AS col0 FROM tab1 AS cor0
----
20
26
52

query I rowsort
SELECT ALL - 25 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 40ac8fd000b2e49317aed2411077839e

query I rowsort
SELECT - + col0 * 74 AS col1 FROM tab1 AS cor0
----
-222
-4736
-5920

query I rowsort
SELECT + ( - 16 ) FROM tab2 AS cor0
----
-16
-16
-16

skipif mysql # not compatible
query I rowsort
SELECT ALL col1 * CAST ( - 93 AS REAL ) AS col0 FROM tab1
----
-1209
-2418
-930

query I rowsort
SELECT + 77 AS col2 FROM tab2 cor0
----
77
77
77

query I rowsort
SELECT ALL + cor0.col2 * cor0.col0 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to e1120e7b687b32270ef70393236e7341

query I rowsort
SELECT ALL col0 + col1 + col0 * cor0.col2 FROM tab0 AS cor0
----
167
7478
902

query I rowsort
SELECT DISTINCT col1 * + col0 * col1 + - col0 FROM tab1 AS cor0
----
13440
2025
6336

query I rowsort
SELECT col2 AS col1 FROM tab2 AS cor0 WHERE col1 = NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col1 NOT IN ( col1 )
----

query I rowsort
SELECT ALL col1 + + col0 FROM tab2 cor0 WHERE NOT NULL NOT IN ( cor0.col1 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-522
SELECT DISTINCT col2 DIV col1 + - col2 DIV - col0 + + col2 FROM tab2
----
26
30
40

skipif mysql # not compatible
query I rowsort label-522
SELECT DISTINCT col2 / col1 + - col2 / - col0 + + col2 FROM tab2
----
26
30
40

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * - tab1.col2 col2 FROM tab1
----
1248
1404
570

query I rowsort
SELECT - tab1.col0 * tab1.col1 FROM tab1
----
-1040
-640
-78

query I rowsort
SELECT col0 AS col0 FROM tab1 WHERE NULL NOT BETWEEN NULL AND ( - col1 )
----

query I rowsort
SELECT DISTINCT - col2 - - col2 * + col2 * + col2 AS col0 FROM tab2
----
17550
19656
54834

query I rowsort
SELECT tab0.col0 + + col1 * - col2 - - tab0.col2 * - col0 FROM tab0
----
-14671
-3606
-97

query I rowsort
SELECT col2 * - col2 * + col0 + + col2 + col1 FROM tab2
----
-114021
-5045
-52643

query I rowsort
SELECT - col0 FROM tab0 WHERE NULL BETWEEN NULL AND + col1
----

query I rowsort
SELECT col1 * col1 + col0 + - col2 * - col0 AS col1 FROM tab0
----
15668
8212
9479

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 col2 FROM tab2 cor0
----
7
78
79

query I rowsort
SELECT ALL col1 - - col1 * - col2 FROM tab0
----
-2752
-7371
0

query I rowsort
SELECT DISTINCT + col1 * - col0 AS col1 FROM tab1
----
-1040
-640
-78

query I rowsort
SELECT DISTINCT + + cor0.col0 + col0 FROM tab1 AS cor0
----
128
160
6

query I rowsort
SELECT + cor0.col2 * cor0.col1 + col0 FROM tab0 AS cor0
----
132
2862
7551

query I rowsort
SELECT col2 * col0 + col1 + col0 AS col1 FROM tab0
----
167
7478
902

query I rowsort
SELECT col2 - col1 * col1 AS col1 FROM tab2 AS cor0
----
-251
-3455
-934

onlyif mysql # use DIV operator for integer division
query I rowsort label-538
SELECT DISTINCT col1 DIV - tab1.col1 - col2 DIV tab1.col0 col0 FROM tab1
----
-1
-19
-2

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-538
SELECT DISTINCT col1 / - tab1.col1 - col2 / tab1.col0 col0 FROM tab1
----
-1
-19
-2

query I rowsort
SELECT col1 * tab2.col0 AS col0 FROM tab2
----
1343
217
4602

query I rowsort
SELECT + tab2.col2 * - tab2.col2 + col1 - - tab2.col1 FROM tab2
----
-1410
-558
-667

onlyif mysql # use DIV operator for integer division
query I rowsort label-541
SELECT tab0.col0 - col1 DIV - col0 AS col0 FROM tab0
----
27
37
90

skipif mysql # not compatible
query I rowsort label-541
SELECT tab0.col0 - col1 / - col0 AS col0 FROM tab0
----
27
37
90

query I rowsort
SELECT DISTINCT col0 + col0 - col0 * - col1 FROM tab1
----
1200
768
84

onlyif mysql # use DIV operator for integer division
query I rowsort label-543
SELECT DISTINCT col1 + - col2 * - tab1.col0 - tab1.col0 DIV col1 FROM tab1
----
188
3652
7687

skipif mysql # not compatible
query I rowsort label-543
SELECT DISTINCT col1 + - col2 * - tab1.col0 - tab1.col0 / col1 FROM tab1
----
188
3652
7687

onlyif mysql # use DIV operator for integer division
query I rowsort label-544
SELECT DISTINCT col2 DIV - col2 + - col2 FROM tab1 AS cor0
----
-55
-58
-97

skipif mysql # not compatible
query I rowsort label-544
SELECT DISTINCT col2 / - col2 + - col2 FROM tab1 AS cor0
----
-55
-58
-97

query I rowsort
SELECT ALL + col2 * cor0.col1 AS col1 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT - col2 + cor0.col1 * - col2 AS col2 FROM tab0 cor0
----
-2871
-7544
-98

query I rowsort
SELECT - - cor0.col2 * cor0.col0 AS col1 FROM tab0 cor0
----
35
7298
792

query I rowsort
SELECT 15 + - col1 AS col1 FROM tab2 AS cor0
----
-16
-2
-44

query IIIIIIIIIIII rowsort
SELECT * FROM tab2 cor0 CROSS JOIN tab0, tab2 AS cor1, tab2 AS cor2
----
972 values hashing to 617c9545df26d6d983e3967864e8e9e4

query I rowsort
SELECT DISTINCT ( tab1.col1 ) * 93 AS col1 FROM tab1, tab2 AS cor0
----
1209
2418
930

query I rowsort
SELECT DISTINCT + ( + 49 ) + - col1 * + ( col1 * col0 ) AS col2 FROM tab2
----
-22782
-271469
-6678

query I rowsort
SELECT DISTINCT tab0.col2 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
1
33
82

onlyif mysql # use DIV operator for integer division
query I rowsort label-553
SELECT + ( tab1.col0 ) DIV col1 FROM tab1
----
0
6
6

skipif mysql # not compatible
query I rowsort label-553
SELECT + ( tab1.col0 ) / col1 FROM tab1
----
0
6
6

query I rowsort
SELECT DISTINCT cor1.col1 AS col0 FROM tab0, tab0 cor0, tab2 AS cor1
----
17
31
59

query I rowsort
SELECT 96 * - col2 FROM tab0
----
-3168
-7872
-96

onlyif mysql # use DIV operator for integer division
query I rowsort label-556
SELECT - + col1 DIV col2 + + col1 FROM tab1 AS cor0
----
10
13
26

skipif mysql # not compatible
query I rowsort label-556
SELECT - + col1 / col2 + + col1 FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT DISTINCT + col2 + - 49 * col0 FROM tab2 AS cor0
----
-316
-3796
-3833

query I rowsort
SELECT ALL - - 99 + + 50 * col0 FROM tab1 AS cor0
----
249
3299
4099

query I rowsort
SELECT 50 - col2 * + col0 FROM tab1 AS cor0
----
-112
-3598
-7630

onlyif mysql # use DIV operator for integer division
query I rowsort label-560
SELECT ALL + + 37 DIV ( - col0 ) + + col2 + col0 AS col0 FROM tab0 AS cor0
----
171
35
56

skipif mysql # not compatible
query I rowsort label-560
SELECT ALL + + 37 / ( - col0 ) + + col2 + col0 AS col0 FROM tab0 AS cor0
----
171
35
56

onlyif mysql # use DIV operator for integer division
query I rowsort label-561
SELECT DISTINCT 80 * + col1 + - col0 DIV - col0 + - 95 FROM tab0 AS cor0
----
6786
7186
7666

skipif mysql # not compatible
query I rowsort label-561
SELECT DISTINCT 80 * + col1 + - col0 / - col0 + - 95 FROM tab0 AS cor0
----
6786
7186
7666

query I rowsort
SELECT col1 * col1 + col0 FROM tab2 AS cor0
----
3559
368
968

query I rowsort
SELECT + - col0 * 44 - - col0 AS col0 FROM tab0 AS cor0
----
-1032
-1505
-3827

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab1.col1 * col1 col1 FROM tab1
----
100
169
676

query I rowsort
SELECT col0 + - col2 * - 66 FROM tab0 AS cor0
----
101
2202
5501

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * + col1 - col2 col2 FROM tab1 AS cor0
----
1152
1350
513

query I rowsort
SELECT ALL col2 * cor0.col1 - + 78 FROM tab0 AS cor0
----
19
2760
7384

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-568
SELECT DISTINCT - cor0.col1 * + CAST( NULL AS SIGNED ) col1 FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-568
SELECT DISTINCT - cor0.col1 * + CAST ( NULL AS INTEGER ) col1 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - - cor0.col1 + col1 AS col0 FROM tab1 cor0
----
20
26
52

query I rowsort
SELECT DISTINCT col1 * - 48 AS col0 FROM tab2
----
-1488
-2832
-816

onlyif mysql # use DIV operator for integer division
query I rowsort label-571
SELECT col0 + col2 DIV col2 FROM tab1 AS cor0
----
4
65
81

skipif mysql # not compatible
query I rowsort label-571
SELECT col0 + col2 / col2 FROM tab1 AS cor0
----
4
65
81

onlyif mysql # use DIV operator for integer division
query I rowsort label-572
SELECT ALL + - col1 DIV col0 AS col0 FROM tab0 AS cor0
----
-1
-2
-3

skipif mysql # not compatible
query I rowsort label-572
SELECT ALL + - col1 / col0 AS col0 FROM tab0 AS cor0
----
-1
-2
-3

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-573
SELECT ALL + + col1 * - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-573
SELECT ALL + + col1 * - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col2 * tab0.col1 * + 69 FROM tab0
----
-195822
-514878
-6693

query I rowsort
SELECT DISTINCT - cor0.col1 FROM tab0, tab1, tab0 AS cor0
----
-86
-91
-97

query I rowsort
SELECT - 87 FROM tab1, tab1 cor0, tab1 AS cor1
----
27 values hashing to c0011cd00aa3e86f06bebc13678997f9

query I rowsort
SELECT DISTINCT + col2 * + 95 AS col1 FROM tab1 AS cor0
----
5130
5415
9120

query I rowsort
SELECT - - col2 + - col1 * col2 FROM tab2 AS cor0
----
-1508
-608
-810

query I rowsort
SELECT + col1 * + 1 AS col0 FROM tab1 AS cor0
----
10
13
26

onlyif mysql # use DIV operator for integer division
query I rowsort label-580
SELECT col2 DIV - 24 FROM tab1 cor0
----
-2
-2
-4

skipif mysql # not compatible
query I rowsort label-580
SELECT col2 / - 24 FROM tab1 cor0
----
-2
-2
-4

query I rowsort
SELECT + ( ( col1 ) ) FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT DISTINCT col2 * - 49 * col2 FROM tab2
----
-33124
-35721
-70756

query I rowsort
SELECT + 77 FROM tab1, tab2 AS cor0
----
9 values hashing to 051bf10c50e061d74ad0a4d205a1c622

query I rowsort
SELECT ALL - col2 * - col0 + - ( cor0.col1 ) FROM tab2 AS cor0
----
158
1969
2985

query I rowsort
SELECT - ( - col0 ) * - col2 AS col0 FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT + - cor0.col0 * + col0 + - col0 FROM tab1 AS cor0
----
-12
-4160
-6480

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 47 col2 FROM tab0
----
-47
-47
-47

onlyif mysql # use DIV operator for integer division
query I rowsort label-588
SELECT ALL col1 * + col2 + col2 DIV - col2 AS col2 FROM tab0 AS cor0
----
2837
7461
96

skipif mysql # not compatible
query I rowsort label-588
SELECT ALL col1 * + col2 + col2 / - col2 AS col2 FROM tab0 AS cor0
----
2837
7461
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 57 col2 FROM tab1 AS cor0
----
57

query I rowsort
SELECT ALL - 82 + + col1 AS col0 FROM tab2 AS cor0
----
-23
-51
-65

query I rowsort
SELECT DISTINCT 38 + + tab1.col2 * - col0 FROM tab1
----
-124
-3610
-7642

query I rowsort
SELECT DISTINCT cor1.col2 AS col2 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
54
57
96

query I rowsort
SELECT 41 + - col1 FROM tab1 AS cor0
----
15
28
31

query I rowsort
SELECT - + ( + col1 ) + + ( col2 + col2 ) FROM tab1 AS cor0
----
104
179
82

query I rowsort
SELECT col0 * + col2 + col1 AS col1 FROM tab2 AS cor0
----
2087
220
3019

query I rowsort
SELECT 83 AS col2 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 002a717a3d902d97220759065fb107c3

query I rowsort
SELECT DISTINCT - 9 * col2 FROM tab1
----
-486
-513
-864

query I rowsort
SELECT + - cor0.col0 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 4ec304b8ce935f2226e7548d72c2b2f0

query I rowsort
SELECT DISTINCT ( 47 * + col2 ) AS col2 FROM tab2
----
1222
1269
1786

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-600
SELECT ALL CAST( tab0.col0 AS SIGNED ) * + col2 * - 18 FROM tab0
----
-131364
-14256
-630

skipif mysql # not compatible
query I rowsort label-600
SELECT ALL CAST ( tab0.col0 AS INTEGER ) * + col2 * - 18 FROM tab0
----
-131364
-14256
-630

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col1 + col0 * + ( col1 ) col1 FROM tab1 AS cor0
----
1027
52
630

query I rowsort
SELECT - - col0 + - col0 * 63 FROM tab1 AS cor0
----
-186
-3968
-4960

query I rowsort
SELECT DISTINCT col1 * - col2 * + col0 AS col1 FROM tab1 AS cor0
----
-36480
-4212
-99840

query I rowsort
SELECT ALL + 57 * + col1 * - col0 FROM tab1 AS cor0
----
-36480
-4446
-59280

query I rowsort
SELECT ALL ( - 4 ) * - tab0.col2 FROM tab0
----
132
328
4

query I rowsort
SELECT ALL ( 96 ) * - col2 * ( col1 ) + tab2.col1 * col2 FROM tab2
----
-145730
-61370
-79515

query I rowsort
SELECT ALL - + 83 FROM tab2, tab0, tab1 AS cor0
----
27 values hashing to 77a48ad722db122f51d5ef36604ad843

query I rowsort
SELECT ALL + 70 FROM tab2, tab0 AS cor0
----
9 values hashing to 9758da65ae4711e3e8c8def2fe026911

query I rowsort
SELECT DISTINCT col1 * col1 * 58 AS col2 FROM tab2 cor0
----
16762
201898
55738

query I rowsort
SELECT + ( + col1 ) * ( - ( + col1 ) ) + - cor0.col1 AS col2 FROM tab1 AS cor0
----
-110
-182
-702

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 53 col1 FROM tab1, tab1 AS cor0
----
9 values hashing to fee5c00ad71c23e23683a32c71fe6e7d

query I rowsort
SELECT ALL - 62 + - cor0.col1 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 7e5ab4ad876c77f86cc3c7f853e1fe7c

query I rowsort
SELECT ALL 16 AS col2 FROM tab1, tab2 AS cor0, tab2 cor1
----
27 values hashing to ee5bde9f68ee828e8cd86b0d590090bc

query I rowsort
SELECT + col1 + cor0.col2 * ( - col0 ) AS col0 FROM tab2 AS cor0
----
-158
-1969
-2985

query I rowsort
SELECT col1 - ( 24 ) AS col2 FROM tab2 cor0
----
-7
35
7

query I rowsort
SELECT ALL + col1 - - col2 AS col1 FROM tab0
----
119
173
98

onlyif mysql # use DIV operator for integer division
query I rowsort label-617
SELECT - cor0.col1 DIV col2 + - col1 FROM tab1 AS cor0
----
-10
-13
-26

skipif mysql # not compatible
query I rowsort label-617
SELECT - cor0.col1 / col2 + - col1 FROM tab1 AS cor0
----
-10
-13
-26

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-618
SELECT DISTINCT CAST( NULL AS SIGNED ) * col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-618
SELECT DISTINCT CAST ( NULL AS INTEGER ) * col0 FROM tab1 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col0 col2 FROM tab1, tab0 AS cor0, tab1 AS cor1, tab1 AS cor2
----
81 values hashing to 2304fcc140e955eb2d1ee28ab1eea994

query I rowsort
SELECT DISTINCT - ( 91 ) + + col1 FROM tab0 AS cor0
----
-5
0
6

query I rowsort
SELECT ( - col0 ) + + col0 * + 67 FROM tab1 AS cor0
----
198
4224
5280

query I rowsort
SELECT - - 45 * - cor0.col1 FROM tab0 cor0
----
-3870
-4095
-4365

query I rowsort
SELECT - 21 * 31 + col1 * col1 * + col1 + - col1 FROM tab0 AS cor0
----
635319
752829
911925

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + cor0.col0 col0 FROM tab1 AS cor0
----
128
160
6

query I rowsort
SELECT - ( + col1 ) * tab0.col1 FROM tab0
----
-7396
-8281
-9409

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( + col1 ) + - cor0.col1 * - ( col0 ) * col1 + 41 * 43 col1 FROM tab2 AS cor0
----
24577
273222
8459

onlyif mysql # use DIV operator for integer division
query I rowsort label-627
SELECT ALL + + cor0.col2 DIV + col1 + col2 * col2 * + col0 FROM tab2 AS cor0
----
114078
5103
52728

skipif mysql # not compatible
query I rowsort label-627
SELECT ALL + + cor0.col2 / + col1 + col2 * col2 * + col0 FROM tab2 AS cor0
----
114078
5103
52728

query I rowsort
SELECT col0 - + 69 FROM tab2 AS cor0
----
-62
10
9

query I rowsort
SELECT ALL - 25 * + col0 * - col1 + 2 * + col1 * col0 AS col1 FROM tab0 AS cor0
----
218673
55728
91665

query I rowsort
SELECT DISTINCT 96 * + 29 - - col2 FROM tab1 AS cor0
----
2838
2841
2880

query I rowsort
SELECT DISTINCT - + ( + col1 ) + cor0.col1 * col0 AS col1 FROM tab2 AS cor0
----
1326
186
4543

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - cor0.col1 + col2 col2 FROM tab2 AS cor0
----
55
58
85

onlyif mysql # use DIV operator for integer division
query I rowsort label-633
SELECT DISTINCT + + cor0.col0 DIV cor0.col1 + - col1 FROM tab0 cor0
----
-86
-91
-97

skipif mysql # not compatible
query I rowsort label-633
SELECT DISTINCT + + cor0.col0 / cor0.col1 + - col1 FROM tab0 cor0
----
-86
-91
-97

query I rowsort
SELECT col0 + + 97 FROM tab2 AS cor0
----
104
175
176

query I rowsort
SELECT ALL + ( col0 ) * col0 AS col0 FROM tab0 AS cor0
----
1225
576
7921

query I rowsort
SELECT col0 + ( + col1 ) FROM tab1 cor0
----
29
74
93

query I rowsort
SELECT ALL + 63 * col1 AS col0 FROM tab1 AS cor0
----
1638
630
819

query I rowsort
SELECT + col0 * + ( + cor0.col1 ) AS col0 FROM tab0 AS cor0
----
2064
3395
8099

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-639
SELECT CAST( NULL AS SIGNED ) AS col1 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-639
SELECT CAST ( NULL AS INTEGER ) AS col1 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT ALL - col0 * - col2 + + 97 FROM tab1 AS cor0
----
259
3745
7777

onlyif mysql # use DIV operator for integer division
query I rowsort label-641
SELECT DISTINCT + col0 + col1 DIV + cor0.col0 FROM tab0 cor0
----
27
37
90

skipif mysql # not compatible
query I rowsort label-641
SELECT DISTINCT + col0 + col1 / + cor0.col0 FROM tab0 cor0
----
27
37
90

query I rowsort
SELECT - + ( - col2 ) * col2 FROM tab2 AS cor0
----
1444
676
729

query I rowsort
SELECT - col0 + + cor0.col1 AS col2 FROM tab0 AS cor0
----
2
62
62

query I rowsort
SELECT DISTINCT 82 AS col0 FROM tab2, tab0 AS cor0
----
82

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-645
SELECT + col2 * + col0 * + CAST( + 94 + + col0 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
1335534
4515
93456

skipif mysql # not compatible
query I rowsort label-645
SELECT + col2 * + col0 * + CAST ( + 94 + + col0 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
1335534
4515
93456

query I rowsort
SELECT tab1.col1 AS col0 FROM tab2, tab1 AS cor0 CROSS JOIN tab1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892

query I rowsort
SELECT - cor0.col0 - + cor0.col2 AS col0 FROM tab2 AS cor0
----
-104
-117
-34

query I rowsort
SELECT ALL + col1 + + 40 * - 84 AS col2 FROM tab2 AS cor0
----
-3301
-3329
-3343

query I rowsort
SELECT DISTINCT - - col2 * - 63 - ( + col1 ) FROM tab2 AS cor0
----
-1697
-1732
-2411

onlyif mysql # use DIV operator for integer division
query I rowsort label-650
SELECT - col0 - - 42 DIV col0 FROM tab2 cor0
----
-1
-78
-79

skipif mysql # not compatible
query I rowsort label-650
SELECT - col0 - - 42 / col0 FROM tab2 cor0
----
-1
-78
-79

query I rowsort
SELECT DISTINCT - col1 * + col0 + + col2 AS col2 FROM tab2 AS cor0
----
-1305
-190
-4576

query I rowsort
SELECT col0 * + 56 + + col2 FROM tab0 AS cor0
----
1377
1961
5066

onlyif mysql # use DIV operator for integer division
query I rowsort label-653
SELECT - - cor0.col1 DIV cor0.col1 - - col1 FROM tab2 cor0
----
18
32
60

skipif mysql # not compatible
query I rowsort label-653
SELECT - - cor0.col1 / cor0.col1 - - col1 FROM tab2 cor0
----
18
32
60

query I rowsort
SELECT + 61 AS col2 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 8d4dfe649433a599fc4b10830cc7ce55

query I rowsort
SELECT ALL 65 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 8bef2ea1f05f3514633f851312bdd805

onlyif mysql # use DIV operator for integer division
query I rowsort label-656
SELECT DISTINCT col1 + - col2 DIV col0 AS col2 FROM tab0 cor0
----
85
91
97

skipif mysql # not compatible
query I rowsort label-656
SELECT DISTINCT col1 + - col2 / col0 AS col2 FROM tab0 cor0
----
85
91
97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-657
SELECT DISTINCT col0 * CAST( + col1 AS SIGNED ) * - col1 - - cor0.col2 * 85 AS col0 FROM tab2 AS cor0
----
-19601
-269308
-4432

skipif mysql # not compatible
query I rowsort label-657
SELECT DISTINCT col0 * CAST ( + col1 AS INTEGER ) * - col1 - - cor0.col2 * 85 AS col0 FROM tab2 AS cor0
----
-19601
-269308
-4432

query I rowsort
SELECT ALL - col0 * + cor0.col2 + 37 AS col0 FROM tab2 AS cor0
----
-152
-1991
-2965

query I rowsort
SELECT - col0 * - ( 40 ) AS col0 FROM tab2
----
280
3120
3160

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-660
SELECT ALL - CAST( 26 AS SIGNED ) + + col1 FROM tab2 AS cor0
----
-9
33
5

skipif mysql # not compatible
query I rowsort label-660
SELECT ALL - CAST ( 26 AS INTEGER ) + + col1 FROM tab2 AS cor0
----
-9
33
5

query I rowsort
SELECT DISTINCT + col0 + + col0 FROM tab1
----
128
160
6

query I rowsort
SELECT col0 * 38 AS col2 FROM tab2
----
266
2964
3002

query I rowsort
SELECT DISTINCT col0 - 41 * col0 AS col1 FROM tab2
----
-280
-3120
-3160

query I rowsort
SELECT DISTINCT 30 * col0 + ( col0 ) * col0 AS col1 FROM tab1 cor0
----
6016
8800
99

onlyif mysql # use DIV operator for integer division
query I rowsort label-665
SELECT DISTINCT cor0.col1 + col2 DIV col1 + + col2 AS col1 FROM tab0 AS cor0
----
119
173
98

skipif mysql # not compatible
query I rowsort label-665
SELECT DISTINCT cor0.col1 + col2 / col1 + + col2 AS col1 FROM tab0 AS cor0
----
119
173
98

query I rowsort
SELECT - cor0.col2 + + col2 AS col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT ( + col1 ) * cor0.col0 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT DISTINCT - ( + col1 ) * + col1 AS col1 FROM tab0
----
-7396
-8281
-9409

query I rowsort
SELECT 24 + cor0.col1 AS col1 FROM tab2, tab0 AS cor0 CROSS JOIN tab1
----
27 values hashing to e56bb0ab80c3a7159a3ac816bee877b3

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-670
SELECT + col2 + + CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-670
SELECT + col2 + + CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + - col1 - - 4 AS col0 FROM tab1 AS cor0
----
-22
-6
-9

query I rowsort
SELECT DISTINCT - 84 - col1 AS col0 FROM tab2
----
-101
-115
-143

query I rowsort
SELECT 17 * tab1.col1 FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to e92ffa9a50a23ae51886d6d382bfb40b

query I rowsort
SELECT ALL + ( + col1 ) + ( 75 ) AS col1 FROM tab1 cor0
----
101
85
88

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + col1 ) + - ( - col0 ) col2 FROM tab1
----
29
74
93

query I rowsort
SELECT ALL + 45 AS col2 FROM tab2
----
45
45
45

query I rowsort
SELECT ALL col1 + col2 * + col2 AS col1 FROM tab2
----
1461
735
760

query I rowsort
SELECT col1 * col2 + - col1 AS col1 FROM tab1
----
1235
1378
560

query I rowsort
SELECT - col0 + - 73 FROM tab0
----
-108
-162
-97

query I rowsort
SELECT DISTINCT - + 4 * 62 AS col1 FROM tab1 AS cor0
----
-248

query I rowsort
SELECT - + 0 + col2 FROM tab1 cor0
----
54
57
96

query I rowsort
SELECT DISTINCT + 50 * col1 AS col1 FROM tab0 AS cor0
----
4300
4550
4850

query I rowsort
SELECT DISTINCT + 41 FROM tab2, tab0 cor0
----
41

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + + col2 + col2 col0 FROM tab0
----
253
37
90

query I rowsort
SELECT ALL col1 * col0 + 90 AS col1 FROM tab0
----
2154
3485
8189

query I rowsort
SELECT ALL - + 94 * - col0 FROM tab1 AS cor0
----
282
6016
7520

query I rowsort
SELECT DISTINCT + ( col2 ) * - col2 FROM tab0 cor0
----
-1
-1089
-6724

onlyif mysql # use DIV operator for integer division
query I rowsort label-688
SELECT ALL 63 DIV col0 FROM tab0 AS cor0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-688
SELECT ALL 63 / col0 FROM tab0 AS cor0
----
0
1
2

query I rowsort
SELECT - 61 * + col2 * col0 FROM tab2 AS cor0
----
-11529
-123708
-183122

query I rowsort
SELECT DISTINCT - 28 * - col1 AS col1 FROM tab1 cor0
----
280
364
728

query I rowsort
SELECT ALL - col0 + 57 * + col1 - + cor0.col2 * cor0.col0 FROM tab0 AS cor0
----
-2200
4086
5459

query I rowsort
SELECT DISTINCT - 92 + + 87 * col1 FROM tab1 cor0
----
1039
2170
778

query I rowsort
SELECT + cor0.col1 * ( + col2 ) FROM tab1 AS cor0
----
1248
1404
570

onlyif mysql # use DIV operator for integer division
query I rowsort label-694
SELECT ALL col0 DIV col1 col2 FROM tab1 AS cor0
----
0
6
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-694
SELECT ALL col0 / col1 col2 FROM tab1 AS cor0
----
0
6
6

query I rowsort
SELECT ALL + - 84 * col1 AS col0 FROM tab1 AS cor0
----
-1092
-2184
-840

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-696
SELECT - CAST( + 41 AS SIGNED ) AS col1 FROM tab0
----
-41
-41
-41

skipif mysql # not compatible
query I rowsort label-696
SELECT - CAST ( + 41 AS INTEGER ) AS col1 FROM tab0
----
-41
-41
-41

onlyif mysql # use DIV operator for integer division
query I rowsort label-697
SELECT ALL - col2 DIV 96 col0 FROM tab1
----
-1
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-697
SELECT ALL - col2 / 96 col0 FROM tab1
----
-1
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-698
SELECT CAST( 18 AS SIGNED ) col0 FROM tab0
----
18
18
18

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-698
SELECT CAST ( 18 AS INTEGER ) col0 FROM tab0
----
18
18
18

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-699
SELECT ALL + CAST( NULL AS SIGNED ) + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-699
SELECT ALL + CAST ( NULL AS INTEGER ) + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - + ( col2 ) * - col2 FROM tab1 AS cor0
----
2916
3249
9216

query I rowsort
SELECT col1 + - col2 * col2 FROM tab0 AS cor0
----
-1003
-6633
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 44 * - col1 col2 FROM tab0
----
-3784
-4004
-4268

query I rowsort
SELECT - cor0.col0 AS col2 FROM tab1, tab0, tab0 AS cor0
----
27 values hashing to c3ebf1695ca74567bdc173dbe15186a8

query I rowsort
SELECT ALL - 13 AS col1 FROM tab1, tab0, tab0 AS cor0
----
27 values hashing to 1c6aaa07ba8d3dc01ee616e16bef60f2

query I rowsort
SELECT DISTINCT + 8 FROM tab2, tab2 cor0
----
8

query I rowsort
SELECT DISTINCT 8 * + col2 AS col0 FROM tab1
----
432
456
768

query I rowsort
SELECT DISTINCT col0 * - cor0.col1 - col0 AS col0 FROM tab1 cor0
----
-1120
-704
-81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 53 * + col2 col2 FROM tab0 cor0
----
1749
4346
53

query I rowsort
SELECT - + col2 * + cor0.col0 AS col0 FROM tab1 AS cor0
----
-162
-3648
-7680

onlyif mysql # use DIV operator for integer division
query I rowsort label-710
SELECT DISTINCT - col1 + - col1 DIV col1 FROM tab0 AS cor0
----
-87
-92
-98

skipif mysql # not compatible
query I rowsort label-710
SELECT DISTINCT - col1 + - col1 / col1 FROM tab0 AS cor0
----
-87
-92
-98

query I rowsort
SELECT ALL - col2 * - col1 + col2 * + col1 AS col2 FROM tab0 AS cor0
----
14924
194
5676

query I rowsort
SELECT - 25 + + col1 + col2 FROM tab1 AS cor0
----
42
55
84

query I rowsort
SELECT - 84 * - cor0.col1 AS col0 FROM tab0 AS cor0
----
7224
7644
8148

query I rowsort
SELECT + - 56 AS col0 FROM tab0 AS cor0
----
-56
-56
-56

query I rowsort
SELECT col0 * ( 92 ) + col0 FROM tab0 AS cor0
----
2232
3255
8277

onlyif mysql # use DIV operator for integer division
query I rowsort label-716
SELECT DISTINCT - cor0.col2 * cor0.col1 DIV - 61 + cor0.col1 FROM tab2 AS cor0
----
27
44
84

skipif mysql # not compatible
query I rowsort label-716
SELECT DISTINCT - cor0.col2 * cor0.col1 / - 61 + cor0.col1 FROM tab2 AS cor0
----
27
44
84

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-717
SELECT DISTINCT - col2 + + CAST( col0 AS SIGNED ) * - col0 col2 FROM tab0 AS cor0
----
-1226
-609
-8003

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-717
SELECT DISTINCT - col2 + + CAST ( col0 AS INTEGER ) * - col0 col2 FROM tab0 AS cor0
----
-1226
-609
-8003

query I rowsort
SELECT - col2 * col2 + - cor0.col0 AS col2 FROM tab2 AS cor0
----
-1523
-736
-754

query I rowsort
SELECT ALL - col2 * 82 FROM tab0 AS cor0
----
-2706
-6724
-82

query I rowsort
SELECT - col2 - ( col0 ) FROM tab2 AS cor0
----
-104
-117
-34

query I rowsort
SELECT DISTINCT - col2 * - ( tab1.col2 + + col0 * - ( + 64 ) ) AS col2 FROM tab1
----
-230223
-482304
-7452

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 58 col0 FROM tab2, tab1 AS cor0
----
9 values hashing to de0811e670e75d2aeeb657e32bddb0c0

query I rowsort
SELECT + col0 - 44 AS col1 FROM tab2 AS cor0
----
-37
34
35

query I rowsort
SELECT + col2 - - 49 * - col0 FROM tab2 AS cor0
----
-316
-3796
-3833

query I rowsort
SELECT + col2 * + col2 + cor0.col0 AS col2 FROM tab2 AS cor0
----
1523
736
754

query I rowsort
SELECT ALL - - col0 * - col2 AS col2 FROM tab2 AS cor0
----
-189
-2028
-3002

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col0 + + col2 col1 FROM tab2 AS cor0
----
104
117
34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + - 25 * col0 * cor0.col0 col0 FROM tab2 AS cor0
----
-1252
-152126
-156063

query I rowsort
SELECT + col0 * 86 + col2 AS col0 FROM tab0 AS cor0
----
2097
3011
7736

query I rowsort
SELECT - cor0.col1 + col0 AS col0 FROM tab1 cor0
----
-23
54
67

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab1 cor0, tab0, tab2 cor1
----
972 values hashing to 591a9a93560839231c038a1e10bd240a

query I rowsort
SELECT ALL - tab0.col0 + - col2 AS col2 FROM tab0
----
-171
-36
-57

query I rowsort
SELECT DISTINCT - col1 + 26 * + col1 AS col2 FROM tab1 AS cor0
----
250
325
650

query I rowsort
SELECT ALL col2 * + 19 - col1 * - col2 * - col1 FROM tab2 AS cor0
----
-10260
-25434
-90012

query I rowsort
SELECT cor0.col1 + 88 FROM tab1 AS cor0
----
101
114
98

query I rowsort
SELECT DISTINCT cor0.col1 + col2 * col2 * col0 FROM tab2 AS cor0
----
114093
5134
52787

query I rowsort
SELECT - - col0 * + cor0.col1 + cor0.col0 FROM tab1 AS cor0
----
1120
704
81

query I rowsort
SELECT + col1 * + 65 FROM tab1 AS cor0
----
1690
650
845

query I rowsort
SELECT - col2 + col0 * col0 AS col1 FROM tab1 AS cor0
----
-45
4039
6304

query I rowsort
SELECT ALL col2 + ( col0 ) * - cor0.col0 FROM tab1 AS cor0
----
-4039
-6304
45

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2 cor0 CROSS JOIN tab0, tab1 AS cor1, tab0 cor2, tab1 AS cor3
----
3645 values hashing to f464d40c605db608927f2c4d66190a23

query I rowsort
SELECT ALL 44 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1, tab2 AS cor1
----
27 values hashing to 0cc3e52e781e46962291c3060c6ae73b

query I rowsort
SELECT 75 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 22042bfd4d787415457a42bb93d48eea

query I rowsort
SELECT - col2 * + 18 + + 6 FROM tab1 AS cor0
----
-1020
-1722
-966

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-745
SELECT + col2 + + CAST( - 7 AS SIGNED ) * col1 FROM tab2 AS cor0
----
-190
-387
-81

skipif mysql # not compatible
query I rowsort label-745
SELECT + col2 + + CAST ( - 7 AS INTEGER ) * col1 FROM tab2 AS cor0
----
-190
-387
-81

query I rowsort
SELECT col0 * + ( col2 ) AS col1 FROM tab1 AS cor0
----
162
3648
7680

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-747
SELECT col2 + + CAST( 11 AS SIGNED ) FROM tab2
----
37
38
49

skipif mysql # not compatible
query I rowsort label-747
SELECT col2 + + CAST ( 11 AS INTEGER ) FROM tab2
----
37
38
49

query I rowsort
SELECT + cor1.col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to c61d27a0022e6d022371dc58819ab272

query I rowsort
SELECT DISTINCT 73 AS col2 FROM tab0 AS cor0
----
73

query I rowsort
SELECT DISTINCT + col1 * - col2 * col1 FROM tab0
----
-244068
-679042
-9409

query I rowsort
SELECT DISTINCT + col1 * col1 + col1 FROM tab0
----
7482
8372
9506

query I rowsort
SELECT DISTINCT 38 * col0 FROM tab2
----
266
2964
3002

query I rowsort
SELECT - 87 * + col1 FROM tab1
----
-1131
-2262
-870

query I rowsort
SELECT + - 77 + col1 - 29 AS col1 FROM tab0 AS cor0
----
-15
-20
-9

query I rowsort
SELECT - 66 + col0 FROM tab1 AS cor0
----
-2
-63
14

query I rowsort
SELECT ALL + 1 - - col2 * + col2 FROM tab0
----
1090
2
6725

onlyif mysql # use DIV operator for integer division
query I rowsort label-757
SELECT DISTINCT + - 13 + + col1 DIV 94 AS col0 FROM tab0 AS cor0
----
-12
-13

skipif mysql # not compatible
query I rowsort label-757
SELECT DISTINCT + - 13 + + col1 / 94 AS col0 FROM tab0 AS cor0
----
-12
-13

query I rowsort
SELECT + col2 * + col2 - + col0 * - ( + col2 + 46 * - col1 ) FROM tab1 AS cor0
----
-22543
-30944
-510

query I rowsort
SELECT - col2 * col2 - + col1 * - col0 FROM tab0 AS cor0
----
1375
3394
975

query I rowsort
SELECT + 4 + - col0 FROM tab0 AS cor0
----
-20
-31
-85

onlyif mysql # use DIV operator for integer division
query I rowsort label-761
SELECT - + col2 DIV - col1 AS col2 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-761
SELECT - + col2 / - col1 AS col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT - + col2 - col0 AS col2 FROM tab0 AS cor0
----
-171
-36
-57

query I rowsort
SELECT DISTINCT + 58 * 53 AS col1 FROM tab0, tab1 AS cor0
----
3074

query I rowsort
SELECT DISTINCT - cor0.col1 * + cor0.col0 AS col2 FROM tab1 cor0
----
-1040
-640
-78

onlyif mysql # use DIV operator for integer division
query I rowsort label-765
SELECT - col2 + 48 DIV - col1 AS col0 FROM tab2 AS cor0
----
-26
-28
-40

skipif mysql # not compatible
query I rowsort label-765
SELECT - col2 + 48 / - col1 AS col0 FROM tab2 AS cor0
----
-26
-28
-40

query I rowsort
SELECT ALL + col2 + + 35 AS col2 FROM tab0 AS cor0
----
117
36
68

query I rowsort
SELECT col0 + col2 * - col0 - col1 AS col2 FROM tab0 AS cor0
----
-7300
-854
-97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-768
SELECT DISTINCT - col0 + - CAST( 98 AS SIGNED ) * + col0 FROM tab2 AS cor0
----
-693
-7722
-7821

skipif mysql # not compatible
query I rowsort label-768
SELECT DISTINCT - col0 + - CAST ( 98 AS INTEGER ) * + col0 FROM tab2 AS cor0
----
-693
-7722
-7821

query I rowsort
SELECT 57 * - col0 FROM tab1
----
-171
-3648
-4560

query I rowsort
SELECT - col2 * - ( cor0.col0 ) AS col1 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT ALL cor0.col0 * + 33 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 739b1604452f62ca3cad11617547075c

onlyif mysql # use DIV operator for integer division
query I rowsort label-772
SELECT - col1 + 12 DIV col0 FROM tab1 AS cor0
----
-10
-13
-22

skipif mysql # not compatible
query I rowsort label-772
SELECT - col1 + 12 / col0 FROM tab1 AS cor0
----
-10
-13
-22

query I rowsort
SELECT 69 FROM tab2, tab0 cor0
----
9 values hashing to 85d9b90a03b9def161891b13085271f7

query I rowsort
SELECT ( ( + col1 ) ) AS col0 FROM tab2
----
17
31
59

query I rowsort
SELECT ALL + cor0.col2 + + 76 AS col1 FROM tab1 AS cor0
----
130
133
172

query I rowsort
SELECT ALL + 65 + - 58 * col0 AS col0 FROM tab0 AS cor0
----
-1327
-1965
-5097

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-777
SELECT DISTINCT CAST( NULL AS SIGNED ) + + col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-777
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - col1 * + col1 + + col0 + 77 FROM tab0 cor0
----
-7295
-8115
-9297

query I rowsort
SELECT ALL + 24 * col1 + col1 * + col0 + col1 AS col2 FROM tab1 AS cor0
----
1365
728
890

query I rowsort
SELECT ALL - ( col0 ) + - col1 + 98 * + col0 FROM tab2 AS cor0
----
648
7507
7646

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-781
SELECT - col0 * + col1 * CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-781
SELECT - col0 * + col1 * CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - - 95 * cor0.col0 FROM tab1 AS cor0
----
285
6080
7600

onlyif mysql # use DIV operator for integer division
query I rowsort label-783
SELECT ALL col1 DIV - col1 AS col2 FROM tab0 cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-783
SELECT ALL col1 / - col1 AS col2 FROM tab0 cor0
----
-1
-1
-1

query I rowsort
SELECT ALL - 19 AS col0 FROM tab0 AS cor0
----
-19
-19
-19

query I rowsort
SELECT DISTINCT 89 + + col2 AS col1 FROM tab0 AS cor0
----
122
171
90

query I rowsort
SELECT DISTINCT col2 * + cor0.col0 AS col1 FROM tab1 AS cor0
----
162
3648
7680

onlyif mysql # use DIV operator for integer division
query I rowsort label-787
SELECT DISTINCT - col0 + col1 DIV col2 FROM tab0 AS cor0
----
-22
-88
62

skipif mysql # not compatible
query I rowsort label-787
SELECT DISTINCT - col0 + col1 / col2 FROM tab0 AS cor0
----
-22
-88
62

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-788
SELECT ALL CAST( + col0 * + col0 AS SIGNED ) FROM tab2
----
49
6084
6241

skipif mysql # not compatible
query I rowsort label-788
SELECT ALL CAST ( + col0 * + col0 AS INTEGER ) FROM tab2
----
49
6084
6241

query I rowsort
SELECT ALL + 52 FROM tab2, tab0 AS cor0
----
9 values hashing to 7f4ae30893ab330784829711032ae599

query I rowsort
SELECT col1 + + 29 AS col0 FROM tab1
----
39
42
55

query I rowsort
SELECT ALL - col2 * col0 * - col0 + + col1 AS col1 FROM tab2
----
1354
158243
237175

query I rowsort
SELECT ALL col0 * - col1 + + col0 * tab1.col1 FROM tab1 WHERE NOT NULL <> NULL
----

query I rowsort
SELECT ALL + col1 + - col2 * col2 FROM tab0
----
-1003
-6633
96

query I rowsort
SELECT DISTINCT + col0 - tab1.col0 FROM tab1
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL = col2 + col2
----

query I rowsort
SELECT col0 + - tab2.col0 * col1 FROM tab2
----
-1264
-210
-4524

query I rowsort
SELECT DISTINCT col2 * - col1 + - col0 AS col2 FROM tab1
----
-1328
-1407
-634

query I rowsort
SELECT tab2.col2 * col2 + col2 AS col2 FROM tab2
----
1482
702
756

onlyif mysql # use DIV operator for integer division
query I rowsort label-799
SELECT DISTINCT col1 - - col2 DIV col1 AS col1 FROM tab0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-799
SELECT DISTINCT col1 - - col2 / col1 AS col1 FROM tab0
----
86
91
97

query I rowsort
SELECT - col0 - + col0 * col1 AS col1 FROM tab0
----
-2088
-3430
-8188

query I rowsort
SELECT col0 FROM tab0 WHERE col2 * + col1 NOT IN ( - col0 * - col2 * col0 )
----
24
35
89

query I rowsort
SELECT ALL + col0 + + tab2.col2 FROM tab2
----
104
117
34

onlyif mysql # use DIV operator for integer division
query I rowsort label-803
SELECT DISTINCT - col0 + col2 DIV + col0 FROM tab0
----
-23
-35
-89

skipif mysql # not compatible
query I rowsort label-803
SELECT DISTINCT - col0 + col2 / + col0 FROM tab0
----
-23
-35
-89

query I rowsort
SELECT - + col1 * cor0.col2 AS col2 FROM tab1 AS cor0
----
-1248
-1404
-570

query III rowsort
SELECT * FROM tab1 WHERE col2 IN ( col1 / tab1.col1 )
----

query I rowsort
SELECT DISTINCT col0 + tab1.col1 AS col1 FROM tab1
----
29
74
93

query I rowsort
SELECT + 65 FROM tab0, tab1 AS cor0, tab1 AS cor1, tab0 AS cor2
----
81 values hashing to 1654646feeae82f39d2f564fe4ea26c2

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL < NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-809
SELECT DISTINCT col1 + col1 * col0 DIV - col2 FROM tab1 cor0
----
-1
25
3

skipif mysql # not compatible
query I rowsort label-809
SELECT DISTINCT col1 + col1 * col0 / - col2 FROM tab1 cor0
----
-1
25
3

query I rowsort
SELECT ALL cor0.col0 * + col0 - - col2 AS col0 FROM tab2 AS cor0
----
6110
6279
76

query I rowsort
SELECT cor0.col0 * + col2 + - col1 AS col0 FROM tab0 AS cor0
----
-62
706
7207

query I rowsort
SELECT DISTINCT col2 + - cor0.col0 AS col1 FROM tab0 AS cor0
----
-34
-7
9

query I rowsort
SELECT - col2 - - col1 FROM tab0 WHERE col0 BETWEEN NULL AND col1 + - col2
----

query I rowsort
SELECT DISTINCT col1 * col2 - col0 * + col0 * + col1 FROM tab0 AS cor0
----
-118728
-46698
-713349

query I rowsort
SELECT + col0 * + col0 - col1 AS col0 FROM tab2 AS cor0
----
18
6025
6224

query I rowsort
SELECT ALL col0 * col0 * + col2 FROM tab0 AS cor0
----
1225
19008
649522

query I rowsort
SELECT ALL - col1 * col2 * col0 + col0 AS col2 FROM tab0
----
-3360
-664029
-68088

query I rowsort
SELECT ALL - col1 * + col1 AS col2 FROM tab2
----
-289
-3481
-961

query I rowsort
SELECT - col1 + col2 + - col0 FROM tab0
----
-131
-77
-98

query I rowsort
SELECT col0 + + col0 * col1 AS col2 FROM tab2
----
1422
224
4680

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab0.col0 * - col2 col1 FROM tab0
----
-35
-7298
-792

onlyif mysql # use DIV operator for integer division
query I rowsort label-822
SELECT ALL + col1 DIV - col1 + + col2 * - col1 - + col1 AS col2 FROM tab1
----
-1262
-1431
-581

skipif mysql # not compatible
query I rowsort label-822
SELECT ALL + col1 / - col1 + + col2 * - col1 - + col1 AS col2 FROM tab1
----
-1262
-1431
-581

query I rowsort
SELECT DISTINCT col0 + + col2 + tab0.col0 AS col0 FROM tab0
----
260
71
81

query I rowsort
SELECT ALL + col1 * tab1.col2 FROM tab1 WHERE NOT ( NULL ) <= ( NULL )
----

query I rowsort
SELECT col0 * tab1.col0 + - tab1.col1 + col2 AS col0 FROM tab1
----
37
4143
6483

query I rowsort
SELECT - col1 - - col0 FROM tab2
----
-24
19
62

query I rowsort
SELECT DISTINCT col1 * col1 * col0 FROM tab1
----
13520
2028
6400

query I rowsort
SELECT + col1 * col0 * col1 FROM tab0
----
177504
329315
737009

query I rowsort
SELECT DISTINCT + col2 FROM tab2 WHERE NOT col0 <= NULL
----

query I rowsort
SELECT + tab2.col2 - col1 FROM tab2
----
-33
-4
21

query I rowsort
SELECT ALL - tab1.col2 + + col1 AS col1 FROM tab1
----
-28
-47
-83

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL NOT IN ( col0 + - col1 * + col2 )
----

query I rowsort
SELECT - col2 * - col2 + tab2.col1 AS col2 FROM tab2
----
1461
735
760

query III rowsort
SELECT * FROM tab2 WHERE NULL IN ( - tab2.col2 )
----

query I rowsort
SELECT - 81 * 96 FROM tab1 cor0
----
-7776
-7776
-7776

query I rowsort
SELECT ALL + 61 FROM tab1, tab2 AS cor0
----
9 values hashing to 07149905a72bd87553381f34d19ed290

query I rowsort
SELECT + col1 + 88 * col1 * ( 29 ) FROM tab1 cor0
----
25530
33189
66378

query I rowsort
SELECT tab2.col0 * + col2 AS col0 FROM tab2
----
189
2028
3002

query I rowsort
SELECT - - 89 AS col0 FROM tab0 AS cor0
----
89
89
89

query I rowsort
SELECT ALL - cor0.col1 AS col1 FROM tab1, tab1 cor0, tab1 AS cor1
----
27 values hashing to c7890469eabb2c6fc81454b35d2333b6

query I rowsort
SELECT col0 * - 29 FROM tab2
----
-203
-2262
-2291

query I rowsort
SELECT 89 * - cor0.col2 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to d8e40f1ab07fa8f54a72b1dfc2909de7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 20 col2 FROM tab0
----
20
20
20

query I rowsort
SELECT DISTINCT + tab1.col1 + + 58 AS col1 FROM tab1
----
68
71
84

query I rowsort
SELECT DISTINCT - ( tab2.col0 * col1 ) AS col0 FROM tab2
----
-1343
-217
-4602

query I rowsort
SELECT - 60 * + col0 AS col0 FROM tab0
----
-1440
-2100
-5340

query I rowsort
SELECT + ( + 78 ) * - tab2.col0 FROM tab2
----
-546
-6084
-6162

query I rowsort
SELECT - col0 * + col2 * col1 FROM tab1
----
-36480
-4212
-99840

query I rowsort
SELECT - col0 * ( 46 * + col2 ) FROM tab0 AS cor0
----
-1610
-335708
-36432

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + - col2 * + col2 col1 FROM tab0 cor0
----
-1003
-6633
96

query I rowsort
SELECT - col0 + - ( - cor0.col2 ) FROM tab2 AS cor0
----
-41
-52
20

query I rowsort
SELECT ALL col1 + 19 * cor0.col0 FROM tab1 AS cor0
----
1226
1533
83

query I rowsort
SELECT DISTINCT - col0 - cor0.col1 FROM tab0 AS cor0
----
-110
-132
-180

query I rowsort
SELECT DISTINCT col2 + - ( + col1 ) FROM tab2 AS cor0
----
-33
-4
21

query I rowsort
SELECT col1 * - ( ( col2 ) ) AS col0 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT + col1 * 38 - - 44 FROM tab0 AS cor0
----
3312
3502
3730

query I rowsort
SELECT ALL - cor0.col2 * 82 + 31 FROM tab2 AS cor0
----
-2101
-2183
-3085

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-858
SELECT col1 - + CAST( col0 AS SIGNED ) * + col1 FROM tab2 AS cor0
----
-1326
-186
-4543

skipif mysql # not compatible
query I rowsort label-858
SELECT col1 - + CAST ( col0 AS INTEGER ) * + col1 FROM tab2 AS cor0
----
-1326
-186
-4543

onlyif mysql # use DIV operator for integer division
query I rowsort label-859
SELECT CAST( 13 AS SIGNED ) DIV + col2 + tab1.col1 - col2 AS col0 FROM tab1
----
-28
-47
-83

skipif mysql # not compatible
query I rowsort label-859
SELECT CAST ( 13 AS INTEGER ) / + col2 + tab1.col1 - col2 AS col0 FROM tab1
----
-28
-47
-83

query I rowsort
SELECT DISTINCT + col1 * col1 * + col2 - - col0 FROM tab0
----
244092
679131
9444

query I rowsort
SELECT col0 + - col1 * col0 AS col0 FROM tab1
----
-576
-75
-960

query I rowsort
SELECT ( - 3 ) * - col1 * - tab1.col2 - col2 AS col1 FROM tab1
----
-1767
-3840
-4266

query I rowsort
SELECT DISTINCT - ( col1 * col2 ) - col1 FROM tab2
----
-1593
-663
-868

query I rowsort
SELECT DISTINCT 12 * col1 + + tab0.col1 * - col0 FROM tab0
----
-1032
-2231
-7007

onlyif mysql # use DIV operator for integer division
query I rowsort label-865
SELECT - + col0 DIV - 24 AS col1 FROM tab0 AS cor0
----
1
1
3

skipif mysql # not compatible
query I rowsort label-865
SELECT - + col0 / - 24 AS col1 FROM tab0 AS cor0
----
1
1
3

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-866
SELECT ALL - CAST( ( - col0 ) AS SIGNED ) + col0 FROM tab1 AS cor0
----
128
160
6

skipif mysql # not compatible
query I rowsort label-866
SELECT ALL - CAST ( ( - col0 ) AS INTEGER ) + col0 FROM tab1 AS cor0
----
128
160
6

query I rowsort
SELECT DISTINCT + ( - 11 ) AS col1 FROM tab2 AS cor0
----
-11

onlyif mysql # use DIV operator for integer division
query I rowsort label-868
SELECT - 80 * - col1 * + col1 - + col2 DIV - col1 FROM tab1 AS cor0
----
13527
54082
8005

skipif mysql # not compatible
query I rowsort label-868
SELECT - 80 * - col1 * + col1 - + col2 / - col1 FROM tab1 AS cor0
----
13527
54082
8005

query I rowsort
SELECT DISTINCT ( - col2 ) + + col0 AS col1 FROM tab0 AS cor0
----
-9
34
7

query I rowsort
SELECT DISTINCT - + 44 + cor0.col2 AS col0 FROM tab2 AS cor0
----
-17
-18
-6

query I rowsort
SELECT + + cor0.col0 * - col0 - col0 FROM tab0 AS cor0
----
-1260
-600
-8010

onlyif mysql # use DIV operator for integer division
query I rowsort label-872
SELECT - + 97 + - col1 DIV col2 FROM tab1 cor0
----
-97
-97
-97

skipif mysql # not compatible
query I rowsort label-872
SELECT - + 97 + - col1 / col2 FROM tab1 cor0
----
-97
-97
-97

query I rowsort
SELECT DISTINCT cor1.col2 FROM tab1, tab1 cor0, tab0 cor1
----
1
33
82

onlyif mysql # use DIV operator for integer division
query I rowsort label-874
SELECT DISTINCT + - col0 + - cor0.col1 DIV col1 AS col2 FROM tab2 AS cor0
----
-79
-8
-80

skipif mysql # not compatible
query I rowsort label-874
SELECT DISTINCT + - col0 + - cor0.col1 / col1 AS col2 FROM tab2 AS cor0
----
-79
-8
-80

query I rowsort
SELECT + col0 + cor0.col2 AS col2 FROM tab2 cor0
----
104
117
34

query I rowsort
SELECT DISTINCT + + col1 * - cor0.col2 AS col0 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT + col1 * + col2 + - cor0.col2 AS col2 FROM tab2 AS cor0
----
1508
608
810

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col1 + + col1 col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - 83 AS col1 FROM tab2 AS cor0
----
-83

onlyif mysql # use DIV operator for integer division
query I rowsort label-880
SELECT - - col0 DIV col1 AS col0 FROM tab1 cor0
----
0
6
6

skipif mysql # not compatible
query I rowsort label-880
SELECT - - col0 / col1 AS col0 FROM tab1 cor0
----
0
6
6

query I rowsort
SELECT ALL + col2 + col1 * col1 AS col0 FROM tab1 AS cor0
----
157
265
730

query I rowsort
SELECT ALL - col1 * - col0 + col2 AS col1 FROM tab1 AS cor0
----
1136
132
697

query I rowsort
SELECT - 21 + col2 + cor0.col2 AS col1 FROM tab2 AS cor0
----
31
33
55

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-884
SELECT + CAST( NULL AS DECIMAL ) col0 FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-884
SELECT + CAST ( NULL AS REAL ) col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - tab0.col0 FROM tab0, tab1, tab2 cor0
----
27 values hashing to c3ebf1695ca74567bdc173dbe15186a8

onlyif mysql # use DIV operator for integer division
query I rowsort label-886
SELECT tab1.col1 + 78 DIV + col0 AS col1 FROM tab1
----
11
13
52

skipif mysql # not compatible
query I rowsort label-886
SELECT tab1.col1 + 78 / + col0 AS col1 FROM tab1
----
11
13
52

query I rowsort
SELECT - + ( col2 ) + col0 AS col0 FROM tab1 AS cor0
----
-16
-51
7

query I rowsort
SELECT DISTINCT + + 41 + + col1 * col1 AS col2 FROM tab2 AS cor0
----
1002
330
3522

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col2 * col2 col2 FROM tab0 cor0
----
1
1089
6724

query I rowsort
SELECT ALL - cor0.col2 AS col0 FROM tab1, tab0 cor0
----
9 values hashing to b5a4102107e5ebd26e341538f4fede1e

query I rowsort
SELECT - col0 + ( + col2 ) FROM tab2 AS cor0
----
-41
-52
20

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-892
SELECT ALL - col2 + + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-892
SELECT ALL - col2 + + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - + col1 + col2 AS col2 FROM tab0 AS cor0
----
-53
-9
-96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-894
SELECT ALL - - col1 * CAST( col0 AS SIGNED ) + + col1 FROM tab2 AS cor0
----
1360
248
4661

skipif mysql # not compatible
query I rowsort label-894
SELECT ALL - - col1 * CAST ( col0 AS INTEGER ) + + col1 FROM tab2 AS cor0
----
1360
248
4661

query I rowsort
SELECT ALL + col1 * col1 * ( col0 ) + cor0.col0 + - col0 * + col2 FROM tab0 AS cor0
----
176736
329315
729800

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-896
SELECT - cor0.col0 + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-896
SELECT - cor0.col0 + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-897
SELECT ALL col0 + + CAST( + 91 AS SIGNED ) + cor0.col2 FROM tab1 AS cor0
----
148
212
267

skipif mysql # not compatible
query I rowsort label-897
SELECT ALL col0 + + CAST ( + 91 AS INTEGER ) + cor0.col2 FROM tab1 AS cor0
----
148
212
267

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( col1 ) + - col2 col0 FROM tab2 cor0
----
-21
33
4

query I rowsort
SELECT ALL - + 93 * + col0 FROM tab1 AS cor0
----
-279
-5952
-7440

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-900
SELECT DISTINCT CAST( + cor0.col1 AS SIGNED ) AS col1 FROM tab1, tab2 AS cor0
----
17
31
59

skipif mysql # not compatible
query I rowsort label-900
SELECT DISTINCT CAST ( + cor0.col1 AS INTEGER ) AS col1 FROM tab1, tab2 AS cor0
----
17
31
59

query I rowsort
SELECT + col0 + - col2 * col1 AS col1 FROM tab1
----
-1168
-1401
-506

query I rowsort
SELECT ALL + - cor0.col2 * - col2 FROM tab0 AS cor0
----
1
1089
6724

query I rowsort
SELECT - col1 * col2 * - col1 + col1 FROM tab2
----
10999
25978
90565

query I rowsort
SELECT + cor0.col1 + - col1 AS col1 FROM tab0 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * col0 + col0 col1 FROM tab2 AS cor0
----
-1264
-210
-4524

query I rowsort
SELECT DISTINCT + + col1 - col0 AS col2 FROM tab2 AS cor0
----
-19
-62
24

query I rowsort
SELECT ALL - - col2 * cor0.col0 + + col1 FROM tab2 cor0
----
2087
220
3019

query I rowsort
SELECT DISTINCT - col0 * col0 * col2 FROM tab0 AS cor0
----
-1225
-19008
-649522

query I rowsort
SELECT DISTINCT + - cor0.col1 + col0 AS col2 FROM tab2 AS cor0
----
-24
19
62

query I rowsort
SELECT ALL + col2 * col0 + - cor0.col1 FROM tab2 cor0
----
158
1969
2985

query I rowsort
SELECT - col2 * + col1 * + col2 + + tab1.col1 * + col1 AS col1 FROM tab1
----
-119639
-32390
-75140

query I rowsort
SELECT - tab2.col0 + col2 AS col0 FROM tab2
----
-41
-52
20

onlyif mysql # use DIV operator for integer division
query I rowsort label-913
SELECT ALL col2 DIV col0 + - col0 FROM tab0
----
-23
-35
-89

skipif mysql # not compatible
query I rowsort label-913
SELECT ALL col2 / col0 + - col0 FROM tab0
----
-23
-35
-89

query I rowsort
SELECT ALL + col0 - + col2 FROM tab0
----
-9
34
7

query I rowsort
SELECT - col1 * col2 * - col0 AS col1 FROM tab2 cor0
----
119652
51034
5859

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * cor0.col2 col2 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT ALL + col2 * cor0.col0 + - col0 * + col2 AS col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT col1 * col1 * col2 AS col2 FROM tab2
----
10982
25947
90506

query I rowsort
SELECT - col0 / col1 FROM tab1 WHERE NOT ( NULL ) = ( - col1 * - col1 * col1 )
----

query I rowsort
SELECT ALL - - col1 * cor0.col2 - col0 FROM tab2 AS cor0
----
1456
567
830

query I rowsort
SELECT - tab1.col0 + tab1.col2 AS col1 FROM tab1
----
-7
16
51

query I rowsort
SELECT DISTINCT + 39 + - col2 * + col0 + col0 FROM tab0
----
-7170
-729
39

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + col2 * + col0 col1 FROM tab0
----
132
7389
878

query I rowsort
SELECT ALL + col1 + + col1 + + col0 * + col1 FROM tab1
----
1066
130
660

query I rowsort
SELECT + - col0 + cor0.col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT col1 + cor0.col2 AS col0 FROM tab1 AS cor0
----
109
67
80

query I rowsort
SELECT - tab2.col2 * - col2 * - col1 AS col0 FROM tab2
----
-22599
-24548
-39884

query I rowsort
SELECT tab2.col0 + col0 * col0 + - col2 * col1 FROM tab2
----
-781
4628
5674

query I rowsort
SELECT DISTINCT + col0 * - col2 FROM tab2 cor0
----
-189
-2028
-3002

query I rowsort
SELECT - + cor0.col1 * - col1 + col1 AS col0 FROM tab0 AS cor0
----
7482
8372
9506

onlyif mysql # use DIV operator for integer division
query I rowsort label-931
SELECT ALL cor0.col0 DIV - col1 + + cor0.col0 FROM tab1 cor0
----
3
58
74

skipif mysql # not compatible
query I rowsort label-931
SELECT ALL cor0.col0 / - col1 + + cor0.col0 FROM tab1 cor0
----
3
58
74

query I rowsort
SELECT - tab0.col2 + col2 AS col1 FROM tab0
----
0
0
0

query I rowsort
SELECT - - col2 + col1 AS col0 FROM tab0 AS cor0
----
119
173
98

query I rowsort
SELECT ALL - - col0 + - cor0.col1 AS col0 FROM tab1 AS cor0
----
-23
54
67

query I rowsort
SELECT DISTINCT - cor0.col2 * col1 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT DISTINCT - col0 * - col0 * col2 + col1 * cor0.col2 * col0 FROM tab2 cor0
----
277836
288192
7182

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col0 * - cor0.col2 col0 FROM tab1 AS cor0
----
162
3648
7680

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-938
SELECT DISTINCT - CAST( NULL AS SIGNED ) + 32 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-938
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + 32 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-939
SELECT + tab2.col1 DIV 78 col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-939
SELECT + tab2.col1 / 78 col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query I rowsort
SELECT DISTINCT + cor0.col1 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
17
31
59

onlyif mysql # use DIV operator for integer division
query I rowsort label-941
SELECT + 24 + col1 * + col1 DIV - col1 - + col2 FROM tab2 AS cor0
----
-31
-34
-61

skipif mysql # not compatible
query I rowsort label-941
SELECT + 24 + col1 * + col1 / - col1 - + col2 FROM tab2 AS cor0
----
-31
-34
-61

query I rowsort
SELECT ALL - 70 AS col1 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to c2a2994a4e94583683ccda2cc098c58f

onlyif mysql # use DIV operator for integer division
query I rowsort label-943
SELECT col0 DIV + col0 + col2 FROM tab1 AS cor0
----
55
58
97

skipif mysql # not compatible
query I rowsort label-943
SELECT col0 / + col0 + col2 FROM tab1 AS cor0
----
55
58
97

query I rowsort
SELECT DISTINCT cor0.col1 - col1 * + col1 FROM tab2 AS cor0
----
-272
-3422
-930

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-945
SELECT ALL - cor0.col1 - CAST( NULL AS DECIMAL ) * + 88 * cor0.col1 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-945
SELECT ALL - cor0.col1 - CAST ( NULL AS REAL ) * + 88 * cor0.col1 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col1 * - 85 FROM tab0
----
-7310
-7735
-8245

query I rowsort
SELECT - + col0 * - 66 AS col1 FROM tab1 cor0
----
198
4224
5280

query I rowsort
SELECT col1 * - ( - ( col2 ) + ( col1 ) ) AS col1 FROM tab1 AS cor0
----
1079
470
728

query I rowsort
SELECT col1 + + col0 * cor0.col1 AS col1 FROM tab0 AS cor0
----
2150
3492
8190

query I rowsort
SELECT - 6 * - col0 + col1 + col1 * col0 AS col1 FROM tab2
----
1834
290
5129

query I rowsort
SELECT - cor1.col0 AS col1 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to c82df1de3cb666224690a83f3d790d79

query I rowsort
SELECT ALL - col2 + + col1 * col2 AS col0 FROM tab0 cor0
----
2805
7380
96

query I rowsort
SELECT 38 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to afaddad0a4e3a1683a1c8cbe6eb522a7

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-954
SELECT DISTINCT + ( col1 ) + col0 + CAST( - col2 AS SIGNED ) * col0 FROM tab1 AS cor0
----
-133
-3574
-7587

skipif mysql # not compatible
query I rowsort label-954
SELECT DISTINCT + ( col1 ) + col0 + CAST ( - col2 AS INTEGER ) * col0 FROM tab1 AS cor0
----
-133
-3574
-7587

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( - col0 ) * - cor0.col0 * - col0 col2 FROM tab2 AS cor0
----
343
474552
493039

query I rowsort
SELECT DISTINCT - + 91 + 78 AS col2 FROM tab0 cor0
----
-13

query I rowsort
SELECT + + 65 * col1 AS col2 FROM tab0 AS cor0
----
5590
5915
6305

query I rowsort
SELECT ALL col0 * col1 + - col2 AS col2 FROM tab1 AS cor0
----
24
583
944

query I rowsort
SELECT DISTINCT col2 * + col2 * - col0 FROM tab1 AS cor0
----
-207936
-737280
-8748

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 64 + col1 col1 FROM tab1 AS cor0
----
74
77
90

query I rowsort
SELECT DISTINCT + 74 FROM tab0 cor0
----
74

query I rowsort
SELECT 13 + cor0.col0 * ( + col1 ) AS col1 FROM tab0 AS cor0
----
2077
3408
8112

query I rowsort
SELECT DISTINCT - - 22 FROM tab2 cor0
----
22

query I rowsort
SELECT ALL - - 21 + + col0 * col0 + + 57 AS col1 FROM tab0 AS cor0
----
1303
654
7999

query I rowsort
SELECT DISTINCT - 37 + col2 - + col1 AS col1 FROM tab1
----
-9
10
46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 86 col1 FROM tab1, tab2 cor0
----
86

query I rowsort
SELECT - 13 + + col2 * - col1 + col2 FROM tab2
----
-1521
-621
-823

onlyif mysql # use DIV operator for integer division
query I rowsort label-968
SELECT col0 DIV - col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-968
SELECT col0 / - col1 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-969
SELECT - col1 DIV col2 AS col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-969
SELECT - col1 / col2 AS col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT col1 + tab0.col0 + col2 AS col0 FROM tab0
----
133
143
262

query I rowsort
SELECT + cor0.col1 + - col0 * ( - cor0.col1 ) FROM tab1 AS cor0
----
104
1053
650

query I rowsort
SELECT + 73 FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to 3933a906d17a820ccf95467e2206df8f

query I rowsort
SELECT DISTINCT 10 AS col2 FROM tab1, tab2 AS cor0, tab2 cor1
----
10

query I rowsort
SELECT 33 * col0 + + ( col1 ) FROM tab0 AS cor0
----
1252
3028
878

query I rowsort
SELECT + ( col0 ) * - col2 FROM tab2 cor0
----
-189
-2028
-3002

onlyif mysql # use DIV operator for integer division
query I rowsort label-976
SELECT col0 DIV ( - 87 * + col0 ) - cor0.col1 * - col1 FROM tab0 AS cor0
----
7396
8281
9409

skipif mysql # not compatible
query I rowsort label-976
SELECT col0 / ( - 87 * + col0 ) - cor0.col1 * - col1 FROM tab0 AS cor0
----
7396
8281
9409

query I rowsort
SELECT DISTINCT col1 * tab2.col1 + + 4 + - col2 AS col2 FROM tab2
----
255
3459
938

query I rowsort
SELECT - col2 - + ( cor0.col0 ) * - col0 FROM tab0 AS cor0
----
1224
543
7839

query I rowsort
SELECT col2 * col0 + col1 AS col0 FROM tab2 cor0
----
2087
220
3019

query I rowsort
SELECT col0 * col2 + + 95 FROM tab0 AS cor0
----
130
7393
887

query I rowsort
SELECT cor0.col2 AS col2 FROM tab0, tab2 AS cor0, tab0 cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5

query I rowsort
SELECT DISTINCT col0 + col1 * - 80 * + 26 AS col1 FROM tab0
----
-178856
-189191
-201725

onlyif mysql # use DIV operator for integer division
query I rowsort label-983
SELECT + 33 DIV - col2 AS col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-983
SELECT + 33 / - col2 AS col0 FROM tab1
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 59 + 80 col2 FROM tab2 AS cor0
----
139
139
139

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-985
SELECT - + CAST( NULL AS SIGNED ) * + 41 * 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-985
SELECT - + CAST ( NULL AS INTEGER ) * + 41 * col2 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 tab0 AS cor0
----
7396
8281
9409

query I rowsort
SELECT + col0 * - col1 * - col1 FROM tab2 AS cor0
----
22831
271518
6727

query I rowsort
SELECT tab2.col0 + ( + col2 ) FROM tab2
----
104
117
34

query I rowsort
SELECT - 92 FROM tab1, tab0 AS cor0
----
9 values hashing to 1af709a79a3e56281ffdce4d931d5965

query I rowsort
SELECT 5 FROM tab0, tab1 cor0
----
9 values hashing to 6035628694bdea36f584f3649088551d

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col0 col0 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
3
64
80

query I rowsort
SELECT ALL 50 AS col2 FROM tab2
----
50
50
50

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-993
SELECT DISTINCT CAST( col1 AS SIGNED ) AS col0 FROM tab1
----
10
13
26

skipif mysql # not compatible
query I rowsort label-993
SELECT DISTINCT CAST ( col1 AS INTEGER ) AS col0 FROM tab1
----
10
13
26

query I rowsort
SELECT DISTINCT 46 FROM tab0, tab0 AS cor0 CROSS JOIN tab1, tab0 cor1
----
46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col0 * + col2 col0 FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT - cor0.col1 + 69 FROM tab0 AS cor0
----
-17
-22
-28

query I rowsort
SELECT ALL 64 + col0 AS col0 FROM tab2 AS cor0
----
142
143
71

query I rowsort
SELECT + 50 * - col1 FROM tab2 AS cor0
----
-1550
-2950
-850

query I rowsort
SELECT ALL + col0 + - col1 FROM tab0 cor0
----
-2
-62
-62

onlyif mysql # use DIV operator for integer division
query I rowsort label-1000
SELECT DISTINCT + ( - cor0.col1 ) + + col0 * - col1 - col1 DIV - cor0.col0 AS col0 FROM tab1 AS cor0
----
-1053
-650
-96

skipif mysql # not compatible
query I rowsort label-1000
SELECT DISTINCT + ( - cor0.col1 ) + + col0 * - col1 - col1 / - cor0.col0 AS col0 FROM tab1 AS cor0
----
-1053
-650
-96

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 + col0 - + ( - col1 * + tab1.col0 ) AS col2 FROM tab1
----
1120
704
81

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1003
SELECT ALL col2 * CAST( + 53 + + col2 AS SIGNED ) * - col1 FROM tab1
----
-150228
-185952
-62700

skipif mysql # not compatible
query I rowsort label-1003
SELECT ALL col2 * CAST ( + 53 + + col2 AS INTEGER ) * - col1 FROM tab1
----
-150228
-185952
-62700

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( 31 ) col2 FROM tab2, tab1 AS cor0
----
9 values hashing to d1ebd1cea4a9773069af34fbf8ea3540

onlyif mysql # use DIV operator for integer division
query I rowsort label-1005
SELECT + col2 DIV - col0 AS col0 FROM tab0 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-1005
SELECT + col2 / - col0 AS col0 FROM tab0 AS cor0
----
-1
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-1006
SELECT - col1 DIV ( col1 ) AS col2 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-1006
SELECT - col1 / ( col1 ) AS col2 FROM tab1 AS cor0
----
-1
-1
-1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1007
SELECT - col0 / - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1007
SELECT - col0 / - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-1008
SELECT + - col2 + 48 DIV col1 col0 FROM tab2 AS cor0
----
-26
-26
-36

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1008
SELECT + - col2 + 48 / col1 col0 FROM tab2 AS cor0
----
-26
-26
-36

query I rowsort
SELECT ALL - 41 * + 13 + col0 FROM tab2 AS cor0
----
-454
-455
-526

query I rowsort
SELECT + + ( ( + cor0.col1 ) ) * col0 + col0 - + col1 FROM tab1 cor0
----
1107
55
694

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1011
SELECT ALL - + CAST( + col0 AS SIGNED ) * - col0 AS col0 FROM tab2 AS cor0
----
49
6084
6241

skipif mysql # not compatible
query I rowsort label-1011
SELECT ALL - + CAST ( + col0 AS INTEGER ) * - col0 AS col0 FROM tab2 AS cor0
----
49
6084
6241

query I rowsort
SELECT 51 + col1 + col2 FROM tab1 AS cor0
----
118
131
160

query I rowsort
SELECT col1 * + col0 - col0 AS col0 FROM tab1 AS cor0
----
576
75
960

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 71 col0 FROM tab1 AS cor0
----
71
71
71

query I rowsort
SELECT DISTINCT + + 10 AS col0 FROM tab1 AS cor0
----
10

query I rowsort
SELECT DISTINCT - 62 AS col1 FROM tab0 AS cor0
----
-62

query I rowsort
SELECT - + ( + 70 ) + - col1 * 54 FROM tab1 AS cor0
----
-1474
-610
-772

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 6 col2 FROM tab2 AS cor0
----
6

onlyif mysql # use DIV operator for integer division
query I rowsort label-1019
SELECT + - 94 + col0 * col0 DIV + col1 - col2 AS col1 FROM tab2 AS cor0
----
-120
-17
235

skipif mysql # not compatible
query I rowsort label-1019
SELECT + - 94 + col0 * col0 / + col1 - col2 AS col1 FROM tab2 AS cor0
----
-120
-17
235

onlyif mysql # use DIV operator for integer division
query I rowsort label-1020
SELECT DISTINCT ( + col2 ) + + col1 DIV - ( - 31 ) AS col0 FROM tab1 AS cor0
----
54
57
96

skipif mysql # not compatible
query I rowsort label-1020
SELECT DISTINCT ( + col2 ) + + col1 / - ( - 31 ) AS col0 FROM tab1 AS cor0
----
54
57
96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1021
SELECT + col0 * col0 + + CAST( + 63 AS SIGNED ) * + col1 + - 78 FROM tab0 AS cor0
----
13576
5916
7258

skipif mysql # not compatible
query I rowsort label-1021
SELECT + col0 * col0 + + CAST ( + 63 AS INTEGER ) * + col1 + - 78 FROM tab0 AS cor0
----
13576
5916
7258

query I rowsort
SELECT ALL - 63 + - col1 AS col2 FROM tab1 AS cor0
----
-73
-76
-89

query I rowsort
SELECT DISTINCT + 62 + - col2 * - col1 * + col1 FROM tab1 AS cor0
----
16286
36566
5762

onlyif mysql # use DIV operator for integer division
query I rowsort label-1024
SELECT + 51 DIV - col1 FROM tab2 AS cor0
----
-1
-3
0

skipif mysql # not compatible
query I rowsort label-1024
SELECT + 51 / - col1 FROM tab2 AS cor0
----
-1
-3
0

query I rowsort
SELECT col2 * + col2 + + ( + 4 * - col0 ) AS col0 FROM tab0 AS cor0
----
-139
6368
993

query I rowsort
SELECT cor0.col1 AS col0 FROM tab1, tab1 cor0, tab0 AS cor1, tab0, tab1 AS cor2
----
243 values hashing to de2705ff0bb8b4f714dafb07497c6119

query I rowsort
SELECT DISTINCT + col1 * + 13 + col1 FROM tab0 AS cor0
----
1204
1274
1358

onlyif mysql # use DIV operator for integer division
query I rowsort label-1028
SELECT ALL col0 DIV 56 FROM tab1 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-1028
SELECT ALL col0 / 56 FROM tab1 AS cor0
----
0
1
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-1029
SELECT ALL - col1 DIV + ( + 27 ) + + col0 DIV - ( - col2 ) + - col2 FROM tab1 AS cor0
----
-54
-56
-96

skipif mysql # not compatible
query I rowsort label-1029
SELECT ALL - col1 / + ( + 27 ) + + col0 / - ( - col2 ) + - col2 FROM tab1 AS cor0
----
-54
-56
-96

query I rowsort
SELECT ALL col0 + - col0 + cor0.col0 AS col0 FROM tab1 AS cor0
----
3
64
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * col0 + - col2 * col2 col0 FROM tab1 AS cor0
----
-2816
-2907
847

query I rowsort
SELECT DISTINCT + col2 * ( col2 ) AS col0 FROM tab0 cor0
----
1
1089
6724

query I rowsort
SELECT ALL cor0.col0 * - 60 + - ( - col0 ) FROM tab1 AS cor0
----
-177
-3776
-4720

query I rowsort
SELECT ALL - col1 * - col1 - + col0 AS col0 FROM tab0 AS cor0
----
7372
8192
9374

query I rowsort
SELECT DISTINCT + cor0.col0 + ( - 12 * - col2 ) AS col1 FROM tab2 AS cor0
----
331
390
535

onlyif mysql # use DIV operator for integer division
query I rowsort label-1036
SELECT ALL + - col2 + + 65 DIV + col1 AS col2 FROM tab1 AS cor0
----
-51
-52
-91

skipif mysql # not compatible
query I rowsort label-1036
SELECT ALL + - col2 + + 65 / + col1 AS col2 FROM tab1 AS cor0
----
-51
-52
-91

query I rowsort
SELECT + col2 * - col2 + - 71 AS col2 FROM tab0 AS cor0
----
-1160
-6795
-72

query I rowsort
SELECT ALL + col2 + ( + col2 ) FROM tab2 AS cor0
----
52
54
76

onlyif mysql # use DIV operator for integer division
query I rowsort label-1039
SELECT ALL + - col1 DIV - ( cor0.col2 ) + col1 FROM tab1 AS cor0
----
10
13
26

skipif mysql # not compatible
query I rowsort label-1039
SELECT ALL + - col1 / - ( cor0.col2 ) + col1 FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT cor0.col0 * - col1 + 3 AS col0 FROM tab1 AS cor0
----
-1037
-637
-75

query I rowsort
SELECT + + col0 * col1 + + col2 AS col1 FROM tab0 AS cor0
----
2097
3396
8181

query I rowsort
SELECT + + cor0.col0 + ( 39 ) FROM tab2 cor0
----
117
118
46

query I rowsort
SELECT ALL + col1 * - col2 + + cor0.col2 AS col0 FROM tab1 AS cor0
----
-1152
-1350
-513

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab0 cor0 CROSS JOIN tab1, tab1 cor1, tab0 AS cor2, tab1 AS cor3
----
3645 values hashing to 9044210e7dc2a764fe944d925f222728

onlyif mysql # use DIV operator for integer division
query I rowsort label-1045
SELECT DISTINCT + col1 DIV - 92 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-1045
SELECT DISTINCT + col1 / - 92 FROM tab2
----
0

query I rowsort
SELECT DISTINCT + - ( - cor0.col2 ) + col1 AS col2 FROM tab1 AS cor0
----
109
67
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-1047
SELECT ALL + CAST( col1 AS SIGNED ) * + col2 + ( col0 ) DIV - col2 AS col1 FROM tab0 AS cor0
----
2838
62
7461

skipif mysql # not compatible
query I rowsort label-1047
SELECT ALL + CAST ( col1 AS INTEGER ) * + col2 + ( col0 ) / - col2 AS col1 FROM tab0 AS cor0
----
2838
62
7461

query I rowsort
SELECT ALL cor0.col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc

query I rowsort
SELECT DISTINCT + col0 + - 41 + - col2 AS col1 FROM tab2 AS cor0
----
-61
0
11

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab1, tab0 AS cor1, tab1 AS cor2, tab2 AS cor3
----
3645 values hashing to b34c9987c389223e07378cde8a36e94f

query I rowsort
SELECT - tab0.col0 + + tab0.col1 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to c99cbeca6e6fdb3507b2e08470c1cda6

query I rowsort
SELECT ALL - 17 * tab2.col0 + tab2.col2 * + col0 AS col1 FROM tab2
----
1659
70
702

query I rowsort
SELECT ALL + col1 * col0 + + ( + col0 ) FROM tab0
----
2088
3430
8188

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1054
SELECT DISTINCT - CAST( - 3 AS SIGNED ) FROM tab1, tab0 AS cor0, tab2 AS cor1
----
3

skipif mysql # not compatible
query I rowsort label-1054
SELECT DISTINCT - CAST ( - 3 AS INTEGER ) FROM tab1, tab0 AS cor0, tab2 AS cor1
----
3

onlyif mysql # use DIV operator for integer division
query I rowsort label-1055
SELECT ALL 21 DIV col1 + col2 * + col1 FROM tab2
----
1534
647
837

skipif mysql # not compatible
query I rowsort label-1055
SELECT ALL 21 / col1 + col2 * + col1 FROM tab2
----
1534
647
837

query I rowsort
SELECT ALL + col2 * col1 + col1 + + col1 FROM tab2
----
1652
680
899

query I rowsort
SELECT 78 * col0 + col2 FROM tab2 AS cor0
----
573
6110
6200

query I rowsort
SELECT ALL + col1 + + col0 * + 55 AS col2 FROM tab2 AS cor0
----
416
4349
4362

query I rowsort
SELECT + 27 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 1a3cef5c33b8f87ffeded378fd207753

query I rowsort
SELECT DISTINCT - 25 - + col1 FROM tab2 cor0
----
-42
-56
-84

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1061
SELECT + - col1 * + col0 + col2 * + CAST( NULL AS SIGNED ) col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1061
SELECT + - col1 * + col0 + col2 * + CAST ( NULL AS INTEGER ) col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 93 * - 35 col1 FROM tab2 AS cor0
----
3255
3255
3255

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( col2 ) + + col2 col2 FROM tab1 AS cor0
----
108
114
192

query I rowsort
SELECT DISTINCT - - 99 * + cor0.col0 AS col2 FROM tab1 cor0
----
297
6336
7920

query I rowsort
SELECT + + 47 * + col0 - + col1 FROM tab0 cor0
----
1042
1548
4092

query I rowsort
SELECT ALL + ( + 66 ) FROM tab2 AS cor0
----
66
66
66

onlyif mysql # use DIV operator for integer division
query I rowsort label-1067
SELECT - col1 DIV 53 + col2 AS col0 FROM tab1 AS cor0
----
54
57
96

skipif mysql # not compatible
query I rowsort label-1067
SELECT - col1 / 53 + col2 AS col0 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT col1 * col0 + col1 AS col0 FROM tab1
----
104
1053
650

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1069
SELECT + col2 + - CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1069
SELECT + col2 + - CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-1070
SELECT ( col0 ) DIV + cor0.col2 + - col0 AS col0 FROM tab1 AS cor0
----
-3
-63
-80

skipif mysql # not compatible
query I rowsort label-1070
SELECT ( col0 ) / + cor0.col2 + - col0 AS col0 FROM tab1 AS cor0
----
-3
-63
-80

query I rowsort
SELECT DISTINCT 63 + tab1.col0 FROM tab1
----
127
143
66

onlyif mysql # use DIV operator for integer division
query I rowsort label-1072
SELECT 39 DIV - col1 FROM tab1
----
-1
-3
-3

skipif mysql # not compatible
query I rowsort label-1072
SELECT 39 / - col1 FROM tab1
----
-1
-3
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * - col2 - + col2 * 18 col1 FROM tab0 cor0
----
-17
495
5248

query I rowsort
SELECT ALL + 63 * + col1 * cor0.col2 AS col1 FROM tab0 AS cor0
----
178794
470106
6111

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 39 - col2 col2 FROM tab2 AS cor0
----
1
12
13

query I rowsort
SELECT ALL - + 72 + ( - col2 ) AS col0 FROM tab2 AS cor0
----
-110
-98
-99

query I rowsort
SELECT DISTINCT col1 * + col1 + col2 FROM tab0 AS cor0
----
7429
8363
9410

query I rowsort
SELECT ALL - - cor0.col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1079
SELECT DISTINCT CAST( 44 AS SIGNED ) * tab2.col1 FROM tab2
----
1364
2596
748

skipif mysql # not compatible
query I rowsort label-1079
SELECT DISTINCT CAST ( 44 AS INTEGER ) * tab2.col1 FROM tab2
----
1364
2596
748

query I rowsort
SELECT + col2 + col0 * + tab0.col0 FROM tab0
----
1226
609
8003

query I rowsort
SELECT + + col0 * 8 FROM tab0 AS cor0
----
192
280
712

query I rowsort
SELECT - col1 * - 51 FROM tab0 AS cor0
----
4386
4641
4947

query I rowsort
SELECT - cor0.col2 * + 45 AS col0 FROM tab2, tab0 cor0
----
9 values hashing to 2f0ff29bd8e7e5dc132cdf49fffe4886

query I rowsort
SELECT DISTINCT col0 + - ( 83 ) FROM tab2 AS cor0
----
-4
-5
-76

query I rowsort
SELECT ALL + col0 * 39 + ( col1 ) AS col2 FROM tab2 cor0
----
304
3098
3101

query I rowsort
SELECT col1 * + ( - col1 ) AS col0 FROM tab0 AS cor0
----
-7396
-8281
-9409

query I rowsort
SELECT 19 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 3dac30dc82c9e5acbbd3a5c5d1aeee11

query I rowsort
SELECT + - col2 * - 39 FROM tab2 AS cor0
----
1014
1053
1482

query I rowsort
SELECT DISTINCT 60 FROM tab0, tab2 AS cor0
----
60

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1 cor0 CROSS JOIN tab0, tab2 AS cor1, tab0 AS cor2, tab0 AS cor3
----
3645 values hashing to b223aa53e3aafe0f3f3f59048cc7a0d2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 96 col0 FROM tab2 AS cor0
----
-96
-96
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 91 col1 FROM tab2 AS cor0
----
-91
-91
-91

query I rowsort
SELECT DISTINCT - cor0.col0 + - col0 * col1 AS col2 FROM tab2 AS cor0
----
-1422
-224
-4680

query I rowsort
SELECT + ( - col0 ) * + ( col1 ) + + col2 FROM tab1 AS cor0
----
-24
-583
-944

query I rowsort
SELECT DISTINCT - 2 * - col0 FROM tab2
----
14
156
158

query I rowsort
SELECT + 64 * + col2 AS col2 FROM tab2 AS cor0
----
1664
1728
2432

query I rowsort
SELECT - - col2 + + col1 + + 3 FROM tab0 AS cor0
----
101
122
176

query I rowsort
SELECT - + cor0.col2 + 24 + + cor0.col0 AS col0 FROM tab0 AS cor0
----
15
31
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 21 col1 FROM tab2
----
-21
-21
-21

query I rowsort
SELECT DISTINCT + 35 + + col0 FROM tab0 AS cor0
----
124
59
70

query I rowsort
SELECT ALL - col0 + col2 + col1 * + ( col1 ) AS col0 FROM tab1 cor0
----
185
727
93

query I rowsort
SELECT + ( + cor0.col0 ) * 51 AS col1 FROM tab2 cor0
----
357
3978
4029

query I rowsort
SELECT ALL - - 17 FROM tab1 cor0
----
17
17
17

onlyif mysql # use DIV operator for integer division
query I rowsort label-1104
SELECT DISTINCT - col1 + col0 * col0 DIV 1 + col0 AS col1 FROM tab0 AS cor0
----
1163
514
7919

skipif mysql # not compatible
query I rowsort label-1104
SELECT DISTINCT - col1 + col0 * col0 / 1 + col0 AS col1 FROM tab0 AS cor0
----
1163
514
7919

query I rowsort
SELECT ALL + cor0.col0 * col2 + - col0 * + cor0.col2 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT + + 82 + + col1 FROM tab0 AS cor0
----
168
173
179

query I rowsort
SELECT DISTINCT 48 + col1 FROM tab1
----
58
61
74

query I rowsort
SELECT ALL ( + ( + col0 ) ) FROM tab1
----
3
64
80

query I rowsort
SELECT cor0.col1 * + 7 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to bf816f73d1c2c30e9d0ba20454b01467

query I rowsort
SELECT col1 + tab0.col0 * col2 * + 99 FROM tab0
----
3562
722593
78494

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( col0 ) - - col1 col2 FROM tab1
----
-54
-67
23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 16 col2 FROM tab2
----
16
16
16

query I rowsort
SELECT DISTINCT + tab0.col2 FROM tab0, tab2, tab0 AS cor0
----
1
33
82

query I rowsort
SELECT DISTINCT cor0.col1 * - cor0.col0 + + cor0.col2 AS col2 FROM tab1 AS cor0
----
-24
-583
-944

onlyif mysql # use DIV operator for integer division
query I rowsort label-1115
SELECT + col0 + + col1 DIV col2 FROM tab0
----
132
26
90

skipif mysql # not compatible
query I rowsort label-1115
SELECT + col0 + + col1 / col2 FROM tab0
----
132
26
90

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1116
SELECT DISTINCT - col2 * CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-1116
SELECT DISTINCT - col2 * CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 94 col1 FROM tab0 AS cor0
----
-94

query I rowsort
SELECT DISTINCT tab1.col1 * + col2 + - tab1.col2 FROM tab1
----
1152
1350
513

query I rowsort
SELECT ALL - col1 + 22 FROM tab2
----
-37
-9
5

query I rowsort
SELECT - - col1 * 42 + + cor0.col1 FROM tab0 AS cor0
----
3698
3913
4171

query I rowsort
SELECT + col1 * col2 + - 77 FROM tab2 AS cor0
----
1457
569
760

query I rowsort
SELECT col0 + col1 - 8 * col0 AS col2 FROM tab0
----
-148
-532
-82

query I rowsort
SELECT - col2 + 34 * + col1 FROM tab2
----
1027
1980
540

query I rowsort
SELECT DISTINCT col0 + - col0 * - col1 FROM tab2
----
1422
224
4680

onlyif mysql # use DIV operator for integer division
query I rowsort label-1125
SELECT tab0.col2 DIV - ( + col0 ) + + col2 AS col2 FROM tab0
----
1
32
82

skipif mysql # not compatible
query I rowsort label-1125
SELECT tab0.col2 / - ( + col0 ) + + col2 AS col2 FROM tab0
----
1
32
82

query I rowsort
SELECT col2 * ( col0 + col1 ) AS col1 FROM tab2
----
1026
3562
3648

onlyif mysql # use DIV operator for integer division
query I rowsort label-1127
SELECT DISTINCT + col2 + - tab2.col0 DIV tab2.col0 + col0 * + 39 AS col2 FROM tab2
----
299
3067
3118

skipif mysql # not compatible
query I rowsort label-1127
SELECT DISTINCT + col2 + - tab2.col0 / tab2.col0 + col0 * + 39 AS col2 FROM tab2
----
299
3067
3118

query I rowsort
SELECT col2 + ( col2 ) * col0 AS col2 FROM tab2 AS cor0
----
2054
216
3040

query I rowsort
SELECT - ( + col2 ) * col2 * cor0.col0 AS col2 FROM tab1 AS cor0
----
-207936
-737280
-8748

query I rowsort
SELECT - col2 + 12 AS col0 FROM tab0 AS cor0
----
-21
-70
11

query I rowsort
SELECT ALL col2 + 63 AS col0 FROM tab1
----
117
120
159

query I rowsort
SELECT ALL cor0.col2 + - col0 * - col2 FROM tab2 AS cor0
----
2054
216
3040

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1133
SELECT + 10 * col1 + col0 * CAST( NULL AS SIGNED ) / 42 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1133
SELECT + 10 * col1 + col0 * CAST ( NULL AS INTEGER ) / 42 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - + 41 * - col2 AS col2 FROM tab0 AS cor0
----
1353
3362
41

query I rowsort
SELECT DISTINCT + + cor0.col2 - ( col0 ) FROM tab0 AS cor0
----
-34
-7
9

query I rowsort
SELECT DISTINCT cor0.col2 - col1 AS col0 FROM tab1 cor0
----
28
47
83

query I rowsort
SELECT - - 13 FROM tab2 AS cor0
----
13
13
13

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 + col2 col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT cor0.col0 * 35 FROM tab0 AS cor0
----
1225
3115
840

query I rowsort
SELECT DISTINCT - col0 * col1 - col1 FROM tab1 AS cor0
----
-104
-1053
-650

query I rowsort
SELECT DISTINCT + 69 * col0 + - col2 AS col2 FROM tab2
----
456
5356
5413

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1142
SELECT ALL CAST( col1 AS SIGNED ) * - col2 + col1 * 17 AS col2 FROM tab1
----
-1027
-400
-962

skipif mysql # not compatible
query I rowsort label-1142
SELECT ALL CAST ( col1 AS INTEGER ) * - col2 + col1 * 17 AS col2 FROM tab1
----
-1027
-400
-962

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + col1 + + col0 col2 FROM tab1
----
138
173
32

query I rowsort
SELECT ALL 56 AS col1 FROM tab1 AS cor0
----
56
56
56

query I rowsort
SELECT - col0 * + 1 FROM tab2 AS cor0
----
-7
-78
-79

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1146
SELECT DISTINCT + CAST( + col2 AS SIGNED ) * col0 FROM tab1 AS cor0
----
162
3648
7680

skipif mysql # not compatible
query I rowsort label-1146
SELECT DISTINCT + CAST ( + col2 AS INTEGER ) * col0 FROM tab1 AS cor0
----
162
3648
7680

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1147
SELECT ALL - CAST( NULL AS DECIMAL ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1147
SELECT ALL - CAST ( NULL AS REAL ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1148
SELECT CAST( NULL AS SIGNED ) * - col2 AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1148
SELECT CAST ( NULL AS INTEGER ) * - col2 AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + ( col2 ) * - col0 + col0 FROM tab2 AS cor0
----
-182
-1950
-2923

query I rowsort
SELECT DISTINCT - col0 * cor0.col1 FROM tab2 cor0
----
-1343
-217
-4602

query I rowsort
SELECT DISTINCT - - col1 * - col2 AS col1 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT - 63 + col0 * - 90 AS col2 FROM tab0 AS cor0
----
-2223
-3213
-8073

query I rowsort
SELECT - + col1 * cor0.col2 AS col2 FROM tab2 AS cor0
----
-1534
-646
-837

onlyif mysql # use DIV operator for integer division
query I rowsort label-1154
SELECT ALL + col1 DIV + col0 AS col2 FROM tab1 cor0
----
0
0
8

skipif mysql # not compatible
query I rowsort label-1154
SELECT ALL + col1 / + col0 AS col2 FROM tab1 cor0
----
0
0
8

query I rowsort
SELECT ALL - col1 - + col1 * col0 FROM tab1 AS cor0
----
-104
-1053
-650

query I rowsort
SELECT DISTINCT col1 * + cor0.col1 + + ( - 25 ) AS col0 FROM tab2 AS cor0
----
264
3456
936

query I rowsort
SELECT + + col1 * col2 AS col2 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT + + col0 * + col0 + + ( col2 ) FROM tab0 cor0
----
1226
609
8003

query I rowsort
SELECT + cor0.col1 * - col2 * 66 FROM tab2 AS cor0
----
-101244
-42636
-55242

query I rowsort
SELECT DISTINCT - cor0.col2 * - col1 + - col2 + - col1 * - col0 FROM tab2 AS cor0
----
1027
1951
6110

query I rowsort
SELECT ALL + + col1 - + col2 FROM tab2 cor0
----
-21
33
4

query I rowsort
SELECT - + col2 * - col0 + col0 AS col1 FROM tab1 cor0
----
165
3712
7760

query I rowsort
SELECT - - col2 + + 24 FROM tab0 AS cor0
----
106
25
57

onlyif mysql # use DIV operator for integer division
query I rowsort label-1164
SELECT DISTINCT col0 DIV col0 + col2 FROM tab1 AS cor0
----
55
58
97

skipif mysql # not compatible
query I rowsort label-1164
SELECT DISTINCT col0 / col0 + col2 FROM tab1 AS cor0
----
55
58
97

query I rowsort
SELECT ALL col1 * - 35 + + col0 FROM tab1 AS cor0
----
-286
-375
-907

query I rowsort
SELECT ALL + - col2 * + col1 * + col2 + col1 AS col2 FROM tab2 AS cor0
----
-22568
-24531
-39825

query I rowsort
SELECT DISTINCT - col1 - cor0.col1 FROM tab0 AS cor0
----
-172
-182
-194

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1168
SELECT ALL cor0.col2 + - CAST( NULL AS SIGNED ) * 27 * col0 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1168
SELECT ALL cor0.col2 + - CAST ( NULL AS INTEGER ) * 27 * col0 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col1 * + 72 + + ( col2 ) AS col1 FROM tab2 AS cor0
----
1262
2259
4274

query I rowsort
SELECT DISTINCT + col2 + + 15 * ( + col0 ) FROM tab0 AS cor0
----
1417
393
526

query I rowsort
SELECT ALL - - col0 + 13 FROM tab2 cor0
----
20
91
92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col0 + + cor0.col0 col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + col0 * cor0.col0 * col2 + - col2 + + 20 * col2 * + cor0.col1 AS col2 FROM tab1 AS cor0
----
244815
28512
639264

query I rowsort
SELECT - col1 * - 83 AS col1 FROM tab2 AS cor0
----
1411
2573
4897

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1175
SELECT DISTINCT - + col0 * CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1175
SELECT DISTINCT - + col0 * CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-1176
SELECT + - col0 * 25 DIV col0 col2 FROM tab2 AS cor0
----
-25
-25
-25

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1176
SELECT + - col0 * 25 / col0 col2 FROM tab2 AS cor0
----
-25
-25
-25

query I rowsort
SELECT + - ( 39 ) FROM tab2 AS cor0
----
-39
-39
-39

onlyif mysql # use DIV operator for integer division
query I rowsort label-1178
SELECT ALL - col2 DIV 58 - 68 AS col0 FROM tab1
----
-68
-68
-69

skipif mysql # not compatible
query I rowsort label-1178
SELECT ALL - col2 / 58 - 68 AS col0 FROM tab1
----
-68
-68
-69

query I rowsort
SELECT tab1.col1 * - ( + 99 ) + tab1.col0 FROM tab1
----
-1207
-2571
-926

query I rowsort
SELECT cor0.col2 AS col2 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475

query I rowsort
SELECT ALL + ( col1 ) + + cor0.col0 * col2 FROM tab2 AS cor0
----
2087
220
3019

query I rowsort
SELECT ALL - ( 37 ) * + col2 AS col2 FROM tab0 AS cor0
----
-1221
-3034
-37

query I rowsort
SELECT ALL col0 * 82 + col0 FROM tab1 AS cor0
----
249
5312
6640

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 96 * + col2 col2 FROM tab2 AS cor0
----
-2496
-2592
-3648

query I rowsort
SELECT ALL - - 58 + col1 * col2 FROM tab1 AS cor0
----
1306
1462
628

query I rowsort
SELECT DISTINCT + - col2 + col0 AS col2 FROM tab2 AS cor0
----
-20
41
52

query I rowsort
SELECT ALL col1 + col0 * col2 * col1 FROM tab0 AS cor0
----
3492
664209
68198

query I rowsort
SELECT col1 * col0 * col1 FROM tab1 AS cor0
----
13520
2028
6400

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 + col0 col1 FROM tab1 AS cor0
----
128
160
6

query I rowsort
SELECT ALL - + 25 * - col1 + 31 * col1 FROM tab0 AS cor0
----
4816
5096
5432

query I rowsort
SELECT - 13 * col0 AS col0 FROM tab1 AS cor0
----
-1040
-39
-832

query I rowsort
SELECT + col2 + cor0.col0 + col2 * col0 FROM tab1 cor0
----
219
3769
7856

query I rowsort
SELECT + cor0.col2 * - 26 AS col2 FROM tab0 AS cor0
----
-2132
-26
-858

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col0 col2 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
24
35
89

query I rowsort
SELECT ALL - 80 * cor0.col2 - + col1 * 5 FROM tab1 AS cor0
----
-4450
-4610
-7745

onlyif mysql # use DIV operator for integer division
query I rowsort label-1196
SELECT DISTINCT + 39 DIV - col2 AS col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1196
SELECT DISTINCT + 39 / - col2 AS col0 FROM tab1 AS cor0
----
0

query I rowsort
SELECT + col1 * 61 AS col1 FROM tab2 AS cor0
----
1037
1891
3599

query I rowsort
SELECT DISTINCT + col0 + - 1 FROM tab0
----
23
34
88

query I rowsort
SELECT ALL - 55 AS col0 FROM tab1 AS cor0
----
-55
-55
-55

query I rowsort
SELECT + 71 + - col2 * - col1 AS col2 FROM tab2 AS cor0
----
1605
717
908

query I rowsort
SELECT ALL + 37 - - col0 FROM tab0 AS cor0
----
126
61
72

query I rowsort
SELECT ALL + ( - col1 ) * col2 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT 60 FROM tab0, tab2 AS cor0
----
9 values hashing to a97561e17ecaa618227c75a57b268f33

query I rowsort
SELECT tab0.col1 + col1 * col2 AS col0 FROM tab0
----
194
2924
7553

query I rowsort
SELECT DISTINCT + ( + col0 ) * + col1 FROM tab2
----
1343
217
4602

query I rowsort
SELECT - 20 * - col0 AS col1 FROM tab0 cor0
----
1780
480
700

query I rowsort
SELECT + 50 * - col1 AS col2 FROM tab0 cor0
----
-4300
-4550
-4850

query I rowsort
SELECT DISTINCT - 36 FROM tab2, tab0 AS cor0 CROSS JOIN tab0
----
-36

query I rowsort
SELECT DISTINCT - col1 * + 57 AS col2 FROM tab0
----
-4902
-5187
-5529

query I rowsort
SELECT ALL - 28 * + col1 FROM tab2
----
-1652
-476
-868

query I rowsort
SELECT DISTINCT 73 FROM tab1, tab2, tab1 AS cor0
----
73

skipif mysql # not compatible
query I rowsort
SELECT ALL + CAST ( 21 AS REAL ) FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 312c166f4dc412730c43555105b1f44b

query I rowsort
SELECT DISTINCT tab1.col1 + - tab1.col1 AS col0 FROM tab1, tab0, tab2 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab1.col0 col0 FROM tab1, tab2, tab1 cor0
----
27 values hashing to 729c1edda9332398299f39cd174ed840

query I rowsort
SELECT - 42 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 56f86ff01cd96a3511acd46e0e811e27

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 15 col1 FROM tab0
----
15
15
15

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1217
SELECT ALL + CAST( cor0.col1 AS SIGNED ) AS col0 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d

skipif mysql # not compatible
query I rowsort label-1217
SELECT ALL + CAST ( cor0.col1 AS INTEGER ) AS col0 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d

query I rowsort
SELECT - cor0.col1 * cor0.col1 AS col2 FROM tab0 AS cor0
----
-7396
-8281
-9409

query I rowsort
SELECT 69 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 2810c3097fe4771e273cfff903357b40

query I rowsort
SELECT ALL - col2 + + ( tab2.col2 ) * - col1 + + col1 * 26 AS col1 FROM tab2
----
-242
-26
-58

query I rowsort
SELECT + col1 * cor0.col1 + - ( cor0.col2 + + col0 ) AS col2 FROM tab2 AS cor0
----
172
3377
927

query I rowsort
SELECT col2 + ( col2 ) - + col1 FROM tab1 cor0
----
104
179
82

query I rowsort
SELECT DISTINCT + col2 * - col1 * cor0.col0 AS col1 FROM tab2 AS cor0
----
-119652
-51034
-5859

query I rowsort
SELECT + cor0.col1 * - cor0.col2 + + col0 - - col0 * - ( + cor0.col2 * col2 ) AS col1 FROM tab1 AS cor0
----
-10149
-208442
-738448

onlyif mysql # use DIV operator for integer division
query I rowsort label-1225
SELECT CAST( col2 AS SIGNED ) + - col1 DIV - 16 col0 FROM tab1 AS cor0
----
55
57
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1225
SELECT CAST ( col2 AS INTEGER ) + - col1 / - 16 col0 FROM tab1 AS cor0
----
55
57
96

query I rowsort
SELECT cor0.col1 + + cor0.col0 FROM tab1 AS cor0
----
29
74
93

query I rowsort
SELECT - cor0.col1 + - 91 AS col0 FROM tab2 AS cor0
----
-108
-122
-150

onlyif mysql # use DIV operator for integer division
query I rowsort label-1228
SELECT col1 * 9 DIV col0 AS col0 FROM tab1 AS cor0
----
1
1
78

skipif mysql # not compatible
query I rowsort label-1228
SELECT col1 * 9 / col0 AS col0 FROM tab1 AS cor0
----
1
1
78

query I rowsort
SELECT 5 + + col2 FROM tab1 AS cor0
----
101
59
62

query I rowsort
SELECT ALL + col2 + col1 + - col1 AS col1 FROM tab2
----
26
27
38

query I rowsort
SELECT - col2 + - col0 * + col1 FROM tab0
----
-2097
-3396
-8181

query I rowsort
SELECT + + 29 * + col2 FROM tab0 AS cor0
----
2378
29
957

query I rowsort
SELECT DISTINCT - + col0 - col2 AS col1 FROM tab0 AS cor0
----
-171
-36
-57

query I rowsort
SELECT ALL - cor0.col1 + - col1 AS col2 FROM tab0 AS cor0
----
-172
-182
-194

onlyif mysql # use DIV operator for integer division
query I rowsort label-1235
SELECT - + cor0.col1 DIV ( col0 ) FROM tab1 cor0
----
-8
0
0

skipif mysql # not compatible
query I rowsort label-1235
SELECT - + cor0.col1 / ( col0 ) FROM tab1 cor0
----
-8
0
0

query I rowsort
SELECT - col1 * - 4 * col1 + col0 AS col2 FROM tab0 AS cor0
----
29608
33213
37671

query I rowsort
SELECT ALL - - cor1.col0 * cor1.col2 * cor0.col1 + ( 5 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 31f84ffc6389f4ce0f08ce7dabda11c8

query I rowsort
SELECT ALL + - col1 * 82 + 45 * - col1 FROM tab1 AS cor0
----
-1270
-1651
-3302

query I rowsort
SELECT ALL - + col1 * 42 AS col0 FROM tab1 AS cor0
----
-1092
-420
-546

query I rowsort
SELECT DISTINCT col1 * - 97 AS col0 FROM tab2 AS cor0
----
-1649
-3007
-5723

query I rowsort
SELECT ALL + 79 * - col1 + col2 * col0 AS col0 FROM tab1 AS cor0
----
-1892
2858
6653

query I rowsort
SELECT DISTINCT - 72 + col1 AS col0 FROM tab1 AS cor0
----
-46
-59
-62

query I rowsort
SELECT DISTINCT - + 8 + - col1 AS col1 FROM tab2 AS cor0
----
-25
-39
-67

query I rowsort
SELECT ALL ( + col1 ) * cor0.col0 * 58 FROM tab0 AS cor0
----
119712
196910
469742

query I rowsort
SELECT ALL - col0 + - col1 * - col0 FROM tab2 cor0
----
1264
210
4524

query I rowsort
SELECT ALL - 58 FROM tab2, tab2 cor0
----
9 values hashing to de0811e670e75d2aeeb657e32bddb0c0

query I rowsort
SELECT ALL col2 + 99 AS col1 FROM tab2
----
125
126
137

query I rowsort
SELECT 97 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 5e0d31ac41981bcdf6a665538a71a09c

onlyif mysql # use DIV operator for integer division
query I rowsort label-1249
SELECT ALL col2 DIV col2 + - col2 AS col2 FROM tab0
----
-32
-81
0

skipif mysql # not compatible
query I rowsort label-1249
SELECT ALL col2 / col2 + - col2 AS col2 FROM tab0
----
-32
-81
0

query I rowsort
SELECT tab1.col1 + + ( + 65 + - col0 ) * col1 * + col0 FROM tab1
----
-15587
4862
650

query I rowsort
SELECT - + cor0.col2 - col2 * col2 * + col0 AS col0 FROM tab2 AS cor0
----
-114114
-5130
-52754

query I rowsort
SELECT ALL - 34 * col0 FROM tab0 AS cor0
----
-1190
-3026
-816

query I rowsort
SELECT DISTINCT + 6 FROM tab1 cor0
----
6

query I rowsort
SELECT + ( - col1 ) + + cor0.col2 + + 49 FROM tab0 AS cor0
----
-4
-47
40

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 47 * cor0.col1 col2 FROM tab2 AS cor0
----
1457
2773
799

onlyif mysql # use DIV operator for integer division
query I rowsort label-1256
SELECT 62 DIV - col0 AS col0 FROM tab0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-1256
SELECT 62 / - col0 AS col0 FROM tab0
----
-1
-2
0

query I rowsort
SELECT - col2 + - cor0.col2 FROM tab0 cor0
----
-164
-2
-66

query I rowsort
SELECT ALL - - col2 + col2 + col1 FROM tab0 AS cor0
----
152
255
99

onlyif mysql # use DIV operator for integer division
query I rowsort label-1259
SELECT DISTINCT - col1 * col2 - ( col1 + cor0.col2 ) DIV 37 AS col1 FROM tab0 AS cor0
----
-2841
-7466
-99

skipif mysql # not compatible
query I rowsort label-1259
SELECT DISTINCT - col1 * col2 - ( col1 + cor0.col2 ) / 37 AS col1 FROM tab0 AS cor0
----
-2841
-7466
-99

query I rowsort
SELECT 81 * + col0 + 71 AS col1 FROM tab0 AS cor0
----
2015
2906
7280

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + col1 col1 FROM tab2 AS cor0
----
137
38
96

query I rowsort
SELECT ALL + 2 * 28 FROM tab0
----
56
56
56

query I rowsort
SELECT - 62 * 28 FROM tab1
----
-1736
-1736
-1736

query I rowsort
SELECT ALL col2 - col0 AS col2 FROM tab0
----
-34
-7
9

query I rowsort
SELECT + cor1.col0 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a

query I rowsort
SELECT - 20 + + col1 FROM tab0 cor0
----
66
71
77

query I rowsort
SELECT + - cor0.col1 * + col2 * cor0.col1 + + ( + col1 ) FROM tab0 AS cor0
----
-243982
-678951
-9312

onlyif mysql # use DIV operator for integer division
query I rowsort label-1268
SELECT col1 DIV - col1 + - col2 * + col1 AS col1 FROM tab1 cor0
----
-1249
-1405
-571

skipif mysql # not compatible
query I rowsort label-1268
SELECT col1 / - col1 + - col2 * + col1 AS col1 FROM tab1 cor0
----
-1249
-1405
-571

onlyif mysql # use DIV operator for integer division
query I rowsort label-1269
SELECT - 45 DIV + col1 + + 53 FROM tab0 AS cor0
----
53
53
53

skipif mysql # not compatible
query I rowsort label-1269
SELECT - 45 / + col1 + + 53 FROM tab0 AS cor0
----
53
53
53

onlyif mysql # use DIV operator for integer division
query I rowsort label-1270
SELECT col0 + + col0 - - 92 DIV + col1 FROM tab1
----
137
167
9

skipif mysql # not compatible
query I rowsort label-1270
SELECT col0 + + col0 - - 92 / + col1 FROM tab1
----
137
167
9

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1271
SELECT + - col2 + + CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1271
SELECT + - col2 + + CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT tab1.col1 * col1 - col1 FROM tab1
----
156
650
90

onlyif mysql # use DIV operator for integer division
query I rowsort label-1273
SELECT ALL col1 DIV col2 + - 77 AS col0 FROM tab1
----
-77
-77
-77

skipif mysql # not compatible
query I rowsort label-1273
SELECT ALL col1 / col2 + - 77 AS col0 FROM tab1
----
-77
-77
-77

query I rowsort
SELECT + 95 * col0 + + col0 + 1 FROM tab0
----
2305
3361
8545

query I rowsort
SELECT - - col0 * col0 FROM tab1 cor0
----
4096
6400
9

onlyif mysql # use DIV operator for integer division
query I rowsort label-1276
SELECT - col1 * - tab0.col0 DIV col0 AS col2 FROM tab0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-1276
SELECT - col1 * - tab0.col0 / col0 AS col2 FROM tab0
----
86
91
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-1277
SELECT col0 DIV tab2.col0 + - 29 + col0 FROM tab2
----
-21
50
51

skipif mysql # not compatible
query I rowsort label-1277
SELECT col0 / tab2.col0 + - 29 + col0 FROM tab2
----
-21
50
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 41 + col0 + ( + 61 ) col1 FROM tab2
----
109
180
181

query I rowsort
SELECT col0 * - col2 * 95 AS col0 FROM tab2
----
-17955
-192660
-285190

query I rowsort
SELECT DISTINCT ( tab1.col0 ) * 64 + 52 FROM tab1
----
244
4148
5172

query I rowsort
SELECT ALL col1 + - col2 * - 75 FROM tab2 AS cor0
----
2009
2056
2867

query I rowsort
SELECT cor0.col2 + 61 * 0 + + col2 FROM tab0 AS cor0
----
164
2
66

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1283
SELECT ALL - + cor0.col0 + CAST( ( - col2 ) * - ( - col2 ) AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-1523
-736
-754

skipif mysql # not compatible
query I rowsort label-1283
SELECT ALL - + cor0.col0 + CAST ( ( - col2 ) * - ( - col2 ) AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-1523
-736
-754

query I rowsort
SELECT ALL + - col2 - - col1 AS col1 FROM tab2 AS cor0
----
-21
33
4

query I rowsort
SELECT DISTINCT - tab2.col2 * col0 + + col1 + - col1 AS col1 FROM tab2
----
-189
-2028
-3002

query I rowsort
SELECT ALL col0 * ( col0 ) FROM tab1 AS cor0
----
4096
6400
9

query I rowsort
SELECT DISTINCT col0 * - cor0.col1 + - cor0.col2 AS col2 FROM tab2 AS cor0
----
-1381
-244
-4628

query I rowsort
SELECT + cor0.col1 * col2 + 39 * + col1 FROM tab1 AS cor0
----
1755
2418
960

query I rowsort
SELECT ALL - col2 * + 73 + col2 * cor0.col2 AS col2 FROM tab0 AS cor0
----
-1320
-72
738

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * col0 col1 FROM tab0 cor0
----
2064
3395
8099

query I rowsort
SELECT DISTINCT + cor0.col0 * - 40 + - ( - cor0.col0 ) * col1 - ( - col1 ) FROM tab2 AS cor0
----
-1800
-32
1541

query I rowsort
SELECT DISTINCT - + col0 - 24 AS col1 FROM tab0 AS cor0
----
-113
-48
-59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 - col0 col2 FROM tab1 cor0
----
-7
16
51

query I rowsort
SELECT + ( + col1 ) AS col0 FROM tab2
----
17
31
59

query I rowsort
SELECT ALL + col1 + 6 * - col1 AS col0 FROM tab1 AS cor0
----
-130
-50
-65

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( col1 ) col2 FROM tab1 AS cor0
----
-10
-13
-26

query I rowsort
SELECT ALL 5 * + col0 + col2 FROM tab2 AS cor0
----
416
433
62

query I rowsort
SELECT - ( + col1 ) * col0 AS col0 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT DISTINCT - + 32 * col0 AS col0 FROM tab1 AS cor0
----
-2048
-2560
-96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1300
SELECT + - CAST( NULL AS SIGNED ) / - col0 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1300
SELECT + - CAST ( NULL AS INTEGER ) / - col0 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + ( col1 ) * col1 AS col0 FROM tab0 AS cor0
----
7396
8281
9409

query I rowsort
SELECT DISTINCT - - ( - ( col1 ) ) AS col0 FROM tab2 AS cor0
----
-17
-31
-59

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1303
SELECT ALL - ( col2 ) + CAST( NULL AS DECIMAL ) * - col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1303
SELECT ALL - ( col2 ) + CAST ( NULL AS REAL ) * - col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - + 69 * col1 * + ( col2 ) FROM tab2 AS cor0
----
-105846
-44574
-57753

query I rowsort
SELECT ALL 83 * + col0 AS col2 FROM tab2 AS cor0
----
581
6474
6557

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 77 * col0 * + col0 col1 FROM tab0
----
44352
609917
94325

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 54 col1 FROM tab1
----
-54

query I rowsort
SELECT ALL cor1.col1 AS col2 FROM tab2, tab1 cor0, tab2 cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d

query I rowsort
SELECT ALL 87 + - tab1.col2 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 34a34dc18be27fa2d12c95944bae4704

query I rowsort
SELECT - - col2 * - ( col0 ) + col1 * - col2 FROM tab0 AS cor0
----
-132
-14760
-3630

query I rowsort
SELECT 58 + 62 AS col1 FROM tab1 AS cor0
----
120
120
120

query I rowsort
SELECT 70 + col2 AS col2 FROM tab0 AS cor0
----
103
152
71

query I rowsort
SELECT + - 78 FROM tab2 AS cor0
----
-78
-78
-78

query I rowsort
SELECT cor0.col2 * col1 + + 74 FROM tab0 AS cor0
----
171
2912
7536

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 61 col2 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 07149905a72bd87553381f34d19ed290

query I rowsort
SELECT ALL ( - col0 * + col0 ) FROM tab1
----
-4096
-6400
-9

query I rowsort
SELECT - cor0.col0 + col0 AS col1 FROM tab2 cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * - col0 col2 FROM tab2
----
-189
-2028
-3002

onlyif mysql # use DIV operator for integer division
query I rowsort label-1319
SELECT DISTINCT + col0 DIV 28 FROM tab1
----
0
2

skipif mysql # not compatible
query I rowsort label-1319
SELECT DISTINCT + col0 / 28 FROM tab1
----
0
2

query I rowsort
SELECT ALL + col1 * col1 * 8 + - col0 FROM tab1 AS cor0
----
1272
5405
736

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1321
SELECT CAST( cor0.col1 AS SIGNED ) FROM tab2, tab1 AS cor0
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775

skipif mysql # not compatible
query I rowsort label-1321
SELECT CAST ( cor0.col1 AS INTEGER ) FROM tab2, tab1 AS cor0
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775

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-1323
SELECT - col1 DIV 42 FROM tab0 cor0
----
-2
-2
-2

skipif mysql # not compatible
query I rowsort label-1323
SELECT - col1 / 42 FROM tab0 cor0
----
-2
-2
-2

onlyif mysql # use DIV operator for integer division
query I rowsort label-1324
SELECT - + col2 + - col2 DIV + col1 col2 FROM tab0 AS cor0
----
-1
-33
-82

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1324
SELECT - + col2 + - col2 / + col1 col2 FROM tab0 AS cor0
----
-1
-33
-82

query I rowsort
SELECT - - cor0.col2 - - ( - 16 * col2 ) FROM tab1 AS cor0
----
-1440
-810
-855

query I rowsort
SELECT - + col2 - col1 AS col0 FROM tab0 AS cor0
----
-119
-173
-98

query I rowsort
SELECT - col2 + col1 FROM tab0 cor0
----
53
9
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col0 * - ( - 88 ) * - col2 col0 FROM tab2 AS cor0
----
-16632
-178464
-264176

query I rowsort
SELECT - - col0 + 39 FROM tab2 AS cor0
----
117
118
46

query I rowsort
SELECT DISTINCT + col2 + col1 * + 61 FROM tab0 AS cor0
----
5279
5633
5918

query I rowsort
SELECT ( col1 ) * col0 FROM tab2 cor0
----
1343
217
4602

query I rowsort
SELECT ALL + 61 FROM tab1 cor0
----
61
61
61

skipif mysql # not compatible
query I rowsort
SELECT - CAST ( 4 AS REAL ) + + col1 * col0 * - col1 AS col2 FROM tab0 AS cor0
----
-177508
-329319
-737013

query I rowsort
SELECT DISTINCT + 16 AS col1 FROM tab0, tab2 cor0
----
16

query I rowsort
SELECT + ( tab2.col1 ) AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to c61d27a0022e6d022371dc58819ab272

query I rowsort
SELECT DISTINCT col1 + col0 * + col2 AS col0 FROM tab0
----
132
7389
878

query I rowsort
SELECT - ( 72 ) * cor0.col2 FROM tab0 AS cor0
----
-2376
-5904
-72

query I rowsort
SELECT ALL col1 + - ( 94 ) AS col2 FROM tab0
----
-3
-8
3

onlyif mysql # use DIV operator for integer division
query I rowsort label-1339
SELECT - col2 * col0 + col0 DIV + CAST( + 83 * + cor0.col2 AS SIGNED ) FROM tab1 AS cor0
----
-162
-3648
-7680

skipif mysql # not compatible
query I rowsort label-1339
SELECT - col2 * col0 + col0 / + CAST ( + 83 * + cor0.col2 AS INTEGER ) FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT - - 6 + + ( col1 * 42 + col0 ) AS col0 FROM tab2 AS cor0
----
1315
2562
799

query I rowsort
SELECT DISTINCT tab0.col2 + + 58 FROM tab0
----
140
59
91

query I rowsort
SELECT + - ( 22 ) - - col1 * ( - col1 ) * - col0 AS col1 FROM tab1 AS cor0
----
13498
2006
6378

query I rowsort
SELECT - + col1 + 80 * cor0.col1 FROM tab2 AS cor0
----
1343
2449
4661

onlyif mysql # use DIV operator for integer division
query I rowsort label-1344
SELECT - + 70 DIV col0 AS col0 FROM tab2 AS cor0
----
-10
0
0

skipif mysql # not compatible
query I rowsort label-1344
SELECT - + 70 / col0 AS col0 FROM tab2 AS cor0
----
-10
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-1345
SELECT - col0 * 50 DIV cor0.col1 FROM tab1 AS cor0
----
-307
-320
-5

skipif mysql # not compatible
query I rowsort label-1345
SELECT - col0 * 50 / cor0.col1 FROM tab1 AS cor0
----
-307
-320
-5

query I rowsort
SELECT DISTINCT + cor0.col2 + - 47 * - col0 AS col2 FROM tab1 AS cor0
----
195
3065
3856

query I rowsort
SELECT DISTINCT - 21 * cor0.col1 AS col0 FROM tab1 cor0
----
-210
-273
-546

query I rowsort
SELECT + + 68 + 62 * col2 FROM tab2 AS cor0
----
1680
1742
2424

query I rowsort
SELECT ALL col0 * + col0 * cor0.col0 + cor0.col1 * + col1 FROM tab2 AS cor0
----
1304
478033
493328

query I rowsort
SELECT + - 28 * - col0 + col0 AS col2 FROM tab1 cor0
----
1856
2320
87

query I rowsort
SELECT - cor0.col1 * - cor0.col0 * col2 AS col0 FROM tab2 AS cor0
----
119652
51034
5859

skipif mysql # not compatible
query I rowsort
SELECT CAST ( 73 AS REAL ) + cor0.col0 + col1 AS col1 FROM tab2 AS cor0
----
111
169
210

query I rowsort
SELECT ALL + - 62 * + 23 + cor0.col0 FROM tab2 AS cor0
----
-1347
-1348
-1419

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + - col1 col2 FROM tab2 AS cor0
----
0

query I rowsort
SELECT + - col0 + + col1 + col0 FROM tab2 cor0
----
17
31
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + col2 * + col1 col1 FROM tab1 cor0
----
1344
1458
627

query I rowsort
SELECT ALL + col0 + + col2 * + col1 * - col2 FROM tab2 AS cor0
----
-22592
-24469
-39806

query I rowsort
SELECT ALL - - ( col0 ) AS col2 FROM tab2 AS cor0
----
7
78
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col0 * cor0.col0 col2 FROM tab0 cor0
----
-1225
-576
-7921

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( col2 ) + - col0 + col0 col1 FROM tab1
----
54
57
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * tab2.col0 col0 FROM tab2
----
-189
-2028
-3002

query I rowsort
SELECT - col0 * 19 + - ( - col2 ) * + 78 AS col0 FROM tab2 AS cor0
----
1463
1973
546

query I rowsort
SELECT + col0 * col2 + cor0.col2 FROM tab0 cor0
----
36
7380
825

query I rowsort
SELECT + + col2 * 38 AS col2 FROM tab1 AS cor0
----
2052
2166
3648

query I rowsort
SELECT ALL + 86 AS col1 FROM tab1
----
86
86
86

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1366
SELECT DISTINCT + CAST( NULL AS DECIMAL ) * cor0.col0 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-1366
SELECT DISTINCT + CAST ( NULL AS REAL ) * cor0.col0 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

query I rowsort
SELECT ALL + col2 + col1 - - col2 FROM tab2
----
111
85
93

query I rowsort
SELECT DISTINCT - col0 * - 78 - col1 * col2 AS col2 FROM tab2
----
-291
4550
5516

query I rowsort
SELECT ALL + 15 * - col0 + col1 FROM tab0
----
-1244
-274
-428

query I rowsort
SELECT - col0 * + col1 - - 75 AS col2 FROM tab0 cor0
----
-1989
-3320
-8024

query I rowsort
SELECT - ( col1 ) * - ( - col0 ) + - col1 - + 0 * cor0.col1 AS col1 FROM tab1 AS cor0
----
-104
-1053
-650

query I rowsort
SELECT DISTINCT + 53 * col1 AS col0 FROM tab0 AS cor0
----
4558
4823
5141

query I rowsort
SELECT DISTINCT - + 72 AS col1 FROM tab2 AS cor0
----
-72

onlyif mysql # use DIV operator for integer division
query I rowsort label-1374
SELECT ALL col1 DIV col1 + - 82 + 92 col0 FROM tab0
----
11
11
11

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1374
SELECT ALL col1 / col1 + - 82 + 92 col0 FROM tab0
----
11
11
11

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1375
SELECT DISTINCT - + CAST( - 62 AS SIGNED ) AS col2 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
62

skipif mysql # not compatible
query I rowsort label-1375
SELECT DISTINCT - + CAST ( - 62 AS INTEGER ) AS col2 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
62

query I rowsort
SELECT DISTINCT - col2 * + 50 FROM tab0 AS cor0
----
-1650
-4100
-50

query I rowsort
SELECT + col1 * - 34 FROM tab2 AS cor0
----
-1054
-2006
-578

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * + col2 col2 FROM tab0 AS cor0
----
-2838
-7462
-97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1379
SELECT ALL + CAST( + 17 AS SIGNED ) AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 43298e43365fccb5146ea32003753c92

skipif mysql # not compatible
query I rowsort label-1379
SELECT ALL + CAST ( + 17 AS INTEGER ) AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 43298e43365fccb5146ea32003753c92

query I rowsort
SELECT DISTINCT - col0 - - col0 * + col2 * - 27 FROM tab2
----
-5110
-54834
-81133

query I rowsort
SELECT + + col2 + cor0.col1 * - col0 - + cor0.col0 AS col0 FROM tab2 AS cor0
----
-1384
-197
-4654

query I rowsort
SELECT DISTINCT + + cor0.col1 * cor0.col2 AS col1 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT ALL col2 * ( col1 + - col0 ) FROM tab1 AS cor0
----
-3078
-6432
1242

query I rowsort
SELECT DISTINCT + col2 * - ( - cor0.col0 ) FROM tab1 cor0
----
162
3648
7680

query I rowsort
SELECT - cor0.col0 * + col0 + + col0 * - ( + col1 ) FROM tab0 AS cor0
----
-16020
-2640
-4620

onlyif mysql # use DIV operator for integer division
query I rowsort label-1386
SELECT + col2 * col1 DIV col0 + tab2.col1 FROM tab2
----
150
25
78

skipif mysql # not compatible
query I rowsort label-1386
SELECT + col2 * col1 / col0 + tab2.col1 FROM tab2
----
150
25
78

query I rowsort
SELECT ALL + col1 * - 35 + col1 FROM tab2 AS cor0
----
-1054
-2006
-578

onlyif mysql # use DIV operator for integer division
query I rowsort label-1388
SELECT + - col2 * ( + col1 ) DIV - ( + col2 ) FROM tab1 AS cor0
----
10
13
26

skipif mysql # not compatible
query I rowsort label-1388
SELECT + - col2 * ( + col1 ) / - ( + col2 ) FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT ALL - col2 * - 92 FROM tab0 AS cor0
----
3036
7544
92

query I rowsort
SELECT DISTINCT 9 * cor0.col0 FROM tab2 AS cor0
----
63
702
711

query I rowsort
SELECT - col0 * + col2 + col0 AS col1 FROM tab1 AS cor0
----
-159
-3584
-7600

onlyif mysql # use DIV operator for integer division
query I rowsort label-1392
SELECT ALL + col0 DIV + col0 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-1392
SELECT ALL + col0 / + col0 FROM tab0 AS cor0
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 99 + col1 col2 FROM tab0 AS cor0
----
-13
-2
-8

query I rowsort
SELECT ALL + - 84 AS col1 FROM tab0 cor0
----
-84
-84
-84

query I rowsort
SELECT ALL - - cor0.col2 * col1 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT ALL cor0.col0 + - col2 AS col2 FROM tab0 AS cor0
----
-9
34
7

query I rowsort
SELECT - - col0 * - col1 + - ( + col1 ) AS col0 FROM tab2 cor0
----
-1360
-248
-4661

query I rowsort
SELECT ALL - + col1 * + col0 AS col1 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT 29 * - col0 FROM tab0 AS cor0
----
-1015
-2581
-696

query I rowsort
SELECT DISTINCT col1 * - col1 AS col1 FROM tab0 cor0
----
-7396
-8281
-9409

query I rowsort
SELECT - - col1 - col2 * col1 FROM tab2 AS cor0
----
-1475
-629
-806

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * tab1.col2 * col0 col1 FROM tab1
----
36480
4212
99840

query I rowsort
SELECT ALL ( - tab0.col0 ) AS col1 FROM tab0
----
-24
-35
-89

onlyif mysql # use DIV operator for integer division
query I rowsort label-1404
SELECT ALL - tab2.col0 DIV + col1 AS col2 FROM tab2
----
-1
-4
0

skipif mysql # not compatible
query I rowsort label-1404
SELECT ALL - tab2.col0 / + col1 AS col2 FROM tab2
----
-1
-4
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * 97 col0 FROM tab1
----
1261
2522
970

query I rowsort
SELECT + 6 FROM tab1, tab0, tab0 AS cor0
----
27 values hashing to f1e8f0199f3714ee8fcc24ce0cc3ea04

query I rowsort
SELECT DISTINCT + - col1 * col0 + - 87 FROM tab2 AS cor0
----
-1430
-304
-4689

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 26 col1 FROM tab1 AS cor0
----
-26
-26
-26

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1409
SELECT DISTINCT cor0.col2 * - col2 + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1409
SELECT DISTINCT cor0.col2 * - col2 + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT + 17 AS col2 FROM tab2 cor0
----
17
17
17

query I rowsort
SELECT DISTINCT 20 * col0 FROM tab0 cor0
----
1780
480
700

query I rowsort
SELECT ALL - col0 + - col1 + - 37 * + col1 FROM tab2 AS cor0
----
-1185
-2320
-725

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 18 col2 FROM tab1
----
-18
-18
-18

query I rowsort
SELECT + 58 AS col0 FROM tab2 cor0
----
58
58
58

query I rowsort
SELECT DISTINCT 48 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
48

query I rowsort
SELECT DISTINCT - 94 * + col2 + - 43 FROM tab0
----
-137
-3145
-7751

onlyif mysql # use DIV operator for integer division
query I rowsort label-1417
SELECT - ( + col1 ) DIV + col2 AS col2 FROM tab0
----
-1
-2
-97

skipif mysql # not compatible
query I rowsort label-1417
SELECT - ( + col1 ) / + col2 AS col2 FROM tab0
----
-1
-2
-97

query I rowsort
SELECT + + col1 * - col2 + col1 AS col0 FROM tab1 AS cor0
----
-1235
-1378
-560

query I rowsort
SELECT cor0.col0 FROM tab1, tab0, tab0 cor0
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd

onlyif mysql # use DIV operator for integer division
query I rowsort label-1420
SELECT ALL col1 DIV + col0 AS col2 FROM tab1
----
0
0
8

skipif mysql # not compatible
query I rowsort label-1420
SELECT ALL col1 / + col0 AS col2 FROM tab1
----
0
0
8

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1421
SELECT + ( - col2 ) + - CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1421
SELECT + ( - col2 ) + - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col0 + 38 FROM tab0
----
-51
14
3

query I rowsort
SELECT ALL col2 + + 82 FROM tab1
----
136
139
178

query I rowsort
SELECT DISTINCT + tab2.col1 + col0 * col2 * + col0 AS col1 FROM tab2
----
1354
158243
237175

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1425
SELECT col1 + CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1425
SELECT col1 + CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col1 * cor0.col0 * col2 AS col2 FROM tab1 AS cor0
----
36480
4212
99840

query I rowsort
SELECT ALL col1 + 55 AS col2 FROM tab1 cor0
----
65
68
81

onlyif mysql # use DIV operator for integer division
query I rowsort label-1428
SELECT DISTINCT col2 + - cor0.col0 DIV - col2 FROM tab0 AS cor0
----
33
36
83

skipif mysql # not compatible
query I rowsort label-1428
SELECT DISTINCT col2 + - cor0.col0 / - col2 FROM tab0 AS cor0
----
33
36
83

query I rowsort
SELECT ALL + col0 + tab1.col1 FROM tab1
----
29
74
93

query I rowsort
SELECT + 54 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to d2364c4ffc09ac2cf1f6fa4d767d8b09

onlyif mysql # use DIV operator for integer division
query I rowsort label-1431
SELECT + col0 * + col1 - - col2 DIV col2 FROM tab1
----
1041
641
79

skipif mysql # not compatible
query I rowsort label-1431
SELECT + col0 * + col1 - - col2 / col2 FROM tab1
----
1041
641
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + col1 * col0 col0 FROM tab0
----
2097
3396
8181

query I rowsort
SELECT ALL - col1 * + 80 + col2 * + col1 AS col0 FROM tab1
----
-230
-676
208

onlyif mysql # use DIV operator for integer division
query I rowsort label-1434
SELECT ALL tab0.col1 + 39 * 78 DIV col2 FROM tab0
----
128
178
3139

skipif mysql # not compatible
query I rowsort label-1434
SELECT ALL tab0.col1 + 39 * 78 / col2 FROM tab0
----
128
178
3139

query I rowsort
SELECT ( + tab0.col2 ) FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475

onlyif mysql # use DIV operator for integer division
query I rowsort label-1436
SELECT ( col0 ) DIV + col0 + 63 * - col0 AS col0 FROM tab0 AS cor0
----
-1511
-2204
-5606

skipif mysql # not compatible
query I rowsort label-1436
SELECT ( col0 ) / + col0 + 63 * - col0 AS col0 FROM tab0 AS cor0
----
-1511
-2204
-5606

query I rowsort
SELECT ALL col2 + 82 FROM tab1 cor0
----
136
139
178

query I rowsort
SELECT + ( col2 ) * col0 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT DISTINCT - + 68 * col2 + col2 * col2 FROM tab0 AS cor0
----
-1155
-67
1148

query I rowsort
SELECT - 13 * 60 + - col1 FROM tab0 AS cor0
----
-866
-871
-877

query I rowsort
SELECT DISTINCT + ( + col0 ) * col1 + 94 FROM tab1 AS cor0
----
1134
172
734

query I rowsort
SELECT + + col0 + - ( col1 ) AS col2 FROM tab1 AS cor0
----
-23
54
67

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1443
SELECT DISTINCT CAST( + 75 AS SIGNED ) + col2 * + col2 * + ( col1 ) FROM tab1 AS cor0
----
119883
32565
75891

skipif mysql # not compatible
query I rowsort label-1443
SELECT DISTINCT CAST ( + 75 AS INTEGER ) + col2 * + col2 * + ( col1 ) FROM tab1 AS cor0
----
119883
32565
75891

query I rowsort
SELECT ALL + + 85 AS col1 FROM tab1 AS cor0
----
85
85
85

query I rowsort
SELECT + col0 * ( col2 ) + + col1 AS col0 FROM tab2 cor0
----
2087
220
3019

query I rowsort
SELECT - - col1 * ( col0 ) FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT ALL - col0 + + col0 * ( + col2 ) AS col1 FROM tab2
----
182
1950
2923

query I rowsort
SELECT - col0 + col2 + col2 FROM tab0
----
-33
42
75

query I rowsort
SELECT DISTINCT 55 * + col2 FROM tab1
----
2970
3135
5280

query I rowsort
SELECT ALL 67 AS col0 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to eea8a0738728ea55e4e7ba1506c9905a

query I rowsort
SELECT col2 * ( + col2 ) + - col2 AS col0 FROM tab1 AS cor0
----
2862
3192
9120

query I rowsort
SELECT ALL - - cor0.col2 + 63 * col0 FROM tab1 AS cor0
----
243
4089
5136

onlyif mysql # use DIV operator for integer division
query I rowsort label-1453
SELECT + - col1 * cor0.col2 DIV col1 + - col1 AS col0 FROM tab1 AS cor0
----
-109
-67
-80

skipif mysql # not compatible
query I rowsort label-1453
SELECT + - col1 * cor0.col2 / col1 + - col1 AS col0 FROM tab1 AS cor0
----
-109
-67
-80

query I rowsort
SELECT + - cor0.col1 * - ( + col1 ) + col0 FROM tab1 AS cor0
----
164
249
679

query I rowsort
SELECT DISTINCT - col0 + + ( col0 ) * + col1 FROM tab0 AS cor0
----
2040
3360
8010

query I rowsort
SELECT DISTINCT - 61 + col1 AS col2 FROM tab1 AS cor0
----
-35
-48
-51

query I rowsort
SELECT - + 11 * col2 AS col0 FROM tab2 AS cor0
----
-286
-297
-418

query I rowsort
SELECT DISTINCT - col2 * col1 * + col1 AS col2 FROM tab2 AS cor0
----
-10982
-25947
-90506

query I rowsort
SELECT + ( - cor0.col0 ) * + col0 FROM tab2 AS cor0
----
-49
-6084
-6241

onlyif mysql # use DIV operator for integer division
query I rowsort label-1460
SELECT DISTINCT + + CAST( col2 AS SIGNED ) DIV col2 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-1460
SELECT DISTINCT + + CAST ( col2 AS INTEGER ) / col2 FROM tab1 AS cor0
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col1 * - col0 col1 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT DISTINCT + 11 * col0 FROM tab0 AS cor0
----
264
385
979

query I rowsort
SELECT cor0.col2 * + col1 + 36 + + 95 FROM tab2 cor0
----
1665
777
968

query I rowsort
SELECT + + 27 - - col2 AS col0 FROM tab2 AS cor0
----
53
54
65

query I rowsort
SELECT col0 - - col1 * col2 FROM tab0 AS cor0
----
132
2862
7551

query I rowsort
SELECT col0 * - col1 - + cor0.col1 AS col2 FROM tab2 AS cor0
----
-1360
-248
-4661

query I rowsort
SELECT ( col2 ) * + col2 * col2 AS col1 FROM tab2
----
17576
19683
54872

query I rowsort
SELECT - + cor0.col0 * col1 AS col0 FROM tab2 AS cor0
----
-1343
-217
-4602

onlyif mysql # use DIV operator for integer division
query I rowsort label-1469
SELECT + - 91 DIV - col2 FROM tab0 AS cor0
----
1
2
91

skipif mysql # not compatible
query I rowsort label-1469
SELECT + - 91 / - col2 FROM tab0 AS cor0
----
1
2
91

query I rowsort
SELECT DISTINCT 55 AS col1 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
55

query I rowsort
SELECT col1 + + 50 AS col1 FROM tab0 AS cor0
----
136
141
147

query I rowsort
SELECT DISTINCT + 33 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
33

query I rowsort
SELECT col2 * - cor0.col0 - cor0.col0 FROM tab2 AS cor0
----
-196
-2106
-3081

query I rowsort
SELECT - - col2 * 79 AS col0 FROM tab2 AS cor0
----
2054
2133
3002

query I rowsort
SELECT tab2.col1 AS col2 FROM tab2, tab1 cor0
----
9 values hashing to c61d27a0022e6d022371dc58819ab272

query I rowsort
SELECT ALL - cor0.col2 FROM tab1, tab2 cor0, tab2 AS cor1
----
27 values hashing to f9d4bb8677db7b98c7ed89d06e6e8cd6

query I rowsort
SELECT - 72 + col0 * col2 AS col1 FROM tab1 AS cor0
----
3576
7608
90

query I rowsort
SELECT ALL + 60 * - col1 * - ( + cor0.col1 ) + col0 AS col0 FROM tab0 AS cor0
----
443784
496949
564575

query I rowsort
SELECT ALL 50 * 7 * + tab1.col1 FROM tab1
----
3500
4550
9100

query I rowsort
SELECT + tab1.col1 * - cor0.col2 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to d85bc2e8ce42c10576fce198c34232af

query I rowsort
SELECT ALL - col0 * - tab1.col2 AS col1 FROM tab1
----
162
3648
7680

onlyif mysql # use DIV operator for integer division
query I rowsort label-1482
SELECT ALL 9 DIV + 58 FROM tab2, tab1 cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

skipif mysql # not compatible
query I rowsort label-1482
SELECT ALL 9 / + 58 FROM tab2, tab1 cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query I rowsort
SELECT ALL - ( - 31 ) AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to d1ebd1cea4a9773069af34fbf8ea3540

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1484
SELECT - CAST( NULL AS SIGNED ) + cor0.col1 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1484
SELECT - CAST ( NULL AS INTEGER ) + cor0.col1 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1485
SELECT DISTINCT + CAST( NULL AS SIGNED ) * 52 - col1 * 12 col1 FROM tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1485
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * 52 - col1 * 12 col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - 13 + + tab2.col1 FROM tab2
----
18
4
46

query I rowsort
SELECT + 81 * - col1 AS col0 FROM tab1
----
-1053
-2106
-810

query I rowsort
SELECT 92 * col1 + col1 + 90 FROM tab0 AS cor0
----
8088
8553
9111

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab0 cor0, tab2 AS cor1, tab0 AS cor2
----
972 values hashing to 9345325155d9f4d7dc4986690c631cb9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( 63 ) + col0 * 20 col1 FROM tab0
----
1843
543
763

query I rowsort
SELECT + 9 + 67 AS col1 FROM tab1
----
76
76
76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - tab1.col0 + col2 col1 FROM tab1
----
-4039
-6304
45

onlyif mysql # use DIV operator for integer division
query I rowsort label-1493
SELECT + 84 DIV - 39 FROM tab0
----
-2
-2
-2

skipif mysql # not compatible
query I rowsort label-1493
SELECT + 84 / - 39 FROM tab0
----
-2
-2
-2

query I rowsort
SELECT DISTINCT 58 + col2 FROM tab1
----
112
115
154

query I rowsort
SELECT ALL - 93 + + col0 * + cor0.col1 FROM tab0 AS cor0
----
1971
3302
8006

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 29 + - col1 col2 FROM tab0 AS cor0
----
-115
-120
-126

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1497
SELECT ALL CAST( NULL AS DECIMAL ) - - col1 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1497
SELECT ALL CAST ( NULL AS REAL ) - - col1 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 31 AS col1 FROM tab0, tab2 AS cor0
----
-31

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + ( col0 ) - col0 col0 FROM tab0 cor0
----
-2088
-3430
-8188

query I rowsort
SELECT DISTINCT + - col1 + ( - col1 ) * 4 * - col0 FROM tab0 AS cor0
----
13483
32305
8170

query I rowsort
SELECT DISTINCT col1 + ( + col2 ) FROM tab1 cor0
----
109
67
80

query I rowsort
SELECT + col2 - tab0.col2 * 78 AS col2 FROM tab0
----
-2541
-6314
-77

query I rowsort
SELECT DISTINCT - cor0.col2 * ( 60 ) FROM tab1 AS cor0
----
-3240
-3420
-5760

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - cor0.col2 * + 40 + col0 col2 FROM tab0 AS cor0
----
-1296
-3191
-5

query I rowsort
SELECT col1 + - 79 * col0 * - col1 FROM tab0 AS cor0
----
163142
268302
639912

query I rowsort
SELECT ALL - cor0.col1 + + col0 * - col2 FROM tab0 AS cor0
----
-132
-7389
-878

query I rowsort
SELECT DISTINCT 8 * col0 AS col2 FROM tab0
----
192
280
712

query I rowsort
SELECT DISTINCT + col2 * + col1 - col1 * - col0 * ( cor0.col1 ) FROM tab1 AS cor0
----
14768
3432
6970

onlyif mysql # use DIV operator for integer division
query I rowsort label-1509
SELECT DISTINCT - col0 DIV 87 + 96 FROM tab2 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-1509
SELECT DISTINCT - col0 / 87 + 96 FROM tab2 AS cor0
----
96

query I rowsort
SELECT ALL + col2 * + col0 + col0 FROM tab2 AS cor0
----
196
2106
3081

onlyif mysql # use DIV operator for integer division
query I rowsort label-1511
SELECT ALL cor0.col0 DIV 92 AS col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1511
SELECT ALL cor0.col0 / 92 AS col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - cor0.col1 * + 3 AS col1 FROM tab1 AS cor0
----
-30
-39
-78

query I rowsort
SELECT DISTINCT col0 * 84 FROM tab2 AS cor0
----
588
6552
6636

query I rowsort
SELECT ALL - col0 * 67 AS col1 FROM tab2 AS cor0
----
-469
-5226
-5293

query I rowsort
SELECT + cor0.col2 * 31 AS col0 FROM tab2 AS cor0
----
1178
806
837

query I rowsort
SELECT DISTINCT + col2 + + ( col1 ) FROM tab1 AS cor0
----
109
67
80

query I rowsort
SELECT - - 29 * col2 AS col2 FROM tab2 AS cor0
----
1102
754
783

query I rowsort
SELECT 42 * col2 AS col0 FROM tab2 AS cor0
----
1092
1134
1596

query I rowsort
SELECT ALL 53 AS col0 FROM tab2 AS cor0
----
53
53
53

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1520
SELECT - + CAST( NULL AS SIGNED ) / - col1 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1520
SELECT - + CAST ( NULL AS INTEGER ) / - col1 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col0 * 89 FROM tab2 AS cor0
----
623
6942
7031

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 56 col0 FROM tab0 AS cor0
----
56

query I rowsort
SELECT DISTINCT + col1 * 85 FROM tab1 AS cor0
----
1105
2210
850

query I rowsort
SELECT ALL 97 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to c73fa6978df8525c99d6bc792bb27123

query I rowsort
SELECT ALL - col1 * 34 AS col0 FROM tab2
----
-1054
-2006
-578

onlyif mysql # use DIV operator for integer division
query I rowsort label-1526
SELECT ALL + col1 DIV 95 AS col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1526
SELECT ALL + col1 / 95 AS col0 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT col0 * col2 + col1 * - 93 + col2 AS col0 FROM tab0 AS cor0
----
-1083
-7173
-8985

query I rowsort
SELECT col2 * + col0 + col2 AS col0 FROM tab2 AS cor0
----
2054
216
3040

query I rowsort
SELECT ALL + 39 - + col0 FROM tab1 AS cor0
----
-25
-41
36

query I rowsort
SELECT ALL + + ( - col0 ) * 58 + + col0 + + cor0.col1 FROM tab1 AS cor0
----
-145
-3638
-4547

query I rowsort
SELECT DISTINCT + col0 + cor0.col1 FROM tab1 cor0
----
29
74
93

query I rowsort
SELECT ALL 98 + cor0.col1 FROM tab0 AS cor0
----
184
189
195

query I rowsort
SELECT DISTINCT 38 - + col1 FROM tab2 AS cor0
----
-21
21
7

query I rowsort
SELECT DISTINCT - col1 + - col0 * 75 FROM tab1 AS cor0
----
-251
-4810
-6013

onlyif mysql # use DIV operator for integer division
query I rowsort label-1535
SELECT + + col1 DIV + cor0.col0 + col1 FROM tab2 cor0
----
17
35
59

skipif mysql # not compatible
query I rowsort label-1535
SELECT + + col1 / + cor0.col0 + col1 FROM tab2 cor0
----
17
35
59

query I rowsort
SELECT 58 + col2 + tab1.col0 FROM tab1
----
115
179
234

query I rowsort
SELECT ALL - 71 - col1 FROM tab1
----
-81
-84
-97

query I rowsort
SELECT DISTINCT + col1 * col1 - col2 FROM tab0
----
7363
8199
9408

query I rowsort
SELECT ALL - 6 FROM tab0 AS cor0
----
-6
-6
-6

query I rowsort
SELECT ALL col1 - + col0 * - 5 AS col1 FROM tab1 AS cor0
----
330
41
413

onlyif mysql # use DIV operator for integer division
query I rowsort label-1541
SELECT col0 DIV + col0 - CAST( 60 AS SIGNED ) * - cor0.col1 FROM tab2 AS cor0
----
1021
1861
3541

skipif mysql # not compatible
query I rowsort label-1541
SELECT col0 / + col0 - CAST ( 60 AS INTEGER ) * - cor0.col1 FROM tab2 AS cor0
----
1021
1861
3541

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1542
SELECT DISTINCT - 86 * cor0.col1 * CAST( 45 AS SIGNED ) FROM tab1 AS cor0
----
-100620
-38700
-50310

skipif mysql # not compatible
query I rowsort label-1542
SELECT DISTINCT - 86 * cor0.col1 * CAST ( 45 AS INTEGER ) FROM tab1 AS cor0
----
-100620
-38700
-50310

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 76 - - 55 * col1 col2 FROM tab0
----
4806
5081
5411

query I rowsort
SELECT ALL - - 4 * col2 + 46 * + col0 * col1 AS col1 FROM tab0 AS cor0
----
156174
372882
95076

query I rowsort
SELECT DISTINCT + col0 + col2 * + col0 AS col2 FROM tab2 AS cor0
----
196
2106
3081

query I rowsort
SELECT + cor0.col2 FROM tab1, tab2 AS cor0, tab2 cor1, tab1 AS cor2
----
81 values hashing to c4e6b1f1d28e731664a15a6f7cda4da9

query I rowsort
SELECT + ( - 46 ) AS col0 FROM tab2
----
-46
-46
-46

onlyif mysql # use DIV operator for integer division
query I rowsort label-1548
SELECT 38 * col2 DIV - col0 AS col0 FROM tab0
----
-1
-35
-52

skipif mysql # not compatible
query I rowsort label-1548
SELECT 38 * col2 / - col0 AS col0 FROM tab0
----
-1
-35
-52

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1549
SELECT DISTINCT + CAST( NULL AS SIGNED ) / + tab1.col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-1549
SELECT DISTINCT + CAST ( NULL AS INTEGER ) / + tab1.col2 FROM tab1
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-1550
SELECT + cor0.col1 DIV 93 col1 FROM tab2 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1550
SELECT + cor0.col1 / 93 col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT + col2 * - 35 FROM tab0 AS cor0
----
-1155
-2870
-35

query I rowsort
SELECT + - 53 * - cor0.col1 * + col2 + ( col0 ) FROM tab2 AS cor0
----
34317
44368
81380

onlyif mysql # use DIV operator for integer division
query I rowsort label-1553
SELECT + col2 DIV + col1 AS col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1553
SELECT + col2 / + col1 AS col1 FROM tab0 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 + col1 - + 97 * col0 col2 FROM tab1 cor0
----
-291
-6208
-7760

query I rowsort
SELECT DISTINCT - 34 AS col1 FROM tab1, tab0 cor0
----
-34

query I rowsort
SELECT - + cor0.col2 + cor0.col2 AS col0 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT + - 99 * cor0.col0 FROM tab0 AS cor0
----
-2376
-3465
-8811

query I rowsort
SELECT - col2 + col2 * - col1 AS col2 FROM tab1 AS cor0
----
-1344
-1458
-627

query I rowsort
SELECT ALL 2 * - tab2.col2 AS col1 FROM tab2
----
-52
-54
-76

onlyif mysql # use DIV operator for integer division
query I rowsort label-1560
SELECT DISTINCT + ( - col1 ) * col1 DIV - col1 AS col1 FROM tab1
----
10
13
26

skipif mysql # not compatible
query I rowsort label-1560
SELECT DISTINCT + ( - col1 ) * col1 / - col1 AS col1 FROM tab1
----
10
13
26

query I rowsort
SELECT ALL 41 FROM tab0
----
41
41
41

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 + + col2 * - cor0.col2 col1 FROM tab1 AS cor0
----
-2942
-3259
-9229

query I rowsort
SELECT + col0 + 6 FROM tab2 AS cor0
----
13
84
85

query I rowsort
SELECT - cor0.col0 * + ( - cor0.col1 + - col1 ) FROM tab1 AS cor0
----
1280
156
2080

query I rowsort
SELECT + 47 + - tab2.col2 AS col2 FROM tab2
----
20
21
9

query I rowsort
SELECT + + col0 * 32 AS col2 FROM tab0 AS cor0
----
1120
2848
768

query I rowsort
SELECT DISTINCT - cor0.col2 + col1 * - col1 AS col1 FROM tab2 AS cor0
----
-327
-3507
-988

onlyif mysql # use DIV operator for integer division
query I rowsort label-1568
SELECT ALL col0 DIV ( + col2 * + col1 ) col0 FROM tab1 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1568
SELECT ALL col0 / ( + col2 * + col1 ) col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT + - col2 * - 44 FROM tab2 AS cor0
----
1144
1188
1672

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( - 48 ) * - col1 + col2 col1 FROM tab1 AS cor0
----
1302
537
720

query I rowsort
SELECT DISTINCT - - col0 * col0 * + cor0.col1 + col0 - + 93 FROM tab1 AS cor0
----
144
40931
83187

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col0 + col0 * + col2 + - 19 col0 FROM tab2 AS cor0
----
177
2087
3062

query I rowsort
SELECT ALL + 93 - col1 AS col1 FROM tab0 cor0
----
-4
2
7

query I rowsort
SELECT ALL - 96 + - col1 FROM tab1 cor0
----
-106
-109
-122

query I rowsort
SELECT tab1.col0 * ( - col2 ) * - col1 + - 62 * ( col0 + col1 ) AS col1 FROM tab1
----
2414
31892
94074

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1576
SELECT CAST( - col1 AS SIGNED ) * cor0.col1 AS col1 FROM tab1 AS cor0
----
-100
-169
-676

skipif mysql # not compatible
query I rowsort label-1576
SELECT CAST ( - col1 AS INTEGER ) * cor0.col1 AS col1 FROM tab1 AS cor0
----
-100
-169
-676

query I rowsort
SELECT ALL - ( - 0 ) FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT - - 71 * col1 FROM tab1 cor0
----
1846
710
923

query I rowsort
SELECT + + 14 AS col1 FROM tab2 cor0
----
14
14
14

query I rowsort
SELECT 11 AS col2 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 69116737f3f57e2e3273f6dbb04d036c

query I rowsort
SELECT - + col0 - col0 * - col2 FROM tab0 AS cor0
----
0
7209
768

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1582
SELECT col0 * - cor0.col1 + CAST( - col2 AS SIGNED ) * col0 AS col0 FROM tab1 cor0
----
-240
-4288
-8720

skipif mysql # not compatible
query I rowsort label-1582
SELECT col0 * - cor0.col1 + CAST ( - col2 AS INTEGER ) * col0 AS col0 FROM tab1 cor0
----
-240
-4288
-8720

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 92 * + col0 + col1 col1 FROM tab0 AS cor0
----
-2122
-3123
-8097

query I rowsort
SELECT ALL + 49 + col1 AS col1 FROM tab1
----
59
62
75

onlyif mysql # use DIV operator for integer division
query I rowsort label-1585
SELECT + + col0 DIV - col0 + 52 DIV col2 AS col1 FROM tab0 AS cor0
----
-1
0
51

skipif mysql # not compatible
query I rowsort label-1585
SELECT + + col0 / - col0 + 52 / col2 AS col1 FROM tab0 AS cor0
----
-1
0
51

query I rowsort
SELECT - col0 * ( 99 ) + col2 AS col1 FROM tab1 AS cor0
----
-243
-6279
-7824

query I rowsort
SELECT DISTINCT 43 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
43

query I rowsort
SELECT ALL + col0 + col2 + + 42 AS col2 FROM tab1 AS cor0
----
163
218
99

onlyif mysql # use DIV operator for integer division
query I rowsort label-1589
SELECT - col0 + col1 DIV - ( - col2 ) FROM tab1 AS cor0
----
-3
-64
-80

skipif mysql # not compatible
query I rowsort label-1589
SELECT - col0 + col1 / - ( - col2 ) FROM tab1 AS cor0
----
-3
-64
-80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1590
SELECT ALL - CAST( NULL AS SIGNED ) AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-1590
SELECT ALL - CAST ( NULL AS INTEGER ) AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT ALL + col0 + - 66 + cor0.col0 AS col2 FROM tab0 AS cor0
----
-18
112
4

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1592
SELECT DISTINCT - col1 * + col1 + - CAST( col1 AS SIGNED ) * col0 AS col0 FROM tab0 cor0
----
-12804
-16380
-9460

skipif mysql # not compatible
query I rowsort label-1592
SELECT DISTINCT - col1 * + col1 + - CAST ( col1 AS INTEGER ) * col0 AS col0 FROM tab0 cor0
----
-12804
-16380
-9460

onlyif mysql # use DIV operator for integer division
query I rowsort label-1593
SELECT col1 * col1 + col1 DIV - col0 FROM tab0 AS cor0
----
7393
8280
9407

skipif mysql # not compatible
query I rowsort label-1593
SELECT col1 * col1 + col1 / - col0 FROM tab0 AS cor0
----
7393
8280
9407

query I rowsort
SELECT DISTINCT + + col1 + col0 AS col1 FROM tab2 AS cor0
----
137
38
96

query I rowsort
SELECT ALL - 75 * + col2 * col1 AS col2 FROM tab0 AS cor0
----
-212850
-559650
-7275

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 27 * + col1 col2 FROM tab2 AS cor0
----
1593
459
837

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + cor0.col0 * + col1 col2 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT col0 + + col1 * + col1 * - col1 AS col0 FROM tab1 AS cor0
----
-17573
-2117
-936

query I rowsort
SELECT ALL 81 + - col2 AS col2 FROM tab0 AS cor0
----
-1
48
80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1600
SELECT DISTINCT col1 * + col2 * CAST( - col1 * cor0.col2 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-2353156
-417316
-700569

skipif mysql # not compatible
query I rowsort label-1600
SELECT DISTINCT col1 * + col2 * CAST ( - col1 * cor0.col2 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-2353156
-417316
-700569

query I rowsort
SELECT DISTINCT + col2 * + 83 + - col0 FROM tab2
----
2080
2234
3075

query I rowsort
SELECT DISTINCT - col0 * - col2 + col2 * - col2 + + tab0.col0 * + col0 FROM tab0
----
1259
279
8495

query I rowsort
SELECT DISTINCT 23 + - col1 FROM tab2 AS cor0
----
-36
-8
6

query I rowsort
SELECT ALL col1 * col1 + + 74 FROM tab2 cor0
----
1035
3555
363

query I rowsort
SELECT ALL + - col1 - col0 FROM tab0 AS cor0
----
-110
-132
-180

query I rowsort
SELECT - 48 - + col0 FROM tab2
----
-126
-127
-55

query I rowsort
SELECT - 63 FROM tab2, tab0 AS cor0
----
9 values hashing to 5a7845ef6e239561caf9a17a28e274b5

query I rowsort
SELECT ALL - 91 FROM tab2 AS cor0
----
-91
-91
-91

query I rowsort
SELECT DISTINCT - 28 * col2 + + col2 - + col1 FROM tab2 AS cor0
----
-1043
-760
-761

query I rowsort
SELECT ALL + 97 + col2 AS col2 FROM tab1 AS cor0
----
151
154
193

query I rowsort
SELECT ALL + tab0.col1 * - 96 + col0 * col1 FROM tab0
----
-5917
-6192
-637

query I rowsort
SELECT ALL tab2.col0 - 40 AS col1 FROM tab2
----
-33
38
39

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1613
SELECT ALL CAST( NULL AS DECIMAL ) * + col2 + col2 col0 FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1613
SELECT ALL CAST ( NULL AS REAL ) * + col2 + col2 col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col1 * - col2 + + col0 AS col2 FROM tab2
----
-1456
-567
-830

query I rowsort
SELECT - 62 + col0 FROM tab0
----
-27
-38
27

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - cor0.col0 col0 FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT ALL + 41 + col0 * - tab1.col1 FROM tab1
----
-37
-599
-999

onlyif mysql # use DIV operator for integer division
query I rowsort label-1618
SELECT - col1 + + col1 DIV + col0 FROM tab1
----
-10
-13
-18

skipif mysql # not compatible
query I rowsort label-1618
SELECT - col1 + + col1 / + col0 FROM tab1
----
-10
-13
-18

query I rowsort
SELECT col2 * + 46 AS col0 FROM tab1
----
2484
2622
4416

onlyif mysql # use DIV operator for integer division
query I rowsort label-1620
SELECT - col1 * col0 + + col1 * - cor0.col1 DIV + col1 AS col0 FROM tab1 AS cor0
----
-104
-1053
-650

skipif mysql # not compatible
query I rowsort label-1620
SELECT - col1 * col0 + + col1 * - cor0.col1 / + col1 AS col0 FROM tab1 AS cor0
----
-104
-1053
-650

query I rowsort
SELECT ALL 66 * + 98 * + col1 FROM tab1 AS cor0
----
168168
64680
84084

query I rowsort
SELECT 62 + + 27 * col1 + tab2.col1 AS col0 FROM tab2
----
1714
538
930

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1623
SELECT DISTINCT - col1 - col0 * + CAST( + cor0.col2 AS SIGNED ) FROM tab0 cor0
----
-132
-7389
-878

skipif mysql # not compatible
query I rowsort label-1623
SELECT DISTINCT - col1 - col0 * + CAST ( + cor0.col2 AS INTEGER ) FROM tab0 cor0
----
-132
-7389
-878

query I rowsort
SELECT ALL col2 * - col0 * + ( + 80 + - col2 ) AS col2 FROM tab1 AS cor0
----
-4212
-83904
122880

onlyif mysql # use DIV operator for integer division
query I rowsort label-1625
SELECT - - 38 DIV col0 + col0 FROM tab2 AS cor0
----
12
78
79

skipif mysql # not compatible
query I rowsort label-1625
SELECT - - 38 / col0 + col0 FROM tab2 AS cor0
----
12
78
79

query I rowsort
SELECT ALL col1 * col1 + cor0.col2 + ( - col0 ) * + 57 FROM tab2 AS cor0
----
-4176
-939
589

query I rowsort
SELECT + ( + col2 ) + 55 * cor0.col2 FROM tab2 AS cor0
----
1456
1512
2128

query I rowsort
SELECT + col2 * - 64 AS col2 FROM tab1
----
-3456
-3648
-6144

query I rowsort
SELECT col2 * 50 * ( - col2 * 91 + + col0 ) FROM tab1
----
-13259700
-14600550
-41548800

onlyif mysql # use DIV operator for integer division
query I rowsort label-1630
SELECT + col2 + - tab1.col2 * + col2 DIV tab1.col2 + col0 AS col1 FROM tab1
----
3
64
80

skipif mysql # not compatible
query I rowsort label-1630
SELECT + col2 + - tab1.col2 * + col2 / tab1.col2 + col0 AS col1 FROM tab1
----
3
64
80

query I rowsort
SELECT tab0.col2 + - tab0.col2 + - col2 AS col1 FROM tab0
----
-1
-33
-82

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1632
SELECT DISTINCT - col0 + - CAST( col2 AS SIGNED ) AS col0 FROM tab2
----
-104
-117
-34

skipif mysql # not compatible
query I rowsort label-1632
SELECT DISTINCT - col0 + - CAST ( col2 AS INTEGER ) AS col0 FROM tab2
----
-104
-117
-34

query I rowsort
SELECT DISTINCT + tab0.col1 + - ( col0 + col1 ) AS col2 FROM tab0
----
-24
-35
-89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * ( 61 ) + col1 col0 FROM tab2
----
458
4817
4836

query I rowsort
SELECT + + cor0.col2 * - ( + col2 ) FROM tab1 AS cor0
----
-2916
-3249
-9216

query I rowsort
SELECT - col0 * 67 + - 67 AS col0 FROM tab2 cor0
----
-5293
-536
-5360

query I rowsort
SELECT DISTINCT + col1 * + col0 * - col2 AS col2 FROM tab1 AS cor0
----
-36480
-4212
-99840

onlyif mysql # use DIV operator for integer division
query I rowsort label-1638
SELECT ALL + - col2 + + ( 24 ) DIV col2 AS col0 FROM tab0 cor0
----
-33
-82
23

skipif mysql # not compatible
query I rowsort label-1638
SELECT ALL + - col2 + + ( 24 ) / col2 AS col0 FROM tab0 cor0
----
-33
-82
23

onlyif mysql # use DIV operator for integer division
query I rowsort label-1639
SELECT - col0 DIV ( col2 ) FROM tab0 AS cor0
----
-1
-35
0

skipif mysql # not compatible
query I rowsort label-1639
SELECT - col0 / ( col2 ) FROM tab0 AS cor0
----
-1
-35
0

query I rowsort
SELECT - - col1 * 1 FROM tab0 AS cor0
----
86
91
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * cor0.col2 col2 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT + - col0 + - col1 * col1 FROM tab2 AS cor0
----
-3559
-368
-968

query I rowsort
SELECT ALL - ( 95 ) FROM tab1 AS cor0
----
-95
-95
-95

query I rowsort
SELECT - 31 + - col1 AS col1 FROM tab2 AS cor0
----
-48
-62
-90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( col2 ) + col1 col1 FROM tab2 AS cor0
----
-21
33
4

query I rowsort
SELECT ALL cor0.col2 - + cor0.col1 * col1 FROM tab0 AS cor0
----
-7363
-8199
-9408

query I rowsort
SELECT ( 4 ) AS col0 FROM tab0 AS cor0
----
4
4
4

query I rowsort
SELECT DISTINCT cor0.col1 * 53 AS col2 FROM tab2 AS cor0
----
1643
3127
901

query I rowsort
SELECT 54 * - col0 FROM tab1 cor0
----
-162
-3456
-4320

query I rowsort
SELECT col0 * 85 + col2 + col0 FROM tab1
----
312
5561
6976

onlyif mysql # use DIV operator for integer division
query I rowsort label-1651
SELECT col0 DIV + CAST( + col1 * col1 AS SIGNED ) FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1651
SELECT col0 / + CAST ( + col1 * col1 AS INTEGER ) FROM tab1
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + col2 + - col2 * + col0 - ( col2 ) col2 FROM tab1 AS cor0
----
-456
1440
2700

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 48 col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 8b09cc2c99c2102036162d063e0e5a4b

query I rowsort
SELECT col0 - + tab2.col2 * col0 AS col0 FROM tab2
----
-182
-1950
-2923

query I rowsort
SELECT ALL col2 + col1 * col0 FROM tab1
----
1136
132
697

query III rowsort
SELECT ALL * FROM tab2 WHERE ( col1 * + col2 ) IN ( col1 + col2 - - col2 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL > + col2 * col1
----

query I rowsort
SELECT + col2 + col1 * col1 FROM tab1 AS cor0 WHERE NOT NULL <= - cor0.col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col2 * - cor0.col1 * - cor0.col1 col1 FROM tab2 AS cor0
----
10982
25947
90506

query I rowsort
SELECT DISTINCT col0 AS col1 FROM tab2 AS cor0 WHERE NULL = - col2
----

query I rowsort
SELECT ALL tab0.col2 + col2 AS col1 FROM tab0
----
164
2
66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + - tab2.col0 col1 FROM tab2
----
-41
-52
20

onlyif mysql # use DIV operator for integer division
query I rowsort label-1663
SELECT + col2 * col0 DIV + col1 AS col1 FROM tab0
----
0
80
9

skipif mysql # not compatible
query I rowsort label-1663
SELECT + col2 * col0 / + col1 AS col1 FROM tab0
----
0
80
9

onlyif mysql # use DIV operator for integer division
query I rowsort label-1664
SELECT ALL tab1.col2 * col0 DIV + col0 AS col0 FROM tab1
----
54
57
96

skipif mysql # not compatible
query I rowsort label-1664
SELECT ALL tab1.col2 * col0 / + col0 AS col0 FROM tab1
----
54
57
96

query I rowsort
SELECT col1 - + tab0.col1 FROM tab0
----
0
0
0

query I rowsort
SELECT DISTINCT col0 - col1 * col1 AS col1 FROM tab2
----
-210
-3403
-954

query I rowsort
SELECT col2 AS col1 FROM tab2 WHERE ( - col2 ) <= NULL
----

query I rowsort
SELECT ALL col1 * + col0 + - col1 AS col2 FROM tab2
----
1326
186
4543

query I rowsort
SELECT DISTINCT - - col2 * + col2 + + col1 FROM tab2 AS cor0
----
1461
735
760

query I rowsort
SELECT - col2 * col2 + col2 AS col0 FROM tab2 AS cor0
----
-1406
-650
-702

query I rowsort
SELECT DISTINCT + col2 + - col1 * - col0 + col2 FROM tab1 AS cor0
----
1232
186
754

query I rowsort
SELECT - col1 + - col1 + - cor0.col2 FROM tab2 cor0
----
-144
-72
-89

query I rowsort
SELECT - col0 + + col2 * - col2 + col1 * - col1 FROM tab0
----
-15094
-8509
-9445

query I rowsort
SELECT DISTINCT - tab1.col2 AS col2 FROM tab1, tab2, tab1 cor0
----
-54
-57
-96

onlyif mysql # use DIV operator for integer division
query I rowsort label-1675
SELECT DISTINCT - col2 DIV tab0.col2 + col0 AS col1 FROM tab0
----
23
34
88

skipif mysql # not compatible
query I rowsort label-1675
SELECT DISTINCT - col2 / tab0.col2 + col0 AS col1 FROM tab0
----
23
34
88

query I rowsort
SELECT ALL - col2 * - col1 + col1 AS col2 FROM tab2
----
1593
663
868

query I rowsort
SELECT - cor0.col2 + col1 AS col1 FROM tab2 AS cor0
----
-21
33
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * col2 * col2 col1 FROM tab1 AS cor0
----
207936
737280
8748

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NULL ) IN ( col0 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-1680
SELECT col1 + - col2 DIV - col0 FROM tab1
----
10
14
44

skipif mysql # not compatible
query I rowsort label-1680
SELECT col1 + - col2 / - col0 FROM tab1
----
10
14
44

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( NULL ) BETWEEN NULL AND - col0 + - col0 * col2
----

query I rowsort
SELECT DISTINCT + tab2.col2 * tab2.col0 AS col2 FROM tab2
----
189
2028
3002

query I rowsort
SELECT - + col1 + - ( col0 ) AS col1 FROM tab2 AS cor0
----
-137
-38
-96

onlyif mysql # use DIV operator for integer division
query I rowsort label-1684
SELECT ALL col2 DIV + col1 AS col0 FROM tab1 AS cor0
----
2
5
7

skipif mysql # not compatible
query I rowsort label-1684
SELECT ALL col2 / + col1 AS col0 FROM tab1 AS cor0
----
2
5
7

query I rowsort
SELECT - col0 + 28 FROM tab1 AS cor0
----
-36
-52
25

query I rowsort
SELECT + + col1 * + col0 + cor0.col0 FROM tab1 AS cor0
----
1120
704
81

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1687
SELECT DISTINCT - col2 - CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1687
SELECT DISTINCT - col2 - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT col1 * - cor0.col0 + - cor0.col0 * col2 AS col1 FROM tab1 AS cor0
----
-240
-4288
-8720

query I rowsort
SELECT ALL + col2 * 23 FROM tab1 AS cor0
----
1242
1311
2208

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1690
SELECT CAST( NULL AS SIGNED ) * + 95 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-1690
SELECT CAST ( NULL AS INTEGER ) * + 95 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT 10 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2, tab0 AS cor1, tab1 AS cor2
----
81 values hashing to bf75e71325a06683558cf93fd725ad16

query I rowsort
SELECT + 64 * cor0.col2 + cor0.col2 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 1c63def4d1d2f798027ca9ab1212d582

query I rowsort
SELECT + - col1 * col2 + cor0.col2 + - col2 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT + cor0.col1 + - 75 AS col1 FROM tab2 AS cor0
----
-16
-44
-58

query I rowsort
SELECT col0 + ( + 23 ) AS col2 FROM tab1
----
103
26
87

query I rowsort
SELECT col1 + - col0 * + col2 AS col1 FROM tab2
----
-158
-1969
-2985

query I rowsort
SELECT - + 54 AS col2 FROM tab2 AS cor0
----
-54
-54
-54

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( col0 * + col1 ) > col2 + col1 + tab2.col0 * - col2 * col1
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45

query I rowsort
SELECT ALL col1 AS col0 FROM tab0 WHERE NOT col1 <> ( NULL )
----

query I rowsort
SELECT - col2 * col2 * tab2.col0 FROM tab2
----
-114076
-5103
-52728

query I rowsort
SELECT ALL col1 * col0 * + tab1.col1 + col0 FROM tab1
----
13600
2031
6464

query I rowsort
SELECT DISTINCT tab1.col1 FROM tab1 WHERE - col2 * - col0 - + col0 * col1 <> ( + col1 * col1 + - col1 )
----
10
13
26

query I rowsort
SELECT ALL + col0 + col0 + col2 FROM tab0
----
260
71
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + + col1 + col0 col2 FROM tab2
----
134
163
65

onlyif mysql # use DIV operator for integer division
query I rowsort label-1705
SELECT col2 * col2 * + tab1.col0 + col0 DIV - col0 FROM tab1
----
207935
737279
8747

skipif mysql # not compatible
query I rowsort label-1705
SELECT col2 * col2 * + tab1.col0 + col0 / - col0 FROM tab1
----
207935
737279
8747

query I rowsort
SELECT DISTINCT col2 * + col2 FROM tab2 WHERE col0 * col1 - col1 * + col0 NOT BETWEEN + col2 + - col0 * + col1 AND + col0 * col2 + col1
----

query I rowsort
SELECT ALL + col2 * + col2 * + tab0.col1 + tab0.col1 FROM tab0
----
194
611975
93740

query I rowsort
SELECT col0 * col0 - col0 AS col0 FROM tab2
----
42
6006
6162

query III rowsort
SELECT ALL * FROM tab2 WHERE ( tab2.col0 ) IN ( + col0 + + col2 )
----

query I rowsort
SELECT - 59 + - col0 AS col2 FROM tab1
----
-123
-139
-62

query I rowsort
SELECT + + col0 * - col2 * 75 + 50 FROM tab1 AS cor0
----
-12100
-273550
-575950

query I rowsort
SELECT ALL + 29 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to 4c56285992bcb76e1aac22e6d23d1318

query I rowsort
SELECT DISTINCT 10 + + col0 AS col0 FROM tab2
----
17
88
89

query I rowsort
SELECT + 99 - + col2 FROM tab1 AS cor0
----
3
42
45

query I rowsort
SELECT - + col1 * - ( - col1 ) FROM tab1 AS cor0
----
-100
-169
-676

query I rowsort
SELECT DISTINCT - col0 * - 76 FROM tab0 AS cor0
----
1824
2660
6764

query I rowsort
SELECT - col2 + - 83 FROM tab0 AS cor0
----
-116
-165
-84

query I rowsort
SELECT - - col2 * + col0 AS col0 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT - - col1 * + 89 FROM tab1 AS cor0
----
1157
2314
890

query I rowsort
SELECT DISTINCT - - col2 + + col0 * + col1 AS col0 FROM tab0 AS cor0
----
2097
3396
8181

query I rowsort
SELECT - - col1 * 44 + + 57 * + col2 FROM tab0 AS cor0
----
4325
5665
8678

query I rowsort
SELECT DISTINCT - col2 + 8 FROM tab0 cor0
----
-25
-74
7

query I rowsort
SELECT ALL + col2 * - col2 * - 70 AS col1 FROM tab0 AS cor0
----
470680
70
76230

query I rowsort
SELECT - + col0 * - 4 FROM tab1 AS cor0
----
12
256
320

query I rowsort
SELECT ALL + - cor0.col2 + - col1 * col2 AS col1 FROM tab0 AS cor0
----
-2871
-7544
-98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col2 + 47 * 87 + cor0.col1 col0 FROM tab1 AS cor0
----
4156
4169
4198

query I rowsort
SELECT DISTINCT - col2 * - col1 + 2 FROM tab2 AS cor0
----
1536
648
839

query I rowsort
SELECT - col0 * + cor0.col2 * col0 AS col1 FROM tab2 AS cor0
----
-1323
-158184
-237158

query I rowsort
SELECT DISTINCT cor0.col2 * col2 * cor0.col1 FROM tab2 AS cor0
----
22599
24548
39884

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1730
SELECT DISTINCT + + CAST( NULL AS SIGNED ) * 79 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1730
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) * 79 FROM tab2 AS cor0
----
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1731
SELECT + CAST( 12 AS SIGNED ) * - col0 FROM tab1 AS cor0
----
-36
-768
-960

skipif mysql # not compatible
query I rowsort label-1731
SELECT + CAST ( 12 AS INTEGER ) * - col0 FROM tab1 AS cor0
----
-36
-768
-960

query I rowsort
SELECT ALL 25 + cor0.col0 * cor0.col1 * cor0.col0 AS col0 FROM tab1, tab0 cor0
----
9 values hashing to 7dbb69912ba757d7e4baae6ffd4afab3

query I rowsort
SELECT DISTINCT ( col1 ) * - col0 AS col0 FROM tab0 AS cor0
----
-2064
-3395
-8099

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1734
SELECT ALL + CAST( - 76 AS SIGNED ) FROM tab1 AS cor0
----
-76
-76
-76

skipif mysql # not compatible
query I rowsort label-1734
SELECT ALL + CAST ( - 76 AS INTEGER ) FROM tab1 AS cor0
----
-76
-76
-76

query I rowsort
SELECT + - 10 + cor0.col2 FROM tab1 AS cor0
----
44
47
86

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 14 * + col0 col0 FROM tab0 AS cor0
----
1246
336
490

query I rowsort
SELECT ALL col0 + 89 AS col1 FROM tab1
----
153
169
92

query I rowsort
SELECT + col1 * - 52 FROM tab0
----
-4472
-4732
-5044

query I rowsort
SELECT DISTINCT + col1 + - col2 + 60 AS col0 FROM tab1
----
-23
13
32

onlyif mysql # use DIV operator for integer division
query I rowsort label-1740
SELECT ALL col0 DIV - 1 + + ( col1 ) * - col2 FROM tab1
----
-1328
-1407
-634

skipif mysql # not compatible
query I rowsort label-1740
SELECT ALL col0 / - 1 + + ( col1 ) * - col2 FROM tab1
----
-1328
-1407
-634

query I rowsort
SELECT + col1 * + col0 + 34 * - col1 FROM tab2 AS cor0
----
-837
2596
765

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 - cor0.col0 col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT col1 * col0 * + ( + col2 ) + - cor0.col2 AS col0 FROM tab2 cor0
----
119626
50996
5832

query I rowsort
SELECT + ( + col2 ) * cor0.col1 - + cor0.col1 FROM tab0 AS cor0
----
0
2752
7371

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab2 AS cor0 CROSS JOIN tab2, tab0, tab2 cor1
----
3645 values hashing to 59ca7c96f3955e014bebd08b5442edff

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 91 col0 FROM tab2
----
91
91
91

query I rowsort
SELECT ALL + 91 * col2 + + col1 AS col0 FROM tab2 AS cor0
----
2425
2488
3475

onlyif mysql # use DIV operator for integer division
query I rowsort label-1748
SELECT ALL - - 92 * col2 + + ( col2 ) DIV - col1 + - col2 AS col1 FROM tab2 AS cor0
----
2366
2457
3456

skipif mysql # not compatible
query I rowsort label-1748
SELECT ALL - - 92 * col2 + + ( col2 ) / - col1 + - col2 AS col1 FROM tab2 AS cor0
----
2366
2457
3456

onlyif mysql # use DIV operator for integer division
query I rowsort label-1749
SELECT + - col1 DIV col1 AS col1 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-1749
SELECT + - col1 / col1 AS col1 FROM tab1 AS cor0
----
-1
-1
-1

query I rowsort
SELECT ( + col2 ) * - ( col1 ) - - col1 FROM tab2
----
-1475
-629
-806

query I rowsort
SELECT - 8 + + col0 + tab0.col1 AS col1 FROM tab0
----
102
124
172

query I rowsort
SELECT DISTINCT col1 * col0 - + 35 FROM tab1
----
1005
43
605

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1753
SELECT ALL col1 * + col2 * CAST( + 49 + - col0 AS SIGNED ) FROM tab2
----
-19380
-44486
35154

skipif mysql # not compatible
query I rowsort label-1753
SELECT ALL col1 * + col2 * CAST ( + 49 + - col0 AS INTEGER ) FROM tab2
----
-19380
-44486
35154

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * tab0.col1 col0 FROM tab0
----
-7396
-8281
-9409

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 43 col2 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to 2f72bd9cab68c8d8c38874510a290a3c

query I rowsort
SELECT DISTINCT + tab0.col1 + - col2 + col0 AS col0 FROM tab0
----
131
77
98

query I rowsort
SELECT DISTINCT 96 + + col0 * col0 + ( col2 * col2 ) FROM tab1
----
15712
3021
7441

query I rowsort
SELECT + 84 + col1 FROM tab2 cor0
----
101
115
143

query I rowsort
SELECT - col2 * col0 + col0 - + col2 * - col0 AS col1 FROM tab0
----
24
35
89

onlyif mysql # use DIV operator for integer division
query I rowsort label-1760
SELECT + col1 DIV - col0 - - col1 FROM tab2 AS cor0
----
17
27
59

skipif mysql # not compatible
query I rowsort label-1760
SELECT + col1 / - col0 - - col1 FROM tab2 AS cor0
----
17
27
59

query I rowsort
SELECT ALL - cor0.col1 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to ccaa5dd3388d9ee0fea676fa35299fe5

query I rowsort
SELECT DISTINCT + col2 + + col1 * col2 FROM tab2 AS cor0
----
1560
684
864

query I rowsort
SELECT + cor0.col0 * cor0.col1 - + cor0.col2 * + col1 AS col0 FROM tab0 AS cor0
----
-774
3298
637

query I rowsort
SELECT ALL + tab1.col0 + + col1 FROM tab1
----
29
74
93

query I rowsort
SELECT ALL - + cor0.col1 + col1 * + cor0.col2 * + col2 FROM tab2 AS cor0
----
22568
24531
39825

query I rowsort
SELECT ALL + col0 * col0 + - cor0.col2 FROM tab1 AS cor0
----
-45
4039
6304

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 - - col2 * col1 * - col1 col2 FROM tab0 AS cor0
----
-244092
-679131
-9444

query I rowsort
SELECT - - col2 + col2 + cor0.col1 FROM tab1 AS cor0
----
124
134
205

query I rowsort
SELECT ALL col1 * + col2 + col1 AS col2 FROM tab1 AS cor0
----
1261
1430
580

query I rowsort
SELECT ALL - col2 * - 33 AS col1 FROM tab1
----
1782
1881
3168

query I rowsort
SELECT DISTINCT 9 * - ( col2 ) FROM tab1
----
-486
-513
-864

query I rowsort
SELECT col0 + 69 AS col2 FROM tab1 AS cor0
----
133
149
72

query I rowsort
SELECT DISTINCT 57 AS col0 FROM tab0, tab1 AS cor0
----
57

query I rowsort
SELECT ALL col0 + - 34 FROM tab2 AS cor0
----
-27
44
45

query I rowsort
SELECT - 58 + col1 FROM tab0
----
28
33
39

query I rowsort
SELECT 78 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 2aff42d3e015022a738905090a20dfd4

query I rowsort
SELECT - ( + col0 + col2 * col1 ) FROM tab1
----
-1328
-1407
-634

query I rowsort
SELECT 4 + - col2 FROM tab0
----
-29
-78
3

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1779
SELECT DISTINCT CAST( - ( - col2 ) AS SIGNED ) FROM tab2
----
26
27
38

skipif mysql # not compatible
query I rowsort label-1779
SELECT DISTINCT CAST ( - ( - col2 ) AS INTEGER ) FROM tab2
----
26
27
38

query I rowsort
SELECT ALL ( + ( col2 ) * col1 ) AS col2 FROM tab1
----
1248
1404
570

query I rowsort
SELECT DISTINCT - - ( - col1 ) * col2 AS col1 FROM tab0 AS cor0
----
-2838
-7462
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 17 col0 FROM tab0 AS cor0
----
17
17
17

query I rowsort
SELECT DISTINCT + + col2 * col0 FROM tab2 cor0
----
189
2028
3002

query I rowsort
SELECT ALL 18 + col0 FROM tab0 AS cor0
----
107
42
53

query I rowsort
SELECT + col2 * cor0.col0 FROM tab1 cor0
----
162
3648
7680

query I rowsort
SELECT ALL - ( - col1 ) + col2 * col0 AS col2 FROM tab1 AS cor0
----
188
3658
7693

query I rowsort
SELECT ALL - - ( + col1 ) * - col1 FROM tab1 cor0
----
-100
-169
-676

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * - col2 * - col1 col2 FROM tab1 AS cor0
----
16224
36504
5700

onlyif mysql # use DIV operator for integer division
query I rowsort label-1789
SELECT ALL col0 * - col1 DIV cor0.col1 FROM tab1 AS cor0
----
-3
-64
-80

skipif mysql # not compatible
query I rowsort label-1789
SELECT ALL col0 * - col1 / cor0.col1 FROM tab1 AS cor0
----
-3
-64
-80

query I rowsort
SELECT DISTINCT + 61 + col0 AS col1 FROM tab1 AS cor0
----
125
141
64

query I rowsort
SELECT ALL - 60 + - col1 AS col0 FROM tab1 cor0
----
-70
-73
-86

query I rowsort
SELECT DISTINCT - + col2 + - cor0.col1 * col1 AS col2 FROM tab2 AS cor0
----
-327
-3507
-988

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 64 - + col2 * + col0 col0 FROM tab2 AS cor0
----
-125
-1964
-2938

query I rowsort
SELECT ALL 28 * col1 + - col0 * col1 FROM tab2 cor0
----
-2950
-867
651

query I rowsort
SELECT DISTINCT - 91 FROM tab0, tab1 AS cor0
----
-91

query I rowsort
SELECT + - 75 FROM tab0, tab0 AS cor0, tab2, tab2 AS cor1
----
81 values hashing to a0b2f2fd1ab7466175d5b39a8fa7be73

query I rowsort
SELECT ALL tab1.col0 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870

query I rowsort
SELECT ALL 89 * 62 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 7d78daadd9041087859b3c95d988ae40

query I rowsort
SELECT - tab0.col0 AS col1 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to c3ebf1695ca74567bdc173dbe15186a8

query I rowsort
SELECT DISTINCT 66 + + 17 FROM tab2, tab1 cor0
----
83

query I rowsort
SELECT ALL + 45 AS col1 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 14cec871edc37b5056cda01c8331fdca

query I rowsort
SELECT ALL - 1 FROM tab2, tab0 AS cor0
----
9 values hashing to 60fdd6924bb763d6aca00ba74935ef4b

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 + - ( col2 * + col0 ) col1 FROM tab1 cor0
----
-216
-3705
-7776

query I rowsort
SELECT - - col1 + 9 AS col1 FROM tab1 AS cor0
----
19
22
35

query I rowsort
SELECT ALL col0 + col0 * col1 AS col1 FROM tab0 AS cor0
----
2088
3430
8188

query I rowsort
SELECT 47 + 77 FROM tab2 AS cor0
----
124
124
124

query I rowsort
SELECT + - col0 * col0 + cor0.col2 AS col0 FROM tab0 AS cor0
----
-1224
-543
-7839

onlyif mysql # use DIV operator for integer division
query I rowsort label-1808
SELECT col0 DIV 89 + - col1 * ( 49 ) AS col1 FROM tab2 AS cor0
----
-1519
-2891
-833

skipif mysql # not compatible
query I rowsort label-1808
SELECT col0 / 89 + - col1 * ( 49 ) AS col1 FROM tab2 AS cor0
----
-1519
-2891
-833

query I rowsort
SELECT ( + cor0.col0 ) AS col1 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT - - 93 + - col1 AS col2 FROM tab1 cor0
----
67
80
83

query I rowsort
SELECT ( col0 ) * - col0 * col0 + - col1 AS col0 FROM tab1 AS cor0
----
-262154
-512013
-53

query I rowsort
SELECT col0 * col1 * - col1 + - col1 * col0 * col0 AS col2 FROM tab0
----
-1457820
-227040
-448140

query I rowsort
SELECT + + col2 + - col1 FROM tab0 cor0
----
-53
-9
-96

query I rowsort
SELECT - + ( - 7 ) + col1 AS col0 FROM tab2 AS cor0
----
24
38
66

query I rowsort
SELECT DISTINCT + 49 + col0 FROM tab2
----
127
128
56

query I rowsort
SELECT 49 + 10 * - col1 FROM tab1
----
-211
-51
-81

query I rowsort
SELECT + 54 + + 96 * - col1 - 1 AS col0 FROM tab0 AS cor0
----
-8203
-8683
-9259

query I rowsort
SELECT + 10 * col2 FROM tab1 AS cor0
----
540
570
960

query I rowsort
SELECT 59 * + 79 FROM tab2
----
4661
4661
4661

query I rowsort
SELECT DISTINCT - col0 + - ( col1 ) FROM tab2
----
-137
-38
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - col2 col0 FROM tab1 cor0
----
-1248
-1404
-570

query I rowsort
SELECT ALL + - 41 + 73 * col0 FROM tab0 AS cor0
----
1711
2514
6456

query I rowsort
SELECT 64 * + col1 - col0 AS col2 FROM tab0 AS cor0
----
5480
5735
6173

query I rowsort
SELECT DISTINCT + 16 * col0 FROM tab2 cor0
----
112
1248
1264

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 58 col2 FROM tab0, tab2 AS cor0
----
9 values hashing to ef6e63aeed2581a168f07646d258f666

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1826
SELECT CAST( NULL AS SIGNED ) * col0 + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1826
SELECT CAST ( NULL AS INTEGER ) * col0 + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - - 96 AS col2 FROM tab1 AS cor0
----
96
96
96

query I rowsort
SELECT ALL - 34 AS col1 FROM tab1 AS cor0
----
-34
-34
-34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 57 col0 FROM tab1 AS cor0
----
57

query I rowsort
SELECT ALL + col0 + col1 * - 94 * - cor0.col2 AS col1 FROM tab1 AS cor0
----
117392
131979
53644

query I rowsort
SELECT DISTINCT + col2 - + col2 * + 39 AS col2 FROM tab1 AS cor0
----
-2052
-2166
-3648

query I rowsort
SELECT DISTINCT - + 14 * col0 FROM tab2 AS cor0
----
-1092
-1106
-98

query I rowsort
SELECT ALL - 54 FROM tab2 cor0
----
-54
-54
-54

query I rowsort
SELECT + ( col0 ) * - 31 FROM tab1 AS cor0
----
-1984
-2480
-93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * 8 col1 FROM tab2
----
208
216
304

query I rowsort
SELECT DISTINCT - tab0.col1 - + col0 FROM tab0
----
-110
-132
-180

query I rowsort
SELECT + col1 * + cor0.col1 * 50 + - col2 FROM tab1 AS cor0
----
33746
4943
8354

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1838
SELECT - - col0 * - CAST( col0 AS SIGNED ) AS col1 FROM tab0 cor0
----
-1225
-576
-7921

skipif mysql # not compatible
query I rowsort label-1838
SELECT - - col0 * - CAST ( col0 AS INTEGER ) AS col1 FROM tab0 cor0
----
-1225
-576
-7921

query I rowsort
SELECT + cor0.col2 + col2 AS col1 FROM tab0 AS cor0
----
164
2
66

query I rowsort
SELECT col1 * - 81 AS col0 FROM tab1 cor0
----
-1053
-2106
-810

query I rowsort
SELECT - col2 * ( + 32 ) AS col0 FROM tab1 AS cor0
----
-1728
-1824
-3072

query I rowsort
SELECT DISTINCT col1 * - col0 * ( - 15 ) FROM tab0
----
121485
30960
50925

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1843
SELECT ALL col2 * CAST( col0 AS SIGNED ) FROM tab2 AS cor0
----
189
2028
3002

skipif mysql # not compatible
query I rowsort label-1843
SELECT ALL col2 * CAST ( col0 AS INTEGER ) FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT + + col2 + col0 * col2 FROM tab2 AS cor0
----
2054
216
3040

query I rowsort
SELECT DISTINCT - col0 * 55 + col0 AS col2 FROM tab0 AS cor0
----
-1296
-1890
-4806

query I rowsort
SELECT ALL + col1 + cor0.col0 * - 39 AS col0 FROM tab1 cor0
----
-2486
-3107
-91

query I rowsort
SELECT DISTINCT col0 * col1 + + col1 + col2 FROM tab2 cor0
----
1398
275
4687

query I rowsort
SELECT ALL - col0 * + ( - col1 ) FROM tab0
----
2064
3395
8099

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab0.col2 * + 84 col0 FROM tab0
----
2772
6888
84

query I rowsort
SELECT ALL - - ( tab2.col0 ) FROM tab2, tab2 AS cor0, tab1, tab2 AS cor1
----
81 values hashing to 05835f29dd9cd4fa16889de54dec3cb6

query I rowsort
SELECT - cor0.col0 * - cor0.col1 FROM tab0 AS cor0
----
2064
3395
8099

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab2, tab1 AS cor0, tab2 AS cor1
----
972 values hashing to 2507aa9f48c3db94de9fec065edf3731

query I rowsort
SELECT + 49 + col0 FROM tab2
----
127
128
56

query I rowsort
SELECT + 8 - - col0 FROM tab1
----
11
72
88

query I rowsort
SELECT DISTINCT - 69 * col1 + - ( 86 ) FROM tab1
----
-1880
-776
-983

onlyif mysql # use DIV operator for integer division
query I rowsort label-1856
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-1856
SELECT + col1 / col1 col2 FROM tab2
----
1
1
1

query I rowsort
SELECT - col2 * col2 + - col2 FROM tab0
----
-1122
-2
-6806

query I rowsort
SELECT - col1 * + col1 + - 37 AS col2 FROM tab2
----
-326
-3518
-998

query I rowsort
SELECT DISTINCT - col1 * col1 + + 21 + + tab1.col2 * tab1.col2 FROM tab1
----
2261
3170
9068

query I rowsort
SELECT col2 * col2 + col0 + col0 AS col0 FROM tab2
----
1602
743
832

onlyif mysql # use DIV operator for integer division
query I rowsort label-1861
SELECT - col1 DIV + tab0.col0 col1 FROM tab0
----
-1
-2
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1861
SELECT - col1 / + tab0.col0 col1 FROM tab0
----
-1
-2
-3

query I rowsort
SELECT tab0.col1 * tab0.col0 * - col2 AS col2 FROM tab0
----
-3395
-664118
-68112

query I rowsort
SELECT ALL - col0 * + col2 + - 24 - cor0.col1 * + 87 AS col1 FROM tab1 cor0
----
-2448
-4542
-8835

query I rowsort
SELECT + col1 + ( 17 ) FROM tab0 AS cor0
----
103
108
114

query I rowsort
SELECT DISTINCT - cor0.col1 + ( col0 * - cor0.col0 ) AS col1 FROM tab2 AS cor0
----
-6143
-6258
-80

query I rowsort
SELECT ALL col2 * + 86 FROM tab2 cor0
----
2236
2322
3268

query I rowsort
SELECT ALL - col2 + - 78 * - col2 + + col2 AS col2 FROM tab1 AS cor0
----
4212
4446
7488

query I rowsort
SELECT DISTINCT - col0 * - 7 - 43 FROM tab2 AS cor0
----
503
510
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * col1 col0 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT ALL - col1 * ( - col2 ) + col0 + + col1 * + ( col0 ) AS col2 FROM tab2 AS cor0
----
1061
2068
6214

query I rowsort
SELECT + col0 + + 31 AS col1 FROM tab2 AS cor0
----
109
110
38

query I rowsort
SELECT ALL + + col1 * ( col2 ) - col1 * - col1 FROM tab1 cor0
----
1417
2080
670

query I rowsort
SELECT ALL - + cor0.col1 * col1 + - ( col1 ) - + ( + cor0.col2 ) * col2 FROM tab0 AS cor0
----
-15096
-8571
-9507

onlyif mysql # use DIV operator for integer division
query I rowsort label-1874
SELECT ALL col0 DIV col1 + + col0 + - col1 FROM tab1 AS cor0
----
-23
60
73

skipif mysql # not compatible
query I rowsort label-1874
SELECT ALL col0 / col1 + + col0 + - col1 FROM tab1 AS cor0
----
-23
60
73

query I rowsort
SELECT + 64 FROM tab2, tab1 AS cor0 CROSS JOIN tab1, tab1 AS cor1
----
81 values hashing to 9bd8c7417aea89812d57dc6142310b3f

query I rowsort
SELECT - + cor1.col1 + - tab0.col2 FROM tab0, tab0 AS cor0, tab1, tab1 cor1
----
81 values hashing to 38f0aeec6623cb7e08c3b314d3207c21

query I rowsort
SELECT ( 5 ) FROM tab2
----
5
5
5

query I rowsort
SELECT 73 FROM tab0, tab2 cor0
----
9 values hashing to e5fbf5d129b181bacd6113bbc8732496

query I rowsort
SELECT DISTINCT 63 * col0 AS col2 FROM tab1 AS cor0
----
189
4032
5040

query I rowsort
SELECT ALL + 15 - col0 AS col1 FROM tab1 AS cor0
----
-49
-65
12

query I rowsort
SELECT ALL col0 * + ( + col2 ) + col2 AS col2 FROM tab2 cor0
----
2054
216
3040

query I rowsort
SELECT - 48 * - col1 FROM tab1 AS cor0
----
1248
480
624

query I rowsort
SELECT ALL 35 * - col2 + + col0 - + col0 * col0 * + col2 FROM tab2 AS cor0
----
-159016
-2261
-238409

query I rowsort
SELECT 95 * + col0 FROM tab2 AS cor0
----
665
7410
7505

query I rowsort
SELECT ALL + 85 * col1 * + col1 FROM tab1 cor0
----
14365
57460
8500

query I rowsort
SELECT - 2 * col2 AS col0 FROM tab1 AS cor0
----
-108
-114
-192

query I rowsort
SELECT DISTINCT + - ( - 44 ) * + col1 FROM tab1 AS cor0
----
1144
440
572

query I rowsort
SELECT DISTINCT cor0.col0 * col1 - - col0 FROM tab1 AS cor0
----
1120
704
81

query I rowsort
SELECT 41 + - col0 AS col2 FROM tab0 AS cor0
----
-48
17
6

onlyif mysql # use DIV operator for integer division
query I rowsort label-1890
SELECT ALL - col0 * - col2 + 8 DIV - col0 FROM tab2 cor0
----
188
2028
3002

skipif mysql # not compatible
query I rowsort label-1890
SELECT ALL - col0 * - col2 + 8 / - col0 FROM tab2 cor0
----
188
2028
3002

query I rowsort
SELECT DISTINCT - + 19 - + col0 FROM tab1 AS cor0
----
-22
-83
-99

query I rowsort
SELECT ALL + + 74 + col0 + col2 * 45 AS col0 FROM tab0 AS cor0
----
154
1583
3853

onlyif mysql # use DIV operator for integer division
query I rowsort label-1893
SELECT - + col2 DIV + col1 - col2 col2 FROM tab0 cor0
----
-1
-33
-82

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1893
SELECT - + col2 / + col1 - col2 col2 FROM tab0 cor0
----
-1
-33
-82

query I rowsort
SELECT ALL col0 + cor0.col1 AS col2 FROM tab2 cor0
----
137
38
96

query I rowsort
SELECT - 20 * + cor0.col2 AS col0 FROM tab1, tab2 AS cor0 CROSS JOIN tab0
----
27 values hashing to bdecf35b45c417f09dc5e7efa270e4d1

query I rowsort
SELECT ALL 38 * - col2 AS col1 FROM tab2 AS cor0
----
-1026
-1444
-988

query I rowsort
SELECT DISTINCT - cor0.col2 * col2 AS col2 FROM tab0 AS cor0
----
-1
-1089
-6724

query I rowsort
SELECT ALL + cor0.col0 + col2 * + 75 FROM tab1 AS cor0
----
4053
4339
7280

onlyif mysql # use DIV operator for integer division
query I rowsort label-1899
SELECT DISTINCT - col2 DIV 94 FROM tab1
----
-1
0

skipif mysql # not compatible
query I rowsort label-1899
SELECT DISTINCT - col2 / 94 FROM tab1
----
-1
0

query I rowsort
SELECT ALL + - col1 * cor0.col1 FROM tab0 AS cor0
----
-7396
-8281
-9409

query I rowsort
SELECT ALL - 4 FROM tab2 cor0
----
-4
-4
-4

query I rowsort
SELECT ALL - 33 * + cor0.col1 AS col1 FROM tab1 AS cor0
----
-330
-429
-858

query I rowsort
SELECT - col2 * col1 + 51 AS col0 FROM tab1 AS cor0
----
-1197
-1353
-519

onlyif mysql # use DIV operator for integer division
query I rowsort label-1904
SELECT + 69 DIV - col1 AS col0 FROM tab1 AS cor0
----
-2
-5
-6

skipif mysql # not compatible
query I rowsort label-1904
SELECT + 69 / - col1 AS col0 FROM tab1 AS cor0
----
-2
-5
-6

query I rowsort
SELECT ALL 34 * col2 FROM tab0 AS cor0
----
1122
2788
34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab0.col2 col0 FROM tab0, tab0 AS cor0
----
1
33
82

query I rowsort
SELECT col2 + + col0 * col2 * ( + col2 ) FROM tab1 AS cor0
----
207993
737376
8802

query I rowsort
SELECT 76 * + col2 AS col2 FROM tab0 AS cor0
----
2508
6232
76

onlyif mysql # use DIV operator for integer division
query I rowsort label-1909
SELECT - 96 DIV + col1 FROM tab0 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-1909
SELECT - 96 / + col1 FROM tab0 AS cor0
----
-1
-1
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1910
SELECT + ( + col1 ) * CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1910
SELECT + ( + col1 ) * CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col2 - - 46 FROM tab1 cor0
----
100
103
142

onlyif mysql # use DIV operator for integer division
query I rowsort label-1912
SELECT - + col2 * 45 + - 19 DIV - cor0.col0 - 24 FROM tab0 AS cor0
----
-1509
-3714
-69

skipif mysql # not compatible
query I rowsort label-1912
SELECT - + col2 * 45 + - 19 / - cor0.col0 - 24 FROM tab0 AS cor0
----
-1509
-3714
-69

query I rowsort
SELECT + col0 + col1 + col0 AS col1 FROM tab2 AS cor0
----
175
215
45

query I rowsort
SELECT DISTINCT - 69 AS col2 FROM tab1 AS cor0
----
-69

query I rowsort
SELECT ALL - - 0 + ( col0 ) AS col1 FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT DISTINCT + col1 * 10 * col2 FROM tab0 cor0
----
28380
74620
970

query I rowsort
SELECT ALL col0 * col1 + - col2 * col2 AS col1 FROM tab1
----
-2609
-2838
-8176

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 40 col2 FROM tab2 AS cor0
----
-40
-40
-40

query I rowsort
SELECT + ( + ( + col0 ) ) + 65 FROM tab2
----
143
144
72

query I rowsort
SELECT DISTINCT - cor0.col2 * + col0 AS col1 FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT - - col0 * + ( - 43 ) + + col0 AS col1 FROM tab2 AS cor0
----
-294
-3276
-3318

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + col1 ) + + col1 + + col2 col2 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT ALL - col1 * 77 FROM tab1 AS cor0
----
-1001
-2002
-770

query I rowsort
SELECT + col2 * - col1 * 55 AS col0 FROM tab0
----
-156090
-410410
-5335

onlyif mysql # use DIV operator for integer division
query I rowsort label-1925
SELECT 74 DIV 94 + - col0 AS col1 FROM tab2
----
-7
-78
-79

skipif mysql # not compatible
query I rowsort label-1925
SELECT 74 / 94 + - col0 AS col1 FROM tab2
----
-7
-78
-79

onlyif mysql # use DIV operator for integer division
query I rowsort label-1926
SELECT 41 DIV + 57 + col0 DIV + col0 AS col2 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-1926
SELECT 41 / + 57 + col0 / + col0 AS col2 FROM tab2
----
1
1
1

query I rowsort
SELECT + col2 * col2 * + col1 AS col1 FROM tab2
----
22599
24548
39884

query I rowsort
SELECT ALL + col2 + col1 AS col0 FROM tab2 cor0
----
55
58
85

query I rowsort
SELECT DISTINCT - col2 + col2 + cor0.col2 FROM tab2 AS cor0
----
26
27
38

query I rowsort
SELECT - ( + cor0.col2 ) - + cor0.col2 AS col2 FROM tab1 AS cor0
----
-108
-114
-192

query I rowsort
SELECT - col2 * - col1 - 13 FROM tab0 AS cor0
----
2825
7449
84

query I rowsort
SELECT ALL 30 * col2 FROM tab1
----
1620
1710
2880

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1933
SELECT ALL + CAST( NULL AS SIGNED ) FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-1933
SELECT ALL + CAST ( NULL AS INTEGER ) FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT + 18 * + col1 FROM tab1 cor0
----
180
234
468

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( tab1.col2 ) col0 FROM tab1
----
54
57
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-1936
SELECT col2 + tab0.col0 DIV 14 AS col0 FROM tab0
----
3
34
88

skipif mysql # not compatible
query I rowsort label-1936
SELECT col2 + tab0.col0 / 14 AS col0 FROM tab0
----
3
34
88

query I rowsort
SELECT col2 * col2 + - col2 * - col1 FROM tab2 AS cor0
----
1566
2090
2210

query I rowsort
SELECT DISTINCT col2 + 37 AS col1 FROM tab2 AS cor0
----
63
64
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + ( + col2 + col2 ) col1 FROM tab1 cor0
----
124
134
205

query I rowsort
SELECT DISTINCT + + col1 * + ( col0 ) AS col1 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT ALL tab1.col2 * - 53 + col1 AS col2 FROM tab1
----
-2836
-3011
-5075

onlyif mysql # use DIV operator for integer division
query I rowsort label-1942
SELECT - - col0 DIV 86 - col1 FROM tab2 AS cor0
----
-17
-31
-59

skipif mysql # not compatible
query I rowsort label-1942
SELECT - - col0 / 86 - col1 FROM tab2 AS cor0
----
-17
-31
-59

query I rowsort
SELECT ALL + col2 - + ( - col1 ) * + col1 AS col1 FROM tab1 AS cor0
----
157
265
730

query I rowsort
SELECT - col0 * 17 + + col2 FROM tab2 AS cor0
----
-1300
-1305
-92

query I rowsort
SELECT DISTINCT + - col0 + col1 AS col1 FROM tab2 AS cor0
----
-19
-62
24

query I rowsort
SELECT ALL + + col1 + col0 + col1 * col1 FROM tab0 AS cor0
----
7506
8461
9541

query I rowsort
SELECT - col0 + col0 * ( col0 + - ( + 37 ) ) * col1 AS col2 FROM tab1 AS cor0
----
-2655
17216
44640

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1948
SELECT DISTINCT - col0 * CAST( NULL AS SIGNED ) * + col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1948
SELECT DISTINCT - col0 * CAST ( NULL AS INTEGER ) * + col0 FROM tab1 AS cor0
----
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1949
SELECT - col2 + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1949
SELECT - col2 + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-1950
SELECT ALL + + cor0.col0 DIV + 84 AS col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1950
SELECT ALL + + cor0.col0 / + 84 AS col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT cor0.col1 + + col1 * + 95 AS col2 FROM tab1 AS cor0
----
1248
2496
960

onlyif mysql # use DIV operator for integer division
query I rowsort label-1952
SELECT DISTINCT - col2 * 12 + - col2 DIV - col1 FROM tab0 AS cor0
----
-12
-396
-984

skipif mysql # not compatible
query I rowsort label-1952
SELECT DISTINCT - col2 * 12 + - col2 / - col1 FROM tab0 AS cor0
----
-12
-396
-984

query IIIIIIIIIIII rowsort
SELECT * FROM tab0, tab2 AS cor0 CROSS JOIN tab1, tab2 cor1
----
972 values hashing to bcf430f79386b43bc4077271fcd15cf0

query I rowsort
SELECT - cor0.col1 * + col2 AS col0 FROM tab1 cor0
----
-1248
-1404
-570

query I rowsort
SELECT + - cor0.col2 * ( + col1 ) AS col1 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT ALL + - col1 + cor0.col1 * - cor0.col1 FROM tab0 cor0
----
-7482
-8372
-9506

query I rowsort
SELECT + 70 + col1 AS col2 FROM tab1 AS cor0
----
80
83
96

query I rowsort
SELECT - - col0 * 81 AS col2 FROM tab2 AS cor0
----
567
6318
6399

query I rowsort
SELECT - col2 + + col0 * + col2 AS col2 FROM tab0 AS cor0
----
34
7216
759

query I rowsort
SELECT DISTINCT - 54 AS col2 FROM tab0 cor0
----
-54

query I rowsort
SELECT 46 AS col1 FROM tab2, tab0 AS cor0, tab0, tab1 AS cor1
----
81 values hashing to 086e8f56201fbf4c0ce74087e710811d

query I rowsort
SELECT DISTINCT - 16 AS col0 FROM tab2, tab0 cor0
----
-16

query I rowsort
SELECT DISTINCT - col2 + - cor0.col0 * cor0.col2 FROM tab2 AS cor0
----
-2054
-216
-3040

query I rowsort
SELECT DISTINCT + 0 + - 44 FROM tab1 AS cor0
----
-44

onlyif mysql # use DIV operator for integer division
query I rowsort label-1965
SELECT ALL col0 DIV 2 + col0 FROM tab0 AS cor0
----
133
36
52

skipif mysql # not compatible
query I rowsort label-1965
SELECT ALL col0 / 2 + col0 FROM tab0 AS cor0
----
133
36
52

query I rowsort
SELECT DISTINCT - ( col2 ) + - col0 * + 32 + + col0 FROM tab0 AS cor0
----
-1086
-2841
-777

query I rowsort
SELECT DISTINCT + + cor0.col1 * col2 FROM tab0 cor0
----
2838
7462
97

query I rowsort
SELECT ALL + ( col0 ) * cor0.col1 AS col2 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT ALL + col1 + + 53 AS col1 FROM tab2 AS cor0
----
112
70
84

query I rowsort
SELECT 48 * col1 + col1 FROM tab2 AS cor0
----
1519
2891
833

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1971
SELECT DISTINCT CAST( NULL AS DECIMAL ) * 38 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1971
SELECT DISTINCT CAST ( NULL AS REAL ) * 38 FROM tab0 cor0
----
NULL

query I rowsort
SELECT ALL + + col0 * - col2 + cor0.col1 FROM tab0 AS cor0
----
-706
-7207
62

query I rowsort
SELECT - tab2.col1 - + 80 AS col1 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to b9f26dd9b6c354984042db354ec6fc04

query I rowsort
SELECT ALL col1 * tab0.col0 * 87 FROM tab0
----
179568
295365
704613

query I rowsort
SELECT ALL + col2 * 30 + - tab0.col1 FROM tab0
----
-67
2369
904

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - cor0.col0 + - col1 - - col0 col1 FROM tab0 AS cor0
----
-86
-91
-97

query I rowsort
SELECT DISTINCT - cor0.col1 + + col2 * col1 + col2 * 69 FROM tab2 AS cor0
----
2669
3251
3269

query I rowsort
SELECT + 88 * + col2 * - col1 AS col1 FROM tab0 AS cor0
----
-249744
-656656
-8536

query I rowsort
SELECT col2 * cor0.col1 * - col1 AS col2 FROM tab2 cor0
----
-10982
-25947
-90506

query I rowsort
SELECT DISTINCT cor0.col1 + + 2 AS col2 FROM tab2 AS cor0
----
19
33
61

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1981
SELECT - ( col2 ) - - CAST( + col1 AS SIGNED ) * tab2.col0 AS col0 FROM tab2
----
1305
190
4576

skipif mysql # not compatible
query I rowsort label-1981
SELECT - ( col2 ) - - CAST ( + col1 AS INTEGER ) * tab2.col0 AS col0 FROM tab2
----
1305
190
4576

query I rowsort
SELECT 48 + col1 AS col2 FROM tab1
----
58
61
74

query I rowsort
SELECT + col1 + col1 * + ( + col0 ) AS col0 FROM tab1 AS cor0
----
104
1053
650

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 41 col2 FROM tab2 AS cor0
----
41
41
41

query I rowsort
SELECT + col2 * col2 + - col1 FROM tab0 AS cor0
----
-96
1003
6633

query I rowsort
SELECT + ( + col2 * col0 ) + col0 AS col2 FROM tab1
----
165
3712
7760

query I rowsort
SELECT DISTINCT cor0.col1 + ( + col2 ) FROM tab0 AS cor0
----
119
173
98

query I rowsort
SELECT ALL + col2 * 18 + cor0.col2 * - col1 FROM tab2 AS cor0
----
-1066
-351
38

query I rowsort
SELECT ALL col1 + - 44 AS col1 FROM tab0 cor0
----
42
47
53

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab0 AS cor0, tab1 cor1, tab1 AS cor2
----
972 values hashing to 0be13143d898cc667fe1a2dd93b34703

query I rowsort
SELECT - - col0 * - 27 + col0 * + col2 AS col1 FROM tab2 AS cor0
----
-78
0
869

query I rowsort
SELECT DISTINCT - + cor0.col0 + 13 * + col2 AS col2 FROM tab0 AS cor0
----
-22
405
977

query I rowsort
SELECT ALL col0 + 51 * - 21 AS col1 FROM tab0 AS cor0
----
-1036
-1047
-982

query I rowsort
SELECT ALL - col1 * ( - cor0.col0 ) + - col1 * 4 + + 7 AS col2 FROM tab1 AS cor0
----
-19
607
995

query I rowsort
SELECT col0 + - col0 * - cor0.col0 FROM tab2 AS cor0
----
56
6162
6320

query I rowsort
SELECT - - cor2.col2 - ( - 34 + cor0.col2 ) FROM tab0 AS cor0 CROSS JOIN tab0, tab2 AS cor1, tab1, tab2 cor2
----
243 values hashing to f863176ace52224d8beaf6b73bb46816

query I rowsort
SELECT + 40 FROM tab1, tab1 AS cor0
----
9 values hashing to b1e8ffeef334b4a2b01b2f91e649c2d3

query I rowsort
SELECT ALL - - cor0.col0 + - 31 AS col2 FROM tab0 AS cor0
----
-7
4
58

onlyif mysql # use DIV operator for integer division
query I rowsort label-1999
SELECT ALL col0 * col1 DIV cor0.col0 - col2 FROM tab0 cor0
----
53
9
96

skipif mysql # not compatible
query I rowsort label-1999
SELECT ALL col0 * col1 / cor0.col0 - col2 FROM tab0 cor0
----
53
9
96

query I rowsort
SELECT DISTINCT - col0 * + 7 AS col2 FROM tab1 AS cor0
----
-21
-448
-560

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col1 + col0 col2 FROM tab0 AS cor0
----
-2
-62
-62

query I rowsort
SELECT ALL col0 * 79 * col1 FROM tab0 AS cor0
----
163056
268205
639821

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + 9 col1 FROM tab1 AS cor0
----
19
22
35

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2004
SELECT DISTINCT col2 * + CAST( NULL AS SIGNED ) AS col0 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2004
SELECT DISTINCT col2 * + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 cor0
----
NULL

query I rowsort
SELECT ALL - col2 * col2 + - col0 AS col2 FROM tab0 AS cor0
----
-1113
-36
-6813

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab1 cor0 CROSS JOIN tab2, tab0 cor1, tab1, tab2 AS cor2
----
3645 values hashing to 9aea36b1adc82580fae09bf05c24fd77

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2007
SELECT - + CAST( NULL AS SIGNED ) * - 79 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2007
SELECT - + CAST ( NULL AS INTEGER ) * - 79 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + - col2 * + col1 + - 3 FROM tab2 AS cor0
----
-1537
-649
-840

query I rowsort
SELECT ALL + + col2 + col2 * col0 AS col2 FROM tab0 AS cor0
----
36
7380
825

query I rowsort
SELECT DISTINCT + - col0 + + cor0.col2 * 75 AS col2 FROM tab0 AS cor0
----
2451
40
6061

query I rowsort
SELECT col0 * - col1 * col2 - - cor0.col0 AS col2 FROM tab1 cor0
----
-36416
-4209
-99760

query I rowsort
SELECT 77 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 051bf10c50e061d74ad0a4d205a1c622

query I rowsort
SELECT + col1 * + col2 - + col2 FROM tab0 AS cor0
----
2805
7380
96

query I rowsort
SELECT DISTINCT + + cor0.col1 + + cor0.col1 AS col2 FROM tab0 AS cor0
----
172
182
194

query I rowsort
SELECT - cor0.col1 * + col2 * - col1 FROM tab2 AS cor0
----
10982
25947
90506

query I rowsort
SELECT + 91 * + tab1.col1 FROM tab1
----
1183
2366
910

query I rowsort
SELECT - cor0.col1 + 78 AS col2 FROM tab0 AS cor0
----
-13
-19
-8

onlyif mysql # use DIV operator for integer division
query I rowsort label-2018
SELECT col1 + - col0 DIV col2 + + col1 FROM tab1 AS cor0
----
19
26
52

skipif mysql # not compatible
query I rowsort label-2018
SELECT col1 + - col0 / col2 + + col1 FROM tab1 AS cor0
----
19
26
52

query I rowsort
SELECT col1 * + 19 + + 86 + + col2 FROM tab0 AS cor0
----
1753
1897
1930

query I rowsort
SELECT DISTINCT 80 + col1 FROM tab2
----
111
139
97

query I rowsort
SELECT ALL 73 * col2 FROM tab1
----
3942
4161
7008

query I rowsort
SELECT + ( col1 ) + + ( col1 ) * col0 FROM tab1
----
104
1053
650

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 - tab1.col2 col1 FROM tab1
----
-28
-47
-83

query I rowsort
SELECT - col1 * - col1 + + col0 FROM tab2
----
3559
368
968

query I rowsort
SELECT + col0 + col0 - - col2 FROM tab2
----
182
196
41

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - col0 * + col1 col2 FROM tab2
----
-22831
-271518
-6727

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col0 * + col1 NOT BETWEEN ( col0 * + col0 * col2 ) AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * col1 col0 FROM tab2 AS cor0
----
-289
-3481
-961

query I rowsort
SELECT - cor0.col1 - col2 AS col1 FROM tab1 AS cor0
----
-109
-67
-80

query I rowsort
SELECT DISTINCT col2 + - col2 * col1 AS col0 FROM tab0 AS cor0 WHERE col0 > NULL
----

query I rowsort
SELECT ALL - tab1.col2 * col0 AS col2 FROM tab1
----
-162
-3648
-7680

query I rowsort
SELECT DISTINCT 20 * + col0 FROM tab0
----
1780
480
700

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * col1 col1 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT DISTINCT col2 * + col1 * + cor0.col1 FROM tab2 AS cor0
----
10982
25947
90506

onlyif mysql # use DIV operator for integer division
query I rowsort label-2035
SELECT DISTINCT col2 DIV - tab0.col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-2035
SELECT DISTINCT col2 / - tab0.col1 FROM tab0
----
0

query I rowsort
SELECT - cor0.col1 - + 95 FROM tab0, tab1 cor0, tab0 AS cor1
----
27 values hashing to d6840d4ac93bb9b7a745c135b97dfdae

query I rowsort
SELECT col2 * cor0.col2 * - 49 FROM tab1 AS cor0
----
-142884
-159201
-451584

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( col1 ) col1 FROM tab2 cor0
----
17
31
59

query I rowsort
SELECT ALL - + col0 * - col2 * col2 FROM tab1 AS cor0
----
207936
737280
8748

query I rowsort
SELECT ALL ( col2 ) * - cor0.col0 + - col1 FROM tab1 AS cor0
----
-188
-3658
-7693

onlyif mysql # use DIV operator for integer division
query I rowsort label-2041
SELECT DISTINCT col0 + - col2 DIV - col0 AS col2 FROM tab0
----
25
35
89

skipif mysql # not compatible
query I rowsort label-2041
SELECT DISTINCT col0 + - col2 / - col0 AS col2 FROM tab0
----
25
35
89

query I rowsort
SELECT DISTINCT + col0 * col2 * col0 + col2 * col0 FROM tab2
----
1512
160212
240160

query I rowsort
SELECT + col1 AS col2 FROM tab1 WHERE NOT NULL NOT IN ( + col0 )
----

query I rowsort
SELECT col2 * col2 + - col0 + col0 FROM tab0
----
1
1089
6724

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NULL ) IN ( - col2 * - col2 )
----

query I rowsort
SELECT - col1 * col1 + col0 * col1 AS col1 FROM tab2
----
-744
1054
1121

onlyif mysql # use DIV operator for integer division
query I rowsort label-2047
SELECT - col2 DIV - col0 FROM tab1 WHERE col0 + col0 * - col1 NOT BETWEEN col1 * col2 AND ( col2 )
----
0
1
18

skipif mysql # not compatible
query I rowsort label-2047
SELECT - col2 / - col0 FROM tab1 WHERE col0 + col0 * - col1 NOT BETWEEN col1 * col2 AND ( col2 )
----
0
1
18

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 col0 FROM tab0 WHERE NULL NOT BETWEEN ( NULL ) AND - col1 * + col1
----

query I rowsort
SELECT DISTINCT col2 * col0 * col0 FROM tab2
----
1323
158184
237158

query I rowsort
SELECT DISTINCT + 98 + + cor0.col2 AS col2 FROM tab0 AS cor0
----
131
180
99

query III rowsort
SELECT * FROM tab2 WHERE NULL BETWEEN NULL AND - col1 * + col0
----

query I rowsort
SELECT ALL 47 FROM tab0, tab2, tab2 AS cor0
----
27 values hashing to 3f991632e9c7c5142e1d80857cd10a2d

onlyif mysql # use DIV operator for integer division
query I rowsort label-2053
SELECT + col1 DIV cor0.col1 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2053
SELECT + col1 / cor0.col1 FROM tab1 AS cor0
----
1
1
1

query I rowsort
SELECT DISTINCT - + col0 * + col1 AS col1 FROM tab2 cor0
----
-1343
-217
-4602

query I rowsort
SELECT tab0.col1 * col0 + + 29 AS col0 FROM tab0
----
2093
3424
8128

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2056
SELECT + col0 + + col0 * CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2056
SELECT + col0 + + col0 * CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col0 AS col1 FROM tab1 WHERE NOT ( - col2 ) IN ( col2 )
----
3
64
80

query I rowsort
SELECT + col1 + tab1.col1 * col1 AS col0 FROM tab1
----
110
182
702

query I rowsort
SELECT DISTINCT - col1 + col2 AS col2 FROM tab0
----
-53
-9
-96

query I rowsort
SELECT ALL + col1 AS col2 FROM tab0 WHERE - col2 BETWEEN ( col2 / - col1 ) AND col1 * + col2
----

query I rowsort
SELECT - tab2.col2 * col1 + col1 + col1 FROM tab2
----
-1416
-612
-775

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 - col0 col1 FROM tab1
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + - col2 - col0 col2 FROM tab1
----
-54
-57
-96

query I rowsort
SELECT DISTINCT + col2 + col2 + col1 FROM tab2
----
111
85
93

query I rowsort
SELECT + col0 * col2 * + col2 AS col0 FROM tab0
----
26136
35
598436

query I rowsort
SELECT DISTINCT + col1 AS col0 FROM tab0 WHERE NOT NULL NOT IN ( col1 + col1 )
----

query I rowsort
SELECT + col2 * col2 + + col2 FROM tab1
----
2970
3306
9312

query I rowsort
SELECT + col0 * - col2 * col0 + - tab1.col1 + + col2 AS col2 FROM tab1
----
-233425
-458
-614317

query III rowsort
SELECT * FROM tab1 WHERE ( NULL ) IN ( - col0 )
----

query I rowsort
SELECT ALL - col0 + - tab0.col2 AS col1 FROM tab0
----
-171
-36
-57

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL NOT IN ( + col0 )
----

query I rowsort
SELECT - col2 * - tab1.col1 + - col0 AS col1 FROM tab1
----
1168
1401
506

query I rowsort
SELECT DISTINCT + col1 + col2 * - col2 AS col1 FROM tab0
----
-1003
-6633
96

query I rowsort
SELECT ALL + tab2.col1 + - col2 AS col0 FROM tab2
----
-21
33
4

query I rowsort
SELECT DISTINCT col1 * tab2.col0 + + col2 FROM tab2
----
1381
244
4628

query I rowsort
SELECT ALL col0 - tab0.col1 AS col0 FROM tab0
----
-2
-62
-62

query I rowsort
SELECT DISTINCT col2 * - tab1.col1 + - col1 * - col2 AS col2 FROM tab1
----
0

query I rowsort
SELECT + tab1.col2 * - col2 + + col2 FROM tab1
----
-2862
-3192
-9120

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 29 col1 FROM tab2 AS cor0
----
29
29
29

query I rowsort
SELECT DISTINCT - + ( + cor0.col1 ) FROM tab0 AS cor0
----
-86
-91
-97

query I rowsort
SELECT ALL + 70 AS col0 FROM tab2
----
70
70
70

query I rowsort
SELECT DISTINCT ( col0 ) * ( - col2 ) * - col1 FROM tab0
----
3395
664118
68112

query I rowsort
SELECT + 72 * + col1 FROM tab2 cor0
----
1224
2232
4248

query I rowsort
SELECT ALL + 39 * - col2 AS col2 FROM tab1 AS cor0
----
-2106
-2223
-3744

query I rowsort
SELECT + - col1 * + 40 FROM tab0 AS cor0
----
-3440
-3640
-3880

query I rowsort
SELECT DISTINCT + col0 * col1 + + 69 AS col0 FROM tab0 AS cor0
----
2133
3464
8168

query I rowsort
SELECT ALL col0 + ( col0 ) FROM tab2 AS cor0
----
14
156
158

query I rowsort
SELECT DISTINCT col1 * + cor0.col2 - + col0 AS col1 FROM tab2 cor0
----
1456
567
830

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2089
SELECT ALL - ( - col1 ) * + CAST( - col0 AS SIGNED ) FROM tab2
----
-1343
-217
-4602

skipif mysql # not compatible
query I rowsort label-2089
SELECT ALL - ( - col1 ) * + CAST ( - col0 AS INTEGER ) FROM tab2
----
-1343
-217
-4602

query I rowsort
SELECT DISTINCT + tab2.col1 * tab2.col2 AS col2 FROM tab2
----
1534
646
837

query I rowsort
SELECT ALL - ( - col2 ) * col0 + - col2 FROM tab2 AS cor0
----
162
2002
2964

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * cor0.col1 col2 FROM tab0 AS cor0
----
-2838
-7462
-97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2093
SELECT ALL + + CAST( + col1 AS SIGNED ) * col1 col0 FROM tab1 AS cor0
----
100
169
676

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2093
SELECT ALL + + CAST ( + col1 AS INTEGER ) * col1 col0 FROM tab1 AS cor0
----
100
169
676

query I rowsort
SELECT 69 + + col2 FROM tab1 AS cor0
----
123
126
165

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2095
SELECT ALL - - CAST( NULL AS SIGNED ) + - col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2095
SELECT ALL - - CAST ( NULL AS INTEGER ) + - col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 80 col2 FROM tab1 AS cor0
----
80
80
80

query I rowsort
SELECT DISTINCT + 84 + col1 AS col0 FROM tab1 AS cor0
----
110
94
97

query I rowsort
SELECT + 17 + col0 + - cor0.col0 FROM tab1 AS cor0
----
17
17
17

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 * 63 col1 FROM tab2 AS cor0
----
-1638
-1701
-2394

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2100
SELECT ALL - - CAST( 87 AS SIGNED ) * col0 FROM tab1 cor0
----
261
5568
6960

skipif mysql # not compatible
query I rowsort label-2100
SELECT ALL - - CAST ( 87 AS INTEGER ) * col0 FROM tab1 cor0
----
261
5568
6960

query I rowsort
SELECT + col2 + 86 * col2 FROM tab0 AS cor0
----
2871
7134
87

query I rowsort
SELECT DISTINCT - + ( - 3 ) + col0 FROM tab1 AS cor0
----
6
67
83

onlyif mysql # use DIV operator for integer division
query I rowsort label-2103
SELECT + col1 DIV 56 AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2103
SELECT + col1 / 56 AS col2 FROM tab1
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-2104
SELECT - col1 DIV 60 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2104
SELECT - col1 / 60 FROM tab1
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-2105
SELECT - 86 DIV + ( + col0 ) - - col1 FROM tab0 AS cor0
----
83
91
95

skipif mysql # not compatible
query I rowsort label-2105
SELECT - 86 / + ( + col0 ) - - col1 FROM tab0 AS cor0
----
83
91
95

query I rowsort
SELECT DISTINCT col2 - - ( - col2 ) FROM tab2
----
0

query I rowsort
SELECT ALL col0 * col2 + tab2.col0 + col2 AS col2 FROM tab2
----
2132
223
3119

onlyif mysql # use DIV operator for integer division
query I rowsort label-2108
SELECT col2 DIV + tab1.col0 + tab1.col0 AS col2 FROM tab1
----
21
64
81

skipif mysql # not compatible
query I rowsort label-2108
SELECT col2 / + tab1.col0 + tab1.col0 AS col2 FROM tab1
----
21
64
81

query I rowsort
SELECT DISTINCT col0 * col2 + col0 FROM tab2 AS cor0
----
196
2106
3081

query I rowsort
SELECT + col1 + 25 FROM tab1 AS cor0
----
35
38
51

onlyif mysql # use DIV operator for integer division
query I rowsort label-2111
SELECT ALL col2 DIV 38 FROM tab0 AS cor0
----
0
0
2

skipif mysql # not compatible
query I rowsort label-2111
SELECT ALL col2 / 38 FROM tab0 AS cor0
----
0
0
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + col1 col0 FROM tab2 AS cor0
----
118
34
62

query I rowsort
SELECT DISTINCT + + ( + col0 ) * + cor0.col2 FROM tab2 cor0
----
189
2028
3002

onlyif mysql # use DIV operator for integer division
query I rowsort label-2114
SELECT + col0 DIV col1 + - col2 FROM tab1
----
-51
-54
-90

skipif mysql # not compatible
query I rowsort label-2114
SELECT + col0 / col1 + - col2 FROM tab1
----
-51
-54
-90

query IIIIIIIII rowsort
SELECT * FROM tab2, tab0 AS cor0 CROSS JOIN tab2 cor1
----
243 values hashing to 2248b8c3b6efacb4e8fc6d9f81b7df8b

query I rowsort
SELECT + cor0.col1 * + col1 + + col0 FROM tab1 AS cor0
----
164
249
679

query I rowsort
SELECT col0 * + col0 * - col0 + - col1 AS col0 FROM tab0 AS cor0
----
-13910
-42972
-705060

query I rowsort
SELECT DISTINCT col2 * + col0 + - tab0.col2 FROM tab0
----
34
7216
759

query I rowsort
SELECT - col0 + 3 + - col1 AS col2 FROM tab2
----
-134
-35
-93

query I rowsort
SELECT DISTINCT ( tab0.col1 ) * tab0.col2 + col2 AS col2 FROM tab0
----
2871
7544
98

query I rowsort
SELECT - ( 81 ) * - col2 + col0 + + col0 AS col1 FROM tab1
----
4380
4745
7936

onlyif mysql # use DIV operator for integer division
query I rowsort label-2122
SELECT col1 DIV + cor0.col0 + - col0 * cor0.col0 FROM tab0 AS cor0
----
-1223
-573
-7920

skipif mysql # not compatible
query I rowsort label-2122
SELECT col1 / + cor0.col0 + - col0 * cor0.col0 FROM tab0 AS cor0
----
-1223
-573
-7920

query I rowsort
SELECT + - tab2.col2 AS col0 FROM tab2, tab0, tab0 AS cor0
----
27 values hashing to f9d4bb8677db7b98c7ed89d06e6e8cd6

query I rowsort
SELECT 11 * + col0 AS col2 FROM tab0
----
264
385
979

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( col1 ) col0 FROM tab0
----
86
91
97

query I rowsort
SELECT ALL + ( col1 ) AS col0 FROM tab0
----
86
91
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-2127
SELECT DISTINCT 43 DIV col1 AS col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-2127
SELECT DISTINCT 43 / col1 AS col0 FROM tab0
----
0

query I rowsort
SELECT - 63 * + col0 + - col0 AS col2 FROM tab0 AS cor0
----
-1536
-2240
-5696

query I rowsort
SELECT col1 + col0 * + col2 AS col2 FROM tab1 AS cor0
----
188
3658
7693

query I rowsort
SELECT + - ( - col0 ) AS col1 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT + 97 * col2 + + col1 FROM tab1 AS cor0
----
5264
5539
9325

query I rowsort
SELECT 6 * col1 FROM tab1 AS cor0
----
156
60
78

query I rowsort
SELECT ALL - 12 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to e698dd57d3aac30af14ce35da434bb45

query I rowsort
SELECT + col0 * - 36 * 23 FROM tab0 AS cor0
----
-19872
-28980
-73692

onlyif mysql # use DIV operator for integer division
query I rowsort label-2135
SELECT ALL col0 DIV + 47 + + cor0.col2 * + cor0.col0 FROM tab0 AS cor0
----
35
7299
792

skipif mysql # not compatible
query I rowsort label-2135
SELECT ALL col0 / + 47 + + cor0.col2 * + cor0.col0 FROM tab0 AS cor0
----
35
7299
792

query I rowsort
SELECT DISTINCT + ( cor0.col2 ) * - tab2.col2 AS col1 FROM tab2, tab2 AS cor0
----
-1026
-1444
-676
-702
-729
-988

query I rowsort
SELECT + col0 * cor0.col2 AS col1 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT DISTINCT + + col1 * - 72 AS col2 FROM tab0 AS cor0
----
-6192
-6552
-6984

query I rowsort
SELECT DISTINCT + col0 + 91 * - col2 AS col2 FROM tab0 AS cor0
----
-2979
-56
-7373

query I rowsort
SELECT DISTINCT - cor0.col0 - + 92 AS col0 FROM tab2 cor0
----
-170
-171
-99

query I rowsort
SELECT ALL cor0.col1 * + cor0.col2 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to b2e5b025b1c725661248b0f29aaef908

query I rowsort
SELECT - col2 * col1 - + col1 FROM tab0 AS cor0
----
-194
-2924
-7553

query I rowsort
SELECT - col2 - ( col0 ) FROM tab0 AS cor0
----
-171
-36
-57

query I rowsort
SELECT - - 26 - col0 FROM tab0 AS cor0
----
-63
-9
2

query I rowsort
SELECT + ( + 84 ) FROM tab2, tab1 AS cor0
----
9 values hashing to cadd876c26338fc58b9297e74fc324d8

query I rowsort
SELECT + cor0.col1 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d

query I rowsort
SELECT - col0 * - col0 * - col0 AS col2 FROM tab2 AS cor0
----
-343
-474552
-493039

query I rowsort
SELECT cor0.col0 * + ( 76 ) + col0 AS col2 FROM tab2 AS cor0
----
539
6006
6083

query I rowsort
SELECT + col0 + + 3 * + 78 AS col1 FROM tab2
----
241
312
313

query I rowsort
SELECT DISTINCT col1 * col2 - + col0 AS col0 FROM tab0
----
2814
62
7373

onlyif mysql # use DIV operator for integer division
query I rowsort label-2151
SELECT ALL - col2 - col1 DIV col1 FROM tab0
----
-2
-34
-83

skipif mysql # not compatible
query I rowsort label-2151
SELECT ALL - col2 - col1 / col1 FROM tab0
----
-2
-34
-83

query I rowsort
SELECT DISTINCT + ( - col1 ) + col1 * - 38 AS col1 FROM tab0 AS cor0
----
-3354
-3549
-3783

query I rowsort
SELECT ALL - ( col1 ) + + col0 FROM tab2 AS cor0
----
-24
19
62

query I rowsort
SELECT ALL - + 42 + cor0.col2 FROM tab1 AS cor0
----
12
15
54

query I rowsort
SELECT DISTINCT col1 + + col2 + + col0 FROM tab0 AS cor0
----
133
143
262

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor1.col1 * cor1.col1 col2 FROM tab0, tab2 cor0, tab0 AS cor1
----
27 values hashing to 51855bb230a34802a628192d3e332a79

query I rowsort
SELECT - ( ( col0 ) ) FROM tab1 AS cor0
----
-3
-64
-80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 78 col1 FROM tab1
----
78
78
78

query I rowsort
SELECT ALL - tab1.col1 * tab1.col0 AS col1 FROM tab1
----
-1040
-640
-78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - cor0.col1 + - col0 col2 FROM tab2 AS cor0
----
-19
-62
24

query I rowsort
SELECT + col0 * + ( + col2 + col1 * col1 ) FROM tab0 cor0
----
178296
329350
744307

query I rowsort
SELECT - col0 + ( col1 ) AS col0 FROM tab1 AS cor0
----
-54
-67
23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 * 33 col1 FROM tab0 cor0
----
1155
2937
792

query I rowsort
SELECT + col1 * - 95 AS col2 FROM tab2 AS cor0
----
-1615
-2945
-5605

query I rowsort
SELECT - col1 + + 19 AS col2 FROM tab2 AS cor0
----
-12
-40
2

query I rowsort
SELECT + col0 * col2 * + col1 AS col0 FROM tab2 AS cor0
----
119652
51034
5859

query I rowsort
SELECT ALL + col1 + - 39 AS col2 FROM tab0 AS cor0
----
47
52
58

query I rowsort
SELECT - - cor0.col1 + + ( cor0.col0 * - col1 ) + - col2 AS col1 FROM tab1 cor0
----
-106
-1123
-687

query I rowsort
SELECT + - col0 * + ( 73 + - cor0.col0 ) AS col2 FROM tab1 AS cor0
----
-210
-576
560

query I rowsort
SELECT - + col0 * - 30 FROM tab0 cor0
----
1050
2670
720

query I rowsort
SELECT ALL + col0 * - cor0.col0 FROM tab0 cor0
----
-1225
-576
-7921

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2172
SELECT + CAST( col1 AS SIGNED ) * col0 FROM tab1 AS cor0
----
1040
640
78

skipif mysql # not compatible
query I rowsort label-2172
SELECT + CAST ( col1 AS INTEGER ) * col0 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT ALL tab0.col2 AS col2 FROM tab0, tab2 cor0
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8

query I rowsort
SELECT DISTINCT + col1 * - cor0.col2 FROM tab0 cor0
----
-2838
-7462
-97

query I rowsort
SELECT + 29 * - cor0.col2 FROM tab2 AS cor0
----
-1102
-754
-783

query I rowsort
SELECT DISTINCT + col2 * ( - cor0.col1 ) FROM tab1 AS cor0
----
-1248
-1404
-570

onlyif mysql # use DIV operator for integer division
query I rowsort label-2177
SELECT ALL col2 + col1 + - col1 DIV col1 FROM tab0
----
118
172
97

skipif mysql # not compatible
query I rowsort label-2177
SELECT ALL col2 + col1 + - col1 / col1 FROM tab0
----
118
172
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + - 93 col2 FROM tab0
----
-11
-60
-92

query I rowsort
SELECT ALL - tab1.col2 + 21 AS col2 FROM tab1
----
-33
-36
-75

query I rowsort
SELECT DISTINCT col1 + - ( + 81 * + col2 + col2 ) AS col2 FROM tab0
----
-2620
-6633
15

onlyif mysql # use DIV operator for integer division
query I rowsort label-2181
SELECT + col1 DIV tab2.col1 + + col2 * col0 FROM tab2
----
190
2029
3003

skipif mysql # not compatible
query I rowsort label-2181
SELECT + col1 / tab2.col1 + + col2 * col0 FROM tab2
----
190
2029
3003

query I rowsort
SELECT DISTINCT - + cor0.col2 * + col1 + 32 FROM tab0 AS cor0
----
-2806
-65
-7430

query I rowsort
SELECT ALL col1 * - cor0.col0 * cor0.col2 FROM tab0 AS cor0
----
-3395
-664118
-68112

query I rowsort
SELECT - + col0 + col0 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT DISTINCT cor0.col0 + - col0 FROM tab1 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 30 * col1 * - 30 col1 FROM tab2 AS cor0
----
15300
27900
53100

query I rowsort
SELECT + cor0.col1 * col1 - 16 FROM tab0 AS cor0
----
7380
8265
9393

query I rowsort
SELECT DISTINCT - 75 * col1 + - 10 * + 15 FROM tab1 AS cor0
----
-1125
-2100
-900

query I rowsort
SELECT ALL + + col0 + col2 * col0 FROM tab2 AS cor0
----
196
2106
3081

query I rowsort
SELECT cor0.col0 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd

query I rowsort
SELECT 39 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 5ecc4d3de68ae828a2d522dff8571cbf

query I rowsort
SELECT ALL - 60 + col0 * 44 AS col0 FROM tab2
----
248
3372
3416

query I rowsort
SELECT + + 91 * + col1 - - col2 AS col1 FROM tab0 cor0
----
7859
8363
8828

skipif mysql # not compatible
query I rowsort
SELECT + + col0 * - col1 * + CAST ( + 3 AS REAL ) FROM tab0 AS cor0
----
-10185
-24297
-6192

query I rowsort
SELECT - 12 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to e698dd57d3aac30af14ce35da434bb45

onlyif mysql # use DIV operator for integer division
query I rowsort label-2196
SELECT DISTINCT col1 + col0 DIV col2 FROM tab0
----
132
86
92

skipif mysql # not compatible
query I rowsort label-2196
SELECT DISTINCT col1 + col0 / col2 FROM tab0
----
132
86
92

query I rowsort
SELECT ALL col0 + tab2.col0 AS col2 FROM tab2
----
14
156
158

query I rowsort
SELECT + 22 * + col2 FROM tab0
----
1804
22
726

onlyif mysql # use DIV operator for integer division
query I rowsort label-2199
SELECT - - 16 DIV + col0 AS col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2199
SELECT - - 16 / + col0 AS col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + ( 26 ) AS col1 FROM tab2 AS cor0
----
26

query I rowsort
SELECT 69 * + col0 - - col0 AS col2 FROM tab1 AS cor0
----
210
4480
5600

query I rowsort
SELECT ALL - 22 * cor0.col2 AS col1 FROM tab0 AS cor0
----
-1804
-22
-726

onlyif mysql # use DIV operator for integer division
query I rowsort label-2203
SELECT - col1 DIV + col2 + col2 FROM tab1 AS cor0
----
54
57
96

skipif mysql # not compatible
query I rowsort label-2203
SELECT - col1 / + col2 + col2 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT ALL + 98 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to f9dee8c21116f1aed64ac5160e190809

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2205
SELECT ALL + CAST( 64 AS SIGNED ) * - col1 FROM tab2 AS cor0
----
-1088
-1984
-3776

skipif mysql # not compatible
query I rowsort label-2205
SELECT ALL + CAST ( 64 AS INTEGER ) * - col1 FROM tab2 AS cor0
----
-1088
-1984
-3776

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + col2 * + col2 * cor0.col2 col0 FROM tab1 AS cor0
----
157410
185136
884640

query I rowsort
SELECT DISTINCT 39 + - col1 + - col1 AS col2 FROM tab1 AS cor0
----
-13
13
19

query I rowsort
SELECT DISTINCT + col2 * - col0 AS col0 FROM tab2 cor0
----
-189
-2028
-3002

query I rowsort
SELECT DISTINCT + cor0.col2 * cor0.col1 - ( - 25 ) AS col2 FROM tab0 AS cor0
----
122
2863
7487

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 89 * - col2 col2 FROM tab1 AS cor0
----
-4806
-5073
-8544

query I rowsort
SELECT DISTINCT cor1.col1 FROM tab2, tab0 AS cor0, tab1, tab0 cor1
----
86
91
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-2212
SELECT ALL 46 DIV col2 + - 98 DIV - col2 col1 FROM tab0 AS cor0
----
1
144
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2212
SELECT ALL 46 / col2 + - 98 / - col2 col1 FROM tab0 AS cor0
----
1
144
3

query I rowsort
SELECT ALL col2 * - col2 - + ( col2 ) FROM tab2 AS cor0
----
-1482
-702
-756

query I rowsort
SELECT ALL - ( col2 ) + + 17 FROM tab0 AS cor0
----
-16
-65
16

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + col1 * 83 col0 FROM tab2 AS cor0
----
1428
2604
4956

query I rowsort
SELECT + ( col2 ) + ( + col0 ) FROM tab2 cor0
----
104
117
34

query I rowsort
SELECT + 81 + + col2 * - col0 AS col2 FROM tab2
----
-108
-1947
-2921

query I rowsort
SELECT 16 * + col2 AS col0 FROM tab0
----
1312
16
528

query I rowsort
SELECT ALL + 67 + - cor0.col1 + 32 * col2 FROM tab2 AS cor0
----
1266
840
900

query I rowsort
SELECT + col0 * col1 + col1 AS col2 FROM tab2 AS cor0
----
1360
248
4661

query I rowsort
SELECT - - col1 + col1 * col0 - - col0 * - 50 FROM tab2 AS cor0
----
-102
-2590
761

onlyif mysql # use DIV operator for integer division
query I rowsort label-2222
SELECT DISTINCT - - cor0.col2 + + col0 DIV - cor0.col0 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-2222
SELECT DISTINCT - - cor0.col2 + + col0 / - cor0.col0 col1 FROM tab0 AS cor0
----
0
32
81

query I rowsort
SELECT ALL cor0.col1 * - ( col0 ) + col1 AS col2 FROM tab2 cor0
----
-1326
-186
-4543

query I rowsort
SELECT + - col2 * - 42 + - col1 - col1 * col2 AS col0 FROM tab2 AS cor0
----
-501
266
933

query I rowsort
SELECT ALL + col1 + + 74 FROM tab1
----
100
84
87

query I rowsort
SELECT - tab1.col0 * + 13 AS col0 FROM tab1
----
-1040
-39
-832

query I rowsort
SELECT ALL - + col2 + - col1 FROM tab1 cor0
----
-109
-67
-80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2228
SELECT DISTINCT - - col1 + + CAST( NULL AS DECIMAL ) col2 FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2228
SELECT DISTINCT - - col1 + + CAST ( NULL AS REAL ) col2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT + - col2 * cor0.col2 + col2 + + col1 * + col0 FROM tab1 AS cor0
----
-2552
-2784
-8080

onlyif mysql # use DIV operator for integer division
query I rowsort label-2230
SELECT - + col0 DIV col2 + col2 - - col2 FROM tab1 AS cor0
----
108
113
192

skipif mysql # not compatible
query I rowsort label-2230
SELECT - + col0 / col2 + col2 - - col2 FROM tab1 AS cor0
----
108
113
192

query I rowsort
SELECT cor0.col2 + ( - col0 ) * col2 + col1 FROM tab2 AS cor0
----
-131
-1943
-2947

query I rowsort
SELECT DISTINCT - col1 + col2 * + col0 AS col2 FROM tab1 cor0
----
136
3638
7667

query I rowsort
SELECT ALL col2 * col2 + 8 FROM tab1 AS cor0
----
2924
3257
9224

query I rowsort
SELECT DISTINCT ( - col1 ) FROM tab2 cor0
----
-17
-31
-59

query I rowsort
SELECT ALL + cor0.col0 AS col0 FROM tab2, tab1 cor0
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870

query I rowsort
SELECT ALL 45 * col2 AS col0 FROM tab2 cor0
----
1170
1215
1710

query I rowsort
SELECT DISTINCT + 31 * 1 + - col2 * - col0 AS col2 FROM tab1 AS cor0
----
193
3679
7711

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2238
SELECT - - CAST( col1 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-2238
SELECT - - CAST ( col1 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT ALL col0 + + col2 AS col2 FROM tab1
----
121
176
57

query I rowsort
SELECT + + col2 + + col1 AS col2 FROM tab0 AS cor0
----
119
173
98

onlyif mysql # use DIV operator for integer division
query I rowsort label-2241
SELECT + + ( + col2 ) * + col0 DIV + col0 FROM tab1 AS cor0
----
54
57
96

skipif mysql # not compatible
query I rowsort label-2241
SELECT + + ( + col2 ) * + col0 / + col0 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT 57 * - col2 + cor0.col0 AS col2 FROM tab1 AS cor0
----
-3075
-3185
-5392

query I rowsort
SELECT - + col2 + 52 AS col2 FROM tab1 AS cor0
----
-2
-44
-5

query I rowsort
SELECT - 91 + cor0.col0 * col0 FROM tab1 AS cor0
----
-82
4005
6309

query I rowsort
SELECT + + col1 * col2 + - col0 FROM tab0 AS cor0
----
2814
62
7373

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 70 col0 FROM tab1 AS cor0
----
70

query I rowsort
SELECT - col2 + + 21 * + 7 FROM tab1
----
51
90
93

onlyif mysql # use DIV operator for integer division
query I rowsort label-2248
SELECT + 70 DIV 62 - - col2 * + 3 AS col1 FROM tab2 cor0
----
115
79
82

skipif mysql # not compatible
query I rowsort label-2248
SELECT + 70 / 62 - - col2 * + 3 AS col1 FROM tab2 cor0
----
115
79
82

query I rowsort
SELECT DISTINCT + col1 + 50 FROM tab0
----
136
141
147

skipif mysql # not compatible
query I rowsort
SELECT CAST ( col1 AS REAL ) / + col1 FROM tab0
----
1
1
1

query I rowsort
SELECT ALL + 90 * + cor0.col0 AS col2 FROM tab1 AS cor0
----
270
5760
7200

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * 72 col2 FROM tab0
----
2376
5904
72

query I rowsort
SELECT - cor0.col2 AS col0 FROM tab0, tab0 cor0
----
9 values hashing to b5a4102107e5ebd26e341538f4fede1e

query I rowsort
SELECT DISTINCT ( - col2 * col2 + - 56 ) AS col2 FROM tab1
----
-2972
-3305
-9272

query I rowsort
SELECT + 55 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 1626bd3008abd9f18cc88cdecf7b64d0

query I rowsort
SELECT ALL - cor0.col0 * - 0 FROM tab0 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * - col2 col0 FROM tab2
----
-1444
-676
-729

onlyif mysql # use DIV operator for integer division
query I rowsort label-2258
SELECT - col1 DIV + ( - col2 ) AS col2 FROM tab0 AS cor0
----
1
2
97

skipif mysql # not compatible
query I rowsort label-2258
SELECT - col1 / + ( - col2 ) AS col2 FROM tab0 AS cor0
----
1
2
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - 7 col1 FROM tab2 AS cor0
----
-119
-217
-413

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2, tab0 AS cor0, tab0 AS cor1, tab1, tab1 cor2
----
3645 values hashing to 51e2051aff75c58a5edaa314f1412983

query I rowsort
SELECT ALL col1 + - cor0.col2 AS col2 FROM tab1 cor0
----
-28
-47
-83

query I rowsort
SELECT DISTINCT - - col1 * col1 + col2 * - col1 AS col2 FROM tab0 AS cor0
----
4558
819
9312

query I rowsort
SELECT + col1 * cor0.col0 + 36 * col2 + col2 FROM tab0 AS cor0
----
11133
3285
3432

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 + - col1 + 41 col0 FROM tab2 cor0
----
-21
-77
7

query I rowsort
SELECT DISTINCT 74 AS col0 FROM tab1 AS cor0
----
74

onlyif mysql # use DIV operator for integer division
query I rowsort label-2266
SELECT DISTINCT + 40 DIV + col1 + 80 FROM tab1 cor0
----
81
83
84

skipif mysql # not compatible
query I rowsort label-2266
SELECT DISTINCT + 40 / + col1 + 80 FROM tab1 cor0
----
81
83
84

query I rowsort
SELECT ALL - 91 * + col1 + 42 AS col0 FROM tab0 AS cor0
----
-7784
-8239
-8785

query I rowsort
SELECT col0 * - col1 * - 12 AS col2 FROM tab0 AS cor0
----
24768
40740
97188

query I rowsort
SELECT 81 * col0 AS col0 FROM tab2 AS cor0
----
567
6318
6399

query I rowsort
SELECT - col0 * + cor0.col0 + 37 + col0 AS col1 FROM tab0 AS cor0
----
-1153
-515
-7795

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * col2 + 75 + col0 * - cor0.col0 col0 FROM tab2 AS cor0
----
-4475
-5520
863

query I rowsort
SELECT + ( - 9 ) * col2 * + col0 FROM tab1
----
-1458
-32832
-69120

query I rowsort
SELECT + - 43 AS col2 FROM tab0 AS cor0
----
-43
-43
-43

query I rowsort
SELECT DISTINCT 57 * col1 AS col0 FROM tab2
----
1767
3363
969

query I rowsort
SELECT col0 * - col2 + col0 * + col1 FROM tab2
----
-1659
2574
28

query I rowsort
SELECT ALL + - cor0.col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 4ec304b8ce935f2226e7548d72c2b2f0

query I rowsort
SELECT col1 * ( col1 ) AS col2 FROM tab1
----
100
169
676

query I rowsort
SELECT DISTINCT 45 AS col2 FROM tab0, tab0 AS cor0
----
45

query I rowsort
SELECT DISTINCT + tab0.col0 - - 71 AS col2 FROM tab0
----
106
160
95

query I rowsort
SELECT + col1 * 32 - + col0 * + col2 FROM tab2 AS cor0
----
-140
-2458
803

query I rowsort
SELECT DISTINCT - 26 FROM tab0, tab1 AS cor0
----
-26

query I rowsort
SELECT DISTINCT - col0 + 67 + col1 AS col2 FROM tab2
----
48
5
91

query I rowsort
SELECT - + col0 + ( col0 ) FROM tab1 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 82 - - tab1.col1 * - col2 col0 FROM tab1
----
-1166
-1322
-488

query I rowsort
SELECT + ( - col1 ) * tab0.col2 - tab0.col2 AS col2 FROM tab0
----
-2871
-7544
-98

query I rowsort
SELECT ALL 99 + - col2 + + col0 AS col0 FROM tab1
----
106
48
83

onlyif mysql # use DIV operator for integer division
query I rowsort label-2287
SELECT + 12 DIV col0 - - col1 FROM tab2 cor0
----
17
32
59

skipif mysql # not compatible
query I rowsort label-2287
SELECT + 12 / col0 - - col1 FROM tab2 cor0
----
17
32
59

query I rowsort
SELECT - 61 AS col1 FROM tab2 AS cor0
----
-61
-61
-61

query I rowsort
SELECT ALL ( + col0 ) * + col2 + + ( col1 + + col1 ) AS col1 FROM tab1
----
214
3668
7706

onlyif mysql # use DIV operator for integer division
query I rowsort label-2290
SELECT col0 + col1 + + col0 DIV - 26 FROM tab1
----
29
72
90

skipif mysql # not compatible
query I rowsort label-2290
SELECT col0 + col1 + + col0 / - 26 FROM tab1
----
29
72
90

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab0 cor0, tab0, tab0 cor1
----
972 values hashing to ea0f747588ddf5869ee18a5e22d9f237

query I rowsort
SELECT + 18 - col2 AS col0 FROM tab0
----
-15
-64
17

query I rowsort
SELECT DISTINCT 66 + - tab2.col1 AS col2 FROM tab2
----
35
49
7

query I rowsort
SELECT - col0 + - 63 * - col2 FROM tab0 AS cor0
----
2055
28
5077

query I rowsort
SELECT DISTINCT - 42 AS col0 FROM tab2 AS cor0
----
-42

query I rowsort
SELECT + 45 * col0 AS col0 FROM tab1 cor0
----
135
2880
3600

query I rowsort
SELECT + col0 - cor0.col2 FROM tab0 AS cor0
----
-9
34
7

query I rowsort
SELECT - 5 - cor0.col0 AS col0 FROM tab2 AS cor0
----
-12
-83
-84

query I rowsort
SELECT - col2 + - cor0.col1 + + cor0.col2 * cor0.col0 FROM tab0 AS cor0
----
-63
673
7125

query I rowsort
SELECT ALL + col2 * col2 + + col1 AS col2 FROM tab2
----
1461
735
760

onlyif mysql # use DIV operator for integer division
query I rowsort label-2301
SELECT DISTINCT - + col0 DIV - col0 FROM tab1 cor0
----
1

skipif mysql # not compatible
query I rowsort label-2301
SELECT DISTINCT - + col0 / - col0 FROM tab1 cor0
----
1

query I rowsort
SELECT DISTINCT + 19 AS col0 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
19

query I rowsort
SELECT ALL ( - col0 ) * col1 AS col2 FROM tab1
----
-1040
-640
-78

onlyif mysql # use DIV operator for integer division
query I rowsort label-2304
SELECT ALL tab1.col1 DIV tab1.col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2304
SELECT ALL tab1.col1 / tab1.col2 FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT + + col0 * col1 FROM tab1 cor0
----
1040
640
78

query I rowsort
SELECT - + 98 + col1 * + col1 FROM tab2 AS cor0
----
191
3383
863

query I rowsort
SELECT 4 FROM tab1, tab0 AS cor0, tab0 cor1
----
27 values hashing to 730dff78e83112374961ea711f98ebaa

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2308
SELECT ALL col1 * + col1 / - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2308
SELECT ALL col1 * + col1 / - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 43 col0 FROM tab0, tab0 cor0, tab1 AS cor1
----
27 values hashing to ee5108f6248be48c54e069545f81c5d9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + - ( 7 ) col1 FROM tab2 AS cor0
----
19
20
31

query I rowsort
SELECT DISTINCT + col0 * col0 + + col1 AS col0 FROM tab0 AS cor0
----
1322
662
8012

query I rowsort
SELECT col1 * + 23 FROM tab0 AS cor0
----
1978
2093
2231

query I rowsort
SELECT + + ( cor0.col1 ) * col1 + 60 FROM tab2 AS cor0
----
1021
349
3541

query I rowsort
SELECT DISTINCT - 25 - col1 * col0 AS col1 FROM tab1 AS cor0
----
-103
-1065
-665

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + col2 * col1 * + col1 - col0 col0 FROM tab0 cor0
----
243958
678862
9277

query I rowsort
SELECT ALL + 25 * - 1 FROM tab2 AS cor0
----
-25
-25
-25

query I rowsort
SELECT + 32 - + cor0.col1 AS col0 FROM tab0 AS cor0
----
-54
-59
-65

query I rowsort
SELECT DISTINCT 60 + + col2 * + col1 * cor0.col0 + + col2 FROM tab2 AS cor0
----
119738
51132
5946

query I rowsort
SELECT ALL + + 18 FROM tab0 AS cor0
----
18
18
18

query I rowsort
SELECT + 79 AS col2 FROM tab0 AS cor0
----
79
79
79

query I rowsort
SELECT ALL col2 + cor0.col0 + + col2 FROM tab2 cor0
----
130
155
61

query I rowsort
SELECT DISTINCT - + cor0.col1 * - col2 FROM tab0 AS cor0
----
2838
7462
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-2323
SELECT ALL + 86 DIV cor0.col0 + col1 + + ( + col2 ) col0 FROM tab0 AS cor0
----
100
122
173

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2323
SELECT ALL + 86 / cor0.col0 + col1 + + ( + col2 ) col0 FROM tab0 AS cor0
----
100
122
173

query I rowsort
SELECT ALL - ( - col2 ) + col1 FROM tab2 cor0
----
55
58
85

onlyif mysql # use DIV operator for integer division
query I rowsort label-2325
SELECT DISTINCT col1 DIV col0 - col2 FROM tab1 AS cor0
----
-46
-57
-96

skipif mysql # not compatible
query I rowsort label-2325
SELECT DISTINCT col1 / col0 - col2 FROM tab1 AS cor0
----
-46
-57
-96

query I rowsort
SELECT + col1 - - 48 FROM tab0 AS cor0
----
134
139
145

query I rowsort
SELECT ALL + col1 * + 60 * col0 FROM tab2
----
13020
276120
80580

query I rowsort
SELECT ALL tab0.col0 * ( 1 ) * + col1 AS col2 FROM tab0
----
2064
3395
8099

query I rowsort
SELECT col0 * + ( - col1 ) FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT DISTINCT tab1.col2 * 89 FROM tab1
----
4806
5073
8544

onlyif mysql # use DIV operator for integer division
query I rowsort label-2331
SELECT ALL - col1 DIV col1 AS col2 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2331
SELECT ALL - col1 / col1 AS col2 FROM tab2
----
-1
-1
-1

query I rowsort
SELECT col2 * col1 * 61 FROM tab0
----
173118
455182
5917

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + ( col0 + + col1 ) * + 78 col1 FROM tab1 AS cor0
----
2236
5762
7241

onlyif mysql # use DIV operator for integer division
query I rowsort label-2334
SELECT DISTINCT col2 DIV 41 + - col1 AS col2 FROM tab0 AS cor0
----
-86
-89
-97

skipif mysql # not compatible
query I rowsort label-2334
SELECT DISTINCT col2 / 41 + - col1 AS col2 FROM tab0 AS cor0
----
-86
-89
-97

query I rowsort
SELECT ALL + - col1 + 31 * col1 AS col0 FROM tab1 AS cor0
----
300
390
780

query I rowsort
SELECT + - col2 + + cor0.col1 FROM tab2 AS cor0
----
-21
33
4

onlyif mysql # use DIV operator for integer division
query I rowsort label-2337
SELECT ALL + col1 DIV + 39 FROM tab2
----
0
0
1

skipif mysql # not compatible
query I rowsort label-2337
SELECT ALL + col1 / + 39 FROM tab2
----
0
0
1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2338
SELECT DISTINCT - - cor0.col1 + - CAST( + 28 * col0 AS SIGNED ) AS col0 FROM tab1 cor0
----
-1782
-2227
-58

skipif mysql # not compatible
query I rowsort label-2338
SELECT DISTINCT - - cor0.col1 + - CAST ( + 28 * col0 AS INTEGER ) AS col0 FROM tab1 cor0
----
-1782
-2227
-58

query I rowsort
SELECT - 52 FROM tab0, tab0 cor0, tab0 AS cor1
----
27 values hashing to e8a5cb10c0973a78554f344d4f6e7e74

query I rowsort
SELECT DISTINCT + col2 * col0 + - col0 * cor0.col1 * - col1 FROM tab0 cor0
----
178296
329350
744307

query I rowsort
SELECT col2 + 15 AS col2 FROM tab2
----
41
42
53

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - CAST ( col2 AS REAL ) FROM tab0
----
-1
-33
-82

onlyif mysql # use DIV operator for integer division
query I rowsort label-2343
SELECT col0 DIV 61 + tab2.col0 AS col0 FROM tab2
----
7
79
80

skipif mysql # not compatible
query I rowsort label-2343
SELECT col0 / 61 + tab2.col0 AS col0 FROM tab2
----
7
79
80

query I rowsort
SELECT ALL - 75 FROM tab1
----
-75
-75
-75

onlyif mysql # use DIV operator for integer division
query I rowsort label-2345
SELECT + 59 DIV - col1 + + col2 * + ( + 28 ) FROM tab0
----
2296
28
924

skipif mysql # not compatible
query I rowsort label-2345
SELECT + 59 / - col1 + + col2 * + ( + 28 ) FROM tab0
----
2296
28
924

query I rowsort
SELECT ALL + 51 + col0 FROM tab1 cor0
----
115
131
54

query I rowsort
SELECT ALL + 55 + col1 AS col2 FROM tab0 AS cor0
----
141
146
152

query I rowsort
SELECT DISTINCT - col0 * - col2 + + 71 + - col1 FROM tab1 AS cor0
----
207
3709
7738

query I rowsort
SELECT ALL col1 * - col2 + - cor0.col0 * col0 * cor0.col0 FROM tab1 cor0
----
-1431
-262714
-513248

query I rowsort
SELECT + ( + col0 ) + - col1 FROM tab1 AS cor0
----
-23
54
67

query I rowsort
SELECT DISTINCT ( + col0 ) * cor0.col0 AS col0 FROM tab1 AS cor0
----
4096
6400
9

query I rowsort
SELECT ALL - col2 * + cor0.col2 + ( + col0 + col1 ) * 81 FROM tab1 AS cor0
----
-1683
-567
2745

query I rowsort
SELECT DISTINCT 78 * + col0 + - 9 FROM tab1 AS cor0
----
225
4983
6231

query I rowsort
SELECT DISTINCT - 6 * col2 + col2 * + col0 FROM tab0 cor0
----
29
594
6806

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 17 * col1 col1 FROM tab1 AS cor0
----
-170
-221
-442

query I rowsort
SELECT + 56 FROM tab1, tab0, tab0 AS cor0
----
27 values hashing to b5ba4b44e3deadce1edb30e76df61200

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 81 col1 FROM tab2
----
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 71 col2 FROM tab0
----
-71
-71
-71

query I rowsort
SELECT DISTINCT 69 FROM tab2, tab2 cor0, tab2 AS cor1
----
69

query I rowsort
SELECT 58 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 9ee363c6ac19cfdb8a50c7dfd5cc2b8a

query I rowsort
SELECT + - 95 * - col2 AS col1 FROM tab0 AS cor0
----
3135
7790
95

query I rowsort
SELECT cor0.col1 + + cor0.col0 * ( col1 ) AS col0 FROM tab0 AS cor0
----
2150
3492
8190

onlyif mysql # use DIV operator for integer division
query I rowsort label-2363
SELECT + col1 DIV col0 - - 23 AS col0 FROM tab1 AS cor0
----
23
23
31

skipif mysql # not compatible
query I rowsort label-2363
SELECT + col1 / col0 - - 23 AS col0 FROM tab1 AS cor0
----
23
23
31

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2364
SELECT + - cor0.col0 + - CAST( + col1 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-29
-74
-93

skipif mysql # not compatible
query I rowsort label-2364
SELECT + - cor0.col0 + - CAST ( + col1 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-29
-74
-93

query I rowsort
SELECT + + col1 + - ( 58 ) * - cor0.col1 AS col2 FROM tab0 AS cor0
----
5074
5369
5723

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + + 3 col0 FROM tab1 AS cor0
----
57
60
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 + col1 + + col2 col2 FROM tab0 AS cor0
----
63
84
95

query I rowsort
SELECT - cor0.col1 * col0 + + col2 FROM tab2 cor0
----
-1305
-190
-4576

query I rowsort
SELECT DISTINCT - col1 + - ( + 28 * col0 ) AS col0 FROM tab1
----
-110
-1802
-2253

query I rowsort
SELECT DISTINCT col0 + 68 FROM tab2
----
146
147
75

query I rowsort
SELECT DISTINCT - col2 * + col1 * - col0 + col2 FROM tab0
----
3396
664200
68145

query I rowsort
SELECT + col1 + - col0 + - col2 * 45 AS col0 FROM tab1 AS cor0
----
-2407
-2619
-4387

query I rowsort
SELECT DISTINCT col0 * ( + col1 ) * col1 FROM tab0
----
177504
329315
737009

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + ( - col1 ) * + col0 col2 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT 61 AS col0 FROM tab2
----
61
61
61

query I rowsort
SELECT cor0.col0 * - cor0.col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 4734c38591591662f77999e8d1e5daf1

onlyif mysql # use DIV operator for integer division
query I rowsort label-2377
SELECT DISTINCT - col2 DIV + 83 AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-2377
SELECT DISTINCT - col2 / + 83 AS col2 FROM tab2
----
0

query I rowsort
SELECT 55 + col2 FROM tab0
----
137
56
88

query I rowsort
SELECT DISTINCT 37 FROM tab2, tab1 AS cor0 CROSS JOIN tab0
----
37

onlyif mysql # use DIV operator for integer division
query I rowsort label-2380
SELECT - cor0.col2 DIV 40 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2380
SELECT - cor0.col2 / 40 FROM tab2 cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 * 85 + + 88 col1 FROM tab1 AS cor0
----
4678
4933
8248

query I rowsort
SELECT DISTINCT - col1 * ( - col1 ) + - cor0.col1 * + col0 AS col0 FROM tab1 AS cor0
----
-540
-871
598

query I rowsort
SELECT + cor0.col1 * ( - 26 ) FROM tab2 AS cor0
----
-1534
-442
-806

query I rowsort
SELECT ALL + - col1 + + 57 * - col1 FROM tab1 AS cor0
----
-1508
-580
-754

query I rowsort
SELECT + + col1 * + col2 * + 68 + - col1 FROM tab2 AS cor0
----
104253
43911
56885

query I rowsort
SELECT - + cor0.col1 + col1 * + 31 * col2 FROM tab1 AS cor0
----
17660
38675
43498

query I rowsort
SELECT - - col1 * ( col1 ) + col2 FROM tab1 AS cor0
----
157
265
730

query I rowsort
SELECT + cor0.col2 + - col0 - + col1 * - cor0.col1 * col1 FROM tab1 AS cor0
----
17627
2213
993

onlyif mysql # use DIV operator for integer division
query I rowsort label-2389
SELECT DISTINCT - - col2 DIV - col0 + col2 AS col0 FROM tab2 AS cor0
----
24
26
38

skipif mysql # not compatible
query I rowsort label-2389
SELECT DISTINCT - - col2 / - col0 + col2 AS col0 FROM tab2 AS cor0
----
24
26
38

query I rowsort
SELECT DISTINCT + cor0.col0 * col1 + - col1 * - 73 FROM tab0 AS cor0
----
10476
14742
8342

query I rowsort
SELECT ALL - - col2 * ( col1 ) FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT - 51 * + 78 FROM tab2 AS cor0
----
-3978
-3978
-3978

query I rowsort
SELECT DISTINCT + cor0.col1 + 76 AS col2 FROM tab2, tab1 AS cor0
----
102
86
89

query I rowsort
SELECT ALL col1 + - 85 AS col2 FROM tab2
----
-26
-54
-68

query I rowsort
SELECT DISTINCT ( col0 ) + - col0 + cor0.col1 AS col1 FROM tab2 AS cor0
----
17
31
59

query I rowsort
SELECT - col1 + col1 * 10 AS col1 FROM tab0 AS cor0
----
774
819
873

query I rowsort
SELECT DISTINCT 71 FROM tab2
----
71

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 38 col2 FROM tab1, tab0, tab2 cor0
----
27 values hashing to e8c064543bf0f2e57329db1bb0a411e3

query I rowsort
SELECT ALL - 94 * tab2.col1 AS col1 FROM tab2
----
-1598
-2914
-5546

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 59 * - col2 + col2 col1 FROM tab0 AS cor0
----
-1914
-4756
-58

query I rowsort
SELECT - 50 + + col0 FROM tab1 AS cor0
----
-47
14
30

query I rowsort
SELECT ALL 22 + + tab2.col1 - col0 * + tab2.col1 * col1 AS col2 FROM tab2
----
-22792
-271437
-6674

query I rowsort
SELECT ALL + col2 - col1 AS col2 FROM tab2
----
-33
-4
21

query I rowsort
SELECT - 6 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to e92b2679faac7be63701967e3f0c0934

query I rowsort
SELECT DISTINCT + + col0 + col0 + col2 AS col2 FROM tab0 AS cor0
----
260
71
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col0 col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 09d8a912de1b8ab762e5ffbe028ce99e

query I rowsort
SELECT DISTINCT - 12 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-12

onlyif mysql # use DIV operator for integer division
query I rowsort label-2408
SELECT DISTINCT - col0 DIV + col1 + col1 * - tab2.col2 FROM tab2
----
-1535
-650
-837

skipif mysql # not compatible
query I rowsort label-2408
SELECT DISTINCT - col0 / + col1 + col1 * - tab2.col2 FROM tab2
----
-1535
-650
-837

query I rowsort
SELECT col0 + + col2 + ( - col2 ) FROM tab0
----
24
35
89

query I rowsort
SELECT DISTINCT col0 + ( - col1 ) FROM tab2
----
-24
19
62

query I rowsort
SELECT ALL - col0 * - col0 + col1 AS col2 FROM tab0 AS cor0
----
1322
662
8012

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2412
SELECT col1 * + CAST( NULL AS DECIMAL ) + + col1 - - tab1.col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2412
SELECT col1 * + CAST ( NULL AS REAL ) + + col1 - - tab1.col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - tab0.col0 + - col1 + ( + col1 * - col1 + - 67 * - col2 ) AS col0 FROM tab0
----
-2967
-5295
-9474

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2414
SELECT col1 * - CAST( NULL AS SIGNED ) + ( col2 ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2414
SELECT col1 * - CAST ( NULL AS INTEGER ) + ( col2 ) AS col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col0 + + 81 * col1 AS col1 FROM tab2 AS cor0
----
1298
2504
4701

query I rowsort
SELECT DISTINCT cor0.col1 - col2 FROM tab0 AS cor0
----
53
9
96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2417
SELECT ALL - col1 + CAST( NULL AS SIGNED ) * + 35 * col0 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2417
SELECT ALL - col1 + CAST ( NULL AS INTEGER ) * + 35 * col0 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + - col1 - - cor0.col2 * - col2 FROM tab0 AS cor0
----
-1175
-6815
-98

query I rowsort
SELECT - - col0 - - ( 44 ) AS col1 FROM tab0 AS cor0
----
133
68
79

query I rowsort
SELECT DISTINCT + col0 * 56 + + 8 AS col1 FROM tab2 cor0
----
400
4376
4432

query I rowsort
SELECT ALL - + col1 + ( + col2 + + col2 ) AS col0 FROM tab2 AS cor0
----
-7
23
59

query I rowsort
SELECT DISTINCT - 65 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
-65

query I rowsort
SELECT + col1 - + 42 FROM tab1 AS cor0
----
-16
-29
-32

query I rowsort
SELECT DISTINCT + col2 - 5 AS col2 FROM tab1 AS cor0
----
49
52
91

query I rowsort
SELECT 11 - - col1 FROM tab0
----
102
108
97

query I rowsort
SELECT DISTINCT col1 * ( - tab1.col1 + - col0 ) FROM tab1
----
-1209
-740
-754

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor1.col1 col2 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 6e0b7d583bc2c53842166d3e6ba2d6d2

query I rowsort
SELECT + - col0 * col2 AS col1 FROM tab2 cor0
----
-189
-2028
-3002

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0, tab0 AS cor0, tab1 cor1, tab1, tab0 cor2
----
3645 values hashing to 1260d4dbe7a8d809e8010586a3c398c5

query I rowsort
SELECT DISTINCT - - col0 + col1 FROM tab1 cor0
----
29
74
93

query I rowsort
SELECT - - 57 AS col2 FROM tab2 AS cor0
----
57
57
57

onlyif mysql # use DIV operator for integer division
query I rowsort label-2432
SELECT ALL - col2 DIV col2 - - col1 FROM tab0 AS cor0
----
85
90
96

skipif mysql # not compatible
query I rowsort label-2432
SELECT ALL - col2 / col2 - - col1 FROM tab0 AS cor0
----
85
90
96

query I rowsort
SELECT ALL + col1 + cor0.col2 AS col2 FROM tab2 AS cor0
----
55
58
85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 78 * - cor0.col2 - + col1 col0 FROM tab2 cor0
----
-2087
-2137
-2981

query I rowsort
SELECT DISTINCT - + col0 + col1 * + ( + cor0.col1 ) FROM tab1 AS cor0
----
36
673
89

query I rowsort
SELECT + + 42 FROM tab0 cor0
----
42
42
42

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 77 col2 FROM tab0 cor0
----
77
77
77

query I rowsort
SELECT DISTINCT - 46 + col0 AS col1 FROM tab0 AS cor0
----
-11
-22
43

query I rowsort
SELECT + 9 AS col2 FROM tab0
----
9
9
9

query I rowsort
SELECT DISTINCT + col1 * + col1 + - 10 * col0 - + col0 AS col1 FROM tab0 AS cor0
----
7132
7302
9024

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2441
SELECT ALL + - 52 * - col0 + CAST( - 31 AS SIGNED ) + col1 AS col2 FROM tab0 AS cor0
----
1303
1886
4688

skipif mysql # not compatible
query I rowsort label-2441
SELECT ALL + - 52 * - col0 + CAST ( - 31 AS INTEGER ) + col1 AS col2 FROM tab0 AS cor0
----
1303
1886
4688

query I rowsort
SELECT col0 + cor0.col1 * ( col0 + col0 ) AS col2 FROM tab2 cor0
----
2765
441
9282

query I rowsort
SELECT DISTINCT + - 80 AS col1 FROM tab0 AS cor0
----
-80

onlyif mysql # use DIV operator for integer division
query I rowsort label-2444
SELECT - + 46 DIV + cor0.col1 FROM tab2 AS cor0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-2444
SELECT - + 46 / + cor0.col1 FROM tab2 AS cor0
----
-1
-2
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-2445
SELECT DISTINCT col2 DIV - col1 AS col1 FROM tab1 cor0
----
-2
-5
-7

skipif mysql # not compatible
query I rowsort label-2445
SELECT DISTINCT col2 / - col1 AS col1 FROM tab1 cor0
----
-2
-5
-7

query I rowsort
SELECT DISTINCT col0 * ( col2 ) * - ( - col1 ) FROM tab2 AS cor0
----
119652
51034
5859

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor1.col0 * cor0.col2 + 43 col0 FROM tab1, tab2 AS cor0, tab0 cor1
----
27 values hashing to 2a76497c9bf486b2279aeedecba8120f

onlyif mysql # use DIV operator for integer division
query I rowsort label-2448
SELECT + CAST( - 42 AS SIGNED ) DIV + cor0.col1 AS col0 FROM tab1 AS cor0
----
-1
-3
-4

skipif mysql # not compatible
query I rowsort label-2448
SELECT + CAST ( - 42 AS INTEGER ) / + cor0.col1 AS col0 FROM tab1 AS cor0
----
-1
-3
-4

query I rowsort
SELECT DISTINCT - 97 + + col2 AS col0 FROM tab0
----
-15
-64
-96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2450
SELECT DISTINCT CAST( NULL AS SIGNED ) + col2 col0 FROM tab0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2450
SELECT DISTINCT CAST ( NULL AS INTEGER ) + col2 col0 FROM tab0
----
NULL

query I rowsort
SELECT 8 AS col1 FROM tab1 AS cor0
----
8
8
8

query I rowsort
SELECT ALL + 97 FROM tab1, tab2 cor0
----
9 values hashing to 5e0d31ac41981bcdf6a665538a71a09c

onlyif mysql # use DIV operator for integer division
query I rowsort label-2453
SELECT ( - 94 ) * tab0.col1 DIV + col1 AS col1 FROM tab0
----
-94
-94
-94

skipif mysql # not compatible
query I rowsort label-2453
SELECT ( - 94 ) * tab0.col1 / + col1 AS col1 FROM tab0
----
-94
-94
-94

onlyif mysql # use DIV operator for integer division
query I rowsort label-2454
SELECT DISTINCT col0 + ( + tab1.col1 ) * col0 DIV col1 FROM tab1
----
128
160
6

skipif mysql # not compatible
query I rowsort label-2454
SELECT DISTINCT col0 + ( + tab1.col1 ) * col0 / col1 FROM tab1
----
128
160
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - col1 * tab0.col2 col1 FROM tab0
----
-3395
-664118
-68112

query I rowsort
SELECT col0 + ( ( - col0 ) + + 85 ) FROM tab1 AS cor0
----
85
85
85

query I rowsort
SELECT - 41 * - col2 FROM tab1
----
2214
2337
3936

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + - col2 col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - col0 * col0 * CAST ( 20 AS REAL ) + - col0 AS col1 FROM tab2
----
-121758
-124899
-987

onlyif mysql # use DIV operator for integer division
query I rowsort label-2460
SELECT + - col0 DIV + CAST( + col1 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-6
-6
0

skipif mysql # not compatible
query I rowsort label-2460
SELECT + - col0 / + CAST ( + col1 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-6
-6
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2461
SELECT ALL - col1 * CAST( col0 AS SIGNED ) + col1 + 7 AS col0 FROM tab2 AS cor0
----
-1319
-179
-4536

skipif mysql # not compatible
query I rowsort label-2461
SELECT ALL - col1 * CAST ( col0 AS INTEGER ) + col1 + 7 AS col0 FROM tab2 AS cor0
----
-1319
-179
-4536

query I rowsort
SELECT - col2 * col1 * - col2 AS col0 FROM tab2 AS cor0
----
22599
24548
39884

query I rowsort
SELECT - 11 - cor0.col0 AS col0 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to 6bf1b97d9a2df85b0036b7bfc1ac38be

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab1, tab2 cor0, tab0 AS cor1
----
972 values hashing to 58757c5bbbd4217c03cf2ac0b6126e55

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 1 * col2 col1 FROM tab0
----
1
33
82

query I rowsort
SELECT ALL + 82 + col0 * + tab0.col1 FROM tab0
----
2146
3477
8181

query I rowsort
SELECT DISTINCT - col1 * - col2 + 61 * + col2 FROM tab0
----
12464
158
4851

query I rowsort
SELECT - 54 FROM tab2, tab0 AS cor0
----
9 values hashing to 4ecdb0f1b85f0d4fdc3a826efd9f2342

query I rowsort
SELECT DISTINCT cor0.col2 * col0 * col0 FROM tab2 AS cor0
----
1323
158184
237158

onlyif mysql # use DIV operator for integer division
query I rowsort label-2470
SELECT ALL + col0 * 14 + - col1 DIV cor0.col2 FROM tab0 AS cor0
----
1245
334
393

skipif mysql # not compatible
query I rowsort label-2470
SELECT ALL + col0 * 14 + - col1 / cor0.col2 FROM tab0 AS cor0
----
1245
334
393

onlyif mysql # use DIV operator for integer division
query I rowsort label-2471
SELECT DISTINCT + col0 DIV + col0 AS col0 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-2471
SELECT DISTINCT + col0 / + col0 AS col0 FROM tab2 AS cor0
----
1

query I rowsort
SELECT ALL + col2 * cor0.col1 AS col0 FROM tab0 AS cor0
----
2838
7462
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-2473
SELECT ALL + cor0.col0 * - col2 + + cor0.col0 DIV col1 AS col2 FROM tab1 cor0
----
-162
-3642
-7674

skipif mysql # not compatible
query I rowsort label-2473
SELECT ALL + cor0.col0 * - col2 + + cor0.col0 / col1 AS col2 FROM tab1 cor0
----
-162
-3642
-7674

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2474
SELECT DISTINCT - cor0.col2 + CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2474
SELECT DISTINCT - cor0.col2 + CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab1.col0 col2 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f

query I rowsort
SELECT ALL - 71 AS col2 FROM tab1, tab2 cor0
----
9 values hashing to e72f95c346714d3065a96d67a6fd5062

query I rowsort
SELECT DISTINCT col1 + - 19 * + cor0.col2 FROM tab0 cor0
----
-1467
-541
78

query I rowsort
SELECT DISTINCT col0 * - ( col0 * col1 ) FROM tab1
----
-234
-40960
-83200

query I rowsort
SELECT - 10 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to f68f33032846e21ee6b2c668fc10355e

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * 14 col0 FROM tab0
----
1246
336
490

query I rowsort
SELECT + - col2 + + cor0.col2 AS col1 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT 79 * - col2 FROM tab2 AS cor0
----
-2054
-2133
-3002

query I rowsort
SELECT ALL - 94 * + col0 FROM tab2
----
-658
-7332
-7426

query I rowsort
SELECT + 24 * - col2 * col2 FROM tab0 AS cor0
----
-161376
-24
-26136

query I rowsort
SELECT - 81 FROM tab0 cor0
----
-81
-81
-81

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2486
SELECT + - ( - 70 ) * col0 + - CAST( NULL AS SIGNED ) AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2486
SELECT + - ( - 70 ) * col0 + - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + ( col0 ) + - col1 col0 FROM tab1 AS cor0
----
-23
54
67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 5 * - col1 col0 FROM tab1
----
-130
-50
-65

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 53 * + col0 col2 FROM tab0
----
-1272
-1855
-4717

onlyif mysql # use DIV operator for integer division
query I rowsort label-2490
SELECT + + col2 + col0 DIV + cor0.col0 FROM tab1 AS cor0
----
55
58
97

skipif mysql # not compatible
query I rowsort label-2490
SELECT + + col2 + col0 / + cor0.col0 FROM tab1 AS cor0
----
55
58
97

query I rowsort
SELECT DISTINCT + - col0 + + col1 * - 21 FROM tab2 AS cor0
----
-1317
-436
-658

query I rowsort
SELECT ALL - ( - cor0.col2 ) AS col1 FROM tab2 AS cor0
----
26
27
38

query I rowsort
SELECT DISTINCT ( - col1 ) AS col0 FROM tab1 cor0
----
-10
-13
-26

onlyif mysql # use DIV operator for integer division
query I rowsort label-2494
SELECT - - cor0.col1 DIV + col1 + col2 FROM tab2 cor0
----
27
28
39

skipif mysql # not compatible
query I rowsort label-2494
SELECT - - cor0.col1 / + col1 + col2 FROM tab2 cor0
----
27
28
39

onlyif mysql # use DIV operator for integer division
query I rowsort label-2495
SELECT - cor0.col0 + col0 DIV - col0 AS col1 FROM tab0 AS cor0
----
-25
-36
-90

skipif mysql # not compatible
query I rowsort label-2495
SELECT - cor0.col0 + col0 / - col0 AS col1 FROM tab0 AS cor0
----
-25
-36
-90

query I rowsort
SELECT - - cor0.col2 * col0 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT - 5 + - col2 AS col2 FROM tab0
----
-38
-6
-87

query I rowsort
SELECT - + 16 FROM tab0, tab2 AS cor0
----
9 values hashing to be22ac76b42c6f7212ecc0ba7c89eb34

query I rowsort
SELECT col0 + col0 * - col2 + + col1 FROM tab2
----
-151
-1891
-2906

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 - - col1 * 68 col2 FROM tab0
----
5824
6099
6561

query I rowsort
SELECT - tab1.col2 * tab1.col1 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 315ab91f9844de122b0c28cd16e982e4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col2 ) + - col0 col1 FROM tab0 AS cor0
----
-34
-7
9

query I rowsort
SELECT + tab2.col1 AS col0 FROM tab2, tab0, tab0 AS cor0
----
27 values hashing to 7599b480125de521efed71b5b2413c7d

onlyif mysql # use DIV operator for integer division
query I rowsort label-2504
SELECT + col1 * col1 DIV - col0 + - tab0.col1 FROM tab0
----
-184
-365
-394

skipif mysql # not compatible
query I rowsort label-2504
SELECT + col1 * col1 / - col0 + - tab0.col1 FROM tab0
----
-184
-365
-394

query I rowsort
SELECT col0 * - col0 + - 20 FROM tab1 AS cor0
----
-29
-4116
-6420

query I rowsort
SELECT ALL - col0 * col0 + + col2 AS col0 FROM tab1 AS cor0
----
-4039
-6304
45

query I rowsort
SELECT - cor0.col1 + + 7 * + col2 AS col1 FROM tab2 AS cor0
----
123
158
249

query I rowsort
SELECT + - cor0.col2 + - col2 AS col1 FROM tab1 AS cor0
----
-108
-114
-192

query I rowsort
SELECT + + cor0.col2 - + 14 FROM tab0 AS cor0
----
-13
19
68

query I rowsort
SELECT DISTINCT + - col2 - + cor0.col2 * col1 AS col1 FROM tab1 AS cor0
----
-1344
-1458
-627

query I rowsort
SELECT ALL - - col2 * - cor0.col1 AS col2 FROM tab1 AS cor0
----
-1248
-1404
-570

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2512
SELECT - cor0.col1 * CAST( NULL AS SIGNED ) - col1 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2512
SELECT - cor0.col1 * CAST ( NULL AS INTEGER ) - col1 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - + col2 * + col2 * + col2 + + col0 FROM tab1 AS cor0
----
-157461
-185129
-884656

onlyif mysql # use DIV operator for integer division
query I rowsort label-2514
SELECT + - col2 * col2 - col0 DIV col1 AS col1 FROM tab0 AS cor0
----
-1
-1089
-6724

skipif mysql # not compatible
query I rowsort label-2514
SELECT + - col2 * col2 - col0 / col1 AS col1 FROM tab0 AS cor0
----
-1
-1089
-6724

query I rowsort
SELECT DISTINCT + + col2 * col1 AS col1 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT ALL col1 * + col0 + + col2 * col1 FROM tab2 AS cor0
----
1054
1989
6136

query I rowsort
SELECT ALL + col0 * + 8 + cor0.col1 + col1 AS col1 FROM tab1 AS cor0
----
532
666
76

query I rowsort
SELECT - 86 - + col1 AS col2 FROM tab0
----
-172
-177
-183

query I rowsort
SELECT + - ( col2 ) * cor0.col1 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT - + cor0.col1 + + col1 * col2 + - col1 AS col2 FROM tab2 AS cor0
----
1416
612
775

query I rowsort
SELECT DISTINCT + 69 AS col2 FROM tab0 AS cor0
----
69

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2522
SELECT ALL + - CAST( 10 AS SIGNED ) FROM tab1 AS cor0
----
-10
-10
-10

skipif mysql # not compatible
query I rowsort label-2522
SELECT ALL + - CAST ( 10 AS INTEGER ) FROM tab1 AS cor0
----
-10
-10
-10

query I rowsort
SELECT col2 + + col0 * col0 AS col1 FROM tab0 AS cor0
----
1226
609
8003

query I rowsort
SELECT 56 * col0 + + col1 FROM tab1 AS cor0
----
194
3594
4493

query I rowsort
SELECT + + 90 AS col2 FROM tab0 AS cor0
----
90
90
90

query I rowsort
SELECT ALL 6 * + col2 + + col2 - col1 AS col2 FROM tab1 AS cor0
----
352
389
659

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col1 col2 FROM tab0 cor0
----
86
91
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 62 col2 FROM tab0 cor0
----
-62
-62
-62

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2529
SELECT ALL + ( col1 ) * CAST( NULL AS SIGNED ) + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2529
SELECT ALL + ( col1 ) * CAST ( NULL AS INTEGER ) + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col1 + col0 * + col2 FROM tab2 cor0
----
2087
220
3019

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - col2 ) * - ( col0 + col0 ) * + col0 col2 FROM tab2 AS cor0
----
2646
316368
474316

query I rowsort
SELECT DISTINCT - cor0.col2 * - col1 FROM tab0 cor0
----
2838
7462
97

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-2534
SELECT - col2 DIV + col0 AS col0 FROM tab0 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-2534
SELECT - col2 / + col0 AS col0 FROM tab0 AS cor0
----
-1
0
0

query I rowsort
SELECT ALL + col0 + - 73 + + col0 FROM tab1
----
-67
55
87

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2536
SELECT + CAST( NULL AS SIGNED ) + col1 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2536
SELECT + CAST ( NULL AS INTEGER ) + col1 AS col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 73 + - col1 FROM tab0
----
-13
-18
-24

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2538
SELECT ALL col0 + - col1 * - CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2538
SELECT ALL col0 + - col1 * - CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-2539
SELECT + col0 DIV + cor0.col0 col1 FROM tab2 cor0
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2539
SELECT + col0 / + cor0.col0 col1 FROM tab2 cor0
----
1
1
1

query I rowsort
SELECT ALL + - 58 + col0 FROM tab0 AS cor0
----
-23
-34
31

query I rowsort
SELECT - col2 - - col2 * tab0.col1 FROM tab0
----
2805
7380
96

query I rowsort
SELECT + col2 * col0 + col0 FROM tab2
----
196
2106
3081

query I rowsort
SELECT ALL - - 2 AS col1 FROM tab1 AS cor0
----
2
2
2

query I rowsort
SELECT DISTINCT ( - 60 ) FROM tab2 AS cor0
----
-60

query I rowsort
SELECT DISTINCT - tab2.col0 * col2 * + ( col1 ) AS col0 FROM tab2
----
-119652
-51034
-5859

query I rowsort
SELECT DISTINCT - col0 * ( - col0 * + col0 ) AS col2 FROM tab0
----
13824
42875
704969

query I rowsort
SELECT ALL 96 * col1 * - col1 AS col1 FROM tab0 AS cor0
----
-710016
-794976
-903264

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2548
SELECT DISTINCT col0 + CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2548
SELECT DISTINCT col0 + CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL

query I rowsort
SELECT ALL - col1 * - col2 + 16 FROM tab2
----
1550
662
853

query I rowsort
SELECT - tab2.col1 * - ( - col0 ) * - col1 FROM tab2
----
22831
271518
6727

query I rowsort
SELECT + col1 + - 6 FROM tab0
----
80
85
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 35 col0 FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to 6d967b3bac2e01a0318865f682f9a97b

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2553
SELECT ALL + + CAST( NULL AS SIGNED ) * + ( + tab2.col1 ) AS col1 FROM tab2, tab0, tab1 AS cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-2553
SELECT ALL + + CAST ( NULL AS INTEGER ) * + ( + tab2.col1 ) AS col1 FROM tab2, tab0, tab1 AS cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT col1 - col2 * - tab0.col2 FROM tab0
----
1175
6815
98

query I rowsort
SELECT - ( + col2 + col0 ) FROM tab2
----
-104
-117
-34

query I rowsort
SELECT ALL - cor0.col0 * 13 AS col0 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to fd13361ef8e8d678cb89dc7a6269021a

query I rowsort
SELECT - ( tab0.col1 ) * col2 * + 89 FROM tab0
----
-252582
-664118
-8633

query I rowsort
SELECT + + 37 + + col2 * + col2 AS col1 FROM tab2 AS cor0
----
1481
713
766

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2559
SELECT DISTINCT - + CAST( col0 AS SIGNED ) * col2 FROM tab2 AS cor0
----
-189
-2028
-3002

skipif mysql # not compatible
query I rowsort label-2559
SELECT DISTINCT - + CAST ( col0 AS INTEGER ) * col2 FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT - + 26 * col0 + col2 FROM tab0 AS cor0
----
-2232
-591
-909

query I rowsort
SELECT ( 47 ) * cor0.col2 FROM tab1, tab0 AS cor0
----
9 values hashing to f914ae4533844db68702949391c4acd3

query I rowsort
SELECT + + cor0.col1 * + 74 AS col1 FROM tab0 AS cor0
----
6364
6734
7178

query I rowsort
SELECT ALL + + col1 + 69 AS col0 FROM tab1 AS cor0
----
79
82
95

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2564
SELECT + - col2 * CAST( - col1 AS SIGNED ) * - col0 AS col1 FROM tab0 AS cor0
----
-3395
-664118
-68112

skipif mysql # not compatible
query I rowsort label-2564
SELECT + - col2 * CAST ( - col1 AS INTEGER ) * - col0 AS col1 FROM tab0 AS cor0
----
-3395
-664118
-68112

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2565
SELECT col1 * CAST( NULL AS SIGNED ) * + 5 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2565
SELECT col1 * CAST ( NULL AS INTEGER ) * + 5 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col0 - - 19 AS col2 FROM tab1 AS cor0
----
-45
-61
16

query I rowsort
SELECT ALL + col1 * + 6 + - cor0.col0 * + col2 * + ( - col2 + col1 * + col1 ) FROM tab1 AS cor0
----
-100608
-156804
-560562

query I rowsort
SELECT - col2 * - col1 + cor0.col2 FROM tab1 AS cor0
----
1344
1458
627

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2569
SELECT CAST( col2 AS SIGNED ) * + cor0.col0 * + 64 FROM tab1 AS cor0
----
10368
233472
491520

skipif mysql # not compatible
query I rowsort label-2569
SELECT CAST ( col2 AS INTEGER ) * + cor0.col0 * + 64 FROM tab1 AS cor0
----
10368
233472
491520

query I rowsort
SELECT DISTINCT ( + col2 ) AS col1 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT - + ( + 82 ) FROM tab1 AS cor0
----
-82
-82
-82

query I rowsort
SELECT - 32 AS col0 FROM tab1, tab0 AS cor0, tab2 AS cor1, tab2 AS cor2
----
81 values hashing to 54c3a9a1fd8612641b43985c0c2f59cd

query I rowsort
SELECT - 2 AS col2 FROM tab2 AS cor0
----
-2
-2
-2

query I rowsort
SELECT ALL - + 56 * + col0 - - 29 FROM tab1 AS cor0
----
-139
-3555
-4451

onlyif mysql # use DIV operator for integer division
query I rowsort label-2575
SELECT + + col2 DIV + col2 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2575
SELECT + + col2 / + col2 FROM tab1 AS cor0
----
1
1
1

query I rowsort
SELECT ALL - cor0.col2 * - col0 AS col2 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT + 2 + + col0 FROM tab2 cor0
----
80
81
9

query I rowsort
SELECT DISTINCT + 94 * - col1 AS col0 FROM tab1 AS cor0
----
-1222
-2444
-940

query I rowsort
SELECT - - col2 + - 8 FROM tab0 cor0
----
-7
25
74

query I rowsort
SELECT DISTINCT + tab1.col0 + - tab1.col0 * + col2 AS col1 FROM tab1
----
-159
-3584
-7600

query I rowsort
SELECT DISTINCT - col2 * - col1 + ( - col1 * col0 ) FROM tab2
----
-3068
-697
620

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2582
SELECT ( col0 ) / + CAST( NULL AS SIGNED ) + 42 * - col0 + + col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2582
SELECT ( col0 ) / + CAST ( NULL AS INTEGER ) + 42 * - col0 + + col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT - + cor0.col1 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to b234798d4706314ba14eaad539d0aa88

query I rowsort
SELECT cor0.col2 + col1 * + col1 * cor0.col2 FROM tab1 AS cor0
----
16320
36558
5757

query I rowsort
SELECT - col1 + - 65 * col1 * - col1 AS col2 FROM tab0 AS cor0
----
480654
538174
611488

query I rowsort
SELECT DISTINCT - col0 * + col2 FROM tab0 cor0
----
-35
-7298
-792

query I rowsort
SELECT ALL 24 + + 5 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 1e7120ba8e9191084172ddced17e5eb2

query I rowsort
SELECT DISTINCT + 26 AS col2 FROM tab2, tab2 AS cor0
----
26

query I rowsort
SELECT - + 75 * col1 FROM tab1 AS cor0
----
-1950
-750
-975

onlyif mysql # use DIV operator for integer division
query I rowsort label-2590
SELECT - col1 + - col0 * ( col1 ) DIV - tab1.col0 AS col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2590
SELECT - col1 + - col0 * ( col1 ) / - tab1.col0 AS col1 FROM tab1
----
0
0
0

query I rowsort
SELECT col1 + col2 + + col0 FROM tab0
----
133
143
262

query I rowsort
SELECT ALL - 77 AS col1 FROM tab2, tab1 cor0
----
9 values hashing to 3a24155cb91ceff1e67bb51c07b72107

query I rowsort
SELECT DISTINCT 28 AS col1 FROM tab0
----
28

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2594
SELECT DISTINCT CAST( col0 AS SIGNED ) AS col1 FROM tab1
----
3
64
80

skipif mysql # not compatible
query I rowsort label-2594
SELECT DISTINCT CAST ( col0 AS INTEGER ) AS col1 FROM tab1
----
3
64
80

query I rowsort
SELECT + col0 + col0 * col2 * cor0.col0 FROM tab2 AS cor0
----
1330
158262
237237

onlyif mysql # use DIV operator for integer division
query I rowsort label-2596
SELECT + - 13 DIV col2 col2 FROM tab0 AS cor0
----
-13
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2596
SELECT + - 13 / col2 col2 FROM tab0 AS cor0
----
-13
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2597
SELECT - col1 + - col0 - + CAST( - cor0.col0 * col2 AS SIGNED ) AS col1 FROM tab2 cor0
----
151
1891
2906

skipif mysql # not compatible
query I rowsort label-2597
SELECT - col1 + - col0 - + CAST ( - cor0.col0 * col2 AS INTEGER ) AS col1 FROM tab2 cor0
----
151
1891
2906

query I rowsort
SELECT + - col0 * col0 + 40 AS col0 FROM tab0 AS cor0
----
-1185
-536
-7881

query I rowsort
SELECT DISTINCT - + 69 * col0 AS col1 FROM tab1 AS cor0
----
-207
-4416
-5520

query I rowsort
SELECT ALL + col0 * - col1 + col1 * col1 FROM tab1 AS cor0
----
-540
-871
598

query I rowsort
SELECT DISTINCT - cor0.col0 * - col1 AS col1 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT + ( cor0.col1 ) * - col2 FROM tab0 AS cor0
----
-2838
-7462
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 46 * - cor0.col1 col0 FROM tab2 cor0
----
-1426
-2714
-782

query I rowsort
SELECT ALL - - col1 * + col1 + col2 AS col0 FROM tab2 AS cor0
----
327
3507
988

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2605
SELECT DISTINCT + CAST( NULL AS DECIMAL ) * col1 + col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2605
SELECT DISTINCT + CAST ( NULL AS REAL ) * col1 + col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT col1 + 28 AS col2 FROM tab2 AS cor0
----
45
59
87

query I rowsort
SELECT ALL + + ( col1 ) + col1 FROM tab1 AS cor0
----
20
26
52

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2608
SELECT ALL - 76 + ( cor0.col1 ) + - CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2608
SELECT ALL - 76 + ( cor0.col1 ) + - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2609
SELECT DISTINCT + - CAST( + col2 AS SIGNED ) * col1 AS col1 FROM tab0 AS cor0
----
-2838
-7462
-97

skipif mysql # not compatible
query I rowsort label-2609
SELECT DISTINCT + - CAST ( + col2 AS INTEGER ) * col1 AS col1 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT - 19 + col1 AS col2 FROM tab1 AS cor0
----
-6
-9
7

query I rowsort
SELECT 94 * + col1 FROM tab1
----
1222
2444
940

query I rowsort
SELECT - 96 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to c89b545346f99713888a7934e4caa539

query I rowsort
SELECT - - 87 * col2 + col1 FROM tab1 cor0
----
4724
4969
8365

skipif mysql # not compatible
query I rowsort
SELECT + ( - col2 ) * - CAST ( 65 AS REAL ) + + col0 FROM tab0 AS cor0
----
100
2169
5419

onlyif mysql # use DIV operator for integer division
query I rowsort label-2615
SELECT + col2 + - ( cor0.col2 ) DIV cor0.col0 FROM tab0 cor0
----
1
32
82

skipif mysql # not compatible
query I rowsort label-2615
SELECT + col2 + - ( cor0.col2 ) / cor0.col0 FROM tab0 cor0
----
1
32
82

query I rowsort
SELECT DISTINCT - + col1 * + col2 + col0 AS col2 FROM tab1 AS cor0
----
-1168
-1401
-506

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2617
SELECT DISTINCT - col0 + - CAST( NULL AS SIGNED ) / col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2617
SELECT DISTINCT - col0 + - CAST ( NULL AS INTEGER ) / col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + col0 * - cor0.col1 + 30 AS col1 FROM tab0 AS cor0
----
-2034
-3365
-8069

query I rowsort
SELECT col2 + 34 * - col1 * + col2 AS col0 FROM tab2 AS cor0
----
-21926
-28431
-52130

query I rowsort
SELECT ALL + col2 * ( + col1 ) FROM tab1 AS cor0
----
1248
1404
570

onlyif mysql # use DIV operator for integer division
query I rowsort label-2621
SELECT + col1 DIV - 96 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2621
SELECT + col1 / - 96 FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT + col0 + + col2 AS col1 FROM tab1 cor0
----
121
176
57

query I rowsort
SELECT + - col1 + 44 FROM tab0 AS cor0
----
-42
-47
-53

onlyif mysql # use DIV operator for integer division
query I rowsort label-2624
SELECT - + col1 DIV ( col0 ) FROM tab2 cor0
----
-4
0
0

skipif mysql # not compatible
query I rowsort label-2624
SELECT - + col1 / ( col0 ) FROM tab2 cor0
----
-4
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2625
SELECT DISTINCT - - col0 * + CAST( + col1 AS SIGNED ) FROM tab0 cor0
----
2064
3395
8099

skipif mysql # not compatible
query I rowsort label-2625
SELECT DISTINCT - - col0 * + CAST ( + col1 AS INTEGER ) FROM tab0 cor0
----
2064
3395
8099

query I rowsort
SELECT - col1 + - cor0.col1 AS col1 FROM tab1 cor0
----
-20
-26
-52

onlyif mysql # use DIV operator for integer division
query I rowsort label-2627
SELECT ALL + - col2 + + col2 DIV - col2 FROM tab0 AS cor0
----
-2
-34
-83

skipif mysql # not compatible
query I rowsort label-2627
SELECT ALL + - col2 + + col2 / - col2 FROM tab0 AS cor0
----
-2
-34
-83

onlyif mysql # use DIV operator for integer division
query I rowsort label-2628
SELECT - col0 DIV ( col2 ) + + col0 FROM tab0 AS cor0
----
0
24
88

skipif mysql # not compatible
query I rowsort label-2628
SELECT - col0 / ( col2 ) + + col0 FROM tab0 AS cor0
----
0
24
88

query I rowsort
SELECT ALL + col0 * 33 FROM tab2 AS cor0
----
231
2574
2607

query I rowsort
SELECT ALL + col2 + col0 + + col0 AS col2 FROM tab0 AS cor0
----
260
71
81

query I rowsort
SELECT 80 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 878f012d707aab113cedaf56e6c52e94

query I rowsort
SELECT ALL - 29 + + col1 AS col1 FROM tab0 AS cor0
----
57
62
68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col1 * + col0 + col2 * - col2 + col0 col0 FROM tab0 AS cor0
----
1464
3429
999

query I rowsort
SELECT DISTINCT + - 38 + - col0 FROM tab2 cor0
----
-116
-117
-45

query I rowsort
SELECT DISTINCT - - col2 + 31 * col1 * + col1 FROM tab1 cor0
----
21010
3157
5335

query I rowsort
SELECT - - col1 * + col1 AS col0 FROM tab0 AS cor0
----
7396
8281
9409

query I rowsort
SELECT DISTINCT - col2 + - col0 * col1 FROM tab0
----
-2097
-3396
-8181

query I rowsort
SELECT ALL - col2 * + cor0.col1 AS col1 FROM tab0 cor0
----
-2838
-7462
-97

query I rowsort
SELECT ALL 6 AS col0 FROM tab0, tab1 cor0, tab2 AS cor1
----
27 values hashing to f1e8f0199f3714ee8fcc24ce0cc3ea04

onlyif mysql # use DIV operator for integer division
query I rowsort label-2640
SELECT + - col0 DIV + col2 AS col2 FROM tab1 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-2640
SELECT + - col0 / + col2 AS col2 FROM tab1 AS cor0
----
-1
0
0

query I rowsort
SELECT - + ( - cor0.col2 ) + - col1 * - col1 * - col2 FROM tab0 AS cor0
----
-244035
-678960
-9408

onlyif mysql # use DIV operator for integer division
query I rowsort label-2642
SELECT ALL + + col1 DIV + col1 col0 FROM tab0 cor0
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2642
SELECT ALL + + col1 / + col1 col0 FROM tab0 cor0
----
1
1
1

query I rowsort
SELECT ALL cor0.col0 * - col0 AS col1 FROM tab2 AS cor0
----
-49
-6084
-6241

query I rowsort
SELECT DISTINCT 66 FROM tab0, tab2 AS cor0
----
66

query I rowsort
SELECT - col1 * + col2 + ( cor0.col0 ) - - col1 AS col1 FROM tab2 AS cor0
----
-1397
-550
-799

query I rowsort
SELECT DISTINCT + + 73 * - col2 + col0 AS col2 FROM tab2 AS cor0
----
-1820
-1964
-2695

query I rowsort
SELECT + + col2 + - col0 - ( - 96 * col1 ) FROM tab1 AS cor0
----
1264
2547
953

query I rowsort
SELECT ALL - col1 + - col2 + + 97 FROM tab1 AS cor0
----
-12
17
30

query I rowsort
SELECT ALL - tab0.col2 * col1 - col2 AS col1 FROM tab0
----
-2871
-7544
-98

query I rowsort
SELECT 57 AS col2 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 220a93709e207779b34ef74b544764a5

query I rowsort
SELECT + col2 + col0 * - 37 - col1 FROM tab2
----
-263
-2902
-2919

query I rowsort
SELECT ALL col0 * - col0 - ( - col0 ) * - ( col1 * + col0 ) FROM tab2 AS cor0
----
-112338
-1568
-365040

query I rowsort
SELECT ALL tab1.col0 * + col0 + tab1.col0 + + col0 * col1 FROM tab1
----
4800
7520
90

query I rowsort
SELECT ALL - 44 FROM tab1, tab1 AS cor0, tab1 cor1
----
27 values hashing to 38f05fdaaf15e64b62f27cd96f73fb79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + + col1 col2 FROM tab2 AS cor0
----
137
38
96

query I rowsort
SELECT DISTINCT - + col1 + - ( + cor0.col2 ) * col0 + - 34 AS col2 FROM tab1 AS cor0
----
-222
-3692
-7727

query I rowsort
SELECT + cor0.col0 * - col1 + + col2 * col1 AS col1 FROM tab0 AS cor0
----
-3298
-637
774

query I rowsort
SELECT ALL 20 * + col2 + - col2 * ( col2 ) AS col0 FROM tab1 AS cor0
----
-1836
-2109
-7296

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 1 * col0 + ( - cor0.col1 ) col1 FROM tab2 AS cor0
----
-137
-38
-96

query I rowsort
SELECT ALL + 56 * col2 AS col2 FROM tab2 AS cor0
----
1456
1512
2128

onlyif mysql # use DIV operator for integer division
query I rowsort label-2661
SELECT - cor0.col1 + col1 + col1 DIV - col1 col0 FROM tab1 AS cor0
----
-1
-1
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2661
SELECT - cor0.col1 + col1 + col1 / - col1 col0 FROM tab1 AS cor0
----
-1
-1
-1

query I rowsort
SELECT ALL col0 + - col2 * + col2 AS col1 FROM tab1 AS cor0
----
-2913
-3185
-9136

query I rowsort
SELECT ALL - 2 AS col0 FROM tab2
----
-2
-2
-2

query I rowsort
SELECT DISTINCT + col0 * - col2 AS col0 FROM tab0 cor0
----
-35
-7298
-792

query I rowsort
SELECT DISTINCT tab1.col0 + 0 FROM tab1
----
3
64
80

query I rowsort
SELECT - col0 + - 3 FROM tab0 AS cor0
----
-27
-38
-92

query I rowsort
SELECT ( - cor1.col2 ) FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 6a43e7f15194af73fe1c83385e6ebebc

query I rowsort
SELECT DISTINCT + col0 + + col1 * - col1 + - col0 AS col1 FROM tab2
----
-289
-3481
-961

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - tab2.col0 + 23 col2 FROM tab2
----
-55
-56
16

onlyif mysql # use DIV operator for integer division
query I rowsort label-2670
SELECT ALL col1 DIV 82 AS col1 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2670
SELECT ALL col1 / 82 AS col1 FROM tab0 AS cor0
----
1
1
1

query I rowsort
SELECT col2 * - 59 AS col0 FROM tab2 cor0
----
-1534
-1593
-2242

query I rowsort
SELECT DISTINCT + col0 * + col2 + col2 + - col0 AS col0 FROM tab1 AS cor0
----
213
3641
7696

query I rowsort
SELECT ALL + 80 + 47 FROM tab1, tab0 AS cor0
----
9 values hashing to 55400066049fe9a655ffc1f4b4055564

query I rowsort
SELECT + cor0.col2 * col2 + col2 * + cor0.col0 FROM tab1 cor0
----
16896
3078
6897

query I rowsort
SELECT ALL - col1 * + col1 * + cor0.col2 FROM tab0 AS cor0
----
-244068
-679042
-9409

query I rowsort
SELECT - 84 + + col0 AS col1 FROM tab1 AS cor0
----
-20
-4
-81

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2677
SELECT + CAST( NULL AS SIGNED ) + + col0 * 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-2677
SELECT + CAST ( NULL AS INTEGER ) + + col0 * col2 col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2678
SELECT + ( ( col2 ) ) * CAST( 38 AS SIGNED ) - - col1 col0 FROM tab0 AS cor0
----
1340
135
3207

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2678
SELECT + ( ( col2 ) ) * CAST ( 38 AS INTEGER ) - - col1 col0 FROM tab0 AS cor0
----
1340
135
3207

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * - 55 + col1 col0 FROM tab1 AS cor0
----
2996
3145
5293

query I rowsort
SELECT ALL - col2 * - 17 AS col0 FROM tab0 AS cor0
----
1394
17
561

query I rowsort
SELECT - + col2 - 51 * cor0.col2 * - ( 56 ) AS col2 FROM tab1 AS cor0
----
154170
162735
274080

query I rowsort
SELECT ALL col2 * col0 + - col2 AS col0 FROM tab0 AS cor0
----
34
7216
759

query I rowsort
SELECT DISTINCT - - col1 + + 99 * col2 AS col1 FROM tab1 AS cor0
----
5372
5653
9517

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( + col2 ) col2 FROM tab1 cor0
----
54
57
96

query I rowsort
SELECT ALL - ( 66 ) + col2 FROM tab1 AS cor0
----
-12
-9
30

query I rowsort
SELECT DISTINCT col1 * + ( tab2.col0 ) * col0 + - col1 * col1 FROM tab2
----
105808
355475
558

query I rowsort
SELECT 24 FROM tab2, tab1 cor0
----
9 values hashing to b0d834ef9e4346801b6aaa0e74b2c8ef

query I rowsort
SELECT + ( 29 ) + + col2 AS col1 FROM tab1 AS cor0
----
125
83
86

query I rowsort
SELECT - + ( 67 ) FROM tab2 AS cor0
----
-67
-67
-67

query I rowsort
SELECT col0 * ( + col1 ) + - tab0.col1 + + col0 FROM tab0
----
2002
3333
8097

onlyif mysql # use DIV operator for integer division
query I rowsort label-2691
SELECT ALL col1 * col0 DIV ( col1 ) + - 62 col1 FROM tab0
----
-27
-38
27

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2691
SELECT ALL col1 * col0 / ( col1 ) + - 62 col1 FROM tab0
----
-27
-38
27

query I rowsort
SELECT 31 FROM tab2, tab0 AS cor0
----
9 values hashing to d1ebd1cea4a9773069af34fbf8ea3540

query I rowsort
SELECT - col0 + + ( col2 * - 47 ) AS col0 FROM tab0 AS cor0
----
-1575
-3943
-82

query I rowsort
SELECT + 84 + + 23 - col1 * + col2 FROM tab0 AS cor0
----
-2731
-7355
10

query I rowsort
SELECT DISTINCT 38 FROM tab1, tab2 AS cor0, tab0 AS cor1, tab0 cor2
----
38

query I rowsort
SELECT DISTINCT + - col2 * + col2 + - 95 * 81 - col2 FROM tab2 AS cor0
----
-8397
-8451
-9177

onlyif mysql # use DIV operator for integer division
query I rowsort label-2697
SELECT ALL - ( + col0 ) + 65 DIV - 25 FROM tab1 AS cor0
----
-5
-66
-82

skipif mysql # not compatible
query I rowsort label-2697
SELECT ALL - ( + col0 ) + 65 / - 25 FROM tab1 AS cor0
----
-5
-66
-82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + + col1 col1 FROM tab0 AS cor0
----
172
182
194

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 64 * + col1 + col0 col1 FROM tab1 AS cor0
----
1667
704
912

query I rowsort
SELECT + col0 * + col2 + col2 AS col1 FROM tab2 AS cor0
----
2054
216
3040

query I rowsort
SELECT DISTINCT col0 * 69 * col2 FROM tab1
----
11178
251712
529920

query I rowsort
SELECT ALL 91 AS col1 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to deebbcfb9c7803a34dca6bd860849afe

query I rowsort
SELECT + col0 * col1 + 66 AS col2 FROM tab1 AS cor0
----
1106
144
706

query I rowsort
SELECT col0 + 79 FROM tab2 cor0
----
157
158
86

query I rowsort
SELECT + - cor0.col0 * 19 * cor0.col1 FROM tab2 AS cor0
----
-25517
-4123
-87438

query I rowsort
SELECT ( + col2 ) * - 70 + - 13 * col0 AS col0 FROM tab0
----
-2622
-525
-6897

query I rowsort
SELECT + 35 AS col2 FROM tab1, tab0 AS cor0, tab2 cor1
----
27 values hashing to 0d13dfd4c4a9d51ace3582c31cadcdbc

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2708
SELECT ALL CAST( NULL AS DECIMAL ) col2 FROM tab2, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2708
SELECT ALL CAST ( NULL AS REAL ) col2 FROM tab2, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT ALL - cor0.col0 * 55 + col0 AS col0 FROM tab2 AS cor0
----
-378
-4212
-4266

onlyif mysql # use DIV operator for integer division
query I rowsort label-2710
SELECT - + col0 DIV - ( + cor0.col2 ) AS col0 FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-2710
SELECT - + col0 / - ( + cor0.col2 ) AS col0 FROM tab1 AS cor0
----
0
0
1

query I rowsort
SELECT DISTINCT col0 + + col2 * - col2 AS col1 FROM tab2 AS cor0
----
-1365
-598
-722

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col1 * - col1 col0 FROM tab2 AS cor0
----
-289
-3481
-961

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2 cor0 CROSS JOIN tab0, tab2 AS cor1, tab0 AS cor2, tab2 AS cor3
----
3645 values hashing to 624c4b72c6f348b0f702418bfe39bd29

query I rowsort
SELECT ALL 45 AS col0 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 14cec871edc37b5056cda01c8331fdca

query I rowsort
SELECT DISTINCT col1 * ( col1 ) FROM tab0
----
7396
8281
9409

query I rowsort
SELECT DISTINCT + col1 * + col1 * - ( col1 ) AS col1 FROM tab1 AS cor0
----
-1000
-17576
-2197

query I rowsort
SELECT ALL 9 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to ebef7303942834ca1e6ca8604ec18a07

query I rowsort
SELECT + 52 * col0 FROM tab0 AS cor0
----
1248
1820
4628

query I rowsort
SELECT DISTINCT + - ( + col2 ) + col1 FROM tab0 AS cor0
----
53
9
96

query I rowsort
SELECT - - col1 * col1 FROM tab1 cor0
----
100
169
676

query I rowsort
SELECT 22 * col1 AS col2 FROM tab2
----
1298
374
682

onlyif mysql # use DIV operator for integer division
query I rowsort label-2722
SELECT ALL - + ( col1 ) DIV cor0.col2 FROM tab0 AS cor0
----
-1
-2
-97

skipif mysql # not compatible
query I rowsort label-2722
SELECT ALL - + ( col1 ) / cor0.col2 FROM tab0 AS cor0
----
-1
-2
-97

query I rowsort
SELECT ALL - + col2 * ( - 89 ) - col1 AS col0 FROM tab1 AS cor0
----
4780
5063
8531

query I rowsort
SELECT - col2 * + col0 * col1 + col0 FROM tab1
----
-36416
-4209
-99760

query I rowsort
SELECT col1 + tab0.col0 * + col2 FROM tab0
----
132
7389
878

query I rowsort
SELECT - 7 - tab1.col0 AS col0 FROM tab1
----
-10
-71
-87

query I rowsort
SELECT DISTINCT + col2 * + 52 * 4 + col0 * 18 FROM tab1 AS cor0
----
11286
13008
21408

query I rowsort
SELECT ALL + 77 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to d7b027bca5d37c67e29013904def8125

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 6 * - col0 * col0 + col0 col0 FROM tab0 AS cor0
----
3480
47615
7385

query I rowsort
SELECT ALL + - 34 FROM tab0 AS cor0
----
-34
-34
-34

query I rowsort
SELECT DISTINCT col0 * 13 AS col2 FROM tab0 AS cor0
----
1157
312
455

query I rowsort
SELECT DISTINCT + cor0.col1 + - 34 AS col2 FROM tab1 AS cor0
----
-21
-24
-8

query I rowsort
SELECT ALL + + 79 * col0 + col2 AS col0 FROM tab2 AS cor0
----
580
6188
6279

query I rowsort
SELECT DISTINCT - col2 * col1 AS col0 FROM tab1 cor0
----
-1248
-1404
-570

onlyif mysql # use DIV operator for integer division
query I rowsort label-2735
SELECT DISTINCT ( - 3 ) DIV + col2 AS col0 FROM tab0 AS cor0
----
-3
0

skipif mysql # not compatible
query I rowsort label-2735
SELECT DISTINCT ( - 3 ) / + col2 AS col0 FROM tab0 AS cor0
----
-3
0

query I rowsort
SELECT - + col0 * - cor0.col2 - - col2 AS col2 FROM tab1 AS cor0
----
216
3705
7776

query I rowsort
SELECT ALL + cor0.col2 + ( col0 ) AS col0 FROM tab0 AS cor0
----
171
36
57

onlyif mysql # use DIV operator for integer division
query I rowsort label-2738
SELECT 35 + + col1 DIV col0 AS col0 FROM tab2 AS cor0
----
35
35
39

skipif mysql # not compatible
query I rowsort label-2738
SELECT 35 + + col1 / col0 AS col0 FROM tab2 AS cor0
----
35
35
39

query I rowsort
SELECT DISTINCT 64 * 90 FROM tab0 AS cor0
----
5760

query I rowsort
SELECT DISTINCT + - col1 + 21 FROM tab0 AS cor0
----
-65
-70
-76

query I rowsort
SELECT ( - col1 ) + col0 * + cor0.col1 FROM tab1 AS cor0
----
1027
52
630

query I rowsort
SELECT ALL + col1 * + ( - col0 * 94 ) FROM tab0 AS cor0
----
-194016
-319130
-761306

query I rowsort
SELECT col2 * + 18 AS col1 FROM tab0
----
1476
18
594

query I rowsort
SELECT ALL col1 * - 40 FROM tab0
----
-3440
-3640
-3880

query I rowsort
SELECT ALL + 86 + 81 FROM tab0
----
167
167
167

onlyif mysql # use DIV operator for integer division
query I rowsort label-2746
SELECT DISTINCT col0 DIV 42 AS col2 FROM tab0
----
0
2

skipif mysql # not compatible
query I rowsort label-2746
SELECT DISTINCT col0 / 42 AS col2 FROM tab0
----
0
2

query I rowsort
SELECT - 22 + + col2 AS col0 FROM tab2 AS cor0
----
16
4
5

query I rowsort
SELECT ( col2 ) + + col2 * + ( - cor0.col1 ) FROM tab1 AS cor0
----
-1152
-1350
-513

onlyif mysql # use DIV operator for integer division
query I rowsort label-2749
SELECT + 58 + - col1 DIV + cor0.col0 FROM tab0 cor0
----
55
56
57

skipif mysql # not compatible
query I rowsort label-2749
SELECT + 58 + - col1 / + cor0.col0 FROM tab0 cor0
----
55
56
57

query I rowsort
SELECT - - col1 + - 32 AS col0 FROM tab0 AS cor0
----
54
59
65

query I rowsort
SELECT col1 + col1 + - col0 AS col2 FROM tab2 AS cor0
----
-45
40
55

query I rowsort
SELECT ALL col0 * ( - col0 ) + - col1 + - col2 FROM tab0
----
-1323
-695
-8094

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * + col1 + - col2 * - 55 + tab2.col1 col0 FROM tab2
----
2353
2753
3023

query I rowsort
SELECT + tab0.col0 - + col0 FROM tab0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - col0 + - col2 * col2 col0 FROM tab2
----
-101
-512
3926

query I rowsort
SELECT DISTINCT ( col0 ) + + col2 * + tab0.col1 FROM tab0
----
132
2862
7551

query I rowsort
SELECT - col0 * - col1 + ( col2 ) AS col2 FROM tab0 cor0
----
2097
3396
8181

query I rowsort
SELECT col0 + - col0 * ( + 5 ) AS col1 FROM tab2 AS cor0
----
-28
-312
-316

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2759
SELECT DISTINCT CAST( ( col0 ) AS SIGNED ) + col0 * col0 FROM tab0
----
1260
600
8010

skipif mysql # not compatible
query I rowsort label-2759
SELECT DISTINCT CAST ( ( col0 ) AS INTEGER ) + col0 * col0 FROM tab0
----
1260
600
8010

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2760
SELECT CAST( NULL AS SIGNED ) + tab0.col1 + - col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2760
SELECT CAST ( NULL AS INTEGER ) + tab0.col1 + - col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ( tab2.col1 ) + - col0 FROM tab2
----
-19
-62
24

query I rowsort
SELECT ( - tab2.col0 ) * col1 AS col1 FROM tab2
----
-1343
-217
-4602

query I rowsort
SELECT DISTINCT 21 FROM tab0, tab0 AS cor0
----
21

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2764
SELECT CAST( NULL AS SIGNED ) * 18 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2764
SELECT CAST ( NULL AS INTEGER ) * 18 AS col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - tab1.col0 * - col2 * tab1.col0 FROM tab1
----
233472
486
614400

query I rowsort
SELECT ALL 16 + col2 AS col0 FROM tab0
----
17
49
98

query I rowsort
SELECT - col2 * col0 * - col0 + col0 + col0 AS col1 FROM tab0
----
1295
19056
649700

onlyif mysql # use DIV operator for integer division
query I rowsort label-2768
SELECT DISTINCT + 49 + - col2 * col0 DIV 54 AS col2 FROM tab1
----
-18
-93
46

skipif mysql # not compatible
query I rowsort label-2768
SELECT DISTINCT + 49 + - col2 * col0 / 54 AS col2 FROM tab1
----
-18
-93
46

onlyif mysql # use DIV operator for integer division
query I rowsort label-2769
SELECT DISTINCT - ( - tab0.col1 ) DIV - tab0.col2 + 10 AS col0 FROM tab0
----
-87
8
9

skipif mysql # not compatible
query I rowsort label-2769
SELECT DISTINCT - ( - tab0.col1 ) / - tab0.col2 + 10 AS col0 FROM tab0
----
-87
8
9

query I rowsort
SELECT + col2 * + col2 * - ( 24 + + col1 ) AS col0 FROM tab0
----
-119790
-121
-773260

onlyif mysql # use DIV operator for integer division
query I rowsort label-2771
SELECT DISTINCT - - col1 * col0 DIV cor0.col2 FROM tab1 AS cor0
----
1
10
11

skipif mysql # not compatible
query I rowsort label-2771
SELECT DISTINCT - - col1 * col0 / cor0.col2 FROM tab1 AS cor0
----
1
10
11

query I rowsort
SELECT ALL + + cor0.col0 + - col2 AS col1 FROM tab2 AS cor0
----
-20
41
52

query I rowsort
SELECT DISTINCT + 43 FROM tab2 cor0
----
43

query I rowsort
SELECT - 33 AS col1 FROM tab1, tab2 AS cor0, tab0 cor1
----
27 values hashing to bbc05afe7eb6fed16e9d75f7f74d1948

query I rowsort
SELECT ALL + + cor0.col2 * col0 + - col1 FROM tab1 AS cor0
----
136
3638
7667

query I rowsort
SELECT DISTINCT + 61 + + col2 FROM tab2 cor0
----
87
88
99

query I rowsort
SELECT - 70 + + col1 FROM tab1 cor0
----
-44
-57
-60

query I rowsort
SELECT DISTINCT + + 90 + col2 * - ( col1 + col1 ) AS col0 FROM tab0 AS cor0
----
-104
-14834
-5586

query I rowsort
SELECT - 21 + col1 FROM tab2 AS cor0
----
-4
10
38

query I rowsort
SELECT DISTINCT - + cor0.col0 * - cor0.col0 * + col0 AS col1 FROM tab2 cor0
----
343
474552
493039

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col1 * col1 col1 FROM tab1 AS cor0
----
-100
-169
-676

query I rowsort
SELECT ( + col0 ) + - ( - 6 ) * col0 AS col1 FROM tab0 AS cor0
----
168
245
623

query I rowsort
SELECT ALL + col0 + + col1 * col2 AS col1 FROM tab2 AS cor0
----
1612
725
844

query I rowsort
SELECT ALL cor0.col1 * + col0 AS col0 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT DISTINCT cor0.col2 FROM tab1 AS cor0 CROSS JOIN tab0, tab1 AS cor1
----
54
57
96

query I rowsort
SELECT DISTINCT - col2 - - col0 AS col1 FROM tab0 AS cor0
----
-9
34
7

query I rowsort
SELECT + col2 * ( - col0 ) AS col2 FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT + + cor0.col2 * 97 FROM tab1 AS cor0
----
5238
5529
9312

query I rowsort
SELECT DISTINCT col1 * + col0 - + col2 FROM tab0 AS cor0
----
2031
3394
8017

query I rowsort
SELECT ALL - col1 + - ( col2 + col2 ) * col0 FROM tab1 AS cor0
----
-15373
-350
-7306

query I rowsort
SELECT DISTINCT - col1 * + 25 AS col2 FROM tab2 AS cor0
----
-1475
-425
-775

onlyif mysql # use DIV operator for integer division
query I rowsort label-2792
SELECT ALL - cor0.col1 DIV 23 + - col1 FROM tab2 AS cor0
----
-17
-32
-61

skipif mysql # not compatible
query I rowsort label-2792
SELECT ALL - cor0.col1 / 23 + - col1 FROM tab2 AS cor0
----
-17
-32
-61

query I rowsort
SELECT ALL - - col2 * + col1 + - col2 * col1 AS col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + + col1 * col0 - cor0.col2 * 37 FROM tab0 AS cor0
----
3358
5065
843

query I rowsort
SELECT DISTINCT - + 17 + cor0.col2 AS col2 FROM tab2 AS cor0
----
10
21
9

query I rowsort
SELECT ALL + + col1 * - 56 - + col0 FROM tab2 AS cor0
----
-1031
-1743
-3382

query I rowsort
SELECT ALL + col1 * 42 + col0 FROM tab2 AS cor0
----
1309
2556
793

query I rowsort
SELECT - - cor0.col0 + col0 AS col1 FROM tab0 AS cor0
----
178
48
70

query I rowsort
SELECT + tab2.col2 - + 3 * + col2 FROM tab2
----
-52
-54
-76

query I rowsort
SELECT DISTINCT + col1 * col2 + - col2 AS col1 FROM tab0 AS cor0
----
2805
7380
96

query I rowsort
SELECT DISTINCT cor0.col2 * + 60 FROM tab1, tab0 AS cor0
----
1980
4920
60

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 - col0 col1 FROM tab1 AS cor0
----
-121
-176
-57

query I rowsort
SELECT col2 * - col1 + col0 + cor0.col0 AS col2 FROM tab0 cor0
----
-27
-2790
-7284

onlyif mysql # use DIV operator for integer division
query I rowsort label-2804
SELECT - + col0 DIV - col1 AS col0 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2804
SELECT - + col0 / - col1 AS col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT col1 + + col0 - col0 AS col0 FROM tab1 AS cor0
----
10
13
26

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2806
SELECT DISTINCT col1 + col0 * - CAST( 97 AS SIGNED ) + + tab2.col2 AS col0 FROM tab2
----
-621
-7481
-7608

skipif mysql # not compatible
query I rowsort label-2806
SELECT DISTINCT col1 + col0 * - CAST ( 97 AS INTEGER ) + + tab2.col2 AS col0 FROM tab2
----
-621
-7481
-7608

query I rowsort
SELECT col0 + cor0.col0 - 13 * col0 FROM tab0 AS cor0
----
-264
-385
-979

query I rowsort
SELECT col2 + + col0 - col0 AS col1 FROM tab0 AS cor0
----
1
33
82

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2809
SELECT - CAST( + cor0.col1 AS SIGNED ) * col0 FROM tab1 AS cor0
----
-1040
-640
-78

skipif mysql # not compatible
query I rowsort label-2809
SELECT - CAST ( + cor0.col1 AS INTEGER ) * col0 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT + 28 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to aad32232c428b3ecb5ada63f7e9b0a97

query I rowsort
SELECT - + col0 + ( col2 ) * col0 FROM tab1 AS cor0
----
159
3584
7600

query I rowsort
SELECT + col1 + + ( col0 ) AS col2 FROM tab1 AS cor0
----
29
74
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 38 col2 FROM tab2
----
38
38
38

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2814
SELECT DISTINCT - ( col0 * - CAST( NULL AS DECIMAL ) ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2814
SELECT DISTINCT - ( col0 * - CAST ( NULL AS REAL ) ) AS col2 FROM tab2
----
NULL

query I rowsort
SELECT ALL - 68 * col1 AS col2 FROM tab2
----
-1156
-2108
-4012

query I rowsort
SELECT + + col1 * cor0.col1 FROM tab0 cor0
----
7396
8281
9409

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col2 col2 FROM tab1, tab1 cor0
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17

query I rowsort
SELECT ALL - ( col0 ) * + 91 FROM tab0 AS cor0
----
-2184
-3185
-8099

query I rowsort
SELECT DISTINCT - - 68 + + col1 * - cor0.col1 AS col0 FROM tab0 AS cor0
----
-7328
-8213
-9341

onlyif mysql # use DIV operator for integer division
query I rowsort label-2820
SELECT + - col2 DIV - col1 col2 FROM tab1 AS cor0
----
2
5
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2820
SELECT + - col2 / - col1 col2 FROM tab1 AS cor0
----
2
5
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col1 + 76 ) col2 FROM tab0
----
162
167
173

query I rowsort
SELECT 7 * col0 FROM tab2 AS cor0
----
49
546
553

query I rowsort
SELECT + cor0.col0 + + cor0.col0 FROM tab0 AS cor0
----
178
48
70

query I rowsort
SELECT 27 FROM tab1 cor0
----
27
27
27

query I rowsort
SELECT ALL - ( - col0 * - 22 ) AS col1 FROM tab0
----
-1958
-528
-770

onlyif mysql # use DIV operator for integer division
query I rowsort label-2826
SELECT col2 + + cor0.col0 DIV + 86 AS col2 FROM tab0 AS cor0
----
1
33
83

skipif mysql # not compatible
query I rowsort label-2826
SELECT col2 + + cor0.col0 / + 86 AS col2 FROM tab0 AS cor0
----
1
33
83

onlyif mysql # use DIV operator for integer division
query I rowsort label-2827
SELECT ALL - col1 * 38 + + col0 DIV - col1 AS col2 FROM tab2 cor0
----
-1178
-2243
-650

skipif mysql # not compatible
query I rowsort label-2827
SELECT ALL - col1 * 38 + + col0 / - col1 AS col2 FROM tab2 cor0
----
-1178
-2243
-650

query I rowsort
SELECT DISTINCT - + col0 + 45 AS col1 FROM tab2 AS cor0
----
-33
-34
38

query I rowsort
SELECT ALL - col2 + col2 * col2 + col1 AS col0 FROM tab2 cor0
----
1423
709
733

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2830
SELECT ALL + CAST( NULL AS SIGNED ) col0 FROM tab0, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2830
SELECT ALL + CAST ( NULL AS INTEGER ) col0 FROM tab0, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT + col0 * col1 + + col0 FROM tab0 AS cor0
----
2088
3430
8188

query I rowsort
SELECT + + cor0.col2 + + col1 AS col1 FROM tab0 AS cor0
----
119
173
98

query I rowsort
SELECT ALL cor2.col1 FROM tab1, tab2 AS cor0, tab1 AS cor1, tab1 AS cor2
----
81 values hashing to d7d3fabcafbed14f0d6ffd37195c971c

query I rowsort
SELECT + tab1.col0 + - col2 AS col0 FROM tab1
----
-16
-51
7

query I rowsort
SELECT + 69 AS col0 FROM tab1, tab0 cor0
----
9 values hashing to 85d9b90a03b9def161891b13085271f7

query I rowsort
SELECT DISTINCT + 37 * + col2 FROM tab2
----
1406
962
999

query I rowsort
SELECT DISTINCT 28 * cor0.col1 AS col1 FROM tab2, tab0 AS cor0
----
2408
2548
2716

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2838
SELECT + CAST( ( + col0 ) AS SIGNED ) * + col2 FROM tab1
----
162
3648
7680

skipif mysql # not compatible
query I rowsort label-2838
SELECT + CAST ( ( + col0 ) AS INTEGER ) * + col2 FROM tab1
----
162
3648
7680

query I rowsort
SELECT ( - col1 ) * - col0 AS col0 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT - - ( col0 ) * - col0 + col0 AS col1 FROM tab2 AS cor0
----
-42
-6006
-6162

query I rowsort
SELECT - col0 + - col1 * - col0 AS col0 FROM tab1 cor0
----
576
75
960

query I rowsort
SELECT ALL - - cor0.col0 * - col0 FROM tab2 AS cor0
----
-49
-6084
-6241

query I rowsort
SELECT cor0.col2 * - col2 + 42 AS col2 FROM tab1 cor0
----
-2874
-3207
-9174

query I rowsort
SELECT DISTINCT + col2 * + col2 + col2 FROM tab2 cor0
----
1482
702
756

query I rowsort
SELECT col0 + + col0 * - col0 FROM tab1
----
-4032
-6
-6320

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + col0 * tab1.col1 col2 FROM tab1
----
576
75
960

query I rowsort
SELECT DISTINCT col0 + + tab2.col2 FROM tab2
----
104
117
34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + tab1.col1 * + col2 - + col0 col0 FROM tab1
----
1181
1427
516

query I rowsort
SELECT ALL col2 * col0 * col0 + + tab2.col2 + - col0 FROM tab2
----
1343
158132
237117

query I rowsort
SELECT DISTINCT - col2 + tab0.col1 * col2 AS col0 FROM tab0
----
2805
7380
96

query I rowsort
SELECT - col1 + col0 + + col0 * col0 FROM tab1
----
-14
4150
6467

onlyif mysql # use DIV operator for integer division
query I rowsort label-2852
SELECT + col0 + col2 DIV tab0.col2 FROM tab0
----
25
36
90

skipif mysql # not compatible
query I rowsort label-2852
SELECT + col0 + col2 / tab0.col2 FROM tab0
----
25
36
90

onlyif mysql # use DIV operator for integer division
query I rowsort label-2853
SELECT ALL + - col2 DIV + col2 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2853
SELECT ALL + - col2 / + col2 FROM tab1 AS cor0
----
-1
-1
-1

query IIIIII rowsort
SELECT * FROM tab0, tab1 AS cor0 WHERE ( NULL ) >= NULL
----

query I rowsort
SELECT col1 * + col1 + col2 - + col2 FROM tab0 AS cor0
----
7396
8281
9409

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * - col0 col2 FROM tab1 AS cor0
----
1040
640
78

query IIIIII rowsort
SELECT * FROM tab2, tab2 cor0 WHERE NOT NULL >= NULL
----

query I rowsort
SELECT DISTINCT - col1 + + col1 * - col0 FROM tab0 cor0
----
-2150
-3492
-8190

query I rowsort
SELECT ALL col1 * cor0.col2 * cor0.col2 + + col0 FROM tab1 AS cor0
----
119888
32554
75819

onlyif mysql # use DIV operator for integer division
query I rowsort label-2860
SELECT DISTINCT - col2 DIV cor0.col2 AS col0 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-2860
SELECT DISTINCT - col2 / cor0.col2 AS col0 FROM tab1 AS cor0
----
-1

query I rowsort
SELECT DISTINCT - col1 * + col1 + - col2 AS col0 FROM tab2 AS cor0
----
-327
-3507
-988

query I rowsort
SELECT + col0 * col2 + - cor0.col1 * col2 AS col2 FROM tab2 AS cor0
----
-648
2356
494

onlyif mysql # use DIV operator for integer division
query I rowsort label-2863
SELECT col1 DIV col1 + col1 * + cor0.col0 AS col2 FROM tab2 AS cor0
----
1344
218
4603

skipif mysql # not compatible
query I rowsort label-2863
SELECT col1 / col1 + col1 * + cor0.col0 AS col2 FROM tab2 AS cor0
----
1344
218
4603

onlyif mysql # use DIV operator for integer division
query I rowsort label-2864
SELECT ALL - + col1 DIV col0 + - col0 FROM tab1 AS cor0
----
-11
-64
-80

skipif mysql # not compatible
query I rowsort label-2864
SELECT ALL - + col1 / col0 + - col0 FROM tab1 AS cor0
----
-11
-64
-80

query I rowsort
SELECT - - col2 * - col0 * - col1 FROM tab2 AS cor0
----
119652
51034
5859

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 * + col2 + + col0 * col0 col1 FROM tab2 AS cor0
----
238
8112
9243

onlyif mysql # use DIV operator for integer division
query I rowsort label-2867
SELECT ALL - col2 DIV cor0.col0 + - cor0.col1 FROM tab2 AS cor0
----
-17
-34
-59

skipif mysql # not compatible
query I rowsort label-2867
SELECT ALL - col2 / cor0.col0 + - cor0.col1 FROM tab2 AS cor0
----
-17
-34
-59

query I rowsort
SELECT DISTINCT - - col0 * cor0.col2 + col2 AS col1 FROM tab2 AS cor0
----
2054
216
3040

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab1.col1 - + col2 col0 FROM tab1
----
-109
-67
-80

query I rowsort
SELECT DISTINCT col1 - col0 AS col2 FROM tab1 AS cor0
----
-54
-67
23

query I rowsort
SELECT - + cor0.col1 + - col1 AS col0 FROM tab0 AS cor0
----
-172
-182
-194

query I rowsort
SELECT DISTINCT cor0.col1 * + col1 + col2 FROM tab2 cor0
----
327
3507
988

query I rowsort
SELECT + + 11 FROM tab0 cor0
----
11
11
11

query I rowsort
SELECT + + 17 * + cor0.col1 AS col0 FROM tab0 AS cor0
----
1462
1547
1649

query I rowsort
SELECT ALL + - 91 + - col1 FROM tab0 AS cor0
----
-177
-182
-188

query I rowsort
SELECT DISTINCT - + ( col1 ) * cor0.col1 FROM tab0 AS cor0
----
-7396
-8281
-9409

query I rowsort
SELECT ( + col0 ) * + col2 FROM tab0
----
35
7298
792

query III rowsort
SELECT * FROM tab2 WHERE ( NULL ) NOT BETWEEN - col1 AND NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-2879
SELECT ALL - col0 + col0 DIV + col0 FROM tab1
----
-2
-63
-79

skipif mysql # not compatible
query I rowsort label-2879
SELECT ALL - col0 + col0 / + col0 FROM tab1
----
-2
-63
-79

query I rowsort
SELECT tab2.col1 + tab2.col2 * - col1 FROM tab2
----
-1475
-629
-806

onlyif mysql # use DIV operator for integer division
query I rowsort label-2881
SELECT col2 * col0 DIV col1 - - col0 FROM tab1
----
428
670
9

skipif mysql # not compatible
query I rowsort label-2881
SELECT col2 * col0 / col1 - - col0 FROM tab1
----
428
670
9

query I rowsort
SELECT DISTINCT col0 + + col1 * col2 AS col0 FROM tab0
----
132
2862
7551

query I rowsort
SELECT DISTINCT tab2.col2 + + tab2.col1 AS col2 FROM tab2
----
55
58
85

query I rowsort
SELECT + col0 - - col0 FROM tab1 WHERE NOT col1 IN ( col1 )
----

query I rowsort
SELECT ALL col2 - tab1.col0 FROM tab1
----
-7
16
51

query I rowsort
SELECT DISTINCT tab0.col1 + col0 * + col2 AS col0 FROM tab0
----
132
7389
878

query I rowsort
SELECT tab1.col0 * col1 - + tab1.col0 AS col1 FROM tab1 WHERE NOT NULL IN ( col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * - col2 col0 FROM tab1
----
162
3648
7680

query I rowsort
SELECT ALL col2 + + col2 * + col0 + col2 FROM tab1
----
270
3762
7872

query I rowsort
SELECT col0 AS col2 FROM tab2 WHERE NOT NULL BETWEEN ( NULL ) AND - col2
----

query I rowsort
SELECT DISTINCT col2 + col2 + - col0 AS col1 FROM tab2
----
-26
-3
47

query I rowsort
SELECT ALL col0 * col1 * - tab1.col1 AS col1 FROM tab1
----
-13520
-2028
-6400

query I rowsort
SELECT ALL + col2 + + tab0.col0 + + col1 * + col0 FROM tab0
----
2121
3431
8270

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * col0 * + col0 col2 FROM tab2
----
-343
-474552
-493039

onlyif mysql # use DIV operator for integer division
query I rowsort label-2895
SELECT + col0 + + col0 * col2 DIV - col0 FROM tab2
----
-20
41
52

skipif mysql # not compatible
query I rowsort label-2895
SELECT + col0 + + col0 * col2 / - col0 FROM tab2
----
-20
41
52

query I rowsort
SELECT DISTINCT - col1 * col1 + - col2 + col2 AS col2 FROM tab1
----
-100
-169
-676

onlyif mysql # use DIV operator for integer division
query I rowsort label-2897
SELECT col1 DIV + col1 + col2 FROM tab0
----
2
34
83

skipif mysql # not compatible
query I rowsort label-2897
SELECT col1 / + col1 + col2 FROM tab0
----
2
34
83

onlyif mysql # use DIV operator for integer division
query I rowsort label-2898
SELECT DISTINCT - tab2.col1 DIV col1 + col1 FROM tab2
----
16
30
58

skipif mysql # not compatible
query I rowsort label-2898
SELECT DISTINCT - tab2.col1 / col1 + col1 FROM tab2
----
16
30
58

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL > col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * - tab0.col1 col0 FROM tab0
----
7396
8281
9409

query I rowsort
SELECT col0 + tab2.col1 * + col2 FROM tab2
----
1612
725
844

query I rowsort
SELECT ALL - col0 FROM tab2 WHERE NOT + col0 + col1 IN ( col1 )
----
-7
-78
-79

query I rowsort
SELECT DISTINCT - col0 + col1 * col1 FROM tab1
----
36
673
89

query I rowsort
SELECT ALL tab0.col2 + + col0 * - col1 * col0 + col0 FROM tab0
----
-118789
-49479
-720640

query I rowsort
SELECT col0 * + col2 + tab0.col1 AS col2 FROM tab0
----
132
7389
878

onlyif mysql # use DIV operator for integer division
query I rowsort label-2906
SELECT DISTINCT tab0.col2 * col0 * tab0.col1 + tab0.col0 DIV - col2 + + col0 col0 FROM tab0
----
3395
664206
68136

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2906
SELECT DISTINCT tab0.col2 * col0 * tab0.col1 + tab0.col0 / - col2 + + col0 col0 FROM tab0
----
3395
664206
68136

query I rowsort
SELECT + col0 * col2 + - col2 * col0 FROM tab1 AS cor0
----
0
0
0

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NULL ) NOT BETWEEN col1 AND ( col0 * - col1 )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( + col1 ) > - col0 + + col2 / + col0
----

query I rowsort
SELECT - col2 * cor0.col2 AS col0 FROM tab2 AS cor0
----
-1444
-676
-729

query I rowsort
SELECT + col1 + - tab2.col1 FROM tab2
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL NOT BETWEEN col1 + col1 AND col1
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + col1 NOT IN ( - col2 * col2 )
----

query I rowsort
SELECT ALL tab1.col1 * col0 + col2 AS col0 FROM tab1
----
1136
132
697

onlyif mysql # use DIV operator for integer division
query I rowsort label-2915
SELECT ALL - col0 DIV + col1 + + col0 + col0 * + col0 * + col0 FROM tab1 AS cor0
----
262202
30
512074

skipif mysql # not compatible
query I rowsort label-2915
SELECT ALL - col0 / + col1 + + col0 + col0 * + col0 * + col0 FROM tab1 AS cor0
----
262202
30
512074

query I rowsort
SELECT DISTINCT cor0.col2 * - col2 - + cor0.col0 AS col2 FROM tab2 cor0
----
-1523
-736
-754

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * + col2 + col2 col1 FROM tab1 AS cor0
----
216
3705
7776

onlyif mysql # use DIV operator for integer division
query I rowsort label-2918
SELECT DISTINCT cor0.col1 + + cor0.col1 DIV col0 FROM tab1 AS cor0
----
10
13
34

skipif mysql # not compatible
query I rowsort label-2918
SELECT DISTINCT cor0.col1 + + cor0.col1 / col0 FROM tab1 AS cor0
----
10
13
34

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2919
SELECT ALL CAST( NULL AS SIGNED ) * 65 / + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2919
SELECT ALL CAST ( NULL AS INTEGER ) * 65 / + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2920
SELECT ALL + - CAST( NULL AS SIGNED ) * col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2920
SELECT ALL + - CAST ( NULL AS INTEGER ) * col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col1 * 55 AS col0 FROM tab0 cor0
----
4730
5005
5335

skipif mysql # not compatible
query I rowsort
SELECT ALL - + CAST ( col1 AS REAL ) - - col1 FROM tab1 AS cor0
----
0
0
0

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 ( - ( cor0.col1 ) ) FROM tab2 AS cor0
----
-17
-31
-59

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2925
SELECT - CAST( NULL AS SIGNED ) * cor0.col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2925
SELECT - CAST ( NULL AS INTEGER ) * cor0.col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - ( col2 ) * + col2 FROM tab2 AS cor0
----
-1444
-676
-729

query I rowsort
SELECT - ( + 26 ) * col1 AS col2 FROM tab0 AS cor0
----
-2236
-2366
-2522

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 49 + - 8 * + cor0.col1 col0 FROM tab1 AS cor0
----
-159
-31
-55

query I rowsort
SELECT 85 - cor0.col0 FROM tab2 AS cor0
----
6
7
78

query I rowsort
SELECT 51 * col2 - - col1 * 39 FROM tab1 AS cor0
----
3297
3768
5403

query I rowsort
SELECT - + col0 * col1 * col2 - 90 AS col1 FROM tab2 AS cor0
----
-119742
-51124
-5949

query I rowsort
SELECT + 28 * + 60 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to fc5539e66d1840234e3d8a4cecdd121e

query I rowsort
SELECT DISTINCT - - cor0.col0 * - 90 FROM tab1 AS cor0
----
-270
-5760
-7200

query I rowsort
SELECT - col2 + ( - col0 ) FROM tab0 AS cor0
----
-171
-36
-57

query I rowsort
SELECT ALL - 37 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to ed4644af7729c2425ea6cc3d84c6504f

query I rowsort
SELECT ALL - col0 * 17 * 82 AS col0 FROM tab2
----
-108732
-110126
-9758

query I rowsort
SELECT col2 + - 28 FROM tab2
----
-1
-2
10

query I rowsort
SELECT - cor0.col0 * + 88 FROM tab1 AS cor0
----
-264
-5632
-7040

query I rowsort
SELECT + col0 * tab2.col0 AS col1 FROM tab2
----
49
6084
6241

query I rowsort
SELECT DISTINCT - 39 * - col2 + col0 AS col1 FROM tab2 AS cor0
----
1060
1092
1561

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2941
SELECT ALL - CAST( ( - col1 ) AS SIGNED ) FROM tab1 AS cor0
----
10
13
26

skipif mysql # not compatible
query I rowsort label-2941
SELECT ALL - CAST ( ( - col1 ) AS INTEGER ) FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT DISTINCT + cor0.col1 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
10
13
26

query I rowsort
SELECT DISTINCT + 84 AS col1 FROM tab2, tab1 AS cor0
----
84

query I rowsort
SELECT col0 - col0 AS col0 FROM tab0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-2945
SELECT - 89 DIV + 70 + col2 FROM tab1
----
53
56
95

skipif mysql # not compatible
query I rowsort label-2945
SELECT - 89 / + 70 + col2 FROM tab1
----
53
56
95

onlyif mysql # use DIV operator for integer division
query I rowsort label-2946
SELECT + col2 DIV - cor0.col0 AS col2 FROM tab1 AS cor0
----
-1
-18
0

skipif mysql # not compatible
query I rowsort label-2946
SELECT + col2 / - cor0.col0 AS col2 FROM tab1 AS cor0
----
-1
-18
0

query I rowsort
SELECT DISTINCT - ( + col0 ) AS col2 FROM tab1
----
-3
-64
-80

onlyif mysql # use DIV operator for integer division
query I rowsort label-2948
SELECT - col0 DIV - col0 AS col1 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2948
SELECT - col0 / - col0 AS col1 FROM tab1 AS cor0
----
1
1
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-2949
SELECT - + 20 DIV - col0 AS col2 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2949
SELECT - + 20 / - col0 AS col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - 64 * + col1 FROM tab2
----
-1088
-1984
-3776

query I rowsort
SELECT + tab0.col1 * + col0 AS col1 FROM tab0
----
2064
3395
8099

onlyif mysql # use DIV operator for integer division
query I rowsort label-2952
SELECT + cor0.col2 * col1 - col2 DIV - col0 FROM tab1 cor0
----
1249
1422
570

skipif mysql # not compatible
query I rowsort label-2952
SELECT + cor0.col2 * col1 - col2 / - col0 FROM tab1 cor0
----
1249
1422
570

query I rowsort
SELECT + 13 AS col0 FROM tab2 AS cor0
----
13
13
13

query I rowsort
SELECT + cor0.col1 - + col1 * 80 AS col2 FROM tab1 cor0
----
-1027
-2054
-790

onlyif mysql # use DIV operator for integer division
query I rowsort label-2955
SELECT + 70 DIV - tab1.col0 AS col2 FROM tab1
----
-1
-23
0

skipif mysql # not compatible
query I rowsort label-2955
SELECT + 70 / - tab1.col0 AS col2 FROM tab1
----
-1
-23
0

query I rowsort
SELECT - col2 + 32 + col0 FROM tab0 AS cor0
----
23
39
66

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2957
SELECT + - col2 + + CAST( NULL AS SIGNED ) * cor0.col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2957
SELECT + - col2 + + CAST ( NULL AS INTEGER ) * cor0.col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col0 * col0 + + col1 FROM tab2
----
6143
6258
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-2959
SELECT + - col2 DIV - ( - col0 + - col0 * - col2 ) FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2959
SELECT + - col2 / - ( - col0 + - col0 * - col2 ) FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - + col0 + 39 * + ( + col2 + + col0 ) AS col2 FROM tab1 AS cor0
----
2220
4655
6784

query I rowsort
SELECT DISTINCT cor1.col0 AS col2 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
3
64
80

query I rowsort
SELECT 32 + - col0 FROM tab0
----
-3
-57
8

query I rowsort
SELECT + col2 + + 25 * - 34 FROM tab2 AS cor0
----
-812
-823
-824

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2964
SELECT - col2 - + CAST( - col2 AS SIGNED ) FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2964
SELECT - col2 - + CAST ( - col2 AS INTEGER ) FROM tab0 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-2965
SELECT DISTINCT - - col1 DIV + col1 AS col1 FROM tab1 cor0
----
1

skipif mysql # not compatible
query I rowsort label-2965
SELECT DISTINCT - - col1 / + col1 AS col1 FROM tab1 cor0
----
1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2966
SELECT cor0.col1 + - CAST( NULL AS SIGNED ) * - tab1.col2 col0 FROM tab1, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2966
SELECT cor0.col1 + - CAST ( NULL AS INTEGER ) * - tab1.col2 col0 FROM tab1, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT cor0.col2 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3

query I rowsort
SELECT ALL - 56 AS col2 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 3d3dab400eef93c098acbbba3fc9bdc6

query I rowsort
SELECT DISTINCT - col2 + - col2 * col0 AS col0 FROM tab2
----
-2054
-216
-3040

query I rowsort
SELECT DISTINCT - col0 + col0 * col0 FROM tab1
----
4032
6
6320

query I rowsort
SELECT - col2 * col1 + + col0 + col2 * + col0 AS col2 FROM tab1
----
-1239
3142
6512

query I rowsort
SELECT + col1 * + tab1.col2 AS col0 FROM tab1
----
1248
1404
570

onlyif mysql # use DIV operator for integer division
query I rowsort label-2973
SELECT col1 DIV + col0 col0 FROM tab1
----
0
0
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2973
SELECT col1 / + col0 col0 FROM tab1
----
0
0
8

query I rowsort
SELECT ALL - col0 * col1 + 58 FROM tab1 AS cor0
----
-20
-582
-982

query I rowsort
SELECT DISTINCT - - col0 * - col1 AS col2 FROM tab0 AS cor0
----
-2064
-3395
-8099

onlyif mysql # use DIV operator for integer division
query I rowsort label-2976
SELECT + col0 DIV - col2 AS col0 FROM tab0 AS cor0
----
-1
-35
0

skipif mysql # not compatible
query I rowsort label-2976
SELECT + col0 / - col2 AS col0 FROM tab0 AS cor0
----
-1
-35
0

query I rowsort
SELECT ALL - col1 + - 5 AS col2 FROM tab1 AS cor0
----
-15
-18
-31

query I rowsort
SELECT DISTINCT + cor0.col0 + - cor0.col2 * col0 AS col1 FROM tab1 AS cor0
----
-159
-3584
-7600

query I rowsort
SELECT + 46 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 31818c9d4d325eb248735c97cb1dce39

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2980
SELECT + + col1 * CAST( - col0 AS SIGNED ) - + col0 col2 FROM tab2 AS cor0
----
-1422
-224
-4680

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2980
SELECT + + col1 * CAST ( - col0 AS INTEGER ) - + col0 col2 FROM tab2 AS cor0
----
-1422
-224
-4680

query I rowsort
SELECT ( - col2 ) - col0 * 27 FROM tab2
----
-2132
-216
-2171

query I rowsort
SELECT + tab0.col1 + col2 FROM tab0
----
119
173
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 27 col2 FROM tab2
----
-27
-27
-27

query I rowsort
SELECT - cor0.col1 * - tab0.col2 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to e5422173e1caaeeb02bbae09b3f4e2fd

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * 63 col2 FROM tab1
----
189
4032
5040

query I rowsort
SELECT + ( 37 ) + + col1 AS col1 FROM tab2
----
54
68
96

query I rowsort
SELECT ALL col0 + + cor0.col0 + col2 FROM tab1 cor0
----
185
256
60

query I rowsort
SELECT ALL ( 54 ) FROM tab2
----
54
54
54

query I rowsort
SELECT DISTINCT + col2 - cor0.col0 AS col0 FROM tab2 AS cor0
----
-41
-52
20

query I rowsort
SELECT col1 * - col2 + 11 AS col1 FROM tab0 AS cor0
----
-2827
-7451
-86

query I rowsort
SELECT DISTINCT + col0 * cor0.col0 AS col0 FROM tab1 AS cor0
----
4096
6400
9

query I rowsort
SELECT ALL + col1 + - col2 * col2 + col2 AS col0 FROM tab0 AS cor0
----
-6551
-970
97

query I rowsort
SELECT ALL + col0 + col0 * - col1 AS col2 FROM tab0 AS cor0
----
-2040
-3360
-8010

query I rowsort
SELECT DISTINCT col0 - - col0 FROM tab0 AS cor0
----
178
48
70

query I rowsort
SELECT DISTINCT + + col1 + col2 FROM tab1 cor0
----
109
67
80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2996
SELECT ALL + col1 * + col1 * CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2996
SELECT ALL + col1 * + col1 * CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-2997
SELECT DISTINCT + col1 + cor0.col2 DIV + 49 AS col1 FROM tab0 AS cor0
----
86
92
97

skipif mysql # not compatible
query I rowsort label-2997
SELECT DISTINCT + col1 + cor0.col2 / + 49 AS col1 FROM tab0 AS cor0
----
86
92
97

query I rowsort
SELECT + 49 * - col2 AS col2 FROM tab2 AS cor0
----
-1274
-1323
-1862

query I rowsort
SELECT + 45 FROM tab0
----
45
45
45

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * + col2 col1 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT DISTINCT + 11 + - col1 FROM tab1 AS cor0
----
-15
-2
1

query I rowsort
SELECT 8 + - col0 * + col1 FROM tab0 AS cor0
----
-2056
-3387
-8091

query I rowsort
SELECT ALL - + 49 AS col1 FROM tab1 AS cor0
----
-49
-49
-49

query I rowsort
SELECT DISTINCT + 79 + cor0.col2 FROM tab2 AS cor0
----
105
106
117

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 55 col0 FROM tab0
----
55

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3006
SELECT DISTINCT 48 + col2 + CAST( - col1 AS SIGNED ) FROM tab2 AS cor0
----
15
44
69

skipif mysql # not compatible
query I rowsort label-3006
SELECT DISTINCT 48 + col2 + CAST ( - col1 AS INTEGER ) FROM tab2 AS cor0
----
15
44
69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + + col2 col1 FROM tab2 cor0
----
-33
-4
21

query I rowsort
SELECT ALL + + col2 + col2 + + col1 FROM tab1 AS cor0
----
124
134
205

query I rowsort
SELECT ALL - cor0.col0 + + col2 FROM tab0 AS cor0
----
-34
-7
9

query I rowsort
SELECT DISTINCT + + col2 * - col2 AS col2 FROM tab2 AS cor0
----
-1444
-676
-729

query I rowsort
SELECT col1 * 51 * + col1 FROM tab1 AS cor0
----
34476
5100
8619

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 * + col1 * ( - cor0.col2 ) col2 FROM tab1 AS cor0
----
-36480
-4212
-99840

query I rowsort
SELECT col2 * + 96 AS col0 FROM tab0 AS cor0
----
3168
7872
96

query I rowsort
SELECT ALL + cor0.col2 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17

query I rowsort
SELECT - 80 FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to 26dbcc98d4b4e864ffa31be685a5dfbd

query I rowsort
SELECT + 83 AS col1 FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to 002a717a3d902d97220759065fb107c3

query I rowsort
SELECT col2 + ( col0 ) * col2 FROM tab2 AS cor0
----
2054
216
3040

query I rowsort
SELECT ALL - + ( col1 ) * cor0.col0 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT ALL ( cor0.col2 ) + - col0 AS col2 FROM tab2 AS cor0
----
-41
-52
20

query I rowsort
SELECT - 31 * + 5 AS col2 FROM tab1 cor0
----
-155
-155
-155

query I rowsort
SELECT ALL ( + 68 ) + - col1 * col0 AS col2 FROM tab2 AS cor0
----
-1275
-149
-4534

onlyif mysql # use DIV operator for integer division
query I rowsort label-3022
SELECT DISTINCT - + cor0.col2 DIV - ( col1 ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3022
SELECT DISTINCT - + cor0.col2 / - ( col1 ) FROM tab0 AS cor0
----
0

query I rowsort
SELECT + - 35 AS col0 FROM tab2 AS cor0
----
-35
-35
-35

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 52 + - col0 col1 FROM tab1 AS cor0
----
-116
-132
-55

query I rowsort
SELECT ALL - + cor0.col2 + + cor0.col0 * + col1 AS col1 FROM tab1 AS cor0
----
24
583
944

query I rowsort
SELECT DISTINCT 75 * col1 * - col2 AS col1 FROM tab1 AS cor0
----
-105300
-42750
-93600

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3027
SELECT ALL - - CAST( NULL AS SIGNED ) / - col2 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3027
SELECT ALL - - CAST ( NULL AS INTEGER ) / - col2 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT cor0.col2 * 68 AS col0 FROM tab1 AS cor0
----
3672
3876
6528

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( - col1 ) col2 FROM tab0 AS cor0
----
-86
-91
-97

query I rowsort
SELECT + - cor0.col1 * col2 * col0 FROM tab1 AS cor0
----
-36480
-4212
-99840

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3031
SELECT DISTINCT - + CAST( NULL AS SIGNED ) + - ( - col1 ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3031
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) + - ( - col1 ) AS col1 FROM tab1 AS cor0
----
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3032
SELECT DISTINCT + + CAST( col1 AS SIGNED ) * cor0.col2 AS col2 FROM tab0 AS cor0
----
2838
7462
97

skipif mysql # not compatible
query I rowsort label-3032
SELECT DISTINCT + + CAST ( col1 AS INTEGER ) * cor0.col2 AS col2 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT - + ( - 6 ) * col2 FROM tab0 AS cor0
----
198
492
6

query I rowsort
SELECT ALL - - ( col0 ) * col2 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT - 12 + + col1 FROM tab2 AS cor0
----
19
47
5

query I rowsort
SELECT - - col2 * - col2 + - col1 FROM tab1 AS cor0
----
-2942
-3259
-9229

query I rowsort
SELECT - - col0 + ( - col1 ) FROM tab0 AS cor0
----
-2
-62
-62

query I rowsort
SELECT ALL col2 + 43 * col1 * col2 FROM tab1
----
24567
53760
60426

query I rowsort
SELECT ALL - col2 * ( col0 ) FROM tab2
----
-189
-2028
-3002

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3040
SELECT DISTINCT CAST( - ( + col2 ) AS SIGNED ) + col2 * + 86 AS col1 FROM tab2 AS cor0
----
2210
2295
3230

skipif mysql # not compatible
query I rowsort label-3040
SELECT DISTINCT CAST ( - ( + col2 ) AS INTEGER ) + col2 * + 86 AS col1 FROM tab2 AS cor0
----
2210
2295
3230

query I rowsort
SELECT - 61 + - col0 * - col1 FROM tab1 AS cor0
----
17
579
979

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3042
SELECT ALL col2 * CAST( NULL AS SIGNED ) col1 FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3042
SELECT ALL col2 * CAST ( NULL AS INTEGER ) col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col1 * - tab1.col0 AS col1 FROM tab1
----
-1040
-640
-78

query I rowsort
SELECT + - 96 * col2 AS col1 FROM tab0 AS cor0
----
-3168
-7872
-96

query I rowsort
SELECT - 40 AS col2 FROM tab0, tab1 AS cor0, tab2 cor1
----
27 values hashing to 01aad4539198a6509248e086869f90a6

query I rowsort
SELECT DISTINCT + cor0.col0 AS col1 FROM tab0, tab0 AS cor0, tab2 cor1
----
24
35
89

query I rowsort
SELECT DISTINCT + cor0.col1 + + col1 * col2 FROM tab2 AS cor0
----
1593
663
868

query I rowsort
SELECT DISTINCT + 94 FROM tab2, tab1 AS cor0
----
94

query I rowsort
SELECT - 20 * + 82 AS col2 FROM tab1 AS cor0
----
-1640
-1640
-1640

query I rowsort
SELECT + ( - col2 ) * col2 * 25 AS col1 FROM tab1 AS cor0
----
-230400
-72900
-81225

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * col1 col0 FROM tab1 AS cor0
----
-1248
-1404
-570

onlyif mysql # use DIV operator for integer division
query I rowsort label-3052
SELECT - + col2 DIV col1 col2 FROM tab0 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3052
SELECT - + col2 / col1 col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + - col1 + col2 * - ( col1 ) AS col1 FROM tab2 cor0
----
-1593
-663
-868

query I rowsort
SELECT + - ( + col2 ) * col2 AS col0 FROM tab2 AS cor0
----
-1444
-676
-729

query I rowsort
SELECT - - col2 + + col1 AS col1 FROM tab2 cor0
----
55
58
85

query I rowsort
SELECT 68 + col1 * - 2 AS col0 FROM tab1 AS cor0
----
16
42
48

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + col0 * col1 col0 FROM tab1 AS cor0
----
1120
704
81

query I rowsort
SELECT - col0 * - cor0.col2 + - col0 FROM tab2 AS cor0
----
182
1950
2923

query I rowsort
SELECT ALL + + col0 + + col0 * ( cor0.col1 ) AS col0 FROM tab2 AS cor0
----
1422
224
4680

query I rowsort
SELECT + 95 * col1 + - 81 * - col2 FROM tab0 AS cor0
----
10843
15287
9296

query I rowsort
SELECT DISTINCT cor0.col0 + - col1 AS col1 FROM tab2 AS cor0
----
-24
19
62

query I rowsort
SELECT col2 * + ( - col2 ) + - col0 FROM tab1 AS cor0
----
-2919
-3313
-9296

query I rowsort
SELECT + + cor0.col2 * + 70 AS col1 FROM tab0 AS cor0
----
2310
5740
70

query I rowsort
SELECT DISTINCT + cor0.col2 + - cor0.col2 AS col0 FROM tab2, tab2 AS cor0, tab2 AS cor1, tab0 AS cor2
----
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3065
SELECT - - col0 + + CAST( - col2 AS SIGNED ) col1 FROM tab0 cor0
----
-9
34
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3065
SELECT - - col0 + + CAST ( - col2 AS INTEGER ) col1 FROM tab0 cor0
----
-9
34
7

query I rowsort
SELECT DISTINCT - col1 * - ( col2 ) FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT col0 + - col0 * 43 FROM tab2 AS cor0
----
-294
-3276
-3318

onlyif mysql # use DIV operator for integer division
query I rowsort label-3068
SELECT ALL + - col1 DIV - ( + col0 ) AS col2 FROM tab0 AS cor0
----
1
2
3

skipif mysql # not compatible
query I rowsort label-3068
SELECT ALL + - col1 / - ( + col0 ) AS col2 FROM tab0 AS cor0
----
1
2
3

query I rowsort
SELECT tab0.col1 + + 39 FROM tab0, tab2 cor0
----
9 values hashing to 5b8bfbf30c842116d4cc107054e5f865

query I rowsort
SELECT cor0.col2 + + col1 * + col0 FROM tab0 cor0
----
2097
3396
8181

query I rowsort
SELECT DISTINCT - cor0.col2 * 0 + - cor0.col1 AS col2 FROM tab1 AS cor0
----
-10
-13
-26

query I rowsort
SELECT ALL + - col2 - col1 * - col2 * + col2 FROM tab1 AS cor0
----
119712
32433
75762

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + + 39 col0 FROM tab2 AS cor0
----
1
12
13

query I rowsort
SELECT ALL + col2 * 56 AS col1 FROM tab0 AS cor0
----
1848
4592
56

query I rowsort
SELECT DISTINCT - cor0.col1 + - ( 32 ) FROM tab2 AS cor0
----
-49
-63
-91

skipif mysql # not compatible
query I rowsort
SELECT ALL CAST ( col1 AS REAL ) FROM tab1 cor0
----
10
13
26

onlyif mysql # use DIV operator for integer division
query I rowsort label-3077
SELECT ALL - - col0 DIV + col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3077
SELECT ALL - - col0 / + col1 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-3078
SELECT ALL ( + col1 ) + col0 DIV col0 AS col0 FROM tab1 AS cor0
----
11
14
27

skipif mysql # not compatible
query I rowsort label-3078
SELECT ALL ( + col1 ) + col0 / col0 AS col0 FROM tab1 AS cor0
----
11
14
27

query I rowsort
SELECT ALL - col1 * - col0 + + col1 * col2 FROM tab1 cor0
----
1210
1482
2288

query I rowsort
SELECT col0 + - 28 - tab1.col1 FROM tab1
----
-51
26
39

query I rowsort
SELECT + col2 * + col0 * col1 FROM tab0
----
3395
664118
68112

query I rowsort
SELECT - - col2 + col2 * - ( - col0 ) * col0 FROM tab1 AS cor0
----
233529
540
614496

query I rowsort
SELECT 24 + - col0 - - col2 * col2 FROM tab1 AS cor0
----
2937
3209
9160

query I rowsort
SELECT - col2 * col2 - ( cor0.col2 ) FROM tab2 AS cor0
----
-1482
-702
-756

onlyif mysql # use DIV operator for integer division
query I rowsort label-3085
SELECT + + col1 DIV + col1 AS col1 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3085
SELECT + + col1 / + col1 AS col1 FROM tab1 AS cor0
----
1
1
1

query I rowsort
SELECT + 49 FROM tab0, tab2 AS cor0, tab2, tab0 AS cor1
----
81 values hashing to e587c122dea39a2488ff88b884cea462

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 83 col0 FROM tab2
----
83

query I rowsort
SELECT ALL - cor0.col2 + - cor0.col0 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 9b6b643191a390a3a60049db62acd1a4

query I rowsort
SELECT DISTINCT - + 15 * + 72 AS col0 FROM tab2 AS cor0
----
-1080

query I rowsort
SELECT DISTINCT - 47 * - col0 FROM tab2 AS cor0
----
329
3666
3713

query I rowsort
SELECT DISTINCT - 26 AS col1 FROM tab2 AS cor0
----
-26

query I rowsort
SELECT - 4 * col1 FROM tab0 AS cor0
----
-344
-364
-388

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 89 col1 FROM tab2 AS cor0
----
-89

query I rowsort
SELECT ALL col0 * 11 AS col0 FROM tab0 AS cor0
----
264
385
979

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3095
SELECT DISTINCT + CAST( 31 AS SIGNED ) * cor0.col2 * + ( col1 * col2 ) FROM tab2 AS cor0
----
1236404
700569
760988

skipif mysql # not compatible
query I rowsort label-3095
SELECT DISTINCT + CAST ( 31 AS INTEGER ) * cor0.col2 * + ( col1 * col2 ) FROM tab2 AS cor0
----
1236404
700569
760988

query I rowsort
SELECT DISTINCT + 95 * + cor0.col2 * - col0 + ( 27 ) FROM tab1 cor0
----
-15363
-346533
-729573

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab1 cor0 CROSS JOIN tab1, tab2 AS cor1, tab2 AS cor2, tab1 AS cor3
----
3645 values hashing to 1b06ddc48fd89ff2b1df6d82072316da

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + col0 * col2 col2 FROM tab2
----
158
1969
2985

query I rowsort
SELECT ALL cor1.col1 AS col1 FROM tab2, tab1 AS cor0, tab0 cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd

query I rowsort
SELECT DISTINCT - 92 + 69 AS col1 FROM tab1, tab0, tab0 AS cor0
----
-23

query I rowsort
SELECT tab2.col2 - + col1 * col1 AS col1 FROM tab2
----
-251
-3455
-934

query I rowsort
SELECT ALL + 25 * - col1 AS col0 FROM tab0
----
-2150
-2275
-2425

onlyif mysql # use DIV operator for integer division
query I rowsort label-3103
SELECT DISTINCT ( + tab1.col0 ) DIV col1 AS col0 FROM tab1
----
0
6

skipif mysql # not compatible
query I rowsort label-3103
SELECT DISTINCT ( + tab1.col0 ) / col1 AS col0 FROM tab1
----
0
6

query I rowsort
SELECT - 78 - - col1 FROM tab2
----
-19
-47
-61

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * ( - col1 ) col1 FROM tab1
----
-1248
-1404
-570

query I rowsort
SELECT + 27 AS col1 FROM tab2, tab0, tab2 cor0
----
27 values hashing to 1a3cef5c33b8f87ffeded378fd207753

query I rowsort
SELECT - col0 + 67 FROM tab1
----
-13
3
64

query I rowsort
SELECT ALL - 59 * - col0 FROM tab1
----
177
3776
4720

query I rowsort
SELECT DISTINCT + col1 + + 50 FROM tab0 AS cor0
----
136
141
147

query I rowsort
SELECT DISTINCT col2 + + 74 FROM tab0 AS cor0
----
107
156
75

query I rowsort
SELECT ALL - 90 FROM tab0
----
-90
-90
-90

query I rowsort
SELECT DISTINCT col2 + + tab1.col0 AS col2 FROM tab1
----
121
176
57

query I rowsort
SELECT col2 * + col1 + + 63 + col0 * col0 FROM tab2
----
6950
7681
949

query I rowsort
SELECT ALL 97 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 5e0d31ac41981bcdf6a665538a71a09c

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3115
SELECT col2 / CAST( NULL AS DECIMAL ) + 8 AS col2 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3115
SELECT col2 / CAST ( NULL AS REAL ) + 8 AS col2 FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-3116
SELECT DISTINCT + col0 + ( 58 ) DIV col1 FROM tab0 AS cor0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-3116
SELECT DISTINCT + col0 + ( 58 ) / col1 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT ALL - col1 * ( + col2 ) AS col0 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT col1 * col0 + col0 * col2 FROM tab0 AS cor0
----
15397
2856
3430

query I rowsort
SELECT ALL + - col0 + col1 FROM tab2 cor0
----
-19
-62
24

query I rowsort
SELECT ALL + col1 * 79 FROM tab2 AS cor0
----
1343
2449
4661

onlyif mysql # use DIV operator for integer division
query I rowsort label-3121
SELECT DISTINCT - col1 DIV + col1 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-3121
SELECT DISTINCT - col1 / + col1 FROM tab0 AS cor0
----
-1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3122
SELECT DISTINCT tab1.col2 + + CAST( NULL AS DECIMAL ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3122
SELECT DISTINCT tab1.col2 + + CAST ( NULL AS REAL ) FROM tab1
----
NULL

query I rowsort
SELECT col0 * - col0 * col2 + - tab2.col2 FROM tab2
----
-1350
-158210
-237196

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * - col1 * - col2 + col2 col0 FROM tab1
----
36537
4266
99936

query I rowsort
SELECT ALL - + cor0.col1 - 27 AS col1 FROM tab1 AS cor0
----
-37
-40
-53

query I rowsort
SELECT col2 + - 23 FROM tab0 cor0
----
-22
10
59

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3127
SELECT DISTINCT col2 * CAST( col0 AS SIGNED ) - cor0.col2 AS col2 FROM tab2 AS cor0
----
162
2002
2964

skipif mysql # not compatible
query I rowsort label-3127
SELECT DISTINCT col2 * CAST ( col0 AS INTEGER ) - cor0.col2 AS col2 FROM tab2 AS cor0
----
162
2002
2964

onlyif mysql # use DIV operator for integer division
query I rowsort label-3128
SELECT DISTINCT + col2 DIV + 34 AS col0 FROM tab1 AS cor0
----
1
2

skipif mysql # not compatible
query I rowsort label-3128
SELECT DISTINCT + col2 / + 34 AS col0 FROM tab1 AS cor0
----
1
2

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3129
SELECT + col0 * + ( 72 * col0 + - CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3129
SELECT + col0 * + ( 72 * col0 + - CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-3130
SELECT ALL + col1 DIV + 94 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3130
SELECT ALL + col1 / + 94 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + + col0 + 17 AS col2 FROM tab0 AS cor0
----
106
41
52

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-3133
SELECT - - 59 DIV cor0.col2 + - cor0.col2 FROM tab0 AS cor0
----
-32
-82
58

skipif mysql # not compatible
query I rowsort label-3133
SELECT - - 59 / cor0.col2 + - cor0.col2 FROM tab0 AS cor0
----
-32
-82
58

query I rowsort
SELECT DISTINCT + 19 + 3 AS col1 FROM tab2 cor0
----
22

query I rowsort
SELECT DISTINCT 23 * ( + col0 ) FROM tab0 AS cor0
----
2047
552
805

query I rowsort
SELECT 94 + - col2 * + col2 FROM tab2 AS cor0
----
-1350
-582
-635

query I rowsort
SELECT ALL + + 66 + 56 FROM tab2 AS cor0
----
122
122
122

query I rowsort
SELECT DISTINCT - ( col2 ) + col2 FROM tab2 AS cor0
----
0

query I rowsort
SELECT + - ( + 34 ) AS col2 FROM tab2 AS cor0
----
-34
-34
-34

query I rowsort
SELECT DISTINCT + col1 + - col2 * ( col1 ) FROM tab1
----
-1235
-1378
-560

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 - + col0 col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - + col0 + col2 + + 9 AS col2 FROM tab0 AS cor0
----
-25
18
2

query I rowsort
SELECT DISTINCT col2 + col0 - + col2 FROM tab2 AS cor0
----
7
78
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 75 - col2 col0 FROM tab1 AS cor0
----
-21
18
21

query I rowsort
SELECT ALL col0 * - cor0.col0 + + 95 * col1 AS col2 FROM tab1 AS cor0
----
-3146
-5165
2461

query I rowsort
SELECT DISTINCT + col2 * col1 + + cor0.col1 FROM tab1 AS cor0
----
1261
1430
580

query I rowsort
SELECT ALL ( col2 ) * 41 + - cor0.col2 AS col2 FROM tab0 AS cor0
----
1320
3280
40

query I rowsort
SELECT ALL + col1 * col0 + + col1 AS col2 FROM tab1
----
104
1053
650

query I rowsort
SELECT ALL + 92 * col1 FROM tab0 AS cor0
----
7912
8372
8924

query I rowsort
SELECT DISTINCT col0 * col0 + - ( - col2 ) FROM tab1 AS cor0
----
4153
63
6496

onlyif mysql # use DIV operator for integer division
query I rowsort label-3151
SELECT 48 * + col1 DIV ( - cor0.col1 ) FROM tab1 AS cor0
----
-48
-48
-48

skipif mysql # not compatible
query I rowsort label-3151
SELECT 48 * + col1 / ( - cor0.col1 ) FROM tab1 AS cor0
----
-48
-48
-48

query I rowsort
SELECT ALL ( + col1 ) * + col1 AS col0 FROM tab2 AS cor0
----
289
3481
961

query I rowsort
SELECT col0 + col1 * col1 AS col2 FROM tab2 AS cor0
----
3559
368
968

query I rowsort
SELECT ALL 78 AS col0 FROM tab1 AS cor0
----
78
78
78

query I rowsort
SELECT DISTINCT - + 41 + + col1 + + col0 FROM tab1 AS cor0
----
-12
33
52

query I rowsort
SELECT DISTINCT - 92 + + col2 - col0 AS col0 FROM tab1 AS cor0
----
-41
-76
-99

query I rowsort
SELECT ALL - ( col2 ) + - 3 FROM tab2 AS cor0
----
-29
-30
-41

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + - col1 col2 FROM tab1 cor0
----
-20
-26
-52

query I rowsort
SELECT DISTINCT + cor0.col1 + col2 * 18 FROM tab0 AS cor0
----
115
1567
680

query I rowsort
SELECT + 58 + col1 * - ( 49 ) FROM tab1
----
-1216
-432
-579

query I rowsort
SELECT - + col2 * col1 + cor0.col1 AS col1 FROM tab2 AS cor0
----
-1475
-629
-806

query I rowsort
SELECT ALL - col0 * - col1 + col0 AS col0 FROM tab2
----
1422
224
4680

query I rowsort
SELECT ( - col0 ) * 70 * col0 FROM tab1 AS cor0
----
-286720
-448000
-630

query I rowsort
SELECT - col2 + + col0 + + 26 FROM tab1 cor0
----
-25
10
33

onlyif mysql # use DIV operator for integer division
query I rowsort label-3165
SELECT ALL - col1 DIV col0 AS col0 FROM tab0
----
-1
-2
-3

skipif mysql # not compatible
query I rowsort label-3165
SELECT ALL - col1 / col0 AS col0 FROM tab0
----
-1
-2
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab1.col0 col1 FROM tab1, tab0, tab1 cor0
----
27 values hashing to 729c1edda9332398299f39cd174ed840

query I rowsort
SELECT - tab1.col2 * + col0 + col0 AS col0 FROM tab1
----
-159
-3584
-7600

query I rowsort
SELECT - 27 + 20 FROM tab0
----
-7
-7
-7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( col1 + + tab0.col0 * - 12 ) col2 FROM tab0
----
-202
-323
-977

query I rowsort
SELECT DISTINCT col0 * tab0.col1 * + col2 AS col0 FROM tab0
----
3395
664118
68112

query I rowsort
SELECT col1 * + col0 * - tab1.col0 FROM tab1
----
-234
-40960
-83200

query I rowsort
SELECT cor0.col1 + - col1 * + col0 * + col0 AS col0 FROM tab0 cor0
----
-118728
-49450
-720720

query I rowsort
SELECT - - col1 + col0 + + col1 FROM tab0 AS cor0
----
196
229
271

query I rowsort
SELECT - cor0.col1 + - col1 + - ( - col2 ) * col0 AS col0 FROM tab1 AS cor0
----
110
3628
7654

query I rowsort
SELECT ALL + 44 AS col1 FROM tab1, tab2 AS cor0, tab0 cor1
----
27 values hashing to 0cc3e52e781e46962291c3060c6ae73b

query I rowsort
SELECT DISTINCT + + col2 + 70 FROM tab0 AS cor0
----
103
152
71

query I rowsort
SELECT ALL cor0.col1 * - col1 - - 40 FROM tab2 AS cor0
----
-249
-3441
-921

query I rowsort
SELECT cor0.col0 + cor0.col0 AS col0 FROM tab0 cor0
----
178
48
70

query I rowsort
SELECT DISTINCT col0 + 46 AS col0 FROM tab2 AS cor0
----
124
125
53

query I rowsort
SELECT ALL - col1 + + 21 FROM tab1 cor0
----
-5
11
8

query I rowsort
SELECT - + cor0.col1 * - col1 + + col1 FROM tab2 AS cor0
----
306
3540
992

query I rowsort
SELECT DISTINCT col0 + 87 FROM tab0 AS cor0
----
111
122
176

query I rowsort
SELECT DISTINCT - 52 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-52

query I rowsort
SELECT - 68 FROM tab0, tab1 AS cor0
----
9 values hashing to 5febf382d36d6e0191889c41b928786f

query I rowsort
SELECT 5 * + col0 FROM tab2 AS cor0
----
35
390
395

onlyif mysql # use DIV operator for integer division
query I rowsort label-3186
SELECT + 27 DIV - cor2.col0 FROM tab2, tab0 AS cor0, tab0 AS cor1, tab0 AS cor2
----
81 values hashing to 063db608d01f692c861786cda5bbbc09

skipif mysql # not compatible
query I rowsort label-3186
SELECT + 27 / - cor2.col0 FROM tab2, tab0 AS cor0, tab0 AS cor1, tab0 AS cor2
----
81 values hashing to 063db608d01f692c861786cda5bbbc09

query I rowsort
SELECT + ( + 32 ) * + col0 * ( - col0 ) FROM tab0 cor0
----
-18432
-253472
-39200

onlyif mysql # use DIV operator for integer division
query I rowsort label-3188
SELECT + 19 - col1 DIV + cor0.col0 FROM tab2 AS cor0
----
15
19
19

skipif mysql # not compatible
query I rowsort label-3188
SELECT + 19 - col1 / + cor0.col0 FROM tab2 AS cor0
----
15
19
19

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3189
SELECT + + CAST( - 77 AS SIGNED ) col0 FROM tab0 cor0
----
-77
-77
-77

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3189
SELECT + + CAST ( - 77 AS INTEGER ) col0 FROM tab0 cor0
----
-77
-77
-77

onlyif mysql # use DIV operator for integer division
query I rowsort label-3190
SELECT ( ( + col0 ) ) + col0 DIV - 81 + col1 AS col0 FROM tab2
----
137
38
96

skipif mysql # not compatible
query I rowsort label-3190
SELECT ( ( + col0 ) ) + col0 / - 81 + col1 AS col0 FROM tab2
----
137
38
96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3191
SELECT CAST( NULL AS SIGNED ) + + col0 AS col2 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3191
SELECT CAST ( NULL AS INTEGER ) + + col0 AS col2 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - ( tab0.col2 ) AS col0 FROM tab0
----
-1
-33
-82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 83 + tab0.col2 - col2 col0 FROM tab0
----
83
83
83

query I rowsort
SELECT - 72 AS col0 FROM tab1 cor0
----
-72
-72
-72

query I rowsort
SELECT ALL + + col2 * - col1 FROM tab2 cor0
----
-1534
-646
-837

query I rowsort
SELECT col1 * - col0 - col1 AS col0 FROM tab2 AS cor0
----
-1360
-248
-4661

query I rowsort
SELECT + 54 * cor0.col1 FROM tab2, tab1 cor0
----
9 values hashing to 1d42ad71a11ba0ed6bb01d077d612a3c

query I rowsort
SELECT + - 60 * col0 + 38 FROM tab0 AS cor0
----
-1402
-2062
-5302

query I rowsort
SELECT + - ( + col1 ) - - col1 * 7 AS col1 FROM tab2 cor0
----
102
186
354

query I rowsort
SELECT ALL + 97 FROM tab2 cor0
----
97
97
97

query I rowsort
SELECT + col2 + 65 FROM tab1 AS cor0
----
119
122
161

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3202
SELECT DISTINCT CAST( NULL AS SIGNED ) * - cor0.col1 AS col1 FROM tab1, tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3202
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - cor0.col1 AS col1 FROM tab1, tab1 AS cor0
----
NULL

query I rowsort
SELECT - col0 * ( col0 + col2 ) FROM tab0 cor0
----
-1260
-1368
-15219

query I rowsort
SELECT 60 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to a97561e17ecaa618227c75a57b268f33

query I rowsort
SELECT - 70 + col0 * + cor0.col2 AS col1 FROM tab2 AS cor0
----
119
1958
2932

query I rowsort
SELECT - + col2 + ( + col0 ) * 57 FROM tab2 AS cor0
----
372
4420
4465

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3207
SELECT + - CAST( col0 AS SIGNED ) * + col1 col1 FROM tab1 AS cor0
----
-1040
-640
-78

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3207
SELECT + - CAST ( col0 AS INTEGER ) * + col1 col1 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT - ( 10 ) * col1 AS col2 FROM tab1 AS cor0
----
-100
-130
-260

query I rowsort
SELECT DISTINCT + - 49 * col2 AS col0 FROM tab2 AS cor0
----
-1274
-1323
-1862

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + col1 * - col1 col1 FROM tab0 AS cor0
----
-7310
-8190
-9312

onlyif mysql # use DIV operator for integer division
query I rowsort label-3211
SELECT ALL - cor0.col1 DIV - col2 FROM tab0 AS cor0
----
1
2
97

skipif mysql # not compatible
query I rowsort label-3211
SELECT ALL - cor0.col1 / - col2 FROM tab0 AS cor0
----
1
2
97

query I rowsort
SELECT - col2 + col2 AS col0 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT + - col2 * - col2 * col0 + col1 * + col1 FROM tab0 AS cor0
----
33532
606717
9444

query I rowsort
SELECT ALL col1 + cor0.col0 * - col2 AS col0 FROM tab2 AS cor0
----
-158
-1969
-2985

query I rowsort
SELECT DISTINCT - - 6 * col2 AS col1 FROM tab0 cor0
----
198
492
6

query I rowsort
SELECT ALL col2 + col2 * + col1 AS col2 FROM tab0 AS cor0
----
2871
7544
98

query I rowsort
SELECT ALL + - cor0.col0 + cor0.col0 FROM tab1 cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-3218
SELECT DISTINCT 59 * + col2 + cor0.col1 DIV col0 AS col0 FROM tab1 AS cor0
----
3194
3363
5664

skipif mysql # not compatible
query I rowsort label-3218
SELECT DISTINCT 59 * + col2 + cor0.col1 / col0 AS col0 FROM tab1 AS cor0
----
3194
3363
5664

query I rowsort
SELECT DISTINCT + + ( + col0 ) + cor0.col1 AS col1 FROM tab2 AS cor0
----
137
38
96

query I rowsort
SELECT ALL - 77 - - col2 * col0 AS col0 FROM tab0 AS cor0
----
-42
715
7221

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * col2 col0 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT DISTINCT + col0 * + cor0.col2 + + col1 * + cor0.col1 FROM tab0 AS cor0
----
15579
8188
9444

query I rowsort
SELECT - cor0.col2 * col1 + - col1 FROM tab0 AS cor0
----
-194
-2924
-7553

query I rowsort
SELECT ALL col2 + col1 * - col1 * col2 FROM tab2 AS cor0
----
-10944
-25920
-90480

query I rowsort
SELECT + - col2 * - col1 + cor0.col2 AS col0 FROM tab1 AS cor0
----
1344
1458
627

onlyif mysql # use DIV operator for integer division
query I rowsort label-3226
SELECT DISTINCT - col0 + col0 + col0 DIV + col0 col2 FROM tab2 AS cor0
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3226
SELECT DISTINCT - col0 + col0 + col0 / + col0 col2 FROM tab2 AS cor0
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 - col0 col0 FROM tab1 AS cor0
----
-54
-67
23

query I rowsort
SELECT ALL + col0 + cor0.col0 * cor0.col2 + col0 AS col1 FROM tab0 AS cor0
----
105
7476
840

query I rowsort
SELECT ALL col0 * + col1 * col0 AS col1 FROM tab1 AS cor0
----
234
40960
83200

query I rowsort
SELECT DISTINCT + col2 * - col0 + + col0 * + col1 FROM tab2 AS cor0
----
-1659
2574
28

query I rowsort
SELECT ALL 97 AS col2 FROM tab0
----
97
97
97

query I rowsort
SELECT ALL + + cor0.col2 * - 59 FROM tab2 AS cor0
----
-1534
-1593
-2242

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3233
SELECT ALL - CAST( NULL AS SIGNED ) * 82 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-3233
SELECT ALL - CAST ( NULL AS INTEGER ) * 82 col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-3234
SELECT - - col0 - col2 DIV col1 AS col0 FROM tab0 AS cor0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-3234
SELECT - - col0 - col2 / col1 AS col0 FROM tab0 AS cor0
----
24
35
89

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3235
SELECT - CAST( - ( + col2 ) AS SIGNED ) + - col0 FROM tab2 AS cor0
----
-41
-52
20

skipif mysql # not compatible
query I rowsort label-3235
SELECT - CAST ( - ( + col2 ) AS INTEGER ) + - col0 FROM tab2 AS cor0
----
-41
-52
20

query I rowsort
SELECT DISTINCT - - col0 + cor0.col0 * cor0.col2 FROM tab2 AS cor0
----
196
2106
3081

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 97 * col1 col1 FROM tab2 AS cor0
----
1649
3007
5723

query I rowsort
SELECT DISTINCT + + col2 * - 49 * col2 AS col1 FROM tab1 AS cor0
----
-142884
-159201
-451584

onlyif mysql # use DIV operator for integer division
query I rowsort label-3239
SELECT DISTINCT + + 16 DIV - cor0.col1 col1 FROM tab2 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3239
SELECT DISTINCT + + 16 / - cor0.col1 col1 FROM tab2 AS cor0
----
0

query I rowsort
SELECT ALL 82 * + col2 AS col2 FROM tab2 AS cor0
----
2132
2214
3116

query I rowsort
SELECT col0 + - 25 FROM tab0 AS cor0
----
-1
10
64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + - col1 - col0 * col1 col1 FROM tab0 cor0
----
-2126
-3457
-8101

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * 20 col0 FROM tab2 AS cor0
----
1180
340
620

query I rowsort
SELECT + 15 + + col2 * - col1 AS col0 FROM tab2
----
-1519
-631
-822

onlyif mysql # use DIV operator for integer division
query I rowsort label-3245
SELECT ALL + col2 - + col1 DIV col2 FROM tab0 cor0
----
-96
31
81

skipif mysql # not compatible
query I rowsort label-3245
SELECT ALL + col2 - + col1 / col2 FROM tab0 cor0
----
-96
31
81

query I rowsort
SELECT + + col1 + - col1 * - col1 FROM tab0 AS cor0
----
7482
8372
9506

query I rowsort
SELECT ALL - col1 + tab2.col2 * col2 FROM tab2
----
1427
617
698

query I rowsort
SELECT tab0.col2 * - 47 + col2 * - col1 AS col1 FROM tab0
----
-11316
-144
-4389

query I rowsort
SELECT + col1 + tab2.col2 + col2 * + col2 * col0 FROM tab2
----
114131
5161
52813

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab2.col0 + + 98 + tab2.col2 col0 FROM tab2
----
132
202
215

query I rowsort
SELECT ALL + 13 * col2 + + tab0.col0 * col1 FROM tab0
----
2493
3408
9165

query I rowsort
SELECT DISTINCT - col2 + ( - tab1.col1 ) * + col0 FROM tab1
----
-1136
-132
-697

query I rowsort
SELECT ALL 43 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 199105619049271147956de52e7f5ed4

query I rowsort
SELECT col1 * - col0 * col0 FROM tab2
----
-106097
-1519
-358956

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL NOT BETWEEN ( NULL ) AND ( NULL )
----

query I rowsort
SELECT DISTINCT - col0 + + tab0.col1 AS col1 FROM tab0
----
2
62

query I rowsort
SELECT ALL + col2 + - tab2.col1 * col0 * + col1 + + col0 AS col1 FROM tab2
----
-22714
-271414
-6693

query I rowsort
SELECT tab0.col2 + col0 + col0 * + col2 * - col0 FROM tab0 WHERE ( NULL ) >= col1 * - col2
----

query I rowsort
SELECT - col0 AS col2 FROM tab1 WHERE ( NULL ) >= - col2
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col2 < ( col2 )
----

query I rowsort
SELECT ALL + tab0.col2 + - col2 FROM tab0
----
0
0
0

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND - col0
----

query I rowsort
SELECT DISTINCT col1 - col2 AS col0 FROM tab1
----
-28
-47
-83

query I rowsort
SELECT DISTINCT col2 - + col0 * col0 AS col1 FROM tab2
----
-22
-6058
-6203

query I rowsort
SELECT ALL - col0 + + col2 * + col0 FROM tab2
----
182
1950
2923

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + tab2.col2 col0 FROM tab2
----
52
54
76

query I rowsort
SELECT col2 * - col1 + - col2 AS col0 FROM tab2
----
-1560
-684
-864

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * col0 + + col0 col2 FROM tab1
----
1120
704
81

query I rowsort
SELECT DISTINCT cor0.col0 + col0 * + col2 FROM tab1 AS cor0
----
165
3712
7760

query I rowsort
SELECT ALL - col1 * - col2 AS col2 FROM tab1
----
1248
1404
570

query I rowsort
SELECT ALL + tab1.col1 * col1 AS col0 FROM tab1
----
100
169
676

query I rowsort
SELECT - - col2 - - cor0.col2 * - col1 AS col0 FROM tab0 AS cor0
----
-2805
-7380
-96

query I rowsort
SELECT + col2 * col0 - col1 FROM tab1 AS cor0
----
136
3638
7667

query I rowsort
SELECT - - cor0.col2 * col0 + cor0.col1 * cor0.col2 * - cor0.col0 AS col2 FROM tab1 cor0
----
-32832
-4050
-92160

onlyif mysql # use DIV operator for integer division
query I rowsort label-3275
SELECT - - col0 DIV + col1 AS col2 FROM tab0 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3275
SELECT - - col0 / + col1 AS col2 FROM tab0 cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-3276
SELECT DISTINCT - col0 + + col1 DIV + col1 FROM tab1 cor0
----
-2
-63
-79

skipif mysql # not compatible
query I rowsort label-3276
SELECT DISTINCT - col0 + + col1 / + col1 FROM tab1 cor0
----
-2
-63
-79

query I rowsort
SELECT + cor0.col1 * col2 FROM tab0 AS cor0 WHERE + col2 * col0 NOT BETWEEN NULL AND - col1 OR NOT NULL IN ( + cor0.col0 - + col2 )
----
2838
7462
97

query I rowsort
SELECT + col2 - + 27 FROM tab1 AS cor0
----
27
30
69

query I rowsort
SELECT ALL + col2 * - 43 AS col0 FROM tab0
----
-1419
-3526
-43

query I rowsort
SELECT + - col2 - col1 * col0 AS col1 FROM tab2 AS cor0
----
-1381
-244
-4628

query I rowsort
SELECT + col2 * + col1 - + col2 AS col2 FROM tab2 AS cor0
----
1508
608
810

skipif mysql # not compatible
query I rowsort
SELECT + - col1 + - CAST ( col0 AS REAL ) FROM tab0 AS cor0
----
-110
-132
-180

query I rowsort
SELECT - + 64 + 95 FROM tab0 AS cor0
----
31
31
31

query I rowsort
SELECT ALL + col0 - ( col2 ) AS col0 FROM tab1 AS cor0
----
-16
-51
7

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3285
SELECT ALL - - col0 * - 81 - col2 * CAST( col0 + col1 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-21969
-2967
-5574

skipif mysql # not compatible
query I rowsort label-3285
SELECT ALL - - col0 * - 81 - col2 * CAST ( col0 + col1 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-21969
-2967
-5574

query I rowsort
SELECT + - cor0.col2 * col0 + + cor0.col1 AS col0 FROM tab2 AS cor0
----
-158
-1969
-2985

query I rowsort
SELECT col0 * col1 + + col1 FROM tab1 AS cor0
----
104
1053
650

query I rowsort
SELECT ALL + 43 AS col1 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to ee5108f6248be48c54e069545f81c5d9

query I rowsort
SELECT - tab1.col1 * ( + col0 ) FROM tab1
----
-1040
-640
-78

query I rowsort
SELECT - col1 * cor0.col0 AS col1 FROM tab1 cor0
----
-1040
-640
-78

query I rowsort
SELECT - 77 + - cor0.col1 FROM tab0 AS cor0
----
-163
-168
-174

query I rowsort
SELECT - 52 * + col1 FROM tab1 AS cor0
----
-1352
-520
-676

query I rowsort
SELECT ALL - 89 * - col2 FROM tab0
----
2937
7298
89

query I rowsort
SELECT - col1 * col0 * - col2 FROM tab2 cor0
----
119652
51034
5859

query I rowsort
SELECT + tab0.col0 * - tab0.col0 FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to 164bdd441d6fbe34592d7280cc7d0af5

query I rowsort
SELECT ALL cor0.col1 AS col0 FROM tab0, tab1 AS cor0, tab0 cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3297
SELECT col2 * col2 * + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3297
SELECT col2 * col2 * + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 42 AS col2 FROM tab2
----
-42
-42
-42

query I rowsort
SELECT ALL - col2 + col1 * - col1 FROM tab1 AS cor0
----
-157
-265
-730

query I rowsort
SELECT DISTINCT + + col1 + - col0 AS col1 FROM tab1 cor0
----
-54
-67
23

query I rowsort
SELECT ALL col2 * cor0.col1 AS col1 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT 98 - col0 AS col2 FROM tab1
----
18
34
95

query I rowsort
SELECT DISTINCT - 44 AS col0 FROM tab2
----
-44

query I rowsort
SELECT col2 * + col1 + - ( + col1 ) FROM tab2
----
1475
629
806

query I rowsort
SELECT + col2 + ( - col2 ) FROM tab2
----
0
0
0

query I rowsort
SELECT - col1 - col1 * 24 AS col0 FROM tab1
----
-250
-325
-650

query I rowsort
SELECT col1 * + col2 * - col0 FROM tab1
----
-36480
-4212
-99840

query I rowsort
SELECT - - cor0.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-3309
SELECT + col2 * - CAST( col2 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-1444
-676
-729

skipif mysql # not compatible
query I rowsort label-3309
SELECT + col2 * - CAST ( col2 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-1444
-676
-729

query I rowsort
SELECT DISTINCT + col0 * - 18 FROM tab0 AS cor0
----
-1602
-432
-630

query I rowsort
SELECT ALL + col1 * 80 + col0 FROM tab1 AS cor0
----
1120
2083
864

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3312
SELECT - col0 * + CAST( - 13 + + col0 * - col1 AS SIGNED ) FROM tab2 cor0
----
107124
1610
359970

skipif mysql # not compatible
query I rowsort label-3312
SELECT - col0 * + CAST ( - 13 + + col0 * - col1 AS INTEGER ) FROM tab2 cor0
----
107124
1610
359970

query I rowsort
SELECT + 31 + - col2 FROM tab1
----
-23
-26
-65

query I rowsort
SELECT + ( col0 ) * tab1.col1 FROM tab1
----
1040
640
78

query I rowsort
SELECT + col1 * + ( cor0.col2 ) + ( - col0 ) * col2 FROM tab0 AS cor0
----
164
2046
62

query I rowsort
SELECT ALL - + col1 + + col1 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-3317
SELECT 85 DIV cor0.col0 AS col1 FROM tab2 AS cor0
----
1
1
12

skipif mysql # not compatible
query I rowsort label-3317
SELECT 85 / cor0.col0 AS col1 FROM tab2 AS cor0
----
1
1
12

query I rowsort
SELECT DISTINCT + ( cor0.col2 ) * + ( + 23 ) FROM tab1 AS cor0
----
1242
1311
2208

query I rowsort
SELECT ALL - cor0.col2 * col2 + - col2 FROM tab2 AS cor0
----
-1482
-702
-756

query I rowsort
SELECT ALL + ( col1 * col0 ) + col1 + + col2 AS col2 FROM tab0
----
2183
3493
8272

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 62 col1 FROM tab1, tab0 cor0 CROSS JOIN tab0, tab2 AS cor1, tab0 cor2
----
243 values hashing to b3af72ed520765fbff8032f1498e19b7

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3322
SELECT DISTINCT - ( + col1 ) * - col1 + - CAST( - col1 AS SIGNED ) FROM tab0
----
7482
8372
9506

skipif mysql # not compatible
query I rowsort label-3322
SELECT DISTINCT - ( + col1 ) * - col1 + - CAST ( - col1 AS INTEGER ) FROM tab0
----
7482
8372
9506

query I rowsort
SELECT 57 + col0 + + col0 * tab0.col1 FROM tab0
----
2145
3487
8245

query I rowsort
SELECT DISTINCT + col0 * col2 - + col1 FROM tab0 AS cor0
----
-62
706
7207

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3325
SELECT - - 4 * 61 + col2 / CAST( NULL AS SIGNED ) AS col0 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3325
SELECT - - 4 * 61 + col2 / CAST ( NULL AS INTEGER ) AS col0 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col0 - col2 * col2 AS col0 FROM tab1 AS cor0
----
-2919
-3313
-9296

query I rowsort
SELECT DISTINCT - col0 * col1 + - cor0.col2 * - cor0.col1 + col0 FROM tab0 AS cor0
----
-3263
-548
798

query I rowsort
SELECT DISTINCT - 16 + col1 FROM tab2 AS cor0
----
1
15
43

query I rowsort
SELECT ALL + 84 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to cadd876c26338fc58b9297e74fc324d8

query I rowsort
SELECT DISTINCT 9 AS col0 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
9

query I rowsort
SELECT ALL - 81 FROM tab0, tab1 AS cor0, tab0 cor1
----
27 values hashing to d0bfe8494f52235d9fcafb5ac5de3f81

query I rowsort
SELECT DISTINCT col1 + - 2 AS col0 FROM tab1
----
11
24
8

query I rowsort
SELECT + cor0.col1 * cor0.col1 * - col0 AS col1 FROM tab1 AS cor0
----
-13520
-2028
-6400

query I rowsort
SELECT - 22 FROM tab0 cor0
----
-22
-22
-22

query I rowsort
SELECT - 22 AS col2 FROM tab1, tab0 cor0
----
9 values hashing to fae46f8148b02964f7145eb6ed5819f9

query I rowsort
SELECT DISTINCT - col1 + col0 - + 4 * cor0.col0 AS col2 FROM tab0 AS cor0
----
-158
-202
-358

query I rowsort
SELECT DISTINCT - + col1 * 82 AS col2 FROM tab2 AS cor0
----
-1394
-2542
-4838

query I rowsort
SELECT - - col0 + 0 * col2 AS col0 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT ALL + col0 + + 55 AS col1 FROM tab2 AS cor0
----
133
134
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 + 36 col0 FROM tab0 cor0
----
118
37
69

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3341
SELECT ALL + col2 * + CAST( col0 AS SIGNED ) * col0 + 91 AS col0 FROM tab2 AS cor0
----
1414
158275
237249

skipif mysql # not compatible
query I rowsort label-3341
SELECT ALL + col2 * + CAST ( col0 AS INTEGER ) * col0 + 91 AS col0 FROM tab2 AS cor0
----
1414
158275
237249

query I rowsort
SELECT + col0 * col0 * - col1 AS col0 FROM tab2 AS cor0
----
-106097
-1519
-358956

query I rowsort
SELECT DISTINCT + col0 * ( + cor0.col0 ) AS col0 FROM tab0 cor0
----
1225
576
7921

query I rowsort
SELECT - col0 * col2 - cor0.col0 AS col2 FROM tab2 AS cor0
----
-196
-2106
-3081

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3345
SELECT DISTINCT - CAST( - 66 AS SIGNED ) * col2 AS col1 FROM tab0 AS cor0
----
2178
5412
66

skipif mysql # not compatible
query I rowsort label-3345
SELECT DISTINCT - CAST ( - 66 AS INTEGER ) * col2 AS col1 FROM tab0 AS cor0
----
2178
5412
66

query I rowsort
SELECT - ( - cor0.col2 ) + + col1 FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT ALL + - cor0.col2 + col2 FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT - ( + ( - col1 ) ) * ( + col0 ) + cor0.col1 AS col0 FROM tab2 cor0
----
1360
248
4661

query I rowsort
SELECT ALL + + 35 FROM tab0 cor0
----
35
35
35

query I rowsort
SELECT ALL ( col2 ) - col0 AS col2 FROM tab0 AS cor0
----
-34
-7
9

query I rowsort
SELECT DISTINCT - - 12 + + col2 + col1 * - 24 FROM tab2 AS cor0
----
-1378
-358
-705

query I rowsort
SELECT DISTINCT - col1 * col1 * col2 AS col2 FROM tab1 AS cor0
----
-16224
-36504
-5700

query I rowsort
SELECT DISTINCT - 68 FROM tab0 cor0
----
-68

onlyif mysql # use DIV operator for integer division
query I rowsort label-3354
SELECT - col0 DIV - 32 AS col0 FROM tab1
----
0
2
2

skipif mysql # not compatible
query I rowsort label-3354
SELECT - col0 / - 32 AS col0 FROM tab1
----
0
2
2

onlyif mysql # use DIV operator for integer division
query I rowsort label-3355
SELECT ALL + col0 - 43 DIV col0 FROM tab0
----
23
34
89

skipif mysql # not compatible
query I rowsort label-3355
SELECT ALL + col0 - 43 / col0 FROM tab0
----
23
34
89

onlyif mysql # use DIV operator for integer division
query I rowsort label-3356
SELECT col0 DIV - CAST( + 89 AS SIGNED ) AS col2 FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-3356
SELECT col0 / - CAST ( + 89 AS INTEGER ) AS col2 FROM tab0
----
-1
0
0

query I rowsort
SELECT DISTINCT + 47 AS col0 FROM tab1, tab0 AS cor0
----
47

query I rowsort
SELECT 57 * cor0.col1 AS col2 FROM tab2 cor0
----
1767
3363
969

query I rowsort
SELECT ( - col1 ) * - col0 FROM tab2 cor0
----
1343
217
4602

query I rowsort
SELECT + + col2 + + col0 * - col0 AS col0 FROM tab0 AS cor0
----
-1224
-543
-7839

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab0 AS cor0, tab0 cor1, tab0, tab0 cor2
----
3645 values hashing to 04ab51615fd2c7e492de6a59e98226e1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3362
SELECT ALL + CAST( NULL AS SIGNED ) + - 12 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3362
SELECT ALL + CAST ( NULL AS INTEGER ) + - 12 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col2 * col1 + + col2 FROM tab2
----
1560
684
864

query I rowsort
SELECT - 81 + - col1 AS col1 FROM tab2
----
-112
-140
-98

query I rowsort
SELECT DISTINCT - 92 + - 30 AS col0 FROM tab2
----
-122

query I rowsort
SELECT - 96 * + col2 FROM tab2
----
-2496
-2592
-3648

query I rowsort
SELECT + 88 AS col0 FROM tab2
----
88
88
88

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3368
SELECT ALL + CAST( + col0 AS SIGNED ) * col2 + - col2 FROM tab0
----
34
7216
759

skipif mysql # not compatible
query I rowsort label-3368
SELECT ALL + CAST ( + col0 AS INTEGER ) * col2 + - col2 FROM tab0
----
34
7216
759

query I rowsort
SELECT DISTINCT col1 + 23 FROM tab1
----
33
36
49

onlyif mysql # use DIV operator for integer division
query I rowsort label-3370
SELECT col1 DIV ( + col0 + + col1 ) FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3370
SELECT col1 / ( + col0 + + col1 ) FROM tab2
----
0
0
0

query I rowsort
SELECT col0 * + col2 - col1 FROM tab2
----
158
1969
2985

query I rowsort
SELECT DISTINCT + col0 + - col2 + - col0 FROM tab2
----
-26
-27
-38

query I rowsort
SELECT cor0.col1 + 2 AS col0 FROM tab1 AS cor0
----
12
15
28

query I rowsort
SELECT ALL col2 * - ( col1 + col1 ) AS col2 FROM tab2 AS cor0
----
-1292
-1674
-3068

query I rowsort
SELECT + col0 + col1 + + ( + col0 ) FROM tab1 AS cor0
----
138
173
32

onlyif mysql # use DIV operator for integer division
query I rowsort label-3376
SELECT ALL + + cor0.col0 DIV - ( col1 ) AS col2 FROM tab1 cor0
----
-6
-6
0

skipif mysql # not compatible
query I rowsort label-3376
SELECT ALL + + cor0.col0 / - ( col1 ) AS col2 FROM tab1 cor0
----
-6
-6
0

query I rowsort
SELECT + - col1 * 27 AS col1 FROM tab2 AS cor0
----
-1593
-459
-837

query I rowsort
SELECT DISTINCT col1 * + col2 + - 35 AS col2 FROM tab1 AS cor0
----
1213
1369
535

query I rowsort
SELECT + col1 * + col0 + col1 AS col2 FROM tab2
----
1360
248
4661

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab1.col1 col1 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892

query I rowsort
SELECT DISTINCT - - col0 * ( - col0 + col1 ) AS col0 FROM tab2 AS cor0
----
-1482
-4898
168

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3382
SELECT ALL - col0 * CAST( NULL AS SIGNED ) AS col2 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3382
SELECT ALL - col0 * CAST ( NULL AS INTEGER ) AS col2 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col0 * col2 * 14 FROM tab1 AS cor0
----
107520
2268
51072

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * + ( col0 ) + + col0 col0 FROM tab0 AS cor0
----
2088
3430
8188

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 93 col0 FROM tab0
----
-93

query I rowsort
SELECT + + col2 + - col2 AS col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT + + col2 - - 63 AS col0 FROM tab1 cor0
----
117
120
159

onlyif mysql # use DIV operator for integer division
query I rowsort label-3388
SELECT col2 + + cor0.col2 DIV + 57 FROM tab0 AS cor0
----
1
33
83

skipif mysql # not compatible
query I rowsort label-3388
SELECT col2 + + cor0.col2 / + 57 FROM tab0 AS cor0
----
1
33
83

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3389
SELECT - col2 * - CAST( NULL AS SIGNED ) + - cor0.col1 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3389
SELECT - col2 * - CAST ( NULL AS INTEGER ) + - cor0.col1 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - + col1 * 92 + - col0 * col2 - col1 AS col0 FROM tab1 AS cor0
----
-2580
-4578
-8889

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * - ( - ( + col1 ) ) + + 38 col0 FROM tab0 AS cor0
----
2102
3433
8137

onlyif mysql # use DIV operator for integer division
query I rowsort label-3392
SELECT + col1 + col2 DIV col1 col1 FROM tab1
----
15
20
28

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3392
SELECT + col1 + col2 / col1 col1 FROM tab1
----
15
20
28

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL BETWEEN ( NULL ) AND ( col2 - col0 * + col1 )
----

query I rowsort
SELECT DISTINCT col1 * col1 * - col0 AS col1 FROM tab2
----
-22831
-271518
-6727

query I rowsort
SELECT ALL col0 - + col0 * col2 AS col2 FROM tab2 WHERE + col0 >= NULL
----

query I rowsort
SELECT ALL + col1 + - tab2.col1 AS col2 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT tab1.col1 - tab1.col1 FROM tab1
----
0

query I rowsort
SELECT ALL - col2 + + col2 * - col0 FROM tab1
----
-216
-3705
-7776

query I rowsort
SELECT DISTINCT - col2 * + col0 FROM tab2
----
-189
-2028
-3002

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab2.col1 * col0 * col0 col2 FROM tab2
----
106097
1519
358956

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * tab0.col0 col1 FROM tab0
----
35
7298
792

query I rowsort
SELECT ALL tab2.col0 * + col0 * col0 AS col2 FROM tab2
----
343
474552
493039

query I rowsort
SELECT DISTINCT + tab2.col2 FROM tab2 WHERE NOT ( col0 + - col2 * - col0 * + col2 ) <= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab1.col1 + + col1 * - col0 * + col2 col2 FROM tab1
----
-36490
-4238
-99853

onlyif mysql # use DIV operator for integer division
query I rowsort label-3405
SELECT DISTINCT + tab1.col1 DIV - col0 + - col0 FROM tab1
----
-11
-64
-80

skipif mysql # not compatible
query I rowsort label-3405
SELECT DISTINCT + tab1.col1 / - col0 + - col0 FROM tab1
----
-11
-64
-80

query I rowsort
SELECT ALL col1 * col1 + tab2.col0 FROM tab2
----
3559
368
968

query I rowsort
SELECT - 50 * - col0 AS col2 FROM tab0 AS cor0
----
1200
1750
4450

query I rowsort
SELECT col0 FROM tab1 WHERE ( NULL ) <= col1 / + col0
----

query IIIIII rowsort
SELECT * FROM tab2, tab0 cor0 WHERE NOT ( NULL ) < ( NULL )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( col0 ) NOT IN ( - tab1.col1 + col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * + col1 + + col2 * - col1 col0 FROM tab0
----
-774
3298
637

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * + col1 * col1 + - col0 * col1 col0 FROM tab2
----
21488
266916
6510

onlyif mysql # use DIV operator for integer division
query I rowsort label-3413
SELECT + col2 * col2 + col2 DIV col0 FROM tab1
----
2934
3249
9217

skipif mysql # not compatible
query I rowsort label-3413
SELECT + col2 * col2 + col2 / col0 FROM tab1
----
2934
3249
9217

query III rowsort
SELECT * FROM tab0 WHERE NOT col0 * + col2 NOT IN ( - col1 )
----

query I rowsort
SELECT col1 * + col2 + col0 FROM tab0
----
132
2862
7551

query I rowsort
SELECT col0 - col2 * - col1 AS col1 FROM tab2 WHERE ( col2 ) NOT IN ( tab2.col0 )
----
1612
725
844

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col2 IN ( + col2 )
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7

query I rowsort
SELECT ALL - cor0.col1 + col2 * + ( cor0.col2 ) AS col0 FROM tab0 cor0
----
-96
1003
6633

query I rowsort
SELECT - - ( - col2 ) * + col1 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT ALL + + 28 * cor0.col1 FROM tab0 AS cor0
----
2408
2548
2716

query I rowsort
SELECT DISTINCT - cor0.col0 + col2 AS col2 FROM tab1 AS cor0
----
-7
16
51

query I rowsort
SELECT - cor0.col1 + + col0 * + ( col0 ) + + col1 FROM tab0 AS cor0
----
1225
576
7921

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3423
SELECT DISTINCT + col0 + - cor0.col2 * - CAST( NULL AS SIGNED ) * - col2 + col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3423
SELECT DISTINCT + col0 + - cor0.col2 * - CAST ( NULL AS INTEGER ) * - col2 + col0 FROM tab1 AS cor0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-3424
SELECT ALL col0 DIV col0 + cor0.col0 - col1 AS col2 FROM tab0 AS cor0
----
-1
-61
-61

skipif mysql # not compatible
query I rowsort label-3424
SELECT ALL col0 / col0 + cor0.col0 - col1 AS col2 FROM tab0 AS cor0
----
-1
-61
-61

query I rowsort
SELECT DISTINCT + - col0 * col0 + + col0 FROM tab2 AS cor0
----
-42
-6006
-6162

query I rowsort
SELECT 18 * col1 FROM tab1 AS cor0
----
180
234
468

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 46 * col2 col2 FROM tab1 AS cor0
----
2484
2622
4416

query I rowsort
SELECT ALL ( + col2 + + col2 ) * ( col1 + tab2.col0 ) * 46 FROM tab2
----
327704
335616
94392

query I rowsort
SELECT ALL + 47 * 25 AS col1 FROM tab2
----
1175
1175
1175

query I rowsort
SELECT - 31 FROM tab2, tab0, tab2 cor0
----
27 values hashing to c6c8eebeb1a59f7c046402e25630c0ac

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3431
SELECT ALL + CAST( NULL AS SIGNED ) / - col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3431
SELECT ALL + CAST ( NULL AS INTEGER ) / - col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT + col2 + + cor0.col2 AS col0 FROM tab0 cor0
----
164
2
66

query I rowsort
SELECT DISTINCT - ( - cor0.col0 ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
7
78
79

query I rowsort
SELECT DISTINCT cor0.col1 AS col2 FROM tab1, tab0 cor0
----
86
91
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col2 * - col2 col0 FROM tab1 cor0
----
2916
3249
9216

query I rowsort
SELECT - ( col0 ) * - col2 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT + - 23 * - col1 FROM tab2 cor0
----
1357
391
713

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3438
SELECT + CAST( col0 AS SIGNED ) * - col0 + - col1 AS col0 FROM tab2 AS cor0
----
-6143
-6258
-80

skipif mysql # not compatible
query I rowsort label-3438
SELECT + CAST ( col0 AS INTEGER ) * - col0 + - col1 AS col0 FROM tab2 AS cor0
----
-6143
-6258
-80

query I rowsort
SELECT DISTINCT - 47 + - col2 FROM tab1 cor0
----
-101
-104
-143

query I rowsort
SELECT DISTINCT + + cor0.col2 * - col2 AS col0 FROM tab0 AS cor0
----
-1
-1089
-6724

query I rowsort
SELECT + 13 + - 13 AS col2 FROM tab1 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - 61 col0 FROM tab1
----
-3294
-3477
-5856

query I rowsort
SELECT + col0 * - ( col2 * + col0 ) AS col2 FROM tab0
----
-1225
-19008
-649522

onlyif mysql # use DIV operator for integer division
query I rowsort label-3444
SELECT + 20 DIV 7 FROM tab1, tab0 AS cor0
----
9 values hashing to 84dbfaf9bc17dd097f15bc36b4186261

skipif mysql # not compatible
query I rowsort label-3444
SELECT + 20 / 7 FROM tab1, tab0 AS cor0
----
9 values hashing to 84dbfaf9bc17dd097f15bc36b4186261

query I rowsort
SELECT - + 93 FROM tab1 AS cor0
----
-93
-93
-93

onlyif mysql # use DIV operator for integer division
query I rowsort label-3446
SELECT + 37 DIV + col2 - + tab1.col1 AS col1 FROM tab1
----
-10
-13
-26

skipif mysql # not compatible
query I rowsort label-3446
SELECT + 37 / + col2 - + tab1.col1 AS col1 FROM tab1
----
-10
-13
-26

query I rowsort
SELECT + col2 - - col1 AS col2 FROM tab2
----
55
58
85

query I rowsort
SELECT + col0 + - 47 + - col0 AS col2 FROM tab1
----
-47
-47
-47

query I rowsort
SELECT DISTINCT + ( col2 ) * + cor0.col0 AS col1 FROM tab0 AS cor0
----
35
7298
792

onlyif mysql # use DIV operator for integer division
query I rowsort label-3450
SELECT + + col2 * ( + col2 + CAST( col1 AS SIGNED ) ) DIV - col1 FROM tab1 AS cor0
----
-166
-381
-804

skipif mysql # not compatible
query I rowsort label-3450
SELECT + + col2 * ( + col2 + CAST ( col1 AS INTEGER ) ) / - col1 FROM tab1 AS cor0
----
-166
-381
-804

query I rowsort
SELECT 98 * cor0.col2 FROM tab0 AS cor0
----
3234
8036
98

query I rowsort
SELECT + 51 * - col2 FROM tab1 AS cor0
----
-2754
-2907
-4896

query I rowsort
SELECT + 97 FROM tab1, tab0 cor0
----
9 values hashing to 5e0d31ac41981bcdf6a665538a71a09c

onlyif mysql # use DIV operator for integer division
query I rowsort label-3454
SELECT DISTINCT - col1 DIV - cor0.col0 AS col2 FROM tab2 AS cor0
----
0
4

skipif mysql # not compatible
query I rowsort label-3454
SELECT DISTINCT - col1 / - cor0.col0 AS col2 FROM tab2 AS cor0
----
0
4

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3455
SELECT + - col2 + CAST( - col1 AS SIGNED ) * col2 AS col0 FROM tab0 cor0
----
-2871
-7544
-98

skipif mysql # not compatible
query I rowsort label-3455
SELECT + - col2 + CAST ( - col1 AS INTEGER ) * col2 AS col0 FROM tab0 cor0
----
-2871
-7544
-98

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT ALL col0 + - CAST ( + cor0.col0 AS REAL ) * - col0 col1 FROM tab2 AS cor0
----
56
6162
6320

query I rowsort
SELECT + - col1 * + col2 AS col2 FROM tab2 AS cor0
----
-1534
-646
-837

onlyif mysql # use DIV operator for integer division
query I rowsort label-3458
SELECT ALL + col0 DIV - 55 FROM tab0 cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-3458
SELECT ALL + col0 / - 55 FROM tab0 cor0
----
-1
0
0

query I rowsort
SELECT + + col0 + - col1 * 6 + col0 AS col2 FROM tab2 AS cor0
----
-172
-198
56

query I rowsort
SELECT + + col1 * col1 - col2 AS col2 FROM tab1 AS cor0
----
43
622
73

query I rowsort
SELECT cor0.col2 * 68 + + cor0.col0 - col0 * col2 FROM tab1 cor0
----
-1072
292
3513

query I rowsort
SELECT + cor0.col1 + col0 + col1 FROM tab2 AS cor0
----
113
196
69

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3463
SELECT DISTINCT col1 * CAST( NULL AS SIGNED ) * 56 AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3463
SELECT DISTINCT col1 * CAST ( NULL AS INTEGER ) * 56 AS col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT + col2 + col1 * 57 + + col2 AS col1 FROM tab1
----
1590
684
933

query I rowsort
SELECT DISTINCT col0 + 71 * ( + col2 + + col1 ) * col0 AS col0 FROM tab2 AS cor0
----
28833
308574
470808

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3466
SELECT DISTINCT - col2 * - CAST( + col0 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
35
7298
792

skipif mysql # not compatible
query I rowsort label-3466
SELECT DISTINCT - col2 * - CAST ( + col0 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT col2 - + ( - 65 * col0 ) FROM tab1 AS cor0
----
249
4217
5296

onlyif mysql # use DIV operator for integer division
query I rowsort label-3468
SELECT DISTINCT - col2 * col2 DIV + col0 FROM tab2 AS cor0
----
-104
-18
-8

skipif mysql # not compatible
query I rowsort label-3468
SELECT DISTINCT - col2 * col2 / + col0 FROM tab2 AS cor0
----
-104
-18
-8

query I rowsort
SELECT ALL + cor1.col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775

query I rowsort
SELECT DISTINCT + 15 AS col0 FROM tab2, tab1 AS cor0
----
15

onlyif mysql # use DIV operator for integer division
query I rowsort label-3471
SELECT DISTINCT - 23 + cor0.col2 DIV 52 FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-3471
SELECT DISTINCT - 23 + cor0.col2 / 52 FROM tab2 AS cor0
----
-23

query I rowsort
SELECT + 34 * + col0 AS col2 FROM tab1 AS cor0
----
102
2176
2720

onlyif mysql # use DIV operator for integer division
query I rowsort label-3473
SELECT + + ( cor0.col0 ) * + cor0.col1 + - 11 DIV + col0 + col0 FROM tab2 AS cor0
----
1422
223
4680

skipif mysql # not compatible
query I rowsort label-3473
SELECT + + ( cor0.col0 ) * + cor0.col1 + - 11 / + col0 + col0 FROM tab2 AS cor0
----
1422
223
4680

query I rowsort
SELECT ALL - 46 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 491ad1fb79fec0b5715ea54949d1aa2d

query I rowsort
SELECT - 28 AS col2 FROM tab1
----
-28
-28
-28

query I rowsort
SELECT DISTINCT + 52 * col0 AS col0 FROM tab2 AS cor0
----
364
4056
4108

onlyif mysql # use DIV operator for integer division
query I rowsort label-3477
SELECT ALL - col1 DIV col1 AS col2 FROM tab2 cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-3477
SELECT ALL - col1 / col1 AS col2 FROM tab2 cor0
----
-1
-1
-1

query I rowsort
SELECT ALL + col0 + col0 * col2 AS col2 FROM tab2 AS cor0
----
196
2106
3081

query I rowsort
SELECT ( + col1 ) * + col1 AS col2 FROM tab2 AS cor0
----
289
3481
961

query I rowsort
SELECT - 36 AS col2 FROM tab2, tab0 cor0, tab0 AS cor1, tab1 AS cor2
----
81 values hashing to aea3eb70e9270b660d4c81f39b11409b

query I rowsort
SELECT DISTINCT - ( + col1 ) FROM tab0
----
-86
-91
-97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3482
SELECT + CAST( + 83 AS SIGNED ) + cor1.col1 * - ( + cor0.col1 ) col0 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to c7da4369bb4f23a5ccce194aee48f80d

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3482
SELECT + CAST ( + 83 AS INTEGER ) + cor1.col1 * - ( + cor0.col1 ) col0 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to c7da4369bb4f23a5ccce194aee48f80d

query I rowsort
SELECT DISTINCT - 84 + + col2 AS col1 FROM tab2 AS cor0
----
-46
-57
-58

query I rowsort
SELECT ALL - cor0.col2 + - col0 AS col0 FROM tab0 AS cor0
----
-171
-36
-57

query I rowsort
SELECT ALL - - 1 * col0 AS col2 FROM tab2 AS cor0
----
7
78
79

onlyif mysql # use DIV operator for integer division
query I rowsort label-3486
SELECT DISTINCT 62 DIV + col2 + cor0.col2 col2 FROM tab0 AS cor0
----
34
63
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3486
SELECT DISTINCT 62 / + col2 + cor0.col2 col2 FROM tab0 AS cor0
----
34
63
82

onlyif mysql # use DIV operator for integer division
query I rowsort label-3487
SELECT + 39 DIV col2 AS col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3487
SELECT + 39 / col2 AS col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + cor0.col1 * - col0 * cor0.col0 AS col1 FROM tab0 cor0
----
-118825
-49536
-720811

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3489
SELECT ALL 28 * col2 + CAST( col0 * - col1 AS SIGNED ) FROM tab1 AS cor0
----
1434
1648
956

skipif mysql # not compatible
query I rowsort label-3489
SELECT ALL 28 * col2 + CAST ( col0 * - col1 AS INTEGER ) FROM tab1 AS cor0
----
1434
1648
956

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * 7 col2 FROM tab2 cor0
----
-49
-546
-553

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - cor0.col0 * 43 - cor1.col1 col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 50ee75919978b64cf7a5c98d4afc6ffe

query I rowsort
SELECT - + col1 * 5 * col0 FROM tab0 AS cor0
----
-10320
-16975
-40495

query I rowsort
SELECT ALL + col1 * + col0 * + col0 FROM tab0 AS cor0
----
118825
49536
720811

query I rowsort
SELECT DISTINCT + cor0.col0 + cor0.col2 * col1 AS col2 FROM tab0 AS cor0
----
132
2862
7551

query I rowsort
SELECT DISTINCT ( + col0 ) - - cor0.col0 AS col1 FROM tab2 AS cor0
----
14
156
158

query I rowsort
SELECT + 61 * col1 + - cor0.col2 * ( + col1 * col1 ) AS col1 FROM tab0 AS cor0
----
-238822
-3492
-673491

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col1 * + col2 col2 FROM tab0 cor0
----
-2838
-7462
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-3498
SELECT col0 * + tab1.col0 DIV - col0 + 1 col2 FROM tab1
----
-2
-63
-79

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3498
SELECT col0 * + tab1.col0 / - col0 + 1 col2 FROM tab1
----
-2
-63
-79

query I rowsort
SELECT 31 + col1 AS col2 FROM tab0
----
117
122
128

query I rowsort
SELECT - tab1.col2 + col2 * tab1.col1 AS col2 FROM tab1
----
1152
1350
513

query I rowsort
SELECT DISTINCT + 53 + - col0 FROM tab1
----
-11
-27
50

query I rowsort
SELECT - 10 * + col1 + + col0 FROM tab2 AS cor0
----
-303
-512
-91

query I rowsort
SELECT col0 + tab2.col2 AS col0 FROM tab2
----
104
117
34

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab1, tab1 cor0, tab2 AS cor1
----
972 values hashing to 0fcd8d0934383dd58863be894b07a6ed

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - col1 * col2 ) + - 31 col2 FROM tab1
----
-1279
-1435
-601

query I rowsort
SELECT ALL - 1 * cor0.col2 * - cor0.col0 FROM tab2 cor0
----
189
2028
3002

query I rowsort
SELECT ( cor0.col1 ) FROM tab0 cor0
----
86
91
97

query I rowsort
SELECT ALL + 82 FROM tab0, tab0 AS cor0
----
9 values hashing to f318fd9dac2de7af4b82cc7574bbca2c

query I rowsort
SELECT ALL 70 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 9758da65ae4711e3e8c8def2fe026911

query I rowsort
SELECT DISTINCT + 45 FROM tab0, tab1 AS cor0
----
45

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3511
SELECT - CAST( 25 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-25
-25
-25

skipif mysql # not compatible
query I rowsort label-3511
SELECT - CAST ( 25 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-25
-25
-25

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * - tab1.col2 * - 37 col1 FROM tab1
----
107892
120213
340992

query I rowsort
SELECT + tab0.col2 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475

query I rowsort
SELECT DISTINCT col1 * 11 AS col1 FROM tab1
----
110
143
286

query I rowsort
SELECT ALL - 66 * ( + col2 ) AS col1 FROM tab2
----
-1716
-1782
-2508

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 92 col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 1af709a79a3e56281ffdce4d931d5965

query I rowsort
SELECT + - 94 AS col2 FROM tab2 cor0
----
-94
-94
-94

query I rowsort
SELECT + 27 - 30 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 65b7e16aaa7821ace3a45a9846ffa166

query I rowsort
SELECT 65 * - col2 AS col2 FROM tab1
----
-3510
-3705
-6240

query I rowsort
SELECT + 71 + + col1 FROM tab1 cor0
----
81
84
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-3521
SELECT tab0.col0 DIV tab0.col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 001554c2952f1a80506b182ee04686f5

skipif mysql # not compatible
query I rowsort label-3521
SELECT tab0.col0 / tab0.col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 001554c2952f1a80506b182ee04686f5

query I rowsort
SELECT - - col2 * col0 - - ( - col1 ) FROM tab2 AS cor0
----
158
1969
2985

query I rowsort
SELECT ALL col0 * col0 * - tab2.col0 AS col0 FROM tab2
----
-343
-474552
-493039

query I rowsort
SELECT - - col1 * col0 + + col2 AS col2 FROM tab2 AS cor0
----
1381
244
4628

query I rowsort
SELECT DISTINCT + 79 FROM tab1, tab0 cor0
----
79

query I rowsort
SELECT - 72 AS col1 FROM tab0, tab0 cor0
----
9 values hashing to ad521144c976ff25e77cdf10a84d1dc6

query I rowsort
SELECT + - col0 * col1 AS col2 FROM tab1 cor0
----
-1040
-640
-78

onlyif mysql # use DIV operator for integer division
query I rowsort label-3528
SELECT + cor0.col1 + + 61 * + col0 + - cor0.col1 DIV - col1 FROM tab2 AS cor0
----
459
4818
4837

skipif mysql # not compatible
query I rowsort label-3528
SELECT + cor0.col1 + + 61 * + col0 + - cor0.col1 / - col1 FROM tab2 AS cor0
----
459
4818
4837

query I rowsort
SELECT col1 + - col1 AS col0 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT ALL col2 * + 85 FROM tab2 cor0
----
2210
2295
3230

query I rowsort
SELECT DISTINCT + - col1 + - ( col1 ) * col1 AS col2 FROM tab1 AS cor0
----
-110
-182
-702

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3532
SELECT cor0.col2 + + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3532
SELECT cor0.col2 + + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col2 * col2 * - col1 + col2 FROM tab1
----
-119712
-32433
-75762

query I rowsort
SELECT col1 + 27 FROM tab0
----
113
118
124

onlyif mysql # use DIV operator for integer division
query I rowsort label-3535
SELECT tab1.col1 + ( + tab1.col2 ) DIV col0 + + col0 FROM tab1
----
47
74
94

skipif mysql # not compatible
query I rowsort label-3535
SELECT tab1.col1 + ( + tab1.col2 ) / col0 + + col0 FROM tab1
----
47
74
94

query I rowsort
SELECT + col1 * + col1 + + col2 + col0 AS col0 FROM tab0
----
7453
8452
9445

query I rowsort
SELECT ALL - 75 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to c0722b1d77ac0ed13c0f2691a5751c59

query I rowsort
SELECT ALL col1 * 48 + - tab1.col2 AS col1 FROM tab1
----
1194
423
528

query I rowsort
SELECT DISTINCT col0 + + col2 * - col2 * + col1 AS col0 FROM tab2
----
-22592
-24469
-39806

query I rowsort
SELECT + 45 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 60b9f935ee8e404d155a2f5e9515c050

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * col1 col1 FROM tab1 cor0
----
1040
640
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 + - col1 * - cor0.col2 col2 FROM tab2 AS cor0
----
1475
629
806

query I rowsort
SELECT DISTINCT - col1 + col2 + - 13 FROM tab1 AS cor0
----
15
34
70

query I rowsort
SELECT col0 * col2 - - col0 FROM tab1 AS cor0
----
165
3712
7760

query I rowsort
SELECT DISTINCT - col2 * col1 + + col2 FROM tab0 AS cor0
----
-2805
-7380
-96

query I rowsort
SELECT ALL - ( - col2 ) * + cor0.col2 AS col0 FROM tab1 AS cor0
----
2916
3249
9216

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3547
SELECT ALL CAST( NULL AS SIGNED ) * 40 + col1 + col0 * - col2 AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3547
SELECT ALL CAST ( NULL AS INTEGER ) * 40 + col1 + col0 * - col2 AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col0 + 5 AS col1 FROM tab1 cor0
----
69
8
85

onlyif mysql # use DIV operator for integer division
query I rowsort label-3549
SELECT DISTINCT - cor0.col2 + + col2 DIV - col1 AS col0 FROM tab2 AS cor0
----
-26
-27
-40

skipif mysql # not compatible
query I rowsort label-3549
SELECT DISTINCT - cor0.col2 + + col2 / - col1 AS col0 FROM tab2 AS cor0
----
-26
-27
-40

query I rowsort
SELECT DISTINCT + - col2 * 65 + - col2 FROM tab0 cor0
----
-2178
-5412
-66

query I rowsort
SELECT + - 74 + - 63 FROM tab0 AS cor0
----
-137
-137
-137

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * col2 col0 FROM tab2 cor0
----
1534
646
837

query I rowsort
SELECT + cor0.col2 * - col0 + - cor0.col0 AS col0 FROM tab1 AS cor0
----
-165
-3712
-7760

onlyif mysql # use DIV operator for integer division
query I rowsort label-3554
SELECT ALL + col2 + col1 DIV col0 AS col0 FROM tab1 AS cor0
----
57
62
96

skipif mysql # not compatible
query I rowsort label-3554
SELECT ALL + col2 + col1 / col0 AS col0 FROM tab1 AS cor0
----
57
62
96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3555
SELECT + CAST( + col2 AS SIGNED ) + + col0 * 9 * + col2 FROM tab2 AS cor0
----
1728
18278
27056

skipif mysql # not compatible
query I rowsort label-3555
SELECT + CAST ( + col2 AS INTEGER ) + + col0 * 9 * + col2 FROM tab2 AS cor0
----
1728
18278
27056

onlyif mysql # use DIV operator for integer division
query I rowsort label-3556
SELECT ALL + col0 DIV + 2 + col2 FROM tab2 cor0
----
30
65
77

skipif mysql # not compatible
query I rowsort label-3556
SELECT ALL + col0 / + 2 + col2 FROM tab2 cor0
----
30
65
77

query I rowsort
SELECT ALL + 58 AS col0 FROM tab2 AS cor0
----
58
58
58

query I rowsort
SELECT DISTINCT + col2 * ( + col0 ) + + cor0.col0 FROM tab0 cor0
----
70
7387
816

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3559
SELECT DISTINCT - - CAST( - ( col2 ) AS SIGNED ) * - col0 FROM tab1 cor0
----
162
3648
7680

skipif mysql # not compatible
query I rowsort label-3559
SELECT DISTINCT - - CAST ( - ( col2 ) AS INTEGER ) * - col0 FROM tab1 cor0
----
162
3648
7680

query I rowsort
SELECT col1 * col1 * col0 + - cor0.col1 FROM tab2 AS cor0
----
22814
271459
6696

query I rowsort
SELECT col1 * + cor0.col1 * - cor0.col0 FROM tab2 AS cor0
----
-22831
-271518
-6727

query I rowsort
SELECT ( - col1 ) * + col1 FROM tab0 AS cor0
----
-7396
-8281
-9409

query I rowsort
SELECT DISTINCT - + col0 + col1 * ( col2 + - col2 ) AS col0 FROM tab0 AS cor0
----
-24
-35
-89

query I rowsort
SELECT - - col2 * col1 - + 53 AS col2 FROM tab1 AS cor0
----
1195
1351
517

query I rowsort
SELECT + - cor0.col0 + col0 * + col0 AS col2 FROM tab0 AS cor0
----
1190
552
7832

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + cor0.col0 * + col0 * cor0.col2 col2 FROM tab2 AS cor0
----
1330
158262
237237

query I rowsort
SELECT ALL cor0.col1 + col1 * col2 AS col1 FROM tab1 AS cor0
----
1261
1430
580

query I rowsort
SELECT ALL 70 + col0 AS col2 FROM tab0 cor0
----
105
159
94

query I rowsort
SELECT ALL + - 54 * - col0 + + ( - 9 * col2 + col0 ) AS col1 FROM tab1 AS cor0
----
-321
3007
3536

onlyif mysql # use DIV operator for integer division
query I rowsort label-3570
SELECT ALL cor0.col0 * col0 + - 87 DIV - col2 AS col2 FROM tab0 cor0
----
1312
578
7922

skipif mysql # not compatible
query I rowsort label-3570
SELECT ALL cor0.col0 * col0 + - 87 / - col2 AS col2 FROM tab0 cor0
----
1312
578
7922

query I rowsort
SELECT ALL + col0 * + 71 AS col1 FROM tab2 AS cor0
----
497
5538
5609

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3572
SELECT DISTINCT - CAST( - cor1.col1 AS SIGNED ) FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
17
31
59

skipif mysql # not compatible
query I rowsort label-3572
SELECT DISTINCT - CAST ( - cor1.col1 AS INTEGER ) FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
17
31
59

onlyif mysql # use DIV operator for integer division
query I rowsort label-3573
SELECT + 72 * col0 + 74 - 90 * col1 DIV ( 13 * + col1 ) FROM tab0
----
1796
2588
6476

skipif mysql # not compatible
query I rowsort label-3573
SELECT + 72 * col0 + 74 - 90 * col1 / ( 13 * + col1 ) FROM tab0
----
1796
2588
6476

query I rowsort
SELECT 73 + col2 + 82 AS col1 FROM tab1
----
209
212
251

onlyif mysql # use DIV operator for integer division
query I rowsort label-3575
SELECT DISTINCT col2 * col1 - + col2 DIV + 2 AS col2 FROM tab1
----
1200
1377
542

skipif mysql # not compatible
query I rowsort label-3575
SELECT DISTINCT col2 * col1 - + col2 / + 2 AS col2 FROM tab1
----
1200
1377
542

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3576
SELECT DISTINCT CAST( NULL AS DECIMAL ) + col1 AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3576
SELECT DISTINCT CAST ( NULL AS REAL ) + col1 AS col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL - 90 * 61 FROM tab1 AS cor0
----
-5490
-5490
-5490

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 58 * col1 col0 FROM tab0 AS cor0
----
4988
5278
5626

query I rowsort
SELECT DISTINCT 49 * ( - col0 ) * + 80 AS col2 FROM tab1 AS cor0
----
-11760
-250880
-313600

query I rowsort
SELECT ALL 77 + - ( - col1 ) * - ( col0 ) AS col1 FROM tab0 AS cor0
----
-1987
-3318
-8022

query I rowsort
SELECT + 98 + col1 FROM tab1 AS cor0
----
108
111
124

query I rowsort
SELECT ALL + ( - 0 ) * - col2 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT + - 33 * cor0.col2 FROM tab0 AS cor0
----
-1089
-2706
-33

query I rowsort
SELECT - 85 * col2 AS col0 FROM tab0 AS cor0
----
-2805
-6970
-85

query I rowsort
SELECT DISTINCT + + ( col1 ) - + cor0.col2 AS col1 FROM tab1 AS cor0
----
-28
-47
-83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 70 col0 FROM tab0 AS cor0
----
-70

query I rowsort
SELECT ALL + 86 * 45 + + col2 AS col2 FROM tab0 cor0
----
3871
3903
3952

query I rowsort
SELECT ( + col0 ) + + col1 FROM tab0
----
110
132
180

query I rowsort
SELECT ALL - 10 FROM tab2, tab2 AS cor0 CROSS JOIN tab0, tab2 AS cor1
----
81 values hashing to d02dd3860bad8257b8dc483efe370af0

query I rowsort
SELECT ALL cor1.col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8

query I rowsort
SELECT DISTINCT cor0.col1 * - col1 * + col1 AS col2 FROM tab2 AS cor0
----
-205379
-29791
-4913

onlyif mysql # use DIV operator for integer division
query I rowsort label-3592
SELECT ALL + + col2 DIV + 2 AS col0 FROM tab2 cor0
----
13
13
19

skipif mysql # not compatible
query I rowsort label-3592
SELECT ALL + + col2 / + 2 AS col0 FROM tab2 cor0
----
13
13
19

query I rowsort
SELECT + col2 + - col1 * col1 + + col2 AS col2 FROM tab2 AS cor0
----
-213
-3429
-907

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + ( col1 * cor0.col2 ) col1 FROM tab2 AS cor0
----
-119652
-51034
-5859

query I rowsort
SELECT ALL - cor0.col1 + + cor0.col0 * col0 FROM tab1 AS cor0
----
-17
4086
6387

query I rowsort
SELECT - col2 + 1 * - col2 AS col2 FROM tab2 AS cor0
----
-52
-54
-76

query I rowsort
SELECT DISTINCT + col2 * - col0 + - tab1.col0 * col0 + - col0 FROM tab1
----
-14160
-174
-7808

query I rowsort
SELECT ALL col1 * col2 + + col1 + - 61 AS col0 FROM tab1
----
1200
1369
519

query I rowsort
SELECT DISTINCT + 49 * col2 + + ( + col0 * - tab0.col2 ) FROM tab0
----
-3280
14
825

query I rowsort
SELECT col2 * 8 + - col0 AS col1 FROM tab0
----
-27
240
567

query I rowsort
SELECT - col1 + + ( + col2 ) AS col1 FROM tab2
----
-33
-4
21

query I rowsort
SELECT tab2.col1 * col2 + col1 * - col2 AS col1 FROM tab2
----
0
0
0

query I rowsort
SELECT + tab0.col2 * + col1 - col1 * col1 FROM tab0
----
-4558
-819
-9312

query I rowsort
SELECT DISTINCT col2 * col2 * - tab1.col0 AS col1 FROM tab1
----
-207936
-737280
-8748

query I rowsort
SELECT - + col2 * 32 AS col0 FROM tab0 AS cor0
----
-1056
-2624
-32

query I rowsort
SELECT - ( + 85 ) FROM tab2, tab2 AS cor0
----
9 values hashing to 8ebc8ffafb1517ea04e3a6fc4059d88a

query I rowsort
SELECT ALL 76 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 30b8941a700cffd5b983116383bd42d5

query I rowsort
SELECT col0 + - 57 + - col2 AS col0 FROM tab0
----
-23
-50
-66

query I rowsort
SELECT - 71 + col1 + col2 AS col1 FROM tab1 AS cor0
----
-4
38
9

query I rowsort
SELECT - col2 * + 11 AS col2 FROM tab1
----
-1056
-594
-627

query I rowsort
SELECT - + cor0.col0 * col2 + cor0.col1 AS col2 FROM tab2 AS cor0
----
-158
-1969
-2985

query I rowsort
SELECT DISTINCT + + col2 + - cor0.col1 * col2 FROM tab2 AS cor0
----
-1508
-608
-810

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3613
SELECT - CAST( - col2 AS SIGNED ) FROM tab2 AS cor0
----
26
27
38

skipif mysql # not compatible
query I rowsort label-3613
SELECT - CAST ( - col2 AS INTEGER ) FROM tab2 AS cor0
----
26
27
38

query I rowsort
SELECT + 9 FROM tab1, tab0 cor0
----
9 values hashing to 03b93b53107e36cf7d524e48c509b17b

query I rowsort
SELECT - ( - col0 ) * col1 * - col0 FROM tab1 AS cor0
----
-234
-40960
-83200

query I rowsort
SELECT - col2 + col2 * 15 + - 55 FROM tab1
----
1289
701
743

query I rowsort
SELECT 20 * - col0 FROM tab0
----
-1780
-480
-700

onlyif mysql # use DIV operator for integer division
query I rowsort label-3618
SELECT DISTINCT col0 DIV tab1.col0 + col0 FROM tab1
----
4
65
81

skipif mysql # not compatible
query I rowsort label-3618
SELECT DISTINCT col0 / tab1.col0 + col0 FROM tab1
----
4
65
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 84 + - col2 * + 93 col0 FROM tab0 AS cor0
----
-2985
-7542
-9

onlyif mysql # use DIV operator for integer division
query I rowsort label-3620
SELECT + + col2 DIV col1 - - CAST( - col0 + - col2 AS SIGNED ) FROM tab2 cor0
----
-104
-115
-34

skipif mysql # not compatible
query I rowsort label-3620
SELECT + + col2 / col1 - - CAST ( - col0 + - col2 AS INTEGER ) FROM tab2 cor0
----
-104
-115
-34

query I rowsort
SELECT + col2 + col1 * + ( cor0.col2 ) AS col2 FROM tab0 AS cor0
----
2871
7544
98

query I rowsort
SELECT DISTINCT - cor0.col1 + + col2 AS col1 FROM tab1 cor0
----
28
47
83

query I rowsort
SELECT ALL col1 - - col0 FROM tab1 AS cor0
----
29
74
93

query I rowsort
SELECT DISTINCT col1 + col2 FROM tab0 cor0
----
119
173
98

query I rowsort
SELECT ALL - - 47 + col0 FROM tab1 AS cor0
----
111
127
50

query I rowsort
SELECT ALL - 92 * + col1 + col2 * cor0.col1 FROM tab2 AS cor0
----
-2015
-3894
-918

query I rowsort
SELECT + col2 * col2 - col2 AS col1 FROM tab0 AS cor0
----
0
1056
6642

query I rowsort
SELECT DISTINCT + col0 * - col0 + - col1 FROM tab1 cor0
----
-35
-4106
-6413

query I rowsort
SELECT + - col0 * - col1 * 99 - col0 * - 93 FROM tab1 AS cor0
----
110400
69312
8001

query I rowsort
SELECT - + col0 * 94 AS col0 FROM tab1 AS cor0
----
-282
-6016
-7520

query I rowsort
SELECT DISTINCT col0 + - col0 * - col1 AS col2 FROM tab2 AS cor0
----
1422
224
4680

query I rowsort
SELECT + col1 + + ( col1 ) * col2 * + col0 AS col2 FROM tab0 AS cor0
----
3492
664209
68198

query I rowsort
SELECT ALL - col2 * + col2 + col2 * + cor0.col0 FROM tab0 cor0
----
-297
34
574

query I rowsort
SELECT ALL cor0.col0 + col1 * - col2 FROM tab0 AS cor0
----
-2814
-62
-7373

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3635
SELECT DISTINCT + col2 + - CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3635
SELECT DISTINCT + col2 + - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-3636
SELECT ALL - - col0 + CAST( + ( col0 ) + + cor0.col2 AS SIGNED ) DIV - col1 AS col1 FROM tab0 cor0
----
24
35
88

skipif mysql # not compatible
query I rowsort label-3636
SELECT ALL - - col0 + CAST ( + ( col0 ) + + cor0.col2 AS INTEGER ) / - col1 AS col1 FROM tab0 cor0
----
24
35
88

query I rowsort
SELECT ALL - col0 * - col0 + col1 FROM tab1
----
35
4106
6413

query I rowsort
SELECT ALL + 43 + col0 FROM tab1
----
107
123
46

onlyif mysql # use DIV operator for integer division
query I rowsort label-3639
SELECT - col0 + col2 + col1 DIV cor0.col2 AS col2 FROM tab0 AS cor0
----
-6
11
63

skipif mysql # not compatible
query I rowsort label-3639
SELECT - col0 + col2 + col1 / cor0.col2 AS col2 FROM tab0 AS cor0
----
-6
11
63

query I rowsort
SELECT - col0 + col1 * + col1 AS col0 FROM tab1 AS cor0
----
36
673
89

query I rowsort
SELECT + col1 - 64 AS col2 FROM tab1 AS cor0
----
-38
-51
-54

query I rowsort
SELECT - col2 + col2 * - col0 * - col1 FROM tab2 AS cor0
----
119626
50996
5832

query I rowsort
SELECT - col0 + col2 * + col0 * 68 AS col0 FROM tab1 AS cor0
----
11013
248000
522160

query I rowsort
SELECT + + 29 AS col0 FROM tab1, tab2, tab1 AS cor0
----
27 values hashing to 4c56285992bcb76e1aac22e6d23d1318

query I rowsort
SELECT DISTINCT - col0 * + ( - col2 ) + + col1 FROM tab2 AS cor0
----
2087
220
3019

query I rowsort
SELECT ALL + col1 + + 78 + - col2 AS col2 FROM tab1 AS cor0
----
-5
31
50

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3647
SELECT - col0 * + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3647
SELECT - col0 * + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-3648
SELECT 52 DIV col0 - - ( - 84 ) AS col0 FROM tab0
----
-82
-83
-84

skipif mysql # not compatible
query I rowsort label-3648
SELECT 52 / col0 - - ( - 84 ) AS col0 FROM tab0
----
-82
-83
-84

query I rowsort
SELECT DISTINCT + 75 + col1 FROM tab1
----
101
85
88

query I rowsort
SELECT DISTINCT 1 + col0 FROM tab1
----
4
65
81

query I rowsort
SELECT ALL + col0 + + ( col0 ) AS col0 FROM tab2
----
14
156
158

query I rowsort
SELECT DISTINCT + tab0.col0 * col1 + - 43 FROM tab0
----
2021
3352
8056

onlyif mysql # use DIV operator for integer division
query I rowsort label-3653
SELECT - ( - col1 ) + col1 DIV ( - col0 ) FROM tab2 AS cor0
----
17
27
59

skipif mysql # not compatible
query I rowsort label-3653
SELECT - ( - col1 ) + col1 / ( - col0 ) FROM tab2 AS cor0
----
17
27
59

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3654
SELECT - - CAST( NULL AS SIGNED ) + - col1 * col0 * - 85 - col1 * col2 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3654
SELECT - - CAST ( NULL AS INTEGER ) + - col1 * col0 * - 85 - col1 * col2 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 69 AS col2 FROM tab1 cor0
----
69
69
69

query I rowsort
SELECT DISTINCT tab1.col2 FROM tab1, tab1 cor0, tab0 AS cor1
----
54
57
96

query I rowsort
SELECT ALL cor1.col2 FROM tab2, tab1 cor0, tab1 AS cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79

onlyif mysql # use DIV operator for integer division
query I rowsort label-3658
SELECT - - 37 * - ( col1 ) + - col2 DIV col0 FROM tab2 cor0
----
-1150
-2183
-629

skipif mysql # not compatible
query I rowsort label-3658
SELECT - - 37 * - ( col1 ) + - col2 / col0 FROM tab2 cor0
----
-1150
-2183
-629

query I rowsort
SELECT - - col1 * - cor0.col1 AS col2 FROM tab2 AS cor0
----
-289
-3481
-961

query I rowsort
SELECT 78 * + 47 + col0 AS col2 FROM tab2 AS cor0
----
3673
3744
3745

query I rowsort
SELECT + cor0.col1 + col2 * + col1 * - 57 FROM tab2 AS cor0
----
-36805
-47678
-87379

query I rowsort
SELECT ( + col2 ) - - col0 AS col2 FROM tab0 AS cor0
----
171
36
57

query I rowsort
SELECT - - col0 + col2 AS col0 FROM tab2 cor0
----
104
117
34

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3664
SELECT + CAST( NULL AS SIGNED ) * - col2 + - col1 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3664
SELECT + CAST ( NULL AS INTEGER ) * - col2 + - col1 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col2 + + col1 * col1 AS col2 FROM tab0 AS cor0
----
7429
8363
9410

onlyif mysql # use DIV operator for integer division
query I rowsort label-3666
SELECT DISTINCT 51 - col0 DIV + col2 col2 FROM tab0
----
16
50
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3666
SELECT DISTINCT 51 - col0 / + col2 col2 FROM tab0
----
16
50
51

query I rowsort
SELECT ALL - 77 - tab1.col0 FROM tab1
----
-141
-157
-80

onlyif mysql # use DIV operator for integer division
query I rowsort label-3668
SELECT ALL CAST( 16 AS SIGNED ) DIV col1 - - col2 AS col1 FROM tab1
----
54
58
97

skipif mysql # not compatible
query I rowsort label-3668
SELECT ALL CAST ( 16 AS INTEGER ) / col1 - - col2 AS col1 FROM tab1
----
54
58
97

query I rowsort
SELECT col1 * - col2 * + tab2.col2 - ( col0 ) FROM tab2
----
-22606
-24627
-39962

query I rowsort
SELECT col2 + tab2.col0 * col1 AS col0 FROM tab2
----
1381
244
4628

query I rowsort
SELECT + ( col1 ) * + col0 AS col1 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT - cor1.col1 * + 28 AS col2 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 2e8c1d1994713c57610ed36cfb68f612

query I rowsort
SELECT DISTINCT - col2 * ( + col0 ) AS col0 FROM tab2
----
-189
-2028
-3002

onlyif mysql # use DIV operator for integer division
query I rowsort label-3674
SELECT DISTINCT - - col0 DIV + cor0.col0 + - 28 DIV + col0 FROM tab1 AS cor0
----
-8
1

skipif mysql # not compatible
query I rowsort label-3674
SELECT DISTINCT - - col0 / + cor0.col0 + - 28 / + col0 FROM tab1 AS cor0
----
-8
1

query I rowsort
SELECT + + cor0.col2 + cor0.col0 AS col2 FROM tab1 AS cor0
----
121
176
57

query I rowsort
SELECT 20 * col0 AS col0 FROM tab2 cor0
----
140
1560
1580

query I rowsort
SELECT ALL 65 * col2 AS col2 FROM tab1 AS cor0
----
3510
3705
6240

query I rowsort
SELECT ALL tab2.col1 * + col0 + + tab2.col2 + - tab2.col0 * + tab2.col2 AS col2 FROM tab2
----
-1621
2600
55

query I rowsort
SELECT + 40 * col2 - + ( - col2 + + col1 ) FROM tab2 AS cor0
----
1007
1076
1541

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3680
SELECT + col2 * + col2 + + CAST( + col0 * col2 AS SIGNED ) FROM tab0 AS cor0
----
14022
1881
36

skipif mysql # not compatible
query I rowsort label-3680
SELECT + col2 * + col2 + + CAST ( + col0 * col2 AS INTEGER ) FROM tab0 AS cor0
----
14022
1881
36

onlyif mysql # use DIV operator for integer division
query I rowsort label-3681
SELECT ALL + col2 * col1 DIV - col2 + ( + col1 ) AS col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3681
SELECT ALL + col2 * col1 / - col2 + ( + col1 ) AS col1 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-3682
SELECT - cor0.col0 DIV + col1 + - col2 * col0 col2 FROM tab0 AS cor0
----
-35
-7298
-792

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3682
SELECT - cor0.col0 / + col1 + - col2 * col0 col2 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT DISTINCT + col1 + - col1 * col2 FROM tab2 AS cor0
----
-1475
-629
-806

query I rowsort
SELECT + + 19 + col1 + 77 * - col1 FROM tab1 AS cor0
----
-1957
-741
-969

query I rowsort
SELECT - 64 + + col0 * ( cor0.col0 + col1 * cor0.col1 ) FROM tab1 AS cor0
----
10432
1973
19856

query I rowsort
SELECT + col2 * + col1 - - col1 AS col1 FROM tab1 AS cor0
----
1261
1430
580

query I rowsort
SELECT DISTINCT 64 AS col0 FROM tab1 cor0
----
64

query I rowsort
SELECT DISTINCT 26 * col0 AS col0 FROM tab1 AS cor0
----
1664
2080
78

query I rowsort
SELECT DISTINCT - 1 AS col2 FROM tab2 AS cor0
----
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 74 * col0 - col2 * 0 col0 FROM tab1 AS cor0
----
-222
-4736
-5920

query I rowsort
SELECT ALL col2 + 79 AS col2 FROM tab1 AS cor0
----
133
136
175

onlyif mysql # use DIV operator for integer division
query I rowsort label-3692
SELECT DISTINCT - col1 + col1 DIV - 1 FROM tab0 AS cor0
----
-172
-182
-194

skipif mysql # not compatible
query I rowsort label-3692
SELECT DISTINCT - col1 + col1 / - 1 FROM tab0 AS cor0
----
-172
-182
-194

query I rowsort
SELECT ALL + col2 - col1 FROM tab0 cor0
----
-53
-9
-96

query I rowsort
SELECT + col2 + - 10 AS col0 FROM tab2 AS cor0
----
16
17
28

query I rowsort
SELECT + + col0 * 90 FROM tab2 AS cor0
----
630
7020
7110

query I rowsort
SELECT ALL ( col1 ) + - col1 * col0 * col2 AS col1 FROM tab1 AS cor0
----
-36470
-4186
-99827

query I rowsort
SELECT DISTINCT - ( + 60 ) - col1 FROM tab1 AS cor0
----
-70
-73
-86

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3698
SELECT DISTINCT - - cor0.col0 * 90 + col1 * - CAST( + col2 AS SIGNED ) + - col0 FROM tab0 cor0
----
-702
3018
459

skipif mysql # not compatible
query I rowsort label-3698
SELECT DISTINCT - - cor0.col0 * 90 + col1 * - CAST ( + col2 AS INTEGER ) + - col0 FROM tab0 cor0
----
-702
3018
459

onlyif mysql # use DIV operator for integer division
query I rowsort label-3699
SELECT ALL col1 DIV + col1 + + cor0.col0 + + cor0.col0 AS col0 FROM tab1 AS cor0
----
129
161
7

skipif mysql # not compatible
query I rowsort label-3699
SELECT ALL col1 / + col1 + + cor0.col0 + + cor0.col0 AS col0 FROM tab1 AS cor0
----
129
161
7

query I rowsort
SELECT DISTINCT + cor1.col0 FROM tab1, tab1 cor0, tab2 AS cor1
----
7
78
79

query I rowsort
SELECT - 77 FROM tab1 cor0
----
-77
-77
-77

query I rowsort
SELECT ALL + - col2 * - col0 + - cor0.col0 AS col2 FROM tab0 AS cor0
----
0
7209
768

query I rowsort
SELECT DISTINCT - ( - cor0.col2 ) - col1 FROM tab0 cor0
----
-53
-9
-96

query I rowsort
SELECT 26 AS col2 FROM tab1, tab2 cor0
----
9 values hashing to 2d1c3129ed17fd721d4876b21c035584

onlyif mysql # use DIV operator for integer division
query I rowsort label-3705
SELECT DISTINCT - col1 DIV ( + 30 ) FROM tab2
----
-1
0

skipif mysql # not compatible
query I rowsort label-3705
SELECT DISTINCT - col1 / ( + 30 ) FROM tab2
----
-1
0

query I rowsort
SELECT DISTINCT - - cor0.col0 AS col1 FROM tab0 cor0
----
24
35
89

onlyif mysql # use DIV operator for integer division
query I rowsort label-3707
SELECT + col0 * col1 + - col2 DIV - col0 + - ( - ( cor0.col0 ) + 86 ) DIV col0 FROM tab2 AS cor0
----
1343
209
4602

skipif mysql # not compatible
query I rowsort label-3707
SELECT + col0 * col1 + - col2 / - col0 + - ( - ( cor0.col0 ) + 86 ) / col0 FROM tab2 AS cor0
----
1343
209
4602

query I rowsort
SELECT DISTINCT col2 * 12 AS col2 FROM tab1 AS cor0
----
1152
648
684

query I rowsort
SELECT ALL ( + col2 ) * col1 AS col0 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT - + ( col1 ) * - cor0.col0 + + 49 AS col1 FROM tab0 AS cor0
----
2113
3444
8148

query I rowsort
SELECT ALL - col0 + ( col2 + + col2 ) * col0 * + col1 AS col2 FROM tab1 AS cor0
----
199600
72896
8421

query I rowsort
SELECT DISTINCT + cor0.col2 + - 10 * col2 FROM tab0 AS cor0
----
-297
-738
-9

query I rowsort
SELECT + + cor0.col2 + 6 FROM tab2 AS cor0
----
32
33
44

query I rowsort
SELECT - - cor0.col1 * + col2 AS col2 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT ALL + col1 + - 77 * col2 FROM tab1 AS cor0
----
-4132
-4379
-7379

query I rowsort
SELECT DISTINCT - col0 + + 5 * - cor0.col0 FROM tab2 cor0
----
-42
-468
-474

query I rowsort
SELECT 17 + - col2 * col2 * col2 AS col2 FROM tab0 AS cor0
----
-35920
-551351
16

query I rowsort
SELECT + - 40 AS col2 FROM tab2 AS cor0
----
-40
-40
-40

query I rowsort
SELECT DISTINCT - + 74 * cor0.col1 - + 76 FROM tab1 AS cor0
----
-1038
-2000
-816

query I rowsort
SELECT ALL col1 + col1 + - ( - cor0.col2 ) FROM tab1 cor0
----
106
122
77

query I rowsort
SELECT ALL - 81 * + col2 - col1 AS col1 FROM tab0 AS cor0
----
-178
-2759
-6733

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3722
SELECT + col2 - - col2 * + CAST( col0 AS SIGNED ) FROM tab0 AS cor0
----
36
7380
825

skipif mysql # not compatible
query I rowsort label-3722
SELECT + col2 - - col2 * + CAST ( col0 AS INTEGER ) FROM tab0 AS cor0
----
36
7380
825

query I rowsort
SELECT DISTINCT + - col0 * - cor0.col0 + - col1 * - 58 FROM tab2 cor0
----
1847
7227
9506

query I rowsort
SELECT + cor0.col0 - col1 FROM tab1 cor0
----
-23
54
67

query I rowsort
SELECT ALL - - cor0.col2 + col1 FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT DISTINCT + col0 + + col0 * + col1 AS col0 FROM tab1 AS cor0
----
1120
704
81

query I rowsort
SELECT DISTINCT - - 15 - col1 * - ( + ( cor0.col2 ) ) FROM tab1 AS cor0
----
1263
1419
585

query I rowsort
SELECT + - col0 + cor0.col2 * 42 * col0 AS col0 FROM tab0 AS cor0
----
1435
306427
33240

query I rowsort
SELECT ALL 67 + cor0.col0 * 19 FROM tab1 cor0
----
124
1283
1587

query I rowsort
SELECT DISTINCT + + col0 * + cor0.col1 - - 24 FROM tab1 AS cor0
----
102
1064
664

query I rowsort
SELECT 38 * col0 - ( - cor0.col1 ) AS col0 FROM tab1 AS cor0
----
140
2442
3053

query I rowsort
SELECT DISTINCT - + col2 + cor0.col0 AS col2 FROM tab2 cor0
----
-20
41
52

query I rowsort
SELECT DISTINCT - - 39 * + col2 FROM tab0 AS cor0
----
1287
3198
39

query I rowsort
SELECT ALL cor1.col2 * cor1.col2 AS col1 FROM tab2, tab2 cor0, tab1 AS cor1
----
27 values hashing to 255bedb67400f83d272763889db4ca4f

query I rowsort
SELECT - 4 AS col0 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 5784540a5af6ca2be84399d314acd2fd

query I rowsort
SELECT col0 + - col2 * col1 * tab0.col0 FROM tab0
----
-3360
-664029
-68088

query I rowsort
SELECT ALL 2 * col1 + col2 + - col1 FROM tab1
----
109
67
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-3738
SELECT + cor0.col2 DIV CAST( 22 AS SIGNED ) + + col1 * - CAST( + col2 AS SIGNED ) col0 FROM tab0 AS cor0
----
-2837
-7459
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3738
SELECT + cor0.col2 / CAST ( 22 AS INTEGER ) + + col1 * - CAST ( + col2 AS INTEGER ) col0 FROM tab0 AS cor0
----
-2837
-7459
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-3739
SELECT + col2 * + col2 + 50 DIV col1 col0 FROM tab1 AS cor0
----
2917
3254
9219

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3739
SELECT + col2 * + col2 + 50 / col1 col0 FROM tab1 AS cor0
----
2917
3254
9219

query I rowsort
SELECT DISTINCT + col2 + - 45 * cor0.col2 FROM tab2 AS cor0
----
-1144
-1188
-1672

query I rowsort
SELECT + - col0 - + 55 * col1 AS col2 FROM tab0 AS cor0
----
-4754
-5094
-5370

onlyif mysql # use DIV operator for integer division
query I rowsort label-3742
SELECT 90 DIV col2 AS col1 FROM tab1
----
0
1
1

skipif mysql # not compatible
query I rowsort label-3742
SELECT 90 / col2 AS col1 FROM tab1
----
0
1
1

query I rowsort
SELECT ALL col0 + col1 * ( col2 ) AS col2 FROM tab1
----
1328
1407
634

query I rowsort
SELECT col0 - - ( + col1 ) FROM tab1 AS cor0
----
29
74
93

query I rowsort
SELECT + col0 + - col2 * col0 * col0 FROM tab0 AS cor0
----
-1190
-18984
-649433

query I rowsort
SELECT ( + 1 ) AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 001554c2952f1a80506b182ee04686f5

onlyif mysql # use DIV operator for integer division
query I rowsort label-3747
SELECT + col1 * col1 DIV - col2 FROM tab1
----
-1
-1
-12

skipif mysql # not compatible
query I rowsort label-3747
SELECT + col1 * col1 / - col2 FROM tab1
----
-1
-1
-12

query I rowsort
SELECT - col2 * cor0.col1 - + col1 FROM tab0 AS cor0
----
-194
-2924
-7553

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 57 col0 FROM tab2, tab1 cor0
----
9 values hashing to 61da70c624ad60604a668f7f8f29392a

query I rowsort
SELECT DISTINCT + 14 - - cor1.col2 AS col1 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
110
68
71

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3751
SELECT cor1.col1 + CAST( NULL AS SIGNED ) FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-3751
SELECT cor1.col1 + CAST ( NULL AS INTEGER ) FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT DISTINCT + col2 * + tab1.col1 AS col1 FROM tab1
----
1248
1404
570

query I rowsort
SELECT DISTINCT + tab2.col2 + + tab2.col1 FROM tab2
----
55
58
85

query I rowsort
SELECT - col1 * + tab1.col1 AS col1 FROM tab1
----
-100
-169
-676

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * - col0 * + col2 col1 FROM tab2
----
-1323
-158184
-237158

query I rowsort
SELECT DISTINCT 59 + - col0 FROM tab0 AS cor0
----
-30
24
35

query I rowsort
SELECT - 21 AS col2 FROM tab1 cor0
----
-21
-21
-21

query I rowsort
SELECT + col0 * cor0.col1 * col2 FROM tab0 AS cor0
----
3395
664118
68112

query I rowsort
SELECT ALL + - col1 * - col2 + col2 * col1 + col1 AS col2 FROM tab2 AS cor0
----
1309
1705
3127

onlyif mysql # use DIV operator for integer division
query I rowsort label-3760
SELECT DISTINCT + col2 DIV + tab1.col2 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-3760
SELECT DISTINCT + col2 / + tab1.col2 FROM tab1
----
1

query I rowsort
SELECT - col1 * col2 + + col2 FROM tab2
----
-1508
-608
-810

query I rowsort
SELECT DISTINCT col0 + col2 * - col1 + tab0.col1 AS col0 FROM tab0
----
-2728
-7282
35

query I rowsort
SELECT DISTINCT - col2 + tab1.col0 FROM tab1
----
-16
-51
7

query I rowsort
SELECT ALL col0 * + tab1.col2 + col1 * col2 + + col1 AS col0 FROM tab1
----
1592
4228
8941

onlyif mysql # use DIV operator for integer division
query I rowsort label-3765
SELECT ALL col0 + col1 + col1 DIV col1 AS col0 FROM tab0
----
111
133
181

skipif mysql # not compatible
query I rowsort label-3765
SELECT ALL col0 + col1 + col1 / col1 AS col0 FROM tab0
----
111
133
181

query I rowsort
SELECT ALL col1 * tab1.col0 AS col2 FROM tab1
----
1040
640
78

query I rowsort
SELECT DISTINCT col1 + col0 + col1 FROM tab0
----
196
229
271

query I rowsort
SELECT - col1 + + col0 + + tab0.col0 * - tab0.col2 AS col1 FROM tab0
----
-7300
-854
-97

query I rowsort
SELECT DISTINCT + col1 + - col1 + - col2 FROM tab2
----
-26
-27
-38

query I rowsort
SELECT + col2 * col1 + - col0 FROM tab0
----
2814
62
7373

query I rowsort
SELECT + tab1.col0 * + col0 AS col1 FROM tab1
----
4096
6400
9

query I rowsort
SELECT DISTINCT tab0.col2 * - col2 * col2 FROM tab0
----
-1
-35937
-551368

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL BETWEEN ( NULL ) AND col0 / - col2
----

query I rowsort
SELECT 45 * + col2 FROM tab1 AS cor0
----
2430
2565
4320

query I rowsort
SELECT - col2 * - col1 * + col1 FROM tab1 AS cor0
----
16224
36504
5700

query I rowsort
SELECT ALL + + col0 * col1 AS col2 FROM tab1 cor0
----
1040
640
78

query I rowsort
SELECT ALL + 70 * cor0.col2 FROM tab0 AS cor0
----
2310
5740
70

query I rowsort
SELECT ALL tab1.col1 + col1 AS col0 FROM tab1
----
20
26
52

query I rowsort
SELECT ALL col1 AS col1 FROM tab2 AS cor0 WHERE NOT NULL <> NULL
----

query I rowsort
SELECT DISTINCT cor0.col2 * col2 + + col2 + col2 FROM tab2 AS cor0
----
1520
728
783

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - cor0.col0 * - col1 col0 FROM tab1 AS cor0
----
-234
-40960
-83200

query I rowsort
SELECT col0 AS col2 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN col0 / col0 + col0 AND col1
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-3783
SELECT DISTINCT + col1 DIV col1 - tab0.col0 FROM tab0
----
-23
-34
-88

skipif mysql # not compatible
query I rowsort label-3783
SELECT DISTINCT + col1 / col1 - tab0.col0 FROM tab0
----
-23
-34
-88

onlyif mysql # use DIV operator for integer division
query I rowsort label-3784
SELECT ALL + tab0.col0 DIV - col2 - + col0 FROM tab0
----
-24
-70
-90

skipif mysql # not compatible
query I rowsort label-3784
SELECT ALL + tab0.col0 / - col2 - + col0 FROM tab0
----
-24
-70
-90

query I rowsort
SELECT DISTINCT col2 * - col1 + col2 * + col0 FROM tab2
----
-648
2356
494

onlyif mysql # use DIV operator for integer division
query I rowsort label-3786
SELECT + col0 + col2 * col2 DIV col1 col0 FROM tab2
----
163
30
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3786
SELECT + col0 + col2 * col2 / col1 col0 FROM tab2
----
163
30
89

query I rowsort
SELECT DISTINCT col0 + + col1 * - col1 FROM tab1
----
-36
-673
-89

query III rowsort
SELECT * FROM tab0 WHERE col1 NOT BETWEEN ( + col0 ) AND NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-3789
SELECT DISTINCT + col2 DIV - tab1.col2 + - col1 AS col1 FROM tab1
----
-11
-14
-27

skipif mysql # not compatible
query I rowsort label-3789
SELECT DISTINCT + col2 / - tab1.col2 + - col1 AS col1 FROM tab1
----
-11
-14
-27

query I rowsort
SELECT DISTINCT - col1 * + tab0.col2 - - col1 * col1 * - col1 AS col2 FROM tab0
----
-638894
-761033
-912770

query I rowsort
SELECT tab1.col1 + col0 * - col1 AS col1 FROM tab1
----
-1027
-52
-630

query III rowsort
SELECT * FROM tab1 WHERE ( NULL ) BETWEEN NULL AND col0 * + col1 * + col1 + col0 + col2
----

query I rowsort
SELECT + - 82 AS col0 FROM tab0 AS cor0
----
-82
-82
-82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - ( + 53 ) * col1 col0 FROM tab1 AS cor0
----
-1378
-530
-689

query I rowsort
SELECT + + 92 * - col1 AS col2 FROM tab0 cor0
----
-7912
-8372
-8924

query I rowsort
SELECT DISTINCT + 14 * - 91 + - col1 AS col0 FROM tab1 AS cor0
----
-1284
-1287
-1300

query I rowsort
SELECT ALL - tab2.col2 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 7b5938124253798426fbf09c18e1fd75

query I rowsort
SELECT DISTINCT - + 44 * - 88 FROM tab0 AS cor0
----
3872

query I rowsort
SELECT DISTINCT + 54 FROM tab0 AS cor0 CROSS JOIN tab2, tab2 AS cor1, tab2 AS cor2, tab2 AS cor3
----
54

query I rowsort
SELECT 5 + + col0 FROM tab2
----
12
83
84

query I rowsort
SELECT col1 + + ( col1 ) AS col1 FROM tab1
----
20
26
52

query I rowsort
SELECT DISTINCT - ( + col2 ) * col0 AS col2 FROM tab2
----
-189
-2028
-3002

query I rowsort
SELECT ALL ( - col0 ) + col1 * + ( 54 ) * col1 FROM tab0 AS cor0
----
399360
447085
508051

query I rowsort
SELECT DISTINCT 84 AS col1 FROM tab2, tab0 AS cor0
----
84

query I rowsort
SELECT DISTINCT 10 * + col0 + + col1 FROM tab2 cor0
----
101
807
839

query I rowsort
SELECT ALL - ( 37 + col1 ) AS col2 FROM tab1
----
-47
-50
-63

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 12 * - col2 col2 FROM tab0
----
-12
-396
-984

query I rowsort
SELECT ALL col1 * + col2 AS col0 FROM tab2 cor0
----
1534
646
837

onlyif mysql # use DIV operator for integer division
query I rowsort label-3809
SELECT ALL col1 DIV + ( ( col1 ) ) AS col2 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3809
SELECT ALL col1 / + ( ( col1 ) ) AS col2 FROM tab0 AS cor0
----
1
1
1

query I rowsort
SELECT ALL - col1 * + col0 * col1 FROM tab0
----
-177504
-329315
-737009

query I rowsort
SELECT - ( + col1 * 97 ) FROM tab1
----
-1261
-2522
-970

query I rowsort
SELECT + 33 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to 76da8bc7cae18ecf856438f872430c80

query I rowsort
SELECT 80 - - col2 AS col0 FROM tab0
----
113
162
81

query I rowsort
SELECT DISTINCT - tab1.col1 + - col0 AS col0 FROM tab1
----
-29
-74
-93

onlyif mysql # use DIV operator for integer division
query I rowsort label-3815
SELECT col0 * - col0 + + col2 DIV cor0.col2 + + cor0.col1 AS col2 FROM tab1 AS cor0
----
-4085
-6386
18

skipif mysql # not compatible
query I rowsort label-3815
SELECT col0 * - col0 + + col2 / cor0.col2 + + cor0.col1 AS col2 FROM tab1 AS cor0
----
-4085
-6386
18

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor1.col0 + cor1.col0 col0 FROM tab0 AS cor0 CROSS JOIN tab1, tab0 AS cor1
----
27 values hashing to 1c6e84d7f635ba3a028c9a60b14e4bac

query I rowsort
SELECT ALL col1 * + cor0.col1 AS col2 FROM tab0 AS cor0
----
7396
8281
9409

onlyif mysql # use DIV operator for integer division
query I rowsort label-3818
SELECT DISTINCT - col2 DIV 17 FROM tab1 AS cor0
----
-3
-5

skipif mysql # not compatible
query I rowsort label-3818
SELECT DISTINCT - col2 / 17 FROM tab1 AS cor0
----
-3
-5

onlyif mysql # use DIV operator for integer division
query I rowsort label-3819
SELECT + + col1 * + col1 + col0 DIV col1 + col2 col2 FROM tab0 AS cor0
----
7429
8363
9410

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3819
SELECT + + col1 * + col1 + col0 / col1 + col2 col2 FROM tab0 AS cor0
----
7429
8363
9410

query I rowsort
SELECT + col1 * - col1 * + cor0.col1 FROM tab0 AS cor0
----
-636056
-753571
-912673

onlyif mysql # use DIV operator for integer division
query I rowsort label-3821
SELECT col2 * - col2 + - col0 + + col0 DIV - col1 FROM tab0 AS cor0
----
-1113
-36
-6813

skipif mysql # not compatible
query I rowsort label-3821
SELECT col2 * - col2 + - col0 + + col0 / - col1 FROM tab0 AS cor0
----
-1113
-36
-6813

query I rowsort
SELECT - - cor0.col1 * ( 76 ) AS col1 FROM tab0 AS cor0
----
6536
6916
7372

onlyif mysql # use DIV operator for integer division
query I rowsort label-3823
SELECT ALL + cor0.col1 + ( + col1 ) DIV - col0 FROM tab2 AS cor0
----
17
27
59

skipif mysql # not compatible
query I rowsort label-3823
SELECT ALL + cor0.col1 + ( + col1 ) / - col0 FROM tab2 AS cor0
----
17
27
59

query I rowsort
SELECT DISTINCT - + col1 + - ( + col1 ) FROM tab1 AS cor0
----
-20
-26
-52

query I rowsort
SELECT DISTINCT col1 * 34 AS col1 FROM tab0 AS cor0
----
2924
3094
3298

query I rowsort
SELECT ALL 65 + - col0 FROM tab2
----
-13
-14
58

query I rowsort
SELECT + 85 * + col0 AS col1 FROM tab2 AS cor0
----
595
6630
6715

query I rowsort
SELECT DISTINCT - 93 FROM tab0, tab1, tab0 AS cor0
----
-93

onlyif mysql # use DIV operator for integer division
query I rowsort label-3829
SELECT DISTINCT col1 + col2 DIV col0 AS col1 FROM tab0
----
87
91
97

skipif mysql # not compatible
query I rowsort label-3829
SELECT DISTINCT col1 + col2 / col0 AS col1 FROM tab0
----
87
91
97

query I rowsort
SELECT - col2 + 43 FROM tab2
----
16
17
5

query I rowsort
SELECT - 28 * - col1 * - col1 + ( - 23 ) AS col2 FROM tab0
----
-207111
-231891
-263475

query I rowsort
SELECT ALL 85 * - tab0.col1 * col1 + 77 AS col0 FROM tab0
----
-628583
-703808
-799688

query I rowsort
SELECT DISTINCT 37 + 48 + col2 AS col2 FROM tab1
----
139
142
181

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + col2 col1 FROM tab1
----
109
67
80

query I rowsort
SELECT DISTINCT - - col2 + + col2 FROM tab1 cor0
----
108
114
192

query I rowsort
SELECT 2 + - col0 + col2 FROM tab0 cor0
----
-32
-5
11

query I rowsort
SELECT + col0 * col1 + - 27 FROM tab0 AS cor0
----
2037
3368
8072

onlyif mysql # use DIV operator for integer division
query I rowsort label-3838
SELECT DISTINCT + 73 * col1 DIV + ( cor0.col2 + + col1 * + ( col0 ) ) AS col2 FROM tab2 cor0
----
0
9

skipif mysql # not compatible
query I rowsort label-3838
SELECT DISTINCT + 73 * col1 / + ( cor0.col2 + + col1 * + ( col0 ) ) AS col2 FROM tab2 cor0
----
0
9

query I rowsort
SELECT ALL + - 33 + col2 * col1 AS col1 FROM tab0 AS cor0
----
2805
64
7429

query I rowsort
SELECT + - cor0.col1 + - col1 * col1 FROM tab2 AS cor0
----
-306
-3540
-992

query I rowsort
SELECT - 9 * - cor0.col1 * cor0.col2 AS col0 FROM tab2 AS cor0
----
13806
5814
7533

query I rowsort
SELECT ALL - 55 * col0 FROM tab0 AS cor0
----
-1320
-1925
-4895

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3843
SELECT ALL - - 95 + - col0 + - CAST( NULL AS SIGNED ) * + col0 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3843
SELECT ALL - - 95 + - col0 + - CAST ( NULL AS INTEGER ) * + col0 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + - 58 FROM tab0 AS cor0
----
-58

query I rowsort
SELECT + 33 * - col0 + ( + cor0.col2 ) * cor0.col2 FROM tab0 AS cor0
----
-1154
297
3787

query I rowsort
SELECT ALL cor0.col0 FROM tab0 AS cor0 CROSS JOIN tab1, tab1 AS cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd

onlyif mysql # use DIV operator for integer division
query I rowsort label-3847
SELECT col2 + + 97 DIV - col0 FROM tab1
----
22
56
95

skipif mysql # not compatible
query I rowsort label-3847
SELECT col2 + + 97 / - col0 FROM tab1
----
22
56
95

query I rowsort
SELECT + + cor0.col0 * 5 * col2 FROM tab1 AS cor0
----
18240
38400
810

query I rowsort
SELECT ALL - col1 * + col2 + + 69 FROM tab2 AS cor0
----
-1465
-577
-768

query I rowsort
SELECT + col1 + ( - 9 ) FROM tab1 cor0
----
1
17
4

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 ALL - cor0.col2 * + 47 + + col2 + + col2 AS col1 FROM tab1 AS cor0
----
-2430
-2565
-4320

query I rowsort
SELECT DISTINCT - cor0.col0 + col2 + ( col0 ) FROM tab2 cor0
----
26
27
38

onlyif mysql # use DIV operator for integer division
query I rowsort label-3854
SELECT ALL - + col2 * col2 + col1 DIV + col0 AS col0 FROM tab2 AS cor0
----
-1444
-676
-725

skipif mysql # not compatible
query I rowsort label-3854
SELECT ALL - + col2 * col2 + col1 / + col0 AS col0 FROM tab2 AS cor0
----
-1444
-676
-725

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3855
SELECT DISTINCT cor0.col1 * CAST( col0 AS SIGNED ) FROM tab0 cor0
----
2064
3395
8099

skipif mysql # not compatible
query I rowsort label-3855
SELECT DISTINCT cor0.col1 * CAST ( col0 AS INTEGER ) FROM tab0 cor0
----
2064
3395
8099

query I rowsort
SELECT DISTINCT + col0 * - ( + 74 ) + + col1 * ( cor0.col2 * - col0 ) + - col2 * col1 FROM tab2 AS cor0
----
-126958
-57526
-7214

query I rowsort
SELECT DISTINCT - + cor0.col1 * 69 + + col0 FROM tab1 AS cor0
----
-1791
-626
-817

query I rowsort
SELECT - + col1 * 20 AS col0 FROM tab2 AS cor0
----
-1180
-340
-620

query I rowsort
SELECT ALL - col0 * 99 FROM tab1 AS cor0
----
-297
-6336
-7920

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col2 + cor0.col0 col2 FROM tab2 AS cor0
----
104
117
34

query I rowsort
SELECT DISTINCT + col1 * - cor0.col0 AS col2 FROM tab1 AS cor0
----
-1040
-640
-78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * + ( + col0 ) + 37 * col0 col2 FROM tab1 AS cor0
----
10640
273
6016

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3863
SELECT - CAST( + 76 AS SIGNED ) - col2 AS col2 FROM tab0 AS cor0
----
-109
-158
-77

skipif mysql # not compatible
query I rowsort label-3863
SELECT - CAST ( + 76 AS INTEGER ) - col2 AS col2 FROM tab0 AS cor0
----
-109
-158
-77

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3864
SELECT DISTINCT + ( - col2 ) + col0 * + CAST( NULL AS SIGNED ) col0 FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3864
SELECT DISTINCT + ( - col2 ) + col0 * + CAST ( NULL AS INTEGER ) col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT 74 * - col0 - col2 AS col2 FROM tab2 AS cor0
----
-545
-5798
-5884

query I rowsort
SELECT ALL col1 + ( col0 ) * 92 AS col1 FROM tab1 AS cor0
----
302
5898
7373

query I rowsort
SELECT + - col1 * - 49 + + col1 * - 36 - 84 * col1 AS col1 FROM tab0 AS cor0
----
-6106
-6461
-6887

query I rowsort
SELECT + col2 * col1 * col0 FROM tab2 AS cor0
----
119652
51034
5859

onlyif mysql # use DIV operator for integer division
query I rowsort label-3869
SELECT - col1 - + col0 DIV col1 FROM tab1 AS cor0
----
-16
-19
-26

skipif mysql # not compatible
query I rowsort label-3869
SELECT - col1 - + col0 / col1 FROM tab1 AS cor0
----
-16
-19
-26

query I rowsort
SELECT + col2 + col1 * col1 AS col0 FROM tab2 AS cor0
----
327
3507
988

query I rowsort
SELECT ALL - + col2 * - col2 + + col2 AS col0 FROM tab0 AS cor0
----
1122
2
6806

query I rowsort
SELECT DISTINCT + 92 - col1 AS col0 FROM tab1 AS cor0
----
66
79
82

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3873
SELECT ALL + CAST( NULL AS SIGNED ) * col1 + col1 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3873
SELECT ALL + CAST ( NULL AS INTEGER ) * col1 + col1 FROM tab1 cor0
----
NULL
NULL
NULL

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab0 AS cor0 CROSS JOIN tab2, tab1, tab0 cor1
----
3645 values hashing to b225d3765f33551c12574f545c8c91eb

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * col0 + - col1 col0 FROM tab1 cor0
----
-35
-4106
-6413

query I rowsort
SELECT - - 99 * + col1 FROM tab1 AS cor0
----
1287
2574
990

query I rowsort
SELECT - col2 - - col2 * ( + cor0.col1 ) AS col2 FROM tab2 AS cor0
----
1508
608
810

query IIIIIIIIIIIIIIIIII rowsort
SELECT * FROM tab0, tab1 cor0 CROSS JOIN tab1, tab2, tab1 AS cor1, tab2 cor2
----
13122 values hashing to 4c620d71e50a103976e366dbad83b5a5

query I rowsort
SELECT ALL cor0.col0 + + cor0.col1 + - ( + 84 ) AS col0 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 6d9b3193033f9bcafefaa78d8dd37944

query I rowsort
SELECT DISTINCT - col1 + - col1 * + col0 FROM tab1 AS cor0
----
-104
-1053
-650

query I rowsort
SELECT col0 * - ( - col2 ) FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT - 43 * - cor0.col1 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 314fb40c1c87692d564cc2626c559934

onlyif mysql # use DIV operator for integer division
query I rowsort label-3883
SELECT col1 + + col1 DIV + 45 FROM tab1
----
10
13
26

skipif mysql # not compatible
query I rowsort label-3883
SELECT col1 + + col1 / + 45 FROM tab1
----
10
13
26

query I rowsort
SELECT DISTINCT tab1.col0 AS col2 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
3
64
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-3885
SELECT - cor0.col1 DIV + 92 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

skipif mysql # not compatible
query I rowsort label-3885
SELECT - cor0.col1 / + 92 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query I rowsort
SELECT DISTINCT 46 AS col2 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
46

query I rowsort
SELECT ALL - col0 * + col1 AS col1 FROM tab2 AS cor0
----
-1343
-217
-4602

onlyif mysql # use DIV operator for integer division
query I rowsort label-3888
SELECT + - 41 DIV + col0 AS col1 FROM tab2 AS cor0
----
-5
0
0

skipif mysql # not compatible
query I rowsort label-3888
SELECT + - 41 / + col0 AS col1 FROM tab2 AS cor0
----
-5
0
0

query I rowsort
SELECT + 13 - - col0 AS col0 FROM tab1
----
16
77
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 + ( col0 ) * - col1 * + ( - 70 ) + - col2 * ( + col0 ) * col2 col2 FROM tab2 AS cor0
----
-19987
10094
269490

query I rowsort
SELECT ALL - tab1.col0 - col0 * + col1 AS col2 FROM tab1
----
-1120
-704
-81

query I rowsort
SELECT - col2 * + cor0.col2 AS col2 FROM tab2 cor0
----
-1444
-676
-729

query I rowsort
SELECT + 89 + col1 FROM tab2
----
106
120
148

query I rowsort
SELECT - + ( 37 ) * - col1 * - 57 FROM tab1 AS cor0
----
-21090
-27417
-54834

query I rowsort
SELECT DISTINCT ( tab2.col1 ) FROM tab2
----
17
31
59

query I rowsort
SELECT DISTINCT - cor0.col1 AS col1 FROM tab1, tab0, tab2 AS cor0
----
-17
-31
-59

query I rowsort
SELECT - 99 * col0 FROM tab1 AS cor0
----
-297
-6336
-7920

query I rowsort
SELECT - 92 AS col2 FROM tab2 AS cor0
----
-92
-92
-92

query I rowsort
SELECT ALL + cor2.col2 * cor1.col0 AS col2 FROM tab2, tab1 AS cor0, tab0 AS cor1, tab1 AS cor2
----
81 values hashing to a4b05f73428cb11899947af193b0ab2a

query I rowsort
SELECT + ( col0 ) * + col0 FROM tab0 cor0
----
1225
576
7921

query I rowsort
SELECT DISTINCT - tab1.col1 FROM tab1, tab0, tab1 AS cor0
----
-10
-13
-26

onlyif mysql # use DIV operator for integer division
query I rowsort label-3902
SELECT ALL + col2 DIV + col1 + - 61 * + col2 FROM tab2 AS cor0
----
-1586
-1647
-2316

skipif mysql # not compatible
query I rowsort label-3902
SELECT ALL + col2 / + col1 + - 61 * + col2 FROM tab2 AS cor0
----
-1586
-1647
-2316

query I rowsort
SELECT ALL - col2 + + col0 AS col1 FROM tab2 cor0
----
-20
41
52

query I rowsort
SELECT ALL - 31 AS col0 FROM tab0 AS cor0
----
-31
-31
-31

onlyif mysql # use DIV operator for integer division
query I rowsort label-3905
SELECT DISTINCT - 0 + col1 DIV + 27 AS col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3905
SELECT DISTINCT - 0 + col1 / + 27 AS col0 FROM tab1 AS cor0
----
0

query I rowsort
SELECT DISTINCT - - col0 * + col0 + 51 FROM tab0 AS cor0
----
1276
627
7972

onlyif mysql # use DIV operator for integer division
query I rowsort label-3907
SELECT ALL + col2 DIV - col2 + col1 * + col0 FROM tab1 AS cor0
----
1039
639
77

skipif mysql # not compatible
query I rowsort label-3907
SELECT ALL + col2 / - col2 + col1 * + col0 FROM tab1 AS cor0
----
1039
639
77

query I rowsort
SELECT ALL + 37 + col2 AS col0 FROM tab1 AS cor0
----
133
91
94

onlyif mysql # use DIV operator for integer division
query I rowsort label-3909
SELECT DISTINCT ( col0 ) * 9 * col1 + + col2 DIV + 95 FROM tab0 AS cor0
----
18576
30555
72891

skipif mysql # not compatible
query I rowsort label-3909
SELECT DISTINCT ( col0 ) * 9 * col1 + + col2 / + 95 FROM tab0 AS cor0
----
18576
30555
72891

query I rowsort
SELECT - - col1 + + 44 AS col2 FROM tab1 AS cor0
----
54
57
70

query I rowsort
SELECT ALL + + col0 * - 93 + - col1 AS col0 FROM tab0 AS cor0
----
-2318
-3352
-8368

query I rowsort
SELECT ALL + + col2 + + col1 AS col2 FROM tab1 AS cor0
----
109
67
80

query I rowsort
SELECT + - col0 + + 19 FROM tab2 AS cor0
----
-59
-60
12

onlyif mysql # use DIV operator for integer division
query I rowsort label-3914
SELECT ALL + col0 * - col0 + col1 DIV col0 + col2 FROM tab1 AS cor0
----
-4039
-6304
53

skipif mysql # not compatible
query I rowsort label-3914
SELECT ALL + col0 * - col0 + col1 / col0 + col2 FROM tab1 AS cor0
----
-4039
-6304
53

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3915
SELECT DISTINCT + col1 * CAST( - 48 AS SIGNED ) - cor0.col0 FROM tab1 AS cor0
----
-1251
-544
-704

skipif mysql # not compatible
query I rowsort label-3915
SELECT DISTINCT + col1 * CAST ( - 48 AS INTEGER ) - cor0.col0 FROM tab1 AS cor0
----
-1251
-544
-704

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * - col2 col2 FROM tab1 AS cor0
----
-2916
-3249
-9216

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 59 col2 FROM tab0
----
-59

query I rowsort
SELECT DISTINCT 63 AS col0 FROM tab1, tab2, tab0 cor0
----
63

onlyif mysql # use DIV operator for integer division
query I rowsort label-3919
SELECT ALL + + col2 DIV + col1 FROM tab1 AS cor0
----
2
5
7

skipif mysql # not compatible
query I rowsort label-3919
SELECT ALL + + col2 / + col1 FROM tab1 AS cor0
----
2
5
7

query I rowsort
SELECT col2 + 47 AS col2 FROM tab0 AS cor0
----
129
48
80

query I rowsort
SELECT ALL + col2 + col0 AS col2 FROM tab2 cor0
----
104
117
34

onlyif mysql # use DIV operator for integer division
query I rowsort label-3922
SELECT - col2 * - cor0.col2 + + col2 DIV 5 AS col2 FROM tab1 AS cor0
----
2926
3260
9235

skipif mysql # not compatible
query I rowsort label-3922
SELECT - col2 * - cor0.col2 + + col2 / 5 AS col2 FROM tab1 AS cor0
----
2926
3260
9235

query I rowsort
SELECT ALL col0 * ( - col2 ) FROM tab1 cor0
----
-162
-3648
-7680

query I rowsort
SELECT ( 25 ) * + col1 + col2 AS col0 FROM tab0 AS cor0
----
2183
2357
2426

query I rowsort
SELECT DISTINCT - ( + col2 ) * col1 AS col2 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT ALL 52 * 23 FROM tab0 AS cor0
----
1196
1196
1196

query I rowsort
SELECT + - col0 * - col1 - col0 FROM tab0 AS cor0
----
2040
3360
8010

query I rowsort
SELECT + + 74 * + col1 + col0 * ( col1 + - col2 * 40 ) FROM tab1 AS cor0
----
-144540
-305198
-4478

query I rowsort
SELECT ( ( col0 ) ) * 82 AS col2 FROM tab2 AS cor0
----
574
6396
6478

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-3931
SELECT col2 DIV + 56 AS col2 FROM tab1
----
0
1
1

skipif mysql # not compatible
query I rowsort label-3931
SELECT col2 / + 56 AS col2 FROM tab1
----
0
1
1

query I rowsort
SELECT DISTINCT cor1.col1 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
10
13
26

query I rowsort
SELECT 6 AS col2 FROM tab0, tab2 cor0
----
9 values hashing to 5d1cb90ed58fa7573895d2f95b211821

onlyif mysql # use DIV operator for integer division
query I rowsort label-3934
SELECT ALL col1 + col1 + tab0.col2 DIV col2 AS col1 FROM tab0
----
173
183
195

skipif mysql # not compatible
query I rowsort label-3934
SELECT ALL col1 + col1 + tab0.col2 / col2 AS col1 FROM tab0
----
173
183
195

query I rowsort
SELECT DISTINCT - ( col2 + col2 ) * ( col1 * col1 ) AS col0 FROM tab2
----
-181012
-21964
-51894

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3936
SELECT + CAST( NULL AS SIGNED ) * col1 + cor0.col0 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3936
SELECT + CAST ( NULL AS INTEGER ) * col1 + cor0.col0 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-3937
SELECT DISTINCT - - cor0.col2 + col1 DIV + col0 AS col1 FROM tab0 AS cor0
----
3
36
83

skipif mysql # not compatible
query I rowsort label-3937
SELECT DISTINCT - - cor0.col2 + col1 / + col0 AS col1 FROM tab0 AS cor0
----
3
36
83

query I rowsort
SELECT ALL + ( - col2 ) * col1 + ( + col2 + + col2 ) * 95 * + col2 FROM tab0
----
1270098
204072
93

onlyif mysql # use DIV operator for integer division
query I rowsort label-3939
SELECT - col0 + col2 DIV col0 FROM tab0 AS cor0
----
-23
-35
-89

skipif mysql # not compatible
query I rowsort label-3939
SELECT - col0 + col2 / col0 FROM tab0 AS cor0
----
-23
-35
-89

query I rowsort
SELECT - - col1 + cor0.col2 AS col1 FROM tab0 AS cor0
----
119
173
98

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3941
SELECT DISTINCT - - col2 + - CAST( NULL AS DECIMAL ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3941
SELECT DISTINCT - - col2 + - CAST ( NULL AS REAL ) AS col2 FROM tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 - 17 col0 FROM tab2 AS cor0
----
10
21
9

query I rowsort
SELECT DISTINCT - - col0 + col0 * 25 + cor0.col2 FROM tab2 AS cor0
----
2054
209
2092

query I rowsort
SELECT ALL - - col0 * 55 + col0 FROM tab2 cor0
----
392
4368
4424

query I rowsort
SELECT + + col0 * - col2 + cor0.col1 FROM tab1 AS cor0
----
-136
-3638
-7667

query I rowsort
SELECT DISTINCT - + col2 + col0 * - col0 AS col2 FROM tab0 AS cor0
----
-1226
-609
-8003

query I rowsort
SELECT ALL + col2 - col0 FROM tab1 cor0
----
-7
16
51

query I rowsort
SELECT 31 + - cor1.col1 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 1131422395d56ddd72ecaf2ba5a18442

query I rowsort
SELECT - tab1.col0 + + col2 * - col2 FROM tab1
----
-2919
-3313
-9296

query I rowsort
SELECT DISTINCT - col0 + ( - 95 + col1 ) * col2 * col1 FROM tab2
----
-50467
-53575
-55302

query I rowsort
SELECT - - col2 + - 49 * col0 FROM tab0 AS cor0
----
-1143
-1714
-4279

query I rowsort
SELECT tab0.col2 * + tab0.col0 AS col2 FROM tab0
----
35
7298
792

query I rowsort
SELECT + 83 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 18f405c31a0fb47ce3cc9f7effa8855c

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3954
SELECT ALL col0 + CAST( NULL AS SIGNED ) * 49 * + col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3954
SELECT ALL col0 + CAST ( NULL AS INTEGER ) * 49 * + col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT tab2.col1 + cor0.col1 AS col1 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to e415f61bfb9ee5e64ab2e3db961a2f54

query I rowsort
SELECT DISTINCT col2 * col1 + + col1 FROM tab1
----
1261
1430
580

query I rowsort
SELECT DISTINCT + col0 + 49 AS col1 FROM tab0
----
138
73
84

query I rowsort
SELECT col0 * - ( col0 ) AS col1 FROM tab2
----
-49
-6084
-6241

query I rowsort
SELECT - - ( col0 ) * 96 FROM tab0 cor0
----
2304
3360
8544

query I rowsort
SELECT DISTINCT + 13 + - col1 FROM tab1 cor0
----
-13
0
3

query I rowsort
SELECT - - 5 AS col0 FROM tab2 cor0
----
5
5
5

query I rowsort
SELECT - ( + 50 ) AS col2 FROM tab0
----
-50
-50
-50

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3963
SELECT - CAST( NULL AS SIGNED ) * tab0.col2 * col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3963
SELECT - CAST ( NULL AS INTEGER ) * tab0.col2 * col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT + ( + 69 ) AS col2 FROM tab1
----
69
69
69

query I rowsort
SELECT DISTINCT col0 * 86 * + col1 FROM tab2
----
115498
18662
395772

query I rowsort
SELECT DISTINCT 79 AS col1 FROM tab1 AS cor0
----
79

query I rowsort
SELECT - - col2 * + cor0.col2 FROM tab2 AS cor0
----
1444
676
729

onlyif mysql # use DIV operator for integer division
query I rowsort label-3968
SELECT DISTINCT - cor0.col2 DIV + col1 + 8 * - col1 AS col2 FROM tab1 cor0
----
-111
-210
-85

skipif mysql # not compatible
query I rowsort label-3968
SELECT DISTINCT - cor0.col2 / + col1 + 8 * - col1 AS col2 FROM tab1 cor0
----
-111
-210
-85

query I rowsort
SELECT ALL + - cor0.col0 + + col1 * ( col0 * col2 ) FROM tab2 AS cor0
----
119574
50955
5852

query I rowsort
SELECT ALL col1 + - col1 - - ( + col0 ) AS col1 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT DISTINCT + - 42 + cor0.col2 FROM tab2 AS cor0
----
-15
-16
-4

query I rowsort
SELECT DISTINCT 6 * - col0 AS col2 FROM tab2 AS cor0
----
-42
-468
-474

query I rowsort
SELECT - - 11 AS col2 FROM tab1 AS cor0
----
11
11
11

query I rowsort
SELECT DISTINCT 35 * - col1 + col0 - - 45 FROM tab2 cor0
----
-1033
-1942
-471

query I rowsort
SELECT - + 31 * + col1 FROM tab0 cor0
----
-2666
-2821
-3007

query I rowsort
SELECT ALL - 54 AS col0 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 71e27a12767d3a987ce05e4d6edad211

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab0.col2 * - col2 col1 FROM tab0
----
-1
-1089
-6724

onlyif mysql # use DIV operator for integer division
query I rowsort label-3978
SELECT + - cor0.col1 DIV + ( + cor0.col0 ) FROM tab1 AS cor0
----
-8
0
0

skipif mysql # not compatible
query I rowsort label-3978
SELECT + - cor0.col1 / + ( + cor0.col0 ) FROM tab1 AS cor0
----
-8
0
0

skipif mysql # not compatible
query I rowsort
SELECT + col2 + + CAST ( + 22 AS REAL ) * col2 FROM tab1 AS cor0
----
1242
1311
2208

query I rowsort
SELECT ALL col2 * col1 * - tab1.col2 AS col0 FROM tab1
----
-119808
-32490
-75816

query I rowsort
SELECT col1 * ( 0 ) AS col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT + col1 * + 33 AS col2 FROM tab1 AS cor0
----
330
429
858

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3983
SELECT + col2 * CAST( col1 AS SIGNED ) col2 FROM tab1 AS cor0
----
1248
1404
570

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3983
SELECT + col2 * CAST ( col1 AS INTEGER ) col2 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT - col0 * cor0.col0 AS col0 FROM tab0 cor0
----
-1225
-576
-7921

query I rowsort
SELECT - cor0.col1 * - cor0.col2 AS col0 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT - col2 * col0 * - col1 FROM tab2
----
119652
51034
5859

query I rowsort
SELECT ALL + + col0 * + 17 * col2 + col0 * - 19 + cor0.col0 FROM tab0 AS cor0
----
-35
122464
13032

query I rowsort
SELECT 13 * col0 AS col2 FROM tab0
----
1157
312
455

onlyif mysql # use DIV operator for integer division
query I rowsort label-3989
SELECT - - cor0.col1 DIV col0 - + col2 * - col1 * + 10 FROM tab2 AS cor0
----
15340
6460
8374

skipif mysql # not compatible
query I rowsort label-3989
SELECT - - cor0.col1 / col0 - + col2 * - col1 * + 10 FROM tab2 AS cor0
----
15340
6460
8374

query I rowsort
SELECT - ( + col0 ) * + col1 * - col0 + cor0.col0 AS col2 FROM tab2 AS cor0
----
106176
1526
359034

query I rowsort
SELECT + 88 * cor0.col2 + col0 FROM tab0 AS cor0
----
123
2928
7305

query I rowsort
SELECT DISTINCT - - 75 - col0 * col1 FROM tab1 cor0
----
-3
-565
-965

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3993
SELECT DISTINCT + CAST( - 90 AS SIGNED ) * col0 + + col2 * - col2 * - col1 FROM tab2 AS cor0
----
17438
21969
32864

skipif mysql # not compatible
query I rowsort label-3993
SELECT DISTINCT + CAST ( - 90 AS INTEGER ) * col0 + + col2 * - col2 * - col1 FROM tab2 AS cor0
----
17438
21969
32864

onlyif mysql # use DIV operator for integer division
query I rowsort label-3994
SELECT - cor0.col2 DIV - cor0.col1 + - cor0.col2 FROM tab2 AS cor0
----
-26
-27
-36

skipif mysql # not compatible
query I rowsort label-3994
SELECT - cor0.col2 / - cor0.col1 + - cor0.col2 FROM tab2 AS cor0
----
-26
-27
-36

query I rowsort
SELECT - + 47 * - col1 + col0 FROM tab2 cor0
----
1464
2851
878

query I rowsort
SELECT + - ( + col1 ) * col1 AS col0 FROM tab2 AS cor0
----
-289
-3481
-961

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab2 cor0, tab0 AS cor1, tab1 AS cor2
----
972 values hashing to 0210050fb1701e2797a9b17e1ebac91e

query I rowsort
SELECT + 5 * col1 AS col2 FROM tab2 AS cor0
----
155
295
85

query I rowsort
SELECT DISTINCT - + col1 - col0 FROM tab2 AS cor0
----
-137
-38
-96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4000
SELECT DISTINCT CAST( + col0 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
7
78
79

skipif mysql # not compatible
query I rowsort label-4000
SELECT DISTINCT CAST ( + col0 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT - - ( + 73 ) * + col2 AS col1 FROM tab0 cor0
----
2409
5986
73

query I rowsort
SELECT ALL + - col0 + - 28 AS col0 FROM tab2 AS cor0
----
-106
-107
-35

query I rowsort
SELECT 1 + col0 FROM tab2 cor0
----
79
8
80

query I rowsort
SELECT ALL - 41 + ( - col1 ) * col1 AS col1 FROM tab1 AS cor0
----
-141
-210
-717

query I rowsort
SELECT DISTINCT col0 - + 12 * - col0 FROM tab1 AS cor0
----
1040
39
832

query I rowsort
SELECT - cor0.col1 * - col2 AS col2 FROM tab2 cor0
----
1534
646
837

query I rowsort
SELECT ALL col1 * 44 + col0 FROM tab2 AS cor0
----
1371
2674
827

query I rowsort
SELECT ALL - + 66 * - 78 FROM tab2 AS cor0
----
5148
5148
5148

onlyif mysql # use DIV operator for integer division
query I rowsort label-4009
SELECT DISTINCT 27 * 51 DIV col0 FROM tab2 AS cor0
----
17
196

skipif mysql # not compatible
query I rowsort label-4009
SELECT DISTINCT 27 * 51 / col0 FROM tab2 AS cor0
----
17
196

query I rowsort
SELECT - ( + 50 ) * col2 + col0 FROM tab2 AS cor0
----
-1222
-1343
-1821

query I rowsort
SELECT + + 0 * col2 + + col1 FROM tab2 AS cor0
----
17
31
59

query I rowsort
SELECT DISTINCT - col1 + + col1 * + col0 FROM tab0 AS cor0
----
1978
3298
8008

query I rowsort
SELECT ( col2 ) * col1 AS col1 FROM tab2 cor0
----
1534
646
837

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4014
SELECT ALL col0 * + col2 + col0 * + CAST( NULL AS DECIMAL ) + + col2 * - col1 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4014
SELECT ALL col0 * + col2 + col0 * + CAST ( NULL AS REAL ) + + col2 * - col1 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + + 56 FROM tab1 AS cor0
----
56

query I rowsort
SELECT 79 * col0 FROM tab2 cor0
----
553
6162
6241

query I rowsort
SELECT - 61 * - col1 FROM tab2 cor0
----
1037
1891
3599

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( 48 ) + + cor0.col2 * + cor0.col0 col2 FROM tab2 AS cor0
----
141
1980
2954

query I rowsort
SELECT DISTINCT 13 AS col1 FROM tab0, tab1 AS cor0
----
13

query I rowsort
SELECT ALL - + cor0.col1 + col0 * col1 FROM tab0 AS cor0
----
1978
3298
8008

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4021
SELECT DISTINCT - cor0.col1 + CAST( col1 AS SIGNED ) * + cor0.col0 AS col1 FROM tab0 AS cor0
----
1978
3298
8008

skipif mysql # not compatible
query I rowsort label-4021
SELECT DISTINCT - cor0.col1 + CAST ( col1 AS INTEGER ) * + cor0.col0 AS col1 FROM tab0 AS cor0
----
1978
3298
8008

query I rowsort
SELECT - cor0.col1 * + 52 AS col2 FROM tab2 AS cor0
----
-1612
-3068
-884

query I rowsort
SELECT tab1.col2 * + col2 + 55 * col2 AS col1 FROM tab1
----
14496
5886
6384

query I rowsort
SELECT + col0 * col2 * - 27 + + col0 AS col0 FROM tab1 AS cor0
----
-207280
-4371
-98432

query I rowsort
SELECT + tab1.col0 * col2 + + col0 FROM tab1
----
165
3712
7760

query I rowsort
SELECT - col0 + 70 FROM tab0
----
-19
35
46

query I rowsort
SELECT ALL col1 * tab1.col1 + - col1 AS col1 FROM tab1
----
156
650
90

query I rowsort
SELECT + col2 + col2 - col2 AS col2 FROM tab2
----
26
27
38

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4029
SELECT + col2 * + CAST( col2 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
1444
676
729

skipif mysql # not compatible
query I rowsort label-4029
SELECT + col2 * + CAST ( col2 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
1444
676
729

query I rowsort
SELECT DISTINCT cor0.col2 * col1 + + col2 FROM tab1 AS cor0
----
1344
1458
627

query I rowsort
SELECT - cor0.col0 * + ( ( col2 ) ) AS col2 FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT cor0.col2 + + col0 * - 73 AS col1 FROM tab2 cor0
----
-484
-5668
-5729

query I rowsort
SELECT ALL col2 + 62 * - col0 + tab0.col0 FROM tab0
----
-1431
-2134
-5347

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4034
SELECT - col0 + - CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4034
SELECT - col0 + - CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT col1 + ( + col2 ) * col1 + + tab1.col0 AS col0 FROM tab1
----
1341
1433
644

query I rowsort
SELECT col1 * 88 + col0 * + col0 FROM tab1 AS cor0
----
2297
4976
7544

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + + 62 col1 FROM tab0 AS cor0
----
151
86
97

query I rowsort
SELECT col1 * col1 * col1 + col0 AS col1 FROM tab1 AS cor0
----
1064
17579
2277

query I rowsort
SELECT ALL + col0 + - 76 AS col2 FROM tab0
----
-41
-52
13

query IIIIIIIIIIII rowsort
SELECT * FROM tab2 cor0 CROSS JOIN tab2, tab2 AS cor1, tab1 AS cor2
----
972 values hashing to 263f0eb7d5dfd4076c74918bc141bd9b

query I rowsort
SELECT DISTINCT + 13 + col2 AS col0 FROM tab0 AS cor0
----
14
46
95

query I rowsort
SELECT cor0.col1 FROM tab0, tab2 cor0, tab2 AS cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 col2 FROM tab0, tab2 cor0, tab2 AS cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d

query I rowsort
SELECT ALL - - col2 * - col0 FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT + cor0.col0 * - cor1.col1 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to c25bf2f069c912fb3438dc73db666079

query I rowsort
SELECT ALL - + 12 * - 13 AS col0 FROM tab0 AS cor0
----
156
156
156

query I rowsort
SELECT ALL - col1 * - cor0.col1 + - col1 AS col2 FROM tab0 AS cor0
----
7310
8190
9312

query I rowsort
SELECT DISTINCT + col2 * 22 AS col1 FROM tab2 AS cor0
----
572
594
836

onlyif mysql # use DIV operator for integer division
query I rowsort label-4049
SELECT + - col2 + - col2 * col1 DIV col1 FROM tab0 cor0
----
-164
-2
-66

skipif mysql # not compatible
query I rowsort label-4049
SELECT + - col2 + - col2 * col1 / col1 FROM tab0 cor0
----
-164
-2
-66

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4050
SELECT ALL - CAST( NULL AS SIGNED ) + 31 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4050
SELECT ALL - CAST ( NULL AS INTEGER ) + 31 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 31 col0 FROM tab1 cor0
----
31
31
31

query I rowsort
SELECT + - 22 * col0 FROM tab2 AS cor0
----
-154
-1716
-1738

query I rowsort
SELECT DISTINCT + + col2 + col2 * ( - col1 * - col2 + col2 ) FROM tab2 cor0
----
23355
26030
40586

query I rowsort
SELECT cor0.col1 * - 96 + - 85 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 4f192b4b9f3ca0e9b3752b1e1a977395

query I rowsort
SELECT ALL + col2 + col0 + 31 AS col0 FROM tab2 AS cor0
----
135
148
65

query I rowsort
SELECT DISTINCT 55 + col0 FROM tab2 AS cor0
----
133
134
62

query I rowsort
SELECT DISTINCT cor0.col0 + - cor0.col1 AS col2 FROM tab2 AS cor0
----
-24
19
62

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + cor0.col0 - col2 * CAST ( col2 + - col0 AS REAL ) FROM tab2 AS cor0
----
-533
1430
1637

query I rowsort
SELECT ALL 34 * + col1 - + col0 FROM tab2 AS cor0
----
1047
1928
499

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4060
SELECT - col2 + + CAST( - 79 AS SIGNED ) FROM tab2 AS cor0
----
-105
-106
-117

skipif mysql # not compatible
query I rowsort label-4060
SELECT - col2 + + CAST ( - 79 AS INTEGER ) FROM tab2 AS cor0
----
-105
-106
-117

query I rowsort
SELECT DISTINCT cor0.col2 + 66 FROM tab0 cor0
----
148
67
99

onlyif mysql # use DIV operator for integer division
query I rowsort label-4062
SELECT DISTINCT col2 * - col2 + col0 DIV + col1 col2 FROM tab2 AS cor0
----
-1440
-675
-729

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4062
SELECT DISTINCT col2 * - col2 + col0 / + col1 col2 FROM tab2 AS cor0
----
-1440
-675
-729

query I rowsort
SELECT - col1 * + col1 - ( - cor0.col1 + col2 ) FROM tab0 AS cor0
----
-7343
-8272
-9313

query I rowsort
SELECT col2 * + cor0.col1 - col0 AS col2 FROM tab2 AS cor0
----
1456
567
830

query I rowsort
SELECT DISTINCT + col2 * ( col0 ) * - col0 + col1 AS col0 FROM tab0 AS cor0
----
-1128
-18922
-649431

query I rowsort
SELECT DISTINCT cor0.col2 + + col2 AS col2 FROM tab0 AS cor0
----
164
2
66

query I rowsort
SELECT ALL - - cor0.col1 AS col2 FROM tab2 cor0
----
17
31
59

query I rowsort
SELECT ALL col1 * cor0.col0 AS col0 FROM tab1 cor0
----
1040
640
78

onlyif mysql # use DIV operator for integer division
query I rowsort label-4069
SELECT DISTINCT - col1 DIV 20 FROM tab0 AS cor0
----
-4

skipif mysql # not compatible
query I rowsort label-4069
SELECT DISTINCT - col1 / 20 FROM tab0 AS cor0
----
-4

query I rowsort
SELECT - cor0.col2 * - col1 + - col1 + + col0 FROM tab0 AS cor0
----
2776
35
7460

onlyif mysql # use DIV operator for integer division
query I rowsort label-4071
SELECT - col2 DIV 25 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-4071
SELECT - col2 / 25 col2 FROM tab2 AS cor0
----
-1
-1
-1

query I rowsort
SELECT ALL + + cor0.col1 * ( 99 ) + + cor0.col2 * + 85 AS col2 FROM tab0 AS cor0
----
11319
15979
9688

onlyif mysql # use DIV operator for integer division
query I rowsort label-4073
SELECT - col1 * col1 DIV 88 - + col0 FROM tab0 AS cor0
----
-108
-141
-183

skipif mysql # not compatible
query I rowsort label-4073
SELECT - col1 * col1 / 88 - + col0 FROM tab0 AS cor0
----
-108
-141
-183

onlyif mysql # use DIV operator for integer division
query I rowsort label-4074
SELECT ALL col2 + col0 - 37 DIV - 52 FROM tab1
----
121
176
57

skipif mysql # not compatible
query I rowsort label-4074
SELECT ALL col2 + col0 - 37 / - 52 FROM tab1
----
121
176
57

query I rowsort
SELECT 66 - col2 * 92 FROM tab0
----
-26
-2970
-7478

onlyif mysql # use DIV operator for integer division
query I rowsort label-4076
SELECT ALL + col1 DIV - col0 - + ( - tab2.col1 ) col2 FROM tab2
----
17
27
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4076
SELECT ALL + col1 / - col0 - + ( - tab2.col1 ) col2 FROM tab2
----
17
27
59

query I rowsort
SELECT ALL tab2.col0 - col2 FROM tab2
----
-20
41
52

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4078
SELECT DISTINCT ( col0 * - CAST( 16 AS SIGNED ) + - col1 ) AS col1 FROM tab2
----
-1281
-1307
-143

skipif mysql # not compatible
query I rowsort label-4078
SELECT DISTINCT ( col0 * - CAST ( 16 AS INTEGER ) + - col1 ) AS col1 FROM tab2
----
-1281
-1307
-143

query I rowsort
SELECT DISTINCT 12 - col1 * + col1 FROM tab1
----
-157
-664
-88

query I rowsort
SELECT 31 - - col1 FROM tab0
----
117
122
128

query I rowsort
SELECT + cor0.col1 AS col2 FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 - col2 * - col1 * + col2 col2 FROM tab2
----
22626
24586
39910

query I rowsort
SELECT DISTINCT + col1 + col2 * col2 AS col2 FROM tab2 AS cor0
----
1461
735
760

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 82 col1 FROM tab1, tab2 AS cor0
----
9 values hashing to f318fd9dac2de7af4b82cc7574bbca2c

query I rowsort
SELECT DISTINCT ( 50 ) AS col1 FROM tab0
----
50

query I rowsort
SELECT + + 98 * 21 AS col2 FROM tab0 cor0
----
2058
2058
2058

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 79 * + col0 col0 FROM tab2 AS cor0
----
553
6162
6241

query I rowsort
SELECT ALL + ( - 27 ) * + col2 AS col2 FROM tab2 AS cor0
----
-1026
-702
-729

query I rowsort
SELECT - 49 AS col1 FROM tab2 AS cor0
----
-49
-49
-49

query I rowsort
SELECT + + col2 * cor0.col1 + + col0 AS col1 FROM tab0 AS cor0
----
132
2862
7551

onlyif mysql # use DIV operator for integer division
query I rowsort label-4091
SELECT + + col0 DIV col1 col1 FROM tab1 AS cor0
----
0
6
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4091
SELECT + + col0 / col1 col1 FROM tab1 AS cor0
----
0
6
6

query I rowsort
SELECT DISTINCT col1 * - ( + col2 ) FROM tab1
----
-1248
-1404
-570

query I rowsort
SELECT col1 * + col0 + - col0 AS col0 FROM tab2
----
1264
210
4524

query I rowsort
SELECT DISTINCT col0 * - ( cor0.col1 ) + - col0 AS col1 FROM tab1 AS cor0
----
-1120
-704
-81

query I rowsort
SELECT + + col2 + 96 AS col2 FROM tab1 AS cor0
----
150
153
192

query I rowsort
SELECT ALL + col0 + ( col2 ) * col0 AS col0 FROM tab2 AS cor0
----
196
2106
3081

query I rowsort
SELECT ALL col2 * - 40 FROM tab1 AS cor0
----
-2160
-2280
-3840

onlyif mysql # use DIV operator for integer division
query I rowsort label-4098
SELECT DISTINCT + col0 - - 52 DIV col2 AS col1 FROM tab1 AS cor0
----
3
64
80

skipif mysql # not compatible
query I rowsort label-4098
SELECT DISTINCT + col0 - - 52 / col2 AS col1 FROM tab1 AS cor0
----
3
64
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col1 * - col1 - col2 col1 FROM tab0 AS cor0
----
7363
8199
9408

query I rowsort
SELECT ALL - col0 + - 80 * - 76 AS col0 FROM tab1 AS cor0
----
6000
6016
6077

onlyif mysql # use DIV operator for integer division
query I rowsort label-4101
SELECT ALL - - col0 DIV col1 + col0 * + col2 FROM tab2 AS cor0
----
189
2029
3006

skipif mysql # not compatible
query I rowsort label-4101
SELECT ALL - - col0 / col1 + col0 * + col2 FROM tab2 AS cor0
----
189
2029
3006

query I rowsort
SELECT DISTINCT + col1 * + 3 AS col0 FROM tab2 AS cor0
----
177
51
93

query I rowsort
SELECT cor0.col0 * 58 + col2 AS col0 FROM tab1 AS cor0
----
228
3769
4736

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + col2 col1 FROM tab1 cor0
----
108
114
192

query I rowsort
SELECT + - col2 * + col0 + - col0 * + col2 FROM tab2 cor0
----
-378
-4056
-6004

query I rowsort
SELECT DISTINCT tab2.col2 + - col2 * - ( - col2 ) AS col2 FROM tab2
----
-1406
-650
-702

query I rowsort
SELECT tab0.col2 - + col0 * + col0 FROM tab0
----
-1224
-543
-7839

query I rowsort
SELECT ALL 66 * tab1.col1 + ( col0 ) FROM tab1
----
1719
724
938

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4109
SELECT - - col2 * - CAST( col1 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-1534
-646
-837

skipif mysql # not compatible
query I rowsort label-4109
SELECT - - col2 * - CAST ( col1 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT + col0 + ( - col1 ) * tab0.col2 AS col1 FROM tab0
----
-2814
-62
-7373

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 26 + + col0 col2 FROM tab0 cor0
----
115
50
61

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4112
SELECT + + CAST( NULL AS SIGNED ) + - 75 * - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4112
SELECT + + CAST ( NULL AS INTEGER ) + - 75 * - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT cor1.col0 * cor1.col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 41d4c126bfd4bfab59ba5e83427c98e0

onlyif mysql # use DIV operator for integer division
query I rowsort label-4114
SELECT ALL - col0 * - col1 DIV col1 + - col1 AS col1 FROM tab1 AS cor0
----
-23
54
67

skipif mysql # not compatible
query I rowsort label-4114
SELECT ALL - col0 * - col1 / col1 + - col1 AS col1 FROM tab1 AS cor0
----
-23
54
67

query I rowsort
SELECT ALL + col2 * - col1 + ( - col2 ) FROM tab2 AS cor0
----
-1560
-684
-864

query I rowsort
SELECT + cor0.col2 * cor0.col2 + col0 * col1 * + col2 AS col0 FROM tab0 AS cor0
----
3396
670842
69201

query I rowsort
SELECT cor0.col1 + - col0 * col2 FROM tab0 cor0
----
-706
-7207
62

query I rowsort
SELECT DISTINCT + col1 * + col1 * + tab1.col1 AS col0 FROM tab1
----
1000
17576
2197

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( col2 ) <> ( col1 )
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab0.col1 * - col1 col0 FROM tab0 WHERE NOT ( col0 ) BETWEEN + col2 AND NULL
----
-7396

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * col0 col0 FROM tab2
----
1343
217
4602

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - col1 * col0 + col1 col2 FROM tab1 AS cor0
----
-36470
-4186
-99827

query I rowsort
SELECT col1 * col1 + col0 * col2 FROM tab2 AS cor0
----
1150
3291
5509

query I rowsort
SELECT ALL ( + col2 ) + - col2 * col1 FROM tab0
----
-2805
-7380
-96

query I rowsort
SELECT DISTINCT - 12 + - col2 * tab2.col2 FROM tab2
----
-1456
-688
-741

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * + col0 col1 FROM tab0
----
35
7298
792

query I rowsort
SELECT - 6 * + col0 FROM tab1
----
-18
-384
-480

query I rowsort
SELECT DISTINCT ( - col1 ) + col2 * - col0 * col0 FROM tab1
----
-233482
-512
-614413

query I rowsort
SELECT DISTINCT - 77 * + col0 AS col1 FROM tab1 AS cor0
----
-231
-4928
-6160

query I rowsort
SELECT cor0.col1 - cor0.col2 FROM tab0 cor0
----
53
9
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-4131
SELECT - col2 * col1 DIV - col1 AS col1 FROM tab0 cor0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-4131
SELECT - col2 * col1 / - col1 AS col1 FROM tab0 cor0
----
1
33
82

query I rowsort
SELECT + - col2 + - cor0.col1 FROM tab2 AS cor0
----
-55
-58
-85

query I rowsort
SELECT - 82 + col0 AS col1 FROM tab1 AS cor0
----
-18
-2
-79

query I rowsort
SELECT ALL - col1 + - tab1.col1 AS col1 FROM tab1
----
-20
-26
-52

query I rowsort
SELECT - 69 + col1 AS col0 FROM tab0 AS cor0
----
17
22
28

query I rowsort
SELECT ALL + col1 * col0 + + col1 FROM tab1 AS cor0
----
104
1053
650

query I rowsort
SELECT ALL + + ( - cor0.col2 ) * - col2 FROM tab0 AS cor0
----
1
1089
6724

onlyif mysql # use DIV operator for integer division
query I rowsort label-4138
SELECT DISTINCT - + col2 DIV - col1 FROM tab1 AS cor0
----
2
5
7

skipif mysql # not compatible
query I rowsort label-4138
SELECT DISTINCT - + col2 / - col1 FROM tab1 AS cor0
----
2
5
7

query I rowsort
SELECT ALL + col2 + col1 + col2 FROM tab0 AS cor0
----
152
255
99

query I rowsort
SELECT DISTINCT col2 + - 17 AS col1 FROM tab0 AS cor0
----
-16
16
65

query I rowsort
SELECT ALL - + col0 + + col2 AS col1 FROM tab0 AS cor0
----
-34
-7
9

query I rowsort
SELECT ALL + - col2 * + ( + col1 ) FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT 75 * col0 - col2 * tab2.col2 * + tab2.col1 AS col2 FROM tab2
----
-18623
-22074
-34034

query I rowsort
SELECT ALL + 39 * col1 FROM tab1 cor0
----
1014
390
507

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col2 * col2 col0 FROM tab1 AS cor0
----
2916
3249
9216

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( 66 ) col2 FROM tab2 AS cor0
----
66

onlyif mysql # use DIV operator for integer division
query I rowsort label-4147
SELECT + 66 DIV - col1 - + col2 FROM tab1 AS cor0
----
-101
-56
-63

skipif mysql # not compatible
query I rowsort label-4147
SELECT + 66 / - col1 - + col2 FROM tab1 AS cor0
----
-101
-56
-63

query I rowsort
SELECT - 70 FROM tab2, tab2 cor0
----
9 values hashing to 35707a5d99c98b2657c084a50ff1b073

query I rowsort
SELECT ALL ( - 11 ) FROM tab1
----
-11
-11
-11

query I rowsort
SELECT 99 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 4b77467dd5f346109d29f6364a7bb8db

query I rowsort
SELECT + 76 * ( + col2 ) AS col1 FROM tab1
----
4104
4332
7296

query I rowsort
SELECT - 37 - - col0 FROM tab2 AS cor0
----
-30
41
42

query I rowsort
SELECT ( col1 ) + + col1 * - 81 AS col1 FROM tab1 AS cor0
----
-1040
-2080
-800

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 - + col1 * col0 col1 FROM tab1
----
-1027
-52
-630

query I rowsort
SELECT DISTINCT - col0 - col1 AS col2 FROM tab2
----
-137
-38
-96

query I rowsort
SELECT DISTINCT - + col2 * col0 FROM tab1 cor0
----
-162
-3648
-7680

query I rowsort
SELECT DISTINCT 17 + cor0.col2 AS col0 FROM tab1, tab2 cor0, tab2 AS cor1
----
43
44
55

query I rowsort
SELECT - + col1 * + col1 + col2 - col0 AS col0 FROM tab1 AS cor0
----
-107
-153
-625

query I rowsort
SELECT DISTINCT + 53 FROM tab1
----
53

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 99 col2 FROM tab1, tab0 AS cor0
----
99

query I rowsort
SELECT + ( tab0.col0 ) + - col2 FROM tab0
----
-9
34
7

query I rowsort
SELECT DISTINCT 7 + + tab2.col0 FROM tab2
----
14
85
86

query I rowsort
SELECT DISTINCT + col1 + + col2 * - tab0.col1 FROM tab0
----
-2752
-7371
0

query I rowsort
SELECT + 24 FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to aeeac431d22528188e8a5a2a60d2d080

query I rowsort
SELECT 75 + col1 FROM tab0
----
161
166
172

query I rowsort
SELECT ALL + 28 + + col0 FROM tab2
----
106
107
35

query I rowsort
SELECT + 34 AS col0 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 4e2ca147a59e0d5661c28cf3e5431caa

query I rowsort
SELECT - col2 * - tab1.col2 + 4 * + 4 AS col1 FROM tab1
----
2932
3265
9232

onlyif mysql # use DIV operator for integer division
query I rowsort label-4169
SELECT + col2 DIV + tab0.col0 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-4169
SELECT + col2 / + tab0.col0 FROM tab0
----
0
0
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-4170
SELECT 97 + col0 DIV - ( col1 ) FROM tab1
----
91
91
97

skipif mysql # not compatible
query I rowsort label-4170
SELECT 97 + col0 / - ( col1 ) FROM tab1
----
91
91
97

query I rowsort
SELECT ALL 51 + col0 AS col2 FROM tab0 AS cor0
----
140
75
86

query I rowsort
SELECT - - ( + cor0.col2 ) AS col2 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT - 33 AS col1 FROM tab0 AS cor0
----
-33
-33
-33

onlyif mysql # use DIV operator for integer division
query I rowsort label-4174
SELECT + ( + col2 ) DIV - col0 AS col2 FROM tab0 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-4174
SELECT + ( + col2 ) / - col0 AS col2 FROM tab0 AS cor0
----
-1
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-4175
SELECT ALL - - col1 DIV + col0 + + cor0.col1 - - 69 FROM tab0 AS cor0
----
158
161
168

skipif mysql # not compatible
query I rowsort label-4175
SELECT ALL - - col1 / + col0 + + cor0.col1 - - 69 FROM tab0 AS cor0
----
158
161
168

query I rowsort
SELECT + tab0.col2 + col1 * col2 AS col2 FROM tab0
----
2871
7544
98

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4177
SELECT col0 + - CAST( 25 AS SIGNED ) AS col2 FROM tab2
----
-18
53
54

skipif mysql # not compatible
query I rowsort label-4177
SELECT col0 + - CAST ( 25 AS INTEGER ) AS col2 FROM tab2
----
-18
53
54

query I rowsort
SELECT col2 + 37 * col0 FROM tab0
----
1296
3375
921

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4179
SELECT col1 - CAST( col1 AS SIGNED ) * - col2 col1 FROM tab0
----
194
2924
7553

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4179
SELECT col1 - CAST ( col1 AS INTEGER ) * - col2 col1 FROM tab0
----
194
2924
7553

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + + col0 * col2 * tab0.col1 col1 FROM tab0
----
3430
664207
68136

query I rowsort
SELECT - col0 + 34 AS col0 FROM tab2
----
-44
-45
27

onlyif mysql # use DIV operator for integer division
query I rowsort label-4182
SELECT ALL + col2 DIV 64 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-4182
SELECT ALL + col2 / 64 FROM tab0
----
0
0
1

query I rowsort
SELECT DISTINCT tab1.col1 * - col1 AS col1 FROM tab1
----
-100
-169
-676

onlyif mysql # use DIV operator for integer division
query I rowsort label-4184
SELECT + - col0 DIV CAST( + col1 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-1
-4
0

skipif mysql # not compatible
query I rowsort label-4184
SELECT + - col0 / CAST ( + col1 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-1
-4
0

query I rowsort
SELECT + col1 * 2 + col0 FROM tab0
----
196
229
271

query I rowsort
SELECT col0 * + 74 AS col1 FROM tab0 AS cor0
----
1776
2590
6586

onlyif mysql # use DIV operator for integer division
query I rowsort label-4187
SELECT + + 58 DIV + 22 FROM tab0 AS cor0
----
2
2
2

skipif mysql # not compatible
query I rowsort label-4187
SELECT + + 58 / + 22 FROM tab0 AS cor0
----
2
2
2

query I rowsort
SELECT DISTINCT + - col1 + - col2 * col0 FROM tab1 cor0
----
-188
-3658
-7693

query I rowsort
SELECT + 11 + 71 * col1 AS col0 FROM tab0 AS cor0
----
6117
6472
6898

onlyif mysql # use DIV operator for integer division
query I rowsort label-4190
SELECT + - ( col1 ) + cor0.col2 DIV col1 FROM tab2 AS cor0
----
-15
-31
-59

skipif mysql # not compatible
query I rowsort label-4190
SELECT + - ( col1 ) + cor0.col2 / col1 FROM tab2 AS cor0
----
-15
-31
-59

query I rowsort
SELECT ALL - col0 * + col2 * + col1 FROM tab2 AS cor0
----
-119652
-51034
-5859

onlyif mysql # use DIV operator for integer division
query I rowsort label-4192
SELECT DISTINCT - col1 * 92 + + col1 DIV - col0 AS col1 FROM tab0 AS cor0
----
-7915
-8373
-8926

skipif mysql # not compatible
query I rowsort label-4192
SELECT DISTINCT - col1 * 92 + + col1 / - col0 AS col1 FROM tab0 AS cor0
----
-7915
-8373
-8926

query I rowsort
SELECT DISTINCT col2 * col2 * - col2 AS col1 FROM tab0 AS cor0
----
-1
-35937
-551368

query I rowsort
SELECT DISTINCT - ( 34 ) FROM tab2 AS cor0
----
-34

query I rowsort
SELECT - 93 * - col2 * + col1 FROM tab1 AS cor0
----
116064
130572
53010

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 53 col0 FROM tab1, tab2 AS cor0
----
53

query I rowsort
SELECT DISTINCT 56 AS col2 FROM tab2, tab0 cor0
----
56

query I rowsort
SELECT DISTINCT + - col0 * - col2 * + cor0.col2 AS col2 FROM tab0 AS cor0
----
26136
35
598436

query I rowsort
SELECT ( col0 ) * + col0 AS col1 FROM tab2 AS cor0
----
49
6084
6241

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col1 * col2 * - col1 + 92 col2 FROM tab0 AS cor0
----
-243976
-678950
-9317

query I rowsort
SELECT DISTINCT col2 + ( + col2 ) AS col0 FROM tab0 cor0
----
164
2
66

query I rowsort
SELECT DISTINCT - ( + cor0.col1 ) AS col2 FROM tab1 AS cor0
----
-10
-13
-26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - tab2.col1 * - col1 col1 FROM tab2
----
289
3481
961

query I rowsort
SELECT col0 * - ( + col1 ) FROM tab1 AS cor0
----
-1040
-640
-78

onlyif mysql # use DIV operator for integer division
query I rowsort label-4205
SELECT ALL - col2 DIV 99 AS col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4205
SELECT ALL - col2 / 99 AS col1 FROM tab1
----
0
0
0

query I rowsort
SELECT + + 64 AS col2 FROM tab2 AS cor0
----
64
64
64

query I rowsort
SELECT ALL + ( cor0.col0 ) AS col2 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT ALL tab1.col2 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4209
SELECT ALL CAST( + col1 AS SIGNED ) FROM tab0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-4209
SELECT ALL CAST ( + col1 AS INTEGER ) FROM tab0
----
86
91
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-4210
SELECT DISTINCT - col0 + col1 + 88 * + col0 DIV tab2.col0 FROM tab2
----
112
26
69

skipif mysql # not compatible
query I rowsort label-4210
SELECT DISTINCT - col0 + col1 + 88 * + col0 / tab2.col0 FROM tab2
----
112
26
69

query I rowsort
SELECT - tab0.col2 + + col1 + + tab0.col1 FROM tab0
----
100
139
193

query I rowsort
SELECT col1 * + tab1.col1 + - 6 + - 83 AS col0 FROM tab1
----
11
587
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-4213
SELECT 57 DIV col2 AS col1 FROM tab1
----
0
1
1

skipif mysql # not compatible
query I rowsort label-4213
SELECT 57 / col2 AS col1 FROM tab1
----
0
1
1

query I rowsort
SELECT DISTINCT - 32 + - col0 AS col0 FROM tab2
----
-110
-111
-39

query I rowsort
SELECT ALL + + 29 * - col0 + col0 FROM tab0 AS cor0
----
-2492
-672
-980

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4216
SELECT ALL col0 * + col2 * + CAST( col0 AS SIGNED ) FROM tab0 AS cor0
----
1225
19008
649522

skipif mysql # not compatible
query I rowsort label-4216
SELECT ALL col0 * + col2 * + CAST ( col0 AS INTEGER ) FROM tab0 AS cor0
----
1225
19008
649522

query I rowsort
SELECT - 58 AS col0 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to a38440572743ed8a3d8af7b49a5388c9

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4218
SELECT - 2 + col1 * CAST( - ( col1 ) AS SIGNED ) FROM tab1 AS cor0
----
-102
-171
-678

skipif mysql # not compatible
query I rowsort label-4218
SELECT - 2 + col1 * CAST ( - ( col1 ) AS INTEGER ) FROM tab1 AS cor0
----
-102
-171
-678

query I rowsort
SELECT ALL - col2 * - cor0.col2 + - ( - col1 ) AS col1 FROM tab2 AS cor0
----
1461
735
760

query I rowsort
SELECT DISTINCT - - ( col0 ) + 87 * - 25 AS col2 FROM tab0 cor0
----
-2086
-2140
-2151

query I rowsort
SELECT ALL - - 93 + col0 FROM tab2 AS cor0
----
100
171
172

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4222
SELECT - col1 + + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4222
SELECT - col1 + + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col2 * + col1 + + ( + col0 ) AS col0 FROM tab2 cor0
----
1612
725
844

query I rowsort
SELECT col0 * - ( col0 ) * + col1 + + col2 * col0 + col2 FROM tab0 AS cor0
----
-118789
-48711
-713431

onlyif mysql # use DIV operator for integer division
query I rowsort label-4225
SELECT DISTINCT + + col1 + 78 DIV + 4 AS col1 FROM tab1 cor0
----
29
32
45

skipif mysql # not compatible
query I rowsort label-4225
SELECT DISTINCT + + col1 + 78 / + 4 AS col1 FROM tab1 cor0
----
29
32
45

query I rowsort
SELECT col0 * ( 9 ) AS col2 FROM tab1 AS cor0
----
27
576
720

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * ( cor0.col1 ) col1 FROM tab0 AS cor0
----
7396
8281
9409

query I rowsort
SELECT DISTINCT + col2 + - ( cor0.col2 ) * + col1 FROM tab1 AS cor0
----
-1152
-1350
-513

query I rowsort
SELECT ALL + cor0.col2 + col0 * col2 FROM tab1 AS cor0
----
216
3705
7776

query I rowsort
SELECT ALL 83 * + col2 + col2 * col0 AS col1 FROM tab2
----
2430
4186
6156

query I rowsort
SELECT ALL - 25 + col0 * col1 FROM tab0
----
2039
3370
8074

query I rowsort
SELECT - + col1 + ( - cor0.col2 ) * + col1 AS col1 FROM tab2 AS cor0
----
-1593
-663
-868

query I rowsort
SELECT col1 * - col1 + + 28 AS col1 FROM tab1 AS cor0
----
-141
-648
-72

onlyif mysql # use DIV operator for integer division
query I rowsort label-4234
SELECT col2 * CAST( + 92 AS SIGNED ) - col1 DIV - CAST( - col1 AS SIGNED ) FROM tab2 AS cor0
----
2391
2483
3495

skipif mysql # not compatible
query I rowsort label-4234
SELECT col2 * CAST ( + 92 AS INTEGER ) - col1 / - CAST ( - col1 AS INTEGER ) FROM tab2 AS cor0
----
2391
2483
3495

onlyif mysql # use DIV operator for integer division
query I rowsort label-4235
SELECT + col0 * cor0.col1 DIV + col1 - + col1 * col2 FROM tab0 AS cor0
----
-2814
-62
-7373

skipif mysql # not compatible
query I rowsort label-4235
SELECT + col0 * cor0.col1 / + col1 - + col1 * col2 FROM tab0 AS cor0
----
-2814
-62
-7373

onlyif mysql # use DIV operator for integer division
query I rowsort label-4236
SELECT ALL - col0 - col0 DIV col1 AS col1 FROM tab0
----
-24
-35
-89

skipif mysql # not compatible
query I rowsort label-4236
SELECT ALL - col0 - col0 / col1 AS col1 FROM tab0
----
-24
-35
-89

query I rowsort
SELECT ALL tab2.col2 - col1 * + col1 FROM tab2
----
-251
-3455
-934

query I rowsort
SELECT - - col2 + col0 * + 89 * + col1 FROM tab2 AS cor0
----
119565
19340
409604

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4239
SELECT ALL - col1 * CAST( NULL AS SIGNED ) + - col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4239
SELECT ALL - col1 * CAST ( NULL AS INTEGER ) + - col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * 97 * col2 - col0 col1 FROM tab2 cor0
----
-18340
-196794
-291273

query I rowsort
SELECT ALL + 61 * - 73 + col2 AS col2 FROM tab0 AS cor0
----
-4371
-4420
-4452

query I rowsort
SELECT col0 * - 51 FROM tab0 AS cor0
----
-1224
-1785
-4539

onlyif mysql # use DIV operator for integer division
query I rowsort label-4243
SELECT ALL 36 + col0 DIV - col0 + - 40 AS col0 FROM tab1 AS cor0
----
-5
-5
-5

skipif mysql # not compatible
query I rowsort label-4243
SELECT ALL 36 + col0 / - col0 + - 40 AS col0 FROM tab1 AS cor0
----
-5
-5
-5

query I rowsort
SELECT ALL 2 * 18 + col2 * 71 AS col1 FROM tab0 AS cor0
----
107
2379
5858

query I rowsort
SELECT 17 + - col0 FROM tab2 AS cor0
----
-61
-62
10

query I rowsort
SELECT - ( 71 ) * cor0.col0 + + col1 * + cor0.col1 + + col1 * cor0.col0 * - col2 FROM tab2 AS cor0
----
-121709
-5395
-56354

query I rowsort
SELECT - col1 * 83 * col1 FROM tab1
----
-14027
-56108
-8300

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 * cor0.col0 col1 FROM tab2 AS cor0
----
-189
-2028
-3002

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + col1 col0 FROM tab1 AS cor0
----
1248
1404
570

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor1.col2 + - 53 col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to f617178ea1a7ec90d4915dc5c6cc56c2

query I rowsort
SELECT ALL - - cor0.col2 + - 95 AS col2 FROM tab0 AS cor0
----
-13
-62
-94

onlyif mysql # use DIV operator for integer division
query I rowsort label-4252
SELECT DISTINCT - col2 DIV col2 + col0 FROM tab1
----
2
63
79

skipif mysql # not compatible
query I rowsort label-4252
SELECT DISTINCT - col2 / col2 + col0 FROM tab1
----
2
63
79

query I rowsort
SELECT + cor0.col2 + - col0 AS col1 FROM tab2 AS cor0
----
-41
-52
20

query I rowsort
SELECT ALL + 68 AS col2 FROM tab0, tab2 AS cor0, tab0 cor1
----
27 values hashing to 10aa25f1c6b97582c34521ac6452e0b4

query I rowsort
SELECT DISTINCT 43 - - col2 * col2 AS col0 FROM tab0
----
1132
44
6767

onlyif mysql # use DIV operator for integer division
query I rowsort label-4256
SELECT ALL + col0 DIV - col2 - col0 col1 FROM tab1
----
-3
-65
-80

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4256
SELECT ALL + col0 / - col2 - col0 col1 FROM tab1
----
-3
-65
-80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4257
SELECT ALL - col2 * ( - tab1.col1 ) + + CAST( NULL AS SIGNED ) - 87 * - tab1.col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4257
SELECT ALL - col2 * ( - tab1.col1 ) + + CAST ( NULL AS INTEGER ) - 87 * - tab1.col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT 53 * - ( col1 ) AS col1 FROM tab2
----
-1643
-3127
-901

query I rowsort
SELECT DISTINCT ( 29 ) * col1 AS col0 FROM tab1
----
290
377
754

query I rowsort
SELECT - 54 + ( + col0 + + col1 ) FROM tab0 AS cor0
----
126
56
78

query I rowsort
SELECT ALL + cor1.col1 FROM tab2, tab0 AS cor0, tab1 cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892

onlyif mysql # use DIV operator for integer division
query I rowsort label-4262
SELECT ALL + col1 * col1 + + col0 - + col1 DIV col2 FROM tab1
----
164
249
679

skipif mysql # not compatible
query I rowsort label-4262
SELECT ALL + col1 * col1 + + col0 - + col1 / col2 FROM tab1
----
164
249
679

query I rowsort
SELECT ALL + col1 * - col1 + col0 * + 88 AS col0 FROM tab2
----
-345
3383
6663

onlyif mysql # use DIV operator for integer division
query I rowsort label-4264
SELECT ALL - tab0.col0 DIV 36 + - tab0.col0 DIV 49 FROM tab0
----
-3
0
0

skipif mysql # not compatible
query I rowsort label-4264
SELECT ALL - tab0.col0 / 36 + - tab0.col0 / 49 FROM tab0
----
-3
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4265
SELECT + - col1 * col0 - + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4265
SELECT + - col1 * col0 - + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4266
SELECT ALL + col0 + - col0 * CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4266
SELECT ALL + col0 + - col0 * CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - - col0 + col0 * col1 AS col2 FROM tab2 AS cor0
----
1422
224
4680

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + + col1 col2 FROM tab2 AS cor0
----
-21
33
4

query I rowsort
SELECT ALL col1 + - col2 * + col1 * - col1 FROM tab1
----
16237
36530
5710

query I rowsort
SELECT cor0.col1 * - col2 + col2 - + col2 FROM tab0 AS cor0
----
-2838
-7462
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-4271
SELECT - 94 + + col2 DIV col0 AS col2 FROM tab2 AS cor0
----
-91
-94
-94

skipif mysql # not compatible
query I rowsort label-4271
SELECT - 94 + + col2 / col0 AS col2 FROM tab2 AS cor0
----
-91
-94
-94

query I rowsort
SELECT DISTINCT + col0 + col1 * + col2 AS col1 FROM tab1 AS cor0
----
1328
1407
634

query I rowsort
SELECT ALL - 4 * cor0.col0 + + col1 AS col2 FROM tab2 AS cor0
----
-253
-299
3

query I rowsort
SELECT + - cor0.col0 * col1 * - 58 FROM tab1 AS cor0
----
37120
4524
60320

query I rowsort
SELECT ALL + cor0.col2 * + col2 AS col0 FROM tab0 AS cor0
----
1
1089
6724

query I rowsort
SELECT + cor0.col1 + cor0.col1 AS col2 FROM tab1 cor0
----
20
26
52

query I rowsort
SELECT - - cor0.col1 + + col2 FROM tab1 cor0
----
109
67
80

query I rowsort
SELECT DISTINCT + 99 AS col0 FROM tab0, tab2 AS cor0
----
99

query I rowsort
SELECT DISTINCT - col0 * 27 FROM tab1 AS cor0
----
-1728
-2160
-81

query I rowsort
SELECT + col2 * - 6 AS col2 FROM tab0 AS cor0
----
-198
-492
-6

query I rowsort
SELECT - col0 * - col0 AS col2 FROM tab0 cor0
----
1225
576
7921

query I rowsort
SELECT ALL col1 + 6 FROM tab1 AS cor0
----
16
19
32

query I rowsort
SELECT col2 + ( col0 * + col2 + ( + col0 ) ) FROM tab1 AS cor0
----
219
3769
7856

query I rowsort
SELECT ALL + - col1 + 66 FROM tab0 AS cor0
----
-20
-25
-31

query I rowsort
SELECT cor0.col2 + - col2 AS col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT 30 * + col0 FROM tab0 cor0
----
1050
2670
720

query I rowsort
SELECT DISTINCT 10 AS col1 FROM tab1 AS cor0
----
10

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4288
SELECT ALL + CAST( NULL AS DECIMAL ) + + 26 + - cor0.col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4288
SELECT ALL + CAST ( NULL AS REAL ) + + 26 + - cor0.col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + ( + col1 ) + + col2 FROM tab0 AS cor0
----
119
173
98

query I rowsort
SELECT + col2 * ( col0 ) FROM tab2 AS cor0
----
189
2028
3002

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 13 col0 FROM tab1 AS cor0
----
13

query I rowsort
SELECT - 35 * 75 FROM tab1 AS cor0
----
-2625
-2625
-2625

query I rowsort
SELECT ALL - col1 + 65 AS col0 FROM tab1 AS cor0
----
39
52
55

query I rowsort
SELECT - 12 * + col2 FROM tab0 AS cor0
----
-12
-396
-984

query I rowsort
SELECT DISTINCT + + 93 + + 66 * + cor0.col2 AS col1 FROM tab2 AS cor0
----
1809
1875
2601

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 89 * + col0 + - col2 col0 FROM tab2 AS cor0
----
-650
-6968
-7069

query I rowsort
SELECT DISTINCT + col1 + 68 FROM tab2 AS cor0
----
127
85
99

query I rowsort
SELECT DISTINCT - col1 * - 78 FROM tab2 AS cor0
----
1326
2418
4602

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 66 + col2 col2 FROM tab0 AS cor0
----
-33
-65
16

onlyif mysql # use DIV operator for integer division
query I rowsort label-4300
SELECT ALL + col1 * - cor0.col1 + col0 DIV ( col1 * - col0 ) FROM tab0 cor0
----
-7396
-8281
-9409

skipif mysql # not compatible
query I rowsort label-4300
SELECT ALL + col1 * - cor0.col1 + col0 / ( col1 * - col0 ) FROM tab0 cor0
----
-7396
-8281
-9409

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4301
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col1 FROM tab0, tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4301
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col1 FROM tab0, tab2 AS cor0
----
NULL

query I rowsort
SELECT + col1 - ( - ( col1 ) ) * - 60 * - col1 FROM tab0
----
443846
496951
564637

query I rowsort
SELECT DISTINCT + 49 + + col0 * + cor0.col2 FROM tab0 AS cor0
----
7347
84
841

query I rowsort
SELECT DISTINCT - col1 + col2 + - cor0.col2 AS col0 FROM tab2 AS cor0
----
-17
-31
-59

query I rowsort
SELECT ALL 95 * + 64 - col0 * + 13 FROM tab2 AS cor0
----
5053
5066
5989

query I rowsort
SELECT ALL + + col1 - col1 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-4307
SELECT + col0 * col2 DIV + col1 FROM tab1 AS cor0
----
364
590
6

skipif mysql # not compatible
query I rowsort label-4307
SELECT + col0 * col2 / + col1 FROM tab1 AS cor0
----
364
590
6

query I rowsort
SELECT DISTINCT 66 * - 60 AS col0 FROM tab1
----
-3960

query I rowsort
SELECT + + col2 * 97 * 15 + col2 AS col1 FROM tab1 AS cor0
----
139776
78624
82992

query I rowsort
SELECT ALL + col1 * col0 * ( col2 ) + 24 + 8 AS col1 FROM tab2 AS cor0
----
119684
51066
5891

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * col1 + + ( + 80 ) col0 FROM tab1
----
1328
1484
650

query I rowsort
SELECT 4 * col2 FROM tab2
----
104
108
152

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4313
SELECT DISTINCT ( col0 * CAST( ( col2 ) AS SIGNED ) ) + + tab0.col1 AS col2 FROM tab0
----
132
7389
878

skipif mysql # not compatible
query I rowsort label-4313
SELECT DISTINCT ( col0 * CAST ( ( col2 ) AS INTEGER ) ) + + tab0.col1 AS col2 FROM tab0
----
132
7389
878

query I rowsort
SELECT col1 * ( col0 * col1 ) + - col2 FROM tab2
----
22793
271492
6700

query I rowsort
SELECT + col1 + + ( col1 ) AS col1 FROM tab2
----
118
34
62

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4316
SELECT col2 * - CAST( - ( col2 ) * - ( col0 ) AS SIGNED ) FROM tab0 AS cor0
----
-26136
-35
-598436

skipif mysql # not compatible
query I rowsort label-4316
SELECT col2 * - CAST ( - ( col2 ) * - ( col0 ) AS INTEGER ) FROM tab0 AS cor0
----
-26136
-35
-598436

query I rowsort
SELECT ALL col2 * - 0 * - col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + - col0 + - cor0.col0 + + col1 * + col2 * col2 AS col1 FROM tab1 cor0
----
119648
32362
75810

query I rowsort
SELECT DISTINCT - 89 + + 12 AS col1 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
-77

query I rowsort
SELECT + - ( + col2 ) + col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + cor1.col2 * tab0.col1 AS col0 FROM tab1, tab1 AS cor0 CROSS JOIN tab0, tab2 AS cor1
----
81 values hashing to c3f564963c20aff92bd0f88b9f3e9e2a

query I rowsort
SELECT + 12 * + col2 FROM tab1
----
1152
648
684

query I rowsort
SELECT ALL + ( col1 + + ( + tab2.col2 ) ) AS col1 FROM tab2
----
55
58
85

query I rowsort
SELECT - 69 * - col0 AS col1 FROM tab0
----
1656
2415
6141

query I rowsort
SELECT col1 + - col2 * 42 FROM tab2
----
-1033
-1103
-1579

query I rowsort
SELECT - 54 + tab1.col0 FROM tab1
----
-51
10
26

query I rowsort
SELECT ALL + 11 + + col0 AS col1 FROM tab2 AS cor0
----
18
89
90

query I rowsort
SELECT 72 - col1 * + ( - col1 ) AS col2 FROM tab2 AS cor0
----
1033
3553
361

query I rowsort
SELECT - cor0.col2 * - col0 * col2 AS col2 FROM tab2 AS cor0
----
114076
5103
52728

onlyif mysql # use DIV operator for integer division
query I rowsort label-4330
SELECT ALL col0 DIV ( + col1 ) FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4330
SELECT ALL col0 / ( + col1 ) FROM tab0
----
0
0
0

query I rowsort
SELECT 96 AS col1 FROM tab1 AS cor0
----
96
96
96

query I rowsort
SELECT - col0 * col1 + + col2 AS col1 FROM tab1
----
-24
-583
-944

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4333
SELECT - - col1 * CAST( NULL AS DECIMAL ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4333
SELECT - - col1 * CAST ( NULL AS REAL ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - cor0.col2 AS col2 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 44fdcd7cd603352d4d127811d164cc1e

query I rowsort
SELECT DISTINCT 56 AS col1 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
56

query I rowsort
SELECT ALL + 77 AS col0 FROM tab1 AS cor0
----
77
77
77

query I rowsort
SELECT - col2 + + col2 - col1 * + col1 * + col1 AS col0 FROM tab2 cor0
----
-205379
-29791
-4913

query I rowsort
SELECT 81 * 65 FROM tab1 AS cor0
----
5265
5265
5265

query I rowsort
SELECT - - col0 * cor0.col1 + - cor0.col0 FROM tab0 AS cor0
----
2040
3360
8010

query I rowsort
SELECT DISTINCT - col0 * + col0 * cor0.col0 FROM tab1 AS cor0
----
-262144
-27
-512000

onlyif mysql # use DIV operator for integer division
query I rowsort label-4341
SELECT ALL + col1 + 70 DIV col1 FROM tab1 AS cor0
----
17
18
28

skipif mysql # not compatible
query I rowsort label-4341
SELECT ALL + col1 + 70 / col1 FROM tab1 AS cor0
----
17
18
28

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2, tab0 cor0 CROSS JOIN tab0, tab1 cor1, tab0 cor2
----
3645 values hashing to 2e3240e8d3c0c7c6ff427f9572ba362d

query I rowsort
SELECT - - 58 FROM tab2, tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
27 values hashing to 9ee363c6ac19cfdb8a50c7dfd5cc2b8a

query I rowsort
SELECT DISTINCT + + cor0.col0 + - col0 AS col2 FROM tab2 AS cor0
----
0

query I rowsort
SELECT DISTINCT col2 * col2 + - cor0.col1 + - 65 AS col0 FROM tab1 AS cor0
----
2825
3174
9138

query I rowsort
SELECT ALL - 90 AS col1 FROM tab1, tab0, tab0 AS cor0
----
27 values hashing to c0d96679aba507520916e8654e5a6618

query I rowsort
SELECT ALL 48 AS col0 FROM tab2
----
48
48
48

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 48 col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 8b09cc2c99c2102036162d063e0e5a4b

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + col2 col2 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT - - ( - col0 ) * - col1 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT + 5 + col2 - - col1 * cor0.col0 FROM tab0 AS cor0
----
2102
3401
8186

onlyif mysql # use DIV operator for integer division
query I rowsort label-4352
SELECT + + col2 DIV col2 + + CAST( + col0 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
25
36
90

skipif mysql # not compatible
query I rowsort label-4352
SELECT + + col2 / col2 + + CAST ( + col0 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
25
36
90

query I rowsort
SELECT + col1 + - col0 * - col2 FROM tab0 AS cor0
----
132
7389
878

query I rowsort
SELECT + 6 - - col1 FROM tab1 AS cor0
----
16
19
32

query I rowsort
SELECT tab0.col0 * tab0.col0 FROM tab0, tab2 AS cor0
----
9 values hashing to d2e5241c58e367013a1a203910e000c0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4356
SELECT ALL CAST( NULL AS SIGNED ) + tab2.col0 * - tab2.col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4356
SELECT ALL CAST ( NULL AS INTEGER ) + tab2.col0 * - tab2.col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - - col2 * col2 - - 43 FROM tab1 AS cor0
----
2959
3292
9259

query I rowsort
SELECT 54 * - col1 + col1 * 31 FROM tab1 AS cor0
----
-230
-299
-598

query I rowsort
SELECT ALL - + col0 + + col2 FROM tab0 cor0
----
-34
-7
9

query I rowsort
SELECT - + col2 * + cor0.col1 + + col2 FROM tab0 AS cor0
----
-2805
-7380
-96

query I rowsort
SELECT ALL + - col0 + - col1 FROM tab2 cor0
----
-137
-38
-96

query I rowsort
SELECT + cor0.col1 * - cor0.col2 + col1 * col1 AS col0 FROM tab2 AS cor0
----
-357
124
1947

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4363
SELECT + + col2 * - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4363
SELECT + + col2 * - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ( 62 ) AS col0 FROM tab0 AS cor0
----
62
62
62

query I rowsort
SELECT - 65 FROM tab0 cor0
----
-65
-65
-65

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * col0 col2 FROM tab0
----
2064
3395
8099

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( ( - cor0.col2 ) ) col1 FROM tab2, tab0 AS cor0
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8

query I rowsort
SELECT - cor0.col0 * col1 FROM tab2 cor0
----
-1343
-217
-4602

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4369
SELECT ALL col2 * - CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4369
SELECT ALL col2 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - tab2.col2 AS col1 FROM tab2, tab0, tab0 AS cor0
----
27 values hashing to f9d4bb8677db7b98c7ed89d06e6e8cd6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab1.col2 col2 FROM tab1, tab0, tab0 AS cor0
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79

query I rowsort
SELECT DISTINCT + col0 * col2 - + 82 * - col1 FROM tab2 AS cor0
----
2731
4396
6866

query I rowsort
SELECT ALL col0 * 55 FROM tab2 AS cor0
----
385
4290
4345

query I rowsort
SELECT DISTINCT + col1 * - 3 + col1 AS col1 FROM tab1 cor0
----
-20
-26
-52

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4375
SELECT + col0 + CAST( + 88 AS SIGNED ) * - cor0.col0 AS col2 FROM tab1 AS cor0
----
-261
-5568
-6960

skipif mysql # not compatible
query I rowsort label-4375
SELECT + col0 + CAST ( + 88 AS INTEGER ) * - cor0.col0 AS col2 FROM tab1 AS cor0
----
-261
-5568
-6960

onlyif mysql # use DIV operator for integer division
query I rowsort label-4376
SELECT DISTINCT + ( col2 ) DIV + col1 AS col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-4376
SELECT DISTINCT + ( col2 ) / + col1 AS col2 FROM tab0
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-4377
SELECT col1 DIV col0 + + ( + col2 ) AS col0 FROM tab1
----
57
62
96

skipif mysql # not compatible
query I rowsort label-4377
SELECT col1 / col0 + + ( + col2 ) AS col0 FROM tab1
----
57
62
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-4378
SELECT DISTINCT tab1.col0 * - col0 - - tab1.col2 DIV col1 AS col2 FROM tab1
----
-4091
-6393
-7

skipif mysql # not compatible
query I rowsort label-4378
SELECT DISTINCT tab1.col0 * - col0 - - tab1.col2 / col1 AS col2 FROM tab1
----
-4091
-6393
-7

query I rowsort
SELECT ALL + + 9 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 03b93b53107e36cf7d524e48c509b17b

onlyif mysql # use DIV operator for integer division
query I rowsort label-4380
SELECT - col1 DIV CAST( + col0 AS SIGNED ) FROM tab1 AS cor0
----
-8
0
0

skipif mysql # not compatible
query I rowsort label-4380
SELECT - col1 / CAST ( + col0 AS INTEGER ) FROM tab1 AS cor0
----
-8
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-4381
SELECT ALL - cor0.col2 DIV + col0 - col2 AS col2 FROM tab1 cor0
----
-57
-72
-97

skipif mysql # not compatible
query I rowsort label-4381
SELECT ALL - cor0.col2 / + col0 - col2 AS col2 FROM tab1 cor0
----
-57
-72
-97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4382
SELECT ALL - + cor0.col1 * CAST( + cor0.col0 AS SIGNED ) + cor0.col2 AS col1 FROM tab2 AS cor0
----
-1305
-190
-4576

skipif mysql # not compatible
query I rowsort label-4382
SELECT ALL - + cor0.col1 * CAST ( + cor0.col0 AS INTEGER ) + cor0.col2 AS col1 FROM tab2 AS cor0
----
-1305
-190
-4576

query I rowsort
SELECT - + col0 + + 44 * + col2 AS col1 FROM tab1 AS cor0
----
2373
2444
4144

onlyif mysql # use DIV operator for integer division
query I rowsort label-4384
SELECT ALL col0 + 52 DIV + col1 AS col1 FROM tab1 AS cor0
----
5
69
84

skipif mysql # not compatible
query I rowsort label-4384
SELECT ALL col0 + 52 / + col1 AS col1 FROM tab1 AS cor0
----
5
69
84

query I rowsort
SELECT DISTINCT + - col2 + + 82 FROM tab1 cor0
----
-14
25
28

query I rowsort
SELECT DISTINCT - cor1.col0 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
-3
-64
-80

query I rowsort
SELECT + col1 * - col1 * - col2 FROM tab1
----
16224
36504
5700

query I rowsort
SELECT DISTINCT col0 * + col0 * col0 FROM tab2
----
343
474552
493039

query I rowsort
SELECT - col2 + col2 * + cor0.col2 + + 4 FROM tab0 AS cor0
----
1060
4
6646

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + + col0 * - col1 + + ( - 63 + - col0 ) * col0 col1 FROM tab2 AS cor0
----
-12599
-15626
-734

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab0 AS cor0 CROSS JOIN tab0, tab1 AS cor1, tab1 AS cor2
----
3645 values hashing to f1666fadc663c90ea9374fcb108b4477

query I rowsort
SELECT - 96 * col2 + col0 FROM tab2 AS cor0
----
-2418
-2585
-3569

query I rowsort
SELECT 71 + + col2 AS col2 FROM tab1
----
125
128
167

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4394
SELECT DISTINCT CAST( 83 AS SIGNED ) AS col1 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
83

skipif mysql # not compatible
query I rowsort label-4394
SELECT DISTINCT CAST ( 83 AS INTEGER ) AS col1 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
83

query I rowsort
SELECT + cor0.col0 * col1 AS col0 FROM tab1 cor0
----
1040
640
78

onlyif mysql # use DIV operator for integer division
query I rowsort label-4396
SELECT DISTINCT col1 DIV col2 + + col1 * 53 AS col2 FROM tab0 AS cor0
----
4560
4824
5238

skipif mysql # not compatible
query I rowsort label-4396
SELECT DISTINCT col1 / col2 + + col1 * 53 AS col2 FROM tab0 AS cor0
----
4560
4824
5238

query I rowsort
SELECT DISTINCT - col1 * - col1 AS col2 FROM tab0 cor0
----
7396
8281
9409

query I rowsort
SELECT cor0.col1 * - 94 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 3006306b6033fa4e22cf05b5cb10223e

query I rowsort
SELECT + + cor0.col2 + col1 FROM tab0 cor0
----
119
173
98

query I rowsort
SELECT DISTINCT - col0 * - col2 + col1 FROM tab1 AS cor0
----
188
3658
7693

query I rowsort
SELECT DISTINCT 6 * col0 AS col2 FROM tab0 AS cor0
----
144
210
534

query I rowsort
SELECT + - col0 * - col0 + ( + col1 ) + + col0 FROM tab2 AS cor0
----
6221
6337
87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 16 + col2 col0 FROM tab2 AS cor0
----
42
43
54

query I rowsort
SELECT DISTINCT cor0.col0 + + col0 + + 64 AS col0 FROM tab1 AS cor0
----
192
224
70

query I rowsort
SELECT ALL 13 * + col0 + col2 AS col2 FROM tab1 AS cor0
----
1136
889
93

query I rowsort
SELECT DISTINCT + + 78 - - cor0.col2 AS col0 FROM tab0 AS cor0
----
111
160
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - ( col0 ) * col0 col2 FROM tab0 AS cor0
----
-1225
-576
-7921

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4408
SELECT ALL 5 * - cor0.col2 + + CAST( + col2 AS SIGNED ) * - col1 AS col1 FROM tab2 AS cor0
----
-1664
-836
-972

skipif mysql # not compatible
query I rowsort label-4408
SELECT ALL 5 * - cor0.col2 + + CAST ( + col2 AS INTEGER ) * - col1 AS col1 FROM tab2 AS cor0
----
-1664
-836
-972

onlyif mysql # use DIV operator for integer division
query I rowsort label-4409
SELECT DISTINCT 10 + - col0 DIV ( - col0 ) AS col2 FROM tab1 AS cor0
----
11

skipif mysql # not compatible
query I rowsort label-4409
SELECT DISTINCT 10 + - col0 / ( - col0 ) AS col2 FROM tab1 AS cor0
----
11

query I rowsort
SELECT - 5 + col0 FROM tab0 AS cor0
----
19
30
84

onlyif mysql # use DIV operator for integer division
query I rowsort label-4411
SELECT DISTINCT + col0 + col0 DIV cor0.col2 FROM tab0 cor0
----
24
70
90

skipif mysql # not compatible
query I rowsort label-4411
SELECT DISTINCT + col0 + col0 / cor0.col2 FROM tab0 cor0
----
24
70
90

query I rowsort
SELECT ALL + cor0.col1 + 7 FROM tab1 AS cor0
----
17
20
33

query I rowsort
SELECT + - col0 * + cor0.col2 AS col2 FROM tab0 AS cor0
----
-35
-7298
-792

onlyif mysql # use DIV operator for integer division
query I rowsort label-4414
SELECT ALL - col0 + + 92 DIV - col0 AS col0 FROM tab2 cor0
----
-20
-79
-80

skipif mysql # not compatible
query I rowsort label-4414
SELECT ALL - col0 + + 92 / - col0 AS col0 FROM tab2 cor0
----
-20
-79
-80

query I rowsort
SELECT ALL + cor0.col2 * ( col2 + col2 ) FROM tab2 AS cor0
----
1352
1458
2888

query I rowsort
SELECT DISTINCT - col1 + cor0.col1 AS col0 FROM tab1 AS cor0
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-4417
SELECT ALL + - col1 * - 64 - col2 DIV - 91 col1 FROM tab0 AS cor0
----
5504
5824
6208

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4417
SELECT ALL + - col1 * - 64 - col2 / - 91 col1 FROM tab0 AS cor0
----
5504
5824
6208

query I rowsort
SELECT + + cor0.col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3

query I rowsort
SELECT DISTINCT - 45 + col0 AS col0 FROM tab2 AS cor0
----
-38
33
34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + ( - 51 ) col2 FROM tab1 AS cor0
----
51
51
51

query I rowsort
SELECT + col1 * - col2 + - col2 AS col2 FROM tab2 AS cor0
----
-1560
-684
-864

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4422
SELECT DISTINCT CAST( - col0 AS SIGNED ) + + col2 AS col1 FROM tab2 AS cor0
----
-41
-52
20

skipif mysql # not compatible
query I rowsort label-4422
SELECT DISTINCT CAST ( - col0 AS INTEGER ) + + col2 AS col1 FROM tab2 AS cor0
----
-41
-52
20

query I rowsort
SELECT DISTINCT + 29 * cor0.col2 FROM tab0, tab0 AS cor0
----
2378
29
957

query I rowsort
SELECT col0 * col1 + col2 * + 92 AS col1 FROM tab2 cor0
----
2701
4839
6994

query I rowsort
SELECT + + 99 + - col1 AS col2 FROM tab2 cor0
----
40
68
82

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab1 AS cor0, tab0 cor1, tab0, tab0 AS cor2
----
3645 values hashing to 2270901c73a658a63f841c68db8155ba

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( + col0 ) col1 FROM tab2 AS cor0
----
-7
-78
-79

query I rowsort
SELECT 25 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 525a55d5ed224a62da65df36731881a7

query I rowsort
SELECT DISTINCT 31 + - 33 FROM tab1
----
-2

query I rowsort
SELECT ALL - 19 AS col1 FROM tab2, tab0, tab1 AS cor0
----
27 values hashing to 0fbbff28a7b63c37b01cf369f9325662

onlyif mysql # use DIV operator for integer division
query I rowsort label-4431
SELECT - 2 + + col1 DIV - 54 AS col2 FROM tab2 AS cor0
----
-2
-2
-3

skipif mysql # not compatible
query I rowsort label-4431
SELECT - 2 + + col1 / - 54 AS col2 FROM tab2 AS cor0
----
-2
-2
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 46 + col0 col1 FROM tab0 AS cor0
----
135
70
81

query I rowsort
SELECT DISTINCT 87 + + col2 FROM tab1 AS cor0
----
141
144
183

query I rowsort
SELECT ( + 20 ) * col0 FROM tab2
----
140
1560
1580

query I rowsort
SELECT ALL ( + col0 ) + col0 * + 20 AS col2 FROM tab2
----
147
1638
1659

query I rowsort
SELECT DISTINCT + col0 * + ( - tab1.col0 ) * tab1.col1 + - col2 AS col0 FROM tab1
----
-288
-41017
-83296

query I rowsort
SELECT DISTINCT 0 AS col0 FROM tab0, tab0 AS cor0
----
0

query I rowsort
SELECT ALL col1 + - col2 * tab2.col1 FROM tab2
----
-1475
-629
-806

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 31 * 57 col2 FROM tab2
----
-1767
-1767
-1767

query I rowsort
SELECT DISTINCT - 6 + col1 FROM tab1
----
20
4
7

onlyif mysql # use DIV operator for integer division
query I rowsort label-4441
SELECT - - col2 DIV 6 AS col2 FROM tab1 cor0
----
16
9
9

skipif mysql # not compatible
query I rowsort label-4441
SELECT - - col2 / 6 AS col2 FROM tab1 cor0
----
16
9
9

query I rowsort
SELECT + col0 * 29 FROM tab1 AS cor0
----
1856
2320
87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * col2 + - 18 col0 FROM tab1 AS cor0
----
1230
1386
552

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 11 + col1 - col2 col2 FROM tab1 AS cor0
----
-17
-36
-72

query I rowsort
SELECT ALL - cor0.col2 * - cor0.col2 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 8a9dbff4c424879f0bb94abfbb1a134b

query I rowsort
SELECT - col0 * + ( col0 * - col0 + col2 ) AS col0 FROM tab1
----
-135
258496
504320

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4447
SELECT ALL - CAST( NULL AS SIGNED ) FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-4447
SELECT ALL - CAST ( NULL AS INTEGER ) FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT + 63 AS col1 FROM tab1 cor0
----
63
63
63

query I rowsort
SELECT ALL - cor0.col1 AS col1 FROM tab0, tab2 AS cor0 CROSS JOIN tab2
----
27 values hashing to 6e0b7d583bc2c53842166d3e6ba2d6d2

query I rowsort
SELECT DISTINCT 64 FROM tab0
----
64

query I rowsort
SELECT col1 * + col0 + col1 AS col1 FROM tab0
----
2150
3492
8190

query I rowsort
SELECT - tab1.col0 * + tab1.col1 + 97 FROM tab1
----
-543
-943
19

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( col1 + - col0 ) col2 FROM tab2
----
-19
-62
24

query I rowsort
SELECT DISTINCT col2 + col2 AS col1 FROM tab0 cor0
----
164
2
66

onlyif mysql # use DIV operator for integer division
query I rowsort label-4455
SELECT ALL + col1 + - cor0.col0 DIV - cor0.col0 AS col2 FROM tab1 AS cor0
----
11
14
27

skipif mysql # not compatible
query I rowsort label-4455
SELECT ALL + col1 + - cor0.col0 / - cor0.col0 AS col2 FROM tab1 AS cor0
----
11
14
27

query I rowsort
SELECT DISTINCT + - col1 - col1 * - col2 FROM tab2 AS cor0
----
1475
629
806

query I rowsort
SELECT ALL col1 * col1 + col0 * - col2 FROM tab2 AS cor0
----
-2713
1453
772

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + + col0 + - cor0.col0 * + col2 col0 FROM tab0 AS cor0
----
-682
-7118
97

query I rowsort
SELECT 3 * + col2 - col1 FROM tab0
----
-94
13
155

query I rowsort
SELECT - col2 * + col1 * + col1 FROM tab0
----
-244068
-679042
-9409

query I rowsort
SELECT + 17 * - tab0.col0 FROM tab0
----
-1513
-408
-595

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 - tab1.col0 col2 FROM tab1
----
-54
-67
23

onlyif mysql # use DIV operator for integer division
query I rowsort label-4463
SELECT - col2 DIV col1 + + col0 AS col0 FROM tab0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-4463
SELECT - col2 / col1 + + col0 AS col0 FROM tab0
----
24
35
89

query I rowsort
SELECT col0 * + col0 - - tab2.col1 FROM tab2
----
6143
6258
80

query I rowsort
SELECT col2 + + col2 * + col1 AS col1 FROM tab0 AS cor0
----
2871
7544
98

query I rowsort
SELECT col1 * col0 + - col1 * col1 AS col1 FROM tab1
----
-598
540
871

query I rowsort
SELECT col0 + col0 * - col0 AS col2 FROM tab0
----
-1190
-552
-7832

query I rowsort
SELECT ( + ( + col2 ) ) AS col0 FROM tab0
----
1
33
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( col0 ) * col0 col1 FROM tab1
----
4096
6400
9

onlyif mysql # use DIV operator for integer division
query I rowsort label-4470
SELECT + tab2.col1 DIV - 30 AS col1 FROM tab2
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-4470
SELECT + tab2.col1 / - 30 AS col1 FROM tab2
----
-1
-1
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-4471
SELECT DISTINCT + 83 DIV + tab1.col2 AS col2 FROM tab1
----
0
1

skipif mysql # not compatible
query I rowsort label-4471
SELECT DISTINCT + 83 / + tab1.col2 AS col2 FROM tab1
----
0
1

query I rowsort
SELECT ( - 56 ) AS col2 FROM tab2
----
-56
-56
-56

query I rowsort
SELECT + col2 * col0 * col1 AS col0 FROM tab2
----
119652
51034
5859

query I rowsort
SELECT ( - col2 ) * - col0 FROM tab2
----
189
2028
3002

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4475
SELECT CAST( col1 AS SIGNED ) * col1 FROM tab0
----
7396
8281
9409

skipif mysql # not compatible
query I rowsort label-4475
SELECT CAST ( col1 AS INTEGER ) * col1 FROM tab0
----
7396
8281
9409

query I rowsort
SELECT + col2 + col2 * col1 FROM tab0 AS cor0
----
2871
7544
98

query I rowsort
SELECT - ( - col1 ) + - col0 * - col2 AS col0 FROM tab2
----
2087
220
3019

query I rowsort
SELECT DISTINCT - - cor0.col1 * - col1 + + cor0.col2 * + col0 FROM tab0 AS cor0
----
-6604
-9374
-983

query I rowsort
SELECT ALL + col2 * col0 - col0 FROM tab2 AS cor0
----
182
1950
2923

query I rowsort
SELECT - 60 AS col2 FROM tab1
----
-60
-60
-60

query I rowsort
SELECT + - col2 + - col0 + + cor0.col2 AS col1 FROM tab0 AS cor0
----
-24
-35
-89

query I rowsort
SELECT - - col1 * - col1 AS col0 FROM tab1 cor0
----
-100
-169
-676

query I rowsort
SELECT 11 + + col1 * - col0 AS col1 FROM tab1 AS cor0
----
-1029
-629
-67

query I rowsort
SELECT ALL - + col2 * + 57 FROM tab1 AS cor0
----
-3078
-3249
-5472

onlyif mysql # use DIV operator for integer division
query I rowsort label-4485
SELECT ALL + 9 DIV + col0 + col0 * + ( - 50 ) FROM tab0 cor0
----
-1200
-1750
-4450

skipif mysql # not compatible
query I rowsort label-4485
SELECT ALL + 9 / + col0 + col0 * + ( - 50 ) FROM tab0 cor0
----
-1200
-1750
-4450

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4486
SELECT DISTINCT - col1 * col2 * + col0 + - CAST( + col1 AS SIGNED ) FROM tab1 cor0
----
-36490
-4238
-99853

skipif mysql # not compatible
query I rowsort label-4486
SELECT DISTINCT - col1 * col2 * + col0 + - CAST ( + col1 AS INTEGER ) FROM tab1 cor0
----
-36490
-4238
-99853

onlyif mysql # use DIV operator for integer division
query I rowsort label-4487
SELECT ALL col0 + - ( col2 ) DIV col2 FROM tab1 AS cor0
----
2
63
79

skipif mysql # not compatible
query I rowsort label-4487
SELECT ALL col0 + - ( col2 ) / col2 FROM tab1 AS cor0
----
2
63
79

onlyif mysql # use DIV operator for integer division
query I rowsort label-4488
SELECT DISTINCT col1 DIV col1 AS col0 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-4488
SELECT DISTINCT col1 / col1 AS col0 FROM tab1 AS cor0
----
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-4489
SELECT - cor0.col0 DIV - col1 FROM tab1 cor0
----
0
6
6

skipif mysql # not compatible
query I rowsort label-4489
SELECT - cor0.col0 / - col1 FROM tab1 cor0
----
0
6
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col1 + col1 col0 FROM tab1 AS cor0
----
20
26
52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + col2 * + 5 col0 FROM tab2 cor0
----
166
189
207

query I rowsort
SELECT ALL + 36 * - col0 AS col0 FROM tab1 AS cor0
----
-108
-2304
-2880

query I rowsort
SELECT 2 + col1 AS col0 FROM tab2 AS cor0
----
19
33
61

query I rowsort
SELECT ALL - 8 AS col0 FROM tab0 AS cor0
----
-8
-8
-8

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - CAST ( col2 + col1 AS REAL ) FROM tab2
----
-55
-58
-85

onlyif mysql # use DIV operator for integer division
query I rowsort label-4496
SELECT + col2 DIV col0 + - col2 AS col2 FROM tab1
----
-36
-57
-95

skipif mysql # not compatible
query I rowsort label-4496
SELECT + col2 / col0 + - col2 AS col2 FROM tab1
----
-36
-57
-95

query I rowsort
SELECT ALL 48 AS col1 FROM tab1
----
48
48
48

query I rowsort
SELECT + ( 91 * + tab1.col2 ) - - ( col0 ) AS col0 FROM tab1
----
4917
5251
8816

query I rowsort
SELECT ALL - col0 - - ( - 79 ) FROM tab1 AS cor0
----
-143
-159
-82

query I rowsort
SELECT - cor0.col2 * col1 + col0 FROM tab0 AS cor0
----
-2814
-62
-7373

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4501
SELECT ALL - col1 + CAST( + 82 AS SIGNED ) col0 FROM tab2 AS cor0
----
23
51
65

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4501
SELECT ALL - col1 + CAST ( + 82 AS INTEGER ) col0 FROM tab2 AS cor0
----
23
51
65

query I rowsort
SELECT DISTINCT - col2 + + 59 * - 30 FROM tab2 AS cor0
----
-1796
-1797
-1808

query I rowsort
SELECT DISTINCT col1 + + 41 AS col1 FROM tab0 cor0
----
127
132
138

query I rowsort
SELECT ALL col2 * - 14 + + cor0.col1 - col2 FROM tab0 AS cor0
----
-1139
-409
82

query I rowsort
SELECT col1 * + col2 + 31 * col2 AS col2 FROM tab2 AS cor0
----
1674
1824
2340

query I rowsort
SELECT ALL + - col2 + - cor0.col1 + col2 FROM tab1 AS cor0
----
-10
-13
-26

query I rowsort
SELECT DISTINCT col0 * col2 + - col0 FROM tab0 AS cor0
----
0
7209
768

query I rowsort
SELECT ALL cor0.col1 + col2 AS col0 FROM tab0 cor0
----
119
173
98

onlyif mysql # use DIV operator for integer division
query I rowsort label-4509
SELECT - col1 DIV col0 + 39 FROM tab2 cor0
----
35
39
39

skipif mysql # not compatible
query I rowsort label-4509
SELECT - col1 / col0 + 39 FROM tab2 cor0
----
35
39
39

onlyif mysql # use DIV operator for integer division
query I rowsort label-4510
SELECT ALL - + cor0.col2 DIV cor0.col2 + col1 AS col2 FROM tab0 AS cor0
----
85
90
96

skipif mysql # not compatible
query I rowsort label-4510
SELECT ALL - + cor0.col2 / cor0.col2 + col1 AS col2 FROM tab0 AS cor0
----
85
90
96

query I rowsort
SELECT col1 * - ( cor0.col1 ) AS col1 FROM tab0 AS cor0
----
-7396
-8281
-9409

query I rowsort
SELECT - col2 + col2 * col1 FROM tab2 cor0
----
1508
608
810

query I rowsort
SELECT ALL + col2 * + col0 AS col2 FROM tab2
----
189
2028
3002

query I rowsort
SELECT DISTINCT 18 * col0 - col1 FROM tab1
----
1142
1427
28

query I rowsort
SELECT DISTINCT + ( - col2 + - col0 ) AS col1 FROM tab2
----
-104
-117
-34

query I rowsort
SELECT + col2 * - ( - tab0.col1 * tab0.col1 ) + col1 + col0 FROM tab0
----
244178
679222
9541

query I rowsort
SELECT cor0.col2 FROM tab1 AS cor0 CROSS JOIN tab0, tab0 AS cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79

query I rowsort
SELECT - col1 * - col1 + + col0 AS col2 FROM tab2 AS cor0
----
3559
368
968

query I rowsort
SELECT + - cor0.col0 + + ( + 96 ) AS col1 FROM tab1 AS cor0
----
16
32
93

query I rowsort
SELECT cor0.col1 * + 92 + + col1 * col0 AS col1 FROM tab0 AS cor0
----
12319
16471
9976

query I rowsort
SELECT ALL col0 + ( + col2 ) + + col1 * + col2 * 94 FROM tab1 AS cor0
----
117488
132033
53701

query I rowsort
SELECT + cor0.col2 * 35 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to af4a3869a089cb943e738c530ee1a2b9

query I rowsort
SELECT ALL + tab0.col2 * col0 + col1 FROM tab0
----
132
7389
878

query I rowsort
SELECT col0 + col0 * + cor0.col2 * - 78 AS col0 FROM tab2 AS cor0
----
-14735
-158106
-234077

query I rowsort
SELECT - col2 * + 22 * - col1 + col1 FROM tab2 AS cor0
----
14229
18445
33807

query I rowsort
SELECT DISTINCT - col2 + 87 FROM tab0
----
5
54
86

onlyif mysql # use DIV operator for integer division
query I rowsort label-4527
SELECT - col1 + col2 DIV 5 + col2 * col0 FROM tab1
----
146
3649
7686

skipif mysql # not compatible
query I rowsort label-4527
SELECT - col1 + col2 / 5 + col2 * col0 FROM tab1
----
146
3649
7686

onlyif mysql # use DIV operator for integer division
query I rowsort label-4528
SELECT col0 * 1 DIV + col0 col1 FROM tab2
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4528
SELECT col0 * 1 / + col0 col1 FROM tab2
----
1
1
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-4529
SELECT ALL + col1 + + tab2.col1 DIV - 36 FROM tab2
----
17
31
58

skipif mysql # not compatible
query I rowsort label-4529
SELECT ALL + col1 + + tab2.col1 / - 36 FROM tab2
----
17
31
58

query I rowsort
SELECT ALL 70 FROM tab0, tab0 AS cor0
----
9 values hashing to 9758da65ae4711e3e8c8def2fe026911

query I rowsort
SELECT 78 * 58 FROM tab0 AS cor0
----
4524
4524
4524

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * col1 + cor0.col0 col1 FROM tab2 cor0
----
3559
368
968

query I rowsort
SELECT DISTINCT ( + 60 ) FROM tab1
----
60

query I rowsort
SELECT ALL col2 * ( - col1 ) + - ( 39 ) AS col0 FROM tab2 AS cor0
----
-1573
-685
-876

query I rowsort
SELECT DISTINCT + + col1 * - col2 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT + col2 * + 93 FROM tab2 AS cor0
----
2418
2511
3534

query I rowsort
SELECT + 82 * + col2 FROM tab1 AS cor0
----
4428
4674
7872

query I rowsort
SELECT ALL - - cor0.col2 * + 3 AS col2 FROM tab0 AS cor0
----
246
3
99

query I rowsort
SELECT - + col0 * col0 AS col0 FROM tab0 AS cor0
----
-1225
-576
-7921

query I rowsort
SELECT ALL ( - col0 ) + col1 AS col0 FROM tab0 AS cor0
----
2
62
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * col2 * col1 col2 FROM tab1 AS cor0
----
119808
32490
75816

query I rowsort
SELECT DISTINCT - 59 AS col1 FROM tab0 AS cor0
----
-59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * + col2 col2 FROM tab2
----
189
2028
3002

query I rowsort
SELECT 85 + col1 * col1 * - 20 AS col2 FROM tab2
----
-19135
-5695
-69535

query I rowsort
SELECT + col1 * col2 + + tab1.col1 * - col1 FROM tab1
----
1079
470
728

query I rowsort
SELECT DISTINCT + + cor0.col0 + col1 AS col1 FROM tab1 AS cor0
----
29
74
93

query I rowsort
SELECT DISTINCT - col2 * - col0 + - cor0.col1 + 24 * col0 AS col2 FROM tab2 AS cor0
----
326
3841
4881

query I rowsort
SELECT DISTINCT + + ( + col1 ) * - ( - col2 ) + - col1 FROM tab2 cor0
----
1475
629
806

query I rowsort
SELECT + 34 * + col0 FROM tab1 AS cor0
----
102
2176
2720

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col1 * col2 col0 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT ALL 80 + + col2 * ( col0 ) AS col1 FROM tab2 AS cor0
----
2108
269
3082

query I rowsort
SELECT ALL - ( - col0 ) + col0 AS col1 FROM tab0 AS cor0
----
178
48
70

query I rowsort
SELECT DISTINCT - 50 FROM tab2 cor0
----
-50

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4554
SELECT ALL + col2 * - CAST( 5 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-165
-410
-5

skipif mysql # not compatible
query I rowsort label-4554
SELECT ALL + col2 * - CAST ( 5 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-165
-410
-5

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1, tab2 cor0, tab1 cor1, tab0, tab0 AS cor2
----
3645 values hashing to 8a7905bab027a06731ba57659d83981d

query I rowsort
SELECT + col2 - - cor0.col1 * + 76 FROM tab2 cor0
----
1330
2383
4510

query I rowsort
SELECT ALL - - col0 * 48 FROM tab2 cor0
----
336
3744
3792

onlyif mysql # use DIV operator for integer division
query I rowsort label-4558
SELECT ALL col0 DIV 29 FROM tab0 AS cor0
----
0
1
3

skipif mysql # not compatible
query I rowsort label-4558
SELECT ALL col0 / 29 FROM tab0 AS cor0
----
0
1
3

query I rowsort
SELECT DISTINCT - col2 * col2 - col2 FROM tab2 AS cor0
----
-1482
-702
-756

query I rowsort
SELECT + col0 - 64 * + cor0.col0 FROM tab2 AS cor0
----
-441
-4914
-4977

query I rowsort
SELECT + col2 * 11 AS col1 FROM tab0 AS cor0
----
11
363
902

query I rowsort
SELECT DISTINCT + + col1 * - ( col0 ) * col1 AS col0 FROM tab2 AS cor0
----
-22831
-271518
-6727

query I rowsort
SELECT + tab1.col0 - + 57 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 296db03297a8e3cb1329399672223f05

query I rowsort
SELECT DISTINCT + cor0.col2 + - col0 AS col2 FROM tab2 AS cor0
----
-41
-52
20

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col0 + col1 col0 FROM tab2 AS cor0
----
-19
-62
24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 26 col2 FROM tab2 cor0
----
26
26
26

query I rowsort
SELECT + + ( col2 ) * - col0 AS col2 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT ALL tab2.col1 + - 83 AS col1 FROM tab2, tab0 cor0
----
9 values hashing to 126fabe8a0e553ad58003a412f9b16fb

query I rowsort
SELECT DISTINCT + cor0.col0 * + col0 + ( col0 ) AS col2 FROM tab1 AS cor0
----
12
4160
6480

query I rowsort
SELECT ALL - - 81 * cor0.col0 FROM tab1 AS cor0
----
243
5184
6480

query I rowsort
SELECT col0 + col1 * - 20 FROM tab1 AS cor0
----
-136
-180
-517

onlyif mysql # use DIV operator for integer division
query I rowsort label-4572
SELECT + col1 DIV + 65 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4572
SELECT + col1 / + 65 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT col0 * 49 FROM tab1 AS cor0
----
147
3136
3920

query I rowsort
SELECT + - col1 * + 74 FROM tab2 AS cor0
----
-1258
-2294
-4366

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4575
SELECT + CAST( + col1 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-4575
SELECT + CAST ( + col1 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT + - ( + col2 ) + col2 FROM tab1 cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-4577
SELECT - - 8 DIV col0 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4577
SELECT - - 8 / col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT - + 4 * - col1 AS col0 FROM tab1 cor0
----
104
40
52

query I rowsort
SELECT DISTINCT 71 AS col0 FROM tab2, tab2 AS cor0
----
71

query I rowsort
SELECT + ( 75 ) * col2 FROM tab1
----
4050
4275
7200

query I rowsort
SELECT DISTINCT - col0 * + 77 FROM tab2
----
-539
-6006
-6083

query I rowsort
SELECT DISTINCT + tab0.col1 * col2 AS col0 FROM tab0
----
2838
7462
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 63 col1 FROM tab1
----
63

query I rowsort
SELECT DISTINCT 43 AS col1 FROM tab0
----
43

query I rowsort
SELECT col2 + + col0 * - col2 * 4 AS col2 FROM tab2
----
-11970
-729
-8086

query I rowsort
SELECT ALL 78 * + col2 AS col2 FROM tab2
----
2028
2106
2964

query I rowsort
SELECT + - col0 * cor0.col0 * 36 FROM tab1 cor0
----
-147456
-230400
-324

query I rowsort
SELECT DISTINCT col1 * + ( - col2 ) + col0 * - col2 * - col1 FROM tab0 AS cor0
----
3298
65274
656656

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4589
SELECT ALL - col2 + CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4589
SELECT ALL - col2 + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT cor1.col2 + + ( cor0.col2 ) FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 135e61500eadea964d6ea6ab73b38c8f

query I rowsort
SELECT ALL - tab0.col1 * - col1 AS col0 FROM tab0
----
7396
8281
9409

query I rowsort
SELECT ALL - tab1.col2 + + 37 FROM tab1
----
-17
-20
-59

query I rowsort
SELECT ALL col0 * - 7 + col0 FROM tab2
----
-42
-468
-474

onlyif mysql # use DIV operator for integer division
query I rowsort label-4594
SELECT ALL + col1 + - 79 DIV col0 FROM tab2
----
16
20
58

skipif mysql # not compatible
query I rowsort label-4594
SELECT ALL + col1 + - 79 / col0 FROM tab2
----
16
20
58

query I rowsort
SELECT 40 - 57 * + col1 AS col0 FROM tab2 AS cor0
----
-1727
-3323
-929

query I rowsort
SELECT - - 86 * col1 + - col2 FROM tab1 AS cor0
----
1022
2182
803

onlyif mysql # use DIV operator for integer division
query I rowsort label-4597
SELECT DISTINCT + col1 DIV - 67 col0 FROM tab0
----
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4597
SELECT DISTINCT + col1 / - 67 col0 FROM tab0
----
-1

onlyif mysql # use DIV operator for integer division
query I rowsort label-4598
SELECT col1 * 10 DIV - 56 FROM tab2
----
-10
-3
-5

skipif mysql # not compatible
query I rowsort label-4598
SELECT col1 * 10 / - 56 FROM tab2
----
-10
-3
-5

query I rowsort
SELECT - col2 * - ( col1 ) FROM tab2
----
1534
646
837

query I rowsort
SELECT DISTINCT tab2.col2 * + 65 FROM tab2
----
1690
1755
2470

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4601
SELECT ALL CAST( col2 AS SIGNED ) * - col2 FROM tab0
----
-1
-1089
-6724

skipif mysql # not compatible
query I rowsort label-4601
SELECT ALL CAST ( col2 AS INTEGER ) * - col2 FROM tab0
----
-1
-1089
-6724

query I rowsort
SELECT DISTINCT col0 * 68 - - col0 AS col2 FROM tab1
----
207
4416
5520

query I rowsort
SELECT + col1 * + 90 AS col0 FROM tab2
----
1530
2790
5310

query I rowsort
SELECT + 5 * + 34 + - col2 - 86 FROM tab2 AS cor0
----
46
57
58

query I rowsort
SELECT - ( + cor0.col1 ) * col0 AS col1 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT - 66 + - col0 - col2 AS col0 FROM tab2 cor0
----
-100
-170
-183

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4607
SELECT CAST( NULL AS DECIMAL ) * col2 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4607
SELECT CAST ( NULL AS REAL ) * col2 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col1 * col0 * - col2 AS col1 FROM tab0
----
-3395
-664118
-68112

query I rowsort
SELECT col1 * + col1 + col1 FROM tab2
----
306
3540
992

query I rowsort
SELECT DISTINCT col2 * + col0 - + tab2.col1 FROM tab2
----
158
1969
2985

query I rowsort
SELECT DISTINCT col0 * col0 * - col2 FROM tab1
----
-233472
-486
-614400

query I rowsort
SELECT + col2 + - col1 + - cor0.col0 FROM tab0 AS cor0
----
-131
-77
-98

query I rowsort
SELECT ALL col1 * + col0 * + col1 - col0 * col1 AS col0 FROM tab1
----
12480
1950
5760

onlyif mysql # use DIV operator for integer division
query I rowsort label-4614
SELECT + col1 * col2 DIV - col0 FROM tab1
----
-15
-468
-8

skipif mysql # not compatible
query I rowsort label-4614
SELECT + col1 * col2 / - col0 FROM tab1
----
-15
-468
-8

query I rowsort
SELECT ALL col2 + + col2 AS col2 FROM tab0 WHERE NOT NULL IN ( col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( NULL ) <= ( NULL )
----

query I rowsort
SELECT cor0.col2 - + col0 FROM tab0 AS cor0
----
-34
-7
9

onlyif mysql # use DIV operator for integer division
query I rowsort label-4618
SELECT ALL + col2 DIV - col1 + col2 AS col2 FROM tab1 AS cor0
----
52
52
89

skipif mysql # not compatible
query I rowsort label-4618
SELECT ALL + col2 / - col1 + col2 AS col2 FROM tab1 AS cor0
----
52
52
89

onlyif mysql # use DIV operator for integer division
query I rowsort label-4619
SELECT DISTINCT tab0.col1 + col2 DIV col1 FROM tab0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-4619
SELECT DISTINCT tab0.col1 + col2 / col1 FROM tab0
----
86
91
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-4620
SELECT ALL col0 + col2 * - tab1.col0 DIV + col0 FROM tab1
----
-16
-51
7

skipif mysql # not compatible
query I rowsort label-4620
SELECT ALL col0 + col2 * - tab1.col0 / + col0 FROM tab1
----
-16
-51
7

query I rowsort
SELECT - col0 * + col0 FROM tab0 WHERE NOT - col2 > NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + tab1.col0 + + col2 * col0 col2 FROM tab1
----
165
3712
7760

query I rowsort
SELECT DISTINCT tab1.col0 + col0 * - col1 AS col0 FROM tab1
----
-576
-75
-960

query I rowsort
SELECT ALL + col1 + - col2 * - col2 FROM tab0 WHERE NOT ( tab0.col0 * col2 ) NOT BETWEEN ( - col0 + col0 ) AND ( NULL )
----

query I rowsort
SELECT DISTINCT - col1 * - col1 + - col0 + + col0 FROM tab0
----
7396
8281
9409

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * + col1 col1 FROM tab2
----
-1534
-646
-837

onlyif mysql # use DIV operator for integer division
query I rowsort label-4627
SELECT col1 DIV + col2 AS col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4627
SELECT col1 / + col2 AS col0 FROM tab1
----
0
0
0

query I rowsort
SELECT + tab1.col2 * + col2 + - col0 / - col1 - col2 AS col2 FROM tab1 WHERE NULL = - col1
----

query I rowsort
SELECT DISTINCT col2 * col2 + - col0 AS col2 FROM tab0
----
-34
1065
6635

query I rowsort
SELECT DISTINCT - col1 * col0 + + cor0.col1 AS col2 FROM tab1 AS cor0
----
-1027
-52
-630

query I rowsort
SELECT ALL - cor0.col0 * col1 + + col2 AS col2 FROM tab1 AS cor0
----
-24
-583
-944

query I rowsort
SELECT - + cor0.col2 * cor0.col2 FROM tab1 AS cor0
----
-2916
-3249
-9216

query I rowsort
SELECT ALL - col2 * col0 * cor0.col2 FROM tab0 AS cor0
----
-26136
-35
-598436

query I rowsort
SELECT + col2 + - col1 * - cor0.col2 AS col1 FROM tab1 cor0
----
1344
1458
627

query I rowsort
SELECT + + col1 * - cor0.col0 AS col2 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT + + col2 * col0 * cor0.col2 + + col0 FROM tab0 cor0
----
26160
598525
70

query I rowsort
SELECT ALL col0 - + cor0.col0 AS col2 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + col0 + - col0 * + col1 AS col2 FROM tab1 AS cor0
----
-576
-75
-960

query I rowsort
SELECT DISTINCT + col1 * col0 + + col0 * + col0 FROM tab2 AS cor0
----
10686
266
7584

query I rowsort
SELECT ALL - col1 * col2 + + col0 - col0 FROM tab0 cor0
----
-2838
-7462
-97

query I rowsort
SELECT DISTINCT col1 + cor0.col1 * - col2 AS col1 FROM tab1 AS cor0
----
-1235
-1378
-560

query I rowsort
SELECT ALL + col0 - + col2 FROM tab1 AS cor0
----
-16
-51
7

query III rowsort
SELECT * FROM tab1 WHERE NOT col1 / col1 <= ( NULL )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 / - col2 + col0 < NULL
----

query I rowsort
SELECT - col2 / + col1 - col1 FROM tab1 AS cor0 WHERE NOT col0 NOT IN ( - col2 - + cor0.col1 / - col0 )
----

query I rowsort
SELECT - col1 + tab1.col2 + - col1 FROM tab1
----
2
37
70

query I rowsort
SELECT DISTINCT col1 + col0 + col2 FROM tab2
----
134
163
65

query I rowsort
SELECT DISTINCT col1 * - col0 - col2 AS col2 FROM tab2
----
-1381
-244
-4628

query I rowsort
SELECT ALL col0 - + ( - col0 ) FROM tab0 AS cor0
----
178
48
70

query I rowsort
SELECT DISTINCT + col2 + + ( - ( col0 ) + - ( - col2 ) ) AS col2 FROM tab0 AS cor0
----
-33
42
75

query I rowsort
SELECT DISTINCT - cor0.col0 * col0 + - 39 AS col2 FROM tab2 AS cor0
----
-6123
-6280
-88

query I rowsort
SELECT DISTINCT - col0 + 9 FROM tab2 AS cor0
----
-69
-70
2

onlyif mysql # use DIV operator for integer division
query I rowsort label-4653
SELECT DISTINCT col1 * + ( cor0.col1 ) + - col2 DIV + 9 + - col0 FROM tab0 AS cor0
----
7369
8183
9374

skipif mysql # not compatible
query I rowsort label-4653
SELECT DISTINCT col1 * + ( cor0.col1 ) + - col2 / + 9 + - col0 FROM tab0 AS cor0
----
7369
8183
9374

query I rowsort
SELECT ALL + + col2 + ( col2 ) AS col1 FROM tab0 cor0
----
164
2
66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col1 col2 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd

query I rowsort
SELECT - col0 * + col2 + - col2 * + tab0.col1 FROM tab0
----
-132
-14760
-3630

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1 cor0 CROSS JOIN tab0, tab0 AS cor1, tab1, tab0 AS cor2
----
3645 values hashing to ced36882687f040e969c817b62d2e456

onlyif mysql # use DIV operator for integer division
query I rowsort label-4658
SELECT DISTINCT - - col0 DIV col0 AS col0 FROM tab2 cor0
----
1

skipif mysql # not compatible
query I rowsort label-4658
SELECT DISTINCT - - col0 / col0 AS col0 FROM tab2 cor0
----
1

query I rowsort
SELECT - cor0.col2 * col1 + col0 AS col0 FROM tab1 AS cor0
----
-1168
-1401
-506

query I rowsort
SELECT - col2 + col0 + cor0.col1 * col0 FROM tab2 AS cor0
----
1384
197
4654

onlyif mysql # use DIV operator for integer division
query I rowsort label-4661
SELECT + + col2 - col0 DIV - col2 FROM tab1 AS cor0
----
54
58
96

skipif mysql # not compatible
query I rowsort label-4661
SELECT + + col2 - col0 / - col2 FROM tab1 AS cor0
----
54
58
96

query I rowsort
SELECT + col2 * + ( col2 ) - + cor0.col1 * - cor0.col1 AS col0 FROM tab0 AS cor0
----
15005
8485
9410

query I rowsort
SELECT ALL + + cor0.col0 * - col0 FROM tab0 cor0
----
-1225
-576
-7921

query I rowsort
SELECT ALL col1 * + col2 + col1 FROM tab0
----
194
2924
7553

query I rowsort
SELECT - col0 + - col1 FROM tab0 WHERE col1 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT tab0.col2 - - col0 AS col1 FROM tab0
----
171
36
57

query I rowsort
SELECT DISTINCT - + ( col2 ) + ( col2 ) FROM tab0 cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 82 col0 FROM tab2 cor0
----
82
82
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 30 col2 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 6c98840ed134c765d56389f4150075f0

query I rowsort
SELECT DISTINCT col0 + - col0 AS col0 FROM tab2 WHERE NOT NULL IN ( + col2 )
----

query I rowsort
SELECT col2 + - col2 - + col1 AS col1 FROM tab1
----
-10
-13
-26

query I rowsort
SELECT + col1 * - col0 AS col1 FROM tab0 WHERE NOT NULL NOT IN ( tab0.col2 / - col2 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-4673
SELECT ALL col0 * col0 + col2 DIV + col1 FROM tab2
----
49
6084
6243

skipif mysql # not compatible
query I rowsort label-4673
SELECT ALL col0 * col0 + col2 / + col1 FROM tab2
----
49
6084
6243

onlyif mysql # use DIV operator for integer division
query I rowsort label-4674
SELECT DISTINCT - col1 DIV col2 + col2 FROM tab1
----
54
57
96

skipif mysql # not compatible
query I rowsort label-4674
SELECT DISTINCT - col1 / col2 + col2 FROM tab1
----
54
57
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab0.col2 * + col0 + + col1 col2 FROM tab0
----
132
7389
878

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND - col0 * col0 + col1 / col2
----

query I rowsort
SELECT DISTINCT + tab2.col0 + col1 FROM tab2
----
137
38
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-4678
SELECT ALL col1 * col2 DIV tab1.col1 + col1 DIV + col0 FROM tab1
----
57
62
96

skipif mysql # not compatible
query I rowsort label-4678
SELECT ALL col1 * col2 / tab1.col1 + col1 / + col0 FROM tab1
----
57
62
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab2.col2 * col2 col2 FROM tab2
----
1444
676
729

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL IN ( col2 / + col2 + col2 )
----

query I rowsort
SELECT DISTINCT col0 - col0 * + cor0.col0 * col0 FROM tab2 AS cor0
----
-336
-474474
-492960

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4682
SELECT DISTINCT col1 + col0 * + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4682
SELECT DISTINCT col1 + col0 * + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT - ( + 80 ) + col1 FROM tab1 AS cor0
----
-54
-67
-70

query I rowsort
SELECT DISTINCT - col2 * ( + 7 ) FROM tab1
----
-378
-399
-672

query I rowsort
SELECT DISTINCT - cor0.col2 + + col1 FROM tab1 cor0
----
-28
-47
-83

query I rowsort
SELECT - + col1 + 77 * col2 FROM tab1 cor0
----
4132
4379
7379

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4687
SELECT + col1 * + CAST( NULL AS SIGNED ) col2 FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4687
SELECT + col1 * + CAST ( NULL AS INTEGER ) col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col1 * ( - tab2.col1 ) FROM tab2
----
-289
-3481
-961

query I rowsort
SELECT - 8 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 47f43f23dcd23959d97d8e3b0aab692e

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4690
SELECT CAST( NULL AS SIGNED ) AS col1 FROM tab0, tab1 AS cor0 CROSS JOIN tab1, tab0 AS cor1, tab0 AS cor2
----
243 values hashing to 76933ee8cce600e48802fbdea2376d45

skipif mysql # not compatible
query I rowsort label-4690
SELECT CAST ( NULL AS INTEGER ) AS col1 FROM tab0, tab1 AS cor0 CROSS JOIN tab1, tab0 AS cor1, tab0 AS cor2
----
243 values hashing to 76933ee8cce600e48802fbdea2376d45

query I rowsort
SELECT cor0.col2 * - col1 + + col1 FROM tab1 AS cor0
----
-1235
-1378
-560

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4692
SELECT + ( + 81 ) * col1 + CAST( NULL AS DECIMAL ) * - 28 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4692
SELECT + ( + 81 ) * col1 + CAST ( NULL AS REAL ) * - 28 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 92 + - 64 AS col0 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
28

query I rowsort
SELECT - tab2.col0 + tab2.col2 FROM tab2
----
-41
-52
20

query I rowsort
SELECT - 35 * + col0 + + 47 + 52 AS col0 FROM tab0 AS cor0
----
-1126
-3016
-741

query I rowsort
SELECT DISTINCT 96 * - col0 FROM tab1 AS cor0
----
-288
-6144
-7680

query I rowsort
SELECT ALL - cor0.col1 * - col1 AS col1 FROM tab2 AS cor0
----
289
3481
961

query I rowsort
SELECT DISTINCT col2 * - col1 + col1 AS col0 FROM tab1 AS cor0
----
-1235
-1378
-560

query I rowsort
SELECT - - col2 * ( + col0 ) FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT DISTINCT cor0.col1 FROM tab1, tab0 AS cor0, tab0 AS cor1, tab0, tab2 AS cor2
----
86
91
97

query I rowsort
SELECT - col0 - + cor0.col2 AS col0 FROM tab1 AS cor0
----
-121
-176
-57

query I rowsort
SELECT + col0 - + 8 * col2 FROM tab2 AS cor0
----
-130
-209
-225

onlyif mysql # use DIV operator for integer division
query I rowsort label-4703
SELECT - - col2 DIV + cor0.col2 AS col1 FROM tab0 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4703
SELECT - - col2 / + cor0.col2 AS col1 FROM tab0 cor0
----
1
1
1

query I rowsort
SELECT - col1 * col2 + + 71 - col1 FROM tab2 AS cor0
----
-1522
-592
-797

query I rowsort
SELECT - 80 FROM tab0 cor0
----
-80
-80
-80

query I rowsort
SELECT ALL + + cor0.col0 + cor0.col2 - cor0.col1 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 37fd98623d22b03f7217005669e55ee4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( cor0.col1 ) col2 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT + + col1 + + cor0.col0 FROM tab1 cor0
----
29
74
93

query I rowsort
SELECT 34 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 1146d159f0b9b4378a8b738b963f7039

query I rowsort
SELECT - - col1 + 20 * - col0 FROM tab0 AS cor0
----
-1689
-394
-603

query I rowsort
SELECT DISTINCT + cor0.col1 * col0 AS col2 FROM tab2 AS cor0
----
1343
217
4602

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 55 * + col0 col2 FROM tab2 cor0
----
385
4290
4345

query I rowsort
SELECT - 20 * col2 FROM tab0 AS cor0
----
-1640
-20
-660

query I rowsort
SELECT - 48 AS col1 FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to 2558735eaa258a08592aef9d33020c18

query I rowsort
SELECT DISTINCT - col0 * col0 - + col0 AS col1 FROM tab2 AS cor0
----
-56
-6162
-6320

query I rowsort
SELECT ALL - - col1 * - col2 + cor0.col2 + + col2 FROM tab1 cor0
----
-1056
-1296
-456

query I rowsort
SELECT ( col1 ) * ( cor0.col1 ) FROM tab0 AS cor0
----
7396
8281
9409

query I rowsort
SELECT - cor0.col2 + cor0.col0 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 4646ed87e8cc5aacb51f9b4e472c3c4b

query I rowsort
SELECT DISTINCT - 95 AS col0 FROM tab2
----
-95

query I rowsort
SELECT ALL + - col2 + col1 * 16 FROM tab0 AS cor0
----
1343
1374
1551

query I rowsort
SELECT - cor0.col0 + + 99 AS col0 FROM tab0 AS cor0
----
10
64
75

onlyif mysql # use DIV operator for integer division
query I rowsort label-4722
SELECT DISTINCT - col2 DIV + ( - col1 ) FROM tab2 AS cor0
----
0
2

skipif mysql # not compatible
query I rowsort label-4722
SELECT DISTINCT - col2 / + ( - col1 ) FROM tab2 AS cor0
----
0
2

query I rowsort
SELECT DISTINCT col0 + - ( + cor0.col1 ) AS col1 FROM tab1 AS cor0
----
-23
54
67

query I rowsort
SELECT + - col2 * - ( col1 ) + col1 - col0 * + col1 FROM tab2 AS cor0
----
-3009
-680
651

query I rowsort
SELECT DISTINCT + col2 * - tab2.col2 - col2 AS col1 FROM tab2
----
-1482
-702
-756

query I rowsort
SELECT DISTINCT cor0.col0 AS col2 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
7
78
79

query I rowsort
SELECT col0 - + col2 AS col2 FROM tab0 AS cor0
----
-9
34
7

query I rowsort
SELECT ALL - 73 * + col2 FROM tab1 AS cor0
----
-3942
-4161
-7008

query I rowsort
SELECT + 91 * col0 FROM tab2
----
637
7098
7189

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 15 * + col2 * + tab2.col1 col0 FROM tab2
----
12555
23010
9690

query I rowsort
SELECT - col2 * - tab1.col1 * + col2 FROM tab1
----
119808
32490
75816

query I rowsort
SELECT 77 FROM tab2, tab0 AS cor0 CROSS JOIN tab1
----
27 values hashing to d7b027bca5d37c67e29013904def8125

query I rowsort
SELECT DISTINCT + tab1.col1 * - 45 FROM tab1
----
-1170
-450
-585

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 7 + col1 col2 FROM tab0
----
104
93
98

query I rowsort
SELECT - tab1.col1 + tab1.col2 * + col0 * + 75 FROM tab1
----
12124
273590
575987

query I rowsort
SELECT ALL - col1 + col0 * - col2 * - 26 FROM tab1
----
199667
4186
94838

query I rowsort
SELECT DISTINCT + 28 * + col0 + - tab2.col2 AS col1 FROM tab2
----
169
2158
2174

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4738
SELECT DISTINCT + cor0.col0 * CAST( NULL AS SIGNED ) FROM tab0, tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4738
SELECT DISTINCT + cor0.col0 * CAST ( NULL AS INTEGER ) FROM tab0, tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 19 * col0 col0 FROM tab1
----
1216
1520
57

onlyif mysql # use DIV operator for integer division
query I rowsort label-4740
SELECT - tab1.col1 DIV + col1 AS col0 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-4740
SELECT - tab1.col1 / + col1 AS col0 FROM tab1
----
-1
-1
-1

query I rowsort
SELECT ALL + 69 + col0 AS col1 FROM tab2
----
147
148
76

query I rowsort
SELECT + col1 + col1 * + col2 AS col0 FROM tab1
----
1261
1430
580

query I rowsort
SELECT DISTINCT - - col2 - col2 * 62 AS col2 FROM tab1 AS cor0
----
-3294
-3477
-5856

query I rowsort
SELECT + 64 + + 22 AS col2 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to ed1a39c2752ca3723602e4a92c54bbc4

query I rowsort
SELECT DISTINCT + + col0 + + cor0.col0 * col1 AS col1 FROM tab2 AS cor0
----
1422
224
4680

query I rowsort
SELECT - - col1 + - col0 * 55 AS col2 FROM tab0 cor0
----
-1234
-1828
-4804

query I rowsort
SELECT ALL - col1 + col2 * + 21 + ( + col1 ) * 59 * 24 AS col2 FROM tab1 AS cor0
----
15347
20411
37924

query I rowsort
SELECT DISTINCT + col0 - - col1 AS col0 FROM tab2 AS cor0
----
137
38
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-4749
SELECT + col0 DIV col0 - + 53 FROM tab1 AS cor0
----
-52
-52
-52

skipif mysql # not compatible
query I rowsort label-4749
SELECT + col0 / col0 - + 53 FROM tab1 AS cor0
----
-52
-52
-52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 68 col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 599bee15ac4cc39b859854e07dfe7990

onlyif mysql # use DIV operator for integer division
query I rowsort label-4751
SELECT + tab2.col2 * + col1 - col0 DIV + col0 FROM tab2
----
1533
645
836

skipif mysql # not compatible
query I rowsort label-4751
SELECT + tab2.col2 * + col1 - col0 / + col0 FROM tab2
----
1533
645
836

onlyif mysql # use DIV operator for integer division
query I rowsort label-4752
SELECT DISTINCT cor0.col0 DIV + col0 AS col1 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-4752
SELECT DISTINCT cor0.col0 / + col0 AS col1 FROM tab0 AS cor0
----
1

query I rowsort
SELECT + 86 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 2d8c3a0d19ea51447f83cd18b49fee19

query I rowsort
SELECT - col2 + + tab0.col0 FROM tab0
----
-9
34
7

query I rowsort
SELECT DISTINCT 5 FROM tab1, tab1 cor0, tab0 AS cor1
----
5

query I rowsort
SELECT - col2 * + 21 FROM tab2 AS cor0
----
-546
-567
-798

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 4 * - cor0.col2 col2 FROM tab0 AS cor0
----
-132
-328
-4

query I rowsort
SELECT DISTINCT + ( + 10 ) * col0 + - ( + ( - col0 ) + 66 ) AS col1 FROM tab0 AS cor0
----
198
319
913

query I rowsort
SELECT DISTINCT col1 * col1 + + col1 * cor0.col1 * 0 FROM tab1 cor0
----
100
169
676

query I rowsort
SELECT - col0 * - ( - col1 ) FROM tab0 AS cor0
----
-2064
-3395
-8099

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4761
SELECT ALL + + CAST( NULL AS SIGNED ) + col1 * - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4761
SELECT ALL + + CAST ( NULL AS INTEGER ) + col1 * - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT cor0.col1 * 12 AS col2 FROM tab0 AS cor0
----
1032
1092
1164

query I rowsort
SELECT col0 * - 7 FROM tab2 AS cor0
----
-49
-546
-553

query I rowsort
SELECT DISTINCT - ( col0 ) * col0 - 64 FROM tab0 AS cor0
----
-1289
-640
-7985

query I rowsort
SELECT ALL + col1 * + col1 * col1 + - 94 * col2 FROM tab0 AS cor0
----
632954
745863
912579

query I rowsort
SELECT ALL 38 + - col2 * col1 AS col1 FROM tab1 AS cor0
----
-1210
-1366
-532

query I rowsort
SELECT DISTINCT + ( col2 ) + col0 + cor0.col2 FROM tab1 AS cor0
----
111
178
272

query I rowsort
SELECT ALL + + col1 - + col1 FROM tab2 cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 1 + col0 col0 FROM tab1 AS cor0
----
4
65
81

query I rowsort
SELECT DISTINCT + ( + cor0.col2 ) AS col2 FROM tab0 AS cor0
----
1
33
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab0.col2 + 9 col1 FROM tab0
----
-24
-73
8

query I rowsort
SELECT col1 * + ( + col2 ) + - col1 AS col1 FROM tab2
----
1475
629
806

query I rowsort
SELECT DISTINCT - + 41 * - 54 FROM tab1 cor0
----
2214

query I rowsort
SELECT + 70 * 39 AS col0 FROM tab1 AS cor0
----
2730
2730
2730

query I rowsort
SELECT ALL + 74 * col2 AS col2 FROM tab0 AS cor0
----
2442
6068
74

onlyif mysql # use DIV operator for integer division
query I rowsort label-4776
SELECT ALL 16 DIV + 95 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4776
SELECT ALL 16 / + 95 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-4777
SELECT DISTINCT - col1 DIV - tab0.col1 AS col1 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-4777
SELECT DISTINCT - col1 / - tab0.col1 AS col1 FROM tab0
----
1

query I rowsort
SELECT DISTINCT - 40 * col2 FROM tab2 AS cor0
----
-1040
-1080
-1520

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab0 AS cor0, tab1 AS cor1, tab2 cor2
----
972 values hashing to 49c8bf3e931a898ba7af63d0e377eb79

query I rowsort
SELECT DISTINCT + + cor0.col1 * cor0.col1 AS col2 FROM tab2 cor0
----
289
3481
961

query I rowsort
SELECT DISTINCT + cor0.col0 AS col2 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
3
64
80

query I rowsort
SELECT ALL + 24 FROM tab1, tab2 AS cor0, tab1 AS cor1, tab0 AS cor2
----
81 values hashing to dfdfceb3acab6f866df9d676c07043ad

query I rowsort
SELECT + 79 + + 17 FROM tab0 AS cor0
----
96
96
96

query I rowsort
SELECT - cor0.col2 * + 6 FROM tab2 AS cor0
----
-156
-162
-228

query I rowsort
SELECT - 37 * + col0 AS col2 FROM tab2 AS cor0
----
-259
-2886
-2923

query I rowsort
SELECT cor0.col2 + col2 * - col0 FROM tab0 AS cor0
----
-34
-7216
-759

query I rowsort
SELECT + + 76 + col1 * + cor0.col1 * col2 FROM tab1 AS cor0
----
16300
36580
5776

query I rowsort
SELECT DISTINCT 0 FROM tab1, tab2 AS cor0
----
0

query I rowsort
SELECT 78 AS col1 FROM tab2
----
78
78
78

query I rowsort
SELECT + 89 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 5c8428e9f1e7de3d09cb0814b4cc1743

onlyif mysql # use DIV operator for integer division
query I rowsort label-4791
SELECT ALL + col2 DIV ( + col0 ) + - col2 AS col2 FROM tab1 AS cor0
----
-36
-57
-95

skipif mysql # not compatible
query I rowsort label-4791
SELECT ALL + col2 / ( + col0 ) + - col2 AS col2 FROM tab1 AS cor0
----
-36
-57
-95

query I rowsort
SELECT - col0 + ( + col0 ) FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT col2 + ( - col2 * + cor0.col0 ) AS col0 FROM tab2 AS cor0
----
-162
-2002
-2964

query I rowsort
SELECT DISTINCT col0 + - 47 AS col1 FROM tab0 AS cor0
----
-12
-23
42

query I rowsort
SELECT ALL + col1 + - col2 * col0 FROM tab1 AS cor0
----
-136
-3638
-7667

query I rowsort
SELECT ALL + col0 * + col0 * - col0 FROM tab2 AS cor0
----
-343
-474552
-493039

query I rowsort
SELECT - col1 + 82 + col2 AS col2 FROM tab1 AS cor0
----
110
129
165

query I rowsort
SELECT DISTINCT + + col0 * col2 + 23 FROM tab2 cor0
----
2051
212
3025

onlyif mysql # use DIV operator for integer division
query I rowsort label-4799
SELECT DISTINCT - col1 * ( col0 ) DIV col0 FROM tab1 AS cor0
----
-10
-13
-26

skipif mysql # not compatible
query I rowsort label-4799
SELECT DISTINCT - col1 * ( col0 ) / col0 FROM tab1 AS cor0
----
-10
-13
-26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 * - 45 + - col0 * col1 col2 FROM tab2 AS cor0
----
-1092
2212
98

query I rowsort
SELECT ALL + + col1 + + 15 * col0 FROM tab1 AS cor0
----
1213
71
970

query I rowsort
SELECT - + col2 + 18 * + cor0.col1 + col2 * + col1 AS col2 FROM tab1 AS cor0
----
1386
1818
693

query I rowsort
SELECT ALL col2 + + col0 * 48 AS col0 FROM tab0
----
1185
1681
4354

query I rowsort
SELECT + - col2 + + 22 AS col0 FROM tab1 AS cor0
----
-32
-35
-74

query I rowsort
SELECT col0 + col0 * - 50 FROM tab2
----
-343
-3822
-3871

query I rowsort
SELECT ALL cor0.col0 * col2 - col2 * col2 AS col0 FROM tab2 AS cor0
----
-540
1352
1558

query I rowsort
SELECT + - col0 * col0 + col2 + cor0.col0 FROM tab0 AS cor0
----
-1189
-519
-7750

query I rowsort
SELECT + col0 + + col0 + 78 FROM tab1 AS cor0
----
206
238
84

query I rowsort
SELECT + col0 * + col1 + ( + ( + col0 ) + - col2 ) FROM tab0 AS cor0
----
2055
3429
8106

query I rowsort
SELECT + ( - col1 ) + + col0 * ( - col0 * - 2 ) FROM tab1 AS cor0
----
-8
12787
8182

query I rowsort
SELECT - + cor0.col0 - col0 AS col1 FROM tab0 AS cor0
----
-178
-48
-70

query I rowsort
SELECT 78 * - col0 + 83 AS col2 FROM tab1 AS cor0
----
-151
-4909
-6157

query I rowsort
SELECT col2 - + col0 * + ( + 23 + - col2 ) AS col2 FROM tab0 AS cor0
----
-769
273
5333

onlyif mysql # use DIV operator for integer division
query I rowsort label-4814
SELECT - + col1 DIV 24 + - ( - cor0.col2 ) AS col1 FROM tab0 AS cor0
----
-3
30
79

skipif mysql # not compatible
query I rowsort label-4814
SELECT - + col1 / 24 + - ( - cor0.col2 ) AS col1 FROM tab0 AS cor0
----
-3
30
79

query I rowsort
SELECT DISTINCT 77 * col0 AS col2 FROM tab1 AS cor0
----
231
4928
6160

query I rowsort
SELECT - - col0 + + cor0.col2 * + col0 FROM tab2 AS cor0
----
196
2106
3081

query I rowsort
SELECT DISTINCT 3 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
3

query I rowsort
SELECT DISTINCT cor0.col0 AS col1 FROM tab1, tab2 AS cor0, tab2 cor1
----
7
78
79

query I rowsort
SELECT DISTINCT + ( tab1.col1 ) AS col0 FROM tab1
----
10
13
26

onlyif mysql # use DIV operator for integer division
query I rowsort label-4820
SELECT 52 DIV ( col0 ) AS col0 FROM tab0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-4820
SELECT 52 / ( col0 ) AS col0 FROM tab0
----
0
1
2

query I rowsort
SELECT 50 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to dea2d1b74e0cdf67806af8c417324f52

onlyif mysql # use DIV operator for integer division
query I rowsort label-4822
SELECT - col2 DIV - ( tab1.col2 ) FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4822
SELECT - col2 / - ( tab1.col2 ) FROM tab1
----
1
1
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-4823
SELECT DISTINCT 88 + + col0 DIV - col0 FROM tab1
----
87

skipif mysql # not compatible
query I rowsort label-4823
SELECT DISTINCT 88 + + col0 / - col0 FROM tab1
----
87

query I rowsort
SELECT - 37 * tab0.col0 FROM tab0
----
-1295
-3293
-888

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab1 cor0, tab1 AS cor1, tab0 AS cor2
----
972 values hashing to 909b7ebab62aff8f69dc42ccbb5c2eae

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4826
SELECT + + CAST( + col1 AS SIGNED ) - + cor0.col1 AS col2 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4826
SELECT + + CAST ( + col1 AS INTEGER ) - + cor0.col1 AS col2 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT ALL - col1 + col2 + col1 * + col1 AS col2 FROM tab0 AS cor0
----
7343
8272
9313

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4828
SELECT DISTINCT + CAST( NULL AS SIGNED ) - col1 * + col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4828
SELECT DISTINCT + CAST ( NULL AS INTEGER ) - col1 * + col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT col1 * 73 + col1 FROM tab1 AS cor0
----
1924
740
962

query I rowsort
SELECT ALL - ( 9 ) FROM tab2
----
-9
-9
-9

query I rowsort
SELECT ALL - 94 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to a95bfa539191d3f72f6548147d7efb9e

query I rowsort
SELECT ALL cor0.col2 * - col1 * + 86 AS col0 FROM tab2 AS cor0
----
-131924
-55556
-71982

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + col1 col2 FROM tab2 AS cor0
----
-19
-62
24

query I rowsort
SELECT ALL - ( ( - col0 ) ) * + col1 * col1 AS col2 FROM tab2
----
22831
271518
6727

query I rowsort
SELECT ALL + tab1.col0 AS col2 FROM tab1, tab1 cor0
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4836
SELECT ALL - tab0.col1 * col0 + + CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4836
SELECT ALL - tab0.col1 * col0 + + CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 36 - col1 AS col2 FROM tab2
----
-23
19
5

query I rowsort
SELECT tab0.col0 + + col2 + col1 FROM tab0
----
133
143
262

query I rowsort
SELECT DISTINCT - - col2 * col0 AS col1 FROM tab2 cor0
----
189
2028
3002

query I rowsort
SELECT DISTINCT + + 35 - - col0 FROM tab1 AS cor0
----
115
38
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 - col1 * ( col0 ) * col2 col1 FROM tab2 AS cor0
----
-119626
-50996
-5832

query I rowsort
SELECT col1 - - col1 * ( col2 ) FROM tab2 AS cor0
----
1593
663
868

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4843
SELECT ALL col1 + CAST( + col2 * - col2 AS SIGNED ) FROM tab2
----
-1427
-617
-698

skipif mysql # not compatible
query I rowsort label-4843
SELECT ALL col1 + CAST ( + col2 * - col2 AS INTEGER ) FROM tab2
----
-1427
-617
-698

onlyif mysql # use DIV operator for integer division
query I rowsort label-4844
SELECT + + col1 DIV + 21 FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-4844
SELECT + + col1 / + 21 FROM tab1 AS cor0
----
0
0
1

query I rowsort
SELECT - + col0 * ( + col2 ) FROM tab2 AS cor0
----
-189
-2028
-3002

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 0 + + 33 * col1 col0 FROM tab0 AS cor0
----
2838
3003
3201

query I rowsort
SELECT DISTINCT cor0.col2 + 64 AS col2 FROM tab0 AS cor0
----
146
65
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-4848
SELECT - - col2 + + col1 DIV + col1 FROM tab1 AS cor0
----
55
58
97

skipif mysql # not compatible
query I rowsort label-4848
SELECT - - col2 + + col1 / + col1 FROM tab1 AS cor0
----
55
58
97

query I rowsort
SELECT ALL col1 * - col1 * + 38 + col0 FROM tab1 AS cor0
----
-25685
-3736
-6342

onlyif mysql # use DIV operator for integer division
query I rowsort label-4850
SELECT DISTINCT - col2 DIV - 76 AS col1 FROM tab0 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-4850
SELECT DISTINCT - col2 / - 76 AS col1 FROM tab0 AS cor0
----
0
1

query I rowsort
SELECT DISTINCT + col1 + + col1 * + col2 AS col1 FROM tab0 AS cor0
----
194
2924
7553

query I rowsort
SELECT DISTINCT - col1 * + col2 + col1 FROM tab1 AS cor0
----
-1235
-1378
-560

query I rowsort
SELECT ALL col0 + ( col2 ) FROM tab1 AS cor0
----
121
176
57

query I rowsort
SELECT ALL cor0.col2 * cor0.col0 + + 1 FROM tab0 AS cor0
----
36
7299
793

skipif mysql # not compatible
query I rowsort
SELECT ALL + col1 - - CAST ( col1 AS REAL ) FROM tab0 AS cor0
----
172
182
194

query I rowsort
SELECT - col2 * col1 * col1 + tab2.col2 * - col1 + + col0 AS col1 FROM tab2
----
-11549
-26777
-91962

query I rowsort
SELECT + + 83 + + col0 + - col2 FROM tab0 AS cor0
----
117
74
90

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4858
SELECT col1 / + CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4858
SELECT col1 / + CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT + tab2.col2 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5

query I rowsort
SELECT + 42 FROM tab0, tab0 cor0, tab2 AS cor1
----
27 values hashing to 325aada2239b6fe1fe2d843515ae8c5e

query I rowsort
SELECT DISTINCT + col2 * 61 + - col2 AS col1 FROM tab1 AS cor0
----
3240
3420
5760

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4862
SELECT ALL - col2 * CAST( NULL AS SIGNED ) - col2 * col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4862
SELECT ALL - col2 * CAST ( NULL AS INTEGER ) - col2 * col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + - col1 * - col0 * - ( cor0.col0 ) - + 38 FROM tab1 AS cor0
----
-272
-40998
-83238

query I rowsort
SELECT ( + col2 ) * + col1 AS col1 FROM tab1
----
1248
1404
570

query I rowsort
SELECT ALL - col2 * col0 + - col2 * col0 AS col2 FROM tab0
----
-14596
-1584
-70

query I rowsort
SELECT ALL col2 + tab1.col0 * - col1 AS col1 FROM tab1
----
-24
-583
-944

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4867
SELECT DISTINCT + 21 + - col1 + CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4867
SELECT DISTINCT + 21 + - col1 + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL col2 * + col2 - col0 FROM tab1 AS cor0
----
2913
3185
9136

query I rowsort
SELECT ALL - 9 * + col0 * ( ( col2 ) ) + col1 AS col0 FROM tab0 AS cor0
----
-218
-65591
-7042

query I rowsort
SELECT - 49 + col1 AS col0 FROM tab1 AS cor0
----
-23
-36
-39

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 43 + - 44 col0 FROM tab1
----
-1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4872
SELECT + CAST( col2 AS SIGNED ) AS col1 FROM tab0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-4872
SELECT + CAST ( col2 AS INTEGER ) AS col1 FROM tab0
----
1
33
82

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4873
SELECT ( - col0 ) + col1 + + CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4873
SELECT ( - col0 ) + col1 + + CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 2 col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 84dbfaf9bc17dd097f15bc36b4186261

query I rowsort
SELECT 84 * 31 FROM tab0
----
2604
2604
2604

query I rowsort
SELECT + 62 AS col0 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 4911b1417a3797d23dd8f38b6ed05c1b

query I rowsort
SELECT col2 * - col1 * col1 FROM tab0 AS cor0
----
-244068
-679042
-9409

query I rowsort
SELECT DISTINCT 7 AS col1 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
7

query I rowsort
SELECT ALL - ( + col0 ) * col0 FROM tab2 cor0
----
-49
-6084
-6241

query I rowsort
SELECT ( + col0 ) AS col0 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT - - 64 + cor0.col2 AS col1 FROM tab0 AS cor0
----
146
65
97

query I rowsort
SELECT + 86 * + cor0.col0 + - cor0.col1 * - 41 + col1 AS col2 FROM tab0 AS cor0
----
11476
5676
7084

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4883
SELECT ALL - 2 * col2 - - CAST( + col0 + - col1 AS SIGNED ) FROM tab0 AS cor0
----
-128
-166
-64

skipif mysql # not compatible
query I rowsort label-4883
SELECT ALL - 2 * col2 - - CAST ( + col0 + - col1 AS INTEGER ) FROM tab0 AS cor0
----
-128
-166
-64

query I rowsort
SELECT DISTINCT + + 82 * col0 + ( + 38 ) * cor0.col0 * col1 AS col2 FROM tab0 AS cor0
----
131880
315060
80400

query I rowsort
SELECT DISTINCT - cor0.col1 + + col2 * + col1 AS col0 FROM tab1 AS cor0
----
1235
1378
560

query I rowsort
SELECT - - col1 * + col2 * - col2 AS col0 FROM tab2 AS cor0
----
-22599
-24548
-39884

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * col0 col1 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT ALL tab0.col0 AS col2 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd

query I rowsort
SELECT - col2 * col2 + + col1 AS col0 FROM tab2
----
-1427
-617
-698

query I rowsort
SELECT 66 AS col1 FROM tab0
----
66
66
66

query I rowsort
SELECT DISTINCT + 95 AS col1 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * - col0 col2 FROM tab0
----
-1225
-576
-7921

query I rowsort
SELECT DISTINCT - ( + tab1.col2 ) * - 80 AS col1 FROM tab1
----
4320
4560
7680

query I rowsort
SELECT + + ( - col2 ) + - col2 AS col0 FROM tab2 AS cor0
----
-52
-54
-76

query I rowsort
SELECT ALL + - col1 + - col1 AS col2 FROM tab2 AS cor0
----
-118
-34
-62

query I rowsort
SELECT - 14 AS col2 FROM tab1, tab1 cor0, tab0 cor1, tab0 AS cor2
----
81 values hashing to a58fbac92f43bc63036f08d7bd355007

query I rowsort
SELECT - + col2 * - 89 FROM tab1 AS cor0
----
4806
5073
8544

query I rowsort
SELECT DISTINCT - cor0.col0 * ( 59 ) AS col0 FROM tab0 AS cor0
----
-1416
-2065
-5251

query I rowsort
SELECT ALL col2 * cor0.col2 + + col0 FROM tab1 AS cor0
----
2919
3313
9296

query I rowsort
SELECT DISTINCT + cor0.col2 + + ( cor0.col0 ) * - col0 * 66 AS col2 FROM tab2 AS cor0
----
-3207
-401518
-411868

query I rowsort
SELECT - + col1 * + ( col2 ) FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT ALL - col0 * - col1 + col0 - - col1 AS col2 FROM tab0 AS cor0
----
2174
3527
8279

query I rowsort
SELECT - - col2 + ( col1 ) * col1 FROM tab0 AS cor0
----
7429
8363
9410

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4904
SELECT ALL + col0 - + CAST( col0 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4904
SELECT ALL + col0 - + CAST ( col0 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT + - ( col0 ) - + col2 * - 30 AS col0 FROM tab1 cor0
----
1617
1646
2800

query I rowsort
SELECT 82 + col2 * col2 AS col0 FROM tab1 AS cor0
----
2998
3331
9298

query I rowsort
SELECT ALL - 35 * - 87 AS col0 FROM tab1 AS cor0
----
3045
3045
3045

query I rowsort
SELECT DISTINCT - - 22 + + 76 AS col1 FROM tab0 AS cor0
----
98

query I rowsort
SELECT DISTINCT col0 * - 74 FROM tab2 AS cor0
----
-518
-5772
-5846

query I rowsort
SELECT DISTINCT - col0 + - 67 AS col1 FROM tab0 AS cor0
----
-102
-156
-91

query I rowsort
SELECT DISTINCT 67 FROM tab1 cor0
----
67

query I rowsort
SELECT + col2 - - 54 FROM tab0 AS cor0
----
136
55
87

query I rowsort
SELECT ALL + + 7 - 79 AS col0 FROM tab1 AS cor0
----
-72
-72
-72

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * col2 + - cor0.col0 col2 FROM tab2 AS cor0
----
-1523
-736
-754

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4915
SELECT - CAST( - col1 AS SIGNED ) * - col0 - - col1 FROM tab2 AS cor0
----
-1326
-186
-4543

skipif mysql # not compatible
query I rowsort label-4915
SELECT - CAST ( - col1 AS INTEGER ) * - col0 - - col1 FROM tab2 AS cor0
----
-1326
-186
-4543

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( + col0 ) * col1 + 62 col2 FROM tab0 AS cor0
----
-2002
-3333
-8037

onlyif mysql # use DIV operator for integer division
query I rowsort label-4917
SELECT ALL - - 71 + - cor0.col0 DIV col0 FROM tab2 AS cor0
----
70
70
70

skipif mysql # not compatible
query I rowsort label-4917
SELECT ALL - - 71 + - cor0.col0 / col0 FROM tab2 AS cor0
----
70
70
70

query I rowsort
SELECT cor0.col2 * + col2 * cor0.col0 + col0 AS col0 FROM tab1 AS cor0
----
208000
737360
8751

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4919
SELECT ALL + CAST( NULL AS SIGNED ) * col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4919
SELECT ALL + CAST ( NULL AS INTEGER ) * col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4920
SELECT DISTINCT - - CAST( NULL AS SIGNED ) + ( - col0 ) * CAST( 86 AS SIGNED ) AS col1 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4920
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) + ( - col0 ) * CAST ( 86 AS INTEGER ) AS col1 FROM tab1 cor0
----
NULL

query I rowsort
SELECT - 86 + col2 * + col2 FROM tab1 cor0
----
2830
3163
9130

query I rowsort
SELECT - + ( + col2 ) * - col2 * - 43 FROM tab1 cor0
----
-125388
-139707
-396288

query I rowsort
SELECT - tab2.col2 * + tab2.col1 AS col2 FROM tab2
----
-1534
-646
-837

query I rowsort
SELECT - col1 * - tab2.col2 + - tab2.col0 * col0 FROM tab2
----
-4550
-5595
788

query I rowsort
SELECT 83 AS col0 FROM tab0
----
83
83
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 50 * col2 col2 FROM tab0
----
1650
4100
50

query I rowsort
SELECT + tab0.col1 * col1 AS col2 FROM tab0
----
7396
8281
9409

onlyif mysql # use DIV operator for integer division
query I rowsort label-4928
SELECT + + col2 DIV 50 col0 FROM tab0 AS cor0
----
0
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4928
SELECT + + col2 / 50 col0 FROM tab0 AS cor0
----
0
0
1

query I rowsort
SELECT DISTINCT - - 41 FROM tab1, tab2, tab1 AS cor0
----
41

query I rowsort
SELECT + + col2 + col0 * col2 AS col1 FROM tab0 cor0
----
36
7380
825

query I rowsort
SELECT + col1 + col1 * 7 * - col2 AS col1 FROM tab2 AS cor0
----
-10679
-4505
-5828

query I rowsort
SELECT 16 + col0 FROM tab2 AS cor0
----
23
94
95

query I rowsort
SELECT - - col2 * - col1 + col1 AS col2 FROM tab1 AS cor0
----
-1235
-1378
-560

query I rowsort
SELECT 98 * + col2 - ( + col1 ) AS col1 FROM tab2 AS cor0
----
2489
2615
3707

query I rowsort
SELECT ALL 55 * + col0 * col0 + col2 * 68 FROM tab0
----
33924
441231
67443

query I rowsort
SELECT ALL 63 + - col0 AS col2 FROM tab0
----
-26
28
39

query I rowsort
SELECT - - ( - col2 ) AS col1 FROM tab1 AS cor0
----
-54
-57
-96

query I rowsort
SELECT DISTINCT + + 45 * col1 AS col0 FROM tab1 cor0
----
1170
450
585

query I rowsort
SELECT ALL - 66 * col0 FROM tab0 AS cor0
----
-1584
-2310
-5874

query I rowsort
SELECT ALL ( - 20 ) AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to f1cccb95c90889319e7a51e4ae9475bb

query I rowsort
SELECT - - col1 + 63 AS col2 FROM tab0 cor0
----
149
154
160

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4942
SELECT - + col1 * + CAST( + col1 AS SIGNED ) + + col0 FROM tab1 AS cor0
----
-36
-673
-89

skipif mysql # not compatible
query I rowsort label-4942
SELECT - + col1 * + CAST ( + col1 AS INTEGER ) + + col0 FROM tab1 AS cor0
----
-36
-673
-89

onlyif mysql # use DIV operator for integer division
query I rowsort label-4943
SELECT + + col1 DIV 17 col0 FROM tab0 AS cor0
----
5
5
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4943
SELECT + + col1 / 17 col0 FROM tab0 AS cor0
----
5
5
5

query I rowsort
SELECT col2 * - 79 + - col1 AS col2 FROM tab1 AS cor0
----
-4292
-4513
-7597

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4945
SELECT - CAST( col1 AS SIGNED ) * + col2 FROM tab2 AS cor0
----
-1534
-646
-837

skipif mysql # not compatible
query I rowsort label-4945
SELECT - CAST ( col1 AS INTEGER ) * + col2 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT + cor0.col2 + - cor0.col0 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 3b143560120db39ddcee311b43b28291

query I rowsort
SELECT DISTINCT - ( cor0.col1 ) AS col0 FROM tab0, tab2 cor0
----
-17
-31
-59

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4948
SELECT ALL + CAST( NULL AS SIGNED ) * - cor0.col1 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2, tab2 AS cor1, tab2 AS cor2
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c

skipif mysql # not compatible
query I rowsort label-4948
SELECT ALL + CAST ( NULL AS INTEGER ) * - cor0.col1 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2, tab2 AS cor1, tab2 AS cor2
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c

query IIIIIIIIIIII rowsort
SELECT * FROM tab0 cor0 CROSS JOIN tab1, tab0 AS cor1, tab1 AS cor2
----
972 values hashing to 0a9194f200a4220e419d35c461f9fcfe

query I rowsort
SELECT - 54 AS col2 FROM tab1, tab2 cor0
----
9 values hashing to 4ecdb0f1b85f0d4fdc3a826efd9f2342

query I rowsort
SELECT DISTINCT + + 40 + + col2 AS col2 FROM tab1 AS cor0
----
136
94
97

query I rowsort
SELECT DISTINCT - col1 + cor0.col0 AS col0 FROM tab2 AS cor0
----
-24
19
62

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4953
SELECT ALL - CAST( NULL AS DECIMAL ) * col0 * + cor0.col1 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4953
SELECT ALL - CAST ( NULL AS REAL ) * col0 * + cor0.col1 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col0 * - cor0.col2 AS col2 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT ALL - - 50 * 46 AS col1 FROM tab0 AS cor0
----
2300
2300
2300

query I rowsort
SELECT DISTINCT ( cor0.col1 ) * - col1 + - ( + col0 ) AS col1 FROM tab1 AS cor0
----
-164
-249
-679

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - ( col2 ) col2 FROM tab1 cor0
----
-54
-57
-96

query I rowsort
SELECT DISTINCT - 26 AS col2 FROM tab2 AS cor0
----
-26

query I rowsort
SELECT + 33 * col2 AS col2 FROM tab2 AS cor0
----
1254
858
891

query I rowsort
SELECT ALL - col0 + 1 FROM tab2 AS cor0
----
-6
-77
-78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * col1 + - col0 col2 FROM tab1 AS cor0
----
576
75
960

query I rowsort
SELECT DISTINCT col2 + col2 + col1 AS col0 FROM tab1 AS cor0
----
124
134
205

query I rowsort
SELECT DISTINCT + col2 * + 82 * col0 FROM tab0 cor0
----
2870
598436
64944

query I rowsort
SELECT DISTINCT - col1 + + col1 + + col1 AS col0 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT - 19 + col1 * col1 AS col1 FROM tab2 AS cor0
----
270
3462
942

query I rowsort
SELECT ( + cor0.col1 ) + + col0 * ( + 40 ) FROM tab2 cor0
----
311
3177
3179

onlyif mysql # use DIV operator for integer division
query I rowsort label-4967
SELECT ALL - - col0 DIV - 97 AS col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4967
SELECT ALL - - col0 / - 97 AS col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - + cor0.col0 + 61 AS col2 FROM tab1 AS cor0
----
-19
-3
58

query I rowsort
SELECT DISTINCT + col0 + col0 - col1 FROM tab2
----
-17
141
97

query I rowsort
SELECT ALL col0 + - ( col2 + col0 ) AS col1 FROM tab1
----
-54
-57
-96

query I rowsort
SELECT tab0.col2 + - col2 * tab0.col1 FROM tab0
----
-2805
-7380
-96

query I rowsort
SELECT ALL col2 + + 86 FROM tab1 cor0
----
140
143
182

query I rowsort
SELECT - col2 * - 62 AS col0 FROM tab1 AS cor0
----
3348
3534
5952

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + col2 * cor0.col0 col2 FROM tab0 cor0
----
36
7380
825

query I rowsort
SELECT ALL - col2 + + col0 * + col1 FROM tab2 AS cor0
----
1305
190
4576

query I rowsort
SELECT DISTINCT col2 + + col1 AS col2 FROM tab1 AS cor0 WHERE NOT NULL = NULL OR - col0 + - col1 + + col2 BETWEEN NULL AND NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-4977
SELECT col1 DIV - col1 + - col0 + col2 col2 FROM tab0 AS cor0
----
-35
-8
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4977
SELECT col1 / - col1 + - col0 + col2 col2 FROM tab0 AS cor0
----
-35
-8
8

query I rowsort
SELECT + col0 * cor0.col1 + col0 * col1 + col0 FROM tab2 AS cor0
----
2765
441
9282

onlyif mysql # use DIV operator for integer division
query I rowsort label-4979
SELECT ALL - col0 DIV - col2 AS col0 FROM tab0 cor0
----
0
1
35

skipif mysql # not compatible
query I rowsort label-4979
SELECT ALL - col0 / - col2 AS col0 FROM tab0 cor0
----
0
1
35

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 * col1 + + cor0.col1 + + col0 col1 FROM tab2 AS cor0
----
1671
742
875

query I rowsort
SELECT ALL - col2 - col2 AS col1 FROM tab1 cor0
----
-108
-114
-192

query I rowsort
SELECT + cor0.col0 FROM tab2 AS cor0 WHERE NULL BETWEEN NULL AND NULL
----

query I rowsort
SELECT col0 * col1 + - tab0.col2 AS col2 FROM tab0
----
2031
3394
8017

query I rowsort
SELECT ALL - col2 + col0 * + col1 AS col1 FROM tab2 AS cor0
----
1305
190
4576

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * + col0 col0 FROM tab2 AS cor0
----
189
2028
3002

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 * - col0 - col2 * + col2 col2 FROM tab0 AS cor0
----
-297
34
574

query I rowsort
SELECT DISTINCT + col1 - col1 * + col2 AS col1 FROM tab2 AS cor0
----
-1475
-629
-806

query I rowsort
SELECT DISTINCT - col0 * + col2 + + col2 FROM tab0 AS cor0
----
-34
-7216
-759

query I rowsort
SELECT DISTINCT cor0.col0 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
3
64
80

query I rowsort
SELECT ALL col1 + - col2 * + col2 AS col1 FROM tab2 AS cor0
----
-1427
-617
-698

query I rowsort
SELECT DISTINCT col0 + tab2.col2 * + tab2.col0 AS col0 FROM tab2
----
196
2106
3081

query I rowsort
SELECT ALL col2 * + col0 * + col0 + - col2 FROM tab2
----
1296
158158
237120

query I rowsort
SELECT ALL + col1 + - tab0.col1 AS col1 FROM tab0
----
0
0
0

query I rowsort
SELECT col0 * col1 * + tab2.col1 FROM tab2
----
22831
271518
6727

query I rowsort
SELECT ALL col1 * + col2 + - col1 * col2 AS col1 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT + - col2 * + col2 + col2 FROM tab0 AS cor0
----
-1056
-6642
0

query I rowsort
SELECT ALL + col1 * + tab2.col0 + + col0 * col2 FROM tab2
----
406
4345
6630

onlyif mysql # use DIV operator for integer division
query I rowsort label-4998
SELECT DISTINCT col0 + col0 DIV - col2 FROM tab0
----
0
24
88

skipif mysql # not compatible
query I rowsort label-4998
SELECT DISTINCT col0 + col0 / - col2 FROM tab0
----
0
24
88

query I rowsort
SELECT DISTINCT - col1 + - col1 * col1 FROM tab1
----
-110
-182
-702

query I rowsort
SELECT tab2.col1 * + col2 * col1 FROM tab2
----
10982
25947
90506

query I rowsort
SELECT ALL col1 * + col2 * col0 + col1 AS col2 FROM tab0
----
3492
664209
68198

query I rowsort
SELECT ALL col1 + tab0.col1 + + col0 FROM tab0
----
196
229
271

query I rowsort
SELECT DISTINCT col2 + + col0 + col0 FROM tab1
----
185
256
60

onlyif mysql # use DIV operator for integer division
query I rowsort label-5004
SELECT DISTINCT tab0.col1 + + col2 + - tab0.col1 DIV col1 AS col0 FROM tab0
----
118
172
97

skipif mysql # not compatible
query I rowsort label-5004
SELECT DISTINCT tab0.col1 + + col2 + - tab0.col1 / col1 AS col0 FROM tab0
----
118
172
97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5005
SELECT DISTINCT - CAST( NULL AS SIGNED ) AS col0 FROM tab2, tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5005
SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col0 FROM tab2, tab2 AS cor0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-5006
SELECT ALL - col0 DIV tab2.col1 + col1 FROM tab2
----
13
31
58

skipif mysql # not compatible
query I rowsort label-5006
SELECT ALL - col0 / tab2.col1 + col1 FROM tab2
----
13
31
58

query I rowsort
SELECT - col2 + - col1 * + col2 * col2 FROM tab0
----
-611966
-93687
-98

query I rowsort
SELECT col1 + col1 * + col2 FROM tab1
----
1261
1430
580

query I rowsort
SELECT DISTINCT col0 * - col2 + col0 * - col1 FROM tab0
----
-15397
-2856
-3430

onlyif mysql # use DIV operator for integer division
query I rowsort label-5010
SELECT col1 DIV - tab0.col2 + + col1 + col2 FROM tab0
----
1
117
172

skipif mysql # not compatible
query I rowsort label-5010
SELECT col1 / - tab0.col2 + + col1 + col2 FROM tab0
----
1
117
172

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - tab0.col1 * col2 col2 FROM tab0
----
-244068
-679042
-9409

onlyif mysql # use DIV operator for integer division
query I rowsort label-5012
SELECT DISTINCT tab2.col0 + col0 DIV col1 FROM tab2
----
7
79
83

skipif mysql # not compatible
query I rowsort label-5012
SELECT DISTINCT tab2.col0 + col0 / col1 FROM tab2
----
7
79
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 29 + col1 col1 FROM tab2
----
46
60
88

query I rowsort
SELECT 0 * + 57 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2

query I rowsort
SELECT ( tab0.col1 * + ( col1 ) ) FROM tab0
----
7396
8281
9409

query I rowsort
SELECT - 43 * - col0 + + col0 FROM tab1 AS cor0
----
132
2816
3520

onlyif mysql # use DIV operator for integer division
query I rowsort label-5017
SELECT DISTINCT + col0 + - col2 DIV col1 AS col0 FROM tab2 AS cor0
----
7
77
78

skipif mysql # not compatible
query I rowsort label-5017
SELECT DISTINCT + col0 + - col2 / col1 AS col0 FROM tab2 AS cor0
----
7
77
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + col2 * - ( - col1 + col2 ) col2 FROM tab2
----
-63042
66924
756

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab2.col1 * col0 + + col0 * + col1 col2 FROM tab2
----
2686
434
9204

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 - col1 col2 FROM tab1
----
-29
-74
-93

onlyif mysql # use DIV operator for integer division
query I rowsort label-5021
SELECT DISTINCT col1 - + col1 DIV col1 FROM tab2
----
16
30
58

skipif mysql # not compatible
query I rowsort label-5021
SELECT DISTINCT col1 - + col1 / col1 FROM tab2
----
16
30
58

query I rowsort
SELECT - col0 + tab2.col0 - - col1 AS col0 FROM tab2
----
17
31
59

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col0 + + col1 NOT IN ( + col0 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-5024
SELECT + tab0.col2 DIV tab0.col0 + + tab0.col1 FROM tab0
----
87
91
97

skipif mysql # not compatible
query I rowsort label-5024
SELECT + tab0.col2 / tab0.col0 + + tab0.col1 FROM tab0
----
87
91
97

query I rowsort
SELECT DISTINCT col0 + + col2 FROM tab1 WHERE NOT col2 IN ( col2 )
----

query I rowsort
SELECT col1 * col2 * col2 + + tab2.col0 FROM tab2
----
22606
24627
39962

onlyif mysql # use DIV operator for integer division
query I rowsort label-5027
SELECT ALL + col0 DIV col1 + - col0 FROM tab0
----
-24
-35
-89

skipif mysql # not compatible
query I rowsort label-5027
SELECT ALL + col0 / col1 + - col0 FROM tab0
----
-24
-35
-89

query I rowsort
SELECT ALL col1 * - col1 + + col1 FROM tab0
----
-7310
-8190
-9312

query III rowsort
SELECT * FROM tab1 WHERE NOT ( + col2 * col0 - col1 ) <> - col0
----

query I rowsort
SELECT - col0 * - col2 + - col2 FROM tab0 WHERE NOT ( NULL ) NOT IN ( col2 + col0 * col2 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-5031
SELECT ALL col2 + col0 + col2 DIV col0 AS col2 FROM tab1
----
121
177
75

skipif mysql # not compatible
query I rowsort label-5031
SELECT ALL col2 + col0 + col2 / col0 AS col2 FROM tab1
----
121
177
75

query I rowsort
SELECT DISTINCT col1 + + col0 AS col1 FROM tab1
----
29
74
93

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col0 NOT IN ( + tab2.col1 + col2 )
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45

onlyif mysql # use DIV operator for integer division
query I rowsort label-5034
SELECT ALL - col0 DIV - col2 + + col0 AS col1 FROM tab0
----
24
70
90

skipif mysql # not compatible
query I rowsort label-5034
SELECT ALL - col0 / - col2 + + col0 AS col1 FROM tab0
----
24
70
90

query I rowsort
SELECT ALL col1 + - col2 + tab1.col1 * + col2 AS col0 FROM tab1
----
1165
1376
523

query I rowsort
SELECT DISTINCT - col0 + col2 * + 9 FROM tab0 AS cor0
----
-26
273
649

query I rowsort
SELECT DISTINCT 15 AS col1 FROM tab0
----
15

query I rowsort
SELECT 47 FROM tab1, tab0 AS cor0 CROSS JOIN tab2, tab0, tab1 AS cor1
----
243 values hashing to 79962577c0add9c47b55da7472585e96

query I rowsort
SELECT - col0 * col0 + + col2 + - 51 AS col1 FROM tab0 AS cor0
----
-1275
-594
-7890

query I rowsort
SELECT - + col2 + ( - col2 ) * 83 FROM tab2 AS cor0
----
-2184
-2268
-3192

query I rowsort
SELECT 93 + + 8 * + col1 + col2 FROM tab2 AS cor0
----
267
368
591

query I rowsort
SELECT - - 97 * - col2 + + col1 FROM tab0 AS cor0
----
-3115
-7863
0

query I rowsort
SELECT + + ( 12 ) + cor0.col1 + 15 FROM tab2 AS cor0
----
44
58
86

query I rowsort
SELECT - + col0 + + col2 * ( + col2 ) FROM tab0 AS cor0
----
-34
1065
6635

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + cor0.col2 + - col2 col1 FROM tab2 AS cor0
----
-52
-54
-76

query I rowsort
SELECT - col2 * - col1 * ( col2 ) FROM tab0 AS cor0
----
611884
93654
97

query I rowsort
SELECT + 63 + - col1 + col2 * - 78 AS col1 FROM tab0 cor0
----
-112
-2597
-6424

query I rowsort
SELECT - ( - cor0.col2 ) + col1 FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT DISTINCT - 1 + col0 + + ( col2 ) FROM tab2 AS cor0
----
103
116
33

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col1 + col0 * + col2 col2 FROM tab1 AS cor0
----
188
3658
7693

query I rowsort
SELECT + col2 * col1 * - 61 + col0 * col0 FROM tab2 AS cor0
----
-33165
-51008
-87490

onlyif mysql # use DIV operator for integer division
query I rowsort label-5052
SELECT ALL - cor0.col1 * col2 - + col0 * + col0 DIV - col0 FROM tab2 AS cor0
----
-1456
-567
-830

skipif mysql # not compatible
query I rowsort label-5052
SELECT ALL - cor0.col1 * col2 - + col0 * + col0 / - col0 FROM tab2 AS cor0
----
-1456
-567
-830

query I rowsort
SELECT + ( col2 ) * + 73 + - cor0.col2 * - col2 AS col1 FROM tab2 AS cor0
----
2574
2700
4218

query I rowsort
SELECT DISTINCT + col1 * col0 + - col1 AS col2 FROM tab1 AS cor0
----
1027
52
630

query I rowsort
SELECT DISTINCT + - ( - col1 ) * + col2 + - col2 * + cor0.col1 * ( col0 ) AS col0 FROM tab1 AS cor0
----
-2808
-35910
-98592

query I rowsort
SELECT ALL - col2 * - 91 + col1 FROM tab2 AS cor0
----
2425
2488
3475

query I rowsort
SELECT 98 + - tab2.col2 FROM tab2
----
60
71
72

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 67 * + tab0.col2 col2 FROM tab0
----
2211
5494
67

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5059
SELECT DISTINCT + + CAST( col2 AS SIGNED ) * - col1 AS col2 FROM tab0 AS cor0
----
-2838
-7462
-97

skipif mysql # not compatible
query I rowsort label-5059
SELECT DISTINCT + + CAST ( col2 AS INTEGER ) * - col1 AS col2 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT + 62 AS col0 FROM tab2 AS cor0
----
62
62
62

query I rowsort
SELECT DISTINCT 62 * + 67 + col0 * cor0.col0 FROM tab1 AS cor0
----
10554
4163
8250

onlyif mysql # use DIV operator for integer division
query I rowsort label-5062
SELECT DISTINCT + ( col1 ) DIV col2 FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-5062
SELECT DISTINCT + ( col1 ) / col2 FROM tab1 cor0
----
0

query I rowsort
SELECT - - col2 - - col1 AS col0 FROM tab0 AS cor0
----
119
173
98

query I rowsort
SELECT cor1.col1 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd

query I rowsort
SELECT DISTINCT 47 FROM tab1 cor0 CROSS JOIN tab1, tab1 cor1, tab1 AS cor2
----
47

query I rowsort
SELECT DISTINCT + col1 + 74 * - cor0.col1 AS col2 FROM tab0 AS cor0
----
-6278
-6643
-7081

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 94 * col2 col0 FROM tab2
----
-2444
-2538
-3572

query I rowsort
SELECT - ( + col1 ) * - col1 FROM tab2
----
289
3481
961

query I rowsort
SELECT DISTINCT ( - 31 * + col2 ) FROM tab0
----
-1023
-2542
-31

query I rowsort
SELECT - 0 * col0 + col2 FROM tab0
----
1
33
82

query I rowsort
SELECT 81 FROM tab2, tab1 AS cor0
----
9 values hashing to 7a8ea30c6803aeddc5fca5b5821d8267

query I rowsort
SELECT - ( - 8 ) * - col2 AS col0 FROM tab1
----
-432
-456
-768

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5073
SELECT CAST( NULL AS SIGNED ) * - tab2.col1 * + col1 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5073
SELECT CAST ( NULL AS INTEGER ) * - tab2.col1 * + col1 AS col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT + + 62 * + col1 + - col0 AS col0 FROM tab0 AS cor0
----
5308
5553
5979

query I rowsort
SELECT col2 * - 65 AS col1 FROM tab2 AS cor0
----
-1690
-1755
-2470

query I rowsort
SELECT 48 FROM tab0, tab2 AS cor0
----
9 values hashing to 8b09cc2c99c2102036162d063e0e5a4b

query I rowsort
SELECT ALL - col2 * - 96 * - col2 - ( - col1 ) * col0 FROM tab1
----
-279858
-311264
-883696

query I rowsort
SELECT ALL col1 - 86 * col0 * + 24 FROM tab1
----
-132086
-165107
-6166

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab2, tab0 cor1, tab1 AS cor2
----
972 values hashing to 0210050fb1701e2797a9b17e1ebac91e

query I rowsort
SELECT DISTINCT + - col2 * ( cor0.col0 ) AS col0 FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT ALL + col0 * + ( col2 ) FROM tab1 cor0
----
162
3648
7680

query I rowsort
SELECT DISTINCT - col2 * + ( + ( col2 ) ) + col0 FROM tab0 AS cor0
----
-1065
-6635
34

query I rowsort
SELECT + - col1 * + ( col0 ) AS col1 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT ALL + col2 + - col1 * + cor0.col2 AS col2 FROM tab0 AS cor0
----
-2805
-7380
-96

query I rowsort
SELECT DISTINCT 25 * - col1 FROM tab1 AS cor0
----
-250
-325
-650

query I rowsort
SELECT + 55 FROM tab1, tab1 AS cor0, tab0 AS cor1, tab2 AS cor2
----
81 values hashing to c59acfbb70996777fa5053195838c3d6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col2 col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3

query I rowsort
SELECT DISTINCT col1 + + col0 * - col2 AS col1 FROM tab2 AS cor0
----
-158
-1969
-2985

query I rowsort
SELECT ALL - + ( col1 ) * - col1 AS col0 FROM tab0 AS cor0
----
7396
8281
9409

query IIIIIIIIIIII rowsort
SELECT * FROM tab0, tab2 AS cor0, tab0 AS cor1, tab1 cor2
----
972 values hashing to 82e15d5967b272804e574774895a0222

query I rowsort
SELECT - 52 * col2 AS col1 FROM tab0 AS cor0
----
-1716
-4264
-52

query I rowsort
SELECT DISTINCT - + ( + ( cor0.col2 ) ) AS col1 FROM tab2 AS cor0
----
-26
-27
-38

query I rowsort
SELECT - + ( col2 ) * col0 AS col1 FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT - col0 * tab0.col1 + - ( col1 ) + + col0 AS col1 FROM tab0
----
-2126
-3457
-8101

onlyif mysql # use DIV operator for integer division
query I rowsort label-5095
SELECT ALL + col1 + + col1 DIV - col0 AS col1 FROM tab2
----
17
27
59

skipif mysql # not compatible
query I rowsort label-5095
SELECT ALL + col1 + + col1 / - col0 AS col1 FROM tab2
----
17
27
59

query I rowsort
SELECT DISTINCT col1 * + col2 + ( col0 ) * col2 * 86 FROM tab2 AS cor0
----
17091
175942
258818

query I rowsort
SELECT ALL + + col1 * col2 * 70 + col1 FROM tab2 AS cor0
----
107439
45237
58621

query I rowsort
SELECT ALL col0 + - col2 + + 33 FROM tab1 AS cor0
----
-18
17
40

query I rowsort
SELECT ALL - - col1 * + col0 AS col1 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT + col1 * - 66 AS col0 FROM tab0 cor0
----
-5676
-6006
-6402

query I rowsort
SELECT DISTINCT col2 * - col2 * cor0.col1 FROM tab1 cor0
----
-119808
-32490
-75816

query I rowsort
SELECT + col2 * col0 + col0 AS col1 FROM tab0 AS cor0
----
70
7387
816

query I rowsort
SELECT + col0 * + col0 - + col1 FROM tab2 AS cor0
----
18
6025
6224

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col2 + + ( col2 ) col1 FROM tab1 cor0
----
0

query I rowsort
SELECT ALL - - col1 + + 42 * col2 AS col0 FROM tab2 AS cor0
----
1151
1165
1613

query I rowsort
SELECT + + col0 + ( - col2 ) AS col0 FROM tab0 AS cor0
----
-9
34
7

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5107
SELECT ALL - col0 + CAST( NULL AS SIGNED ) / - col1 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5107
SELECT ALL - col0 + CAST ( NULL AS INTEGER ) / - col1 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col0 + - 33 * - 49 AS col0 FROM tab0 AS cor0
----
1641
1652
1706

query I rowsort
SELECT - col2 - - col0 AS col0 FROM tab2 AS cor0
----
-20
41
52

query I rowsort
SELECT DISTINCT + tab1.col2 - - col0 AS col2 FROM tab1
----
121
176
57

query I rowsort
SELECT + 76 - col0 AS col2 FROM tab0
----
-13
41
52

query I rowsort
SELECT tab2.col1 + + col1 + 79 * col1 FROM tab2
----
1377
2511
4779

query I rowsort
SELECT ALL - cor0.col1 * - col0 * col2 FROM tab0 AS cor0
----
3395
664118
68112

query I rowsort
SELECT DISTINCT + col2 * - col1 + + col2 - col0 FROM tab2
----
-1586
-687
-817

onlyif mysql # use DIV operator for integer division
query I rowsort label-5115
SELECT col2 DIV + col1 col2 FROM tab0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5115
SELECT col2 / + col1 col2 FROM tab0
----
0
0
0

query I rowsort
SELECT DISTINCT cor0.col2 + col2 + + 66 AS col1 FROM tab1 AS cor0
----
174
180
258

query I rowsort
SELECT col0 * col0 - - col0 * + col0 AS col1 FROM tab0 AS cor0
----
1152
15842
2450

onlyif mysql # use DIV operator for integer division
query I rowsort label-5118
SELECT + col2 DIV 99 AS col2 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5118
SELECT + col2 / 99 AS col2 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT + col1 * 69 - + col1 * col0 * col2 FROM tab2 AS cor0
----
-115581
-3720
-49861

query I rowsort
SELECT + 23 AS col0 FROM tab2, tab0 AS cor0, tab1 cor1
----
27 values hashing to 546d49aa433406dd83ea19885588e658

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + - col2 col1 FROM tab1 AS cor0
----
0

query I rowsort
SELECT ALL - + cor0.col1 + ( + 52 ) FROM tab1 AS cor0
----
26
39
42

query I rowsort
SELECT - 41 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 4ba0c102091f9cbc9fe9439b04584e70

onlyif mysql # use DIV operator for integer division
query I rowsort label-5124
SELECT ALL + col1 + - tab0.col0 DIV col2 + - col2 * tab0.col2 FROM tab0
----
-1003
-6634
61

skipif mysql # not compatible
query I rowsort label-5124
SELECT ALL + col1 + - tab0.col0 / col2 + - col2 * tab0.col2 FROM tab0
----
-1003
-6634
61

query I rowsort
SELECT - ( ( cor0.col1 ) ) * + ( col0 ) FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT - ( cor0.col1 ) * - col1 * ( - col2 ) FROM tab0 AS cor0
----
-244068
-679042
-9409

onlyif mysql # use DIV operator for integer division
query I rowsort label-5127
SELECT col2 DIV + 50 AS col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5127
SELECT col2 / + 50 AS col1 FROM tab2
----
0
0
0

query I rowsort
SELECT ALL + cor0.col2 AS col2 FROM tab1, tab0, tab2 cor0
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5

query I rowsort
SELECT 36 AS col2 FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to 4d1892e880125dc90345721151acb22c

query I rowsort
SELECT col0 * - 47 + col1 AS col1 FROM tab1
----
-115
-2998
-3747

query I rowsort
SELECT ( + 28 ) AS col2 FROM tab0
----
28
28
28

query I rowsort
SELECT - cor0.col2 + tab1.col2 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to cf8dcc9b14d0bff309a9568199cacbe8

query I rowsort
SELECT ALL + - ( + col1 ) * cor0.col2 + + 69 + + col0 FROM tab1 AS cor0
----
-1099
-1332
-437

query I rowsort
SELECT ALL - col1 * + cor0.col0 - - col0 AS col2 FROM tab0 AS cor0
----
-2040
-3360
-8010

query I rowsort
SELECT + ( col1 ) * ( - ( col0 ) ) FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT ALL 70 - col0 FROM tab0 AS cor0
----
-19
35
46

query I rowsort
SELECT - 30 * + 54 AS col1 FROM tab0 AS cor0
----
-1620
-1620
-1620

query I rowsort
SELECT + cor0.col2 AS col1 FROM tab0, tab0 AS cor0, tab2 cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475

query I rowsort
SELECT ALL ( col1 ) * - col1 AS col1 FROM tab0 AS cor0
----
-7396
-8281
-9409

query I rowsort
SELECT 33 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 620d384286e82d1c6c8b1b2b109a7da5

onlyif mysql # use DIV operator for integer division
query I rowsort label-5141
SELECT ALL ( - 6 ) DIV col1 AS col2 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5141
SELECT ALL ( - 6 ) / col1 AS col2 FROM tab0
----
0
0
0

query I rowsort
SELECT ALL - col2 * - col0 AS col0 FROM tab1
----
162
3648
7680

query I rowsort
SELECT ALL - 36 * - col1 * + col0 + + cor0.col0 * col0 AS col0 FROM tab1 AS cor0
----
27136
2817
43840

query I rowsort
SELECT ALL + + 66 FROM tab1 AS cor0
----
66
66
66

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 DISTINCT + 38 + + col2 FROM tab2 AS cor0
----
64
65
76

query I rowsort
SELECT - cor0.col0 + - cor0.col1 AS col1 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to 822c2df270733c1079ccc0b8e544f81e

query I rowsort
SELECT ALL - col1 + + tab0.col0 * col2 AS col0 FROM tab0
----
-62
706
7207

query I rowsort
SELECT ALL + cor0.col2 + + col0 * + cor0.col1 FROM tab0 cor0
----
2097
3396
8181

query I rowsort
SELECT ALL 97 + col0 AS col0 FROM tab1
----
100
161
177

query I rowsort
SELECT - col2 - 79 FROM tab2 AS cor0
----
-105
-106
-117

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( + col1 + col2 ) col1 FROM tab1
----
109
67
80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5153
SELECT tab2.col2 * tab2.col2 * CAST( NULL AS SIGNED ) col0 FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5153
SELECT tab2.col2 * tab2.col2 * CAST ( NULL AS INTEGER ) col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 67 AS col1 FROM tab0
----
67

query I rowsort
SELECT ALL + col1 - tab2.col2 FROM tab2
----
-21
33
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + tab1.col1 * ( col1 + + col1 ) col2 FROM tab1
----
-12800
-27040
-4056

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1 cor0 CROSS JOIN tab0, tab2 AS cor1, tab1 AS cor2
----
972 values hashing to 9364ef7545b07c67767dceb70f02c643

query I rowsort
SELECT - col1 + + col2 * - col0 FROM tab1 AS cor0
----
-188
-3658
-7693

query I rowsort
SELECT col1 + ( 10 ) FROM tab0 AS cor0
----
101
107
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-5160
SELECT + cor0.col0 DIV + col1 + cor0.col1 FROM tab0 AS cor0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-5160
SELECT + cor0.col0 / + col1 + cor0.col1 FROM tab0 AS cor0
----
86
91
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-5161
SELECT - col0 * cor0.col1 * col2 - - col1 DIV - ( + col0 ) FROM tab0 AS cor0
----
-3397
-664119
-68115

skipif mysql # not compatible
query I rowsort label-5161
SELECT - col0 * cor0.col1 * col2 - - col1 / - ( + col0 ) FROM tab0 AS cor0
----
-3397
-664119
-68115

onlyif mysql # use DIV operator for integer division
query I rowsort label-5162
SELECT + col1 DIV ( col1 ) + + col0 AS col1 FROM tab2 AS cor0
----
79
8
80

skipif mysql # not compatible
query I rowsort label-5162
SELECT + col1 / ( col1 ) + + col0 AS col1 FROM tab2 AS cor0
----
79
8
80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5163
SELECT DISTINCT + col2 * + CAST( col0 AS SIGNED ) - col0 FROM tab2
----
182
1950
2923

skipif mysql # not compatible
query I rowsort label-5163
SELECT DISTINCT + col2 * + CAST ( col0 AS INTEGER ) - col0 FROM tab2
----
182
1950
2923

skipif mysql # not compatible
query I rowsort
SELECT - tab1.col1 - - CAST ( col2 AS REAL ) AS col0 FROM tab1
----
28
47
83

query I rowsort
SELECT DISTINCT tab0.col2 + col2 - 79 AS col2 FROM tab0
----
-13
-77
85

onlyif mysql # use DIV operator for integer division
query I rowsort label-5166
SELECT ALL tab0.col0 + col2 DIV + col2 AS col1 FROM tab0
----
25
36
90

skipif mysql # not compatible
query I rowsort label-5166
SELECT ALL tab0.col0 + col2 / + col2 AS col1 FROM tab0
----
25
36
90

onlyif mysql # use DIV operator for integer division
query I rowsort label-5167
SELECT + col1 + - col0 DIV col0 - col2 col2 FROM tab1 AS cor0
----
-29
-48
-84

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5167
SELECT + col1 + - col0 / col0 - col2 col2 FROM tab1 AS cor0
----
-29
-48
-84

query I rowsort
SELECT col1 * col2 + ( - col1 ) * col0 + 57 FROM tab0 AS cor0
----
-3241
-580
831

query I rowsort
SELECT ALL 82 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to f318fd9dac2de7af4b82cc7574bbca2c

query I rowsort
SELECT ALL - ( col1 ) * + col2 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT + + col0 * col2 + - col2 FROM tab2 AS cor0
----
162
2002
2964

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( col2 ) * - col2 + cor0.col1 + + 61 col1 FROM tab2 AS cor0
----
1522
796
821

query I rowsort
SELECT + col2 * col2 + col2 AS col2 FROM tab2 AS cor0
----
1482
702
756

query I rowsort
SELECT ALL + ( + 79 ) * - col1 - col0 FROM tab1 cor0
----
-1107
-2057
-854

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 - col1 col0 FROM tab2 AS cor0
----
-33
-4
21

query I rowsort
SELECT DISTINCT - + ( col2 ) + - cor0.col0 AS col1 FROM tab1 AS cor0
----
-121
-176
-57

query I rowsort
SELECT + + col2 * col1 + col1 FROM tab0 AS cor0
----
194
2924
7553

onlyif mysql # use DIV operator for integer division
query I rowsort label-5178
SELECT ALL - ( col2 ) DIV + col2 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-5178
SELECT ALL - ( col2 ) / + col2 FROM tab0 AS cor0
----
-1
-1
-1

query I rowsort
SELECT - + ( 53 ) + col1 FROM tab1 AS cor0
----
-27
-40
-43

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5180
SELECT DISTINCT + CAST( NULL AS DECIMAL ) * col0 * - col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5180
SELECT DISTINCT + CAST ( NULL AS REAL ) * col0 * - col1 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL + + 45 + col0 FROM tab1 AS cor0
----
109
125
48

query I rowsort
SELECT ALL - - ( col0 ) + col2 AS col0 FROM tab2 AS cor0
----
104
117
34

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5183
SELECT DISTINCT + + CAST( NULL AS DECIMAL ) * 33 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5183
SELECT DISTINCT + + CAST ( NULL AS REAL ) * 33 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL - cor0.col1 + col2 * cor0.col2 AS col1 FROM tab0 AS cor0
----
-96
1003
6633

query I rowsort
SELECT DISTINCT 47 AS col2 FROM tab0 AS cor0
----
47

query I rowsort
SELECT + ( col0 ) * cor0.col0 FROM tab2 AS cor0
----
49
6084
6241

onlyif mysql # use DIV operator for integer division
query I rowsort label-5187
SELECT DISTINCT - + col1 * ( - cor0.col1 ) DIV + col2 FROM tab1 AS cor0
----
1
12

skipif mysql # not compatible
query I rowsort label-5187
SELECT DISTINCT - + col1 * ( - cor0.col1 ) / + col2 FROM tab1 AS cor0
----
1
12

query I rowsort
SELECT DISTINCT 9 * 85 - + col2 FROM tab2 AS cor0
----
727
738
739

query I rowsort
SELECT ALL + 5 AS col2 FROM tab0 AS cor0
----
5
5
5

query I rowsort
SELECT DISTINCT col1 + - col2 * 26 AS col1 FROM tab1 AS cor0
----
-1378
-1472
-2483

query I rowsort
SELECT ALL + col2 * cor0.col0 + 44 FROM tab0 cor0
----
7342
79
836

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 43 + + col2 * 38 col0 FROM tab0 AS cor0
----
1297
3159
81

query I rowsort
SELECT - cor0.col0 * + col2 FROM tab0 AS cor0
----
-35
-7298
-792

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 * col1 col1 FROM tab1 AS cor0
----
-100
-169
-676

query I rowsort
SELECT ALL + - col0 * col2 - cor0.col2 FROM tab1 cor0
----
-216
-3705
-7776

query I rowsort
SELECT DISTINCT cor0.col1 * 29 AS col1 FROM tab2 AS cor0
----
1711
493
899

query I rowsort
SELECT ALL - + ( + cor0.col2 ) * + col2 + + cor0.col2 * col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT - + col0 - col2 AS col2 FROM tab2 AS cor0
----
-104
-117
-34

onlyif mysql # use DIV operator for integer division
query I rowsort label-5199
SELECT col0 DIV col0 AS col2 FROM tab2 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5199
SELECT col0 / col0 AS col2 FROM tab2 cor0
----
1
1
1

query I rowsort
SELECT - 85 - + col1 FROM tab2 AS cor0
----
-102
-116
-144

query I rowsort
SELECT ALL cor0.col0 * - cor0.col1 + col1 FROM tab0 AS cor0
----
-1978
-3298
-8008

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5202
SELECT - cor0.col0 - col1 * CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5202
SELECT - cor0.col0 - col1 * CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + cor0.col2 + - col1 * col0 + col2 FROM tab2 cor0
----
-1267
-163
-4550

query I rowsort
SELECT + 29 + - cor0.col1 AS col0 FROM tab0 AS cor0
----
-57
-62
-68

query I rowsort
SELECT col0 * + col1 * - ( 12 ) FROM tab0 AS cor0
----
-24768
-40740
-97188

query I rowsort
SELECT ALL + 36 FROM tab1
----
36
36
36

query I rowsort
SELECT ALL ( + cor0.col2 ) AS col2 FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to 7786718bd8042022537378d40ec87475

query I rowsort
SELECT 91 * - col0 FROM tab0
----
-2184
-3185
-8099

query I rowsort
SELECT 47 + - 31 * col1 FROM tab1
----
-263
-356
-759

query I rowsort
SELECT tab0.col2 - tab0.col1 * ( tab0.col0 ) * - col0 FROM tab0
----
118826
49569
720893

query I rowsort
SELECT cor0.col1 * - tab1.col1 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to c6f4b0b1d1f7796b05493e23d40b0b75

query I rowsort
SELECT ALL + + col0 + - col2 * cor0.col0 FROM tab0 cor0
----
-7209
-768
0

query I rowsort
SELECT DISTINCT - 7 * col2 AS col1 FROM tab2 AS cor0
----
-182
-189
-266

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5214
SELECT + col2 * - col1 * - CAST( NULL AS SIGNED ) - col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5214
SELECT + col2 * - col1 * - CAST ( NULL AS INTEGER ) - col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5215
SELECT col1 + CAST( NULL AS DECIMAL ) * col2 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5215
SELECT col1 + CAST ( NULL AS REAL ) * col2 AS col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT + 8 + 90 FROM tab2, tab2 AS cor0
----
9 values hashing to f9dee8c21116f1aed64ac5160e190809

query I rowsort
SELECT DISTINCT + col1 * cor0.col2 AS col0 FROM tab0 cor0
----
2838
7462
97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5218
SELECT ALL + - col1 * - CAST( - 13 * col0 + + CAST( NULL AS DECIMAL ) AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5218
SELECT ALL + - col1 * - CAST ( - 13 * col0 + + CAST ( NULL AS REAL ) AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - - 68 AS col2 FROM tab2 AS cor0
----
68
68
68

query I rowsort
SELECT ALL ( + ( col2 ) ) AS col0 FROM tab2
----
26
27
38

onlyif mysql # use DIV operator for integer division
query I rowsort label-5221
SELECT ALL - - col0 - col1 DIV col0 AS col0 FROM tab2 AS cor0
----
3
78
79

skipif mysql # not compatible
query I rowsort label-5221
SELECT ALL - - col0 - col1 / col0 AS col0 FROM tab2 AS cor0
----
3
78
79

query I rowsort
SELECT - 6 * 2 AS col2 FROM tab2 AS cor0
----
-12
-12
-12

query I rowsort
SELECT ALL - cor0.col2 - - col0 * - cor0.col1 AS col1 FROM tab0 AS cor0
----
-2097
-3396
-8181

query I rowsort
SELECT DISTINCT - 64 + 0 * + col2 FROM tab2 AS cor0
----
-64

query I rowsort
SELECT DISTINCT - - ( col0 ) + + col1 AS col0 FROM tab0 cor0
----
110
132
180

query I rowsort
SELECT DISTINCT + + col0 + + 15 * cor0.col0 FROM tab1 AS cor0
----
1024
1280
48

query I rowsort
SELECT DISTINCT col1 + 85 FROM tab2 AS cor0
----
102
116
144

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab2 AS cor0 CROSS JOIN tab0, tab0 cor1
----
972 values hashing to 3a31dab513390ca6bd05c71a3d9c50f0

query I rowsort
SELECT DISTINCT 21 AS col1 FROM tab2
----
21

query I rowsort
SELECT DISTINCT + ( col2 + col2 ) AS col1 FROM tab2
----
52
54
76

query I rowsort
SELECT ALL + col0 * + ( col0 ) AS col1 FROM tab1 AS cor0
----
4096
6400
9

onlyif mysql # use DIV operator for integer division
query I rowsort label-5232
SELECT ( + cor0.col0 ) DIV col1 col2 FROM tab1 cor0
----
0
6
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5232
SELECT ( + cor0.col0 ) / col1 col2 FROM tab1 cor0
----
0
6
6

query I rowsort
SELECT ALL col1 * + 34 AS col0 FROM tab0 AS cor0
----
2924
3094
3298

query I rowsort
SELECT - col2 + col2 AS col1 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + 82 AS col1 FROM tab1 cor0
----
82

query I rowsort
SELECT - + 83 AS col1 FROM tab0 AS cor0
----
-83
-83
-83

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5237
SELECT DISTINCT + ( col1 * CAST( - 21 AS SIGNED ) ) FROM tab0
----
-1806
-1911
-2037

skipif mysql # not compatible
query I rowsort label-5237
SELECT DISTINCT + ( col1 * CAST ( - 21 AS INTEGER ) ) FROM tab0
----
-1806
-1911
-2037

query I rowsort
SELECT DISTINCT col2 * 7 FROM tab1 AS cor0
----
378
399
672

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col2 * - ( - cor0.col0 ) col0 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT ALL + col0 + 84 * + cor0.col2 AS col0 FROM tab1 AS cor0
----
4539
4852
8144

query I rowsort
SELECT - col1 * - ( col0 * + col1 ) AS col2 FROM tab1
----
13520
2028
6400

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab0, tab2 AS cor0, tab2 cor1
----
972 values hashing to a698694a7dac245e42212ff0316bdf45

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + cor0.col1 * + cor0.col1 * cor0.col2 col1 FROM tab0 AS cor0
----
-244068
-679042
-9409

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 51 col1 FROM tab1 AS cor0
----
51
51
51

query I rowsort
SELECT - col1 + - col2 + cor0.col0 FROM tab2 AS cor0
----
-51
-7
24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * ( - 7 ) col0 FROM tab0
----
168
245
623

onlyif mysql # use DIV operator for integer division
query I rowsort label-5247
SELECT ALL - col0 * 84 DIV - ( col0 ) FROM tab0
----
84
84
84

skipif mysql # not compatible
query I rowsort label-5247
SELECT ALL - col0 * 84 / - ( col0 ) FROM tab0
----
84
84
84

query I rowsort
SELECT DISTINCT + col2 * - 72 AS col2 FROM tab1
----
-3888
-4104
-6912

query I rowsort
SELECT DISTINCT - col0 * + 74 AS col1 FROM tab2
----
-518
-5772
-5846

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * col1 + - col0 col1 FROM tab0 cor0
----
-7420
-8370
-9444

query I rowsort
SELECT DISTINCT 3 - + col0 FROM tab2
----
-4
-75
-76

query I rowsort
SELECT ALL + 21 - + tab0.col2 FROM tab0
----
-12
-61
20

query I rowsort
SELECT + ( col2 ) * ( ( - col0 ) ) AS col0 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT + + cor0.col1 + cor0.col2 * - col0 AS col1 FROM tab1 AS cor0
----
-136
-3638
-7667

query I rowsort
SELECT - - cor0.col0 + 13 AS col2 FROM tab1 AS cor0
----
16
77
93

query I rowsort
SELECT + cor0.col1 + + 51 AS col0 FROM tab1 AS cor0
----
61
64
77

query I rowsort
SELECT col0 + 98 FROM tab0 AS cor0
----
122
133
187

query I rowsort
SELECT ALL col1 * 51 + + 90 AS col0 FROM tab1 AS cor0
----
1416
600
753

onlyif mysql # use DIV operator for integer division
query I rowsort label-5259
SELECT ALL + col0 * + col2 + 94 * cor0.col0 DIV col1 AS col1 FROM tab1 AS cor0
----
172
4249
8258

skipif mysql # not compatible
query I rowsort label-5259
SELECT ALL + col0 * + col2 + 94 * cor0.col0 / col1 AS col1 FROM tab1 AS cor0
----
172
4249
8258

query I rowsort
SELECT ALL + 42 * + tab0.col2 * 75 AS col2 FROM tab0
----
103950
258300
3150

query I rowsort
SELECT ( - col2 ) + + cor0.col1 * col0 AS col0 FROM tab2 AS cor0
----
1305
190
4576

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( col0 ) col1 FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT + ( - 40 ) + col0 FROM tab1 AS cor0
----
-37
24
40

query I rowsort
SELECT - - tab2.col0 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83

query I rowsort
SELECT ALL + ( 27 ) * + cor0.col1 AS col0 FROM tab1, tab0 cor0 CROSS JOIN tab2
----
27 values hashing to 86e2eebb309ea70b7b914dd21f65976f

query I rowsort
SELECT ALL ( col0 ) * tab0.col2 FROM tab0
----
35
7298
792

query I rowsort
SELECT - 61 FROM tab2, tab2 cor0
----
9 values hashing to 51f53697966a79d306a4570537cd91a1

query I rowsort
SELECT + 65 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 8bef2ea1f05f3514633f851312bdd805

query I rowsort
SELECT + ( cor0.col2 ) AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3

onlyif mysql # use DIV operator for integer division
query I rowsort label-5270
SELECT ALL col1 DIV cor0.col1 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5270
SELECT ALL col1 / cor0.col1 FROM tab1 AS cor0
----
1
1
1

query I rowsort
SELECT DISTINCT + - 35 * - col2 AS col2 FROM tab2 AS cor0
----
1330
910
945

query I rowsort
SELECT - 26 * col0 * - tab1.col1 + + col2 FROM tab1
----
16697
2082
27136

query I rowsort
SELECT col1 - ( + col0 ) * - col2 AS col2 FROM tab1
----
188
3658
7693

query I rowsort
SELECT 36 + + tab1.col0 FROM tab1
----
100
116
39

query I rowsort
SELECT col2 * tab2.col2 + col0 FROM tab2
----
1523
736
754

query I rowsort
SELECT ALL - 83 + tab2.col0 * col2 * col1 - - col2 FROM tab2
----
119595
50989
5803

query I rowsort
SELECT DISTINCT - 98 + - col1 * col2 AS col1 FROM tab2 AS cor0
----
-1632
-744
-935

query I rowsort
SELECT ALL - 63 * col2 - + col2 AS col2 FROM tab2 AS cor0
----
-1664
-1728
-2432

query I rowsort
SELECT DISTINCT - col1 + cor0.col1 * + col0 AS col0 FROM tab1 AS cor0
----
1027
52
630

query I rowsort
SELECT ALL - + cor0.col1 + + col2 AS col2 FROM tab0 AS cor0
----
-53
-9
-96

onlyif mysql # use DIV operator for integer division
query I rowsort label-5281
SELECT ALL col0 DIV col1 - - col0 AS col0 FROM tab2 AS cor0
----
7
79
83

skipif mysql # not compatible
query I rowsort label-5281
SELECT ALL col0 / col1 - - col0 AS col0 FROM tab2 AS cor0
----
7
79
83

query I rowsort
SELECT - col0 * col2 - col2 FROM tab1 AS cor0
----
-216
-3705
-7776

query I rowsort
SELECT ALL - + col0 * - col0 * col2 AS col0 FROM tab1 cor0
----
233472
486
614400

query I rowsort
SELECT DISTINCT - + ( col1 ) + col2 AS col1 FROM tab1 AS cor0
----
28
47
83

query I rowsort
SELECT DISTINCT + col1 + - 33 * 98 FROM tab0
----
-3137
-3143
-3148

query I rowsort
SELECT DISTINCT col2 * 29 * col2 AS col2 FROM tab0
----
194996
29
31581

query I rowsort
SELECT col0 * 54 * ( tab1.col0 + + col2 ) AS col2 FROM tab1
----
418176
760320
9234

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 38 col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to e571541ae40cb0ddaca16e11f4359507

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5289
SELECT - + col0 + + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5289
SELECT - + col0 + + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col0 * 41 FROM tab0 cor0
----
1435
3649
984

onlyif mysql # use DIV operator for integer division
query I rowsort label-5291
SELECT ALL - ( col2 ) DIV - col2 + col2 AS col1 FROM tab1 AS cor0
----
55
58
97

skipif mysql # not compatible
query I rowsort label-5291
SELECT ALL - ( col2 ) / - col2 + col2 AS col1 FROM tab1 AS cor0
----
55
58
97

query I rowsort
SELECT ALL - 0 AS col0 FROM tab2, tab2 cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query I rowsort
SELECT col0 + + tab2.col0 * col1 FROM tab2
----
1422
224
4680

query I rowsort
SELECT ALL + ( col1 ) + - col1 * col1 AS col2 FROM tab1 AS cor0
----
-156
-650
-90

query I rowsort
SELECT ALL + cor0.col0 + col1 * - cor0.col2 FROM tab1 cor0
----
-1168
-1401
-506

query I rowsort
SELECT DISTINCT + 22 * + cor0.col1 + cor0.col2 AS col1 FROM tab0 AS cor0
----
1925
2084
2135

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5297
SELECT DISTINCT - CAST( col0 AS SIGNED ) * - col0 FROM tab1 AS cor0
----
4096
6400
9

skipif mysql # not compatible
query I rowsort label-5297
SELECT DISTINCT - CAST ( col0 AS INTEGER ) * - col0 FROM tab1 AS cor0
----
4096
6400
9

query I rowsort
SELECT ALL - 90 FROM tab1, tab0 cor0
----
9 values hashing to f6f26b9a04da14807208b93d507095c5

query I rowsort
SELECT - - col2 * + 25 FROM tab0 AS cor0
----
2050
25
825

query I rowsort
SELECT DISTINCT col2 + col1 * - ( + col2 ) FROM tab2 AS cor0
----
-1508
-608
-810

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col0 * - ( - cor0.col0 ) * - col1 col1 FROM tab2 AS cor0
----
-106097
-1519
-358956

onlyif mysql # use DIV operator for integer division
query I rowsort label-5302
SELECT - + col0 DIV - 66 AS col2 FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-5302
SELECT - + col0 / - 66 AS col2 FROM tab1 AS cor0
----
0
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col2 * - col0 col0 FROM tab0 AS cor0
----
-35
-7298
-792

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + - ( col2 ) * - col2 col1 FROM tab2 AS cor0
----
1406
650
702

query I rowsort
SELECT ALL + col2 + ( - ( + col2 ) ) * + col1 FROM tab0 AS cor0
----
-2805
-7380
-96

onlyif mysql # use DIV operator for integer division
query I rowsort label-5306
SELECT + col2 DIV + col2 AS col0 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5306
SELECT + col2 / + col2 AS col0 FROM tab1 AS cor0
----
1
1
1

query I rowsort
SELECT - col0 * col1 - tab0.col1 AS col1 FROM tab0
----
-2150
-3492
-8190

query I rowsort
SELECT ALL - - col0 + 79 FROM tab0 AS cor0
----
103
114
168

query I rowsort
SELECT DISTINCT + col1 * - 10 AS col2 FROM tab0 AS cor0
----
-860
-910
-970

query I rowsort
SELECT ALL col0 * 68 + + col1 FROM tab2 AS cor0
----
507
5363
5389

query I rowsort
SELECT + + col2 + col2 - - col0 * col1 AS col1 FROM tab1 AS cor0
----
1232
186
754

onlyif mysql # use DIV operator for integer division
query I rowsort label-5312
SELECT - col0 + - col1 * + col2 DIV - col2 FROM tab0
----
2
62
62

skipif mysql # not compatible
query I rowsort label-5312
SELECT - col0 + - col1 * + col2 / - col2 FROM tab0
----
2
62
62

query I rowsort
SELECT ( - ( - cor0.col1 ) ) FROM tab1, tab1 cor0
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775

query I rowsort
SELECT col0 * - col1 + + ( - cor0.col0 ) FROM tab1 AS cor0
----
-1120
-704
-81

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5315
SELECT - 40 * + col1 * CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5315
SELECT - 40 * + col1 * CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 53 * col0 * - 97 + col2 AS col2 FROM tab0
----
-123351
-179934
-457467

query I rowsort
SELECT DISTINCT ( - col1 * 5 ) FROM tab1
----
-130
-50
-65

query I rowsort
SELECT DISTINCT + ( - ( - cor1.col2 ) + - 43 ) FROM tab0, tab2 AS cor0, tab0 AS cor1
----
-10
-42
39

query I rowsort
SELECT DISTINCT + col1 * + col1 * tab1.col1 AS col0 FROM tab1
----
1000
17576
2197

query I rowsort
SELECT + col2 * col0 * - col2 + + col0 * + col1 * col0 FROM tab2
----
-3584
-7979
306228

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 11 * col1 col0 FROM tab2
----
-187
-341
-649

query I rowsort
SELECT col1 * - col0 + 8 AS col2 FROM tab0
----
-2056
-3387
-8091

query I rowsort
SELECT ALL + cor0.col0 FROM tab1, tab0, tab0 AS cor0
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd

query I rowsort
SELECT ( - col2 ) AS col0 FROM tab0
----
-1
-33
-82

query I rowsort
SELECT 64 * col2 AS col2 FROM tab2 cor0
----
1664
1728
2432

query I rowsort
SELECT DISTINCT + ( - col2 ) + col1 * - col2 AS col2 FROM tab0 cor0
----
-2871
-7544
-98

query I rowsort
SELECT - - cor0.col2 + col0 * - 42 FROM tab0 AS cor0
----
-1469
-3656
-975

query I rowsort
SELECT DISTINCT - 54 AS col2 FROM tab1
----
-54

query I rowsort
SELECT + 11 * col2 AS col2 FROM tab0
----
11
363
902

query I rowsort
SELECT DISTINCT - 58 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-58

query I rowsort
SELECT ALL - col2 + ( ( - col2 ) ) FROM tab2 AS cor0
----
-52
-54
-76

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5332
SELECT DISTINCT CAST( + 40 AS SIGNED ) FROM tab2, tab1 AS cor0
----
40

skipif mysql # not compatible
query I rowsort label-5332
SELECT DISTINCT CAST ( + 40 AS INTEGER ) FROM tab2, tab1 AS cor0
----
40

query I rowsort
SELECT DISTINCT - col0 * + ( 97 ) * + col0 FROM tab1
----
-397312
-620800
-873

query I rowsort
SELECT 77 * - cor0.col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 59f212ec0972cd20e5806c61108d7bb4

query I rowsort
SELECT ALL + cor0.col1 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892

onlyif mysql # use DIV operator for integer division
query I rowsort label-5336
SELECT 29 DIV 87 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5336
SELECT 29 / 87 FROM tab1
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 8 col1 FROM tab0
----
8
8
8

query I rowsort
SELECT + 89 FROM tab2, tab2 AS cor0
----
9 values hashing to 5c8428e9f1e7de3d09cb0814b4cc1743

onlyif mysql # use DIV operator for integer division
query I rowsort label-5339
SELECT ALL 93 * col0 + + col2 + + col2 DIV + ( col1 ) col1 FROM tab1
----
335
6014
7543

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5339
SELECT ALL 93 * col0 + + col2 + + col2 / + ( col1 ) col1 FROM tab1
----
335
6014
7543

query I rowsort
SELECT - 3 FROM tab0, tab0 cor0
----
9 values hashing to 95b6b9b4aae5cc2d9545db9f8940b2dc

query I rowsort
SELECT + col2 * 7 FROM tab0
----
231
574
7

query I rowsort
SELECT ALL + 92 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 516fa45c8b06f9f67d6e500bfd435c1a

query I rowsort
SELECT DISTINCT col0 * - 96 * col1 AS col1 FROM tab0 cor0
----
-198144
-325920
-777504

query I rowsort
SELECT - col1 + + col0 * cor0.col2 - col1 * col2 AS col1 FROM tab1 cor0
----
-1268
3068
6419

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5345
SELECT - CAST( NULL AS SIGNED ) * ( + cor0.col2 ) + 97 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5345
SELECT - CAST ( NULL AS INTEGER ) * ( + cor0.col2 ) + 97 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-5346
SELECT - col2 DIV + 29 FROM tab0 AS cor0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-5346
SELECT - col2 / + 29 FROM tab0 AS cor0
----
-1
-2
0

query I rowsort
SELECT ALL + col0 * ( + col1 ) AS col1 FROM tab1 cor0
----
1040
640
78

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5348
SELECT CAST( - col2 AS SIGNED ) * - col0 + cor0.col0 col0 FROM tab0 AS cor0
----
70
7387
816

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5348
SELECT CAST ( - col2 AS INTEGER ) * - col0 + cor0.col0 col0 FROM tab0 AS cor0
----
70
7387
816

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5349
SELECT DISTINCT CAST( + tab2.col2 AS SIGNED ) * col1 FROM tab2
----
1534
646
837

skipif mysql # not compatible
query I rowsort label-5349
SELECT DISTINCT CAST ( + tab2.col2 AS INTEGER ) * col1 FROM tab2
----
1534
646
837

query I rowsort
SELECT DISTINCT - tab2.col1 * ( col1 + - col0 ) * ( - col1 * - ( - col0 ) ) AS col2 FROM tab2
----
-1415522
-5158842
161448

query I rowsort
SELECT ALL ( + cor0.col1 ) AS col0 FROM tab1 AS cor0
----
10
13
26

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5352
SELECT DISTINCT + CAST( NULL AS SIGNED ) / col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5352
SELECT DISTINCT + CAST ( NULL AS INTEGER ) / col2 FROM tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + + col2 col1 FROM tab2 cor0
----
52
54
76

query I rowsort
SELECT cor0.col0 * + col2 + col2 AS col2 FROM tab1 AS cor0
----
216
3705
7776

query I rowsort
SELECT ALL - col2 * + col2 + - 32 AS col2 FROM tab0 AS cor0
----
-1121
-33
-6756

query I rowsort
SELECT DISTINCT - + cor0.col0 + + cor0.col2 * - 77 AS col2 FROM tab2 cor0
----
-2080
-2086
-3005

query I rowsort
SELECT ALL - col2 * - col1 + - cor0.col2 FROM tab0 AS cor0
----
2805
7380
96

query I rowsort
SELECT ALL col2 + col2 * + col1 * - tab1.col2 FROM tab1
----
-119712
-32433
-75762

query I rowsort
SELECT - ( col2 ) * - col0 + cor0.col2 FROM tab2 AS cor0
----
2054
216
3040

query I rowsort
SELECT + - col1 * + cor0.col1 FROM tab1 AS cor0
----
-100
-169
-676

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab0 AS cor0 CROSS JOIN tab2, tab0 AS cor1, tab1 AS cor2
----
3645 values hashing to def82b52aa9c83b91991d7d043276abe

query I rowsort
SELECT DISTINCT - - 54 * col0 AS col0 FROM tab2 cor0
----
378
4212
4266

query I rowsort
SELECT + col0 + + 23 FROM tab2 AS cor0
----
101
102
30

query I rowsort
SELECT DISTINCT - col2 * col1 * - 79 + 49 FROM tab1
----
110965
45079
98641

query I rowsort
SELECT DISTINCT + cor0.col2 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
54
57
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 - col1 col2 FROM tab2
----
-24
19
62

query I rowsort
SELECT - col2 + tab1.col1 + tab1.col1 FROM tab1
----
-2
-37
-70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col0 - col0 col1 FROM tab0 AS cor0
----
-178
-48
-70

query I rowsort
SELECT ALL + + col1 * + col0 * + ( - col0 * cor0.col1 ) FROM tab1 AS cor0
----
-1081600
-409600
-6084

query I rowsort
SELECT ALL col0 - col0 AS col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT - 24 - col2 FROM tab1 AS cor0
----
-120
-78
-81

query I rowsort
SELECT DISTINCT + 14 * col1 + ( ( - col0 ) ) AS col1 FROM tab2 AS cor0
----
159
427
748

query I rowsort
SELECT - 50 AS col1 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to faf91d5263c18db4877a3c30c47e2487

onlyif mysql # use DIV operator for integer division
query I rowsort label-5374
SELECT + + col1 DIV - cor0.col0 - - col2 FROM tab1 cor0
----
46
57
96

skipif mysql # not compatible
query I rowsort label-5374
SELECT + + col1 / - cor0.col0 - - col2 FROM tab1 cor0
----
46
57
96

query I rowsort
SELECT ALL col1 + 53 FROM tab1
----
63
66
79

query I rowsort
SELECT + ( tab1.col2 ) FROM tab1, tab2 cor0
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17

query I rowsort
SELECT ALL tab1.col0 * + tab1.col0 AS col1 FROM tab1
----
4096
6400
9

query I rowsort
SELECT - + col2 * 62 FROM tab1 cor0
----
-3348
-3534
-5952

query I rowsort
SELECT DISTINCT + col0 + 2 * - col0 FROM tab2 AS cor0
----
-7
-78
-79

query I rowsort
SELECT ALL + col2 + 86 * + col0 FROM tab2 cor0
----
629
6734
6832

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5381
SELECT ALL - CAST( NULL AS SIGNED ) + col1 * col0 * col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5381
SELECT ALL - CAST ( NULL AS INTEGER ) + col1 * col0 * col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT ( + col0 ) - col0 FROM tab0 AS cor0
----
0

query I rowsort
SELECT + 21 * - 13 FROM tab1 AS cor0
----
-273
-273
-273

query I rowsort
SELECT ( + col2 ) * + col1 AS col0 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT col1 * - col1 * + col1 AS col0 FROM tab0 AS cor0
----
-636056
-753571
-912673

query I rowsort
SELECT - col2 * - 66 FROM tab2 AS cor0
----
1716
1782
2508

query I rowsort
SELECT DISTINCT + + cor0.col0 AS col0 FROM tab1, tab0, tab0 AS cor0
----
24
35
89

query I rowsort
SELECT ALL col2 * 65 FROM tab2
----
1690
1755
2470

query I rowsort
SELECT - 31 AS col2 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to c6c8eebeb1a59f7c046402e25630c0ac

query I rowsort
SELECT ALL + col1 * ( - tab2.col2 ) * - col2 AS col1 FROM tab2
----
22599
24548
39884

query I rowsort
SELECT DISTINCT + + 6 FROM tab1 cor0
----
6

query I rowsort
SELECT ALL col1 + 98 FROM tab1 AS cor0
----
108
111
124

query I rowsort
SELECT + col2 * cor0.col1 + - col0 FROM tab1 AS cor0
----
1168
1401
506

query I rowsort
SELECT ALL ( + col0 ) + + col0 AS col0 FROM tab2 cor0
----
14
156
158

query I rowsort
SELECT DISTINCT - - col0 * - 21 - + col0 FROM tab2 AS cor0
----
-154
-1716
-1738

query I rowsort
SELECT ALL + 34 FROM tab0 AS cor0
----
34
34
34

query I rowsort
SELECT DISTINCT - - 23 AS col0 FROM tab0 cor0
----
23

query I rowsort
SELECT DISTINCT + ( 39 ) + col1 AS col0 FROM tab1 cor0
----
49
52
65

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 8 col1 FROM tab0 AS cor0
----
8
8
8

query I rowsort
SELECT col2 * - tab0.col0 + - tab0.col2 FROM tab0
----
-36
-7380
-825

query I rowsort
SELECT col0 + ( tab1.col0 + 96 ) FROM tab1
----
102
224
256

query I rowsort
SELECT + 12 * col1 + col1 AS col2 FROM tab1 AS cor0
----
130
169
338

query I rowsort
SELECT cor1.col1 FROM tab0, tab2 AS cor0, tab2 AS cor1, tab1, tab2 AS cor2
----
243 values hashing to 42b04a30acb32fcd35bf97afdee87fe6

query I rowsort
SELECT DISTINCT ( col2 ) * cor0.col0 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT DISTINCT - ( col1 ) * + col1 + - col1 + - col0 FROM tab1 AS cor0
----
-174
-262
-705

query I rowsort
SELECT + - col1 + - col0 * + col1 AS col1 FROM tab0 AS cor0
----
-2150
-3492
-8190

query I rowsort
SELECT ALL + col0 * col2 + - 30 FROM tab1 AS cor0
----
132
3618
7650

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + - cor0.col1 * - col0 * col1 col1 FROM tab1 AS cor0
----
13600
2031
6464

query I rowsort
SELECT - cor0.col2 * - col2 AS col2 FROM tab0 cor0
----
1
1089
6724

query I rowsort
SELECT DISTINCT - - 58 FROM tab1 AS cor0
----
58

query I rowsort
SELECT - - cor0.col0 * cor0.col1 AS col0 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT col0 * tab1.col1 + - col1 FROM tab1
----
1027
52
630

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5413
SELECT + CAST( NULL AS SIGNED ) + - col0 col2 FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5413
SELECT + CAST ( NULL AS INTEGER ) + - col0 col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 28 * + tab1.col2 FROM tab1
----
1512
1596
2688

onlyif mysql # use DIV operator for integer division
query I rowsort label-5415
SELECT DISTINCT - 45 DIV - 51 AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-5415
SELECT DISTINCT - 45 / - 51 AS col1 FROM tab2
----
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5416
SELECT DISTINCT + col1 - + CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5416
SELECT DISTINCT + col1 - + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL col1 + - col2 * + 22 * + col0 AS col0 FROM tab2 cor0
----
-4127
-44557
-66027

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * + col2 col0 FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT ALL + cor0.col2 * col0 + - col0 + + col2 FROM tab1 AS cor0
----
213
3641
7696

query I rowsort
SELECT + col2 * cor0.col1 * - cor0.col2 FROM tab1 AS cor0
----
-119808
-32490
-75816

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * + col2 col2 FROM tab0 cor0
----
1
1089
6724

onlyif mysql # use DIV operator for integer division
query I rowsort label-5422
SELECT DISTINCT col2 DIV - col2 + col2 FROM tab0 AS cor0
----
0
32
81

skipif mysql # not compatible
query I rowsort label-5422
SELECT DISTINCT col2 / - col2 + col2 FROM tab0 AS cor0
----
0
32
81

query I rowsort
SELECT ALL col2 + + col1 * col2 FROM tab0 AS cor0
----
2871
7544
98

onlyif mysql # use DIV operator for integer division
query I rowsort label-5424
SELECT + col2 DIV col2 + col2 AS col0 FROM tab0 AS cor0
----
2
34
83

skipif mysql # not compatible
query I rowsort label-5424
SELECT + col2 / col2 + col2 AS col0 FROM tab0 AS cor0
----
2
34
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT ALL cor0.col2 * CAST ( col0 AS REAL ) + col2 col0 FROM tab2 cor0
----
2054
216
3040

query I rowsort
SELECT + + col1 * - ( - 65 ) AS col2 FROM tab0 cor0
----
5590
5915
6305

query I rowsort
SELECT ALL - - col1 * col2 + col2 * + col1 + col1 AS col1 FROM tab0 AS cor0
----
15015
291
5762

query I rowsort
SELECT col1 * + col1 * - 20 - + 88 FROM tab1
----
-13608
-2088
-3468

query I rowsort
SELECT ALL 18 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to 903ac227935c1532300db45a8537c595

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - col2 ) * col1 - tab2.col0 col0 FROM tab2
----
-1612
-725
-844

query I rowsort
SELECT DISTINCT + 24 AS col2 FROM tab0, tab0 AS cor0, tab0 cor1
----
24

query I rowsort
SELECT - 56 * cor0.col0 FROM tab0, tab2, tab2 AS cor0
----
27 values hashing to cf8f5643c6e5d48bd61bf212c9ea843b

query I rowsort
SELECT - tab1.col0 * + col0 + + col2 * col2 FROM tab1
----
-847
2816
2907

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5434
SELECT ALL CAST( cor0.col1 AS SIGNED ) AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to c61d27a0022e6d022371dc58819ab272

skipif mysql # not compatible
query I rowsort label-5434
SELECT ALL CAST ( cor0.col1 AS INTEGER ) AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to c61d27a0022e6d022371dc58819ab272

query I rowsort
SELECT DISTINCT ( 36 ) FROM tab1, tab2 AS cor0
----
36

query I rowsort
SELECT DISTINCT - col2 * 87 + col0 + col1 AS col2 FROM tab0
----
-2761
-6954
45

query I rowsort
SELECT ALL 82 + - 47 AS col2 FROM tab2, tab2 cor0, tab0, tab2 AS cor1
----
81 values hashing to ca814400b6361c20866ff8fe01717430

onlyif mysql # use DIV operator for integer division
query I rowsort label-5438
SELECT DISTINCT tab1.col1 DIV ( col2 ) + col2 AS col2 FROM tab1
----
54
57
96

skipif mysql # not compatible
query I rowsort label-5438
SELECT DISTINCT tab1.col1 / ( col2 ) + col2 AS col2 FROM tab1
----
54
57
96

query I rowsort
SELECT col2 * + col0 * col0 + col0 FROM tab1 AS cor0
----
233536
489
614480

query I rowsort
SELECT DISTINCT cor0.col2 * - 0 AS col0 FROM tab1 AS cor0
----
0

query I rowsort
SELECT DISTINCT - col2 + col1 + + ( - col1 ) * col2 FROM tab2
----
-1501
-667
-833

query I rowsort
SELECT 96 AS col1 FROM tab0, tab2 AS cor0, tab2 cor1
----
27 values hashing to f1d978c2d5bfc6f26e0907ac777be83e

query I rowsort
SELECT DISTINCT 13 AS col2 FROM tab1
----
13

query I rowsort
SELECT ALL tab0.col2 * + col0 AS col0 FROM tab0
----
35
7298
792

query I rowsort
SELECT DISTINCT + - 85 + + col2 AS col2 FROM tab1 AS cor0
----
-28
-31
11

query I rowsort
SELECT DISTINCT 80 AS col0 FROM tab0, tab1, tab0 AS cor0
----
80

query I rowsort
SELECT - - col0 * ( col0 ) FROM tab2 AS cor0
----
49
6084
6241

query I rowsort
SELECT ALL + col1 * - ( col0 ) + + col1 AS col0 FROM tab0 AS cor0
----
-1978
-3298
-8008

query I rowsort
SELECT DISTINCT + col2 + col2 * col0 * + col1 + - cor0.col1 AS col2 FROM tab0 cor0
----
3299
664109
68059

query I rowsort
SELECT ALL + + col0 + + ( - col0 ) * - col1 FROM tab1 AS cor0
----
1120
704
81

query I rowsort
SELECT ALL + col2 * + cor0.col2 + - col1 FROM tab2 cor0
----
1427
617
698

query I rowsort
SELECT ALL + cor0.col1 * 86 FROM tab2 cor0
----
1462
2666
5074

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5453
SELECT DISTINCT + CAST( col1 AS SIGNED ) * cor0.col0 AS col0 FROM tab0 AS cor0
----
2064
3395
8099

skipif mysql # not compatible
query I rowsort label-5453
SELECT DISTINCT + CAST ( col1 AS INTEGER ) * cor0.col0 AS col0 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT ALL ( - col1 ) FROM tab1 cor0
----
-10
-13
-26

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5455
SELECT DISTINCT - CAST( - col0 AS SIGNED ) + col0 col1 FROM tab0 AS cor0
----
178
48
70

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5455
SELECT DISTINCT - CAST ( - col0 AS INTEGER ) + col0 col1 FROM tab0 AS cor0
----
178
48
70

query I rowsort
SELECT ALL - cor0.col0 * + cor0.col2 AS col2 FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT - ( - cor0.col2 ) + + col2 FROM tab2 AS cor0
----
52
54
76

query I rowsort
SELECT DISTINCT ( - tab0.col0 * + col2 ) + 96 + col0 AS col2 FROM tab0
----
-672
-7113
96

query I rowsort
SELECT ALL ( col1 ) * col1 FROM tab1
----
100
169
676

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2, tab0 AS cor0 CROSS JOIN tab1, tab0, tab0 AS cor1
----
3645 values hashing to 862fba9ac85fdf2cec88a0bec0808b7e

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT CAST ( col0 AS REAL ) FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT ALL - col1 + col0 * - cor0.col0 FROM tab1 AS cor0
----
-35
-4106
-6413

query I rowsort
SELECT + + col0 * 49 FROM tab2 AS cor0
----
343
3822
3871

query I rowsort
SELECT DISTINCT col1 + + 63 * + col1 AS col1 FROM tab0 AS cor0
----
5504
5824
6208

query I rowsort
SELECT - 83 + - col0 - + col1 FROM tab1 AS cor0
----
-112
-157
-176

skipif mysql # not compatible
query I rowsort
SELECT ALL + CAST ( col0 AS REAL ) AS col2 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT 29 + - col2 FROM tab2 AS cor0
----
-9
2
3

query I rowsort
SELECT DISTINCT ( col1 ) * col0 FROM tab1 AS cor0
----
1040
640
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 0 * + col1 col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT - ( 12 ) * + col1 AS col2 FROM tab1 AS cor0
----
-120
-156
-312

onlyif mysql # use DIV operator for integer division
query I rowsort label-5471
SELECT - col0 + cor0.col1 DIV - 97 FROM tab1 AS cor0
----
-3
-64
-80

skipif mysql # not compatible
query I rowsort label-5471
SELECT - col0 + cor0.col1 / - 97 FROM tab1 AS cor0
----
-3
-64
-80

query I rowsort
SELECT - 63 * - col2 + - col0 FROM tab2 AS cor0
----
1560
1694
2315

query I rowsort
SELECT ALL - 40 FROM tab0, tab0 cor0, tab0 AS cor1
----
27 values hashing to 01aad4539198a6509248e086869f90a6

query I rowsort
SELECT ALL 58 FROM tab1 AS cor0
----
58
58
58

query I rowsort
SELECT - cor0.col0 AS col0 FROM tab1, tab0 cor0
----
9 values hashing to 09d8a912de1b8ab762e5ffbe028ce99e

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5476
SELECT CAST( col2 AS SIGNED ) * col0 col0 FROM tab2
----
189
2028
3002

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5476
SELECT CAST ( col2 AS INTEGER ) * col0 col0 FROM tab2
----
189
2028
3002

query I rowsort
SELECT col0 * col2 * + ( - col1 ) + - col2 * 5 AS col2 FROM tab2 AS cor0
----
-119782
-51224
-5994

query I rowsort
SELECT + col1 * col0 - col1 AS col1 FROM tab1 AS cor0
----
1027
52
630

query I rowsort
SELECT ( - col1 ) + 69 AS col1 FROM tab0 AS cor0
----
-17
-22
-28

query I rowsort
SELECT + 55 * - col2 * - 63 + + col0 * + col2 FROM tab1 AS cor0
----
187272
201153
340320

query I rowsort
SELECT - + 38 * + col2 FROM tab0 AS cor0
----
-1254
-3116
-38

query I rowsort
SELECT ALL + col0 + - 42 AS col2 FROM tab1
----
-39
22
38

query I rowsort
SELECT col0 * - col1 * 84 + - col0 FROM tab1 AS cor0
----
-53824
-6555
-87440

query I rowsort
SELECT + + col2 + - cor0.col1 + - col0 AS col2 FROM tab2 AS cor0
----
-11
-111
-58

query I rowsort
SELECT + - cor0.col2 * 23 + col1 + col0 * col2 AS col2 FROM tab0 AS cor0
----
109
119
5503

onlyif mysql # use DIV operator for integer division
query I rowsort label-5486
SELECT DISTINCT + col2 DIV col1 col0 FROM tab0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5486
SELECT DISTINCT + col2 / col1 col0 FROM tab0
----
0

query I rowsort
SELECT 93 FROM tab0, tab1 cor0, tab0 AS cor1
----
27 values hashing to 85ef191bf1b307f300b3fd49992fcae7

query I rowsort
SELECT ALL - 68 * + col1 FROM tab1
----
-1768
-680
-884

query I rowsort
SELECT - 81 AS col0 FROM tab1
----
-81
-81
-81

query I rowsort
SELECT + col0 * + col1 + col0 FROM tab0 AS cor0
----
2088
3430
8188

query I rowsort
SELECT ALL - cor0.col0 * + cor0.col0 FROM tab1, tab1 AS cor0
----
9 values hashing to b1a10d0ce1bd78a97a3f25900325a81f

query I rowsort
SELECT + + ( - col0 ) * - col0 FROM tab1 AS cor0
----
4096
6400
9

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab0, tab2 AS cor1, tab1 cor2
----
972 values hashing to 75a813ebd5ec5ec2e67a66d0593ff763

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1, tab1 cor1, tab2 AS cor2, tab1 AS cor3
----
3645 values hashing to 35707ade138fec4b370f5140a4cd2963

onlyif mysql # use DIV operator for integer division
query I rowsort label-5495
SELECT col0 DIV 33 FROM tab0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-5495
SELECT col0 / 33 FROM tab0
----
0
1
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 9 col1 FROM tab1
----
9
9
9

query I rowsort
SELECT + tab0.col1 * tab0.col2 * col2 FROM tab0
----
611884
93654
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 - + col2 * - col1 * 67 col0 FROM tab1 AS cor0
----
38254
83696
94071

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5499
SELECT ALL - CAST( NULL AS SIGNED ) * col1 + + cor0.col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5499
SELECT ALL - CAST ( NULL AS INTEGER ) * col1 + + cor0.col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col0 + - 40 * col0 AS col0 FROM tab0 AS cor0
----
-1435
-3649
-984

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5501
SELECT DISTINCT col0 + - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5501
SELECT DISTINCT col0 + - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + cor0.col1 + + 24 * - 58 AS col2 FROM tab1 AS cor0
----
-1366
-1379
-1382

query I rowsort
SELECT DISTINCT ( 92 ) FROM tab1, tab0 AS cor0
----
92

query I rowsort
SELECT DISTINCT col2 * 31 * + 34 AS col2 FROM tab2 AS cor0
----
27404
28458
40052

query I rowsort
SELECT DISTINCT + cor0.col1 * col2 - cor0.col1 FROM tab2 cor0
----
1475
629
806

query I rowsort
SELECT DISTINCT + col1 * + col2 + ( - col0 + - col2 ) AS col2 FROM tab1 AS cor0
----
1072
1347
449

query I rowsort
SELECT DISTINCT 38 AS col1 FROM tab1
----
38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * 22 * col1 col0 FROM tab2
----
21142
6358
76582

query I rowsort
SELECT 30 * col1 FROM tab0
----
2580
2730
2910

query I rowsort
SELECT + col2 * + 81 AS col0 FROM tab2
----
2106
2187
3078

query I rowsort
SELECT cor1.col1 * - 99 AS col1 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 4d472c8f0e43cd2f104f889a713993e4

query I rowsort
SELECT DISTINCT col0 * 97 AS col2 FROM tab0
----
2328
3395
8633

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5513
SELECT - CAST( - col1 AS SIGNED ) * cor0.col2 col2 FROM tab1 AS cor0
----
1248
1404
570

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5513
SELECT - CAST ( - col1 AS INTEGER ) * cor0.col2 col2 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT - col1 * 57 - col0 FROM tab1 AS cor0
----
-1485
-634
-821

query I rowsort
SELECT DISTINCT - col0 - 45 AS col0 FROM tab1
----
-109
-125
-48

query I rowsort
SELECT ALL - col2 - - 19 AS col1 FROM tab2
----
-19
-7
-8

query I rowsort
SELECT - + 81 * col1 + cor0.col2 AS col1 FROM tab2 AS cor0
----
-1339
-2484
-4753

query I rowsort
SELECT - 17 * col2 AS col2 FROM tab0 AS cor0
----
-1394
-17
-561

query I rowsort
SELECT - 54 + - col0 AS col2 FROM tab1 AS cor0
----
-118
-134
-57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + + col0 col0 FROM tab2 cor0
----
137
38
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-5521
SELECT DISTINCT 13 DIV col1 - col0 AS col2 FROM tab2 AS cor0
----
-7
-78
-79

skipif mysql # not compatible
query I rowsort label-5521
SELECT DISTINCT 13 / col1 - col0 AS col2 FROM tab2 AS cor0
----
-7
-78
-79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * col1 + - 27 col0 FROM tab2 AS cor0
----
1316
190
4575

query I rowsort
SELECT DISTINCT + + 0 AS col1 FROM tab1 AS cor0
----
0

query I rowsort
SELECT - col0 + col2 * - col0 AS col0 FROM tab0 AS cor0
----
-70
-7387
-816

query I rowsort
SELECT DISTINCT 73 + col1 FROM tab2
----
104
132
90

query I rowsort
SELECT + col0 * col1 + col0 * col0 FROM tab1
----
4736
7440
87

query I rowsort
SELECT ALL col0 * col2 + + 30 * col2 AS col1 FROM tab0
----
1782
65
9758

query I rowsort
SELECT ALL - col1 + col2 + + ( tab1.col0 ) AS col1 FROM tab1
----
111
163
31

query I rowsort
SELECT + col2 + + col1 * cor0.col2 AS col1 FROM tab1 AS cor0
----
1344
1458
627

query I rowsort
SELECT DISTINCT + cor0.col1 + - col0 * + ( col1 ) AS col0 FROM tab2 AS cor0
----
-1326
-186
-4543

query I rowsort
SELECT - col0 - col1 * 82 FROM tab1 AS cor0
----
-1146
-2135
-884

query I rowsort
SELECT ALL col0 + col1 * + 79 AS col1 FROM tab0 cor0
----
6818
7278
7698

query I rowsort
SELECT DISTINCT + col2 * + cor0.col1 AS col1 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT ALL - - cor0.col2 + - col2 * + 15 FROM tab0 AS cor0
----
-1148
-14
-462

query I rowsort
SELECT ALL + col1 * + cor0.col0 + + col1 AS col0 FROM tab2 AS cor0
----
1360
248
4661

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5536
SELECT + - col0 + + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5536
SELECT + - col0 + + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + - cor0.col2 + + 73 * col2 FROM tab1 cor0
----
3888
4104
6912

query I rowsort
SELECT DISTINCT + col0 + + ( col0 ) - + col2 FROM tab1 AS cor0
----
-48
64
71

query I rowsort
SELECT DISTINCT + + cor0.col2 - col1 * col0 AS col0 FROM tab2 AS cor0
----
-1305
-190
-4576

onlyif mysql # use DIV operator for integer division
query I rowsort label-5540
SELECT cor0.col0 * + col1 + + 85 DIV col1 AS col1 FROM tab1 AS cor0
----
1046
648
81

skipif mysql # not compatible
query I rowsort label-5540
SELECT cor0.col0 * + col1 + + 85 / col1 AS col1 FROM tab1 AS cor0
----
1046
648
81

query I rowsort
SELECT DISTINCT col0 * + cor0.col1 + 39 * + col2 + - 74 FROM tab2 AS cor0
----
1196
2751
5542

query I rowsort
SELECT - col2 + - ( + 10 ) AS col0 FROM tab1 cor0
----
-106
-64
-67

onlyif mysql # use DIV operator for integer division
query I rowsort label-5543
SELECT DISTINCT - col1 DIV 37 FROM tab0 cor0
----
-2

skipif mysql # not compatible
query I rowsort label-5543
SELECT DISTINCT - col1 / 37 FROM tab0 cor0
----
-2

query I rowsort
SELECT + col0 + col2 + 0 * + col1 FROM tab2 AS cor0
----
104
117
34

query I rowsort
SELECT DISTINCT + cor0.col1 * + col2 AS col1 FROM tab2 cor0
----
1534
646
837

onlyif mysql # use DIV operator for integer division
query I rowsort label-5546
SELECT DISTINCT + col0 DIV - tab0.col0 + - 77 * - tab0.col1 + tab0.col2 FROM tab0
----
6654
7088
7469

skipif mysql # not compatible
query I rowsort label-5546
SELECT DISTINCT + col0 / - tab0.col0 + - 77 * - tab0.col1 + tab0.col2 FROM tab0
----
6654
7088
7469

query I rowsort
SELECT ALL 44 * col2 + col0 * col1 * col2 FROM tab1
----
104064
38988
6588

onlyif mysql # use DIV operator for integer division
query I rowsort label-5548
SELECT DISTINCT cor0.col1 DIV col2 - 51 FROM tab1 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-5548
SELECT DISTINCT cor0.col1 / col2 - 51 FROM tab1 AS cor0
----
-51

query I rowsort
SELECT col2 * + ( 80 ) FROM tab1 AS cor0
----
4320
4560
7680

query I rowsort
SELECT DISTINCT + + col1 * - 25 AS col0 FROM tab2 AS cor0
----
-1475
-425
-775

query I rowsort
SELECT ALL - - col1 * 96 FROM tab2 AS cor0
----
1632
2976
5664

query I rowsort
SELECT + col0 - - 59 AS col0 FROM tab0 AS cor0
----
148
83
94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 60 col2 FROM tab0 AS cor0
----
60

query I rowsort
SELECT + 72 * - col0 - + col0 AS col0 FROM tab2 cor0
----
-511
-5694
-5767

query I rowsort
SELECT DISTINCT 81 AS col2 FROM tab1 cor0
----
81

query I rowsort
SELECT DISTINCT - ( + col0 ) * + col0 FROM tab0 AS cor0
----
-1225
-576
-7921

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5557
SELECT ALL + + CAST( NULL AS SIGNED ) * col0 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5557
SELECT ALL + + CAST ( NULL AS INTEGER ) * col0 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + - 3 * cor0.col0 + col2 AS col1 FROM tab0 AS cor0
----
-104
-185
-39

query I rowsort
SELECT ALL - ( 58 ) FROM tab2 AS cor0
----
-58
-58
-58

query I rowsort
SELECT + ( col1 ) + cor0.col1 FROM tab2 AS cor0
----
118
34
62

query I rowsort
SELECT col2 - + col2 * col2 AS col2 FROM tab1 AS cor0
----
-2862
-3192
-9120

query I rowsort
SELECT + + ( - col1 ) * + col0 + col1 AS col0 FROM tab0 AS cor0
----
-1978
-3298
-8008

onlyif mysql # use DIV operator for integer division
query I rowsort label-5563
SELECT ALL - col2 DIV + ( col2 ) + + 3 AS col0 FROM tab1 AS cor0
----
2
2
2

skipif mysql # not compatible
query I rowsort label-5563
SELECT ALL - col2 / + ( col2 ) + + 3 AS col0 FROM tab1 AS cor0
----
2
2
2

onlyif mysql # use DIV operator for integer division
query I rowsort label-5564
SELECT ALL - + col0 + ( col1 ) DIV - col0 FROM tab0 AS cor0
----
-27
-37
-90

skipif mysql # not compatible
query I rowsort label-5564
SELECT ALL - + col0 + ( col1 ) / - col0 FROM tab0 AS cor0
----
-27
-37
-90

query I rowsort
SELECT DISTINCT col1 * - col1 AS col2 FROM tab0 cor0
----
-7396
-8281
-9409

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 37 + 64 * col0 col2 FROM tab1 AS cor0
----
229
4133
5157

query I rowsort
SELECT ALL col0 * - cor0.col0 + + cor0.col1 FROM tab1 AS cor0
----
-4086
-6387
17

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5568
SELECT DISTINCT CAST( + col1 AS SIGNED ) col0 FROM tab0 cor0
----
86
91
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5568
SELECT DISTINCT CAST ( + col1 AS INTEGER ) col0 FROM tab0 cor0
----
86
91
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( col0 ) * cor0.col2 col1 FROM tab0 cor0
----
35
7298
792

query I rowsort
SELECT + 18 + - cor0.col0 AS col2 FROM tab1 cor0
----
-46
-62
15

query I rowsort
SELECT ALL - + 67 FROM tab1 AS cor0
----
-67
-67
-67

query I rowsort
SELECT + + cor0.col2 * + cor0.col0 AS col2 FROM tab0 AS cor0
----
35
7298
792

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( col2 ) * + col2 col1 FROM tab0 AS cor0
----
1
1089
6724

query I rowsort
SELECT ALL - ( + col1 ) * - col0 + + 89 FROM tab2
----
1432
306
4691

query I rowsort
SELECT ALL col1 + + tab2.col0 AS col0 FROM tab2
----
137
38
96

query I rowsort
SELECT ALL - col1 + ( - tab2.col1 ) FROM tab2
----
-118
-34
-62

query I rowsort
SELECT ALL + col0 + 34 AS col1 FROM tab0
----
123
58
69

query I rowsort
SELECT - tab0.col0 - 94 FROM tab0, tab2 AS cor0
----
9 values hashing to 4f68028fbbd32076bc26e3d49cb638db

query I rowsort
SELECT - col0 * 9 AS col0 FROM tab2 AS cor0
----
-63
-702
-711

query I rowsort
SELECT ALL col1 + 8 FROM tab2
----
25
39
67

onlyif mysql # use DIV operator for integer division
query I rowsort label-5581
SELECT + col2 DIV 72 AS col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5581
SELECT + col2 / 72 AS col2 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT - 62 * + col0 FROM tab0 AS cor0
----
-1488
-2170
-5518

query I rowsort
SELECT 29 + 86 AS col1 FROM tab1 AS cor0
----
115
115
115

query I rowsort
SELECT DISTINCT - col0 + col2 * col2 * 68 AS col2 FROM tab0 AS cor0
----
33
457143
74028

onlyif mysql # use DIV operator for integer division
query I rowsort label-5585
SELECT DISTINCT + col0 DIV 9 AS col1 FROM tab0 cor0
----
2
3
9

skipif mysql # not compatible
query I rowsort label-5585
SELECT DISTINCT + col0 / 9 AS col1 FROM tab0 cor0
----
2
3
9

query I rowsort
SELECT col2 * col0 + col1 * + col1 * col2 AS col2 FROM tab2 AS cor0
----
13984
26136
92534

query I rowsort
SELECT ALL + + ( + col2 ) + + col1 AS col0 FROM tab1 AS cor0
----
109
67
80

query I rowsort
SELECT + + col0 * col2 + - col1 * ( col1 ) FROM tab1 AS cor0
----
-514
3548
7511

query I rowsort
SELECT 6 + col0 FROM tab2 AS cor0
----
13
84
85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - col0 ) + col2 col2 FROM tab0 AS cor0
----
171
36
57

query I rowsort
SELECT ALL ( col1 ) * - col1 + 86 AS col0 FROM tab0 AS cor0
----
-7310
-8195
-9323

query I rowsort
SELECT DISTINCT 10 * - col2 AS col0 FROM tab0 AS cor0
----
-10
-330
-820

onlyif mysql # use DIV operator for integer division
query I rowsort label-5593
SELECT - col0 DIV 51 + + col0 AS col0 FROM tab2 AS cor0
----
7
77
78

skipif mysql # not compatible
query I rowsort label-5593
SELECT - col0 / 51 + + col0 AS col0 FROM tab2 AS cor0
----
7
77
78

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5594
SELECT ALL + + CAST( NULL AS SIGNED ) * col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5594
SELECT ALL + + CAST ( NULL AS INTEGER ) * col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort
SELECT ALL - CAST ( + 47 AS REAL ) * + col1 + col2 * - col1 FROM tab1 AS cor0
----
-1040
-1859
-2626

onlyif mysql # use DIV operator for integer division
query I rowsort label-5596
SELECT DISTINCT col1 + - 46 DIV col1 AS col2 FROM tab2 AS cor0
----
15
30
59

skipif mysql # not compatible
query I rowsort label-5596
SELECT DISTINCT col1 + - 46 / col1 AS col2 FROM tab2 AS cor0
----
15
30
59

query I rowsort
SELECT col0 * + col0 + col1 * - 17 * + col1 AS col2 FROM tab2
----
-16288
-53093
1328

query I rowsort
SELECT ALL tab2.col1 * col2 * - 14 - tab2.col0 AS col1 FROM tab2
----
-11725
-21554
-9123

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5599
SELECT ALL - col1 * - col0 * CAST( NULL AS DECIMAL ) AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5599
SELECT ALL - col1 * - col0 * CAST ( NULL AS REAL ) AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + ( col2 ) * 57 FROM tab2 AS cor0
----
1482
1539
2166

query I rowsort
SELECT DISTINCT + 24 * - col0 AS col1 FROM tab2 AS cor0
----
-168
-1872
-1896

onlyif mysql # use DIV operator for integer division
query I rowsort label-5602
SELECT ALL - 25 DIV + col0 AS col2 FROM tab2 cor0
----
-3
0
0

skipif mysql # not compatible
query I rowsort label-5602
SELECT ALL - 25 / + col0 AS col2 FROM tab2 cor0
----
-3
0
0

query I rowsort
SELECT DISTINCT - 28 + col0 AS col1 FROM tab1 AS cor0
----
-25
36
52

onlyif mysql # use DIV operator for integer division
query I rowsort label-5604
SELECT ALL cor0.col2 * col1 DIV col2 FROM tab0 AS cor0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-5604
SELECT ALL cor0.col2 * col1 / col2 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT ALL - - col0 * + ( 69 ) - + col1 AS col0 FROM tab2 AS cor0
----
452
5323
5434

query I rowsort
SELECT + 32 FROM tab0, tab0 cor0, tab1 AS cor1
----
27 values hashing to cf4f01ac97eb83445b1721f3ae28961a

query I rowsort
SELECT ALL + - col0 * - col1 AS col1 FROM tab2 cor0
----
1343
217
4602

query I rowsort
SELECT ALL - tab0.col0 - + col2 * col1 FROM tab0
----
-132
-2862
-7551

query I rowsort
SELECT + col1 - + 60 * col2 AS col2 FROM tab2 AS cor0
----
-1501
-1589
-2263

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5610
SELECT col1 - - CAST( NULL AS SIGNED ) * + ( - cor0.col0 ) * ( col2 * col1 + CAST( NULL AS DECIMAL ) ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5610
SELECT col1 - - CAST ( NULL AS INTEGER ) * + ( - cor0.col0 ) * ( col2 * col1 + CAST ( NULL AS REAL ) ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + ( 47 ) * cor0.col1 - - 23 FROM tab2 AS cor0
----
1480
2796
822

query I rowsort
SELECT - - ( ( col1 ) ) + cor0.col0 AS col0 FROM tab0 AS cor0
----
110
132
180

query I rowsort
SELECT ALL + 53 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to fede6033dee346dbd272085c05724fda

onlyif mysql # use DIV operator for integer division
query I rowsort label-5614
SELECT col2 + col2 * 74 DIV cor0.col0 FROM tab0 AS cor0
----
134
150
3

skipif mysql # not compatible
query I rowsort label-5614
SELECT col2 + col2 * 74 / cor0.col0 FROM tab0 AS cor0
----
134
150
3

onlyif mysql # use DIV operator for integer division
query I rowsort label-5615
SELECT - - cor0.col1 + col2 DIV col0 FROM tab2 AS cor0
----
17
34
59

skipif mysql # not compatible
query I rowsort label-5615
SELECT - - cor0.col1 + col2 / col0 FROM tab2 AS cor0
----
17
34
59

query I rowsort
SELECT 47 AS col1 FROM tab0, tab2 cor0, tab1 AS cor1
----
27 values hashing to 3f991632e9c7c5142e1d80857cd10a2d

query I rowsort
SELECT ALL + 94 * col1 FROM tab0
----
8084
8554
9118

query I rowsort
SELECT tab2.col0 + + col0 * + 35 AS col0 FROM tab2
----
252
2808
2844

query I rowsort
SELECT ALL - tab0.col1 * col0 * - ( + col0 * col1 ) AS col2 FROM tab0
----
11526025
4260096
65593801

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5620
SELECT - CAST( col1 AS SIGNED ) * col1 FROM tab2 cor0
----
-289
-3481
-961

skipif mysql # not compatible
query I rowsort label-5620
SELECT - CAST ( col1 AS INTEGER ) * col1 FROM tab2 cor0
----
-289
-3481
-961

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5621
SELECT CAST( col0 AS SIGNED ) * - cor0.col0 + + col0 + col0 FROM tab1 AS cor0
----
-3
-3968
-6240

skipif mysql # not compatible
query I rowsort label-5621
SELECT CAST ( col0 AS INTEGER ) * - cor0.col0 + + col0 + col0 FROM tab1 AS cor0
----
-3
-3968
-6240

query I rowsort
SELECT ALL 96 + + tab2.col2 * col0 + - ( + col2 + + col2 ) * - col0 AS col1 FROM tab2
----
6180
663
9102

query I rowsort
SELECT ALL + ( col1 ) * col2 * - ( col2 ) AS col1 FROM tab1 AS cor0
----
-119808
-32490
-75816

query I rowsort
SELECT ALL + ( 56 ) + col2 * + 48 AS col2 FROM tab1 cor0
----
2648
2792
4664

query I rowsort
SELECT DISTINCT 69 FROM tab0 AS cor0
----
69

query I rowsort
SELECT DISTINCT col1 * 73 FROM tab2 AS cor0
----
1241
2263
4307

query I rowsort
SELECT 49 * - 16 + col0 FROM tab1 AS cor0
----
-704
-720
-781

query I rowsort
SELECT + - cor0.col1 + + col0 + col1 * col2 FROM tab2 AS cor0
----
1553
708
813

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5629
SELECT DISTINCT + CAST( + 42 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
42

skipif mysql # not compatible
query I rowsort label-5629
SELECT DISTINCT + CAST ( + 42 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
42

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - cor0.col0 col0 FROM tab2 cor0
----
-7
-78
-79

query I rowsort
SELECT + + col1 + col1 * - col1 * - ( cor0.col0 ) AS col0 FROM tab0 cor0
----
177590
329412
737100

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5632
SELECT DISTINCT CAST( cor0.col0 AS SIGNED ) * - col1 FROM tab0 AS cor0
----
-2064
-3395
-8099

skipif mysql # not compatible
query I rowsort label-5632
SELECT DISTINCT CAST ( cor0.col0 AS INTEGER ) * - col1 FROM tab0 AS cor0
----
-2064
-3395
-8099

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5633
SELECT + - CAST( NULL AS SIGNED ) * + 13 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5633
SELECT + - CAST ( NULL AS INTEGER ) * + 13 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + cor0.col0 + ( col1 ) * + col0 * - col1 + cor0.col1 FROM tab2 AS cor0
----
-22735
-271381
-6689

query I rowsort
SELECT col1 + + col0 * - 57 AS col1 FROM tab2 AS cor0
----
-368
-4387
-4486

query I rowsort
SELECT ALL 27 * col0 + col2 AS col1 FROM tab0 AS cor0
----
2485
681
946

query I rowsort
SELECT DISTINCT 88 * + col0 - + col1 AS col1 FROM tab1 AS cor0
----
238
5622
7027

query I rowsort
SELECT DISTINCT 33 AS col1 FROM tab1 AS cor0
----
33

query I rowsort
SELECT ALL - cor0.col1 + cor0.col1 AS col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - col0 * + col1 * + col2 FROM tab1 AS cor0
----
-36480
-4212
-99840

query I rowsort
SELECT col0 * - 51 * cor0.col0 - col0 AS col1 FROM tab2 AS cor0
----
-2506
-310362
-318370

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5642
SELECT DISTINCT CAST( 42 AS SIGNED ) AS col2 FROM tab1, tab2 AS cor0
----
42

skipif mysql # not compatible
query I rowsort label-5642
SELECT DISTINCT CAST ( 42 AS INTEGER ) AS col2 FROM tab1, tab2 AS cor0
----
42

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5643
SELECT tab2.col1 + CAST( col1 * + col0 AS SIGNED ) - 63 col0 FROM tab2
----
1297
185
4598

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5643
SELECT tab2.col1 + CAST ( col1 * + col0 AS INTEGER ) - 63 col0 FROM tab2
----
1297
185
4598

onlyif mysql # use DIV operator for integer division
query I rowsort label-5644
SELECT ALL + 0 DIV 10 col0 FROM tab2 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5644
SELECT ALL + 0 / 10 col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT 17 AS col1 FROM tab1, tab1 cor0
----
9 values hashing to 43298e43365fccb5146ea32003753c92

query I rowsort
SELECT + col0 * - 67 FROM tab2
----
-469
-5226
-5293

query I rowsort
SELECT - tab0.col1 * 87 FROM tab0
----
-7482
-7917
-8439

query I rowsort
SELECT ALL + 59 AS col1 FROM tab2, tab2 cor0
----
9 values hashing to a9b9966d749d1b2ce5955ed12394f9bc

query I rowsort
SELECT + col1 * - 54 FROM tab1 AS cor0
----
-1404
-540
-702

skipif mysql # not compatible
query I rowsort
SELECT + col2 - - CAST ( 37 AS REAL ) AS col0 FROM tab1
----
133
91
94

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab0 cor0, tab0, tab2 AS cor1
----
972 values hashing to d41be7437523f0dba2158c7f0439f329

query I rowsort
SELECT 70 AS col0 FROM tab0 AS cor0
----
70
70
70

query I rowsort
SELECT ALL - col0 + col2 * col0 FROM tab1 cor0
----
159
3584
7600

query I rowsort
SELECT DISTINCT + cor0.col1 * 32 AS col1 FROM tab2 AS cor0
----
1888
544
992

query I rowsort
SELECT + col1 * 60 + col2 FROM tab0 AS cor0
----
5193
5542
5821

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5656
SELECT + col0 * - CAST( col0 AS SIGNED ) AS col0 FROM tab0
----
-1225
-576
-7921

skipif mysql # not compatible
query I rowsort label-5656
SELECT + col0 * - CAST ( col0 AS INTEGER ) AS col0 FROM tab0
----
-1225
-576
-7921

onlyif mysql # use DIV operator for integer division
query I rowsort label-5657
SELECT DISTINCT + col1 + 72 DIV - col0 AS col0 FROM tab2
----
17
21
59

skipif mysql # not compatible
query I rowsort label-5657
SELECT DISTINCT + col1 + 72 / - col0 AS col0 FROM tab2
----
17
21
59

query I rowsort
SELECT ALL 30 + 37 FROM tab2
----
67
67
67

query I rowsort
SELECT ALL tab1.col2 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79

query I rowsort
SELECT + tab0.col0 + 81 AS col1 FROM tab0
----
105
116
170

query I rowsort
SELECT 22 + 5 AS col0 FROM tab1
----
27
27
27

query I rowsort
SELECT ALL + - 53 AS col1 FROM tab1 cor0
----
-53
-53
-53

query I rowsort
SELECT DISTINCT 18 AS col2 FROM tab1, tab0 AS cor0
----
18

query I rowsort
SELECT + - col1 + col2 + col1 FROM tab1 AS cor0
----
54
57
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 22 col1 FROM tab1 AS cor0
----
-22
-22
-22

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5666
SELECT - - CAST( NULL AS SIGNED ) + - ( col1 ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5666
SELECT - - CAST ( NULL AS INTEGER ) + - ( col1 ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT ( col0 ) + col0 AS col2 FROM tab1 AS cor0
----
128
160
6

query I rowsort
SELECT - 70 + - tab0.col2 AS col2 FROM tab0
----
-103
-152
-71

query I rowsort
SELECT + col1 + + col0 AS col1 FROM tab2
----
137
38
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-5670
SELECT tab0.col0 DIV col1 + + ( col2 * + tab0.col0 ) AS col0 FROM tab0
----
35
7298
792

skipif mysql # not compatible
query I rowsort label-5670
SELECT tab0.col0 / col1 + + ( col2 * + tab0.col0 ) AS col0 FROM tab0
----
35
7298
792

query I rowsort
SELECT DISTINCT + col1 * - col1 + + cor0.col1 FROM tab0 AS cor0
----
-7310
-8190
-9312

query I rowsort
SELECT - + 77 + cor0.col2 FROM tab1 AS cor0
----
-20
-23
19

query I rowsort
SELECT ALL + + col1 + + col1 AS col0 FROM tab1 AS cor0
----
20
26
52

query I rowsort
SELECT ALL - col1 + col2 + + col0 AS col0 FROM tab0 AS cor0
----
-29
-61
80

query I rowsort
SELECT DISTINCT - col0 * + 94 + - 97 * col1 FROM tab0 cor0
----
-10598
-12699
-17193

query I rowsort
SELECT DISTINCT + + col2 * - ( col2 ) AS col0 FROM tab2 cor0
----
-1444
-676
-729

query I rowsort
SELECT ALL + - col1 * col1 * cor0.col2 + - col2 FROM tab1 cor0
----
-16320
-36558
-5757

query I rowsort
SELECT col0 * ( col2 ) FROM tab0 cor0
----
35
7298
792

query I rowsort
SELECT DISTINCT - col1 * - col1 - col1 * + col1 AS col1 FROM tab1 AS cor0
----
0

query I rowsort
SELECT DISTINCT - col2 - - cor0.col0 FROM tab0 AS cor0
----
-9
34
7

query I rowsort
SELECT DISTINCT col0 + - 85 FROM tab2 cor0
----
-6
-7
-78

onlyif mysql # use DIV operator for integer division
query I rowsort label-5682
SELECT DISTINCT - col0 * ( 65 + + col2 ) DIV + col1 FROM tab0 AS cor0
----
-143
-23
-27

skipif mysql # not compatible
query I rowsort label-5682
SELECT DISTINCT - col0 * ( 65 + + col2 ) / + col1 FROM tab0 AS cor0
----
-143
-23
-27

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * + 85 col0 FROM tab0 AS cor0
----
-2805
-6970
-85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * + 45 col0 FROM tab1 AS cor0
----
1170
450
585

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + col2 col2 FROM tab0 AS cor0
----
164
2
66

query I rowsort
SELECT ALL col2 * col0 - 40 * col2 AS col2 FROM tab1 AS cor0
----
-1998
1368
3840

query I rowsort
SELECT col1 + + col1 AS col1 FROM tab2 cor0
----
118
34
62

query I rowsort
SELECT - + 53 - + col0 FROM tab2 AS cor0
----
-131
-132
-60

query I rowsort
SELECT ALL - col0 * - col0 + + col2 FROM tab0 cor0
----
1226
609
8003

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 90 col2 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 5d25a546acf3ae171e731e50adc0112e

query I rowsort
SELECT - cor0.col0 * 51 + col1 * + col2 AS col0 FROM tab2 AS cor0
----
-2444
-3383
480

onlyif mysql # use DIV operator for integer division
query I rowsort label-5692
SELECT col2 DIV ( - col0 ) FROM tab0 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-5692
SELECT col2 / ( - col0 ) FROM tab0 AS cor0
----
-1
0
0

query I rowsort
SELECT col2 + + ( col2 * col1 ) AS col2 FROM tab1 AS cor0
----
1344
1458
627

query I rowsort
SELECT ALL 5 FROM tab2, tab0, tab1 AS cor0
----
27 values hashing to 6797d40099023779b89feb627d94a3e7

query I rowsort
SELECT DISTINCT 96 FROM tab2, tab1, tab2 AS cor0
----
96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5696
SELECT ALL tab2.col0 * col2 + CAST( NULL AS SIGNED ) * + tab2.col0 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5696
SELECT ALL tab2.col0 * col2 + CAST ( NULL AS INTEGER ) * + tab2.col0 AS col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT + 63 * col0 AS col1 FROM tab1
----
189
4032
5040

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5698
SELECT col0 + + CAST( NULL AS DECIMAL ) AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5698
SELECT col0 + + CAST ( NULL AS REAL ) AS col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT + ( + 24 ) * - tab0.col1 FROM tab0, tab1, tab1 AS cor0, tab2
----
81 values hashing to 5a7d51d596162d71d4822f281d83d736

query I rowsort
SELECT ALL 95 AS col2 FROM tab1, tab2, tab1 AS cor0, tab1 AS cor1
----
81 values hashing to 9896fbc7c98abe84cb585e6f5f25b58a

onlyif mysql # use DIV operator for integer division
query I rowsort label-5701
SELECT ALL - col0 DIV + 94 AS col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5701
SELECT ALL - col0 / + 94 AS col2 FROM tab2
----
0
0
0

query I rowsort
SELECT + ( tab0.col1 + + col0 ) FROM tab0
----
110
132
180

query I rowsort
SELECT DISTINCT - + ( 19 ) + - col1 AS col0 FROM tab1 cor0
----
-29
-32
-45

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 9 + col0 * col1 * + col1 col2 FROM tab2 AS cor0
----
22840
271527
6736

query I rowsort
SELECT DISTINCT + + 58 + col0 AS col2 FROM tab1 AS cor0
----
122
138
61

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5706
SELECT ALL - - CAST( NULL AS SIGNED ) * + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5706
SELECT ALL - - CAST ( NULL AS INTEGER ) * + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-5707
SELECT ALL col1 DIV + col1 AS col1 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5707
SELECT ALL col1 / + col1 AS col1 FROM tab1 AS cor0
----
1
1
1

query I rowsort
SELECT ALL col0 * col2 * cor0.col1 AS col0 FROM tab1 AS cor0
----
36480
4212
99840

query I rowsort
SELECT DISTINCT + + ( - col2 ) * + col1 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT ALL + - 3 AS col1 FROM tab2 AS cor0
----
-3
-3
-3

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5711
SELECT ( tab1.col1 + CAST( NULL AS SIGNED ) ) FROM tab1, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-5711
SELECT ( tab1.col1 + CAST ( NULL AS INTEGER ) ) FROM tab1, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT - 84 AS col1 FROM tab1 AS cor0
----
-84
-84
-84

query I rowsort
SELECT - 98 + col0 FROM tab1 AS cor0
----
-18
-34
-95

query I rowsort
SELECT DISTINCT + + 74 + + col2 + cor0.col2 FROM tab0 AS cor0
----
140
238
76

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5715
SELECT ALL 83 + col0 * - CAST( + col2 AS SIGNED ) FROM tab1 AS cor0
----
-3565
-7597
-79

skipif mysql # not compatible
query I rowsort label-5715
SELECT ALL 83 + col0 * - CAST ( + col2 AS INTEGER ) FROM tab1 AS cor0
----
-3565
-7597
-79

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5716
SELECT DISTINCT ( - col2 + - col0 ) * + CAST( NULL AS DECIMAL ) * - col0 col1 FROM tab0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5716
SELECT DISTINCT ( - col2 + - col0 ) * + CAST ( NULL AS REAL ) * - col0 col1 FROM tab0
----
NULL

query I rowsort
SELECT + 64 AS col2 FROM tab0
----
64
64
64

query I rowsort
SELECT DISTINCT 77 * + 88 FROM tab2, tab0, tab0 AS cor0
----
6776

query I rowsort
SELECT 54 * 29 FROM tab1, tab0, tab0 AS cor0
----
27 values hashing to 87d55567340cc7c7e3577ae786ce2572

query I rowsort
SELECT DISTINCT 75 AS col1 FROM tab2, tab0 AS cor0
----
75

query I rowsort
SELECT - + 88 * - col2 FROM tab0 AS cor0
----
2904
7216
88

query I rowsort
SELECT - 54 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 4ecdb0f1b85f0d4fdc3a826efd9f2342

query I rowsort
SELECT DISTINCT + - col2 * + col0 AS col1 FROM tab1 cor0
----
-162
-3648
-7680

query I rowsort
SELECT - - col2 + + col1 * ( cor0.col2 ) AS col1 FROM tab0 cor0
----
2871
7544
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 27 col2 FROM tab0 cor0
----
27
27
27

query I rowsort
SELECT col2 + - col2 * col0 AS col1 FROM tab1 AS cor0
----
-108
-3591
-7584

query I rowsort
SELECT + 11 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to f4d199584b44732f1a897e6691b4ea00

query I rowsort
SELECT col1 * - 16 FROM tab0 cor0
----
-1376
-1456
-1552

query I rowsort
SELECT DISTINCT + - col1 + - col0 * 57 * - col1 AS col1 FROM tab2 AS cor0
----
12338
262255
76534

query I rowsort
SELECT + col0 + ( + col1 ) AS col1 FROM tab2 AS cor0
----
137
38
96

query I rowsort
SELECT col2 + + 72 * + 31 AS col1 FROM tab0 cor0
----
2233
2265
2314

query I rowsort
SELECT ALL 4 FROM tab1, tab1 cor0
----
9 values hashing to 6fec965b60b9885c4af73e85422cfd9b

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + - col1 col1 FROM tab2 cor0
----
-118
-34
-62

query IIIIIIIIIIII rowsort
SELECT * FROM tab2, tab2 cor0, tab2 cor1, tab1 AS cor2
----
972 values hashing to 263f0eb7d5dfd4076c74918bc141bd9b

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5735
SELECT ALL + col1 * CAST( + 63 AS SIGNED ) AS col1 FROM tab0
----
5418
5733
6111

skipif mysql # not compatible
query I rowsort label-5735
SELECT ALL + col1 * CAST ( + 63 AS INTEGER ) AS col1 FROM tab0
----
5418
5733
6111

query I rowsort
SELECT 55 * + cor0.col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to a9ac1870cd1d3b91eef55464077bbaad

query I rowsort
SELECT - + 61 AS col1 FROM tab0 AS cor0
----
-61
-61
-61

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5738
SELECT ALL + col0 + CAST( - col1 AS SIGNED ) * + col0 - 52 * + col1 * col0 FROM tab0
----
-109368
-179900
-429158

skipif mysql # not compatible
query I rowsort label-5738
SELECT ALL + col0 + CAST ( - col1 AS INTEGER ) * + col0 - 52 * + col1 * col0 FROM tab0
----
-109368
-179900
-429158

query I rowsort
SELECT DISTINCT col2 + col2 * col0 - tab1.col2 FROM tab1
----
162
3648
7680

query I rowsort
SELECT + - cor0.col0 * - 94 FROM tab2 AS cor0
----
658
7332
7426

query I rowsort
SELECT - cor0.col0 - + ( + 16 ) FROM tab0 AS cor0
----
-105
-40
-51

query I rowsort
SELECT + col0 + ( col1 ) AS col0 FROM tab1 AS cor0
----
29
74
93

query I rowsort
SELECT DISTINCT + col1 + ( 91 + + col2 ) AS col1 FROM tab0
----
189
210
264

query I rowsort
SELECT col2 - - col1 AS col2 FROM tab0 AS cor0
----
119
173
98

query I rowsort
SELECT + + 16 * col0 FROM tab0 cor0
----
1424
384
560

query I rowsort
SELECT ( - col2 ) * - col1 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT + 7 * cor0.col0 AS col0 FROM tab0 AS cor0
----
168
245
623

onlyif mysql # use DIV operator for integer division
query I rowsort label-5748
SELECT ALL - + col2 DIV col0 FROM tab2 cor0
----
-3
0
0

skipif mysql # not compatible
query I rowsort label-5748
SELECT ALL - + col2 / col0 FROM tab2 cor0
----
-3
0
0

query I rowsort
SELECT DISTINCT + - ( + 22 ) AS col0 FROM tab2 AS cor0
----
-22

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 71 col0 FROM tab0, tab1 cor0
----
9 values hashing to c1aace5d5fe27721cc925552513c85c0

query I rowsort
SELECT ALL + col2 * - col1 * + col1 FROM tab0 AS cor0
----
-244068
-679042
-9409

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 63 * - cor0.col0 col1 FROM tab0 AS cor0
----
-1512
-2205
-5607

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + + col2 * - col0 col0 FROM tab2 AS cor0
----
-182
-1950
-2923

query I rowsort
SELECT + col2 * + 6 FROM tab0 AS cor0
----
198
492
6

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5755
SELECT DISTINCT CAST( 35 AS SIGNED ) + cor0.col2 * col2 * + col1 FROM tab2 AS cor0
----
22634
24583
39919

skipif mysql # not compatible
query I rowsort label-5755
SELECT DISTINCT CAST ( 35 AS INTEGER ) + cor0.col2 * col2 * + col1 FROM tab2 AS cor0
----
22634
24583
39919

query I rowsort
SELECT DISTINCT - col2 * col1 + col1 * ( cor0.col2 ) AS col2 FROM tab0 AS cor0
----
0

query I rowsort
SELECT col2 + cor0.col0 * - col2 FROM tab2 AS cor0
----
-162
-2002
-2964

query I rowsort
SELECT DISTINCT 96 FROM tab1, tab1 AS cor0, tab0 cor1
----
96

query I rowsort
SELECT col2 + tab1.col0 * 60 FROM tab1
----
234
3897
4896

query I rowsort
SELECT DISTINCT 29 * - tab2.col1 FROM tab2
----
-1711
-493
-899

onlyif mysql # use DIV operator for integer division
query I rowsort label-5761
SELECT - + col0 + - cor0.col2 DIV 93 AS col0 FROM tab0 AS cor0
----
-24
-35
-89

skipif mysql # not compatible
query I rowsort label-5761
SELECT - + col0 + - cor0.col2 / 93 AS col0 FROM tab0 AS cor0
----
-24
-35
-89

query I rowsort
SELECT + - 41 + - cor0.col1 AS col2 FROM tab1 cor0
----
-51
-54
-67

query I rowsort
SELECT ALL cor0.col1 * + col1 AS col0 FROM tab1 AS cor0
----
100
169
676

query I rowsort
SELECT ALL - - col1 * col0 + + col2 FROM tab2 AS cor0
----
1381
244
4628

query I rowsort
SELECT ALL 77 * col1 * - col0 AS col0 FROM tab2
----
-103411
-16709
-354354

query I rowsort
SELECT - - cor0.col0 + - ( col2 ) * col1 * col2 FROM tab0 AS cor0
----
-611795
-62
-93630

query I rowsort
SELECT DISTINCT + - cor0.col1 * col0 AS col1 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT col2 + + ( 50 + cor0.col1 ) * col0 FROM tab1 AS cor0
----
282
3897
5136

query I rowsort
SELECT - col1 + col0 * 66 * + col0 FROM tab2 AS cor0
----
3203
401485
411889

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5770
SELECT DISTINCT - col2 * - col0 * CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5770
SELECT DISTINCT - col2 * - col0 * CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT - col2 * col0 * col0 FROM tab0
----
-1225
-19008
-649522

query I rowsort
SELECT ALL + - col2 * - 54 + + col0 * col2 AS col2 FROM tab1 AS cor0
----
12864
3078
6726

onlyif mysql # use DIV operator for integer division
query I rowsort label-5773
SELECT + col0 DIV 93 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5773
SELECT + col0 / 93 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT - col2 * - col2 * + col0 FROM tab1 cor0
----
207936
737280
8748

query I rowsort
SELECT - + col2 * + 65 AS col0 FROM tab1 AS cor0
----
-3510
-3705
-6240

query I rowsort
SELECT DISTINCT - col2 + - 84 * col1 * cor0.col0 + - 37 * + col2 FROM tab2 AS cor0
----
-114256
-19254
-387556

query I rowsort
SELECT ALL + col2 * + col0 + - col0 + col1 * ( col1 ) FROM tab2 AS cor0
----
1143
3212
5431

query I rowsort
SELECT - col2 * ( - 77 ) AS col1 FROM tab1
----
4158
4389
7392

query I rowsort
SELECT ALL 78 + 86 FROM tab2, tab1 AS cor0
----
9 values hashing to 73dfaab5bffad64399ffa17616b9603e

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5780
SELECT CAST( col0 AS SIGNED ) * col1 - col1 * col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5780
SELECT CAST ( col0 AS INTEGER ) * col1 - col1 * col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + col0 - col0 AS col2 FROM tab0
----
0

query I rowsort
SELECT + col1 * 24 FROM tab0
----
2064
2184
2328

query I rowsort
SELECT col2 + - col2 - + col1 FROM tab1
----
-10
-13
-26

query I rowsort
SELECT + col1 + col1 + col2 * col0 AS col0 FROM tab2
----
2146
251
3036

query I rowsort
SELECT ALL + + col2 + cor0.col0 * col2 AS col0 FROM tab1 cor0
----
216
3705
7776

query I rowsort
SELECT DISTINCT - col2 * - 18 + + col1 + - col1 AS col2 FROM tab1 AS cor0
----
1026
1728
972

query I rowsort
SELECT DISTINCT - + col1 * col2 + 80 FROM tab2 AS cor0
----
-1454
-566
-757

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5788
SELECT ALL CAST( NULL AS SIGNED ) FROM tab0, tab2 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-5788
SELECT ALL CAST ( NULL AS INTEGER ) FROM tab0, tab2 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5789
SELECT ALL col0 + col1 * - col0 * CAST( + 53 * - col0 AS SIGNED ) FROM tab2
----
19024746
5623220
80514

skipif mysql # not compatible
query I rowsort label-5789
SELECT ALL col0 + col1 * - col0 * CAST ( + 53 * - col0 AS INTEGER ) FROM tab2
----
19024746
5623220
80514

query I rowsort
SELECT ALL + - 81 * col1 FROM tab1 cor0
----
-1053
-2106
-810

query I rowsort
SELECT col2 * col1 + 3 * - col0 AS col0 FROM tab0 cor0
----
-8
2766
7195

query I rowsort
SELECT DISTINCT 42 + col2 + - col2 FROM tab2 AS cor0
----
42

query I rowsort
SELECT ALL cor0.col0 + col0 AS col2 FROM tab1 AS cor0
----
128
160
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 72 col2 FROM tab1, tab0, tab1 AS cor0, tab2
----
72

query I rowsort
SELECT ALL ( 88 ) AS col2 FROM tab0
----
88
88
88

query I rowsort
SELECT - col0 + 1 AS col1 FROM tab2
----
-6
-77
-78

query I rowsort
SELECT ALL - col2 + 93 * col2 * - 99 FROM tab0
----
-303864
-755056
-9208

query I rowsort
SELECT ALL 26 FROM tab1 AS cor0
----
26
26
26

query I rowsort
SELECT DISTINCT - col0 * cor0.col1 AS col0 FROM tab1 AS cor0
----
-1040
-640
-78

onlyif mysql # use DIV operator for integer division
query I rowsort label-5800
SELECT ALL - col1 DIV col1 + 49 + col1 FROM tab0 AS cor0
----
134
139
145

skipif mysql # not compatible
query I rowsort label-5800
SELECT ALL - col1 / col1 + 49 + col1 FROM tab0 AS cor0
----
134
139
145

query I rowsort
SELECT + ( cor0.col0 ) * + col1 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT ALL - + 72 + col0 * - col2 FROM tab2 AS cor0
----
-2100
-261
-3074

query I rowsort
SELECT DISTINCT 50 * cor0.col1 - + col1 AS col0 FROM tab1 AS cor0
----
1274
490
637

query I rowsort
SELECT ALL + 1 FROM tab1 cor0
----
1
1
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-5805
SELECT ALL col1 DIV + col2 + - col1 AS col0 FROM tab0 AS cor0
----
-84
-90
0

skipif mysql # not compatible
query I rowsort label-5805
SELECT ALL col1 / + col2 + - col1 AS col0 FROM tab0 AS cor0
----
-84
-90
0

query I rowsort
SELECT DISTINCT + col2 * - col2 + 57 AS col0 FROM tab0 AS cor0
----
-1032
-6667
56

query I rowsort
SELECT ALL + col2 * + col2 + col1 FROM tab2 AS cor0
----
1461
735
760

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( col0 ) col0 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT + 56 * col2 AS col0 FROM tab0 AS cor0
----
1848
4592
56

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

query I rowsort
SELECT DISTINCT - 60 * col0 FROM tab0 cor0
----
-1440
-2100
-5340

query I rowsort
SELECT - col2 * cor0.col0 + col0 * col0 FROM tab2 AS cor0
----
-140
3239
4056

query I rowsort
SELECT DISTINCT col1 + + col1 FROM tab1 cor0
----
20
26
52

query I rowsort
SELECT DISTINCT - - col2 * + cor0.col1 + col1 * - col2 * - col0 FROM tab0 AS cor0
----
3492
671580
70950

query I rowsort
SELECT ALL + + col2 + + cor0.col1 * col2 AS col0 FROM tab2 AS cor0
----
1560
684
864

onlyif mysql # use DIV operator for integer division
query I rowsort label-5816
SELECT + col2 * col1 DIV col1 AS col0 FROM tab1 AS cor0
----
54
57
96

skipif mysql # not compatible
query I rowsort label-5816
SELECT + col2 * col1 / col1 AS col0 FROM tab1 AS cor0
----
54
57
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col1 col1 FROM tab2 cor0
----
17
31
59

query I rowsort
SELECT - - 48 AS col0 FROM tab1 AS cor0
----
48
48
48

onlyif mysql # use DIV operator for integer division
query I rowsort label-5819
SELECT ALL col0 + col1 DIV col1 col1 FROM tab0 AS cor0
----
25
36
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5819
SELECT ALL col0 + col1 / col1 col1 FROM tab0 AS cor0
----
25
36
90

onlyif mysql # use DIV operator for integer division
query I rowsort label-5820
SELECT DISTINCT - col1 DIV col2 AS col2 FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-5820
SELECT DISTINCT - col1 / col2 AS col2 FROM tab1 cor0
----
0

query I rowsort
SELECT DISTINCT - - 98 * - col1 + col0 AS col2 FROM tab0 AS cor0
----
-8404
-8829
-9471

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5822
SELECT + CAST( NULL AS SIGNED ) - tab2.col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5822
SELECT + CAST ( NULL AS INTEGER ) - tab2.col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - col0 + - col0 + + col2 AS col0 FROM tab2
----
-120
-130
13

query I rowsort
SELECT ALL + 84 + + col2 * + col2 AS col0 FROM tab1
----
3000
3333
9300

query I rowsort
SELECT - col2 * + col0 + + col1 + - col1 * - col0 FROM tab0 AS cor0
----
1358
3457
892

query I rowsort
SELECT cor0.col1 * col2 + col0 * - col1 + col0 AS col2 FROM tab1 AS cor0
----
-6
1329
288

query I rowsort
SELECT cor0.col2 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79

query I rowsort
SELECT - 21 * - cor0.col0 + + cor0.col0 + - col0 * + col2 AS col1 FROM tab0 AS cor0
----
-264
-5340
735

query I rowsort
SELECT DISTINCT cor0.col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
3
64
80

query I rowsort
SELECT ALL 48 AS col1 FROM tab2
----
48
48
48

query I rowsort
SELECT + col0 * + tab2.col0 - col0 AS col2 FROM tab2
----
42
6006
6162

query I rowsort
SELECT ALL - tab0.col0 - - col0 FROM tab0
----
0
0
0

query I rowsort
SELECT + tab0.col2 * col2 + col1 * + col1 * + col0 FROM tab0
----
178593
329316
743733

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL BETWEEN + col1 + col2 - + col1 AND NULL
----

query I rowsort
SELECT col2 * tab2.col1 FROM tab2 WHERE NULL NOT BETWEEN NULL AND col2
----

query I rowsort
SELECT ALL + col1 * col0 + - col2 FROM tab0
----
2031
3394
8017

query I rowsort
SELECT col0 FROM tab1 WHERE NOT - col2 = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + col2 col2 FROM tab1
----
109
67
80

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col1 < NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE + col2 / col2 >= col2
----

query I rowsort
SELECT DISTINCT + col1 * - col2 + col1 FROM tab0
----
-2752
-7371
0

query I rowsort
SELECT - col1 * col2 * - col0 - col2 FROM tab0 WHERE NOT ( col1 ) <= NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT ( + col0 * col1 ) IN ( + tab2.col2 )
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45

query I rowsort
SELECT ALL + col1 + - tab0.col0 AS col1 FROM tab0
----
2
62
62

query I rowsort
SELECT DISTINCT + col2 FROM tab0 WHERE NOT ( NULL ) <> NULL
----

query I rowsort
SELECT ALL + col0 + col2 * - tab0.col2 * tab0.col2 AS col0 FROM tab0
----
-35913
-551279
34

query I rowsort
SELECT col2 + - tab2.col0 * - col0 AS col1 FROM tab2
----
6110
6279
76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + + tab1.col0 * - col0 + tab1.col2 * + col1 * - col1 col2 FROM tab1
----
-22544
-36510
-9732

query I rowsort
SELECT ALL + col1 * col1 + col1 * - tab2.col2 AS col0 FROM tab2
----
-357
124
1947

query I rowsort
SELECT ALL col0 * - tab0.col2 + + tab0.col0 FROM tab0
----
-7209
-768
0

query I rowsort
SELECT DISTINCT col1 * tab2.col1 + tab2.col1 FROM tab2
----
306
3540
992

query I rowsort
SELECT ALL - col1 + + tab1.col0 * + col2 AS col2 FROM tab1
----
136
3638
7667

query I rowsort
SELECT ALL + col2 + - col0 * col2 FROM tab0
----
-34
-7216
-759

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT IN ( - tab1.col2 + - col1 )
----

query I rowsort
SELECT - tab2.col0 FROM tab1, tab2 AS cor0 CROSS JOIN tab2
----
27 values hashing to c82df1de3cb666224690a83f3d790d79

query I rowsort
SELECT - col2 * + tab0.col2 * col1 + + col1 AS col1 FROM tab0
----
-611793
-93568
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col2 - + col0 col1 FROM tab0 AS cor0
----
-34
-7
9

onlyif mysql # use DIV operator for integer division
query I rowsort label-5858
SELECT - - cor0.col1 DIV col1 - col2 * col1 FROM tab0 AS cor0
----
-2837
-7461
-96

skipif mysql # not compatible
query I rowsort label-5858
SELECT - - cor0.col1 / col1 - col2 * col1 FROM tab0 AS cor0
----
-2837
-7461
-96

query I rowsort
SELECT ALL + + cor0.col1 - - col1 * + col1 AS col0 FROM tab2 cor0
----
306
3540
992

query III rowsort
SELECT * FROM tab0 WHERE col0 + col2 + col2 * col1 * + col0 BETWEEN - col2 - - col0 AND col1 * + col2 + + col0 + col2
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-5861
SELECT - cor0.col1 DIV col0 + - col0 FROM tab2 AS cor0
----
-11
-78
-79

skipif mysql # not compatible
query I rowsort label-5861
SELECT - cor0.col1 / col0 + - col0 FROM tab2 AS cor0
----
-11
-78
-79

onlyif mysql # use DIV operator for integer division
query I rowsort label-5862
SELECT col1 DIV cor0.col0 + + col2 DIV + col2 AS col1 FROM tab0 cor0
----
2
3
4

skipif mysql # not compatible
query I rowsort label-5862
SELECT col1 / cor0.col0 + + col2 / + col2 AS col1 FROM tab0 cor0
----
2
3
4

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL BETWEEN - col0 * col1 AND NULL
----

query I rowsort
SELECT + col1 * tab1.col1 + + col2 FROM tab1
----
157
265
730

query I rowsort
SELECT ALL - col2 - col2 AS col0 FROM tab2
----
-52
-54
-76

query III rowsort
SELECT * FROM tab2 cor0 WHERE ( - col0 ) NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT - col0 - + cor0.col2 FROM tab0 AS cor0
----
-171
-36
-57

query I rowsort
SELECT DISTINCT 76 + col1 * col0 FROM tab1 AS cor0
----
1116
154
716

query I rowsort
SELECT DISTINCT 95 + + col2 * - 98 FROM tab2 AS cor0
----
-2453
-2551
-3629

query I rowsort
SELECT ALL - - 18 * col1 AS col1 FROM tab2 AS cor0
----
1062
306
558

query I rowsort
SELECT + 80 * col1 FROM tab2 AS cor0
----
1360
2480
4720

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + cor0.col2 + col0 * - CAST ( 23 AS REAL ) FROM tab1 AS cor0
----
-1415
-15
-1744

query I rowsort
SELECT - 90 * cor0.col0 FROM tab1 AS cor0
----
-270
-5760
-7200

query I rowsort
SELECT DISTINCT - col2 + cor0.col2 AS col0 FROM tab2 AS cor0
----
0

query I rowsort
SELECT ( col2 ) + - col1 FROM tab1
----
28
47
83

query I rowsort
SELECT 68 + + ( col0 ) * + ( + ( - col0 ) ) * 42 AS col1 FROM tab2
----
-1990
-255460
-262054

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5877
SELECT + CAST( NULL AS SIGNED ) + + col0 col2 FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5877
SELECT + CAST ( NULL AS INTEGER ) + + col0 col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT + cor0.col2 AS col0 FROM tab0, tab2, tab2 AS cor0
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5

query I rowsort
SELECT DISTINCT + 13 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
13

query I rowsort
SELECT ALL + col2 * + col0 + 44 AS col1 FROM tab0
----
7342
79
836

onlyif mysql # use DIV operator for integer division
query I rowsort label-5881
SELECT DISTINCT cor0.col2 DIV 81 AS col1 FROM tab1, tab0 cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-5881
SELECT DISTINCT cor0.col2 / 81 AS col1 FROM tab1, tab0 cor0
----
0
1

query I rowsort
SELECT ALL 77 - col0 AS col0 FROM tab1
----
-3
13
74

onlyif mysql # use DIV operator for integer division
query I rowsort label-5883
SELECT - + col1 DIV - cor0.col0 AS col1 FROM tab2 AS cor0
----
0
0
4

skipif mysql # not compatible
query I rowsort label-5883
SELECT - + col1 / - cor0.col0 AS col1 FROM tab2 AS cor0
----
0
0
4

query I rowsort
SELECT ALL + + cor0.col1 * col0 + - cor0.col0 AS col2 FROM tab1 cor0
----
576
75
960

query I rowsort
SELECT col2 * + col2 * col1 AS col1 FROM tab0 AS cor0
----
611884
93654
97

query I rowsort
SELECT + + cor0.col2 * col1 + + 78 AS col2 FROM tab1 AS cor0
----
1326
1482
648

query I rowsort
SELECT DISTINCT col0 * + cor0.col0 AS col2 FROM tab2 AS cor0
----
49
6084
6241

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col1 * - col0 + - cor0.col2 * col0 * - col2 col2 FROM tab1 cor0
----
207296
736240
8670

onlyif mysql # use DIV operator for integer division
query I rowsort label-5889
SELECT 95 * col1 + + 59 DIV - col1 FROM tab2 AS cor0
----
1612
2944
5604

skipif mysql # not compatible
query I rowsort label-5889
SELECT 95 * col1 + + 59 / - col1 FROM tab2 AS cor0
----
1612
2944
5604

query I rowsort
SELECT 15 - col2 AS col2 FROM tab2 AS cor0
----
-11
-12
-23

query I rowsort
SELECT 99 * col2 + - col2 FROM tab1 AS cor0
----
5292
5586
9408

query I rowsort
SELECT - col1 + + ( ( col0 ) ) AS col1 FROM tab1 AS cor0
----
-23
54
67

query I rowsort
SELECT DISTINCT + 68 AS col2 FROM tab2
----
68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 45 col0 FROM tab1 AS cor0
----
45
45
45

query I rowsort
SELECT ALL + col1 * + 66 + + col2 FROM tab0 AS cor0
----
5709
6088
6403

query I rowsort
SELECT ALL col2 * - 60 * - cor0.col0 + cor0.col1 * 26 + col0 AS col0 FROM tab2 AS cor0
----
12153
123292
180641

query I rowsort
SELECT ALL + + col0 * col1 + + col1 * - col0 + + ( - cor0.col2 ) * - col1 AS col1 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT DISTINCT cor1.col2 * + 58 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
1508
1566
2204

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + ( 94 ) * col1 col2 FROM tab2 AS cor0
----
1598
2914
5546

query I rowsort
SELECT DISTINCT cor1.col0 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
7
78
79

query I rowsort
SELECT ALL col2 + ( cor0.col1 ) AS col0 FROM tab1 AS cor0
----
109
67
80

query I rowsort
SELECT DISTINCT + col1 * - 88 FROM tab0 AS cor0
----
-7568
-8008
-8536

query I rowsort
SELECT - col2 * col2 + col1 FROM tab0 cor0
----
-1003
-6633
96

query I rowsort
SELECT DISTINCT - col1 * - cor0.col2 AS col1 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT DISTINCT + ( + col2 ) + + col2 * col1 - col2 * col2 FROM tab0 AS cor0
----
1782
820
97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5906
SELECT DISTINCT CAST( col0 AS SIGNED ) + + col1 + + col0 col1 FROM tab2 cor0
----
175
215
45

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5906
SELECT DISTINCT CAST ( col0 AS INTEGER ) + + col1 + + col0 col1 FROM tab2 cor0
----
175
215
45

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5907
SELECT DISTINCT - col2 - - col2 * + col2 * CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5907
SELECT DISTINCT - col2 - - col2 * + col2 * CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT - 23 + + col2 AS col1 FROM tab2 AS cor0
----
15
3
4

query I rowsort
SELECT DISTINCT + ( + 14 ) * - col0 + ( col2 + - col0 ) AS col0 FROM tab0 AS cor0
----
-1253
-327
-524

query I rowsort
SELECT ALL col0 * col0 + - col0 * - cor0.col0 - - col1 AS col2 FROM tab1 AS cor0
----
12813
44
8202

query I rowsort
SELECT ALL - + cor0.col2 + cor0.col1 AS col2 FROM tab1 cor0
----
-28
-47
-83

onlyif mysql # use DIV operator for integer division
query I rowsort label-5912
SELECT ALL + - col2 DIV + col0 + + cor0.col0 AS col1 FROM tab0 cor0
----
23
35
89

skipif mysql # not compatible
query I rowsort label-5912
SELECT ALL + - col2 / + col0 + + cor0.col0 AS col1 FROM tab0 cor0
----
23
35
89

query I rowsort
SELECT ALL + col1 * ( ( + col0 ) ) + col1 AS col2 FROM tab2 AS cor0
----
1360
248
4661

query I rowsort
SELECT ALL - col1 * + 93 + 50 * + cor0.col1 * ( - col0 ) AS col1 FROM tab0 AS cor0
----
-111198
-178771
-413413

query I rowsort
SELECT DISTINCT col0 + 6 * 85 FROM tab0 AS cor0
----
534
545
599

onlyif mysql # use DIV operator for integer division
query I rowsort label-5916
SELECT + col1 DIV 96 AS col0 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5916
SELECT + col1 / 96 AS col0 FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT ALL - tab1.col2 FROM tab1, tab2, tab2 AS cor0
----
27 values hashing to 44fdcd7cd603352d4d127811d164cc1e

query I rowsort
SELECT ALL - tab2.col0 * - col1 - + col0 FROM tab2
----
1264
210
4524

query I rowsort
SELECT ALL - 42 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 56f86ff01cd96a3511acd46e0e811e27

query I rowsort
SELECT ALL - col2 * 21 + col1 * + col2 AS col0 FROM tab2 cor0
----
-152
270
988

query I rowsort
SELECT DISTINCT - + col1 * - col2 FROM tab1 cor0
----
1248
1404
570

query I rowsort
SELECT DISTINCT + col2 * ( - col2 ) AS col2 FROM tab2 AS cor0
----
-1444
-676
-729

query I rowsort
SELECT DISTINCT - col2 + + col0 + col2 FROM tab2
----
7
78
79

query I rowsort
SELECT ALL + col1 * + 99 * 54 + col2 + tab0.col0 AS col0 FROM tab0
----
459813
486657
518598

query I rowsort
SELECT ( col1 ) + col0 + + 64 FROM tab1 AS cor0
----
138
157
93

query I rowsort
SELECT - ( col0 ) + + col1 AS col2 FROM tab0 AS cor0
----
2
62
62

query I rowsort
SELECT - ( + col0 ) + + cor0.col0 * col0 + + col0 * - col1 * + cor0.col0 FROM tab1 AS cor0
----
-228
-36928
-76880

query I rowsort
SELECT DISTINCT tab0.col1 * 79 * + ( col0 ) + + col0 FROM tab0
----
163080
268240
639910

query I rowsort
SELECT ALL + col0 * col0 + col1 * - tab0.col1 FROM tab0
----
-360
-6820
-8184

query I rowsort
SELECT ALL + col1 + ( - col0 ) * col1 FROM tab1
----
-1027
-52
-630

query I rowsort
SELECT ALL 2 * - 78 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 30bd01bac0dd44c8ca377e4489d11556

query I rowsort
SELECT + cor0.col0 + col1 FROM tab2 cor0
----
137
38
96

query I rowsort
SELECT DISTINCT - 99 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-99

query I rowsort
SELECT ALL ( - cor0.col0 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 4ec304b8ce935f2226e7548d72c2b2f0

query I rowsort
SELECT DISTINCT col0 * - ( 58 ) FROM tab1
----
-174
-3712
-4640

query I rowsort
SELECT - col1 * - ( - col0 ) FROM tab2 cor0
----
-1343
-217
-4602

query I rowsort
SELECT - + cor0.col2 * - 73 AS col0 FROM tab2 AS cor0
----
1898
1971
2774

query I rowsort
SELECT - col2 * 16 * col2 FROM tab1 AS cor0
----
-147456
-46656
-51984

query I rowsort
SELECT ALL ( + col1 ) * + col1 * col1 AS col2 FROM tab1
----
1000
17576
2197

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab1.col2 col2 FROM tab1, tab0 AS cor0
----
54
57
96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5941
SELECT 58 + ( col1 ) + + CAST( - col0 AS SIGNED ) AS col0 FROM tab1
----
-9
4
81

skipif mysql # not compatible
query I rowsort label-5941
SELECT 58 + ( col1 ) + + CAST ( - col0 AS INTEGER ) AS col0 FROM tab1
----
-9
4
81

query I rowsort
SELECT DISTINCT ( + tab2.col0 ) * col1 AS col2 FROM tab2
----
1343
217
4602

query I rowsort
SELECT DISTINCT - col2 + - ( col1 ) - 25 FROM tab1 AS cor0
----
-105
-134
-92

query I rowsort
SELECT + col2 * + cor0.col1 - - col1 FROM tab0 AS cor0
----
194
2924
7553

query I rowsort
SELECT DISTINCT col1 * + tab2.col0 FROM tab2
----
1343
217
4602

query I rowsort
SELECT DISTINCT - 33 AS col2 FROM tab1 AS cor0
----
-33

query IIIIII rowsort
SELECT * FROM tab1, tab0 AS cor0 WHERE NOT NULL NOT IN ( + cor0.col1 )
----

query I rowsort
SELECT - 73 * cor0.col1 FROM tab0 AS cor0
----
-6278
-6643
-7081

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5949
SELECT ALL + col2 * 92 * col2 + - CAST( NULL AS SIGNED ) * - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5949
SELECT ALL + col2 * 92 * col2 + - CAST ( NULL AS INTEGER ) * - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT ( - col1 ) * - col2 + + 68 AS col0 FROM tab0 AS cor0
----
165
2906
7530

onlyif mysql # use DIV operator for integer division
query I rowsort label-5951
SELECT + - col0 - - cor0.col1 DIV cor0.col2 AS col2 FROM tab1 AS cor0
----
-3
-64
-80

skipif mysql # not compatible
query I rowsort label-5951
SELECT + - col0 - - cor0.col1 / cor0.col2 AS col2 FROM tab1 AS cor0
----
-3
-64
-80

query I rowsort
SELECT + - 9 * col1 * - col0 AS col2 FROM tab1 cor0
----
5760
702
9360

query I rowsort
SELECT - cor0.col0 + col0 AS col2 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5954
SELECT + - 53 * col2 + CAST( col1 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-2836
-3011
-5075

skipif mysql # not compatible
query I rowsort label-5954
SELECT + - 53 * col2 + CAST ( col1 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-2836
-3011
-5075

onlyif mysql # use DIV operator for integer division
query I rowsort label-5955
SELECT ALL + col1 DIV - col2 - - col0 FROM tab1 AS cor0
----
3
64
80

skipif mysql # not compatible
query I rowsort label-5955
SELECT ALL + col1 / - col2 - - col0 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT ALL + col2 + + col0 * - 45 FROM tab1 cor0
----
-2823
-3504
-81

query I rowsort
SELECT - cor0.col1 + + col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + 4 + + 77 * - tab0.col2 AS col0 FROM tab0
----
-2537
-6310
-73

query I rowsort
SELECT ALL + col0 + + 23 AS col0 FROM tab1
----
103
26
87

query I rowsort
SELECT col2 + - tab2.col1 * col0 + - col1 AS col1 FROM tab2
----
-1322
-221
-4635

query I rowsort
SELECT - ( cor0.col1 ) + ( + 25 ) FROM tab0 AS cor0
----
-61
-66
-72

query I rowsort
SELECT tab0.col2 + + col2 * + 49 - tab0.col2 FROM tab0
----
1617
4018
49

query I rowsort
SELECT DISTINCT col0 - + col0 AS col1 FROM tab2
----
0

query I rowsort
SELECT ALL - col1 * tab0.col0 * + 10 + col1 + col2 * 16 FROM tab0
----
-20026
-33837
-79587

query I rowsort
SELECT DISTINCT ( col1 ) + - col2 FROM tab0
----
53
9
96

query I rowsort
SELECT + + col1 * col0 - col0 AS col2 FROM tab0 AS cor0
----
2040
3360
8010

query I rowsort
SELECT DISTINCT col0 * - 72 FROM tab2 AS cor0
----
-504
-5616
-5688

query I rowsort
SELECT cor0.col1 * + ( 70 + - cor0.col2 ) FROM tab1 AS cor0
----
-338
130
416

query I rowsort
SELECT col2 + + cor0.col2 AS col1 FROM tab1 cor0
----
108
114
192

query I rowsort
SELECT col2 + col0 * - 55 * + col1 AS col1 FROM tab0 cor0
----
-113487
-186724
-445363

query I rowsort
SELECT - col1 + - 68 * - col0 FROM tab0 cor0
----
1546
2283
5961

query I rowsort
SELECT DISTINCT - 18 * + col1 FROM tab1
----
-180
-234
-468

query I rowsort
SELECT 12 AS col1 FROM tab1
----
12
12
12

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 21 * + col2 col0 FROM tab0
----
1722
21
693

query I rowsort
SELECT + + col0 * + 93 FROM tab1 AS cor0
----
279
5952
7440

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 23 + + col1 col1 FROM tab0 AS cor0
----
63
68
74

query I rowsort
SELECT col2 * - ( col0 ) + + 0 AS col2 FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT ALL - col1 * - col1 * col2 AS col1 FROM tab2
----
10982
25947
90506

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5979
SELECT + - CAST( NULL AS SIGNED ) 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-5979
SELECT + - CAST ( NULL AS INTEGER ) col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - + 54 FROM tab0 AS cor0
----
-54
-54
-54

query I rowsort
SELECT - col2 * + 44 FROM tab2 AS cor0
----
-1144
-1188
-1672

query I rowsort
SELECT ALL 42 AS col1 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 325aada2239b6fe1fe2d843515ae8c5e

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5983
SELECT - CAST( + col0 AS SIGNED ) col0 FROM tab1
----
-3
-64
-80

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5983
SELECT - CAST ( + col0 AS INTEGER ) col0 FROM tab1
----
-3
-64
-80

query I rowsort
SELECT ALL - ( 15 ) + cor0.col2 FROM tab1, tab0 cor0, tab0 AS cor1
----
27 values hashing to f80d88bd0f6aa4230c0dc6deec9379bb

query I rowsort
SELECT ALL cor0.col0 + - ( 48 ) FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 260c8be135eb122ce2cb63749850447d

onlyif mysql # use DIV operator for integer division
query I rowsort label-5986
SELECT - - col0 DIV col0 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5986
SELECT - - col0 / col0 FROM tab0 AS cor0
----
1
1
1

query I rowsort
SELECT DISTINCT + 1 * + col0 FROM tab2
----
7
78
79

query I rowsort
SELECT + col2 + + ( ( col1 ) ) * col2 AS col0 FROM tab2 cor0
----
1560
684
864

query I rowsort
SELECT ALL + col1 + + col1 AS col0 FROM tab0 cor0
----
172
182
194

query I rowsort
SELECT ALL col1 * ( - cor0.col2 ) * col2 AS col1 FROM tab1 AS cor0
----
-119808
-32490
-75816

onlyif mysql # use DIV operator for integer division
query I rowsort label-5991
SELECT col1 DIV + cor0.col1 AS col2 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5991
SELECT col1 / + cor0.col1 AS col2 FROM tab2 AS cor0
----
1
1
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-5992
SELECT + + col2 DIV ( + col1 ) FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5992
SELECT + + col2 / ( + col1 ) FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - col1 + ( col2 + col0 ) FROM tab2 AS cor0
----
100
3
45

query I rowsort
SELECT DISTINCT + col1 * cor0.col0 * + col2 AS col0 FROM tab2 AS cor0
----
119652
51034
5859

query I rowsort
SELECT DISTINCT + cor0.col0 * 47 FROM tab1 cor0
----
141
3008
3760

onlyif mysql # use DIV operator for integer division
query I rowsort label-5996
SELECT ALL - ( ( - tab0.col1 ) ) DIV ( 53 ) AS col2 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to da8a72a7967c0c73d91239275230aed9

skipif mysql # not compatible
query I rowsort label-5996
SELECT ALL - ( ( - tab0.col1 ) ) / ( 53 ) AS col2 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to da8a72a7967c0c73d91239275230aed9

query I rowsort
SELECT 16 AS col0 FROM tab1, tab0, tab1 cor0
----
27 values hashing to ee5bde9f68ee828e8cd86b0d590090bc

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - tab0.col2 col2 FROM tab0, tab2 cor0
----
9 values hashing to b5a4102107e5ebd26e341538f4fede1e

onlyif mysql # use DIV operator for integer division
query I rowsort label-5999
SELECT + col2 DIV col0 AS col1 FROM tab0 cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-5999
SELECT + col2 / col0 AS col1 FROM tab0 cor0
----
0
0
1

query I rowsort
SELECT DISTINCT + - col0 * + ( + 62 ) FROM tab2 AS cor0
----
-434
-4836
-4898

query I rowsort
SELECT col1 + - 27 * col2 FROM tab1 AS cor0
----
-1432
-1529
-2579

query I rowsort
SELECT col2 * - ( cor0.col2 ) * + col0 AS col2 FROM tab0 cor0
----
-26136
-35
-598436

query I rowsort
SELECT DISTINCT 94 + col2 * ( - 12 ) * - col0 FROM tab0 AS cor0
----
514
87670
9598

query I rowsort
SELECT - + 12 + + cor0.col1 AS col1 FROM tab2 AS cor0
----
19
47
5

query I rowsort
SELECT DISTINCT - 93 * + col2 + ( + col2 ) FROM tab1 AS cor0
----
-4968
-5244
-8832

query I rowsort
SELECT ALL + tab2.col2 + 73 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 2651146c1f0fccf3b46750d1a150c462

skipif mysql # not compatible
query I rowsort
SELECT ALL + col1 * + ( col1 ) - - CAST ( + 37 AS REAL ) FROM tab1
----
137
206
713

onlyif mysql # use DIV operator for integer division
query I rowsort label-6008
SELECT ALL - col0 * 42 DIV + col1 FROM tab2
----
-195
-55
-9

skipif mysql # not compatible
query I rowsort label-6008
SELECT ALL - col0 * 42 / + col1 FROM tab2
----
-195
-55
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + + col1 col1 FROM tab2
----
55
58
85

query I rowsort
SELECT ALL - col1 + - col0 AS col2 FROM tab1
----
-29
-74
-93

onlyif mysql # use DIV operator for integer division
query I rowsort label-6011
SELECT 99 DIV col0 FROM tab1 AS cor0
----
1
1
33

skipif mysql # not compatible
query I rowsort label-6011
SELECT 99 / col0 FROM tab1 AS cor0
----
1
1
33

onlyif mysql # use DIV operator for integer division
query I rowsort label-6012
SELECT cor0.col1 * col1 DIV + col1 col1 FROM tab2 AS cor0
----
17
31
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6012
SELECT cor0.col1 * col1 / + col1 col1 FROM tab2 AS cor0
----
17
31
59

onlyif mysql # use DIV operator for integer division
query I rowsort label-6013
SELECT + cor0.col2 DIV - cor0.col2 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-6013
SELECT + cor0.col2 / - cor0.col2 FROM tab1 AS cor0
----
-1
-1
-1

query I rowsort
SELECT DISTINCT - ( col1 * 70 ) + - tab2.col2 AS col0 FROM tab2
----
-1228
-2197
-4156

query I rowsort
SELECT ALL + + col0 + col2 * + 21 FROM tab0 AS cor0
----
1811
56
717

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6016
SELECT + - col2 * col0 + - CAST( NULL AS SIGNED ) * 75 col0 FROM tab0 cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6016
SELECT + - col2 * col0 + - CAST ( NULL AS INTEGER ) * 75 col0 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + + 76 + col1 AS col1 FROM tab0 AS cor0
----
162
167
173

query I rowsort
SELECT DISTINCT + col0 * - col2 + col1 AS col2 FROM tab0 AS cor0
----
-706
-7207
62

query I rowsort
SELECT DISTINCT + ( - tab2.col1 ) AS col2 FROM tab2
----
-17
-31
-59

query I rowsort
SELECT + cor0.col2 * col1 + col0 AS col0 FROM tab1 AS cor0
----
1328
1407
634

query I rowsort
SELECT col0 * - 59 AS col1 FROM tab0
----
-1416
-2065
-5251

query I rowsort
SELECT ALL col1 * 82 AS col0 FROM tab2 AS cor0
----
1394
2542
4838

query I rowsort
SELECT + 27 * cor0.col2 FROM tab1, tab1 AS cor0, tab2 cor1
----
27 values hashing to f8320e8668bc69ab68a929a23d160af9

onlyif mysql # use DIV operator for integer division
query I rowsort label-6024
SELECT DISTINCT + col0 DIV + cor0.col0 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-6024
SELECT DISTINCT + col0 / + cor0.col0 FROM tab1 AS cor0
----
1

query I rowsort
SELECT cor0.col0 + + col2 * - col1 AS col1 FROM tab0 AS cor0
----
-2814
-62
-7373

query I rowsort
SELECT DISTINCT cor0.col2 + + col0 * cor0.col0 FROM tab1 AS cor0
----
4153
63
6496

query I rowsort
SELECT ALL col1 + cor0.col0 AS col0 FROM tab1 cor0
----
29
74
93

query I rowsort
SELECT col2 + + col1 + + tab1.col0 AS col2 FROM tab1
----
131
189
83

query I rowsort
SELECT - + 54 FROM tab0 AS cor0
----
-54
-54
-54

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6030
SELECT DISTINCT + CAST( NULL AS SIGNED ) + + col0 * cor0.col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6030
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + + col0 * cor0.col1 FROM tab2 AS cor0
----
NULL

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab2 AS cor0, tab1 cor1, tab1 cor2
----
972 values hashing to f8fe28681e8720551e1ec173631fc529

query I rowsort
SELECT cor0.col1 * col0 AS col2 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT + ( + 17 ) * + cor0.col1 FROM tab2 AS cor0
----
1003
289
527

query I rowsort
SELECT DISTINCT - ( col1 ) * col1 AS col0 FROM tab0 AS cor0
----
-7396
-8281
-9409

query I rowsort
SELECT ALL + ( + 52 ) AS col2 FROM tab2 AS cor0
----
52
52
52

query I rowsort
SELECT ALL 66 - col0 FROM tab0 AS cor0
----
-23
31
42

query I rowsort
SELECT ALL ( + col2 ) + col1 AS col2 FROM tab1 AS cor0
----
109
67
80

query I rowsort
SELECT DISTINCT + + 27 AS col2 FROM tab0 AS cor0
----
27

query I rowsort
SELECT DISTINCT col1 + col2 * - ( col2 ) FROM tab2 AS cor0
----
-1427
-617
-698

query I rowsort
SELECT ALL 62 AS col1 FROM tab2 AS cor0
----
62
62
62

query I rowsort
SELECT DISTINCT + + ( col2 ) + + 30 * - col0 AS col1 FROM tab1 AS cor0
----
-1863
-2304
-36

query I rowsort
SELECT + - col0 * - col2 + col1 * - ( col1 + col1 ) * col0 FROM tab0 cor0
----
-1466720
-354216
-658595

onlyif mysql # use DIV operator for integer division
query I rowsort label-6043
SELECT + ( - col2 ) DIV - 61 + + col0 AS col0 FROM tab2 cor0
----
7
78
79

skipif mysql # not compatible
query I rowsort label-6043
SELECT + ( - col2 ) / - 61 + + col0 AS col0 FROM tab2 cor0
----
7
78
79

query I rowsort
SELECT DISTINCT + + col0 + col0 AS col0 FROM tab1 AS cor0
----
128
160
6

query I rowsort
SELECT DISTINCT ( + col2 ) - + col0 * col0 AS col1 FROM tab2
----
-22
-6058
-6203

query I rowsort
SELECT col2 - + 93 * col0 AS col1 FROM tab2
----
-624
-7228
-7309

onlyif mysql # use DIV operator for integer division
query I rowsort label-6047
SELECT + col0 + col1 DIV - tab0.col1 - 59 FROM tab0
----
-25
-36
29

skipif mysql # not compatible
query I rowsort label-6047
SELECT + col0 + col1 / - tab0.col1 - 59 FROM tab0
----
-25
-36
29

query I rowsort
SELECT DISTINCT + 80 * 31 * - col2 - + col1 FROM tab0
----
-203451
-2577
-81926

query I rowsort
SELECT 0 + - col0 + col0 AS col2 FROM tab0
----
0
0
0

query I rowsort
SELECT DISTINCT cor0.col2 AS col0 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
26
27
38

query I rowsort
SELECT ALL ( + col1 ) - - col0 FROM tab2
----
137
38
96

query I rowsort
SELECT ALL + col1 + + col0 * col2 FROM tab2
----
2087
220
3019

onlyif mysql # use DIV operator for integer division
query I rowsort label-6053
SELECT ALL 56 DIV + col1 - col0 FROM tab1
----
-1
-59
-76

skipif mysql # not compatible
query I rowsort label-6053
SELECT ALL 56 / + col1 - col0 FROM tab1
----
-1
-59
-76

onlyif mysql # use DIV operator for integer division
query I rowsort label-6054
SELECT - col2 * 3 DIV - col0 col0 FROM tab2
----
1
1
11

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6054
SELECT - col2 * 3 / - col0 col0 FROM tab2
----
1
1
11

query I rowsort
SELECT + col1 + 4 FROM tab2
----
21
35
63

query I rowsort
SELECT + 22 + + col2 FROM tab1 AS cor0
----
118
76
79

query I rowsort
SELECT DISTINCT + col1 + - col2 * + 35 * col1 + - col2 * - ( col0 ) AS col1 FROM tab1
----
-16292
-35987
-48952

query I rowsort
SELECT + ( col2 ) * col1 * 66 FROM tab1
----
37620
82368
92664

onlyif mysql # use DIV operator for integer division
query I rowsort label-6059
SELECT ALL 44 DIV + 32 AS col0 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6059
SELECT ALL 44 / + 32 AS col0 FROM tab2
----
1
1
1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6060
SELECT DISTINCT + cor1.col0 * CAST( NULL AS SIGNED ) AS col1 FROM tab2, tab2 AS cor0, tab2 cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-6060
SELECT DISTINCT + cor1.col0 * CAST ( NULL AS INTEGER ) AS col1 FROM tab2, tab2 AS cor0, tab2 cor1
----
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6061
SELECT CAST( col0 AS SIGNED ) + - col1 AS col0 FROM tab0 AS cor0
----
-2
-62
-62

skipif mysql # not compatible
query I rowsort label-6061
SELECT CAST ( col0 AS INTEGER ) + - col1 AS col0 FROM tab0 AS cor0
----
-2
-62
-62

query I rowsort
SELECT + - 23 * col2 AS col1 FROM tab2 cor0
----
-598
-621
-874

query I rowsort
SELECT ( col2 ) * col0 AS col2 FROM tab2
----
189
2028
3002

query I rowsort
SELECT DISTINCT col1 * col1 * - col0 FROM tab0
----
-177504
-329315
-737009

onlyif mysql # use DIV operator for integer division
query I rowsort label-6065
SELECT ALL col2 DIV + col1 AS col1 FROM tab2
----
0
0
2

skipif mysql # not compatible
query I rowsort label-6065
SELECT ALL col2 / + col1 AS col1 FROM tab2
----
0
0
2

query I rowsort
SELECT 2 + + col0 AS col2 FROM tab2
----
80
81
9

query I rowsort
SELECT - cor0.col1 - + 11 AS col2 FROM tab1 AS cor0
----
-21
-24
-37

query I rowsort
SELECT DISTINCT - col2 * col2 * - col2 - 39 FROM tab0
----
-38
35898
551329

query I rowsort
SELECT DISTINCT tab1.col0 - - 32 * tab1.col2 FROM tab1, tab2 AS cor0
----
1731
1888
3152

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * + cor0.col1 + 94 col1 FROM tab0 AS cor0
----
7490
8375
9503

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6071
SELECT + 96 + cor0.col1 * + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6071
SELECT + 96 + cor0.col1 * + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab0, tab1 AS cor0, tab0 cor1
----
972 values hashing to 95920403df268a272c4e933cd0bbe0be

query I rowsort
SELECT ALL + 20 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 2fdd942fe0307a6ff66b63004ef102c4

query I rowsort
SELECT ALL + + col2 + - cor0.col2 * + col2 FROM tab0 AS cor0
----
-1056
-6642
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-6075
SELECT DISTINCT + + col0 DIV CAST( col0 AS SIGNED ) + col2 * - col2 + col2 FROM tab2 AS cor0
----
-1405
-649
-701

skipif mysql # not compatible
query I rowsort label-6075
SELECT DISTINCT + + col0 / CAST ( col0 AS INTEGER ) + col2 * - col2 + col2 FROM tab2 AS cor0
----
-1405
-649
-701

query I rowsort
SELECT DISTINCT + col1 * col2 + - col1 FROM tab1 AS cor0
----
1235
1378
560

query I rowsort
SELECT col2 * - ( 51 ) + + col0 AS col1 FROM tab2 cor0
----
-1248
-1370
-1859

query I rowsort
SELECT + cor0.col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a

query I rowsort
SELECT cor0.col2 * + 79 + 85 AS col2 FROM tab1 AS cor0
----
4351
4588
7669

query I rowsort
SELECT - - cor0.col2 * 24 + col1 AS col1 FROM tab2 AS cor0
----
679
683
929

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col2 * + col2 * 92 col0 FROM tab1 AS cor0
----
-268272
-298908
-847872

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + ( 64 ) col1 FROM tab2 AS cor0
----
26
37
38

query I rowsort
SELECT tab0.col2 + - 44 AS col1 FROM tab0
----
-11
-43
38

query I rowsort
SELECT - tab0.col0 * col1 * col0 FROM tab0
----
-118825
-49536
-720811

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col2 + 97 * cor0.col1 col2 FROM tab2 AS cor0
----
1611
2980
5697

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6086
SELECT - col0 + CAST( col2 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-34
-7
9

skipif mysql # not compatible
query I rowsort label-6086
SELECT - col0 + CAST ( col2 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-34
-7
9

query I rowsort
SELECT col2 * ( - col2 * cor0.col2 ) - - col1 AS col0 FROM tab0 AS cor0
----
-35851
-551277
96

query I rowsort
SELECT ( col0 ) + + col1 * col0 AS col2 FROM tab1 AS cor0
----
1120
704
81

query I rowsort
SELECT - col1 * - col1 + cor0.col2 - + ( col2 ) AS col1 FROM tab0 cor0
----
7396
8281
9409

onlyif mysql # use DIV operator for integer division
query I rowsort label-6090
SELECT col0 * 65 - - col2 DIV + cor0.col0 AS col2 FROM tab1 AS cor0
----
213
4160
5201

skipif mysql # not compatible
query I rowsort label-6090
SELECT col0 * 65 - - col2 / + cor0.col0 AS col2 FROM tab1 AS cor0
----
213
4160
5201

query I rowsort
SELECT DISTINCT - - col2 * col2 - col2 AS col0 FROM tab0 AS cor0
----
0
1056
6642

query I rowsort
SELECT col2 + ( col2 ) * - 70 FROM tab2 AS cor0
----
-1794
-1863
-2622

query I rowsort
SELECT ALL col0 * + ( col1 ) FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT + - 66 - col2 AS col0 FROM tab1 AS cor0
----
-120
-123
-162

query I rowsort
SELECT ALL + - col1 * + 43 + - col2 + cor0.col2 FROM tab0 AS cor0
----
-3698
-3913
-4171

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6096
SELECT - ( col2 ) * - cor0.col1 + + CAST( + col1 * col0 AS SIGNED ) col1 FROM tab0 cor0
----
15561
3492
4902

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6096
SELECT - ( col2 ) * - cor0.col1 + + CAST ( + col1 * col0 AS INTEGER ) col1 FROM tab0 cor0
----
15561
3492
4902

query I rowsort
SELECT + 34 * - col2 FROM tab0 AS cor0
----
-1122
-2788
-34

query I rowsort
SELECT - - 30 FROM tab2 AS cor0
----
30
30
30

query I rowsort
SELECT DISTINCT - 69 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-69

query I rowsort
SELECT + - 22 * col2 AS col2 FROM tab0 cor0
----
-1804
-22
-726

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2, tab2 AS cor0, tab1 AS cor1, tab0, tab0 cor2
----
3645 values hashing to 78077727601c056ad0d4f4c11c8daffb

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 43 col2 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to ee5108f6248be48c54e069545f81c5d9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + col0 * col1 ) + + col1 col1 FROM tab1
----
104
1053
650

onlyif mysql # use DIV operator for integer division
query I rowsort label-6104
SELECT ALL col2 DIV col0 + 90 AS col1 FROM tab1
----
108
90
91

skipif mysql # not compatible
query I rowsort label-6104
SELECT ALL col2 / col0 + 90 AS col1 FROM tab1
----
108
90
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( + col0 ) + + ( - col1 ) * tab2.col2 * + col0 col1 FROM tab2
----
-119574
-50955
-5852

onlyif mysql # use DIV operator for integer division
query I rowsort label-6106
SELECT ALL col2 + col2 DIV - tab1.col0 FROM tab1
----
36
57
95

skipif mysql # not compatible
query I rowsort label-6106
SELECT ALL col2 + col2 / - tab1.col0 FROM tab1
----
36
57
95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab1.col0 * col2 + ( tab1.col1 ) * + col0 col2 FROM tab1
----
240
4288
8720

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + cor0.col2 + - col2 * - ( - cor0.col2 ) col0 FROM tab2 AS cor0
----
-1482
-702
-756

query I rowsort
SELECT - + 84 * + col1 * 12 AS col2 FROM tab1 AS cor0
----
-10080
-13104
-26208

query I rowsort
SELECT ALL - - col0 - + col0 AS col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + cor0.col2 * col1 + col0 FROM tab2 cor0
----
1612
725
844

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6112
SELECT DISTINCT col1 + - CAST( 22 * - col0 AS SIGNED ) FROM tab1 AS cor0
----
1418
1773
92

skipif mysql # not compatible
query I rowsort label-6112
SELECT DISTINCT col1 + - CAST ( 22 * - col0 AS INTEGER ) FROM tab1 AS cor0
----
1418
1773
92

query I rowsort
SELECT ALL - - col2 - col2 * col2 AS col0 FROM tab2 cor0
----
-1406
-650
-702

query I rowsort
SELECT DISTINCT - - col2 + + col2 * col2 AS col1 FROM tab2 cor0
----
1482
702
756

query I rowsort
SELECT ALL + + col1 - ( + col0 ) AS col0 FROM tab1 AS cor0
----
-54
-67
23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col2 + col0 col1 FROM tab2 AS cor0
----
-20
41
52

onlyif mysql # use DIV operator for integer division
query I rowsort label-6117
SELECT DISTINCT col0 * cor0.col1 + + col0 + + col2 DIV cor0.col0 FROM tab2 AS cor0
----
1422
227
4680

skipif mysql # not compatible
query I rowsort label-6117
SELECT DISTINCT col0 * cor0.col1 + + col0 + + col2 / cor0.col0 FROM tab2 AS cor0
----
1422
227
4680

query I rowsort
SELECT DISTINCT col2 + 95 * + cor0.col0 + + col2 AS col0 FROM tab1 AS cor0
----
393
6194
7792

onlyif mysql # use DIV operator for integer division
query I rowsort label-6119
SELECT DISTINCT - col2 + col2 DIV tab0.col2 AS col0 FROM tab0
----
-32
-81
0

skipif mysql # not compatible
query I rowsort label-6119
SELECT DISTINCT - col2 + col2 / tab0.col2 AS col0 FROM tab0
----
-32
-81
0

query I rowsort
SELECT ALL + col1 + + 93 * + cor0.col1 * - col2 + + col1 FROM tab0 AS cor0
----
-263762
-693784
-8827

query I rowsort
SELECT DISTINCT col2 * + 73 - - col0 FROM tab1 AS cor0
----
3945
4225
7088

onlyif mysql # use DIV operator for integer division
query I rowsort label-6122
SELECT ALL col1 + + col2 DIV col2 FROM tab1 AS cor0
----
11
14
27

skipif mysql # not compatible
query I rowsort label-6122
SELECT ALL col1 + + col2 / col2 FROM tab1 AS cor0
----
11
14
27

query I rowsort
SELECT DISTINCT + cor0.col2 + - ( cor0.col0 ) FROM tab2 AS cor0
----
-41
-52
20

onlyif mysql # use DIV operator for integer division
query I rowsort label-6124
SELECT - tab2.col0 DIV - tab2.col0 + col1 * col2 AS col2 FROM tab2
----
1535
647
838

skipif mysql # not compatible
query I rowsort label-6124
SELECT - tab2.col0 / - tab2.col0 + col1 * col2 AS col2 FROM tab2
----
1535
647
838

query I rowsort
SELECT tab1.col2 * col2 - + col1 * col2 FROM tab1 WHERE NULL BETWEEN ( NULL ) AND + col1
----

query I rowsort
SELECT DISTINCT col2 + col0 * + col1 FROM tab1
----
1136
132
697

onlyif mysql # use DIV operator for integer division
query I rowsort label-6127
SELECT DISTINCT col0 + col2 DIV col1 col1 FROM tab1
----
5
69
87

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6127
SELECT DISTINCT col0 + col2 / col1 col1 FROM tab1
----
5
69
87

query I rowsort
SELECT + col0 * + col1 + + col0 FROM tab0
----
2088
3430
8188

query I rowsort
SELECT ALL - col2 * col0 * col0 AS col0 FROM tab0
----
-1225
-19008
-649522

query I rowsort
SELECT DISTINCT - col2 * tab1.col1 + + col2 * col2 + col0 FROM tab1
----
1515
2743
8048

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * - tab2.col1 col2 FROM tab2
----
1534
646
837

query I rowsort
SELECT tab2.col0 + - col2 * - col1 AS col2 FROM tab2
----
1612
725
844

onlyif mysql # use DIV operator for integer division
query I rowsort label-6133
SELECT - col0 DIV + tab1.col2 + + col0 AS col2 FROM tab1
----
3
63
80

skipif mysql # not compatible
query I rowsort label-6133
SELECT - col0 / + tab1.col2 + + col0 AS col2 FROM tab1
----
3
63
80

query I rowsort
SELECT col0 * col1 + col2 AS col0 FROM tab0
----
2097
3396
8181

query I rowsort
SELECT ALL - col1 FROM tab1 WHERE - col0 < - col0
----

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL < + col1
----

query I rowsort
SELECT ALL 50 + col0 * 65 AS col0 FROM tab2 AS cor0
----
505
5120
5185

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 14 + - col2 * col0 col0 FROM tab1 AS cor0
----
-176
-3662
-7694

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 * col0 col1 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT col1 FROM tab2 WHERE ( NULL ) NOT BETWEEN ( - tab2.col2 ) AND ( NULL )
----

query I rowsort
SELECT - col1 + + col2 * - col1 * col2 FROM tab0
----
-194
-611975
-93740

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NULL ) BETWEEN ( NULL ) AND ( + col2 )
----

query I rowsort
SELECT ALL + col2 * + tab0.col2 FROM tab0
----
1
1089
6724

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( NULL ) IN ( + col0 )
----

query I rowsort
SELECT ALL col1 + - col2 + + col1 AS col1 FROM tab2
----
-4
35
92

query I rowsort
SELECT DISTINCT col1 + col0 + - tab2.col0 AS col2 FROM tab2
----
17
31
59

query I rowsort
SELECT tab2.col0 + col2 * col2 + col0 * + tab2.col2 * - col1 FROM tab2
----
-118898
-49511
-5123

onlyif mysql # use DIV operator for integer division
query I rowsort label-6148
SELECT ALL col1 + col0 * col0 * + col0 + col0 DIV col1 AS col2 FROM tab0
----
13910
42972
705060

skipif mysql # not compatible
query I rowsort label-6148
SELECT ALL col1 + col0 * col0 * + col0 + col0 / col1 AS col2 FROM tab0
----
13910
42972
705060

query I rowsort
SELECT DISTINCT col0 * tab2.col2 + + col1 + - col1 AS col1 FROM tab2
----
189
2028
3002

query I rowsort
SELECT DISTINCT tab1.col0 AS col0 FROM tab1 WHERE NOT NULL IN ( col0 * + tab1.col2 - - col2 )
----

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6151
SELECT col1 * col1 + CAST( + col2 AS SIGNED ) FROM tab2 cor0
----
327
3507
988

skipif mysql # not compatible
query I rowsort label-6151
SELECT col1 * col1 + CAST ( + col2 AS INTEGER ) FROM tab2 cor0
----
327
3507
988

query I rowsort
SELECT - + 26 + + col1 * + cor0.col0 FROM tab0 AS cor0
----
2038
3369
8073

query I rowsort
SELECT ALL - - 77 * - col2 FROM tab2 AS cor0
----
-2002
-2079
-2926

query I rowsort
SELECT - - col1 * col0 - + cor0.col2 * + col1 AS col2 FROM tab0 AS cor0
----
-774
3298
637

query I rowsort
SELECT DISTINCT + cor0.col1 * + col0 + - cor0.col1 * col2 FROM tab2 AS cor0
----
-620
3068
697

query I rowsort
SELECT DISTINCT col2 * cor0.col2 + col1 AS col2 FROM tab1 AS cor0
----
2942
3259
9229

query I rowsort
SELECT - + ( col2 ) + col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - - 88 AS col0 FROM tab2 AS cor0
----
88
88
88

query I rowsort
SELECT ALL col2 + + col2 + + col1 FROM tab0
----
152
255
99

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6160
SELECT DISTINCT + tab2.col2 + col0 * col1 * + CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-6160
SELECT DISTINCT + tab2.col2 + col0 * col1 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6161
SELECT - ( + ( - col1 ) + CAST( NULL AS SIGNED ) * 81 ) col1 FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6161
SELECT - ( + ( - col1 ) + CAST ( NULL AS INTEGER ) * 81 ) col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT + 92 * - tab0.col2 AS col2 FROM tab0
----
-3036
-7544
-92

onlyif mysql # use DIV operator for integer division
query I rowsort label-6163
SELECT DISTINCT 79 DIV col2 - + col1 FROM tab1
----
-13
-25
-9

skipif mysql # not compatible
query I rowsort label-6163
SELECT DISTINCT 79 / col2 - + col1 FROM tab1
----
-13
-25
-9

query I rowsort
SELECT + col2 + + col2 * - 99 + 13 AS col1 FROM tab0 AS cor0
----
-3221
-8023
-85

query I rowsort
SELECT DISTINCT cor0.col2 * - cor0.col0 FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT 15 * col0 AS col2 FROM tab0 AS cor0
----
1335
360
525

query I rowsort
SELECT ALL 17 + col0 * - col1 AS col1 FROM tab0 AS cor0
----
-2047
-3378
-8082

query I rowsort
SELECT - 42 - col2 FROM tab2 AS cor0
----
-68
-69
-80

query I rowsort
SELECT ALL + 76 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 30b8941a700cffd5b983116383bd42d5

query I rowsort
SELECT - ( - ( - col2 ) ) AS col1 FROM tab1 AS cor0
----
-54
-57
-96

query I rowsort
SELECT - ( + 96 ) FROM tab0, tab2 AS cor0
----
9 values hashing to c89b545346f99713888a7934e4caa539

query I rowsort
SELECT + tab2.col1 + 63 AS col0 FROM tab2
----
122
80
94

query I rowsort
SELECT - - 96 + - cor1.col2 AS col0 FROM tab1, tab2 AS cor0, tab0, tab0 cor1
----
81 values hashing to 6426b090a030e9025faa25e7c7027e96

query I rowsort
SELECT ALL 13 * - 51 + col0 * - col2 FROM tab0 AS cor0
----
-1455
-698
-7961

query I rowsort
SELECT DISTINCT + col2 * col0 + + col2 FROM tab2 AS cor0
----
2054
216
3040

skipif mysql # not compatible
query I rowsort
SELECT CAST ( col1 AS REAL ) AS col1 FROM tab1 AS cor0
----
10
13
26

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6177
SELECT DISTINCT CAST( NULL AS SIGNED ) + 82 + + col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6177
SELECT DISTINCT CAST ( NULL AS INTEGER ) + 82 + + col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL - 22 * cor0.col1 FROM tab0 AS cor0
----
-1892
-2002
-2134

query I rowsort
SELECT DISTINCT - 23 * 43 AS col0 FROM tab1 AS cor0
----
-989

onlyif mysql # use DIV operator for integer division
query I rowsort label-6180
SELECT - cor0.col2 + col1 DIV col0 - + col1 AS col2 FROM tab1 cor0
----
-109
-67
-72

skipif mysql # not compatible
query I rowsort label-6180
SELECT - cor0.col2 + col1 / col0 - + col1 AS col2 FROM tab1 cor0
----
-109
-67
-72

query I rowsort
SELECT ALL - col0 * col0 * - col1 FROM tab0
----
118825
49536
720811

query I rowsort
SELECT + ( cor0.col2 ) * col0 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT col2 * col2 + col2 * + cor0.col0 - + col0 AS col0 FROM tab0 AS cor0
----
1
13933
1857

onlyif mysql # use DIV operator for integer division
query I rowsort label-6184
SELECT + + cor0.col2 - col0 DIV - cor0.col2 FROM tab0 AS cor0
----
33
36
83

skipif mysql # not compatible
query I rowsort label-6184
SELECT + + cor0.col2 - col0 / - cor0.col2 FROM tab0 AS cor0
----
33
36
83

query I rowsort
SELECT 52 * - col2 FROM tab2
----
-1352
-1404
-1976

query I rowsort
SELECT - tab2.col1 * col2 AS col2 FROM tab2
----
-1534
-646
-837

query I rowsort
SELECT + + col0 * ( - col0 ) FROM tab0 AS cor0
----
-1225
-576
-7921

query I rowsort
SELECT DISTINCT + tab1.col2 * - 36 FROM tab1
----
-1944
-2052
-3456

query I rowsort
SELECT - 49 * cor0.col1 - cor0.col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 163c6512bb1a51777b565a5955e91f91

query I rowsort
SELECT DISTINCT col1 * - col2 * col1 AS col2 FROM tab0
----
-244068
-679042
-9409

query I rowsort
SELECT DISTINCT - col2 * 15 FROM tab0
----
-1230
-15
-495

query I rowsort
SELECT 30 + col1 * + col1 AS col2 FROM tab2 AS cor0
----
319
3511
991

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-6194
SELECT tab1.col0 * + col1 + - col2 DIV - col1 AS col0 FROM tab1
----
1047
645
80

skipif mysql # not compatible
query I rowsort label-6194
SELECT tab1.col0 * + col1 + - col2 / - col1 AS col0 FROM tab1
----
1047
645
80

query I rowsort
SELECT + 31 + col2 FROM tab0
----
113
32
64

query I rowsort
SELECT ALL 16 AS col1 FROM tab0 cor0
----
16
16
16

query I rowsort
SELECT DISTINCT - 62 + 86 * + col0 AS col0 FROM tab0 AS cor0
----
2002
2948
7592

query I rowsort
SELECT DISTINCT - 65 AS col0 FROM tab0
----
-65

onlyif mysql # use DIV operator for integer division
query I rowsort label-6199
SELECT ALL + col0 DIV - col1 AS col0 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6199
SELECT ALL + col0 / - col1 AS col0 FROM tab0
----
0
0
0

query I rowsort
SELECT ALL + ( - col1 ) AS col2 FROM tab0
----
-86
-91
-97

query I rowsort
SELECT - cor0.col0 AS col1 FROM tab2, tab0, tab1 cor0
----
27 values hashing to 729c1edda9332398299f39cd174ed840

query I rowsort
SELECT ALL 87 * - 91 AS col1 FROM tab1
----
-7917
-7917
-7917

query I rowsort
SELECT + col1 FROM tab1 cor0 WHERE NOT NULL NOT IN ( + col2 + col1 + col1 * + col1 )
----

query I rowsort
SELECT ALL col0 * col2 + col2 AS col0 FROM tab0 AS cor0
----
36
7380
825

query I rowsort
SELECT ALL col0 + - col0 * col0 FROM tab0 AS cor0
----
-1190
-552
-7832

query I rowsort
SELECT DISTINCT + col1 * + col0 * - col2 + col2 FROM tab1
----
-36423
-4158
-99744

query I rowsort
SELECT cor0.col1 FROM tab0 AS cor0 CROSS JOIN tab0
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc

query III rowsort
SELECT * FROM tab2 WHERE NOT ( - col2 * + col0 ) NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT col2 + - col0 * col2 AS col0 FROM tab1
----
-108
-3591
-7584

query III rowsort
SELECT ALL * FROM tab1 WHERE ( NULL ) IN ( col0 )
----

query I rowsort
SELECT ALL - col1 * col0 * col2 - + col0 FROM tab0
----
-3430
-664207
-68136

onlyif mysql # use DIV operator for integer division
query I rowsort label-6212
SELECT + col2 DIV cor0.col0 FROM tab2 AS cor0
----
0
0
3

skipif mysql # not compatible
query I rowsort label-6212
SELECT + col2 / cor0.col0 FROM tab2 AS cor0
----
0
0
3

query I rowsort
SELECT ALL col0 + + tab0.col2 * col2 * col1 AS col2 FROM tab0
----
132
611973
93678

query I rowsort
SELECT col0 FROM tab1 cor0 WHERE NULL BETWEEN NULL AND col1 + - col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * + col2 col2 FROM tab1
----
-2916
-3249
-9216

query I rowsort
SELECT DISTINCT col2 * - col0 * - tab1.col2 FROM tab1
----
207936
737280
8748

query I rowsort
SELECT - col2 * col2 * + col0 AS col1 FROM tab2
----
-114076
-5103
-52728

query I rowsort
SELECT + col2 + + col2 - + col0 AS col0 FROM tab2
----
-26
-3
47

query I rowsort
SELECT - col0 * cor0.col1 * col1 + + col1 * col0 AS col0 FROM tab0 AS cor0
----
-175440
-325920
-728910

onlyif mysql # use DIV operator for integer division
query I rowsort label-6220
SELECT + col1 * col1 DIV col1 + + col0 AS col0 FROM tab2
----
137
38
96

skipif mysql # not compatible
query I rowsort label-6220
SELECT + col1 * col1 / col1 + + col0 AS col0 FROM tab2
----
137
38
96

query I rowsort
SELECT tab1.col1 * col2 - col0 AS col1 FROM tab1
----
1168
1401
506

onlyif mysql # use DIV operator for integer division
query I rowsort label-6222
SELECT + col2 * - col1 + + col2 DIV col1 FROM tab2 cor0
----
-1534
-644
-837

skipif mysql # not compatible
query I rowsort label-6222
SELECT + col2 * - col1 + + col2 / col1 FROM tab2 cor0
----
-1534
-644
-837

query I rowsort
SELECT ALL + - col2 * + col2 AS col2 FROM tab1 AS cor0
----
-2916
-3249
-9216

query I rowsort
SELECT DISTINCT - col2 + - cor0.col2 * - col1 * + col2 FROM tab2 AS cor0
----
22572
24510
39858

query I rowsort
SELECT + col1 * cor0.col2 + cor0.col1 * - col2 FROM tab2 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + - col2 * - col0 col1 FROM tab2 AS cor0
----
2054
216
3040

onlyif mysql # use DIV operator for integer division
query I rowsort label-6227
SELECT col1 DIV CAST( col1 AS SIGNED ) col0 FROM tab1
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6227
SELECT col1 / CAST ( col1 AS INTEGER ) col0 FROM tab1
----
1
1
1

query I rowsort
SELECT DISTINCT + col0 * ( col2 ) - tab0.col0 AS col1 FROM tab0
----
0
7209
768

onlyif mysql # use DIV operator for integer division
query I rowsort label-6229
SELECT DISTINCT + col1 * + ( col0 ) * 22 + + col2 DIV cor0.col0 FROM tab1 AS cor0
----
14080
1734
22881

skipif mysql # not compatible
query I rowsort label-6229
SELECT DISTINCT + col1 * + ( col0 ) * 22 + + col2 / cor0.col0 FROM tab1 AS cor0
----
14080
1734
22881

query I rowsort
SELECT ALL tab1.col0 * + col2 - - 26 FROM tab1
----
188
3674
7706

query I rowsort
SELECT DISTINCT tab2.col1 - + ( col2 + - col2 ) FROM tab2
----
17
31
59

query I rowsort
SELECT col2 * + 41 * - col2 AS col1 FROM tab1
----
-119556
-133209
-377856

query I rowsort
SELECT ALL col2 * + 77 * 60 + col1 FROM tab1
----
249506
263350
443533

query I rowsort
SELECT ALL col2 + + ( ( - col1 ) ) FROM tab2
----
-33
-4
21

query I rowsort
SELECT + col2 + col0 - col0 AS col1 FROM tab2
----
26
27
38

query I rowsort
SELECT DISTINCT - col1 + - 35 AS col2 FROM tab0
----
-121
-126
-132

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 23 col1 FROM tab2, tab0 AS cor0, tab0 cor1
----
23

query I rowsort
SELECT DISTINCT - ( col0 ) + cor0.col2 - 64 FROM tab0 AS cor0
----
-55
-71
-98

query I rowsort
SELECT ALL + + 36 AS col0 FROM tab1 AS cor0
----
36
36
36

query I rowsort
SELECT DISTINCT - + ( col0 ) + col0 FROM tab1 AS cor0
----
0

query I rowsort
SELECT DISTINCT - - 42 + cor0.col2 + + col2 FROM tab2 AS cor0
----
118
94
96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6242
SELECT - CAST( - col1 AS SIGNED ) * + col0 - 78 AS col2 FROM tab1 AS cor0
----
0
562
962

skipif mysql # not compatible
query I rowsort label-6242
SELECT - CAST ( - col1 AS INTEGER ) * + col0 - 78 AS col2 FROM tab1 AS cor0
----
0
562
962

query I rowsort
SELECT DISTINCT col0 * + 17 * + col1 FROM tab2 AS cor0
----
22831
3689
78234

query I rowsort
SELECT - 72 * - 95 + col0 FROM tab2 AS cor0
----
6847
6918
6919

query I rowsort
SELECT DISTINCT + col2 * col2 + + cor0.col0 * col0 FROM tab1 AS cor0
----
15616
2925
7345

query I rowsort
SELECT ALL - ( 59 ) FROM tab2 AS cor0
----
-59
-59
-59

query I rowsort
SELECT ALL 25 * + col1 + cor0.col0 FROM tab1 AS cor0
----
314
405
653

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6248
SELECT - - CAST( + col0 AS SIGNED ) + col1 * CAST( NULL AS SIGNED ) * col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6248
SELECT - - CAST ( + col0 AS INTEGER ) + col1 * CAST ( NULL AS INTEGER ) * col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 23 + col1 FROM tab2 AS cor0
----
40
54
82

query I rowsort
SELECT DISTINCT - ( + cor0.col2 ) + - col0 AS col2 FROM tab2 cor0
----
-104
-117
-34

query I rowsort
SELECT ALL - ( col0 ) - col0 AS col2 FROM tab2 AS cor0
----
-14
-156
-158

query I rowsort
SELECT - + col0 * col1 + cor0.col0 * col2 AS col0 FROM tab1 cor0
----
3008
6640
84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col0 * + 51 col0 FROM tab2 AS cor0
----
-357
-3978
-4029

query I rowsort
SELECT + ( col1 ) + - col0 AS col0 FROM tab1 AS cor0
----
-54
-67
23

query I rowsort
SELECT + col0 + - col2 + - col2 * + col0 FROM tab2 AS cor0
----
-1976
-209
-2961

query I rowsort
SELECT ALL + 71 FROM tab1 cor0
----
71
71
71

query I rowsort
SELECT cor0.col0 + - col0 * + col2 AS col1 FROM tab2 AS cor0
----
-182
-1950
-2923

query I rowsort
SELECT - 61 + + col1 AS col1 FROM tab1
----
-35
-48
-51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 81 * cor0.col1 col1 FROM tab1 AS cor0
----
1053
2106
810

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6260
SELECT ALL 68 + col2 * + CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6260
SELECT ALL 68 + col2 * + CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - cor0.col0 * col1 AS col1 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT DISTINCT - col2 * - cor0.col1 * col0 - + col1 AS col2 FROM tab0 AS cor0
----
3298
664027
68026

query I rowsort
SELECT - 53 * col1 AS col1 FROM tab1 AS cor0
----
-1378
-530
-689

query I rowsort
SELECT DISTINCT - + 27 * + col2 AS col2 FROM tab1 AS cor0
----
-1458
-1539
-2592

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 41 col2 FROM tab1 AS cor0
----
41
41
41

query I rowsort
SELECT DISTINCT - col0 + - 94 FROM tab0 AS cor0
----
-118
-129
-183

query I rowsort
SELECT cor0.col1 * + ( col2 ) - col0 * + col0 AS col2 FROM tab2 AS cor0
----
-4550
-5595
788

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + cor0.col1 + - col0 col2 FROM tab0 AS cor0
----
2
62

onlyif mysql # use DIV operator for integer division
query I rowsort label-6269
SELECT ALL col1 DIV 68 + - col2 + - col1 AS col0 FROM tab1 AS cor0
----
-109
-67
-80

skipif mysql # not compatible
query I rowsort label-6269
SELECT ALL col1 / 68 + - col2 + - col1 AS col0 FROM tab1 AS cor0
----
-109
-67
-80

onlyif mysql # use DIV operator for integer division
query I rowsort label-6270
SELECT ALL col2 DIV + ( col1 * col0 ) - col1 col0 FROM tab0 AS cor0
----
-86
-91
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6270
SELECT ALL col2 / + ( col1 * col0 ) - col1 col0 FROM tab0 AS cor0
----
-86
-91
-97

query I rowsort
SELECT + col0 - + col0 * - col2 FROM tab2 AS cor0
----
196
2106
3081

query I rowsort
SELECT DISTINCT col2 * + 86 - - ( col1 ) FROM tab1 AS cor0
----
4670
4912
8269

query I rowsort
SELECT + + cor0.col2 * + col0 AS col0 FROM tab0 AS cor0
----
35
7298
792

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * + ( + 48 * + col2 ) col0 FROM tab1 AS cor0
----
139968
155952
442368

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6275
SELECT ALL - cor0.col0 * + CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6275
SELECT ALL - cor0.col0 * + CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - + col1 * 74 FROM tab0 AS cor0
----
-6364
-6734
-7178

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col0 * 53 col2 FROM tab0 cor0
----
-1272
-1855
-4717

query I rowsort
SELECT - - col2 * + col0 * - col0 AS col2 FROM tab1 cor0
----
-233472
-486
-614400

skipif mysql # not compatible
query I rowsort
SELECT ALL + cor0.col1 * - CAST ( - col2 AS REAL ) FROM tab0 cor0
----
2838
7462
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-6280
SELECT DISTINCT - + col0 + + 22 DIV - col2 AS col1 FROM tab0 AS cor0
----
-24
-57
-89

skipif mysql # not compatible
query I rowsort label-6280
SELECT DISTINCT - + col0 + + 22 / - col2 AS col1 FROM tab0 AS cor0
----
-24
-57
-89

query I rowsort
SELECT DISTINCT + - col0 * - cor0.col0 AS col0 FROM tab0 AS cor0
----
1225
576
7921

query I rowsort
SELECT ALL - cor0.col0 + - cor0.col2 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 9b6b643191a390a3a60049db62acd1a4

query I rowsort
SELECT 47 FROM tab1, tab1 AS cor0
----
9 values hashing to 4fe192f296791e1e40ea00a68aa8dab7

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab0 AS cor0, tab1 cor1, tab1, tab1 AS cor2
----
3645 values hashing to 93e5b836e3f52f458344e73ebce589b5

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 + 86 * + ( col1 ) FROM tab1 AS cor0
----
1118
2236
860

query I rowsort
SELECT - - 27 FROM tab0 AS cor0 CROSS JOIN tab0, tab1 cor1
----
27 values hashing to 1a3cef5c33b8f87ffeded378fd207753

query I rowsort
SELECT col0 * + col2 * cor0.col0 + col1 * - col0 FROM tab2 AS cor0
----
1106
153582
235815

query I rowsort
SELECT - 31 * cor0.col0 AS col2 FROM tab0 AS cor0
----
-1085
-2759
-744

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6290
SELECT ALL - 55 * col2 + - CAST( col1 AS SIGNED ) col2 FROM tab1 AS cor0
----
-2996
-3145
-5293

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6290
SELECT ALL - 55 * col2 + - CAST ( col1 AS INTEGER ) col2 FROM tab1 AS cor0
----
-2996
-3145
-5293

query I rowsort
SELECT ALL - + 98 + - col0 * - col2 FROM tab2 AS cor0
----
1930
2904
91

query I rowsort
SELECT tab0.col2 * + ( - tab0.col1 ) * col2 AS col2 FROM tab0
----
-611884
-93654
-97

query I rowsort
SELECT DISTINCT + tab2.col1 * - col0 FROM tab2
----
-1343
-217
-4602

query I rowsort
SELECT 63 + tab2.col1 AS col1 FROM tab2
----
122
80
94

query I rowsort
SELECT + tab2.col0 + - col1 AS col0 FROM tab2
----
-24
19
62

onlyif mysql # use DIV operator for integer division
query I rowsort label-6296
SELECT ALL + col2 + + col1 DIV col2 AS col2 FROM tab0 AS cor0
----
35
83
98

skipif mysql # not compatible
query I rowsort label-6296
SELECT ALL + col2 + + col1 / col2 AS col2 FROM tab0 AS cor0
----
35
83
98

query I rowsort
SELECT + 24 AS col2 FROM tab0
----
24
24
24

query I rowsort
SELECT + tab0.col0 + col0 * + tab0.col1 AS col0 FROM tab0
----
2088
3430
8188

query I rowsort
SELECT ALL + tab0.col0 AS col1 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd

query I rowsort
SELECT - + col0 * + 24 FROM tab1 AS cor0
----
-1536
-1920
-72

query I rowsort
SELECT ALL + cor0.col2 + ( col2 + col2 ) AS col0 FROM tab0 AS cor0
----
246
3
99

query I rowsort
SELECT + + ( col2 ) * 39 + ( col1 ) AS col2 FROM tab1 cor0
----
2132
2233
3757

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 - + col1 col1 FROM tab0
----
-110
-132
-180

query I rowsort
SELECT ALL - 19 FROM tab1, tab1 AS cor0, tab1 cor1
----
27 values hashing to 0fbbff28a7b63c37b01cf369f9325662

query I rowsort
SELECT DISTINCT 41 AS col0 FROM tab1, tab2 AS cor0
----
41

query I rowsort
SELECT ALL cor0.col2 AS col0 FROM tab0, tab1 AS cor0, tab0 AS cor1, tab0 AS cor2
----
81 values hashing to 9d355f1f2edc347a359dad00d2d3f886

query I rowsort
SELECT ALL + col0 * 21 AS col0 FROM tab1 AS cor0
----
1344
1680
63

query I rowsort
SELECT ALL + 72 FROM tab1, tab2, tab1 AS cor0, tab0
----
81 values hashing to e1618abfe12be6a950cc575d695639b7

query I rowsort
SELECT + col2 + 35 FROM tab1 AS cor0
----
131
89
92

query I rowsort
SELECT col1 * - 17 FROM tab2 AS cor0
----
-1003
-289
-527

query I rowsort
SELECT DISTINCT - - cor0.col2 FROM tab2, tab2 AS cor0
----
26
27
38

query I rowsort
SELECT col1 * ( cor0.col2 ) AS col2 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT + + col2 + - col2 FROM tab1 cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( cor0.col2 ) col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3

query I rowsort
SELECT ( - ( + col2 ) ) FROM tab1 AS cor0
----
-54
-57
-96

query I rowsort
SELECT - col2 * 37 AS col2 FROM tab2 AS cor0
----
-1406
-962
-999

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6317
SELECT ALL CAST( NULL AS SIGNED ) AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-6317
SELECT ALL CAST ( NULL AS INTEGER ) AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT + col1 * 86 AS col0 FROM tab0 AS cor0
----
7396
7826
8342

query I rowsort
SELECT DISTINCT + ( + 17 ) * + cor0.col1 * - 83 + 50 FROM tab0 AS cor0
----
-121296
-128351
-136817

query I rowsort
SELECT ALL col1 * + col2 * col1 FROM tab0
----
244068
679042
9409

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6321
SELECT ALL + - CAST( col1 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-86
-91
-97

skipif mysql # not compatible
query I rowsort label-6321
SELECT ALL + - CAST ( col1 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-86
-91
-97

query I rowsort
SELECT DISTINCT - ( 75 ) * col1 FROM tab2 AS cor0
----
-1275
-2325
-4425

onlyif mysql # use DIV operator for integer division
query I rowsort label-6323
SELECT DISTINCT - 28 DIV 26 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-6323
SELECT DISTINCT - 28 / 26 FROM tab0
----
-1

query I rowsort
SELECT - + 13 AS col2 FROM tab1 cor0
----
-13
-13
-13

query I rowsort
SELECT ALL 99 + col1 * 70 FROM tab1 AS cor0
----
1009
1919
799

query I rowsort
SELECT DISTINCT + - 97 + + col1 FROM tab1 AS cor0
----
-71
-84
-87

query I rowsort
SELECT ALL - - 63 * - col1 FROM tab0 AS cor0
----
-5418
-5733
-6111

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col0 col0 FROM tab1, tab2 cor0
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a

query I rowsort
SELECT ( tab2.col1 ) + tab2.col0 AS col1 FROM tab2
----
137
38
96

query I rowsort
SELECT - 83 + col2 FROM tab1 AS cor0
----
-26
-29
13

onlyif mysql # use DIV operator for integer division
query I rowsort label-6331
SELECT col0 + ( - 98 + - col1 ) DIV cor0.col0 AS col0 FROM tab2 AS cor0
----
-11
76
78

skipif mysql # not compatible
query I rowsort label-6331
SELECT col0 + ( - 98 + - col1 ) / cor0.col0 AS col0 FROM tab2 AS cor0
----
-11
76
78

onlyif mysql # use DIV operator for integer division
query I rowsort label-6332
SELECT ALL col0 DIV - 34 col0 FROM tab1 AS cor0
----
-1
-2
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6332
SELECT ALL col0 / - 34 col0 FROM tab1 AS cor0
----
-1
-2
0

query I rowsort
SELECT + 87 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to 8661ffbd1a72897c495405c53b816e50

query I rowsort
SELECT col0 - ( + col0 ) * cor0.col0 AS col0 FROM tab1 AS cor0
----
-4032
-6
-6320

query I rowsort
SELECT DISTINCT col2 + - cor0.col2 AS col1 FROM tab0 AS cor0
----
0

query I rowsort
SELECT - 95 AS col2 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to cf302b83f15b730fe35c19bdd9363c13

query I rowsort
SELECT col1 * - col0 * col2 AS col1 FROM tab1
----
-36480
-4212
-99840

onlyif mysql # use DIV operator for integer division
query I rowsort label-6338
SELECT DISTINCT col0 DIV + 12 FROM tab1
----
0
5
6

skipif mysql # not compatible
query I rowsort label-6338
SELECT DISTINCT col0 / + 12 FROM tab1
----
0
5
6

query I rowsort
SELECT - 16 FROM tab2 AS cor0 CROSS JOIN tab1, tab1 AS cor1, tab0, tab1 cor2, tab2
----
729 values hashing to 49b88785816dbf2e407fe828aebba528

query I rowsort
SELECT ALL - col2 + 72 * 25 AS col2 FROM tab2
----
1762
1773
1774

query I rowsort
SELECT + + cor0.col2 + cor0.col2 + + 0 AS col2 FROM tab0 AS cor0
----
164
2
66

query I rowsort
SELECT - + col2 * col0 * + ( + col1 + col1 ) AS col0 FROM tab1 AS cor0
----
-199680
-72960
-8424

query I rowsort
SELECT - + col1 + + 26 AS col2 FROM tab0 AS cor0
----
-60
-65
-71

query I rowsort
SELECT DISTINCT + col1 + - col2 AS col1 FROM tab0
----
53
9
96

query I rowsort
SELECT - - col2 * + 91 + col2 + - col1 FROM tab0 AS cor0
----
-5
2950
7453

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * - col1 + col2 * - col1 col1 FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT - - col1 * + 11 AS col0 FROM tab2 AS cor0
----
187
341
649

query I rowsort
SELECT DISTINCT 30 + col0 AS col0 FROM tab0 AS cor0
----
119
54
65

onlyif mysql # use DIV operator for integer division
query I rowsort label-6349
SELECT ALL + + col0 DIV + col1 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-6349
SELECT ALL + + col0 / + col1 col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT col0 * col1 * col2 AS col0 FROM tab2 AS cor0
----
119652
51034
5859

query I rowsort
SELECT ALL + 60 * col2 FROM tab0 AS cor0
----
1980
4920
60

query I rowsort
SELECT ALL + + col0 + + cor0.col1 AS col0 FROM tab2 AS cor0
----
137
38
96

query I rowsort
SELECT ALL - + 10 AS col1 FROM tab2 cor0
----
-10
-10
-10

onlyif mysql # use DIV operator for integer division
query I rowsort label-6354
SELECT DISTINCT col2 + col2 + - col2 * 46 DIV col0 AS col1 FROM tab0
----
1
122
3

skipif mysql # not compatible
query I rowsort label-6354
SELECT DISTINCT col2 + col2 + - col2 * 46 / col0 AS col1 FROM tab0
----
1
122
3

onlyif mysql # use DIV operator for integer division
query I rowsort label-6355
SELECT - 95 * col0 + + ( 11 ) * + col1 DIV col1 + 22 col2 FROM tab2
----
-632
-7377
-7472

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6355
SELECT - 95 * col0 + + ( 11 ) * + col1 / col1 + 22 col2 FROM tab2
----
-632
-7377
-7472

query I rowsort
SELECT + col2 + tab2.col2 + col2 AS col2 FROM tab2
----
114
78
81

onlyif mysql # use DIV operator for integer division
query I rowsort label-6357
SELECT + col2 DIV + col0 + - tab1.col1 + - 72 FROM tab1
----
-80
-82
-84

skipif mysql # not compatible
query I rowsort label-6357
SELECT + col2 / + col0 + - tab1.col1 + - 72 FROM tab1
----
-80
-82
-84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 76 col0 FROM tab0, tab2, tab0 cor0
----
27 values hashing to 7b2b08dd3f1adef028d3f40ef7c716da

query I rowsort
SELECT DISTINCT col1 + col1 * col0 AS col2 FROM tab0
----
2150
3492
8190

query I rowsort
SELECT 99 * + col1 FROM tab1 AS cor0
----
1287
2574
990

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 3 col0 FROM tab1 AS cor0
----
-3

onlyif mysql # use DIV operator for integer division
query I rowsort label-6362
SELECT ALL 71 DIV col2 + + col2 FROM tab1 AS cor0
----
55
58
96

skipif mysql # not compatible
query I rowsort label-6362
SELECT ALL 71 / col2 + + col2 FROM tab1 AS cor0
----
55
58
96

query I rowsort
SELECT DISTINCT + col0 * + ( + col0 ) FROM tab2 AS cor0
----
49
6084
6241

query I rowsort
SELECT ALL ( - col0 ) * col2 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT ALL + + 66 FROM tab0 AS cor0
----
66
66
66

query I rowsort
SELECT ALL - col0 + - col0 + col2 AS col1 FROM tab2
----
-120
-130
13

query I rowsort
SELECT DISTINCT col0 + + 59 FROM tab0
----
148
83
94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + + ( 55 ) + col0 * col2 col0 FROM tab2
----
2142
275
3074

query I rowsort
SELECT col0 - ( col2 ) FROM tab1
----
-16
-51
7

query I rowsort
SELECT ALL col1 * col2 + tab0.col2 * + col1 AS col1 FROM tab0
----
14924
194
5676

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + ( + 69 ) col1 FROM tab2
----
147
148
76

query I rowsort
SELECT ALL + 68 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 599bee15ac4cc39b859854e07dfe7990

query I rowsort
SELECT DISTINCT ( - cor0.col1 ) * col1 + - col1 AS col2 FROM tab1 AS cor0
----
-110
-182
-702

query I rowsort
SELECT + 20 + + col2 FROM tab0 AS cor0
----
102
21
53

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6375
SELECT ALL - CAST( NULL AS SIGNED ) * + 99 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6375
SELECT ALL - CAST ( NULL AS INTEGER ) * + 99 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-6376
SELECT + - ( ( + col0 ) ) DIV col2 AS col2 FROM tab1 cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-6376
SELECT + - ( ( + col0 ) ) / col2 AS col2 FROM tab1 cor0
----
-1
0
0

query I rowsort
SELECT ALL + - cor0.col0 * + cor0.col1 AS col0 FROM tab0 AS cor0
----
-2064
-3395
-8099

onlyif mysql # use DIV operator for integer division
query I rowsort label-6378
SELECT DISTINCT ( col0 ) DIV + col2 AS col0 FROM tab0 AS cor0
----
0
1
35

skipif mysql # not compatible
query I rowsort label-6378
SELECT DISTINCT ( 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 ( + col1 ) col2 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT DISTINCT + 57 + - 56 AS col0 FROM tab0 AS cor0
----
1

query I rowsort
SELECT ( col2 ) * col0 AS col0 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT ALL + + 54 * col0 FROM tab2 AS cor0
----
378
4212
4266

onlyif mysql # use DIV operator for integer division
query I rowsort label-6383
SELECT DISTINCT 98 * col1 + + cor0.col0 DIV CAST( + col1 * + col2 AS SIGNED ) FROM tab0 AS cor0
----
8428
8918
9506

skipif mysql # not compatible
query I rowsort label-6383
SELECT DISTINCT 98 * col1 + + cor0.col0 / CAST ( + col1 * + col2 AS INTEGER ) FROM tab0 AS cor0
----
8428
8918
9506

query I rowsort
SELECT - col1 * - 7 * col0 + + col1 * + 50 AS col2 FROM tab0
----
18748
28615
61243

query I rowsort
SELECT 34 * + 31 AS col2 FROM tab2
----
1054
1054
1054

query I rowsort
SELECT tab0.col1 * + col0 + + col2 AS col0 FROM tab0
----
2097
3396
8181

query I rowsort
SELECT DISTINCT ( 35 ) FROM tab0
----
35

query I rowsort
SELECT + tab2.col1 + - col2 * tab2.col2 AS col2 FROM tab2
----
-1427
-617
-698

query I rowsort
SELECT ALL - ( col0 ) * + col0 AS col1 FROM tab2 AS cor0
----
-49
-6084
-6241

onlyif mysql # use DIV operator for integer division
query I rowsort label-6390
SELECT ALL CAST( - ( - col0 DIV + ( col1 ) ) AS SIGNED ) * col1 DIV + 67 FROM tab2 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-6390
SELECT ALL CAST ( - ( - col0 / + ( col1 ) ) AS INTEGER ) * col1 / + 67 FROM tab2 AS cor0
----
0
0
1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6391
SELECT DISTINCT - CAST( NULL AS SIGNED ) * tab0.col2 AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-6391
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * tab0.col2 AS col2 FROM tab0
----
NULL

query I rowsort
SELECT - 22 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to fae46f8148b02964f7145eb6ed5819f9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 12 col0 FROM tab2
----
12
12
12

onlyif mysql # use DIV operator for integer division
query I rowsort label-6394
SELECT DISTINCT - cor0.col2 DIV col1 + col1 AS col1 FROM tab0 AS cor0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-6394
SELECT DISTINCT - cor0.col2 / col1 + col1 AS col1 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT ALL - - col0 + - col0 + col1 FROM tab0 AS cor0
----
86
91
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 69 col2 FROM tab0 AS cor0
----
69
69
69

query I rowsort
SELECT DISTINCT col2 * col1 + + col0 FROM tab0 AS cor0
----
132
2862
7551

query I rowsort
SELECT ALL col1 + col1 * + col1 FROM tab2 AS cor0
----
306
3540
992

onlyif mysql # use DIV operator for integer division
query I rowsort label-6399
SELECT - + col1 DIV + col2 AS col2 FROM tab0 AS cor0
----
-1
-2
-97

skipif mysql # not compatible
query I rowsort label-6399
SELECT - + col1 / + col2 AS col2 FROM tab0 AS cor0
----
-1
-2
-97

query I rowsort
SELECT + cor0.col2 * + cor0.col2 * - 44 FROM tab0 AS cor0
----
-295856
-44
-47916

query I rowsort
SELECT ALL + + cor0.col2 AS col0 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT + + col1 + - 81 FROM tab1 cor0
----
-55
-68
-71

onlyif mysql # use DIV operator for integer division
query I rowsort label-6403
SELECT DISTINCT + col2 DIV + 92 col1 FROM tab2 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6403
SELECT DISTINCT + col2 / + 92 col1 FROM tab2 AS cor0
----
0

query I rowsort
SELECT tab2.col0 * 9 FROM tab2
----
63
702
711

query I rowsort
SELECT - col2 - 72 AS col1 FROM tab2 AS cor0
----
-110
-98
-99

query I rowsort
SELECT + - col2 - col2 * - col0 AS col0 FROM tab1 AS cor0
----
108
3591
7584

query I rowsort
SELECT DISTINCT - col2 + ( + col1 ) FROM tab1 AS cor0
----
-28
-47
-83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 + - col1 col1 FROM tab1 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col1 + 82 col1 FROM tab2 AS cor0
----
113
141
99

query I rowsort
SELECT ALL + - col2 + + 42 FROM tab2 AS cor0
----
15
16
4

query I rowsort
SELECT - ( + col1 ) * col1 AS col1 FROM tab2 AS cor0
----
-289
-3481
-961

query I rowsort
SELECT ALL - 97 + col2 AS col0 FROM tab0 AS cor0
----
-15
-64
-96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6413
SELECT DISTINCT CAST( NULL AS SIGNED ) * - cor0.col1 + - col0 * - 40 AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6413
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - cor0.col1 + - col0 * - 40 AS col2 FROM tab1 AS cor0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-6414
SELECT + - col1 DIV col1 + col1 FROM tab0 AS cor0
----
85
90
96

skipif mysql # not compatible
query I rowsort label-6414
SELECT + - col1 / col1 + col1 FROM tab0 AS cor0
----
85
90
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + 23 col2 FROM tab1
----
33
36
49

query I rowsort
SELECT DISTINCT + tab1.col1 + 92 AS col1 FROM tab1
----
102
105
118

query I rowsort
SELECT col2 * 36 AS col2 FROM tab0
----
1188
2952
36

query I rowsort
SELECT DISTINCT + col2 + col2 * 84 FROM tab0 AS cor0
----
2805
6970
85

query I rowsort
SELECT ALL + 76 + - cor1.col0 + - cor0.col0 FROM tab2, tab1 cor0, tab1 AS cor1
----
27 values hashing to c2b3678d3875fc72c0fa1b5b2b7d013e

query I rowsort
SELECT col1 * ( - col0 ) + cor0.col1 * - 39 * - 32 + - col1 AS col0 FROM tab0 AS cor0
----
105178
105378
117564

query I rowsort
SELECT ALL + col0 + - ( + col2 ) AS col0 FROM tab1 AS cor0
----
-16
-51
7

query I rowsort
SELECT - - col1 + 78 + + cor0.col0 FROM tab1 AS cor0
----
107
152
171

query I rowsort
SELECT 91 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to deebbcfb9c7803a34dca6bd860849afe

query I rowsort
SELECT ALL + 20 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 2fdd942fe0307a6ff66b63004ef102c4

query I rowsort
SELECT + 36 AS col1 FROM tab0, tab1 cor0, tab2 AS cor1
----
27 values hashing to 4d1892e880125dc90345721151acb22c

query I rowsort
SELECT + + cor0.col1 * - cor0.col1 FROM tab0 AS cor0
----
-7396
-8281
-9409

onlyif mysql # use DIV operator for integer division
query I rowsort label-6427
SELECT + tab1.col2 * col0 - tab1.col2 DIV col0 AS col1 FROM tab1
----
144
3648
7679

skipif mysql # not compatible
query I rowsort label-6427
SELECT + tab1.col2 * col0 - tab1.col2 / col0 AS col1 FROM tab1
----
144
3648
7679

query I rowsort
SELECT + col0 + col1 * col0 AS col2 FROM tab2
----
1422
224
4680

query I rowsort
SELECT DISTINCT - ( col1 ) + + col2 * 23 AS col2 FROM tab1
----
1216
1301
2195

query I rowsort
SELECT DISTINCT - ( + cor0.col1 ) * + col1 FROM tab0 AS cor0
----
-7396
-8281
-9409

query I rowsort
SELECT DISTINCT - col2 * 41 + col2 AS col0 FROM tab0 AS cor0
----
-1320
-3280
-40

query I rowsort
SELECT + col1 * col1 + col0 * col2 + + col2 FROM tab1 cor0
----
3805
7945
892

query I rowsort
SELECT - - ( + 25 ) + + col1 FROM tab0 AS cor0
----
111
116
122

query I rowsort
SELECT + + col2 * + col0 + col2 + 60 AS col0 FROM tab1 AS cor0
----
276
3765
7836

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 69 * col1 col1 FROM tab0
----
5934
6279
6693

query I rowsort
SELECT - 80 + col2 * 8 AS col1 FROM tab1 AS cor0
----
352
376
688

query I rowsort
SELECT DISTINCT col1 * col0 * col2 + 49 FROM tab1
----
36529
4261
99889

query I rowsort
SELECT - cor0.col1 * col1 - 29 * col2 FROM tab2 cor0
----
-1391
-1744
-4235

query I rowsort
SELECT - - col2 * - col0 + col0 AS col1 FROM tab0 AS cor0
----
-7209
-768
0

query I rowsort
SELECT ALL - col0 - - col2 FROM tab2 cor0
----
-41
-52
20

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6441
SELECT DISTINCT + cor0.col1 + col0 * - CAST( col2 AS SIGNED ) FROM tab2 AS cor0
----
-158
-1969
-2985

skipif mysql # not compatible
query I rowsort label-6441
SELECT DISTINCT + cor0.col1 + col0 * - CAST ( col2 AS INTEGER ) FROM tab2 AS cor0
----
-158
-1969
-2985

query I rowsort
SELECT + - cor0.col1 + + col2 FROM tab2 AS cor0
----
-33
-4
21

query I rowsort
SELECT - 50 AS col2 FROM tab0 AS cor0
----
-50
-50
-50

query I rowsort
SELECT + col1 * - col1 + col1 FROM tab1 AS cor0
----
-156
-650
-90

onlyif mysql # use DIV operator for integer division
query I rowsort label-6445
SELECT ALL + col2 DIV + col1 + + ( + col2 ) FROM tab2 AS cor0
----
26
27
40

skipif mysql # not compatible
query I rowsort label-6445
SELECT ALL + col2 / + col1 + + ( + col2 ) FROM tab2 AS cor0
----
26
27
40

onlyif mysql # use DIV operator for integer division
query I rowsort label-6446
SELECT ALL + + cor0.col0 DIV 73 AS col0 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-6446
SELECT ALL + + cor0.col0 / 73 AS col0 FROM tab0 AS cor0
----
0
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col1 + ( 37 ) col1 FROM tab1 AS cor0
----
47
50
63

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6448
SELECT - col0 * - CAST( - col0 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-49
-6084
-6241

skipif mysql # not compatible
query I rowsort label-6448
SELECT - col0 * - CAST ( - col0 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-49
-6084
-6241

query I rowsort
SELECT DISTINCT - col1 * - ( cor0.col1 ) + + col0 AS col0 FROM tab1 AS cor0
----
164
249
679

query I rowsort
SELECT cor1.col2 AS col1 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5

query I rowsort
SELECT 13 * cor0.col2 FROM tab1 AS cor0
----
1248
702
741

query I rowsort
SELECT - 84 * - col1 - + col2 * + col0 FROM tab2
----
-1574
2415
2928

query I rowsort
SELECT ALL - - 82 * - col1 AS col1 FROM tab1 AS cor0
----
-1066
-2132
-820

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6454
SELECT DISTINCT CAST( NULL AS SIGNED ) * + col0 * - col1 - 89 * col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6454
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + col0 * - col1 - 89 * col2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - 91 - + col1 * col2 AS col2 FROM tab2 AS cor0
----
-1625
-737
-928

query I rowsort
SELECT ALL + 92 * col0 FROM tab2 cor0
----
644
7176
7268

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 38 - + cor0.col2 col0 FROM tab1 AS cor0
----
-16
-19
-58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( cor0.col0 ) + + col2 * - 61 + col0 col2 FROM tab2 AS cor0
----
-1586
-1647
-2318

query I rowsort
SELECT DISTINCT - cor0.col1 * cor0.col2 AS col0 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT ALL + + col1 * - col1 * - ( 35 ) + col1 + 20 FROM tab1 AS cor0
----
23706
3530
5948

query I rowsort
SELECT ALL + col2 - + col2 * col0 AS col1 FROM tab0 AS cor0
----
-34
-7216
-759

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 + + col1 col1 FROM tab2 AS cor0
----
118
34
62

query I rowsort
SELECT col1 + + col0 * + col2 FROM tab0 AS cor0
----
132
7389
878

query I rowsort
SELECT DISTINCT 56 * + col0 + + col1 FROM tab2 cor0
----
423
4427
4441

query I rowsort
SELECT DISTINCT - - 92 AS col1 FROM tab0 AS cor0
----
92

query I rowsort
SELECT col2 + + 61 FROM tab1
----
115
118
157

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6467
SELECT ALL + CAST( col1 AS SIGNED ) AS col0 FROM tab0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-6467
SELECT ALL + CAST ( col1 AS INTEGER ) AS col0 FROM tab0
----
86
91
97

query I rowsort
SELECT DISTINCT - ( + col1 * col0 ) AS col0 FROM tab2
----
-1343
-217
-4602

query I rowsort
SELECT ALL + 35 * + ( - col2 ) AS col0 FROM tab2
----
-1330
-910
-945

query I rowsort
SELECT ALL + 10 AS col0 FROM tab0
----
10
10
10

query I rowsort
SELECT - - col2 * - 51 FROM tab0 AS cor0
----
-1683
-4182
-51

query I rowsort
SELECT tab1.col1 * - 47 + + col0 FROM tab1
----
-1219
-406
-531

query I rowsort
SELECT - col0 + + 77 FROM tab2
----
-1
-2
70

onlyif mysql # use DIV operator for integer division
query I rowsort label-6474
SELECT ALL - cor0.col2 DIV 7 FROM tab1 AS cor0
----
-13
-7
-8

skipif mysql # not compatible
query I rowsort label-6474
SELECT ALL - cor0.col2 / 7 FROM tab1 AS cor0
----
-13
-7
-8

query I rowsort
SELECT + + col1 * 95 FROM tab2 AS cor0
----
1615
2945
5605

query I rowsort
SELECT DISTINCT + col0 + 6 * col1 AS col0 FROM tab0 AS cor0
----
540
617
635

query I rowsort
SELECT DISTINCT + + col2 - 77 AS col1 FROM tab0 cor0
----
-44
-76
5

query I rowsort
SELECT DISTINCT col2 + col2 * col1 AS col0 FROM tab1 AS cor0
----
1344
1458
627

query I rowsort
SELECT ALL + col1 * + ( + col2 + - col2 ) FROM tab2 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * ( - col2 ) * col2 col1 FROM tab0 AS cor0
----
-26136
-35
-598436

query I rowsort
SELECT DISTINCT - col1 + + col0 * - col2 AS col1 FROM tab1 AS cor0
----
-188
-3658
-7693

query I rowsort
SELECT - col1 + - 46 FROM tab0 AS cor0
----
-132
-137
-143

query I rowsort
SELECT DISTINCT + - ( 26 ) * col0 - ( - 26 ) FROM tab1 AS cor0
----
-1638
-2054
-52

query I rowsort
SELECT DISTINCT - 93 * + col0 AS col2 FROM tab2 AS cor0
----
-651
-7254
-7347

query I rowsort
SELECT DISTINCT cor0.col1 + 37 + col0 FROM tab0 AS cor0
----
147
169
217

onlyif mysql # use DIV operator for integer division
query I rowsort label-6486
SELECT ALL + col2 * - col0 DIV col0 - 74 * + 12 * - col2 AS col1 FROM tab1 AS cor0
----
47898
50559
85152

skipif mysql # not compatible
query I rowsort label-6486
SELECT ALL + col2 * - col0 / col0 - 74 * + 12 * - col2 AS col1 FROM tab1 AS cor0
----
47898
50559
85152

query I rowsort
SELECT ALL cor0.col0 + + ( cor0.col2 + - col1 ) FROM tab2 cor0
----
100
3
45

query I rowsort
SELECT + 31 * - col2 * - cor0.col1 AS col0 FROM tab1 AS cor0
----
17670
38688
43524

query I rowsort
SELECT ALL ( - col1 ) + - col1 AS col1 FROM tab0 AS cor0
----
-172
-182
-194

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + - 19 col1 FROM tab0
----
67
72
78

query I rowsort
SELECT - cor0.col2 * col1 + + 83 FROM tab0 AS cor0
----
-14
-2755
-7379

query I rowsort
SELECT - cor0.col1 + col1 + - 18 AS col2 FROM tab1 AS cor0
----
-18
-18
-18

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6493
SELECT DISTINCT - ( - col2 ) * - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6493
SELECT DISTINCT - ( - col2 ) * - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-6494
SELECT DISTINCT + + cor0.col2 DIV col2 + ( col1 ) + - col2 * - 59 AS col2 FROM tab0 AS cor0
----
157
2034
4930

skipif mysql # not compatible
query I rowsort label-6494
SELECT DISTINCT + + cor0.col2 / col2 + ( col1 ) + - col2 * - 59 AS col2 FROM tab0 AS cor0
----
157
2034
4930

onlyif mysql # use DIV operator for integer division
query I rowsort label-6495
SELECT ALL 56 DIV col1 + col2 AS col0 FROM tab0 AS cor0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-6495
SELECT ALL 56 / col1 + col2 AS col0 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT ALL - 57 * col1 + + col2 AS col0 FROM tab1 AS cor0
----
-1428
-513
-645

query I rowsort
SELECT - + 3 + col2 FROM tab1 cor0
----
51
54
93

query I rowsort
SELECT ALL 37 * + col1 AS col1 FROM tab0 AS cor0
----
3182
3367
3589

onlyif mysql # use DIV operator for integer division
query I rowsort label-6499
SELECT DISTINCT + - col1 DIV col0 AS col0 FROM tab2 AS cor0
----
-4
0

skipif mysql # not compatible
query I rowsort label-6499
SELECT DISTINCT + - col1 / col0 AS col0 FROM tab2 AS cor0
----
-4
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( col1 ) col2 FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT ALL - + 19 * col2 * - col1 AS col0 FROM tab1 AS cor0
----
10830
23712
26676

query I rowsort
SELECT DISTINCT ( 45 ) + col0 - ( - col1 ) * col0 FROM tab1
----
1165
126
749

query I rowsort
SELECT + 63 * + ( tab2.col1 ) + + col0 AS col0 FROM tab2
----
1150
1960
3795

onlyif mysql # use DIV operator for integer division
query I rowsort label-6504
SELECT col2 + col0 - - tab1.col0 DIV - col0 col2 FROM tab1
----
120
175
56

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6504
SELECT col2 + col0 - - tab1.col0 / - col0 col2 FROM tab1
----
120
175
56

onlyif mysql # use DIV operator for integer division
query I rowsort label-6505
SELECT col1 * 69 DIV col0 - + 74 FROM tab0
----
-4
117
173

skipif mysql # not compatible
query I rowsort label-6505
SELECT col1 * 69 / col0 - + 74 FROM tab0
----
-4
117
173

query I rowsort
SELECT ( - col0 * - col2 ) - col0 * + col2 AS col0 FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT - ( 73 ) AS col0 FROM tab2, tab0, tab0 AS cor0
----
-73

skipif mysql # not compatible
query I rowsort
SELECT + CAST ( + col1 AS REAL ) * - col2 AS col0 FROM tab1
----
-1248
-1404
-570

onlyif mysql # use DIV operator for integer division
query I rowsort label-6509
SELECT + col0 DIV - tab1.col1 FROM tab1
----
-6
-6
0

skipif mysql # not compatible
query I rowsort label-6509
SELECT + col0 / - tab1.col1 FROM tab1
----
-6
-6
0

query I rowsort
SELECT 51 * col2 AS col0 FROM tab0
----
1683
4182
51

onlyif mysql # use DIV operator for integer division
query I rowsort label-6511
SELECT DISTINCT ( - col2 ) - col0 DIV ( col1 ) FROM tab2
----
-27
-42

skipif mysql # not compatible
query I rowsort label-6511
SELECT DISTINCT ( - col2 ) - col0 / ( col1 ) FROM tab2
----
-27
-42

query I rowsort
SELECT DISTINCT ( + 76 + - col2 ) FROM tab2
----
38
49
50

onlyif mysql # use DIV operator for integer division
query I rowsort label-6513
SELECT DISTINCT 84 DIV - tab2.col1 + + 22 + + col1 AS col1 FROM tab2
----
35
51
80

skipif mysql # not compatible
query I rowsort label-6513
SELECT DISTINCT 84 / - tab2.col1 + + 22 + + col1 AS col1 FROM tab2
----
35
51
80

query I rowsort
SELECT - col2 * + col0 + 70 AS col2 FROM tab0 AS cor0
----
-722
-7228
35

query I rowsort
SELECT ALL + col0 + + col0 * 90 AS col2 FROM tab0 AS cor0
----
2184
3185
8099

query I rowsort
SELECT DISTINCT + col0 * cor0.col1 * ( - col0 ) AS col2 FROM tab0 cor0
----
-118825
-49536
-720811

onlyif mysql # use DIV operator for integer division
query I rowsort label-6517
SELECT ALL - + col0 DIV + cor0.col1 col2 FROM tab0 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6517
SELECT ALL - + col0 / + cor0.col1 col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT - + 99 * col2 AS col1 FROM tab0 AS cor0
----
-3267
-8118
-99

query I rowsort
SELECT ALL - col0 + col1 * + col0 AS col1 FROM tab0
----
2040
3360
8010

onlyif mysql # use DIV operator for integer division
query I rowsort label-6520
SELECT DISTINCT col1 * col2 DIV ( tab1.col0 ) AS col2 FROM tab1
----
15
468
8

skipif mysql # not compatible
query I rowsort label-6520
SELECT DISTINCT col1 * col2 / ( tab1.col0 ) AS col2 FROM tab1
----
15
468
8

query I rowsort
SELECT ALL 88 + - col1 FROM tab2
----
29
57
71

query I rowsort
SELECT ALL cor0.col2 + + 91 * col0 AS col1 FROM tab1 AS cor0
----
327
5881
7376

query I rowsort
SELECT - + col1 * col0 + + col0 AS col2 FROM tab0 AS cor0
----
-2040
-3360
-8010

query I rowsort
SELECT - col1 * col2 + + 97 AS col0 FROM tab0 AS cor0
----
-2741
-7365
0

query I rowsort
SELECT col2 + + 10 FROM tab0 AS cor0
----
11
43
92

query I rowsort
SELECT DISTINCT + col1 * - ( col1 ) + + col2 AS col2 FROM tab2 AS cor0
----
-251
-3455
-934

query I rowsort
SELECT DISTINCT + col2 * + col2 + - col1 FROM tab0 AS cor0
----
-96
1003
6633

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6528
SELECT DISTINCT + col0 + CAST( NULL AS SIGNED ) * col2 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6528
SELECT DISTINCT + col0 + CAST ( NULL AS INTEGER ) * col2 FROM tab0 cor0
----
NULL

query I rowsort
SELECT DISTINCT - ( - 72 ) + col0 FROM tab0
----
107
161
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-6530
SELECT + ( col1 ) DIV tab1.col2 + 26 + 19 col2 FROM tab1
----
45
45
45

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6530
SELECT + ( col1 ) / tab1.col2 + 26 + 19 col2 FROM tab1
----
45
45
45

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * - 96 col0 FROM tab1 AS cor0
----
-288
-6144
-7680

onlyif mysql # use DIV operator for integer division
query I rowsort label-6532
SELECT DISTINCT - ( - col2 ) + - col0 DIV 50 FROM tab0 AS cor0
----
1
33
81

skipif mysql # not compatible
query I rowsort label-6532
SELECT DISTINCT - ( - col2 ) + - col0 / 50 FROM tab0 AS cor0
----
1
33
81

query I rowsort
SELECT ALL + ( col2 ) * - col0 + col2 AS col1 FROM tab2 AS cor0
----
-162
-2002
-2964

query I rowsort
SELECT ALL + - ( ( col0 ) ) AS col1 FROM tab2 AS cor0
----
-7
-78
-79

query I rowsort
SELECT ALL col0 * col2 - col2 FROM tab1 AS cor0
----
108
3591
7584

query I rowsort
SELECT + - ( - cor0.col1 ) * - col0 AS col1 FROM tab2 AS cor0
----
-1343
-217
-4602

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6537
SELECT DISTINCT - ( col2 ) + col0 * - CAST( col2 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-36
-7380
-825

skipif mysql # not compatible
query I rowsort label-6537
SELECT DISTINCT - ( col2 ) + col0 * - CAST ( col2 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-36
-7380
-825

query I rowsort
SELECT ALL + 49 * col2 + cor0.col0 * col0 FROM tab2 AS cor0
----
1372
7358
8103

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6539
SELECT CAST( NULL AS SIGNED ) + 29 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6539
SELECT CAST ( NULL AS INTEGER ) + 29 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + + col1 * 54 FROM tab2 AS cor0
----
1674
3186
918

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6541
SELECT + - CAST( NULL AS DECIMAL ) * 32 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6541
SELECT + - CAST ( NULL AS REAL ) * 32 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col2 + col0 * col2 * + col0 FROM tab0 AS cor0
----
1226
19041
649604

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6543
SELECT ALL - CAST( col0 AS SIGNED ) * col0 FROM tab1 AS cor0
----
-4096
-6400
-9

skipif mysql # not compatible
query I rowsort label-6543
SELECT ALL - CAST ( col0 AS INTEGER ) * col0 FROM tab1 AS cor0
----
-4096
-6400
-9

query I rowsort
SELECT DISTINCT + col1 + + col2 * col0 FROM tab2 AS cor0
----
2087
220
3019

query I rowsort
SELECT DISTINCT + ( col0 ) + - ( - cor0.col0 ) FROM tab1 AS cor0
----
128
160
6

onlyif mysql # use DIV operator for integer division
query I rowsort label-6546
SELECT col2 DIV + col0 + - cor0.col2 * + 94 FROM tab2 AS cor0
----
-2444
-2535
-3572

skipif mysql # not compatible
query I rowsort label-6546
SELECT col2 / + col0 + - cor0.col2 * + 94 FROM tab2 AS cor0
----
-2444
-2535
-3572

query I rowsort
SELECT + ( - col1 ) * 36 - col0 FROM tab0 cor0
----
-3120
-3365
-3527

query I rowsort
SELECT ALL col2 - cor0.col0 AS col1 FROM tab2 AS cor0
----
-41
-52
20

query I rowsort
SELECT ALL + + cor0.col2 FROM tab1, tab0 AS cor0
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8

query I rowsort
SELECT ALL - - cor0.col1 + col2 * col2 FROM tab2 AS cor0
----
1461
735
760

query I rowsort
SELECT col2 - - col2 AS col0 FROM tab2 cor0
----
52
54
76

query I rowsort
SELECT 28 + col1 AS col1 FROM tab1 AS cor0
----
38
41
54

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6553
SELECT CAST( 84 AS SIGNED ) * + cor0.col2 AS col2 FROM tab1 cor0
----
4536
4788
8064

skipif mysql # not compatible
query I rowsort label-6553
SELECT CAST ( 84 AS INTEGER ) * + cor0.col2 AS col2 FROM tab1 cor0
----
4536
4788
8064

query I rowsort
SELECT - - col0 * - col2 + col0 * col2 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-6555
SELECT + - col0 + col1 DIV + col1 FROM tab0 AS cor0
----
-23
-34
-88

skipif mysql # not compatible
query I rowsort label-6555
SELECT + - col0 + col1 / + col1 FROM tab0 AS cor0
----
-23
-34
-88

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6556
SELECT + + CAST( NULL AS SIGNED ) * - col0 - col1 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6556
SELECT + + CAST ( NULL AS INTEGER ) * - col0 - col1 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col0 + + 94 FROM tab2
----
101
172
173

query I rowsort
SELECT + col1 - col2 * - col1 FROM tab2 AS cor0
----
1593
663
868

query I rowsort
SELECT + - col0 * col0 + + cor0.col1 AS col1 FROM tab2 AS cor0
----
-18
-6025
-6224

onlyif mysql # use DIV operator for integer division
query I rowsort label-6560
SELECT 16 + + col1 DIV - col2 AS col2 FROM tab1 AS cor0
----
16
16
16

skipif mysql # not compatible
query I rowsort label-6560
SELECT 16 + + col1 / - col2 AS col2 FROM tab1 AS cor0
----
16
16
16

query I rowsort
SELECT ALL + 47 + col2 + cor0.col0 AS col0 FROM tab2 AS cor0
----
151
164
81

query I rowsort
SELECT ALL + 82 * + col1 AS col0 FROM tab1 AS cor0
----
1066
2132
820

query I rowsort
SELECT DISTINCT - col0 + + col2 - + col0 FROM tab2 cor0
----
-120
-130
13

query I rowsort
SELECT + col2 + col2 * - ( - col0 ) * - col2 FROM tab1 cor0
----
-207879
-737184
-8694

query I rowsort
SELECT DISTINCT + col1 * - col1 + 69 FROM tab1 AS cor0
----
-100
-31
-607

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 7 * col2 col1 FROM tab2
----
-182
-189
-266

query I rowsort
SELECT 35 AS col1 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 0d13dfd4c4a9d51ace3582c31cadcdbc

onlyif mysql # use DIV operator for integer division
query I rowsort label-6568
SELECT - col1 DIV col0 AS col0 FROM tab2 cor0
----
-4
0
0

skipif mysql # not compatible
query I rowsort label-6568
SELECT - col1 / col0 AS col0 FROM tab2 cor0
----
-4
0
0

query I rowsort
SELECT - cor0.col2 * + col2 - col0 * col1 FROM tab1 AS cor0
----
-10256
-2994
-3889

query I rowsort
SELECT - + 55 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to ac76841ceecd2311e80c621d15bacdd3

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6571
SELECT + col2 * CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6571
SELECT + col2 * CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT 61 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 8d4dfe649433a599fc4b10830cc7ce55

onlyif mysql # use DIV operator for integer division
query I rowsort label-6573
SELECT col0 DIV 52 AS col2 FROM tab1
----
0
1
1

skipif mysql # not compatible
query I rowsort label-6573
SELECT col0 / 52 AS col2 FROM tab1
----
0
1
1

query I rowsort
SELECT - - col0 + col0 * col0 - + col2 AS col2 FROM tab0 AS cor0
----
1259
567
7928

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6575
SELECT DISTINCT CAST( NULL AS SIGNED ) / 2 FROM tab1, tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6575
SELECT DISTINCT CAST ( NULL AS INTEGER ) / 2 FROM tab1, tab0 AS cor0
----
NULL

query I rowsort
SELECT col0 * 1 + cor0.col2 AS col1 FROM tab0 cor0
----
171
36
57

query I rowsort
SELECT 38 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to afaddad0a4e3a1683a1c8cbe6eb522a7

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab1, tab0 cor1, tab2 cor2, tab0 AS cor3
----
3645 values hashing to 0705df526be8eeded96d0c20ae938712

query I rowsort
SELECT - col1 * + 3 + col1 * col0 FROM tab2 AS cor0
----
124
1292
4425

query I rowsort
SELECT + 81 AS col0 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to 0a85639e0dddbffdab2cb16b027cb360

query I rowsort
SELECT - col0 * + 86 FROM tab2
----
-602
-6708
-6794

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + - tab2.col1 * col2 * - ( 32 ) + col1 col0 FROM tab2
----
20727
26842
49173

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + - ( + col1 ) col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - + col2 * + 20 FROM tab2 AS cor0
----
-520
-540
-760

query I rowsort
SELECT + ( - 91 ) + cor0.col0 * 29 AS col2 FROM tab2 AS cor0
----
112
2171
2200

query I rowsort
SELECT DISTINCT + - ( - 31 ) + + cor0.col0 * - col2 AS col2 FROM tab0 AS cor0
----
-4
-7267
-761

query I rowsort
SELECT DISTINCT ( - 71 ) + col1 * 70 FROM tab2 cor0
----
1119
2099
4059

skipif mysql # not compatible
query I rowsort
SELECT col2 * - col2 + col1 * CAST ( 64 AS REAL ) FROM tab0 cor0
----
-900
4415
6207

query I rowsort
SELECT + + col0 - 29 FROM tab0 AS cor0
----
-5
6
60

query I rowsort
SELECT DISTINCT cor0.col0 FROM tab2, tab1, tab0 AS cor0
----
24
35
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + + cor0.col2 col0 FROM tab2 AS cor0
----
104
117
34

query I rowsort
SELECT DISTINCT + + col0 + + ( - col0 ) AS col2 FROM tab2 AS cor0
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-6593
SELECT ALL - - col0 + + col1 DIV - col1 FROM tab2 cor0
----
6
77
78

skipif mysql # not compatible
query I rowsort label-6593
SELECT ALL - - col0 + + col1 / - col1 FROM tab2 cor0
----
6
77
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * col0 + ( - col2 ) col2 FROM tab1 AS cor0
----
-4153
-63
-6496

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6595
SELECT - cor0.col1 * CAST( - col1 AS SIGNED ) FROM tab2 AS cor0
----
289
3481
961

skipif mysql # not compatible
query I rowsort label-6595
SELECT - cor0.col1 * CAST ( - col1 AS INTEGER ) FROM tab2 AS cor0
----
289
3481
961

query I rowsort
SELECT ALL col0 * col0 * - col0 + col0 - col2 FROM tab1 AS cor0
----
-262137
-512016
-78

query I rowsort
SELECT + - cor0.col2 AS col0 FROM tab2 cor0
----
-26
-27
-38

query I rowsort
SELECT ALL + col0 + 67 FROM tab2 cor0
----
145
146
74

query I rowsort
SELECT ALL - col1 * 23 FROM tab1 AS cor0
----
-230
-299
-598

query I rowsort
SELECT ALL + 5 * col0 + - ( - col1 ) + + col1 AS col1 FROM tab1
----
340
426
67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + + col1 col0 FROM tab0 AS cor0
----
119
173
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 58 + + cor0.col0 col2 FROM tab2 AS cor0
----
-51
20
21

query I rowsort
SELECT col0 + + col2 * col1 + + cor0.col2 AS col0 FROM tab1 AS cor0
----
1424
1461
691

query I rowsort
SELECT - - col1 + col1 + col1 FROM tab0 AS cor0
----
258
273
291

query I rowsort
SELECT DISTINCT 44 * - col0 AS col0 FROM tab2 cor0
----
-308
-3432
-3476

onlyif mysql # use DIV operator for integer division
query I rowsort label-6606
SELECT ALL 83 * col2 DIV col1 AS col2 FROM tab2 AS cor0
----
185
36
72

skipif mysql # not compatible
query I rowsort label-6606
SELECT ALL 83 * col2 / col1 AS col2 FROM tab2 AS cor0
----
185
36
72

onlyif mysql # use DIV operator for integer division
query I rowsort label-6607
SELECT DISTINCT col0 * ( + col2 ) DIV + col2 AS col2 FROM tab1 cor0
----
3
64
80

skipif mysql # not compatible
query I rowsort label-6607
SELECT DISTINCT col0 * ( + col2 ) / + col2 AS col2 FROM tab1 cor0
----
3
64
80

query I rowsort
SELECT - 26 AS col2 FROM tab0, tab1 cor0
----
9 values hashing to 47d0574274146de273829785364ada39

query I rowsort
SELECT 14 FROM tab1, tab1 cor0
----
9 values hashing to 83e5779d2487d12495e7d816c797264f

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + col2 + CAST ( col2 AS REAL ) FROM tab0 AS cor0
----
164
2
66

query I rowsort
SELECT DISTINCT col1 + 13 AS col1 FROM tab1 AS cor0
----
23
26
39

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * tab1.col2 col1 FROM tab1
----
-2916
-3249
-9216

query I rowsort
SELECT ALL + col0 + - tab2.col1 AS col2 FROM tab2
----
-24
19
62

query I rowsort
SELECT DISTINCT + + col2 + + cor0.col1 - + col1 FROM tab2 AS cor0
----
26
27
38

query I rowsort
SELECT DISTINCT + 66 + col2 AS col1 FROM tab1
----
120
123
162

onlyif mysql # use DIV operator for integer division
query I rowsort label-6616
SELECT 61 DIV col0 + col0 DIV + 16 + 10 * tab0.col0 AS col0 FROM tab0
----
243
353
895

skipif mysql # not compatible
query I rowsort label-6616
SELECT 61 / col0 + col0 / + 16 + 10 * tab0.col0 AS col0 FROM tab0
----
243
353
895

onlyif mysql # use DIV operator for integer division
query I rowsort label-6617
SELECT - ( + col2 ) DIV col0 AS col0 FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-6617
SELECT - ( + col2 ) / col0 AS col0 FROM tab0
----
-1
0
0

query I rowsort
SELECT ALL 55 * - col0 AS col0 FROM tab2 AS cor0
----
-385
-4290
-4345

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab1 AS cor0, tab2 cor1, tab1 cor2
----
972 values hashing to 4634d10e8b6b37510bb99745aade36ab

query I rowsort
SELECT DISTINCT - col2 * col0 + col0 AS col0 FROM tab2 cor0
----
-182
-1950
-2923

query I rowsort
SELECT ALL + + cor0.col2 - ( - col0 ) FROM tab0 AS cor0
----
171
36
57

query I rowsort
SELECT cor0.col2 * col2 * col2 - + col0 FROM tab2 AS cor0
----
17498
19676
54793

query I rowsort
SELECT DISTINCT + cor0.col2 FROM tab2, tab2 cor0, tab0 AS cor1
----
26
27
38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * + col1 + - col1 col1 FROM tab0 AS cor0
----
0
2752
7371

onlyif mysql # use DIV operator for integer division
query I rowsort label-6625
SELECT ALL - + col1 + col2 DIV col2 AS col2 FROM tab1 AS cor0
----
-12
-25
-9

skipif mysql # not compatible
query I rowsort label-6625
SELECT ALL - + col1 + col2 / col2 AS col2 FROM tab1 AS cor0
----
-12
-25
-9

onlyif mysql # use DIV operator for integer division
query I rowsort label-6626
SELECT ALL + col2 + - col1 DIV + 33 AS col1 FROM tab2 AS cor0
----
25
27
38

skipif mysql # not compatible
query I rowsort label-6626
SELECT ALL + col2 + - col1 / + 33 AS col1 FROM tab2 AS cor0
----
25
27
38

query I rowsort
SELECT DISTINCT - + ( col2 ) + - 27 FROM tab1 cor0
----
-123
-81
-84

query I rowsort
SELECT 17 - + col2 AS col1 FROM tab0 AS cor0
----
-16
-65
16

query I rowsort
SELECT - 90 - + cor0.col2 FROM tab2 AS cor0
----
-116
-117
-128

onlyif mysql # use DIV operator for integer division
query I rowsort label-6630
SELECT ALL 59 * col0 + + 38 DIV col0 FROM tab0 AS cor0
----
1417
2066
5251

skipif mysql # not compatible
query I rowsort label-6630
SELECT ALL 59 * col0 + + 38 / col0 FROM tab0 AS cor0
----
1417
2066
5251

query I rowsort
SELECT col1 * - tab0.col2 * + tab0.col2 + col1 * - col1 + tab0.col2 * - ( - 98 ) AS col2 FROM tab0
----
-612129
-9408
-97816

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6632
SELECT DISTINCT CAST( + col0 AS SIGNED ) + + col0 AS col0 FROM tab2
----
14
156
158

skipif mysql # not compatible
query I rowsort label-6632
SELECT DISTINCT CAST ( + col0 AS INTEGER ) + + col0 AS col0 FROM tab2
----
14
156
158

query I rowsort
SELECT DISTINCT + 51 + - col1 FROM tab0
----
-35
-40
-46

query I rowsort
SELECT col1 * 12 FROM tab0
----
1032
1092
1164

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab1.col1 col1 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to c7890469eabb2c6fc81454b35d2333b6

onlyif mysql # use DIV operator for integer division
query I rowsort label-6636
SELECT 91 DIV - col0 FROM tab0
----
-1
-2
-3

skipif mysql # not compatible
query I rowsort label-6636
SELECT 91 / - col0 FROM tab0
----
-1
-2
-3

query I rowsort
SELECT DISTINCT + 0 + + 17 FROM tab1
----
17

query I rowsort
SELECT + + 11 * + col1 + + col1 * + 43 AS col0 FROM tab1 AS cor0
----
1404
540
702

query I rowsort
SELECT DISTINCT - col1 - - col2 * + tab0.col2 FROM tab0
----
-96
1003
6633

query I rowsort
SELECT DISTINCT tab2.col2 * - col2 - + col1 AS col1 FROM tab2
----
-1461
-735
-760

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6641
SELECT + CAST( NULL AS SIGNED ) - col1 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6641
SELECT + CAST ( NULL AS INTEGER ) - col1 AS col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-6642
SELECT col2 + - col1 DIV col0 + + ( 52 ) FROM tab2
----
75
78
90

skipif mysql # not compatible
query I rowsort label-6642
SELECT col2 + - col1 / col0 + + ( 52 ) FROM tab2
----
75
78
90

query I rowsort
SELECT col1 * - cor0.col0 - col1 * cor0.col2 FROM tab1 AS cor0
----
-1210
-1482
-2288

query I rowsort
SELECT - - col0 + + col2 * 35 - 48 FROM tab2 AS cor0
----
1361
904
940

query I rowsort
SELECT ALL + - col0 - + cor0.col0 FROM tab0 AS cor0
----
-178
-48
-70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 84 + col2 - - cor0.col1 col0 FROM tab2 AS cor0
----
139
142
169

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6647
SELECT + col1 * + col0 - - CAST( - col1 AS SIGNED ) * + col2 AS col1 FROM tab1 AS cor0
----
-1326
-208
70

skipif mysql # not compatible
query I rowsort label-6647
SELECT + col1 * + col0 - - CAST ( - col1 AS INTEGER ) * + col2 AS col1 FROM tab1 AS cor0
----
-1326
-208
70

query I rowsort
SELECT - 21 * + col2 + - col1 - 55 * - col1 FROM tab0 AS cor0
----
3192
3951
5217

query I rowsort
SELECT + + col2 + - 99 AS col2 FROM tab1 AS cor0
----
-3
-42
-45

query I rowsort
SELECT ALL 95 * + col2 * col0 + - col0 FROM tab0
----
3290
693221
75216

query I rowsort
SELECT + col0 * - cor0.col2 + - col1 FROM tab2 AS cor0
----
-2087
-220
-3019

query I rowsort
SELECT ( col0 ) * col0 AS col2 FROM tab1
----
4096
6400
9

query I rowsort
SELECT ALL 91 AS col1 FROM tab0
----
91
91
91

query I rowsort
SELECT + cor0.col2 * - cor0.col0 AS col0 FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT + col1 + + ( - cor0.col2 ) AS col2 FROM tab1 AS cor0
----
-28
-47
-83

query I rowsort
SELECT + ( col0 ) * + col1 * col2 FROM tab2 AS cor0
----
119652
51034
5859

query I rowsort
SELECT col0 * 81 + col2 * + col0 FROM tab0
----
14507
2736
2870

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * ( col2 ) col0 FROM tab0
----
2838
7462
97

query I rowsort
SELECT - cor0.col1 AS col1 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to 6e0b7d583bc2c53842166d3e6ba2d6d2

query I rowsort
SELECT - 31 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to c6c8eebeb1a59f7c046402e25630c0ac

query I rowsort
SELECT DISTINCT - 41 * + 63 FROM tab0
----
-2583

query I rowsort
SELECT ALL + - ( - col2 ) + cor0.col1 FROM tab1 AS cor0
----
109
67
80

query I rowsort
SELECT DISTINCT - 64 + col2 * col0 FROM tab1 cor0
----
3584
7616
98

query I rowsort
SELECT DISTINCT - - col1 * + col1 AS col2 FROM tab1 AS cor0
----
100
169
676

onlyif mysql # use DIV operator for integer division
query I rowsort label-6665
SELECT ALL + + cor0.col0 DIV col0 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6665
SELECT ALL + + cor0.col0 / col0 FROM tab1 AS cor0
----
1
1
1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6666
SELECT DISTINCT - - CAST( + 83 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
83

skipif mysql # not compatible
query I rowsort label-6666
SELECT DISTINCT - - CAST ( + 83 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
83

query I rowsort
SELECT DISTINCT - col2 + - 58 FROM tab2 cor0
----
-84
-85
-96

query I rowsort
SELECT - + cor0.col2 * - col2 AS col1 FROM tab1 AS cor0
----
2916
3249
9216

query I rowsort
SELECT + 55 AS col2 FROM tab2
----
55
55
55

query I rowsort
SELECT DISTINCT + + ( + cor0.col0 ) * + col2 * 56 AS col0 FROM tab0 AS cor0
----
1960
408688
44352

query I rowsort
SELECT DISTINCT cor0.col1 * + 61 FROM tab2 AS cor0
----
1037
1891
3599

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6672
SELECT ALL - CAST( col0 AS SIGNED ) * col0 + col0 FROM tab2 AS cor0
----
-42
-6006
-6162

skipif mysql # not compatible
query I rowsort label-6672
SELECT ALL - CAST ( col0 AS INTEGER ) * col0 + col0 FROM tab2 AS cor0
----
-42
-6006
-6162

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6673
SELECT CAST( NULL AS SIGNED ) / col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6673
SELECT CAST ( NULL AS INTEGER ) / col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - cor0.col2 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 6a43e7f15194af73fe1c83385e6ebebc

query I rowsort
SELECT col0 + col2 - col0 AS col1 FROM tab0
----
1
33
82

query I rowsort
SELECT cor0.col1 * - cor0.col0 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to a95320dbb4fb4aa98e2920d866f19abe

query I rowsort
SELECT DISTINCT col2 - 53 FROM tab1
----
1
4
43

query I rowsort
SELECT ALL + 32 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to d30a2acbf33c88274474306936d3227b

query I rowsort
SELECT - ( col0 ) * col1 + ( + col2 ) * col0 FROM tab0 cor0
----
-1272
-3360
-801

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * col2 + - col1 col0 FROM tab1 AS cor0
----
2890
3239
9203

query I rowsort
SELECT + - col1 * 36 + col0 FROM tab0 AS cor0
----
-3072
-3187
-3457

query I rowsort
SELECT 49 + + 43 FROM tab1 AS cor0
----
92
92
92

query I rowsort
SELECT 78 * col0 + col1 + col2 * 71 * col0 FROM tab0 cor0
----
525191
5312
58190

query I rowsort
SELECT 57 * cor0.col1 - col1 FROM tab1 AS cor0
----
1456
560
728

onlyif mysql # use DIV operator for integer division
query I rowsort label-6685
SELECT ALL - col2 DIV col1 + + col1 * cor0.col1 col0 FROM tab0 AS cor0
----
7396
8281
9409

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6685
SELECT ALL - col2 / col1 + + col1 * cor0.col1 col0 FROM tab0 AS cor0
----
7396
8281
9409

query I rowsort
SELECT - - col2 * + col0 - cor0.col1 FROM tab2 cor0
----
158
1969
2985

query I rowsort
SELECT + - 78 - col2 AS col2 FROM tab2 cor0
----
-104
-105
-116

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( + col2 ) * col2 * col2 + + col1 col2 FROM tab1 AS cor0
----
-157438
-185183
-884723

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6689
SELECT CAST( NULL AS SIGNED ) * - tab1.col1 FROM tab1, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-6689
SELECT CAST ( NULL AS INTEGER ) * - tab1.col1 FROM tab1, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT ALL - tab0.col2 * 32 AS col2 FROM tab0
----
-1056
-2624
-32

query I rowsort
SELECT DISTINCT - - col2 * + 84 FROM tab0 AS cor0
----
2772
6888
84

query I rowsort
SELECT DISTINCT - + cor0.col0 + - col0 FROM tab2 AS cor0
----
-14
-156
-158

query I rowsort
SELECT + col0 + + cor0.col1 FROM tab1 AS cor0
----
29
74
93

query I rowsort
SELECT ALL col0 * 93 * col2 + + 11 AS col0 FROM tab0 AS cor0
----
3266
678725
73667

query I rowsort
SELECT 14 + + 75 AS col1 FROM tab0 AS cor0
----
89
89
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( col0 ) * col2 col2 FROM tab1 cor0
----
-162
-3648
-7680

query I rowsort
SELECT + - ( ( col1 ) ) * - ( + cor0.col0 ) FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT ALL 94 AS col1 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to a4d239626cf0546ac1b2f57bb8407089

query I rowsort
SELECT - - col0 * + cor0.col2 AS col2 FROM tab2 AS cor0
----
189
2028
3002

skipif mysql # not compatible
query I rowsort
SELECT - col2 * col0 + CAST ( 72 AS REAL ) * col0 * + 37 + + 25 FROM tab0 AS cor0
----
229823
63169
93230

query I rowsort
SELECT ALL ( 52 ) AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 7f4ae30893ab330784829711032ae599

onlyif mysql # use DIV operator for integer division
query I rowsort label-6702
SELECT DISTINCT - + cor0.col1 + ( - col1 ) * col1 DIV + CAST( + col1 AS SIGNED ) - col0 col1 FROM tab0 AS cor0
----
-196
-229
-271

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6702
SELECT DISTINCT - + cor0.col1 + ( - col1 ) * col1 / + CAST ( + col1 AS INTEGER ) - col0 col1 FROM tab0 AS cor0
----
-196
-229
-271

query I rowsort
SELECT DISTINCT - 68 * + 82 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-5576

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * + col1 col2 FROM tab1 cor0
----
-1248
-1404
-570

query I rowsort
SELECT ALL col2 * + ( - 44 ) AS col1 FROM tab2 AS cor0
----
-1144
-1188
-1672

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col2 * + 13 col2 FROM tab1 cor0
----
1248
702
741

query I rowsort
SELECT + col1 * 80 + + col1 FROM tab1 cor0
----
1053
2106
810

query I rowsort
SELECT + cor0.col0 * 58 FROM tab2 AS cor0
----
406
4524
4582

query I rowsort
SELECT ALL + col2 - 99 AS col0 FROM tab1 AS cor0
----
-3
-42
-45

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6710
SELECT ALL - col0 * + CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6710
SELECT ALL - col0 * + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-6711
SELECT + - col1 DIV - ( + 99 ) FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6711
SELECT + - col1 / - ( + 99 ) FROM tab2 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-6712
SELECT ALL col1 DIV - col1 AS col2 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-6712
SELECT ALL col1 / - col1 AS col2 FROM tab0 AS cor0
----
-1
-1
-1

query I rowsort
SELECT - - cor0.col1 * - col0 + + col0 AS col0 FROM tab2 AS cor0
----
-1264
-210
-4524

query I rowsort
SELECT ALL + cor0.col2 * - ( 17 ) FROM tab2 AS cor0
----
-442
-459
-646

onlyif mysql # use DIV operator for integer division
query I rowsort label-6715
SELECT col0 DIV + ( col1 ) + col0 * + col1 DIV col1 FROM tab0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-6715
SELECT col0 / + ( col1 ) + col0 * + col1 / col1 FROM tab0
----
24
35
89

query I rowsort
SELECT DISTINCT 74 AS col1 FROM tab0, tab2 AS cor0
----
74

query I rowsort
SELECT ALL 61 * cor0.col2 - col2 AS col1 FROM tab0 AS cor0
----
1980
4920
60

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab2, tab0 AS cor1, tab1 AS cor2
----
972 values hashing to 2d99dda76af061a3fac120e0e49e6c53

query I rowsort
SELECT ALL col2 * 76 * + tab0.col0 FROM tab0
----
2660
554648
60192

query I rowsort
SELECT - cor0.col1 + col2 AS col2 FROM tab2 AS cor0
----
-33
-4
21

query I rowsort
SELECT ALL + - col2 * - col1 AS col1 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT ALL + + col0 + col0 AS col2 FROM tab1 AS cor0
----
128
160
6

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6723
SELECT ALL - col0 * col0 + - col0 + CAST( 57 * col0 + + col2 AS SIGNED ) AS col2 FROM tab1
----
-1824
-455
213

skipif mysql # not compatible
query I rowsort label-6723
SELECT ALL - col0 * col0 + - col0 + CAST ( 57 * col0 + + col2 AS INTEGER ) AS col2 FROM tab1
----
-1824
-455
213

onlyif mysql # use DIV operator for integer division
query I rowsort label-6724
SELECT DISTINCT ( tab2.col2 ) + col0 + - col2 * - col1 DIV + col1 AS col1 FROM tab2
----
130
155
61

skipif mysql # not compatible
query I rowsort label-6724
SELECT DISTINCT ( tab2.col2 ) + col0 + - col2 * - col1 / + col1 AS col1 FROM tab2
----
130
155
61

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 30 + + col2 col0 FROM tab2
----
56
57
68

query I rowsort
SELECT 87 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 8661ffbd1a72897c495405c53b816e50

query I rowsort
SELECT + 82 + + 61 + + col1 FROM tab0 AS cor0
----
229
234
240

query I rowsort
SELECT ALL - + 59 * + col2 AS col1 FROM tab1 AS cor0
----
-3186
-3363
-5664

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6729
SELECT - + CAST( NULL AS DECIMAL ) * - 97 - + col1 * 95 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6729
SELECT - + CAST ( NULL AS REAL ) * - 97 - + col1 * 95 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - ( 21 ) * - col2 FROM tab0 AS cor0
----
1722
21
693

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6731
SELECT - CAST( NULL AS SIGNED ) * + col0 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6731
SELECT - CAST ( NULL AS INTEGER ) * + col0 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6732
SELECT - CAST( + 89 AS SIGNED ) FROM tab1, tab1 AS cor0
----
9 values hashing to 924a74d31360fa4301c953b423a4710e

skipif mysql # not compatible
query I rowsort label-6732
SELECT - CAST ( + 89 AS INTEGER ) FROM tab1, tab1 AS cor0
----
9 values hashing to 924a74d31360fa4301c953b423a4710e

query I rowsort
SELECT ALL 20 * - col1 FROM tab1
----
-200
-260
-520

query I rowsort
SELECT ALL - col2 + + 23 * - tab1.col1 AS col1 FROM tab1
----
-287
-395
-652

query I rowsort
SELECT ALL - col1 + - col1 + col0 FROM tab2
----
-40
-55
45

query I rowsort
SELECT ALL + col0 + 65 FROM tab1
----
129
145
68

query I rowsort
SELECT ALL + ( + col0 ) AS col0 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT 54 * 1 AS col0 FROM tab1 cor0
----
54
54
54

query I rowsort
SELECT ALL ( - cor0.col2 ) * + col0 + + col1 * col0 FROM tab0 AS cor0
----
1272
3360
801

query I rowsort
SELECT - col2 - col2 * - cor0.col1 FROM tab1 AS cor0
----
1152
1350
513

query I rowsort
SELECT + 4 AS col0 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 730dff78e83112374961ea711f98ebaa

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6742
SELECT DISTINCT - CAST( NULL AS SIGNED ) / 39 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-6742
SELECT DISTINCT - CAST ( NULL AS INTEGER ) / 39 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
NULL

query I rowsort
SELECT + 60 AS col1 FROM tab2
----
60
60
60

query I rowsort
SELECT + col2 + + col1 AS col0 FROM tab1
----
109
67
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-6745
SELECT ALL 12 DIV cor0.col2 + col0 FROM tab1 AS cor0
----
3
64
80

skipif mysql # not compatible
query I rowsort label-6745
SELECT ALL 12 / cor0.col2 + col0 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT ALL + - col1 * - col2 * col1 AS col2 FROM tab0 AS cor0
----
244068
679042
9409

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6747
SELECT - col2 * - CAST( NULL AS SIGNED ) - 11 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6747
SELECT - col2 * - CAST ( NULL AS INTEGER ) - 11 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6748
SELECT ALL cor0.col1 * + CAST( col1 * col2 AS SIGNED ) + + col0 AS col0 FROM tab2 AS cor0
----
11061
25954
90584

skipif mysql # not compatible
query I rowsort label-6748
SELECT ALL cor0.col1 * + CAST ( col1 * col2 AS INTEGER ) + + col0 AS col0 FROM tab2 AS cor0
----
11061
25954
90584

onlyif mysql # use DIV operator for integer division
query I rowsort label-6749
SELECT DISTINCT - + col2 DIV - col2 col1 FROM tab0 AS cor0
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6749
SELECT DISTINCT - + col2 / - col2 col1 FROM tab0 AS cor0
----
1

query I rowsort
SELECT DISTINCT + col2 + ( + 66 ) FROM tab0 AS cor0
----
148
67
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 * col1 + + col2 * cor0.col1 - 99 col2 FROM tab0 AS cor0
----
-99
-99
-99

onlyif mysql # use DIV operator for integer division
query I rowsort label-6752
SELECT ALL col2 DIV 21 FROM tab0 AS cor0
----
0
1
3

skipif mysql # not compatible
query I rowsort label-6752
SELECT ALL col2 / 21 FROM tab0 AS cor0
----
0
1
3

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6753
SELECT DISTINCT - col0 + + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6753
SELECT DISTINCT - col0 + + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + col0 + 68 FROM tab2 cor0
----
146
147
75

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6755
SELECT - - cor0.col1 * - CAST( + col2 AS SIGNED ) * col2 + col2 AS col1 FROM tab0 cor0
----
-611802
-93621
-96

skipif mysql # not compatible
query I rowsort label-6755
SELECT - - cor0.col1 * - CAST ( + col2 AS INTEGER ) * col2 + col2 AS col1 FROM tab0 cor0
----
-611802
-93621
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * - 17 col2 FROM tab1 AS cor0
----
-1632
-918
-969

query I rowsort
SELECT ALL - - col1 * - col2 + + col1 + + col0 * ( col1 ) AS col2 FROM tab2 AS cor0
----
-589
3127
714

onlyif mysql # use DIV operator for integer division
query I rowsort label-6758
SELECT cor0.col0 DIV - col0 AS col0 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-6758
SELECT cor0.col0 / - col0 AS col0 FROM tab1 AS cor0
----
-1
-1
-1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6759
SELECT - cor0.col0 * CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6759
SELECT - cor0.col0 * CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-6760
SELECT ALL - col1 DIV CAST( + col0 AS SIGNED ) + col0 FROM tab2 AS cor0
----
3
78
79

skipif mysql # not compatible
query I rowsort label-6760
SELECT ALL - col1 / CAST ( + col0 AS INTEGER ) + col0 FROM tab2 AS cor0
----
3
78
79

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6761
SELECT DISTINCT - - cor0.col0 + - CAST( NULL AS SIGNED ) * 26 AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6761
SELECT DISTINCT - - cor0.col0 + - CAST ( NULL AS INTEGER ) * 26 AS col2 FROM tab0 AS cor0
----
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6762
SELECT DISTINCT col1 + CAST( NULL AS SIGNED ) * col0 col1 FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6762
SELECT DISTINCT col1 + CAST ( NULL AS INTEGER ) * col0 col1 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT + col2 + + 45 AS col1 FROM tab2 AS cor0
----
71
72
83

query I rowsort
SELECT ALL - - col0 + 80 * + col0 AS col2 FROM tab2 AS cor0
----
567
6318
6399

onlyif mysql # use DIV operator for integer division
query I rowsort label-6765
SELECT DISTINCT + col0 DIV 53 AS col0 FROM tab1 cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-6765
SELECT DISTINCT + col0 / 53 AS col0 FROM tab1 cor0
----
0
1

query I rowsort
SELECT col1 * 30 AS col0 FROM tab0 cor0
----
2580
2730
2910

query I rowsort
SELECT DISTINCT - 97 FROM tab2, tab0 AS cor0
----
-97

query I rowsort
SELECT - col0 * - cor0.col1 FROM tab2 AS cor0
----
1343
217
4602

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 19 col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 339c9d62143bf2f7566b89a1b56eeeb4

onlyif mysql # use DIV operator for integer division
query I rowsort label-6770
SELECT - ( ( col1 ) ) DIV - ( - ( - col0 ) ) - + 41 FROM tab1 cor0
----
-33
-41
-41

skipif mysql # not compatible
query I rowsort label-6770
SELECT - ( ( col1 ) ) / - ( - ( - col0 ) ) - + 41 FROM tab1 cor0
----
-33
-41
-41

query I rowsort
SELECT + 40 + 18 AS col0 FROM tab0 AS cor0
----
58
58
58

query I rowsort
SELECT - - 49 - - 30 FROM tab2 AS cor0
----
79
79
79

onlyif mysql # use DIV operator for integer division
query I rowsort label-6773
SELECT - tab0.col2 + col2 DIV col1 AS col0 FROM tab0
----
-1
-33
-82

skipif mysql # not compatible
query I rowsort label-6773
SELECT - tab0.col2 + col2 / col1 AS col0 FROM tab0
----
-1
-33
-82

query I rowsort
SELECT - 70 * + 96 AS col0 FROM tab0 AS cor0
----
-6720
-6720
-6720

query I rowsort
SELECT - + ( + col1 ) + col0 * - 13 AS col2 FROM tab2 AS cor0
----
-1044
-1073
-122

query I rowsort
SELECT DISTINCT 23 FROM tab2, tab1 AS cor0
----
23

query I rowsort
SELECT DISTINCT - col1 * + 73 AS col0 FROM tab1
----
-1898
-730
-949

onlyif mysql # use DIV operator for integer division
query I rowsort label-6778
SELECT DISTINCT col0 DIV col0 col1 FROM tab1 AS cor0
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6778
SELECT DISTINCT col0 / col0 col1 FROM tab1 AS cor0
----
1

query I rowsort
SELECT ALL - 3 FROM tab2 cor0
----
-3
-3
-3

query I rowsort
SELECT + col1 * - col0 + + col1 + ( col1 + - 17 ) AS col2 FROM tab1 AS cor0
----
-1031
-43
-637

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + - col1 col2 FROM tab2 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 55 * col2 col0 FROM tab2 AS cor0
----
1430
1485
2090

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6783
SELECT DISTINCT + 10 + - col2 * - ( + col2 ) - col1 * CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6783
SELECT DISTINCT + 10 + - col2 * - ( + col2 ) - col1 * CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 85 + cor0.col1 col1 FROM tab2 AS cor0
----
-26
-54
-68

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6785
SELECT + - col2 + col0 + - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6785
SELECT + - col2 + col0 + - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col2 * - col2 + + ( - 26 ) * col2 + + col1 * - ( + col1 ) FROM tab1 AS cor0
----
1667
6551
836

onlyif mysql # use DIV operator for integer division
query I rowsort label-6787
SELECT col1 * + 33 - col2 DIV - col1 AS col1 FROM tab2
----
1023
1947
563

skipif mysql # not compatible
query I rowsort label-6787
SELECT col1 * + 33 - col2 / - col1 AS col1 FROM tab2
----
1023
1947
563

query I rowsort
SELECT ALL + col2 + - cor0.col2 - + col2 * - 51 FROM tab1 AS cor0
----
2754
2907
4896

query I rowsort
SELECT DISTINCT 89 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
89

query I rowsort
SELECT ( + 32 ) FROM tab2
----
32
32
32

query I rowsort
SELECT ALL col2 + col1 * col1 * - col0 AS col0 FROM tab1 AS cor0
----
-13424
-1974
-6343

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + col0 col1 FROM tab1 AS cor0
----
128
160
6

onlyif mysql # use DIV operator for integer division
query I rowsort label-6793
SELECT - - col1 + + col0 * ( - col2 ) DIV + cor0.col0 AS col1 FROM tab1 AS cor0
----
-28
-47
-83

skipif mysql # not compatible
query I rowsort label-6793
SELECT - - col1 + + col0 * ( - col2 ) / + cor0.col0 AS col1 FROM tab1 AS cor0
----
-28
-47
-83

query I rowsort
SELECT ALL - ( - col1 ) FROM tab2 cor0
----
17
31
59

query I rowsort
SELECT ALL + col0 * 69 FROM tab1
----
207
4416
5520

onlyif mysql # use DIV operator for integer division
query I rowsort label-6796
SELECT - col1 * col2 DIV + col0 col2 FROM tab0 AS cor0
----
-118
-2
-83

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6796
SELECT - col1 * col2 / + col0 col2 FROM tab0 AS cor0
----
-118
-2
-83

query I rowsort
SELECT 52 AS col1 FROM tab0
----
52
52
52

query I rowsort
SELECT - cor0.col0 * + col0 * cor0.col0 FROM tab0 AS cor0
----
-13824
-42875
-704969

query I rowsort
SELECT col0 * - 92 AS col0 FROM tab0
----
-2208
-3220
-8188

onlyif mysql # use DIV operator for integer division
query I rowsort label-6800
SELECT - col2 DIV col0 + - ( col2 ) FROM tab0 AS cor0
----
-1
-34
-82

skipif mysql # not compatible
query I rowsort label-6800
SELECT - col2 / col0 + - ( col2 ) FROM tab0 AS cor0
----
-1
-34
-82

onlyif mysql # use DIV operator for integer division
query I rowsort label-6801
SELECT + col0 + + col1 DIV + col1 AS col1 FROM tab2 AS cor0
----
79
8
80

skipif mysql # not compatible
query I rowsort label-6801
SELECT + col0 + + col1 / + col1 AS col1 FROM tab2 AS cor0
----
79
8
80

query I rowsort
SELECT + - col0 * 96 * + 99 + col1 AS col1 FROM tab2 AS cor0
----
-66497
-741253
-750799

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6803
SELECT - cor0.col1 * CAST( + col0 AS SIGNED ) + col0 AS col1 FROM tab1 AS cor0
----
-576
-75
-960

skipif mysql # not compatible
query I rowsort label-6803
SELECT - cor0.col1 * CAST ( + col0 AS INTEGER ) + col0 AS col1 FROM tab1 AS cor0
----
-576
-75
-960

query I rowsort
SELECT ALL - 73 FROM tab0, tab0 AS cor0
----
9 values hashing to 84ab9db5468b4a1781bd8d5c8e0e77fc

query I rowsort
SELECT - 44 AS col2 FROM tab0 AS cor0
----
-44
-44
-44

query I rowsort
SELECT - 12 FROM tab0 AS cor0
----
-12
-12
-12

query I rowsort
SELECT DISTINCT + 23 * - col2 + - col1 AS col2 FROM tab1
----
-1268
-1321
-2221

query I rowsort
SELECT ALL - 57 FROM tab2, tab0 AS cor0
----
9 values hashing to 520dc393896969e02a72ab6c5d92126b

query I rowsort
SELECT ALL - col1 + - col2 * - cor0.col2 FROM tab1 AS cor0
----
2890
3239
9203

query I rowsort
SELECT ALL - 95 * - 90 FROM tab2 AS cor0
----
8550
8550
8550

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 14 + + col2 col2 FROM tab2 AS cor0
----
40
41
52

query I rowsort
SELECT ALL - col1 + 66 + - cor0.col0 FROM tab2 AS cor0
----
-30
-71
28

query I rowsort
SELECT + ( cor0.col1 ) AS col0 FROM tab1 cor0
----
10
13
26

query I rowsort
SELECT ALL + col0 + 19 FROM tab1 AS cor0
----
22
83
99

query I rowsort
SELECT + col2 + ( - col1 ) AS col2 FROM tab2 AS cor0
----
-33
-4
21

query I rowsort
SELECT - 99 * col2 AS col1 FROM tab0 AS cor0
----
-3267
-8118
-99

query I rowsort
SELECT ALL - 99 FROM tab2 cor0
----
-99
-99
-99

query I rowsort
SELECT + col1 + - cor0.col0 * + col1 AS col0 FROM tab2 AS cor0
----
-1326
-186
-4543

query I rowsort
SELECT ALL - - col2 * 74 AS col2 FROM tab0 cor0
----
2442
6068
74

query I rowsort
SELECT DISTINCT - 38 * col1 + col0 AS col1 FROM tab1 AS cor0
----
-316
-414
-985

query I rowsort
SELECT + col1 + ( - col1 ) AS col0 FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT ALL - 94 * + col2 AS col0 FROM tab1 cor0
----
-5076
-5358
-9024

query I rowsort
SELECT DISTINCT - 78 * - col2 + - 65 * + col2 * - col0 + 35 FROM tab2 AS cor0
----
133883
14426
198129

query I rowsort
SELECT ALL - 96 - + col2 AS col1 FROM tab0 AS cor0
----
-129
-178
-97

query I rowsort
SELECT ALL + ( - cor0.col2 ) * col2 + + 11 AS col0 FROM tab2 AS cor0
----
-1433
-665
-718

query I rowsort
SELECT ALL - col1 + col0 * col0 * + col0 AS col0 FROM tab1 AS cor0
----
1
262134
511987

query I rowsort
SELECT ALL + + 48 + col2 + ( - 65 * - col1 ) FROM tab0 AS cor0
----
5671
6045
6354

query I rowsort
SELECT + col2 * - cor0.col0 + - col0 FROM tab1 AS cor0
----
-165
-3712
-7760

query I rowsort
SELECT DISTINCT + 31 * col1 + col2 AS col0 FROM tab0 AS cor0
----
2699
2903
3008

query I rowsort
SELECT + cor0.col2 * + col1 + - 77 - + col0 FROM tab0 AS cor0
----
-15
2737
7296

query I rowsort
SELECT 71 AS col2 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 95a6ff35b7b8f00868fb58bcaa32d0c2

query I rowsort
SELECT - 37 * - col0 FROM tab2
----
259
2886
2923

query I rowsort
SELECT ALL - - col2 * + 7 FROM tab0 AS cor0
----
231
574
7

query I rowsort
SELECT DISTINCT + + cor0.col1 * + cor0.col0 FROM tab2 AS cor0
----
1343
217
4602

onlyif mysql # use DIV operator for integer division
query I rowsort label-6835
SELECT ALL 64 DIV + 54 FROM tab0, tab2 AS cor0
----
9 values hashing to 001554c2952f1a80506b182ee04686f5

skipif mysql # not compatible
query I rowsort label-6835
SELECT ALL 64 / + 54 FROM tab0, tab2 AS cor0
----
9 values hashing to 001554c2952f1a80506b182ee04686f5

query I rowsort
SELECT DISTINCT col0 * + 56 FROM tab2
----
392
4368
4424

onlyif mysql # use DIV operator for integer division
query I rowsort label-6837
SELECT DISTINCT tab0.col0 - CAST( - 6 AS SIGNED ) DIV col1 FROM tab0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-6837
SELECT DISTINCT tab0.col0 - CAST ( - 6 AS INTEGER ) / col1 FROM tab0
----
24
35
89

query I rowsort
SELECT - col0 + 69 FROM tab0
----
-20
34
45

query I rowsort
SELECT tab1.col0 + - 41 - + 37 * + col1 FROM tab1
----
-1000
-347
-442

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab1, tab2 cor0, tab1 AS cor1
----
972 values hashing to 4c0813b2179303fdf58f082d81d6d03c

query I rowsort
SELECT col0 * - 65 AS col2 FROM tab2
----
-455
-5070
-5135

query I rowsort
SELECT ALL - ( - 43 ) + cor0.col1 AS col0 FROM tab1, tab2, tab2 AS cor0, tab0 cor1
----
81 values hashing to 85cfaddd1ac7876efdd6b711aaa55939

query I rowsort
SELECT + - col1 - 75 FROM tab1 cor0
----
-101
-85
-88

query I rowsort
SELECT ALL - 51 FROM tab1, tab1 AS cor0, tab1 cor1
----
27 values hashing to 27bcc31433ce90833ed76619cbd8d6a4

query I rowsort
SELECT DISTINCT - col1 + ( - 29 ) * - col2 FROM tab0
----
-68
2287
871

query I rowsort
SELECT ALL col1 + ( col0 ) AS col1 FROM tab1
----
29
74
93

query I rowsort
SELECT - col2 * cor0.col2 + - 6 * + 92 FROM tab0 AS cor0
----
-1641
-553
-7276

query I rowsort
SELECT + + col2 * cor0.col0 + - 55 * 14 AS col2 FROM tab0 AS cor0
----
-735
22
6528

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + cor0.col1 col0 FROM tab1 AS cor0
----
29
74
93

query I rowsort
SELECT DISTINCT + ( cor0.col1 ) * ( col1 ) AS col1 FROM tab2 AS cor0
----
289
3481
961

query I rowsort
SELECT DISTINCT - cor0.col1 - col0 FROM tab0 cor0
----
-110
-132
-180

query I rowsort
SELECT ALL + + 84 + + col2 * + 95 FROM tab0 AS cor0
----
179
3219
7874

onlyif mysql # use DIV operator for integer division
query I rowsort label-6853
SELECT ALL - col2 DIV + col2 + col0 * 53 AS col1 FROM tab0 AS cor0
----
1271
1854
4716

skipif mysql # not compatible
query I rowsort label-6853
SELECT ALL - col2 / + col2 + col0 * 53 AS col1 FROM tab0 AS cor0
----
1271
1854
4716

query I rowsort
SELECT DISTINCT + 89 * + col0 + - col1 AS col1 FROM tab1 AS cor0
----
241
5686
7107

query I rowsort
SELECT DISTINCT - + col2 + - col0 * 76 FROM tab2 AS cor0
----
-559
-5954
-6042

query I rowsort
SELECT ALL + + 46 + + col1 + cor0.col0 FROM tab0 AS cor0
----
156
178
226

query I rowsort
SELECT DISTINCT - cor0.col0 * col2 - col2 AS col2 FROM tab0 AS cor0
----
-36
-7380
-825

query I rowsort
SELECT ALL col1 - + col1 AS col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - 65 + - col2 AS col0 FROM tab0 cor0
----
-147
-66
-98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 50 + tab1.col1 * + 72 col1 FROM tab1
----
1822
670
886

query I rowsort
SELECT - ( 29 ) FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 0cc9ddad93fc783055518ae4b6be054b

query I rowsort
SELECT ALL - col2 + - 30 AS col1 FROM tab2 AS cor0
----
-56
-57
-68

query I rowsort
SELECT + ( 85 ) + - col1 * 15 FROM tab1 AS cor0
----
-110
-305
-65

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * col1 * col0 + - col1 col2 FROM tab1 AS cor0
----
208
40950
83187

query I rowsort
SELECT + ( + cor0.col1 ) AS col0 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT ALL - 22 * - 68 AS col1 FROM tab1 cor0
----
1496
1496
1496

query I rowsort
SELECT ALL col1 + + col1 * + col2 AS col0 FROM tab0 AS cor0
----
194
2924
7553

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6868
SELECT - CAST( col2 AS SIGNED ) + - col2 FROM tab0
----
-164
-2
-66

skipif mysql # not compatible
query I rowsort label-6868
SELECT - CAST ( col2 AS INTEGER ) + - col2 FROM tab0
----
-164
-2
-66

query I rowsort
SELECT ALL + ( tab0.col0 ) AS col2 FROM tab0
----
24
35
89

query I rowsort
SELECT ALL + 22 FROM tab2, tab0 AS cor0
----
9 values hashing to c55ee7433d8d39a59b1de2aadd9538c9

query I rowsort
SELECT - ( ( col2 ) ) AS col1 FROM tab0
----
-1
-33
-82

query I rowsort
SELECT ALL + ( + tab1.col2 * col1 ) FROM tab1
----
1248
1404
570

query I rowsort
SELECT - col0 + + ( col2 * - 66 ) AS col0 FROM tab2
----
-1789
-1794
-2587

query I rowsort
SELECT DISTINCT - 1 AS col0 FROM tab1 AS cor0
----
-1

query I rowsort
SELECT + 98 AS col0 FROM tab2
----
98
98
98

query I rowsort
SELECT ALL cor1.col1 AS col1 FROM tab2, tab1 cor0, tab0 AS cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd

query I rowsort
SELECT + 68 * col0 FROM tab2 AS cor0
----
476
5304
5372

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6878
SELECT + CAST( col2 AS SIGNED ) AS col1 FROM tab2
----
26
27
38

skipif mysql # not compatible
query I rowsort label-6878
SELECT + CAST ( col2 AS INTEGER ) AS col1 FROM tab2
----
26
27
38

query I rowsort
SELECT - tab0.col2 * 39 FROM tab0
----
-1287
-3198
-39

query I rowsort
SELECT tab0.col0 + + cor0.col0 + - 72 FROM tab0, tab1 AS cor0
----
9 values hashing to d4926587da62fed1fa616f80da48994c

query I rowsort
SELECT ALL - 89 * + col2 AS col2 FROM tab2
----
-2314
-2403
-3382

query I rowsort
SELECT ALL + ( + 55 ) FROM tab0, tab0 AS cor0
----
9 values hashing to 1626bd3008abd9f18cc88cdecf7b64d0

query I rowsort
SELECT ALL + - col0 * - cor0.col2 - col2 FROM tab2 AS cor0
----
162
2002
2964

query I rowsort
SELECT - + col1 - ( cor0.col1 * col1 ) AS col0 FROM tab1 AS cor0
----
-110
-182
-702

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6885
SELECT DISTINCT col0 + - CAST( - ( col2 ) AS SIGNED ) + col0 FROM tab1 AS cor0
----
185
256
60

skipif mysql # not compatible
query I rowsort label-6885
SELECT DISTINCT col0 + - CAST ( - ( col2 ) AS INTEGER ) + col0 FROM tab1 AS cor0
----
185
256
60

query I rowsort
SELECT ALL col0 + - col2 FROM tab0 cor0
----
-9
34
7

onlyif mysql # use DIV operator for integer division
query I rowsort label-6887
SELECT - - col2 + cor0.col2 DIV col2 FROM tab0 AS cor0
----
2
34
83

skipif mysql # not compatible
query I rowsort label-6887
SELECT - - col2 + cor0.col2 / col2 FROM tab0 AS cor0
----
2
34
83

query I rowsort
SELECT - 76 * 60 + - col2 + - col2 FROM tab1 AS cor0
----
-4668
-4674
-4752

query I rowsort
SELECT + col2 * - col2 + cor0.col0 * + col0 FROM tab2 AS cor0
----
-680
4797
5408

skipif mysql # not compatible
query I rowsort
SELECT ALL - CAST ( ( col1 ) AS REAL ) AS col1 FROM tab1 cor0
----
-10
-13
-26

query I rowsort
SELECT col1 * + 33 AS col2 FROM tab0 AS cor0
----
2838
3003
3201

onlyif mysql # use DIV operator for integer division
query I rowsort label-6892
SELECT ALL - + 76 * 83 + col0 DIV col1 + + cor0.col1 col2 FROM tab1 AS cor0
----
-6282
-6289
-6292

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6892
SELECT ALL - + 76 * 83 + col0 / col1 + + cor0.col1 col2 FROM tab1 AS cor0
----
-6282
-6289
-6292

query I rowsort
SELECT - ( 43 ) AS col1 FROM tab1 AS cor0
----
-43
-43
-43

query I rowsort
SELECT DISTINCT + col1 * 66 + 7 AS col1 FROM tab0
----
5683
6013
6409

query I rowsort
SELECT DISTINCT - 84 AS col1 FROM tab0, tab0 AS cor0
----
-84

onlyif mysql # use DIV operator for integer division
query I rowsort label-6896
SELECT tab1.col0 * + col0 DIV 1 + col2 + + 63 col1 FROM tab1
----
126
4216
6559

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6896
SELECT tab1.col0 * + col0 / 1 + col2 + + 63 col1 FROM tab1
----
126
4216
6559

query I rowsort
SELECT + col0 * + col0 * + col2 + col2 * col2 FROM tab1 AS cor0
----
236721
3402
623616

query I rowsort
SELECT - - col2 * + ( - col1 ) + + cor0.col2 AS col0 FROM tab2 AS cor0
----
-1508
-608
-810

query I rowsort
SELECT - ( - 42 ) FROM tab2, tab0 AS cor0
----
9 values hashing to 64c29db9f1cd7ed4ddeb1735e3e0d442

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6900
SELECT ALL - col1 + CAST( cor0.col0 AS SIGNED ) * - col0 FROM tab2 AS cor0
----
-6143
-6258
-80

skipif mysql # not compatible
query I rowsort label-6900
SELECT ALL - col1 + CAST ( cor0.col0 AS INTEGER ) * - col0 FROM tab2 AS cor0
----
-6143
-6258
-80

query I rowsort
SELECT - col1 * + 5 FROM tab1 AS cor0
----
-130
-50
-65

query I rowsort
SELECT DISTINCT + 90 * - col0 AS col0 FROM tab1
----
-270
-5760
-7200

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * ( - cor0.col2 ) * + col2 col1 FROM tab0 AS cor0
----
-1
-35937
-551368

onlyif mysql # use DIV operator for integer division
query I rowsort label-6904
SELECT ALL - + cor0.col0 DIV - col1 FROM tab0 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6904
SELECT ALL - + cor0.col0 / - col1 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT ALL - - col0 * + 43 FROM tab0 AS cor0
----
1032
1505
3827

query I rowsort
SELECT ALL + ( + cor0.col0 ) * col2 AS col1 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT ALL + ( col2 ) + - cor0.col2 * cor0.col1 AS col2 FROM tab0 AS cor0
----
-2805
-7380
-96

query I rowsort
SELECT DISTINCT + + 9 + + cor0.col2 * - col2 AS col0 FROM tab1 AS cor0
----
-2907
-3240
-9207

query I rowsort
SELECT ALL - 50 + + col1 AS col2 FROM tab1 cor0
----
-24
-37
-40

query I rowsort
SELECT DISTINCT + tab1.col0 * - col0 FROM tab1
----
-4096
-6400
-9

query I rowsort
SELECT col2 - col1 * ( - tab1.col0 + - 47 ) FROM tab1
----
1167
1354
1747

query I rowsort
SELECT ALL col1 * ( 92 * + col0 ) FROM tab0
----
189888
312340
745108

query I rowsort
SELECT - 82 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to f800b0aad28b82b2deb67f7045c9a45c

query I rowsort
SELECT - ( + 32 ) AS col1 FROM tab1, tab2, tab0 AS cor0, tab2 AS cor1
----
81 values hashing to 54c3a9a1fd8612641b43985c0c2f59cd

query I rowsort
SELECT - col0 + 20 * - col0 FROM tab1
----
-1344
-1680
-63

query I rowsort
SELECT DISTINCT 67 AS col1 FROM tab0 cor0
----
67

query I rowsort
SELECT col1 + col1 + cor0.col1 * cor0.col2 FROM tab2 cor0
----
1652
680
899

query I rowsort
SELECT ALL + ( 35 ) AS col1 FROM tab2
----
35
35
35

query I rowsort
SELECT - cor0.col1 * - col0 + - 17 FROM tab1 AS cor0
----
1023
61
623

query I rowsort
SELECT col1 - - col1 FROM tab2 cor0
----
118
34
62

query I rowsort
SELECT + col1 * - col1 + 48 * col0 FROM tab1 AS cor0
----
-532
2972
3671

query I rowsort
SELECT ALL + tab2.col1 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d

query I rowsort
SELECT ALL - tab1.col1 * - 82 AS col0 FROM tab1
----
1066
2132
820

query I rowsort
SELECT DISTINCT - 97 * + tab0.col2 FROM tab0
----
-3201
-7954
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - cor0.col2 ) * ( - col2 ) - + cor0.col0 col1 FROM tab2 AS cor0
----
1365
598
722

query I rowsort
SELECT cor0.col1 * + col1 + - col0 AS col1 FROM tab2 AS cor0
----
210
3403
954

query I rowsort
SELECT + + 91 * - col1 FROM tab2 AS cor0
----
-1547
-2821
-5369

query I rowsort
SELECT + col1 * - col2 * - col1 FROM tab1
----
16224
36504
5700

query I rowsort
SELECT DISTINCT 72 * col1 + - 79 FROM tab0
----
6113
6473
6905

query I rowsort
SELECT ALL + - 51 AS col2 FROM tab2, tab0, tab2 cor0
----
27 values hashing to 27bcc31433ce90833ed76619cbd8d6a4

onlyif mysql # use DIV operator for integer division
query I rowsort label-6931
SELECT ALL cor0.col2 DIV + cor0.col1 FROM tab2 AS cor0
----
0
0
2

skipif mysql # not compatible
query I rowsort label-6931
SELECT ALL cor0.col2 / + cor0.col1 FROM tab2 AS cor0
----
0
0
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + - col2 + tab2.col0 col1 FROM tab2
----
11
111
58

query I rowsort
SELECT ALL + col1 * - col2 - - 68 * col2 FROM tab2
----
1938
234
999

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + col1 - + col1 col1 FROM tab2
----
17
31
59

query I rowsort
SELECT - 67 - + col2 AS col2 FROM tab2
----
-105
-93
-94

onlyif mysql # use DIV operator for integer division
query I rowsort label-6936
SELECT DISTINCT + col1 DIV + col1 + - tab0.col1 AS col1 FROM tab0
----
-85
-90
-96

skipif mysql # not compatible
query I rowsort label-6936
SELECT DISTINCT + col1 / + col1 + - tab0.col1 AS col1 FROM tab0
----
-85
-90
-96

query I rowsort
SELECT DISTINCT 15 + col1 AS col2 FROM tab1
----
25
28
41

query I rowsort
SELECT DISTINCT + - cor0.col2 * - col0 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT ALL col0 * 32 AS col1 FROM tab1 AS cor0
----
2048
2560
96

query I rowsort
SELECT + - col0 * 98 + - 48 + cor0.col0 FROM tab1 AS cor0
----
-339
-6256
-7808

query I rowsort
SELECT ALL col1 * 27 + + 39 * - col1 FROM tab1 cor0
----
-120
-156
-312

onlyif mysql # use DIV operator for integer division
query I rowsort label-6942
SELECT ALL col0 DIV + CAST( + 95 AS SIGNED ) FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6942
SELECT ALL col0 / + CAST ( + 95 AS INTEGER ) FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT col0 * ( + 50 ) AS col2 FROM tab2 AS cor0
----
350
3900
3950

query I rowsort
SELECT ALL - + col0 + - cor0.col0 * - col2 * + col0 AS col2 FROM tab1 AS cor0
----
233408
483
614320

query I rowsort
SELECT ALL col1 * - ( - ( col1 ) ) + - 30 + col0 AS col2 FROM tab0 AS cor0
----
7390
8340
9414

query I rowsort
SELECT DISTINCT col0 + 41 * col2 AS col2 FROM tab2 AS cor0
----
1114
1144
1637

query I rowsort
SELECT - col2 * ( col1 ) + - col0 FROM tab1 AS cor0
----
-1328
-1407
-634

query I rowsort
SELECT + col1 + - col2 * cor0.col2 FROM tab0 AS cor0
----
-1003
-6633
96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6949
SELECT ALL col2 + CAST( cor0.col1 AS SIGNED ) FROM tab2 AS cor0
----
55
58
85

skipif mysql # not compatible
query I rowsort label-6949
SELECT ALL col2 + CAST ( cor0.col1 AS INTEGER ) FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT DISTINCT col1 * + 24 AS col1 FROM tab2 AS cor0
----
1416
408
744

query I rowsort
SELECT DISTINCT + 86 * - 39 AS col2 FROM tab1, tab2 AS cor0 CROSS JOIN tab0
----
-3354

query I rowsort
SELECT ALL + col1 + col1 * + col0 FROM tab0 AS cor0
----
2150
3492
8190

query I rowsort
SELECT col0 * - col2 * col2 AS col0 FROM tab2 AS cor0
----
-114076
-5103
-52728

query I rowsort
SELECT DISTINCT - - cor0.col2 AS col2 FROM tab0 cor0
----
1
33
82

query I rowsort
SELECT - col2 * 4 FROM tab0 AS cor0
----
-132
-328
-4

query I rowsort
SELECT ALL col2 + col0 AS col0 FROM tab1 cor0
----
121
176
57

onlyif mysql # use DIV operator for integer division
query I rowsort label-6957
SELECT DISTINCT - cor0.col0 DIV 13 + col0 * + col2 FROM tab1 AS cor0
----
162
3644
7674

skipif mysql # not compatible
query I rowsort label-6957
SELECT DISTINCT - cor0.col0 / 13 + col0 * + col2 FROM tab1 AS cor0
----
162
3644
7674

query I rowsort
SELECT + - col2 * + 36 AS col2 FROM tab0 AS cor0
----
-1188
-2952
-36

query I rowsort
SELECT DISTINCT - 80 * cor0.col1 + col2 - - 6 FROM tab1 AS cor0
----
-2020
-737
-938

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0, tab2 cor0, tab1 cor1, tab1, tab2 AS cor2
----
3645 values hashing to 944e54872ec2718f5c1c2710e1806e36

query I rowsort
SELECT - 32 - - col1 FROM tab2 AS cor0
----
-1
-15
27

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col2 + col0 * ( - col1 + + col1 ) col1 FROM tab2 AS cor0
----
26
27
38

onlyif mysql # use DIV operator for integer division
query I rowsort label-6963
SELECT DISTINCT 82 * col2 DIV cor0.col0 AS col2 FROM tab2 AS cor0
----
27
316
39

skipif mysql # not compatible
query I rowsort label-6963
SELECT DISTINCT 82 * col2 / cor0.col0 AS col2 FROM tab2 AS cor0
----
27
316
39

query I rowsort
SELECT + col0 + col1 * + 62 * - col0 AS col2 FROM tab0 cor0
----
-127944
-210455
-502049

query I rowsort
SELECT DISTINCT col0 * + col2 + - 13 * - 84 FROM tab0 AS cor0
----
1127
1884
8390

query I rowsort
SELECT ALL cor1.col1 AS col0 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd

query I rowsort
SELECT DISTINCT - 78 * + cor0.col0 FROM tab2 AS cor0
----
-546
-6084
-6162

query I rowsort
SELECT - col0 - col1 * - ( col1 * - col0 ) FROM tab1 AS cor0
----
-13600
-2031
-6464

query I rowsort
SELECT DISTINCT + - 27 AS col0 FROM tab1 AS cor0
----
-27

query III rowsort
SELECT * FROM tab0 WHERE - col0 NOT IN ( col0 )
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7

query I rowsort
SELECT DISTINCT col1 * tab2.col2 + col0 FROM tab2
----
1612
725
844

query I rowsort
SELECT ALL col1 * + col2 * + col1 + col2 AS col1 FROM tab0
----
244101
679124
9410

query I rowsort
SELECT DISTINCT col1 - + col2 AS col1 FROM tab1
----
-28
-47
-83

query I rowsort
SELECT tab0.col1 + - col0 * + col2 FROM tab0
----
-706
-7207
62

query I rowsort
SELECT ALL tab0.col0 + tab0.col0 FROM tab0
----
178
48
70

query I rowsort
SELECT DISTINCT + col1 * + col0 + - col0 FROM tab2
----
1264
210
4524

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NULL ) > col1
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-6978
SELECT + col0 + col0 * - col0 DIV col0 AS col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6978
SELECT + col0 + col0 * - col0 / col0 AS col0 FROM tab1
----
0
0
0

query I rowsort
SELECT col0 * col0 - + col1 AS col1 FROM tab1
----
-17
4086
6387

onlyif mysql # use DIV operator for integer division
query I rowsort label-6980
SELECT ALL col0 + tab2.col0 DIV - col1 FROM tab2
----
7
75
77

skipif mysql # not compatible
query I rowsort label-6980
SELECT ALL col0 + tab2.col0 / - col1 FROM tab2
----
7
75
77

query I rowsort
SELECT + col2 + + col0 * + tab0.col0 AS col2 FROM tab0
----
1226
609
8003

query I rowsort
SELECT ALL + - 37 * cor0.col1 AS col0 FROM tab0 AS cor0
----
-3182
-3367
-3589

query I rowsort
SELECT DISTINCT + cor0.col1 + col0 FROM tab1 cor0
----
29
74
93

query I rowsort
SELECT + 40 * cor0.col0 AS col0 FROM tab0 AS cor0
----
1400
3560
960

onlyif mysql # use DIV operator for integer division
query I rowsort label-6985
SELECT DISTINCT 26 + - cor0.col1 DIV col1 FROM tab2 AS cor0
----
25

skipif mysql # not compatible
query I rowsort label-6985
SELECT DISTINCT 26 + - cor0.col1 / col1 FROM tab2 AS cor0
----
25

onlyif mysql # use DIV operator for integer division
query I rowsort label-6986
SELECT + col1 * col0 * - tab0.col1 + col1 * col1 - col1 DIV col2 AS col1 FROM tab0
----
-170110
-320003
-728729

skipif mysql # not compatible
query I rowsort label-6986
SELECT + col1 * col0 * - tab0.col1 + col1 * col1 - col1 / col2 AS col1 FROM tab0
----
-170110
-320003
-728729

query I rowsort
SELECT ALL col0 AS col2 FROM tab0 WHERE NOT NULL IN ( - col2 * col0 )
----

query I rowsort
SELECT DISTINCT + col2 * + col1 + col0 * + col1 FROM tab0
----
15561
3492
4902

query I rowsort
SELECT - - ( + cor0.col2 ) AS col1 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT ALL col1 FROM tab0 AS cor0 WHERE NOT - col2 NOT BETWEEN - col2 * - col1 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * col1 col0 FROM tab2 WHERE ( NULL ) BETWEEN - col0 * + col2 - col0 * col1 AND ( NULL )
----

query I rowsort
SELECT + cor0.col0 * - col0 + + cor0.col2 * + col0 AS col0 FROM tab2 AS cor0
----
-3239
-4056
140

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 - - col0 col1 FROM tab0
----
-9
34
7

query I rowsort
SELECT col2 + - tab0.col2 + + col0 * col2 FROM tab0
----
35
7298
792

query I rowsort
SELECT ALL col2 - + col0 AS col1 FROM tab2
----
-41
-52
20

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NULL <> col2 + + col1
----

query I rowsort
SELECT DISTINCT - tab1.col0 * col2 * - col1 + col1 AS col0 FROM tab1
----
36490
4238
99853

query I rowsort
SELECT + col2 * col2 - - col0 FROM tab1
----
2919
3313
9296

query I rowsort
SELECT ALL - col1 + - col2 AS col0 FROM tab2
----
-55
-58
-85

query I rowsort
SELECT col0 AS col0 FROM tab1 WHERE tab1.col2 * col0 + col1 IN ( - col0 )
----

query I rowsort
SELECT ALL col0 * col2 * - col1 AS col1 FROM tab0
----
-3395
-664118
-68112

query I rowsort
SELECT - col0 FROM tab0 WHERE - col1 * col0 + + col2 NOT BETWEEN + col0 AND col0
----
-24
-35
-89

query I rowsort
SELECT ALL col2 * col1 / + col0 + col1 + - col0 AS col1 FROM tab0 WHERE NULL NOT IN ( col2 * + col1 + + col1 )
----

query I rowsort
SELECT ALL col1 - + tab2.col2 AS col0 FROM tab2
----
-21
33
4

query I rowsort
SELECT + col1 + col1 * - col2 FROM tab1
----
-1235
-1378
-560

query I rowsort
SELECT - col1 + + tab2.col1 * col1 FROM tab2
----
272
3422
930

query I rowsort
SELECT col0 + col1 * col1 AS col2 FROM tab0 WHERE ( - col2 ) IN ( col0 )
----

query I rowsort
SELECT - col0 * col1 * + col2 FROM tab1
----
-36480
-4212
-99840

query I rowsort
SELECT ALL + col2 * + col0 + + col1 AS col0 FROM tab1
----
188
3658
7693

query I rowsort
SELECT ALL + col1 FROM tab1 WHERE NULL = ( - col0 )
----

query I rowsort
SELECT - col2 * - col2 - col0 AS col1 FROM tab2
----
1365
598
722

query I rowsort
SELECT ALL + tab0.col1 * - col0 * + col2 AS col0 FROM tab0
----
-3395
-664118
-68112

query I rowsort
SELECT col1 AS col1 FROM tab0 WHERE NOT NULL NOT IN ( col2 * - tab0.col0 )
----

query I rowsort
SELECT - - cor0.col0 * col2 FROM tab2 cor0
----
189
2028
3002

query I rowsort
SELECT - + col0 + col1 * col2 * + ( col0 + + cor0.col2 ) AS col2 FROM tab1 AS cor0
----
219568
68906
80025

onlyif mysql # use DIV operator for integer division
query I rowsort label-7016
SELECT col2 DIV - col1 + 57 AS col0 FROM tab1
----
50
52
55

skipif mysql # not compatible
query I rowsort label-7016
SELECT col2 / - col1 + 57 AS col0 FROM tab1
----
50
52
55

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( ( - col1 ) ) * + col1 col1 FROM tab2
----
-289
-3481
-961

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7018
SELECT DISTINCT + CAST( + 14 AS SIGNED ) AS col1 FROM tab2
----
14

skipif mysql # not compatible
query I rowsort label-7018
SELECT DISTINCT + CAST ( + 14 AS INTEGER ) AS col1 FROM tab2
----
14

query I rowsort
SELECT + + 20 + - col2 FROM tab2 cor0
----
-18
-6
-7

query I rowsort
SELECT DISTINCT + 69 + - ( col2 ) FROM tab0 cor0
----
-13
36
68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + col2 + col1 col2 FROM tab0 cor0
----
132
7389
878

query I rowsort
SELECT tab0.col2 * - tab0.col0 * - col0 AS col0 FROM tab0
----
1225
19008
649522

query I rowsort
SELECT DISTINCT - ( + col1 ) * + col0 FROM tab0
----
-2064
-3395
-8099

query I rowsort
SELECT col2 * - col1 + - 97 + - col0 FROM tab2
----
-1709
-822
-941

query I rowsort
SELECT cor0.col1 - + ( cor0.col2 ) AS col1 FROM tab1 AS cor0
----
-28
-47
-83

query I rowsort
SELECT ALL ( + col2 ) * + 43 AS col1 FROM tab1 AS cor0
----
2322
2451
4128

query I rowsort
SELECT DISTINCT - - col0 * + ( col0 ) AS col1 FROM tab1 AS cor0
----
4096
6400
9

onlyif mysql # use DIV operator for integer division
query I rowsort label-7028
SELECT + col1 DIV col2 AS col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7028
SELECT + col1 / col2 AS col2 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-7029
SELECT col1 DIV tab0.col2 AS col0 FROM tab0
----
1
2
97

skipif mysql # not compatible
query I rowsort label-7029
SELECT col1 / tab0.col2 AS col0 FROM tab0
----
1
2
97

query I rowsort
SELECT col0 * col2 + + ( col1 ) AS col2 FROM tab1 AS cor0
----
188
3658
7693

query I rowsort
SELECT - col1 * + 78 - col2 FROM tab0 AS cor0
----
-6741
-7180
-7567

query I rowsort
SELECT ALL - - col0 * col0 + + 50 AS col2 FROM tab1 cor0
----
4146
59
6450

query I rowsort
SELECT - - col2 + col1 + - col0 AS col2 FROM tab0 AS cor0
----
63
84
95

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7034
SELECT DISTINCT - col2 * CAST( NULL AS SIGNED ) * + 59 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7034
SELECT DISTINCT - col2 * CAST ( NULL AS INTEGER ) * + 59 FROM tab1 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * 18 + + col0 col2 FROM tab2
----
1140
385
565

query I rowsort
SELECT 23 * + cor0.col2 - col0 AS col1 FROM tab1 AS cor0
----
1239
1247
2128

query I rowsort
SELECT - 82 * col0 AS col0 FROM tab0
----
-1968
-2870
-7298

query I rowsort
SELECT - tab1.col2 + + col2 + + col0 * + col0 FROM tab1
----
4096
6400
9

query I rowsort
SELECT + 39 + col0 FROM tab0
----
128
63
74

query I rowsort
SELECT DISTINCT 31 + col0 * - col0 FROM tab2
----
-18
-6053
-6210

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 96 col2 FROM tab1 AS cor0
----
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 * - col0 * cor0.col1 col2 FROM tab0 AS cor0
----
-177504
-329315
-737009

query I rowsort
SELECT - 20 + col2 AS col0 FROM tab1 AS cor0
----
34
37
76

query I rowsort
SELECT ALL ( - col0 ) * col0 + col0 AS col2 FROM tab0 AS cor0
----
-1190
-552
-7832

query I rowsort
SELECT DISTINCT 96 * + col2 AS col2 FROM tab2 AS cor0
----
2496
2592
3648

query I rowsort
SELECT ALL + + col2 + + col0 * col1 FROM tab0 AS cor0
----
2097
3396
8181

query I rowsort
SELECT - + col2 * col0 + col2 * + col2 * col1 FROM tab0 AS cor0
----
604586
62
92862

query I rowsort
SELECT ALL - 77 + + col2 AS col1 FROM tab0 AS cor0
----
-44
-76
5

query I rowsort
SELECT ALL + + col0 + cor0.col1 FROM tab1 cor0
----
29
74
93

query I rowsort
SELECT DISTINCT - 62 FROM tab1
----
-62

query I rowsort
SELECT DISTINCT col0 * + col1 * - col1 FROM tab2
----
-22831
-271518
-6727

query I rowsort
SELECT DISTINCT - ( col2 ) * col1 - col1 FROM tab0 AS cor0
----
-194
-2924
-7553

onlyif mysql # use DIV operator for integer division
query I rowsort label-7053
SELECT ALL - + ( cor0.col1 ) DIV col1 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-7053
SELECT ALL - + ( cor0.col1 ) / col1 FROM tab0 AS cor0
----
-1
-1
-1

query I rowsort
SELECT - cor0.col1 * + ( + col0 ) AS col2 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT - col2 + - 72 * + col1 FROM tab2 AS cor0
----
-1262
-2259
-4274

query I rowsort
SELECT ALL - col1 * ( col1 + col0 ) FROM tab1 AS cor0
----
-1209
-740
-754

query I rowsort
SELECT cor0.col1 * + 33 AS col2 FROM tab0 AS cor0
----
2838
3003
3201

query I rowsort
SELECT DISTINCT + 90 * + col2 * - col1 FROM tab1
----
-112320
-126360
-51300

onlyif mysql # use DIV operator for integer division
query I rowsort label-7059
SELECT DISTINCT 35 DIV col1 FROM tab1
----
1
2
3

skipif mysql # not compatible
query I rowsort label-7059
SELECT DISTINCT 35 / col1 FROM tab1
----
1
2
3

query I rowsort
SELECT + col0 * col0 * tab1.col1 AS col1 FROM tab1
----
234
40960
83200

onlyif mysql # use DIV operator for integer division
query I rowsort label-7061
SELECT - col0 - - 36 DIV 46 FROM tab0 cor0
----
-24
-35
-89

skipif mysql # not compatible
query I rowsort label-7061
SELECT - col0 - - 36 / 46 FROM tab0 cor0
----
-24
-35
-89

query I rowsort
SELECT ALL + - col0 * col1 * col0 FROM tab1 AS cor0
----
-234
-40960
-83200

query I rowsort
SELECT col1 * + cor0.col2 * + col2 + - col1 AS col1 FROM tab2 AS cor0
----
22568
24531
39825

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col1 * col2 * col1 col2 FROM tab2 AS cor0
----
10982
25947
90506

query I rowsort
SELECT + - cor0.col1 * + col2 - col2 FROM tab2 AS cor0
----
-1560
-684
-864

query I rowsort
SELECT tab1.col2 * - col1 + - col1 AS col0 FROM tab1
----
-1261
-1430
-580

query I rowsort
SELECT col2 - col0 * + col2 FROM tab1
----
-108
-3591
-7584

onlyif mysql # use DIV operator for integer division
query I rowsort label-7068
SELECT ALL col2 * - col0 DIV - tab2.col0 AS col1 FROM tab2
----
26
27
38

skipif mysql # not compatible
query I rowsort label-7068
SELECT ALL col2 * - col0 / - tab2.col0 AS col1 FROM tab2
----
26
27
38

query I rowsort
SELECT - col2 * col2 * + col2 - + col0 FROM tab1
----
-157467
-185257
-884816

onlyif mysql # use DIV operator for integer division
query I rowsort label-7070
SELECT + tab1.col2 DIV col0 AS col2 FROM tab1
----
0
1
18

skipif mysql # not compatible
query I rowsort label-7070
SELECT + tab1.col2 / col0 AS col2 FROM tab1
----
0
1
18

query I rowsort
SELECT ALL col2 + + col1 + + tab2.col1 FROM tab2
----
144
72
89

query I rowsort
SELECT DISTINCT - - col0 * - cor0.col1 AS col0 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT - col2 * - col0 AS col0 FROM tab1 cor0
----
162
3648
7680

query I rowsort
SELECT + cor0.col2 * col0 - - col2 * - col1 * col1 FROM tab2 AS cor0
----
-25758
-7980
-88478

onlyif mysql # use DIV operator for integer division
query I rowsort label-7075
SELECT DISTINCT + col1 + col1 DIV - col1 + - col0 AS col2 FROM tab0
----
1
61

skipif mysql # not compatible
query I rowsort label-7075
SELECT DISTINCT + col1 + col1 / - col1 + - col0 AS col2 FROM tab0
----
1
61

query I rowsort
SELECT tab1.col0 + col1 + + col0 AS col2 FROM tab1
----
138
173
32

query I rowsort
SELECT col0 + + col2 - col2 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT DISTINCT - cor0.col1 * cor0.col0 + + col2 * + col2 + col0 FROM tab0 AS cor0
----
-1286
-3359
-951

query I rowsort
SELECT + col2 * - col1 + + col2 AS col2 FROM tab2 AS cor0
----
-1508
-608
-810

query I rowsort
SELECT ALL col2 * - col0 AS col0 FROM tab1 cor0
----
-162
-3648
-7680

query I rowsort
SELECT ALL 57 + + col2 AS col1 FROM tab2
----
83
84
95

query I rowsort
SELECT 29 + col2 FROM tab1
----
125
83
86

onlyif mysql # use DIV operator for integer division
query I rowsort label-7083
SELECT ALL - col1 DIV + col1 AS col2 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-7083
SELECT ALL - col1 / + col1 AS col2 FROM tab2
----
-1
-1
-1

query I rowsort
SELECT + 23 + col2 FROM tab0 AS cor0
----
105
24
56

query I rowsort
SELECT - col1 + + cor0.col2 AS col0 FROM tab0 AS cor0
----
-53
-9
-96

query I rowsort
SELECT cor0.col1 + - col0 FROM tab1 AS cor0
----
-54
-67
23

query I rowsort
SELECT - + cor0.col1 * col0 AS col1 FROM tab0 cor0
----
-2064
-3395
-8099

query I rowsort
SELECT ALL - - cor0.col0 * + col2 FROM tab2 AS cor0
----
189
2028
3002

onlyif mysql # use DIV operator for integer division
query I rowsort label-7089
SELECT DISTINCT tab0.col1 * tab0.col0 DIV col0 AS col2 FROM tab0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-7089
SELECT DISTINCT tab0.col1 * tab0.col0 / col0 AS col2 FROM tab0
----
86
91
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - col1 * + cor0.col0 col2 FROM tab1 AS cor0
----
-36480
-4212
-99840

query I rowsort
SELECT DISTINCT - col1 + col0 * col1 AS col1 FROM tab0 AS cor0
----
1978
3298
8008

query I rowsort
SELECT DISTINCT + col1 * col0 * col2 + col0 + col1 * + col2 FROM tab0 AS cor0
----
3527
671669
70974

query IIIIII rowsort
SELECT ALL * FROM tab1, tab1 AS cor0 WHERE NOT NULL <> NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-7094
SELECT DISTINCT - col0 * - col1 + col0 * - ( col2 ) + - 62 DIV - tab0.col0 FROM tab0
----
1274
3361
801

skipif mysql # not compatible
query I rowsort label-7094
SELECT DISTINCT - col0 * - col1 + col0 * - ( col2 ) + - 62 / - tab0.col0 FROM tab0
----
1274
3361
801

query I rowsort
SELECT + - cor0.col0 * + col2 + + col1 AS col1 FROM tab2 AS cor0
----
-158
-1969
-2985

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * + 62 + ( col2 ) col2 FROM tab2 AS cor0
----
-1586
-1647
-2318

onlyif mysql # use DIV operator for integer division
query I rowsort label-7097
SELECT col0 + cor0.col2 DIV col0 + col0 DIV col2 FROM tab0 AS cor0
----
25
70
90

skipif mysql # not compatible
query I rowsort label-7097
SELECT col0 + cor0.col2 / col0 + col0 / col2 FROM tab0 AS cor0
----
25
70
90

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7098
SELECT + CAST( NULL AS SIGNED ) FROM tab1 AS cor0 CROSS JOIN tab1, tab0 AS cor1, tab2 AS cor2
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c

skipif mysql # not compatible
query I rowsort label-7098
SELECT + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 CROSS JOIN tab1, tab0 AS cor1, tab2 AS cor2
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c

query I rowsort
SELECT - col2 + + ( + col2 ) + - cor0.col2 FROM tab2 AS cor0
----
-26
-27
-38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col0 + col2 + - col0 col2 FROM tab0 cor0
----
1
33
82

query I rowsort
SELECT - col2 + + col2 + - col1 AS col0 FROM tab2 AS cor0
----
-17
-31
-59

query I rowsort
SELECT ALL + col1 * + 25 + col1 FROM tab1 AS cor0
----
260
338
676

query I rowsort
SELECT ALL + col1 + 14 * + cor0.col0 FROM tab0 AS cor0
----
1337
422
587

query I rowsort
SELECT DISTINCT - - col2 + - col0 FROM tab0 cor0
----
-34
-7
9

onlyif mysql # use DIV operator for integer division
query I rowsort label-7105
SELECT DISTINCT - col2 + - 96 DIV col0 FROM tab2 AS cor0
----
-27
-39
-40

skipif mysql # not compatible
query I rowsort label-7105
SELECT DISTINCT - col2 + - 96 / col0 FROM tab2 AS cor0
----
-27
-39
-40

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7106
SELECT col2 * - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7106
SELECT col2 * - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 89 + col0 + + tab2.col2 FROM tab2
----
123
193
206

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col1 col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 58ed467a9a332e4d7bfaa9abdbbd063f

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7109
SELECT ALL CAST( cor0.col1 AS SIGNED ) * col1 + + ( - col1 * col0 ) AS col2 FROM tab2 cor0
----
-1054
-1121
744

skipif mysql # not compatible
query I rowsort label-7109
SELECT ALL CAST ( cor0.col1 AS INTEGER ) * col1 + + ( - col1 * col0 ) AS col2 FROM tab2 cor0
----
-1054
-1121
744

query I rowsort
SELECT DISTINCT + 16 * + col1 + - col1 FROM tab0 AS cor0
----
1290
1365
1455

query I rowsort
SELECT DISTINCT - 53 * - cor0.col1 + + col0 * + 1 - col2 FROM tab0 AS cor0
----
4549
4830
5175

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7112
SELECT ALL - CAST( NULL AS SIGNED ) * 19 / col2 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7112
SELECT ALL - CAST ( NULL AS INTEGER ) * 19 / col2 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 11 * col1 * + cor0.col2 + 48 FROM tab1 AS cor0
----
-13680
-15396
-6222

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col1 * - 58 + + cor0.col0 col2 FROM tab0 AS cor0
----
5012
5367
5661

query I rowsort
SELECT ALL - 65 + col0 FROM tab2
----
-58
13
14

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 * - cor0.col0 + - col1 col2 FROM tab2 AS cor0
----
-6143
-6258
-80

onlyif mysql # use DIV operator for integer division
query I rowsort label-7117
SELECT ALL + + col2 + col1 DIV col1 FROM tab1 AS cor0
----
55
58
97

skipif mysql # not compatible
query I rowsort label-7117
SELECT ALL + + col2 + col1 / col1 FROM tab1 AS cor0
----
55
58
97

query I rowsort
SELECT - col1 * col0 * ( + col0 + col1 ) FROM tab1 cor0
----
-2262
-47360
-96720

query I rowsort
SELECT ALL - 54 * - col2 + col2 AS col1 FROM tab2 AS cor0
----
1430
1485
2090

query I rowsort
SELECT 5 AS col0 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to 6797d40099023779b89feb627d94a3e7

query I rowsort
SELECT + col1 + col0 * cor0.col0 FROM tab2 AS cor0
----
6143
6258
80

query I rowsort
SELECT col1 * - col0 + 37 AS col0 FROM tab1 cor0
----
-1003
-41
-603

query I rowsort
SELECT + 33 + + col2 FROM tab1 AS cor0
----
129
87
90

onlyif mysql # use DIV operator for integer division
query I rowsort label-7124
SELECT + col2 + col1 DIV - ( - 68 + col1 ) FROM tab0 AS cor0
----
-2
29
79

skipif mysql # not compatible
query I rowsort label-7124
SELECT + col2 + col1 / - ( - 68 + col1 ) FROM tab0 AS cor0
----
-2
29
79

query I rowsort
SELECT 97 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 5e0d31ac41981bcdf6a665538a71a09c

query I rowsort
SELECT ALL + col2 * + col1 AS col2 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT col1 + cor0.col1 * - col2 FROM tab1 cor0
----
-1235
-1378
-560

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + col2 * + 36 * col2 col1 FROM tab0 AS cor0
----
241982
35
39171

query I rowsort
SELECT - - cor1.col2 * - 89 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to b8d6d5cd5162ff62160e324ea0e81fbb

query I rowsort
SELECT - + ( - col1 ) * + col2 + 15 FROM tab0 AS cor0
----
112
2853
7477

query I rowsort
SELECT cor0.col0 * cor0.col2 AS col0 FROM tab1 cor0
----
162
3648
7680

query I rowsort
SELECT + ( - tab0.col0 ) FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to c3ebf1695ca74567bdc173dbe15186a8

onlyif mysql # use DIV operator for integer division
query I rowsort label-7133
SELECT + col1 + + col2 DIV col1 AS col2 FROM tab1
----
15
20
28

skipif mysql # not compatible
query I rowsort label-7133
SELECT + col1 + + col2 / col1 AS col2 FROM tab1
----
15
20
28

query I rowsort
SELECT 66 AS col0 FROM tab1, tab0, tab0 AS cor0
----
27 values hashing to 897b6122ac98340b78905f39d81897fc

query I rowsort
SELECT + tab0.col0 * 84 FROM tab0
----
2016
2940
7476

query I rowsort
SELECT - 38 + + cor0.col1 FROM tab0 cor0
----
48
53
59

query I rowsort
SELECT col1 + 27 AS col1 FROM tab0 AS cor0
----
113
118
124

query I rowsort
SELECT DISTINCT 30 AS col1 FROM tab1, tab2 cor0
----
30

query I rowsort
SELECT DISTINCT - col0 * + 48 + col1 FROM tab2
----
-305
-3685
-3775

onlyif mysql # use DIV operator for integer division
query I rowsort label-7140
SELECT + ( - 51 ) DIV col1 AS col0 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7140
SELECT + ( - 51 ) / col1 AS col0 FROM tab0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 69 + col2 - col1 * col2 col1 FROM tab2 AS cor0
----
-1439
-539
-741

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 18 + - col1 col0 FROM tab0 AS cor0
----
-104
-109
-115

query I rowsort
SELECT ALL + 22 + col1 * - col1 FROM tab2 AS cor0
----
-267
-3459
-939

query I rowsort
SELECT ALL 53 * col0 AS col2 FROM tab0 AS cor0
----
1272
1855
4717

query I rowsort
SELECT + + ( + 18 ) * - col2 AS col2 FROM tab2 AS cor0
----
-468
-486
-684

query I rowsort
SELECT - 47 * - col1 FROM tab0 AS cor0
----
4042
4277
4559

query I rowsort
SELECT DISTINCT - col2 * + col1 * col2 AS col0 FROM tab2 AS cor0
----
-22599
-24548
-39884

query I rowsort
SELECT + col0 * col2 - col1 * + 39 FROM tab0 AS cor0
----
-2562
-3748
3749

onlyif mysql # use DIV operator for integer division
query I rowsort label-7149
SELECT DISTINCT tab1.col1 DIV col0 FROM tab1
----
0
8

skipif mysql # not compatible
query I rowsort label-7149
SELECT DISTINCT tab1.col1 / col0 FROM tab1
----
0
8

query I rowsort
SELECT ALL - col2 * - tab1.col1 * - col2 FROM tab1
----
-119808
-32490
-75816

query I rowsort
SELECT ALL ( + cor0.col2 ) FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5

query I rowsort
SELECT ALL - + cor0.col2 * + col2 * cor0.col1 FROM tab1 AS cor0
----
-119808
-32490
-75816

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * - col2 col1 FROM tab2 cor0
----
-189
-2028
-3002

query I rowsort
SELECT cor0.col1 * + ( - 26 ) AS col1 FROM tab1 AS cor0
----
-260
-338
-676

query I rowsort
SELECT ALL cor0.col1 * - cor0.col0 + col0 AS col0 FROM tab2 AS cor0
----
-1264
-210
-4524

query I rowsort
SELECT col1 * 18 FROM tab1 AS cor0
----
180
234
468

query I rowsort
SELECT col0 * - 3 AS col2 FROM tab0 AS cor0
----
-105
-267
-72

query I rowsort
SELECT + col2 + 89 AS col1 FROM tab2 AS cor0
----
115
116
127

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7159
SELECT + + col2 * + CAST( col0 AS SIGNED ) + col0 FROM tab2 AS cor0
----
196
2106
3081

skipif mysql # not compatible
query I rowsort label-7159
SELECT + + col2 * + CAST ( col0 AS INTEGER ) + col0 FROM tab2 AS cor0
----
196
2106
3081

query I rowsort
SELECT ALL - cor0.col0 + 30 FROM tab0 AS cor0
----
-5
-59
6

query I rowsort
SELECT DISTINCT col1 * 73 + col0 FROM tab2 AS cor0
----
1320
2270
4385

query I rowsort
SELECT ALL - col0 + - 16 * col1 FROM tab2 AS cor0
----
-1022
-351
-503

query I rowsort
SELECT DISTINCT cor0.col1 * 5 * col1 + cor0.col2 FROM tab1 cor0
----
3434
557
941

query I rowsort
SELECT DISTINCT col2 + 67 AS col2 FROM tab2 cor0
----
105
93
94

query I rowsort
SELECT ALL + col0 * col2 + + col0 + col0 * col0 AS col0 FROM tab1 AS cor0
----
14160
174
7808

query I rowsort
SELECT - col2 + + cor0.col1 AS col2 FROM tab0 AS cor0
----
53
9
96

query I rowsort
SELECT + col0 + - col1 * + 11 + + col1 * 93 AS col0 FROM tab1 cor0
----
1146
2135
884

query I rowsort
SELECT + + col0 * - 33 FROM tab2 AS cor0
----
-231
-2574
-2607

query I rowsort
SELECT DISTINCT - col0 + + col1 * 84 AS col1 FROM tab2 cor0
----
1349
2597
4878

query I rowsort
SELECT ALL + col1 + + col1 AS col2 FROM tab1 AS cor0
----
20
26
52

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7171
SELECT ALL + + col2 + CAST( + 81 AS SIGNED ) * - col0 * - col1 - + 1 * col0 FROM tab0 AS cor0
----
167193
274961
656012

skipif mysql # not compatible
query I rowsort label-7171
SELECT ALL + + col2 + CAST ( + 81 AS INTEGER ) * - col0 * - col1 - + 1 * col0 FROM tab0 AS cor0
----
167193
274961
656012

onlyif mysql # use DIV operator for integer division
query I rowsort label-7172
SELECT + cor0.col2 DIV - ( col1 ) AS col1 FROM tab1 AS cor0
----
-2
-5
-7

skipif mysql # not compatible
query I rowsort label-7172
SELECT + cor0.col2 / - ( col1 ) AS col1 FROM tab1 AS cor0
----
-2
-5
-7

query I rowsort
SELECT - col1 * col0 * col1 FROM tab2 AS cor0
----
-22831
-271518
-6727

query I rowsort
SELECT ALL - + ( - 16 ) * col1 + - 54 FROM tab1 AS cor0
----
106
154
362

query I rowsort
SELECT DISTINCT - ( col1 ) + col1 FROM tab1 cor0
----
0

query I rowsort
SELECT DISTINCT ( + col1 ) + + cor0.col2 FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT DISTINCT - cor0.col1 * 51 + + tab0.col0 FROM tab0, tab1, tab2 AS cor0
----
9 values hashing to 170fb062db25efa2cf552c629cc8ed12

query I rowsort
SELECT DISTINCT 46 AS col0 FROM tab2, tab0 AS cor0
----
46

query I rowsort
SELECT ALL + col0 * + col0 - + ( 18 * col0 ) AS col1 FROM tab0 AS cor0
----
144
595
6319

query I rowsort
SELECT ALL - 18 + + col0 AS col1 FROM tab1 AS cor0
----
-15
46
62

query I rowsort
SELECT + + col0 * - col1 + - col1 + + col0 * + col1 FROM tab0 AS cor0
----
-86
-91
-97

query I rowsort
SELECT + - cor0.col0 + + cor0.col0 + cor0.col2 AS col0 FROM tab2 AS cor0
----
26
27
38

query I rowsort
SELECT DISTINCT - col2 - - col1 * + col1 AS col1 FROM tab0 AS cor0
----
7363
8199
9408

query I rowsort
SELECT DISTINCT + + col1 + col1 AS col2 FROM tab1 AS cor0
----
20
26
52

onlyif mysql # use DIV operator for integer division
query I rowsort label-7185
SELECT + ( cor0.col0 ) + col0 DIV 65 AS col2 FROM tab0 AS cor0
----
24
35
90

skipif mysql # not compatible
query I rowsort label-7185
SELECT + ( cor0.col0 ) + col0 / 65 AS col2 FROM tab0 AS cor0
----
24
35
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab1.col1 * - 93 * + col0 + col2 - + ( - col2 ) col1 FROM tab1
----
-59406
-7146
-96528

query I rowsort
SELECT DISTINCT 40 - col2 AS col2 FROM tab1
----
-14
-17
-56

query I rowsort
SELECT 74 + tab2.col1 FROM tab2, tab0 AS cor0
----
9 values hashing to f4404aa393d5eb918c0f6bbab0499aa5

query I rowsort
SELECT col1 * + ( + tab1.col1 * + tab1.col1 ) + - col1 - - col2 FROM tab1
----
1047
17604
2280

query I rowsort
SELECT col1 + col2 * col0 FROM tab0
----
132
7389
878

query I rowsort
SELECT DISTINCT + col0 * - col0 + - tab1.col2 + + col2 * col0 AS col2 FROM tab1
----
-505
1184
99

query I rowsort
SELECT DISTINCT col1 * + 18 AS col0 FROM tab2
----
1062
306
558

query I rowsort
SELECT ALL 92 * col1 * + col2 - col0 * col1 FROM tab0
----
259032
5529
678405

query I rowsort
SELECT ( + col2 * col0 ) + - col0 AS col1 FROM tab0
----
0
7209
768

query I rowsort
SELECT ALL 66 * cor1.col2 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to a51772a0f3f89a84175b3afd1cea6249

query I rowsort
SELECT ALL - 35 + 10 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 40ac8fd000b2e49317aed2411077839e

query I rowsort
SELECT DISTINCT 97 * col0 * + ( col2 ) AS col1 FROM tab0 cor0
----
3395
707906
76824

query I rowsort
SELECT - col2 + - col0 * + col0 + + col1 FROM tab2 AS cor0
----
-45
-6051
-6262

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col1 * col1 col0 FROM tab1 AS cor0
----
100
169
676

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + - cor0.col1 col0 FROM tab1 cor0
----
0

query I rowsort
SELECT col0 * - cor0.col0 AS col1 FROM tab0 AS cor0
----
-1225
-576
-7921

query I rowsort
SELECT - ( cor1.col2 ) * cor0.col2 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to e9c9a5d5cefe83eb1c091d89114ff7df

query I rowsort
SELECT ALL 16 + ( - cor1.col1 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 0bea07360ed095fe0df00a35a25f9309

query I rowsort
SELECT + cor0.col2 + - 56 * col1 FROM tab0 AS cor0
----
-4783
-5014
-5431

query I rowsort
SELECT + + 76 * col2 + + col0 AS col0 FROM tab2 cor0
----
2054
2059
2967

query I rowsort
SELECT DISTINCT + col2 * - col0 + col0 FROM tab2 AS cor0
----
-182
-1950
-2923

onlyif mysql # use DIV operator for integer division
query I rowsort label-7207
SELECT ALL - - ( col2 ) + - cor0.col2 DIV + col0 FROM tab2 AS cor0
----
24
26
38

skipif mysql # not compatible
query I rowsort label-7207
SELECT ALL - - ( col2 ) + - cor0.col2 / + col0 FROM tab2 AS cor0
----
24
26
38

query I rowsort
SELECT ALL ( + 95 ) - + col0 AS col0 FROM tab0 AS cor0
----
6
60
71

query I rowsort
SELECT ALL 69 FROM tab0 cor0
----
69
69
69

onlyif mysql # use DIV operator for integer division
query I rowsort label-7210
SELECT + - 72 + col2 DIV col1 FROM tab1 AS cor0
----
-65
-67
-70

skipif mysql # not compatible
query I rowsort label-7210
SELECT + - 72 + col2 / col1 FROM tab1 AS cor0
----
-65
-67
-70

query I rowsort
SELECT DISTINCT + col0 * - col1 + + cor0.col0 AS col1 FROM tab0 AS cor0
----
-2040
-3360
-8010

onlyif mysql # use DIV operator for integer division
query I rowsort label-7212
SELECT + col0 DIV 67 FROM tab2
----
0
1
1

skipif mysql # not compatible
query I rowsort label-7212
SELECT + col0 / 67 FROM tab2
----
0
1
1

query I rowsort
SELECT tab0.col1 + - col2 + 32 FROM tab0
----
128
41
85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + col2 col2 FROM tab0
----
119
173
98

query I rowsort
SELECT - col0 + - col2 - col1 FROM tab0 AS cor0
----
-133
-143
-262

query I rowsort
SELECT DISTINCT col0 + - col1 * 54 * + col0 AS col2 FROM tab1
----
-34496
-4209
-56080

query I rowsort
SELECT tab0.col1 * - 33 FROM tab0
----
-2838
-3003
-3201

query I rowsort
SELECT DISTINCT + ( ( col0 ) ) * col2 FROM tab2
----
189
2028
3002

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 90 col2 FROM tab2, tab1 AS cor0, tab1 cor1
----
27 values hashing to 5d25a546acf3ae171e731e50adc0112e

query I rowsort
SELECT DISTINCT + col0 + 62 AS col0 FROM tab0
----
151
86
97

query I rowsort
SELECT ALL col2 + - 28 FROM tab1
----
26
29
68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( + col0 + + col1 ) col2 FROM tab0
----
110
132
180

query I rowsort
SELECT DISTINCT cor0.col0 * cor0.col2 FROM tab0 cor0
----
35
7298
792

query I rowsort
SELECT ALL col1 * + ( - col2 ) AS col2 FROM tab0 cor0
----
-2838
-7462
-97

query I rowsort
SELECT ALL + col0 * - col2 * - col2 AS col0 FROM tab0 AS cor0
----
26136
35
598436

query I rowsort
SELECT DISTINCT - ( 92 ) + col1 FROM tab0 AS cor0
----
-1
-6
5

query I rowsort
SELECT - 34 FROM tab2, tab1 AS cor0 CROSS JOIN tab0
----
27 values hashing to 5b88331e40da4796cc4826c442aa45f7

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7228
SELECT DISTINCT + CAST( col1 AS SIGNED ) * - col0 AS col1 FROM tab1
----
-1040
-640
-78

skipif mysql # not compatible
query I rowsort label-7228
SELECT DISTINCT + CAST ( col1 AS INTEGER ) * - col0 AS col1 FROM tab1
----
-1040
-640
-78

query I rowsort
SELECT 30 * + col2 FROM tab0
----
2460
30
990

query I rowsort
SELECT - col2 * ( ( - col1 ) ) FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT DISTINCT 27 AS col1 FROM tab1, tab2 AS cor0
----
27

query I rowsort
SELECT ALL col0 * + col2 + col2 FROM tab1 AS cor0
----
216
3705
7776

query I rowsort
SELECT + ( 41 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 5b18986bb294412b3d9f07b7e6fc821e

query I rowsort
SELECT DISTINCT + col1 * ( + col1 + col2 ) AS col0 FROM tab2
----
1798
5015
935

query I rowsort
SELECT ALL col1 * + 76 AS col2 FROM tab0 cor0
----
6536
6916
7372

query I rowsort
SELECT ALL col2 * + col2 + cor0.col0 AS col0 FROM tab2 AS cor0
----
1523
736
754

query I rowsort
SELECT DISTINCT - - cor0.col2 + col2 + - col2 AS col2 FROM tab1 AS cor0
----
54
57
96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7238
SELECT + col1 + + CAST( -