sqllogictest
Artifact Content
Not logged in

Artifact 3412c6d184861f4eba280e01e877fdfca78e944b:


hash-threshold 8

statement ok
CREATE TABLE tab0(col0 INTEGER, col1 INTEGER, col2 INTEGER)

statement ok
CREATE TABLE tab1(col0 INTEGER, col1 INTEGER, col2 INTEGER)

statement ok
CREATE TABLE tab2(col0 INTEGER, col1 INTEGER, col2 INTEGER)

statement ok
INSERT INTO tab0 VALUES(89,91,82)

statement ok
INSERT INTO tab0 VALUES(35,97,1)

statement ok
INSERT INTO tab0 VALUES(24,86,33)

statement ok
INSERT INTO tab1 VALUES(64,10,57)

statement ok
INSERT INTO tab1 VALUES(3,26,54)

statement ok
INSERT INTO tab1 VALUES(80,13,96)

statement ok
INSERT INTO tab2 VALUES(7,31,27)

statement ok
INSERT INTO tab2 VALUES(79,17,38)

statement ok
INSERT INTO tab2 VALUES(78,59,26)

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

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

query I rowsort
SELECT ALL - tab2.col2 * 88 FROM tab2
----
-2288
-2376
-3344

query I rowsort
SELECT DISTINCT - + 43 AS col1 FROM tab2 cor0
----
-43

query I rowsort
SELECT 73 * col1 AS col2 FROM tab0 AS cor0
----
6278
6643
7081

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col1 * - col2 col2 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT DISTINCT + + ( col2 ) FROM tab2 AS cor0
----
26
27
38

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

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-9
SELECT col1 * col1 + tab1.col2 DIV col2 FROM tab1
----
101
170
677

skipif mysql # not compatible
query I rowsort label-9
SELECT col1 * col1 + tab1.col2 / col2 FROM tab1
----
101
170
677

query I rowsort
SELECT ALL - col1 * - 43 FROM tab2
----
1333
2537
731

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

query I rowsort
SELECT DISTINCT + 70 * col2 FROM tab2 AS cor0
----
1820
1890
2660

query I rowsort
SELECT 98 + - 17 FROM tab1 cor0
----
81
81
81

onlyif mysql # use DIV operator for integer division
query I rowsort label-14
SELECT + 58 DIV 59 AS col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-14
SELECT + 58 / 59 AS col0 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-15
SELECT ALL - col1 DIV + col1 + col1 FROM tab1 AS cor0
----
12
25
9

skipif mysql # not compatible
query I rowsort label-15
SELECT ALL - col1 / + col1 + col1 FROM tab1 AS cor0
----
12
25
9

onlyif mysql # use DIV operator for integer division
query I rowsort label-16
SELECT DISTINCT + - ( + cor0.col0 ) DIV - col2 FROM tab0 AS cor0
----
0
1
35

skipif mysql # not compatible
query I rowsort label-16
SELECT DISTINCT + - ( + cor0.col0 ) / - col2 FROM tab0 AS cor0
----
0
1
35

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

query I rowsort
SELECT ALL - + 68 * + col2 FROM tab1 AS cor0
----
-3672
-3876
-6528

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-20
SELECT + - CAST( ( + col2 ) AS SIGNED ) FROM tab1 cor0
----
-54
-57
-96

skipif mysql # not compatible
query I rowsort label-20
SELECT + - CAST ( ( + col2 ) AS INTEGER ) FROM tab1 cor0
----
-54
-57
-96

query I rowsort
SELECT col0 + col2 * col0 - + 46 FROM tab1
----
119
3666
7714

query I rowsort
SELECT ALL + 79 AS col0 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 40a2261caa2c5cdbfd80965d7df1231f

query I rowsort
SELECT ALL + ( col2 ) + - 9 FROM tab2
----
17
18
29

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + col1 ) * - 79 col1 FROM tab1
----
-1027
-2054
-790

onlyif mysql # use DIV operator for integer division
query I rowsort label-25
SELECT ALL + col1 * + col0 + + col1 * ( col0 ) * - col2 + + col2 DIV - col0 AS col2 FROM tab2 cor0
----
-115050
-49691
-5645

skipif mysql # not compatible
query I rowsort label-25
SELECT ALL + col1 * + col0 + + col1 * ( col0 ) * - col2 + + col2 / - col0 AS col2 FROM tab2 cor0
----
-115050
-49691
-5645

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

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

query I rowsort
SELECT ALL - col2 * cor0.col0 + 18 * + col1 FROM tab2 cor0
----
-2696
-966
369

query I rowsort
SELECT DISTINCT col2 - cor0.col2 FROM tab0 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * - cor0.col1 col2 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT + 9 + col1 FROM tab1
----
19
22
35

query I rowsort
SELECT ALL - col1 + + 7 AS col1 FROM tab2 AS cor0
----
-10
-24
-52

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

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

query I rowsort
SELECT ALL + 47 FROM tab0, tab1 AS cor0
----
9 values hashing to 4fe192f296791e1e40ea00a68aa8dab7

query I rowsort
SELECT DISTINCT - cor0.col1 + + 93 + col1 FROM tab2 AS cor0
----
93

query I rowsort
SELECT ALL + cor0.col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3

query I rowsort
SELECT DISTINCT col1 * 3 FROM tab1 AS cor0
----
30
39
78

query I rowsort
SELECT + col0 + col1 + - col1 AS col2 FROM tab2 AS cor0
----
7
78
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col2 + - 13 col1 FROM tab2 AS cor0
----
13
14
25

onlyif mysql # use DIV operator for integer division
query I rowsort label-40
SELECT + - col2 DIV + 17 + col0 * + col1 + + 66 AS col1 FROM tab1 AS cor0
----
1101
141
703

skipif mysql # not compatible
query I rowsort label-40
SELECT + - col2 / + 17 + col0 * + col1 + + 66 AS col1 FROM tab1 AS cor0
----
1101
141
703

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * - cor0.col1 col0 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT - + col2 + - col2 FROM tab0 cor0
----
-164
-2
-66

query I rowsort
SELECT 48 FROM tab0 AS cor0
----
48
48
48

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

skipif mysql # not compatible
query I rowsort
SELECT - CAST ( + col1 AS REAL ) + - col0 * - col2 FROM tab0 AS cor0
----
-62
706
7207

query I rowsort
SELECT cor0.col2 * - 46 + + 99 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 63b81f24d3faaf8beee166a8d4ea4c24

query I rowsort
SELECT col1 + - 92 + + 91 AS col0 FROM tab1
----
12
25
9

query I rowsort
SELECT DISTINCT 40 * 54 AS col0 FROM tab1
----
2160

query I rowsort
SELECT 35 * 14 FROM tab0
----
490
490
490

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

query I rowsort
SELECT DISTINCT 63 + - 84 FROM tab0 AS cor0
----
-21

query I rowsort
SELECT ALL - 67 * col1 FROM tab0 AS cor0
----
-5762
-6097
-6499

query I rowsort
SELECT + + ( - 13 ) * col2 FROM tab2 AS cor0
----
-338
-351
-494

query I rowsort
SELECT ALL + 70 * col0 AS col2 FROM tab2 cor0
----
490
5460
5530

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-55
SELECT DISTINCT - CAST ( NULL AS REAL ) col0 FROM tab1
----
NULL

query I rowsort
SELECT ALL 56 AS col1 FROM tab0, tab1 AS cor0, tab1, tab2 AS cor1
----
81 values hashing to 9cee91ca9c60ba6e45a33b388a3b7d9b

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

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

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

query I rowsort
SELECT DISTINCT + 68 AS col0 FROM tab1 AS cor0
----
68

query I rowsort
SELECT + - cor0.col2 * col2 + 93 FROM tab0 AS cor0
----
-6631
-996
92

onlyif mysql # use DIV operator for integer division
query I rowsort label-61
SELECT DISTINCT + col1 DIV + col1 + + ( - col2 ) * col2 + 82 AS col1 FROM tab2 AS cor0
----
-1361
-593
-646

skipif mysql # not compatible
query I rowsort label-61
SELECT DISTINCT + col1 / + col1 + + ( - col2 ) * col2 + 82 AS col1 FROM tab2 AS cor0
----
-1361
-593
-646

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

query I rowsort
SELECT ALL + col1 - 76 FROM tab2
----
-17
-45
-59

onlyif mysql # use DIV operator for integer division
query I rowsort label-64
SELECT + 28 + - cor0.col1 DIV + 8 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to b1d31030303d0c1ab50bbbd5c788c176

skipif mysql # not compatible
query I rowsort label-64
SELECT + 28 + - cor0.col1 / + 8 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to b1d31030303d0c1ab50bbbd5c788c176

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

skipif mysql # not compatible
query I rowsort label-65
SELECT ALL col1 / + tab2.col1 AS col2 FROM tab2
----
1
1
1

query I rowsort
SELECT ALL 80 * tab0.col1 + col0 AS col1 FROM tab0
----
6904
7369
7795

onlyif mysql # use DIV operator for integer division
query I rowsort label-67
SELECT ALL - col2 DIV col2 + col1 * col1 FROM tab1
----
168
675
99

skipif mysql # not compatible
query I rowsort label-67
SELECT ALL - col2 / col2 + col1 * col1 FROM tab1
----
168
675
99

query I rowsort
SELECT ALL 61 + col0 FROM tab1
----
125
141
64

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

query I rowsort
SELECT ALL - 57 * - col1 FROM tab0 AS cor0
----
4902
5187
5529

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

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

query I rowsort
SELECT + 69 AS col1 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 2810c3097fe4771e273cfff903357b40

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-73
SELECT CAST( - 13 AS SIGNED ) AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to e95f5f4bd0f480397cced5f5e8a23792

skipif mysql # not compatible
query I rowsort label-73
SELECT CAST ( - 13 AS INTEGER ) AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to e95f5f4bd0f480397cced5f5e8a23792

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

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

query I rowsort
SELECT col2 * col0 - col2 FROM tab1 cor0
----
108
3591
7584

query I rowsort
SELECT + 92 * + col2 FROM tab0 AS cor0
----
3036
7544
92

query I rowsort
SELECT - ( + col0 ) + col0 * - col0 * col1 AS col0 FROM tab2 AS cor0
----
-106176
-1526
-359034

query I rowsort
SELECT + - ( - col1 ) * + col1 + col0 * + col1 FROM tab1 cor0
----
1209
740
754

query I rowsort
SELECT 58 + + cor0.col1 AS col2 FROM tab1 AS cor0
----
68
71
84

query I rowsort
SELECT + + col1 + 77 AS col2 FROM tab1 AS cor0
----
103
87
90

query I rowsort
SELECT DISTINCT - col2 * col1 + + col0 FROM tab2 cor0
----
-1456
-567
-830

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

query I rowsort
SELECT ALL + - col0 * + col0 * + col2 + col0 AS col2 FROM tab2 AS cor0
----
-1316
-158106
-237079

query I rowsort
SELECT 94 * - 75 FROM tab2, tab0 AS cor0
----
9 values hashing to 0d9eba9c28faaf913e2269295de467b5

query I rowsort
SELECT + cor0.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 ( cor0.col1 ) + cor0.col1 col2 FROM tab1 cor0
----
20
26
52

query I rowsort
SELECT + - 31 * col2 + + col1 AS col2 FROM tab2 AS cor0
----
-1161
-747
-806

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

skipif mysql # not compatible
query I rowsort label-89
SELECT ALL - CAST ( + 94 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-94
-94
-94

query I rowsort
SELECT DISTINCT + col1 + col0 * + cor0.col1 AS col0 FROM tab0 AS cor0
----
2150
3492
8190

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-91
SELECT CAST( 80 AS SIGNED ) * - col0 FROM tab2 AS cor0
----
-560
-6240
-6320

skipif mysql # not compatible
query I rowsort label-91
SELECT CAST ( 80 AS INTEGER ) * - col0 FROM tab2 AS cor0
----
-560
-6240
-6320

query I rowsort
SELECT - - 72 + 71 * + col0 * + col1 AS col2 FROM tab0 AS cor0
----
146616
241117
575101

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-94
SELECT ALL - col0 + + 27 DIV - col0 AS col2 FROM tab0 AS cor0
----
-25
-35
-89

skipif mysql # not compatible
query I rowsort label-94
SELECT ALL - col0 + + 27 / - col0 AS col2 FROM tab0 AS cor0
----
-25
-35
-89

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

query I rowsort
SELECT ( + 8 ) FROM tab2, tab1 AS cor0
----
9 values hashing to ffc5b4c98b57ae546521175995c49c57

query I rowsort
SELECT - 60 FROM tab0, tab1, tab0 cor0
----
27 values hashing to 1a0b29f8e6f82c54623a665ba4af8fd1

onlyif mysql # use DIV operator for integer division
query I rowsort label-98
SELECT ALL col1 DIV col0 - col2 col2 FROM tab2 AS cor0
----
-23
-26
-38

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-98
SELECT ALL col1 / col0 - col2 col2 FROM tab2 AS cor0
----
-23
-26
-38

query I rowsort
SELECT DISTINCT - col0 * + 62 * cor0.col0 + ( + col0 ) * + col2 + - col1 * - 18 AS col2 FROM tab1 AS cor0
----
-250124
-388886
72

onlyif mysql # use DIV operator for integer division
query I rowsort label-100
SELECT ALL col1 DIV col1 col1 FROM tab0 AS cor0
----
1
1
1

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

query I rowsort
SELECT DISTINCT + col1 + tab1.col0 + + col0 AS col0 FROM tab1
----
138
173
32

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-102
SELECT DISTINCT CAST( 62 AS SIGNED ) * - col2 + - col2 * col1 AS col1 FROM tab2
----
-2511
-3002
-3146

skipif mysql # not compatible
query I rowsort label-102
SELECT DISTINCT CAST ( 62 AS INTEGER ) * - col2 + - col2 * col1 AS col1 FROM tab2
----
-2511
-3002
-3146

onlyif mysql # use DIV operator for integer division
query I rowsort label-103
SELECT ALL + ( - col1 ) DIV - col1 AS col2 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-103
SELECT ALL + ( - col1 ) / - col1 AS col2 FROM tab0
----
1
1
1

query I rowsort
SELECT ALL 13 AS col2 FROM tab1 AS cor0
----
13
13
13

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( - col1 ) col2 FROM tab2 AS cor0
----
17
31
59

query I rowsort
SELECT DISTINCT - - 52 FROM tab0 AS cor0
----
52

query I rowsort
SELECT DISTINCT cor1.col0 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
3
64
80

query I rowsort
SELECT - col2 * + tab2.col2 * + ( - col2 ) AS col2 FROM tab2
----
17576
19683
54872

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + col2 * + col2 col2 FROM tab1
----
2919
3313
9296

onlyif mysql # use DIV operator for integer division
query I rowsort label-110
SELECT ALL - col1 * - tab1.col0 * - col2 + + col2 DIV + tab1.col0 AS col2 FROM tab1
----
-36480
-4194
-99839

skipif mysql # not compatible
query I rowsort label-110
SELECT ALL - col1 * - tab1.col0 * - col2 + + col2 / + tab1.col0 AS col2 FROM tab1
----
-36480
-4194
-99839

query I rowsort
SELECT ALL + 39 + + tab1.col1 AS col0 FROM tab1
----
49
52
65

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - ( - col1 ) * - col1 col1 FROM tab2 AS cor0
----
-289
-3481
-961

query I rowsort
SELECT - 50 * col0 * + col1 + + 61 FROM tab2 AS cor0
----
-10789
-230039
-67089

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-115
SELECT ALL + + col1 DIV - col0 + ( + 68 ) AS col2 FROM tab2 AS cor0
----
64
68
68

skipif mysql # not compatible
query I rowsort label-115
SELECT ALL + + col1 / - col0 + ( + 68 ) AS col2 FROM tab2 AS cor0
----
64
68
68

query I rowsort
SELECT DISTINCT col0 * cor0.col2 AS col1 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT ALL - 9 FROM tab2 AS cor0
----
-9
-9
-9

query I rowsort
SELECT DISTINCT + - col2 * 54 FROM tab0 cor0
----
-1782
-4428
-54

query I rowsort
SELECT ALL col0 * 29 FROM tab0 AS cor0
----
1015
2581
696

onlyif mysql # use DIV operator for integer division
query I rowsort label-120
SELECT DISTINCT col0 DIV - ( 8 ) + + col1 DIV + col0 FROM tab1 cor0
----
-10
-8
8

skipif mysql # not compatible
query I rowsort label-120
SELECT DISTINCT col0 / - ( 8 ) + + col1 / + col0 FROM tab1 cor0
----
-10
-8
8

query I rowsort
SELECT + col0 * + ( + col1 ) FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT + col2 * - 19 + - col1 + - col2 * col1 AS col2 FROM tab0 AS cor0
----
-213
-3551
-9111

query I rowsort
SELECT ALL + + col2 + - ( 61 ) * col0 FROM tab2 AS cor0
----
-400
-4732
-4781

query I rowsort
SELECT DISTINCT - - col2 * col1 + - col0 AS col0 FROM tab1 cor0
----
1168
1401
506

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + + ( col1 + col1 ) * cor0.col0 col0 FROM tab0 AS cor0
----
16280
4161
6791

onlyif mysql # use DIV operator for integer division
query I rowsort label-128
SELECT ALL + col0 + ( cor0.col2 ) DIV cor0.col1 AS col2 FROM tab2 AS cor0
----
7
78
81

skipif mysql # not compatible
query I rowsort label-128
SELECT ALL + col0 + ( cor0.col2 ) / cor0.col1 AS col2 FROM tab2 AS cor0
----
7
78
81

query I rowsort
SELECT DISTINCT 46 + + col2 AS col1 FROM tab0
----
128
47
79

query I rowsort
SELECT ALL + 54 + - col0 FROM tab2
----
-24
-25
47

query I rowsort
SELECT ALL + + col2 * - col1 + col1 * col1 FROM tab2 AS cor0
----
-357
124
1947

onlyif mysql # use DIV operator for integer division
query I rowsort label-132
SELECT DISTINCT - cor0.col0 DIV - 80 AS col1 FROM tab1 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-132
SELECT DISTINCT - cor0.col0 / - 80 AS col1 FROM tab1 AS cor0
----
0
1

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

query I rowsort
SELECT DISTINCT col0 * + 4 FROM tab0 AS cor0
----
140
356
96

query I rowsort
SELECT DISTINCT - + col0 + 28 AS col0 FROM tab2 AS cor0
----
-50
-51
21

query I rowsort
SELECT 48 * tab2.col1 * + col2 FROM tab2
----
31008
40176
73632

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col0 col2 FROM tab2, tab0 AS cor0
----
24
35
89

query I rowsort
SELECT + col1 * ( 21 ) + col1 AS col1 FROM tab0 AS cor0
----
1892
2002
2134

query I rowsort
SELECT ALL - col0 * col1 + - col2 * col1 * ( - 63 ) FROM tab1 AS cor0
----
35270
77584
88374

onlyif mysql # use DIV operator for integer division
query I rowsort label-140
SELECT ALL - cor0.col2 DIV + cor0.col0 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 721682d0719de924079c33bd72eef789

skipif mysql # not compatible
query I rowsort label-140
SELECT ALL - cor0.col2 / + cor0.col0 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 721682d0719de924079c33bd72eef789

query I rowsort
SELECT tab0.col0 FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd

query I rowsort
SELECT + col0 * + tab1.col0 FROM tab1
----
4096
6400
9

query I rowsort
SELECT ALL 44 * cor0.col2 * col2 FROM tab0 cor0
----
295856
44
47916

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * col2 + col2 - - col0 col0 FROM tab2 AS cor0
----
1638
763
871

query I rowsort
SELECT - ( - col1 ) * 1 FROM tab2 AS cor0
----
17
31
59

query I rowsort
SELECT DISTINCT - 64 + col0 AS col0 FROM tab2 AS cor0
----
-57
14
15

query I rowsort
SELECT 23 FROM tab2 AS cor0
----
23
23
23

query I rowsort
SELECT DISTINCT - 70 + col1 FROM tab1 AS cor0
----
-44
-57
-60

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 - 91 col0 FROM tab2
----
-12
-13
-84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + col1 * tab0.col2 + + tab0.col0 col1 FROM tab0
----
229
2948
7642

query I rowsort
SELECT ALL ( 73 ) * tab2.col2 * col2 + - 76 AS col0 FROM tab2
----
105336
49272
53141

onlyif mysql # use DIV operator for integer division
query I rowsort label-153
SELECT 11 * col2 DIV + col0 AS col1 FROM tab0
----
0
10
15

skipif mysql # not compatible
query I rowsort label-153
SELECT 11 * col2 / + col0 AS col1 FROM tab0
----
0
10
15

query I rowsort
SELECT col2 * 73 * col0 AS col2 FROM tab2
----
13797
148044
219146

query I rowsort
SELECT DISTINCT ( col1 ) - + col2 * + 69 FROM tab2
----
-1735
-1832
-2605

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

query I rowsort
SELECT DISTINCT col0 * col1 * col2 + col1 FROM tab2
----
119711
51051
5890

query I rowsort
SELECT DISTINCT - tab2.col2 AS col2 FROM tab2, tab2 AS cor0
----
-26
-27
-38

query I rowsort
SELECT - - col2 + + col2 FROM tab0 AS cor0
----
164
2
66

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

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-162
SELECT - + cor0.col0 * cor0.col0 + + CAST( + 5 AS SIGNED ) FROM tab1 AS cor0
----
-4
-4091
-6395

skipif mysql # not compatible
query I rowsort label-162
SELECT - + cor0.col0 * cor0.col0 + + CAST ( + 5 AS INTEGER ) FROM tab1 AS cor0
----
-4
-4091
-6395

query I rowsort
SELECT ALL + 74 * + col2 * + col0 FROM tab1 cor0
----
11988
269952
568320

onlyif mysql # use DIV operator for integer division
query I rowsort label-164
SELECT + col2 * col1 DIV + col1 FROM tab2
----
26
27
38

skipif mysql # not compatible
query I rowsort label-164
SELECT + col2 * col1 / + col1 FROM tab2
----
26
27
38

query I rowsort
SELECT ( 92 + col1 ) FROM tab2
----
109
123
151

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

query I rowsort
SELECT - 25 * - col1 AS col2 FROM tab1 AS cor0
----
250
325
650

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 * - col2 col1 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT ALL cor0.col0 * cor0.col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 4829ede06f586935ff95a5b0dfdb9199

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-170
SELECT CAST( col1 AS SIGNED ) * - col1 FROM tab0
----
-7396
-8281
-9409

skipif mysql # not compatible
query I rowsort label-170
SELECT CAST ( col1 AS INTEGER ) * - col1 FROM tab0
----
-7396
-8281
-9409

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

query I rowsort
SELECT - + col0 * col2 + col2 + - 91 * + col0 FROM tab0 AS cor0
----
-15315
-2943
-3219

query I rowsort
SELECT + 59 * - col1 FROM tab0 AS cor0
----
-5074
-5369
-5723

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - col1 + + 12 col2 FROM tab2 AS cor0
----
-1331
-205
-4590

query I rowsort
SELECT ALL - 23 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to ce60bf4b0647d0fcb18a0562e351c52d

query I rowsort
SELECT + 46 * - col1 AS col1 FROM tab2 AS cor0
----
-1426
-2714
-782

query I rowsort
SELECT - 97 + col0 * + col0 AS col2 FROM tab1 AS cor0
----
-88
3999
6303

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

query I rowsort
SELECT - - col1 + col1 + 11 AS col0 FROM tab0 AS cor0
----
183
193
205

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

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

query I rowsort
SELECT ALL - + col2 - + ( + col0 + col0 ) AS col0 FROM tab2 AS cor0
----
-182
-196
-41

query I rowsort
SELECT DISTINCT + col1 + 16 FROM tab2 AS cor0
----
33
47
75

query I rowsort
SELECT + col1 * + 80 - 0 FROM tab2 AS cor0
----
1360
2480
4720

query I rowsort
SELECT cor0.col2 - 97 FROM tab1 AS cor0
----
-1
-40
-43

query I rowsort
SELECT - col2 * - cor0.col2 + 29 FROM tab2 cor0
----
1473
705
758

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

skipif mysql # not compatible
query I rowsort label-188
SELECT - + CAST ( - col1 AS INTEGER ) * + col0 + col0 AS col1 FROM tab0 AS cor0
----
2088
3430
8188

query I rowsort
SELECT - col2 * + 98 AS col0 FROM tab2
----
-2548
-2646
-3724

query I rowsort
SELECT ALL + col1 + 8 * - 88 AS col0 FROM tab2
----
-645
-673
-687

onlyif mysql # use DIV operator for integer division
query I rowsort label-191
SELECT col0 * + ( + col0 ) + 29 DIV ( col2 ) FROM tab1 AS cor0
----
4096
6400
9

skipif mysql # not compatible
query I rowsort label-191
SELECT col0 * + ( + col0 ) + 29 / ( col2 ) FROM tab1 AS cor0
----
4096
6400
9

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

query I rowsort
SELECT DISTINCT + col2 + - 91 * col0 FROM tab2 cor0
----
-610
-7072
-7151

query I rowsort
SELECT - + cor0.col2 - - col0 FROM tab1 cor0
----
-16
-51
7

onlyif mysql # use DIV operator for integer division
query I rowsort label-195
SELECT ALL ( col1 ) * - col1 * col0 + - 35 + - col2 DIV ( cor0.col0 ) AS col1 FROM tab0 AS cor0
----
-177540
-329350
-737044

skipif mysql # not compatible
query I rowsort label-195
SELECT ALL ( col1 ) * - col1 * col0 + - 35 + - col2 / ( cor0.col0 ) AS col1 FROM tab0 AS cor0
----
-177540
-329350
-737044

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * col2 col0 FROM tab0 cor0
----
2838
7462
97

query I rowsort
SELECT DISTINCT 14 + 20 AS col2 FROM tab1 AS cor0
----
34

query I rowsort
SELECT + - 84 * + 25 - - col2 * + 27 AS col1 FROM tab1 AS cor0
----
-561
-642
492

onlyif mysql # use DIV operator for integer division
query I rowsort label-199
SELECT - col1 - col1 DIV col2 FROM tab0 AS cor0
----
-194
-88
-92

skipif mysql # not compatible
query I rowsort label-199
SELECT - col1 - col1 / col2 FROM tab0 AS cor0
----
-194
-88
-92

query I rowsort
SELECT ALL + col2 - - col2 AS col1 FROM tab1 cor0
----
108
114
192

query I rowsort
SELECT ALL + - ( 3 ) FROM tab1 AS cor0
----
-3
-3
-3

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-203
SELECT - + CAST( col2 AS SIGNED ) DIV - col2 - - col2 * col0 col1 FROM tab1 AS cor0
----
163
3649
7681

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-203
SELECT - + CAST ( col2 AS INTEGER ) / - col2 - - col2 * col0 col1 FROM tab1 AS cor0
----
163
3649
7681

query I rowsort
SELECT ALL - ( - col2 ) * + col2 + - col2 * - col2 AS col2 FROM tab0 AS cor0
----
13448
2
2178

query I rowsort
SELECT DISTINCT - col2 * + col2 - cor0.col0 * 97 AS col1 FROM tab1 cor0
----
-16976
-3207
-9457

query I rowsort
SELECT - col2 + + col2 * - col2 FROM tab2 AS cor0
----
-1482
-702
-756

query I rowsort
SELECT ALL + 52 * - col0 AS col2 FROM tab1 AS cor0
----
-156
-3328
-4160

query I rowsort
SELECT ALL + 55 - + col2 AS col1 FROM tab2 AS cor0
----
17
28
29

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * col2 + col0 col0 FROM tab1 AS cor0
----
2919
3313
9296

query I rowsort
SELECT DISTINCT + + col2 * - 4 + col0 AS col0 FROM tab2 AS cor0
----
-101
-26
-73

query I rowsort
SELECT ALL + 65 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 8bef2ea1f05f3514633f851312bdd805

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

query I rowsort
SELECT - cor0.col0 FROM tab2, tab0 cor0
----
9 values hashing to 09d8a912de1b8ab762e5ffbe028ce99e

query I rowsort
SELECT ( cor1.col1 ) FROM tab1, tab1 cor0, tab1 AS cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892

query I rowsort
SELECT ALL + 98 + + col0 * 36 FROM tab2 AS cor0
----
2906
2942
350

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

query I rowsort
SELECT ALL col2 * - ( + col0 ) FROM tab1 AS cor0
----
-162
-3648
-7680

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * 21 col0 FROM tab0 AS cor0
----
-1722
-21
-693

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

query I rowsort
SELECT + col0 + col0 * + ( col2 + + col1 * + col0 ) AS col0 FROM tab1
----
399
44672
90960

query I rowsort
SELECT ALL col2 * ( col0 ) FROM tab0
----
35
7298
792

query I rowsort
SELECT + col2 * 68 AS col2 FROM tab0 AS cor0
----
2244
5576
68

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-223
SELECT col2 - + CAST ( NULL AS INTEGER ) * + col2 col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT 0 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query I rowsort
SELECT + cor0.col2 * 68 AS col1 FROM tab1 AS cor0
----
3672
3876
6528

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 95 + - col0 col2 FROM tab0 cor0
----
-119
-130
-184

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 * col0 col0 FROM tab2 AS cor0
----
-49
-6084
-6241

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

query I rowsort
SELECT DISTINCT 31 - col1 FROM tab0 AS cor0
----
-55
-60
-66

query I rowsort
SELECT ALL - - col2 + - col2 FROM tab0 cor0
----
0
0
0

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

skipif mysql # not compatible
query I rowsort label-231
SELECT DISTINCT + col1 - + col0 / + col2 FROM tab1 AS cor0
----
13
26
9

query I rowsort
SELECT ALL - + 4 AS col2 FROM tab1 AS cor0
----
-4
-4
-4

query I rowsort
SELECT DISTINCT + + 97 * col0 * col1 AS col2 FROM tab0 AS cor0
----
200208
329315
785603

query I rowsort
SELECT ALL - 80 FROM tab1, tab0 AS cor0, tab2 AS cor1, tab2, tab0 AS cor2
----
243 values hashing to 0167fe0282ccc64d911a9a4735de8b2f

onlyif mysql # use DIV operator for integer division
query I rowsort label-235
SELECT + col1 DIV col1 col1 FROM tab0 cor0
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-235
SELECT + col1 / col1 col1 FROM tab0 cor0
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + col1 col0 FROM tab0 AS cor0
----
2064
3395
8099

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

query I rowsort
SELECT 99 FROM tab2, tab2 AS cor0
----
9 values hashing to 4b77467dd5f346109d29f6364a7bb8db

query I rowsort
SELECT ALL 69 AS col2 FROM tab2, tab2 AS cor0, tab0 cor1
----
27 values hashing to 2810c3097fe4771e273cfff903357b40

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

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

query I rowsort
SELECT ALL + + col1 * - col2 * 84 FROM tab1 AS cor0
----
-104832
-117936
-47880

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

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

query I rowsort
SELECT + + 99 FROM tab0 cor0
----
99
99
99

query I rowsort
SELECT DISTINCT 64 FROM tab0 AS cor0
----
64

onlyif mysql # use DIV operator for integer division
query I rowsort label-246
SELECT + col0 DIV 5 AS col2 FROM tab2
----
1
15
15

skipif mysql # not compatible
query I rowsort label-246
SELECT + col0 / 5 AS col2 FROM tab2
----
1
15
15

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

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

query I rowsort
SELECT DISTINCT tab0.col0 AS col0 FROM tab0, tab0 AS cor0
----
24
35
89

query I rowsort
SELECT ALL + col2 * col2 + col1 FROM tab1
----
2942
3259
9229

query I rowsort
SELECT DISTINCT col1 * col1 * ( col1 * ( col1 ) ) + col2 + ( + 5 ) AS col0 FROM tab0
----
54700854
68575048
88529287

query I rowsort
SELECT col1 * + ( - 85 ) FROM tab2
----
-1445
-2635
-5015

query I rowsort
SELECT - col2 * - tab1.col2 - tab1.col2 FROM tab1
----
2862
3192
9120

query I rowsort
SELECT - col0 * + ( - 87 ) FROM tab2
----
609
6786
6873

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

skipif mysql # not compatible
query I rowsort label-254
SELECT col2 / - 62 + col1 AS col2 FROM tab2 cor0
----
17
31
59

query I rowsort
SELECT - cor0.col0 + + 97 AS col0 FROM tab2 AS cor0
----
18
19
90

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-257
SELECT + - ( - 72 ) + + col2 * 69 DIV 78 FROM tab0 AS cor0
----
101
144
72

skipif mysql # not compatible
query I rowsort label-257
SELECT + - ( - 72 ) + + col2 * 69 / 78 FROM tab0 AS cor0
----
101
144
72

query I rowsort
SELECT DISTINCT - tab1.col0 + 85 * col1 AS col1 FROM tab1
----
1025
2207
786

query I rowsort
SELECT DISTINCT 1 * ( + col0 ) AS col0 FROM tab2 AS cor0
----
7
78
79

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-260
SELECT ALL + + CAST( + col2 AS SIGNED ) FROM tab1 AS cor0
----
54
57
96

skipif mysql # not compatible
query I rowsort label-260
SELECT ALL + + CAST ( + col2 AS INTEGER ) FROM tab1 AS cor0
----
54
57
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-261
SELECT cor0.col1 DIV 66 AS col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-261
SELECT cor0.col1 / 66 AS col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - col0 + ( col1 + + ( - 77 ) ) * - col2 AS col1 FROM tab2 cor0
----
1235
2201
390

query I rowsort
SELECT DISTINCT + 20 FROM tab2 AS cor0
----
20

query I rowsort
SELECT - ( + 75 ) + col2 FROM tab1 AS cor0
----
-18
-21
21

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - cor0.col0 + ( col0 ) col1 FROM tab2 AS cor0
----
0

query I rowsort
SELECT 69 + cor0.col2 * col1 AS col1 FROM tab0 cor0
----
166
2907
7531

query I rowsort
SELECT ALL ( + col1 ) + + col2 * 57 FROM tab2 cor0
----
1541
1570
2183

onlyif mysql # use DIV operator for integer division
query I rowsort label-268
SELECT - 56 DIV + col0 FROM tab2 AS cor0
----
-8
0
0

skipif mysql # not compatible
query I rowsort label-268
SELECT - 56 / + col0 FROM tab2 AS cor0
----
-8
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-269
SELECT ALL - col1 * col2 DIV - col1 FROM tab2 AS cor0
----
26
27
38

skipif mysql # not compatible
query I rowsort label-269
SELECT ALL - col1 * col2 / - col1 FROM tab2 AS cor0
----
26
27
38

query I rowsort
SELECT DISTINCT - 23 * + 58 AS col2 FROM tab1 AS cor0
----
-1334

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

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

query I rowsort
SELECT + 90 FROM tab0, tab0 AS cor0
----
9 values hashing to 96f7a90428db93f472e0d219bab64853

skipif mysql # not compatible
query I rowsort
SELECT ALL - + CAST ( - 18 AS REAL ) + + col0 * CAST ( - 28 * - col2 AS INTEGER ) FROM tab1 AS cor0
----
102162
215058
4554

query I rowsort
SELECT DISTINCT 18 * - col0 AS col2 FROM tab1 AS cor0
----
-1152
-1440
-54

query I rowsort
SELECT ALL + ( - col0 ) - - col0 AS col2 FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT DISTINCT 65 AS col0 FROM tab1 AS cor0
----
65

query I rowsort
SELECT ALL + + cor0.col0 * - cor0.col0 FROM tab1 AS cor0
----
-4096
-6400
-9

query I rowsort
SELECT + - col2 * + col0 + + col1 FROM tab0 cor0
----
-706
-7207
62

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

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

query I rowsort
SELECT - - 43 FROM tab2 AS cor0
----
43
43
43

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 84 + - col1 col1 FROM tab2 AS cor0
----
25
53
67

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-283
SELECT ALL - col1 * col2 DIV - col1 + + col0 FROM tab0 AS cor0
----
171
36
57

skipif mysql # not compatible
query I rowsort label-283
SELECT ALL - col1 * col2 / - col1 + + col0 FROM tab0 AS cor0
----
171
36
57

query I rowsort
SELECT - 27 + col1 * 47 * col2 FROM tab1 AS cor0
----
26763
58629
65961

query I rowsort
SELECT DISTINCT - - ( - cor0.col2 ) AS col0 FROM tab1 cor0
----
-54
-57
-96

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

query I rowsort
SELECT ALL - 13 + + col2 AS col1 FROM tab1
----
41
44
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + cor0.col1 ) * col0 + + col2 + - col1 col1 FROM tab1 cor0
----
106
1123
687

query I rowsort
SELECT + + col2 * - col2 + col1 + + col1 * + col2 AS col2 FROM tab2 AS cor0
----
-781
139
917

query I rowsort
SELECT - 54 + col1 FROM tab2 AS cor0
----
-23
-37
5

onlyif mysql # use DIV operator for integer division
query I rowsort label-291
SELECT col1 * - col2 + + col0 DIV col2 FROM tab1 AS cor0
----
-1248
-1404
-569

skipif mysql # not compatible
query I rowsort label-291
SELECT col1 * - col2 + + col0 / col2 FROM tab1 AS cor0
----
-1248
-1404
-569

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

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

query I rowsort
SELECT DISTINCT + - cor0.col0 * 35 FROM tab1 AS cor0
----
-105
-2240
-2800

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + col1 col0 FROM tab2 AS cor0
----
137
38
96

query I rowsort
SELECT ALL - + col1 + + col0 AS col0 FROM tab1 AS cor0
----
-23
54
67

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

skipif mysql # not compatible
query I rowsort label-296
SELECT ALL col0 / CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL cor0.col1 * col1 AS col2 FROM tab2 AS cor0
----
289
3481
961

query I rowsort
SELECT DISTINCT - col1 * 67 AS col2 FROM tab1 AS cor0
----
-1742
-670
-871

query I rowsort
SELECT cor0.col1 * 43 AS col1 FROM tab1 AS cor0
----
1118
430
559

query I rowsort
SELECT + col0 + + tab0.col0 * col2 AS col1 FROM tab0
----
70
7387
816

query I rowsort
SELECT ALL + col0 + - 21 * + cor0.col1 * col0 AS col0 FROM tab2 AS cor0
----
-28124
-4550
-96564

query I rowsort
SELECT DISTINCT + + col1 * 39 + - 79 * - col0 FROM tab1 AS cor0
----
1251
5446
6827

query I rowsort
SELECT DISTINCT - col1 * ( 40 ) - + col1 FROM tab1 AS cor0
----
-1066
-410
-533

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + col2 * 20 col2 FROM tab0 AS cor0
----
1722
21
693

query I rowsort
SELECT DISTINCT - col0 + - ( col2 + col0 * col1 ) AS col1 FROM tab1 AS cor0
----
-1216
-135
-761

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-306
SELECT ALL col0 + + CAST( + col0 * - col0 AS SIGNED ) FROM tab1 cor0
----
-4032
-6
-6320

skipif mysql # not compatible
query I rowsort label-306
SELECT ALL col0 + + CAST ( + col0 * - col0 AS INTEGER ) FROM tab1 cor0
----
-4032
-6
-6320

onlyif mysql # use DIV operator for integer division
query I rowsort label-307
SELECT ALL + col2 + - col1 DIV + 15 AS col1 FROM tab2 AS cor0
----
23
25
37

skipif mysql # not compatible
query I rowsort label-307
SELECT ALL + col2 + - col1 / + 15 AS col1 FROM tab2 AS cor0
----
23
25
37

query I rowsort
SELECT 6 + + ( col2 + - 99 ) * col2 * col2 AS col2 FROM tab2 cor0
----
-49342
-52482
-88078

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

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

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

query I rowsort
SELECT + col1 * - col0 * + col0 FROM tab0
----
-118825
-49536
-720811

query I rowsort
SELECT ALL - 50 + tab1.col1 + col2 FROM tab1
----
17
30
59

query I rowsort
SELECT - 44 AS col1 FROM tab2, tab1 AS cor0, tab0 cor1
----
27 values hashing to 38f05fdaaf15e64b62f27cd96f73fb79

query I rowsort
SELECT - col2 + 23 AS col2 FROM tab0 AS cor0
----
-10
-59
22

query I rowsort
SELECT - + col1 * 10 AS col2 FROM tab2 AS cor0
----
-170
-310
-590

query I rowsort
SELECT - col0 * - tab1.col0 AS col2 FROM tab1
----
4096
6400
9

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-320
SELECT ALL ( col1 ) * ( 82 + - col2 ) DIV col1 FROM tab0
----
0
49
81

skipif mysql # not compatible
query I rowsort label-320
SELECT ALL ( col1 ) * ( 82 + - col2 ) / col1 FROM tab0
----
0
49
81

onlyif mysql # use DIV operator for integer division
query I rowsort label-321
SELECT ALL - col1 * 99 + col1 DIV - col2 AS col0 FROM tab0
----
-8516
-9010
-9700

skipif mysql # not compatible
query I rowsort label-321
SELECT ALL - col1 * 99 + col1 / - col2 AS col0 FROM tab0
----
-8516
-9010
-9700

query I rowsort
SELECT 6 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0, tab0 AS cor1, tab2 AS cor2, tab0 AS cor3
----
243 values hashing to b406364371011938300d901d81088d18

query I rowsort
SELECT col1 * 58 * + 93 AS col2 FROM tab0 AS cor0
----
463884
490854
523218

query I rowsort
SELECT - - col0 + - 79 AS col0 FROM tab0 cor0
----
-44
-55
10

query I rowsort
SELECT - cor0.col1 - - col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT - col0 * - cor0.col1 + + 15 AS col2 FROM tab2 AS cor0
----
1358
232
4617

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

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

query I rowsort
SELECT + + col2 * 16 FROM tab1 AS cor0
----
1536
864
912

query I rowsort
SELECT DISTINCT - 45 * col0 FROM tab0
----
-1080
-1575
-4005

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col1 ) col2 FROM tab1
----
10
13
26

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

skipif mysql # not compatible
query I rowsort
SELECT ALL - CAST ( cor0.col1 AS REAL ) * col1 AS col2 FROM tab1 AS cor0
----
-100
-169
-676

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

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

skipif mysql # not compatible
query I rowsort label-335
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + + col1 / + col1 AS col1 FROM tab2 cor0
----
NULL

query I rowsort
SELECT + 74 * + cor0.col1 FROM tab2 cor0
----
1258
2294
4366

query I rowsort
SELECT ALL - cor0.col2 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to b5a4102107e5ebd26e341538f4fede1e

query I rowsort
SELECT + ( 8 ) * + cor0.col1 FROM tab0 cor0
----
688
728
776

onlyif mysql # use DIV operator for integer division
query I rowsort label-339
SELECT ALL 19 DIV - 22 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-339
SELECT ALL 19 / - 22 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT - 43 FROM tab1 cor0
----
-43
-43
-43

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

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

query I rowsort
SELECT - + cor0.col1 AS col0 FROM tab2 AS cor0
----
-17
-31
-59

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

query I rowsort
SELECT ALL col2 * col2 * col1 AS col2 FROM tab0
----
611884
93654
97

query I rowsort
SELECT + col0 + + col2 AS col2 FROM tab1 AS cor0
----
121
176
57

query I rowsort
SELECT - 81 AS col2 FROM tab1 cor0
----
-81
-81
-81

query I rowsort
SELECT DISTINCT - 25 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-25

query I rowsort
SELECT ALL - - col1 * col1 * col2 + col2 FROM tab1 AS cor0
----
16320
36558
5757

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + cor0.col0 col2 FROM tab2 AS cor0
----
14
156
158

onlyif mysql # use DIV operator for integer division
query I rowsort label-352
SELECT ALL - cor0.col2 DIV - 20 AS col0 FROM tab1 AS cor0
----
2
2
4

skipif mysql # not compatible
query I rowsort label-352
SELECT ALL - cor0.col2 / - 20 AS col0 FROM tab1 AS cor0
----
2
2
4

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

query I rowsort
SELECT DISTINCT + cor0.col0 * col2 + col1 FROM tab1 AS cor0
----
188
3658
7693

query I rowsort
SELECT 95 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 14faa6dda52e3dfe1f5db2579c274a7e

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 96 col0 FROM tab0
----
96

query I rowsort
SELECT 69 - - col1 FROM tab2
----
100
128
86

query I rowsort
SELECT ALL - cor0.col0 * - 25 + 37 FROM tab2 AS cor0
----
1987
2012
212

query I rowsort
SELECT + col1 * + 88 AS col0 FROM tab1 AS cor0
----
1144
2288
880

query I rowsort
SELECT + - col1 + 11 * col0 FROM tab2 AS cor0
----
46
799
852

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 97 * + cor0.col2 * + cor0.col1 col0 FROM tab2 AS cor0
----
-148798
-62662
-81189

query I rowsort
SELECT + ( - col0 ) + + col2 * - 13 * + 64 FROM tab2 cor0
----
-21710
-22471
-31695

query I rowsort
SELECT DISTINCT + - col1 * - col0 + + cor0.col2 FROM tab0 AS cor0
----
2097
3396
8181

query I rowsort
SELECT ALL - - cor0.col0 * col2 - col1 FROM tab0 AS cor0
----
-62
706
7207

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-365
SELECT + + CAST( - col1 AS SIGNED ) + + cor0.col0 * col0 AS col2 FROM tab2 AS cor0
----
18
6025
6224

skipif mysql # not compatible
query I rowsort label-365
SELECT + + CAST ( - col1 AS INTEGER ) + + cor0.col0 * col0 AS col2 FROM tab2 AS cor0
----
18
6025
6224

query I rowsort
SELECT ALL 74 - + col1 AS col2 FROM tab2 cor0
----
15
43
57

query I rowsort
SELECT ALL - 58 + + col1 + col1 * 28 FROM tab1 AS cor0
----
232
319
696

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 88 + col0 * - col1 * - 81 col0 FROM tab0 AS cor0
----
167272
275083
656107

query I rowsort
SELECT ALL + col2 AS col2 FROM tab1 cor0
----
54
57
96

query I rowsort
SELECT + + col1 + + col0 * col2 AS col2 FROM tab0 cor0
----
132
7389
878

query I rowsort
SELECT DISTINCT + - 50 + col0 FROM tab1 AS cor0
----
-47
14
30

query I rowsort
SELECT tab1.col0 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870

query I rowsort
SELECT ALL 78 FROM tab0, tab2 AS cor0
----
9 values hashing to 2aff42d3e015022a738905090a20dfd4

query I rowsort
SELECT ALL - 29 + + col2 AS col0 FROM tab0
----
-28
4
53

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

query I rowsort
SELECT col0 * - ( col0 ) * col2 + - ( col0 ) * - col0 AS col0 FROM tab1 AS cor0
----
-229376
-477
-608000

query I rowsort
SELECT DISTINCT + cor0.col1 * 71 + - col1 * + col0 FROM tab0 cor0
----
-1638
3492
4042

query I rowsort
SELECT + cor0.col0 * + ( col0 ) + + col0 * + 57 * col0 FROM tab2 AS cor0
----
2842
352872
361978

query I rowsort
SELECT DISTINCT - + col2 + 0 * + col2 AS col1 FROM tab2 AS cor0
----
-26
-27
-38

query I rowsort
SELECT + - col2 + col0 * col0 + - col0 * col2 FROM tab2 AS cor0
----
-167
3201
4030

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

query I rowsort
SELECT ALL + col1 * + col0 + col2 FROM tab0 AS cor0
----
2097
3396
8181

onlyif mysql # use DIV operator for integer division
query I rowsort label-384
SELECT + col2 + 22 DIV col1 AS col0 FROM tab2 AS cor0
----
26
27
39

skipif mysql # not compatible
query I rowsort label-384
SELECT + col2 + 22 / col1 AS col0 FROM tab2 AS cor0
----
26
27
39

query I rowsort
SELECT DISTINCT + + col0 * col0 + + col0 + col2 FROM tab1 AS cor0
----
4217
6576
66

onlyif mysql # use DIV operator for integer division
query I rowsort label-386
SELECT - col0 - 21 DIV + col1 FROM tab1 AS cor0
----
-3
-66
-81

skipif mysql # not compatible
query I rowsort label-386
SELECT - col0 - 21 / + col1 FROM tab1 AS cor0
----
-3
-66
-81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col1 col0 FROM tab1 cor0
----
10
13
26

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

query I rowsort
SELECT cor0.col2 * - ( col2 ) * col0 + + 97 FROM tab1 AS cor0
----
-207839
-737183
-8651

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 * + col1 + - cor0.col0 col2 FROM tab0 AS cor0
----
-7420
-8370
-9444

query I rowsort
SELECT - col2 * - col1 + + cor0.col0 FROM tab2 AS cor0
----
1612
725
844

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-393
SELECT CAST( NULL AS SIGNED ) AS col2 FROM tab1, tab1 AS cor0, tab2 AS cor1, tab1 AS cor2
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c

skipif mysql # not compatible
query I rowsort label-393
SELECT CAST ( NULL AS INTEGER ) AS col2 FROM tab1, tab1 AS cor0, tab2 AS cor1, tab1 AS cor2
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c

query I rowsort
SELECT ALL + 97 + cor0.col0 FROM tab0 cor0
----
121
132
186

query I rowsort
SELECT DISTINCT - col1 * + col2 + + col0 AS col1 FROM tab1
----
-1168
-1401
-506

query I rowsort
SELECT DISTINCT + tab0.col0 AS col2 FROM tab0, tab2 AS cor0
----
24
35
89

query I rowsort
SELECT + col0 * - col2 * - col0 FROM tab2
----
1323
158184
237158

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

skipif mysql # not compatible
query I rowsort label-398
SELECT DISTINCT - col0 + ( + tab0.col1 ) + + col1 * + ( + ( + col1 ) ) / col1 FROM tab0
----
148
159
93

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 67 col0 FROM tab1 AS cor0
----
-67
-67
-67

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

skipif mysql # not compatible
query I rowsort label-402
SELECT + CAST ( NULL AS INTEGER ) / cor0.col0 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

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

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

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

query I rowsort
SELECT ALL + 22 * + col0 FROM tab1 cor0
----
1408
1760
66

query I rowsort
SELECT col0 * col0 * - col0 FROM tab1
----
-262144
-27
-512000

query I rowsort
SELECT DISTINCT 15 - - col2 AS col0 FROM tab1
----
111
69
72

onlyif mysql # use DIV operator for integer division
query I rowsort label-409
SELECT col1 + col1 * - col1 * - col1 + + col1 DIV col0 AS col2 FROM tab2
----
205438
29826
4930

skipif mysql # not compatible
query I rowsort label-409
SELECT col1 + col1 * - col1 * - col1 + + col1 / col0 AS col2 FROM tab2
----
205438
29826
4930

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

query I rowsort
SELECT + 64 + col2 * 39 AS col1 FROM tab0
----
103
1351
3262

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 48 * - col0 col0 FROM tab2 AS cor0
----
336
3744
3792

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

query I rowsort
SELECT ALL cor0.col0 * + cor0.col2 + col0 FROM tab0 AS cor0
----
70
7387
816

onlyif mysql # use DIV operator for integer division
query I rowsort label-415
SELECT - 56 DIV - col0 AS col0 FROM tab1
----
0
0
18

skipif mysql # not compatible
query I rowsort label-415
SELECT - 56 / - col0 AS col0 FROM tab1
----
0
0
18

query I rowsort
SELECT DISTINCT - tab0.col1 * 16 AS col0 FROM tab0, tab0 cor0
----
-1376
-1456
-1552

query I rowsort
SELECT - - cor0.col2 + cor0.col0 * col1 AS col1 FROM tab1 AS cor0
----
1136
132
697

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-418
SELECT + + CAST( + cor0.col0 AS SIGNED ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870

skipif mysql # not compatible
query I rowsort label-418
SELECT + + CAST ( + cor0.col0 AS INTEGER ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870

query I rowsort
SELECT DISTINCT - 79 AS col1 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
-79

query I rowsort
SELECT ALL - col0 * col1 * - col0 FROM tab1
----
234
40960
83200

query I rowsort
SELECT ALL col2 * 4 * + col0 FROM tab1
----
14592
30720
648

query I rowsort
SELECT + 42 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 64c29db9f1cd7ed4ddeb1735e3e0d442

onlyif mysql # use DIV operator for integer division
query I rowsort label-423
SELECT - tab0.col2 DIV ( col1 ) FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-423
SELECT - tab0.col2 / ( col1 ) FROM tab0
----
0
0
0

query I rowsort
SELECT + col2 - ( + 1 ) FROM tab1 AS cor0
----
53
56
95

query I rowsort
SELECT DISTINCT - col0 + col0 - - 13 FROM tab1 AS cor0
----
13

query I rowsort
SELECT DISTINCT - col1 - + 48 * col1 FROM tab0 AS cor0
----
-4214
-4459
-4753

query I rowsort
SELECT 44 FROM tab2, tab1 AS cor0, tab2 cor1
----
27 values hashing to 0cc3e52e781e46962291c3060c6ae73b

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-429
SELECT + tab0.col2 DIV - cor0.col0 AS col2 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 99ea1b10e829fb8bc166547bfefc669b

skipif mysql # not compatible
query I rowsort label-429
SELECT + tab0.col2 / - cor0.col0 AS col2 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 99ea1b10e829fb8bc166547bfefc669b

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-430
SELECT ALL + CAST ( + col1 + - col0 AS INTEGER ) col2 FROM tab1
----
-54
-67
23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 89 col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 5c8428e9f1e7de3d09cb0814b4cc1743

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-432
SELECT CAST( NULL AS DECIMAL ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-432
SELECT CAST ( NULL AS REAL ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + - col2 AS col0 FROM tab1 cor0
----
-54
-57
-96

query I rowsort
SELECT - 74 * - col0 + col0 FROM tab2 AS cor0
----
525
5850
5925

query I rowsort
SELECT + col1 * 45 AS col2 FROM tab2 cor0
----
1395
2655
765

query I rowsort
SELECT DISTINCT + 92 + - 15 FROM tab0 cor0
----
77

query I rowsort
SELECT - 2 FROM tab0 AS cor0
----
-2
-2
-2

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

query I rowsort
SELECT DISTINCT 55 * 11 AS col0 FROM tab2
----
605

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

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

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

skipif mysql # not compatible
query I rowsort label-441
SELECT ALL - ( col1 ) * + CAST ( cor0.col2 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-2838
-7462
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col1 col0 FROM tab0 cor0
----
-86
-91
-97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-443
SELECT DISTINCT + col0 * - col1 * - CAST( - 6 AS SIGNED ) + col2 AS col1 FROM tab0 AS cor0
----
-12351
-20369
-48512

skipif mysql # not compatible
query I rowsort label-443
SELECT DISTINCT + col0 * - col1 * - CAST ( - 6 AS INTEGER ) + col2 AS col1 FROM tab0 AS cor0
----
-12351
-20369
-48512

query I rowsort
SELECT ALL col2 + - col0 AS col0 FROM tab2 AS cor0
----
-41
-52
20

onlyif mysql # use DIV operator for integer division
query I rowsort label-445
SELECT ALL 55 DIV col1 FROM tab1 AS cor0
----
2
4
5

skipif mysql # not compatible
query I rowsort label-445
SELECT ALL 55 / col1 FROM tab1 AS cor0
----
2
4
5

query I rowsort
SELECT DISTINCT + 64 AS col0 FROM tab1 AS cor0
----
64

query I rowsort
SELECT + cor1.col2 * 75 AS col1 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to b7d4a7e4c85ddc797126197f8c0adf7d

onlyif mysql # use DIV operator for integer division
query I rowsort label-448
SELECT 51 DIV col1 FROM tab1 AS cor0
----
1
3
5

skipif mysql # not compatible
query I rowsort label-448
SELECT 51 / col1 FROM tab1 AS cor0
----
1
3
5

query I rowsort
SELECT DISTINCT - col2 * + col0 + - col0 AS col2 FROM tab0 AS cor0
----
-70
-7387
-816

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

query I rowsort
SELECT ALL + ( + ( col2 ) ) AS col0 FROM tab1
----
54
57
96

query I rowsort
SELECT ALL + cor0.col2 + + cor0.col1 FROM tab1, tab2 cor0
----
9 values hashing to 993162448d72b066e1ac9ba4caa8d8d7

query I rowsort
SELECT DISTINCT ( 63 ) FROM tab0
----
63

query I rowsort
SELECT ALL col1 - - col1 AS col1 FROM tab0 AS cor0
----
172
182
194

onlyif mysql # use DIV operator for integer division
query I rowsort label-455
SELECT DISTINCT col0 * 48 DIV + col1 AS col1 FROM tab2 AS cor0
----
10
223
63

skipif mysql # not compatible
query I rowsort label-455
SELECT DISTINCT col0 * 48 / + col1 AS col1 FROM tab2 AS cor0
----
10
223
63

skipif mysql # not compatible
query I rowsort
SELECT - CAST ( - ( + cor0.col0 ) AS REAL ) * 64 AS col2 FROM tab0 AS cor0
----
1536
2240
5696

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

query I rowsort
SELECT ALL - + 96 * col0 AS col2 FROM tab1 AS cor0
----
-288
-6144
-7680

query I rowsort
SELECT DISTINCT + - ( col0 ) + ( cor0.col0 ) FROM tab2 AS cor0
----
0

query I rowsort
SELECT - ( 77 ) * - col2 * ( - col1 ) FROM tab0
----
-218526
-574574
-7469

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-462
SELECT - col1 DIV col1 AS col1 FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-462
SELECT - col1 / col1 AS col1 FROM tab0
----
-1
-1
-1

query I rowsort
SELECT ALL - + 20 + col0 AS col0 FROM tab0 cor0
----
15
4
69

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-465
SELECT DISTINCT + + 86 + - col2 DIV + col0 FROM tab2 AS cor0
----
83
86

skipif mysql # not compatible
query I rowsort label-465
SELECT DISTINCT + + 86 + - col2 / + col0 FROM tab2 AS cor0
----
83
86

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - col2 - - 5 col0 FROM tab1 AS cor0
----
-1243
-1399
-565

query I rowsort
SELECT DISTINCT col2 * col1 + + col1 FROM tab0 AS cor0
----
194
2924
7553

query I rowsort
SELECT ( ( col1 ) + 41 ) FROM tab2
----
100
58
72

query I rowsort
SELECT DISTINCT 53 AS col1 FROM tab2, tab1 AS cor0
----
53

onlyif mysql # use DIV operator for integer division
query I rowsort label-470
SELECT ALL + 61 DIV + col0 AS col0 FROM tab1
----
0
0
20

skipif mysql # not compatible
query I rowsort label-470
SELECT ALL + 61 / + col0 AS col0 FROM tab1
----
0
0
20

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab0, tab2 AS cor0, tab1 AS cor1
----
972 values hashing to 9364ef7545b07c67767dceb70f02c643

query I rowsort
SELECT ALL - 88 FROM tab0
----
-88
-88
-88

query I rowsort
SELECT cor0.col1 + ( col1 ) AS col1 FROM tab0 AS cor0
----
172
182
194

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

query I rowsort
SELECT + cor0.col2 * - col0 AS col2 FROM tab2 AS cor0
----
-189
-2028
-3002

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

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

query I rowsort
SELECT DISTINCT + 23 AS col2 FROM tab2, tab0, tab1 AS cor0
----
23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab1.col2 col1 FROM tab1
----
-54
-57
-96

query I rowsort
SELECT cor0.col2 * - col0 + + col1 FROM tab0 AS cor0
----
-706
-7207
62

query I rowsort
SELECT + col2 * 58 FROM tab1 AS cor0
----
3132
3306
5568

onlyif mysql # use DIV operator for integer division
query I rowsort label-482
SELECT DISTINCT - col0 * ( + col2 + col1 ) DIV - col1 FROM tab2
----
112
13
255

skipif mysql # not compatible
query I rowsort label-482
SELECT DISTINCT - col0 * ( + col2 + col1 ) / - col1 FROM tab2
----
112
13
255

query I rowsort
SELECT DISTINCT - col1 + + col1 + col0 FROM tab0
----
24
35
89

query I rowsort
SELECT col2 * ( + 92 ) FROM tab1
----
4968
5244
8832

query I rowsort
SELECT ALL - tab0.col2 * - 12 + col1 * - col1 FROM tab0
----
-7000
-7297
-9397

query I rowsort
SELECT + - 76 * cor0.col0 AS col1 FROM tab0 AS cor0
----
-1824
-2660
-6764

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

skipif mysql # not compatible
query I rowsort label-487
SELECT ALL - CAST ( - ( + col0 ) AS INTEGER ) AS col0 FROM tab1 AS cor0
----
3
64
80

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-489
SELECT CAST( col2 AS SIGNED ) * + col2 FROM tab1 AS cor0
----
2916
3249
9216

skipif mysql # not compatible
query I rowsort label-489
SELECT CAST ( col2 AS INTEGER ) * + col2 FROM tab1 AS cor0
----
2916
3249
9216

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

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

query I rowsort
SELECT DISTINCT - col1 * 50 AS col0 FROM tab0
----
-4300
-4550
-4850

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-492
SELECT ALL col2 + + CAST( 97 AS SIGNED ) * + col2 * + col1 + 95 FROM tab0
----
275414
723991
9505

skipif mysql # not compatible
query I rowsort label-492
SELECT ALL col2 + + CAST ( 97 AS INTEGER ) * + col2 * + col1 + 95 FROM tab0
----
275414
723991
9505

query I rowsort
SELECT DISTINCT + col2 + 56 AS col2 FROM tab1
----
110
113
152

onlyif mysql # use DIV operator for integer division
query I rowsort label-494
SELECT - col0 * + 80 - + col0 DIV - col0 FROM tab0
----
-1919
-2799
-7119

skipif mysql # not compatible
query I rowsort label-494
SELECT - col0 * + 80 - + col0 / - col0 FROM tab0
----
-1919
-2799
-7119

query I rowsort
SELECT col2 + 26 * - col0 FROM tab2
----
-155
-2002
-2016

query I rowsort
SELECT - cor1.col0 FROM tab1, tab1 cor0, tab0 AS cor1
----
27 values hashing to c3ebf1695ca74567bdc173dbe15186a8

query I rowsort
SELECT - 63 + 32 FROM tab2
----
-31
-31
-31

query I rowsort
SELECT DISTINCT ( 59 ) FROM tab0 AS cor0
----
59

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

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

query I rowsort
SELECT ALL col2 * 99 AS col2 FROM tab1 AS cor0
----
5346
5643
9504

query I rowsort
SELECT - col1 * 27 AS col2 FROM tab0 AS cor0
----
-2322
-2457
-2619

query I rowsort
SELECT ALL - - cor0.col1 * + 94 AS col1 FROM tab1 AS cor0
----
1222
2444
940

onlyif mysql # use DIV operator for integer division
query I rowsort label-504
SELECT ALL col0 + col0 DIV - col0 FROM tab0 AS cor0
----
23
34
88

skipif mysql # not compatible
query I rowsort label-504
SELECT ALL col0 + col0 / - col0 FROM tab0 AS cor0
----
23
34
88

onlyif mysql # use DIV operator for integer division
query I rowsort label-505
SELECT DISTINCT - col1 - col0 DIV + col0 AS col0 FROM tab1 AS cor0
----
-11
-14
-27

skipif mysql # not compatible
query I rowsort label-505
SELECT DISTINCT - col1 - col0 / + col0 AS col0 FROM tab1 AS cor0
----
-11
-14
-27

query I rowsort
SELECT DISTINCT - col2 * 30 + col2 AS col0 FROM tab1 cor0
----
-1566
-1653
-2784

query I rowsort
SELECT ALL - - ( + col2 ) * col2 + - 32 AS col1 FROM tab2 AS cor0
----
1412
644
697

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

query I rowsort
SELECT cor0.col1 + + 7 * col1 FROM tab1 AS cor0
----
104
208
80

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

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

query I rowsort
SELECT col2 + tab2.col0 * + ( + col2 ) + - col1 * - 16 * col2 AS col2 FROM tab2
----
13376
13608
26598

query I rowsort
SELECT ALL + 15 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to d1d280d38bf9c2d5d5ec90dd43aeaffd

onlyif mysql # use DIV operator for integer division
query I rowsort label-513
SELECT - 24 DIV cor0.col1 AS col0 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-513
SELECT - 24 / cor0.col1 AS col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT - col0 * - col2 + - 65 * col0 + col2 FROM tab2 AS cor0
----
-2095
-239
-3016

query I rowsort
SELECT - 69 FROM tab0 AS cor0
----
-69
-69
-69

query I rowsort
SELECT ALL + - 59 * col2 FROM tab0 AS cor0
----
-1947
-4838
-59

query I rowsort
SELECT + ( + col2 ) + - 49 AS col1 FROM tab0 AS cor0
----
-16
-48
33

query I rowsort
SELECT - col1 + col2 * 34 + col1 AS col0 FROM tab0 AS cor0
----
1122
2788
34

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

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

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

query I rowsort
SELECT 86 * col2 AS col2 FROM tab0
----
2838
7052
86

onlyif mysql # use DIV operator for integer division
query I rowsort label-522
SELECT DISTINCT tab1.col0 DIV col1 AS col2 FROM tab1
----
0
6

skipif mysql # not compatible
query I rowsort label-522
SELECT DISTINCT tab1.col0 / col1 AS col2 FROM tab1
----
0
6

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

skipif mysql # not compatible
query I rowsort label-523
SELECT col2 * col1 + 30 + col1 * CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL

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

query I rowsort
SELECT + col1 + col2 + + 67 FROM tab0 AS cor0
----
165
186
240

query I rowsort
SELECT + col1 * + cor0.col0 * - ( col1 ) FROM tab2 AS cor0
----
-22831
-271518
-6727

query I rowsort
SELECT - col0 * + col2 AS col0 FROM tab1
----
-162
-3648
-7680

query I rowsort
SELECT + cor0.col2 FROM tab2 AS cor0 CROSS JOIN tab2
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3

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

query I rowsort
SELECT ALL + col1 + - tab2.col1 * - col1 FROM tab2
----
306
3540
992

onlyif mysql # use DIV operator for integer division
query I rowsort label-531
SELECT DISTINCT + + col0 DIV col1 + col2 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-531
SELECT DISTINCT + + col0 / col1 + col2 col2 FROM tab0 AS cor0
----
1
33
82

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-536
SELECT col1 + col2 / + col0 FROM tab2 AS cor0
----
17
34
59

query I rowsort
SELECT ALL - cor0.col0 * - col2 AS col2 FROM tab2 AS cor0
----
189
2028
3002

onlyif mysql # use DIV operator for integer division
query I rowsort label-538
SELECT ALL col0 * - col2 DIV col2 FROM tab0 AS cor0
----
-24
-35
-89

skipif mysql # not compatible
query I rowsort label-538
SELECT ALL col0 * - col2 / col2 FROM tab0 AS cor0
----
-24
-35
-89

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

query I rowsort
SELECT col0 + col2 * col0 AS col1 FROM tab1 AS cor0
----
165
3712
7760

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

skipif mysql # not compatible
query I rowsort label-541
SELECT + col0 / col0 FROM tab0 cor0
----
1
1
1

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

skipif mysql # not compatible
query I rowsort label-542
SELECT ALL cor0.col0 / - col0 FROM tab0 AS cor0
----
-1
-1
-1

query I rowsort
SELECT ALL + col2 * col1 * col0 + col1 FROM tab2 AS cor0
----
119711
51051
5890

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

query I rowsort
SELECT ALL + + col0 + + col2 * - col2 FROM tab1 cor0
----
-2913
-3185
-9136

query I rowsort
SELECT DISTINCT col2 * - col2 + + col2 FROM tab1 AS cor0
----
-2862
-3192
-9120

query I rowsort
SELECT col1 * tab1.col0 + - tab1.col0 FROM tab1
----
576
75
960

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + - col1 * + col0 col2 FROM tab1
----
-576
-75
-960

onlyif mysql # use DIV operator for integer division
query I rowsort label-549
SELECT ALL - col1 + + cor0.col2 * col2 DIV cor0.col0 - col0 col1 FROM tab1 AS cor0
----
-24
22
943

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-549
SELECT ALL - col1 + + cor0.col2 * col2 / cor0.col0 - col0 col1 FROM tab1 AS cor0
----
-24
22
943

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * col0 col0 FROM tab2 AS cor0
----
-49
-6084
-6241

query I rowsort
SELECT DISTINCT - col0 * - col1 + col1 * col1 FROM tab1 AS cor0
----
1209
740
754

query I rowsort
SELECT + col2 + col2 * cor0.col0 AS col0 FROM tab1 AS cor0
----
216
3705
7776

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

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

query I rowsort
SELECT ALL - + cor0.col1 + cor0.col0 * col1 + + cor0.col0 FROM tab1 cor0
----
1107
55
694

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

query I rowsort
SELECT ALL - col0 * + col1 + cor0.col1 + + col0 FROM tab2 AS cor0
----
-1247
-179
-4465

query I rowsort
SELECT ALL col2 + col1 + col1 * col2 FROM tab1 AS cor0
----
1357
1484
637

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

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

query I rowsort
SELECT DISTINCT - cor0.col1 + cor0.col0 FROM tab1 cor0
----
-23
54
67

query I rowsort
SELECT ALL + + col2 * + col0 + - col0 FROM tab2 AS cor0
----
182
1950
2923

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-566
SELECT col2 + + col1 DIV col1 AS col1 FROM tab2
----
27
28
39

skipif mysql # not compatible
query I rowsort label-566
SELECT col2 + + col1 / col1 AS col1 FROM tab2
----
27
28
39

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

query I rowsort
SELECT + cor0.col2 AS col1 FROM tab1, tab2, tab1 AS cor0
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79

query I rowsort
SELECT + 43 * col1 AS col1 FROM tab1 AS cor0
----
1118
430
559

query IIIIIIIIIIII rowsort
SELECT * FROM tab2, tab0 AS cor0, tab1 cor1, tab2 AS cor2
----
972 values hashing to 49c8bf3e931a898ba7af63d0e377eb79

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

query I rowsort
SELECT + - 22 * - col2 FROM tab0 AS cor0
----
1804
22
726

query I rowsort
SELECT col2 - tab2.col2 AS col2 FROM tab2 WHERE - col2 * + col1 >= NULL
----

query I rowsort
SELECT ALL + col0 - + col0 FROM tab1
----
0
0
0

query I rowsort
SELECT + 75 FROM tab0 AS cor0
----
75
75
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - tab1.col1 * - col0 col2 FROM tab1
----
1040
640
78

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

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

query I rowsort
SELECT col0 * col2 + col2 FROM tab2
----
2054
216
3040

query I rowsort
SELECT ALL 68 * col2 + - col0 AS col1 FROM tab2 AS cor0
----
1690
1829
2505

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-581
SELECT ALL + cor0.col1 * - col2 + CAST( - 12 AS SIGNED ) AS col1 FROM tab1 cor0
----
-1260
-1416
-582

skipif mysql # not compatible
query I rowsort label-581
SELECT ALL + cor0.col1 * - col2 + CAST ( - 12 AS INTEGER ) AS col1 FROM tab1 cor0
----
-1260
-1416
-582

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab2 AS cor0, tab2 AS cor1, tab0, tab1 AS cor2
----
3645 values hashing to d865c68b86e66898eeac28f450e48e70

query I rowsort
SELECT DISTINCT 58 AS col0 FROM tab1
----
58

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-584
SELECT - col1 / col0 col1 FROM tab1
----
-8
0
0

query I rowsort
SELECT col2 + + col0 + tab0.col0 FROM tab0
----
260
71
81

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

query I rowsort
SELECT col0 * col0 * col0 FROM tab0
----
13824
42875
704969

query I rowsort
SELECT col0 * + col0 FROM tab1 WHERE NOT col0 * + col1 + - col0 * - col2 NOT BETWEEN ( - col0 ) AND ( + col2 * + col2 + + col2 )
----
6400
9

query I rowsort
SELECT DISTINCT col2 + col1 + col0 * + col0 FROM tab1
----
4163
6509
89

query I rowsort
SELECT ALL col2 FROM tab0 WHERE NULL NOT BETWEEN ( col1 * + col0 ) AND col2
----

query I rowsort
SELECT DISTINCT + col2 * col0 AS col1 FROM tab0
----
35
7298
792

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

query I rowsort
SELECT - col0 * col0 * tab0.col2 + - col0 - + col2 * col2 FROM tab0
----
-1261
-20121
-656335

query I rowsort
SELECT + col2 * col0 + + col0 AS col1 FROM tab1
----
165
3712
7760

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

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

query I rowsort
SELECT tab0.col1 * col1 * - col1 AS col2 FROM tab0
----
-636056
-753571
-912673

query I rowsort
SELECT tab0.col1 + - col0 FROM tab0 WHERE - col1 + - col2 * + col1 > - col1 + - col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * col2 col2 FROM tab1
----
2916
3249
9216

query I rowsort
SELECT ALL col2 + tab0.col2 AS col0 FROM tab0
----
164
2
66

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col1 NOT IN ( col2 * tab0.col0 + - col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL BETWEEN NULL AND ( col0 )
----

query I rowsort
SELECT DISTINCT - col2 - + col2 FROM tab1
----
-108
-114
-192

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * tab0.col1 + + col2 col0 FROM tab0
----
2097
3396
8181

query I rowsort
SELECT DISTINCT col2 + col1 * + col1 AS col2 FROM tab1 WHERE NULL BETWEEN NULL AND ( col0 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-606
SELECT + col2 * - col1 + - tab0.col2 DIV col0 col0 FROM tab0
----
-2839
-7462
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-606
SELECT + col2 * - col1 + - tab0.col2 / col0 col0 FROM tab0
----
-2839
-7462
-97

query I rowsort
SELECT - col1 * - col1 AS col0 FROM tab2
----
289
3481
961

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-610
SELECT DISTINCT col0 DIV - col1 + - col2 FROM tab0
----
-1
-33
-82

skipif mysql # not compatible
query I rowsort label-610
SELECT DISTINCT col0 / - col1 + - col2 FROM tab0
----
-1
-33
-82

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( NULL ) BETWEEN col0 AND ( NULL )
----

query III rowsort
SELECT * FROM tab2 WHERE col2 * col2 >= NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-613
SELECT ALL + tab0.col1 + - col1 DIV tab0.col0 FROM tab0
----
83
90
95

skipif mysql # not compatible
query I rowsort label-613
SELECT ALL + tab0.col1 + - col1 / tab0.col0 FROM tab0
----
83
90
95

query I rowsort
SELECT ALL + 26 AS col2 FROM tab2
----
26
26
26

query I rowsort
SELECT + + 25 + + col1 AS col0 FROM tab2 AS cor0
----
42
56
84

onlyif mysql # use DIV operator for integer division
query I rowsort label-616
SELECT - 42 DIV col1 FROM tab2 cor0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-616
SELECT - 42 / col1 FROM tab2 cor0
----
-1
-2
0

query I rowsort
SELECT - - cor0.col0 + 34 * col2 FROM tab0 AS cor0
----
1146
2877
69

query I rowsort
SELECT DISTINCT + col2 + + 19 AS col2 FROM tab2 cor0
----
45
46
57

onlyif mysql # use DIV operator for integer division
query I rowsort label-619
SELECT + col2 DIV - ( cor0.col2 ) AS col1 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-619
SELECT + col2 / - ( cor0.col2 ) AS col1 FROM tab0 AS cor0
----
-1
-1
-1

query I rowsort
SELECT ALL cor0.col0 * ( cor0.col0 * col2 ) FROM tab0 AS cor0
----
1225
19008
649522

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 col1 FROM tab2, tab1 cor0
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17

query I rowsort
SELECT DISTINCT col2 * + col0 AS col0 FROM tab1
----
162
3648
7680

query I rowsort
SELECT DISTINCT + cor0.col1 * - ( cor0.col0 ) AS col2 FROM tab2 cor0
----
-1343
-217
-4602

query I rowsort
SELECT + - ( 20 ) * + col0 AS col0 FROM tab1 AS cor0
----
-1280
-1600
-60

query I rowsort
SELECT - 55 * col0 + + col1 FROM tab2 AS cor0
----
-354
-4231
-4328

onlyif mysql # use DIV operator for integer division
query I rowsort label-627
SELECT 32 DIV col2 + col2 FROM tab1 cor0
----
54
57
96

skipif mysql # not compatible
query I rowsort label-627
SELECT 32 / col2 + col2 FROM tab1 cor0
----
54
57
96

query I rowsort
SELECT - 13 * 22 FROM tab1 AS cor0
----
-286
-286
-286

query I rowsort
SELECT - col2 + - ( - col1 * cor0.col0 + - 34 * - col2 ) FROM tab2 cor0
----
-728
13
3692

skipif mysql # not compatible
query I rowsort
SELECT CAST ( + 69 AS REAL ) * + col0 - col1 AS col1 FROM tab2 AS cor0
----
452
5323
5434

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col1 - + 66 col2 FROM tab1 AS cor0
----
-40
-53
-56

query I rowsort
SELECT cor0.col2 + + col2 AS col2 FROM tab1 AS cor0
----
108
114
192

query I rowsort
SELECT + col2 * col2 + + tab2.col1 AS col2 FROM tab2
----
1461
735
760

query I rowsort
SELECT - 18 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 2dbe09d9295cfd52d854fefabf2cec4e

onlyif mysql # use DIV operator for integer division
query I rowsort label-635
SELECT ALL - + col2 DIV col0 + col2 AS col1 FROM tab0 AS cor0
----
1
32
82

skipif mysql # not compatible
query I rowsort label-635
SELECT ALL - + col2 / col0 + col2 AS col1 FROM tab0 AS cor0
----
1
32
82

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

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

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

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

query I rowsort
SELECT ALL + 18 + col0 FROM tab2 AS cor0
----
25
96
97

query I rowsort
SELECT 1 + col0 FROM tab1 AS cor0
----
4
65
81

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-643
SELECT DISTINCT + - 50 DIV - cor0.col1 AS col1 FROM tab1 AS cor0
----
1
3
5

skipif mysql # not compatible
query I rowsort label-643
SELECT DISTINCT + - 50 / - cor0.col1 AS col1 FROM tab1 AS cor0
----
1
3
5

query I rowsort
SELECT ALL col2 * col0 AS col0 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT ALL col2 + + col2 FROM tab0 cor0
----
164
2
66

query I rowsort
SELECT DISTINCT + ( ( + tab1.col0 ) ) * col2 FROM tab1
----
162
3648
7680

query I rowsort
SELECT DISTINCT ( 25 ) * + col1 - - col2 FROM tab2
----
1501
463
802

query I rowsort
SELECT ( + 99 ) * - col2 - col2 * col1 AS col0 FROM tab0
----
-15580
-196
-6105

query I rowsort
SELECT col1 * 59 * tab1.col2 + tab1.col0 * col2 * - col1 + col1 AS col2 FROM tab1
----
-26195
-2840
78650

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

query I rowsort
SELECT 46 - 58 FROM tab1
----
-12
-12
-12

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

query I rowsort
SELECT DISTINCT col0 * col2 + - tab2.col2 * - col0 FROM tab2
----
378
4056
6004

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

query I rowsort
SELECT - + cor0.col0 + + cor0.col1 * + col1 FROM tab2 AS cor0
----
210
3403
954

query I rowsort
SELECT - + 49 * + col1 + + col0 * col2 FROM tab1 AS cor0
----
-1112
3158
7043

query I rowsort
SELECT ALL + 95 FROM tab1 AS cor0
----
95
95
95

query I rowsort
SELECT DISTINCT + 50 + col2 FROM tab1 cor0
----
104
107
146

query I rowsort
SELECT tab0.col1 * - col1 + + col2 FROM tab0
----
-7363
-8199
-9408

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

query I rowsort
SELECT DISTINCT - 60 AS col1 FROM tab2, tab2 AS cor0
----
-60

query I rowsort
SELECT + 58 + cor0.col2 * col1 FROM tab0 AS cor0
----
155
2896
7520

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-664
SELECT ALL + CAST( - col1 AS SIGNED ) FROM tab2 AS cor0
----
-17
-31
-59

skipif mysql # not compatible
query I rowsort label-664
SELECT ALL + CAST ( - col1 AS INTEGER ) FROM tab2 AS cor0
----
-17
-31
-59

query I rowsort
SELECT col1 + - 92 * 39 AS col2 FROM tab2 AS cor0
----
-3529
-3557
-3571

query I rowsort
SELECT col1 + + 5 * col2 FROM tab2 AS cor0
----
166
189
207

onlyif mysql # use DIV operator for integer division
query I rowsort label-667
SELECT + - cor0.col2 + - 81 DIV - col2 FROM tab1 cor0
----
-53
-56
-96

skipif mysql # not compatible
query I rowsort label-667
SELECT + - cor0.col2 + - 81 / - col2 FROM tab1 cor0
----
-53
-56
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 - col2 col1 FROM tab2
----
-21
33
4

query I rowsort
SELECT DISTINCT + 31 - - 89 FROM tab2
----
120

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-670
SELECT + CAST ( NULL AS INTEGER ) * tab0.col2 col0 FROM tab0
----
NULL
NULL
NULL

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-672
SELECT + CAST( col2 AS SIGNED ) FROM tab1
----
54
57
96

skipif mysql # not compatible
query I rowsort label-672
SELECT + CAST ( col2 AS INTEGER ) FROM tab1
----
54
57
96

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-674
SELECT col2 + + col1 DIV + col0 FROM tab1 AS cor0
----
57
62
96

skipif mysql # not compatible
query I rowsort label-674
SELECT col2 + + col1 / + col0 FROM tab1 AS cor0
----
57
62
96

query I rowsort
SELECT - - col2 + - 57 AS col2 FROM tab0 cor0
----
-24
-56
25

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

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

query I rowsort
SELECT ALL - col2 * + tab1.col0 AS col1 FROM tab1
----
-162
-3648
-7680

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-679
SELECT + CAST( ( col0 ) AS SIGNED ) + - col2 * 80 FROM tab2 AS cor0
----
-2002
-2153
-2961

skipif mysql # not compatible
query I rowsort label-679
SELECT + CAST ( ( col0 ) AS INTEGER ) + - col2 * 80 FROM tab2 AS cor0
----
-2002
-2153
-2961

query I rowsort
SELECT - - 6 * + ( + col2 ) * col2 FROM tab2 AS cor0
----
4056
4374
8664

query I rowsort
SELECT ALL - col1 * + 56 AS col0 FROM tab2
----
-1736
-3304
-952

query I rowsort
SELECT ALL tab2.col1 * col1 AS col2 FROM tab2
----
289
3481
961

query I rowsort
SELECT ALL + col0 * + ( - col0 ) AS col2 FROM tab2
----
-49
-6084
-6241

query I rowsort
SELECT DISTINCT + 39 * - 20 FROM tab0, tab0 AS cor0
----
-780

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

query I rowsort
SELECT ALL cor0.col0 * 15 + col1 FROM tab2 AS cor0
----
1202
1229
136

query I rowsort
SELECT 59 + - col0 FROM tab1 AS cor0
----
-21
-5
56

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-689
SELECT ALL col1 * 66 DIV col1 - - 83 AS col2 FROM tab1 cor0
----
149
149
149

skipif mysql # not compatible
query I rowsort label-689
SELECT ALL col1 * 66 / col1 - - 83 AS col2 FROM tab1 cor0
----
149
149
149

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

query I rowsort
SELECT ALL - - col2 * - col2 + col0 FROM tab2 AS cor0
----
-1365
-598
-722

query I rowsort
SELECT - 64 * col2 * col1 FROM tab1 AS cor0
----
-36480
-79872
-89856

query I rowsort
SELECT DISTINCT - 77 * 56 - col1 AS col2 FROM tab2 cor0
----
-4329
-4343
-4371

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

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

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

skipif mysql # not compatible
query I rowsort label-696
SELECT ALL - - 0 * - col2 - col0 / CAST ( NULL AS REAL ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + ( col1 ) AS col0 FROM tab2 AS cor0
----
17
31
59

query I rowsort
SELECT ALL col1 + + col2 + col2 FROM tab2
----
111
85
93

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

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

query I rowsort
SELECT DISTINCT - col2 + - col2 AS col0 FROM tab2 AS cor0
----
-52
-54
-76

query I rowsort
SELECT + 7 * col0 AS col1 FROM tab1 AS cor0
----
21
448
560

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

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 DISTINCT - ( + col2 ) * ( + 1 ) col2 FROM tab1 AS cor0
----
-54
-57
-96

query I rowsort
SELECT col0 + + col0 * + col0 FROM tab2 AS cor0
----
56
6162
6320

onlyif mysql # use DIV operator for integer division
query I rowsort label-706
SELECT ALL col2 DIV col1 AS col1 FROM tab1 AS cor0
----
2
5
7

skipif mysql # not compatible
query I rowsort label-706
SELECT ALL col2 / col1 AS col1 FROM tab1 AS cor0
----
2
5
7

query I rowsort
SELECT ALL - cor0.col2 AS col0 FROM tab2 cor0
----
-26
-27
-38

query I rowsort
SELECT - - col0 * + col2 FROM tab1 cor0
----
162
3648
7680

query IIIIIIIIIIII rowsort
SELECT * FROM tab1, tab0 cor0, tab1 AS cor1, tab1 cor2
----
972 values hashing to 0be13143d898cc667fe1a2dd93b34703

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

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

query I rowsort
SELECT cor0.col0 * + col2 * + 22 FROM tab1 AS cor0
----
168960
3564
80256

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT col1 + - CAST ( col1 AS REAL ) FROM tab2 AS cor0
----
0

query I rowsort
SELECT - tab0.col2 FROM tab0, tab1 cor0
----
9 values hashing to b5a4102107e5ebd26e341538f4fede1e

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * - 77 + - col2 * + cor0.col2 col1 FROM tab2 cor0
----
-190
4639
5330

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

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

query I rowsort
SELECT DISTINCT - col2 * 92 * + col2 + col1 FROM tab0 AS cor0
----
-100102
-618517
5

query I rowsort
SELECT DISTINCT - + col0 * - col2 FROM tab2 AS cor0
----
189
2028
3002

onlyif mysql # use DIV operator for integer division
query I rowsort label-719
SELECT ALL + col2 + - 74 DIV cor0.col0 FROM tab2 AS cor0
----
17
26
38

skipif mysql # not compatible
query I rowsort label-719
SELECT ALL + col2 + - 74 / cor0.col0 FROM tab2 AS cor0
----
17
26
38

query I rowsort
SELECT col1 * + 46 AS col1 FROM tab1 AS cor0
----
1196
460
598

query IIIIIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab2, tab0 AS cor1 WHERE NULL = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab1.col0 col2 FROM tab1
----
3
64
80

query I rowsort
SELECT - col0 + - 54 AS col1 FROM tab2 AS cor0
----
-132
-133
-61

query I rowsort
SELECT - col2 * + 17 AS col2 FROM tab1 cor0
----
-1632
-918
-969

query I rowsort
SELECT + cor0.col1 * - 91 + col0 + col0 AS col1 FROM tab1 AS cor0
----
-1023
-2360
-782

query I rowsort
SELECT + + col0 + col2 + + col2 * - col1 AS col2 FROM tab0 AS cor0
----
-2781
-61
-7291

query I rowsort
SELECT - 83 AS col2 FROM tab0 AS cor0
----
-83
-83
-83

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

query I rowsort
SELECT col0 + - 52 * - col0 AS col0 FROM tab1 AS cor0
----
159
3392
4240

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor1.col2 col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-54
-57
-96

query I rowsort
SELECT col0 * ( - col2 * tab1.col0 ) AS col1 FROM tab1
----
-233472
-486
-614400

query I rowsort
SELECT DISTINCT 27 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
27

query I rowsort
SELECT + col2 + ( + col1 ) * + ( - col0 ) AS col2 FROM tab0 AS cor0
----
-2031
-3394
-8017

query I rowsort
SELECT + ( + 56 ) AS col0 FROM tab1, tab1 AS cor0, tab2 AS cor1, tab0 AS cor2
----
81 values hashing to 9cee91ca9c60ba6e45a33b388a3b7d9b

query I rowsort
SELECT + + 22 * + col0 FROM tab1 AS cor0
----
1408
1760
66

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + col0 + cor0.col1 col2 FROM tab2 AS cor0
----
-1326
-186
-4543

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + col2 col1 FROM tab2 AS cor0
----
-189
-2028
-3002

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

query I rowsort
SELECT - col0 - col0 * col1 * col0 AS col1 FROM tab0 AS cor0
----
-118860
-49560
-720900

onlyif mysql # use DIV operator for integer division
query I rowsort label-741
SELECT - + col2 DIV + col2 + 95 AS col2 FROM tab0 AS cor0
----
94
94
94

skipif mysql # not compatible
query I rowsort label-741
SELECT - + col2 / + col2 + 95 AS col2 FROM tab0 AS cor0
----
94
94
94

query I rowsort
SELECT - 6 * col2 AS col2 FROM tab0 AS cor0
----
-198
-492
-6

query I rowsort
SELECT DISTINCT 70 + - col0 AS col1 FROM tab2
----
-8
-9
63

query I rowsort
SELECT DISTINCT - 21 AS col0 FROM tab2, tab1, tab2 AS cor0
----
-21

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

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

query I rowsort
SELECT + col0 * - col1 + - col1 AS col0 FROM tab0 AS cor0
----
-2150
-3492
-8190

query I rowsort
SELECT + col2 + 16 FROM tab0 AS cor0
----
17
49
98

onlyif mysql # use DIV operator for integer division
query I rowsort label-748
SELECT DISTINCT col2 + col1 DIV ( col1 + - col0 ) FROM tab2
----
23
28
38

skipif mysql # not compatible
query I rowsort label-748
SELECT DISTINCT col2 + col1 / ( col1 + - col0 ) FROM tab2
----
23
28
38

query I rowsort
SELECT + 19 FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to 86c53e8567a17c8d91fc5aff119e0498

query I rowsort
SELECT cor1.col1 + 58 * - 30 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 975e40b619e8b65b6770d805ecb31fe9

query I rowsort
SELECT - col0 * - 67 FROM tab2
----
469
5226
5293

query I rowsort
SELECT - col0 + col1 * - 47 AS col0 FROM tab0 AS cor0
----
-4066
-4366
-4594

query I rowsort
SELECT - col2 + - col2 AS col1 FROM tab1 cor0
----
-108
-114
-192

query I rowsort
SELECT DISTINCT col0 * - col0 AS col2 FROM tab2 AS cor0
----
-49
-6084
-6241

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

query I rowsort
SELECT + 94 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to b0ffb7527f4fbf44f30945e1ccb58c24

query I rowsort
SELECT ALL 50 + + tab2.col1 * - 1 AS col1 FROM tab2
----
-9
19
33

query I rowsort
SELECT ALL 68 * col1 FROM tab0
----
5848
6188
6596

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 - col0 col1 FROM tab2 AS cor0
----
-14
-156
-158

query I rowsort
SELECT - cor0.col2 + cor0.col0 FROM tab2 AS cor0
----
-20
41
52

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

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

skipif mysql # not compatible
query I rowsort label-762
SELECT tab0.col1 / col2 FROM tab0
----
1
2
97

query I rowsort
SELECT DISTINCT + col2 * + 47 AS col1 FROM tab1
----
2538
2679
4512

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-765
SELECT ALL col1 * ( col2 ) DIV col0 AS col1 FROM tab1
----
15
468
8

skipif mysql # not compatible
query I rowsort label-765
SELECT ALL col1 * ( col2 ) / col0 AS col1 FROM tab1
----
15
468
8

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * col2 col2 FROM tab2 AS cor0
----
-1444
-676
-729

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

skipif mysql # not compatible
query I rowsort label-768
SELECT + col2 * - CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-769
SELECT col1 + col0 DIV 15 col2 FROM tab1 AS cor0
----
14
18
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-769
SELECT col1 + col0 / 15 col2 FROM tab1 AS cor0
----
14
18
26

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

skipif mysql # not compatible
query I rowsort label-770
SELECT - 11 / - col2 AS col0 FROM tab0 AS cor0
----
0
0
11

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

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

query I rowsort
SELECT - col1 + - ( - col1 + + ( - 76 ) ) * - col2 FROM tab2 AS cor0
----
-2920
-3551
-3569

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

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

query I rowsort
SELECT - + 24 AS col1 FROM tab0 AS cor0
----
-24
-24
-24

onlyif mysql # use DIV operator for integer division
query I rowsort label-775
SELECT + - 59 + - col1 DIV col0 AS col2 FROM tab1 AS cor0
----
-59
-59
-67

skipif mysql # not compatible
query I rowsort label-775
SELECT + - 59 + - col1 / col0 AS col2 FROM tab1 AS cor0
----
-59
-59
-67

onlyif mysql # use DIV operator for integer division
query I rowsort label-776
SELECT col0 DIV col1 + col1 * col1 * col1 AS col1 FROM tab0 cor0
----
636056
753571
912673

skipif mysql # not compatible
query I rowsort label-776
SELECT col0 / col1 + col1 * col1 * col1 AS col1 FROM tab0 cor0
----
636056
753571
912673

query I rowsort
SELECT + - col0 * - col2 - - col1 * 79 AS col1 FROM tab1 AS cor0
----
2216
4438
8707

query I rowsort
SELECT + 92 - + cor0.col1 AS col1 FROM tab1 cor0
----
66
79
82

query I rowsort
SELECT DISTINCT - 73 * - ( - col1 ) FROM tab0 cor0
----
-6278
-6643
-7081

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 76 * + col2 col2 FROM tab1 AS cor0
----
-4104
-4332
-7296

query I rowsort
SELECT DISTINCT 33 FROM tab1, tab1 AS cor0
----
33

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

query I rowsort
SELECT + col0 + col0 + col2 * ( - col1 + + col0 ) * col2 AS col2 FROM tab0
----
-13270
-67470
8

query I rowsort
SELECT 13 + - col0 FROM tab1
----
-51
-67
10

query I rowsort
SELECT + 93 * + tab0.col0 + - tab0.col1 * col2 + col0 * + col0 AS col2 FROM tab0
----
-30
4383
8736

onlyif mysql # use DIV operator for integer division
query I rowsort label-787
SELECT cor0.col1 + col2 DIV + col1 AS col1 FROM tab2 AS cor0
----
19
31
59

skipif mysql # not compatible
query I rowsort label-787
SELECT cor0.col1 + col2 / + col1 AS col1 FROM tab2 AS cor0
----
19
31
59

query I rowsort
SELECT DISTINCT - + col0 + - col0 FROM tab0 AS cor0
----
-178
-48
-70

query I rowsort
SELECT ALL + col1 * col0 + + col1 * + col0 AS col0 FROM tab0 AS cor0
----
16198
4128
6790

query I rowsort
SELECT + - cor0.col1 AS col2 FROM tab2 AS cor0
----
-17
-31
-59

query I rowsort
SELECT col0 * col1 - col0 AS col0 FROM tab0 AS cor0
----
2040
3360
8010

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-792
SELECT DISTINCT + - CAST( cor0.col1 AS SIGNED ) 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-792
SELECT DISTINCT + - CAST ( cor0.col1 AS INTEGER ) col0 FROM tab0 AS cor0
----
-86
-91
-97

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

skipif mysql # not compatible
query I rowsort label-793
SELECT ALL CAST ( NULL AS INTEGER ) / col0 FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-794
SELECT - CAST( NULL AS DECIMAL ) / col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-794
SELECT - CAST ( NULL AS REAL ) / col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col1 + col0 AS col0 FROM tab1 AS cor0
----
29
74
93

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

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

query I rowsort
SELECT DISTINCT + ( cor0.col2 ) * col1 + 9 FROM tab1 AS cor0
----
1257
1413
579

query I rowsort
SELECT ALL + 78 FROM tab1 AS cor0
----
78
78
78

query I rowsort
SELECT DISTINCT ( col0 ) * 25 AS col2 FROM tab1 AS cor0
----
1600
2000
75

query I rowsort
SELECT ALL col0 * + col2 + ( + 2 ) AS col1 FROM tab1 AS cor0
----
164
3650
7682

query I rowsort
SELECT DISTINCT - - col2 * + col0 FROM tab0 cor0
----
35
7298
792

query I rowsort
SELECT ALL col1 + - col0 * 13 AS col2 FROM tab1 AS cor0
----
-1027
-13
-822

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 88 + - col1 col0 FROM tab1 AS cor0
----
-101
-114
-98

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-805
SELECT DISTINCT - col2 * col2 DIV cor0.col1 FROM tab0 AS cor0
----
-12
-73
0

skipif mysql # not compatible
query I rowsort label-805
SELECT DISTINCT - col2 * col2 / cor0.col1 FROM tab0 AS cor0
----
-12
-73
0

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-807
SELECT + col1 DIV 72 AS col1 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-807
SELECT + col1 / 72 AS col1 FROM tab0
----
1
1
1

query I rowsort
SELECT - 70 + - tab0.col0 * + col1 AS col0 FROM tab0
----
-2134
-3465
-8169

query I rowsort
SELECT + 44 * - col0 AS col2 FROM tab1
----
-132
-2816
-3520

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * + col1 - + col0 * ( col1 + - cor0.col0 ) col0 FROM tab1 AS cor0
----
-1473
2886
4112

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

skipif mysql # not compatible
query I rowsort label-812
SELECT ALL col2 * col1 * CAST ( + 24 AS INTEGER ) + - col0 AS col0 FROM tab0 AS cor0
----
178999
2293
68088

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab1.col0 col1 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f

query I rowsort
SELECT DISTINCT - col0 + col1 * - col0 - col2 * col0 FROM tab2
----
-413
-4424
-6708

query I rowsort
SELECT col1 + tab2.col1 * + col0 FROM tab2
----
1360
248
4661

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

query I rowsort
SELECT - col0 * col1 + - col0 AS col0 FROM tab2 AS cor0
----
-1422
-224
-4680

query I rowsort
SELECT ALL + - cor0.col1 AS col0 FROM tab0 AS cor0
----
-86
-91
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * ( - 92 ) col0 FROM tab2 AS cor0
----
-1564
-2852
-5428

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-820
SELECT + cor0.col0 * - CAST( col1 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-2064
-3395
-8099

skipif mysql # not compatible
query I rowsort label-820
SELECT + cor0.col0 * - CAST ( col1 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT DISTINCT + + cor0.col0 * ( col0 ) - col1 AS col2 FROM tab0 AS cor0
----
1128
490
7830

query I rowsort
SELECT ALL col0 * cor0.col0 FROM tab2 AS cor0
----
49
6084
6241

onlyif mysql # use DIV operator for integer division
query I rowsort label-823
SELECT ALL + col1 * + 63 + + col0 DIV + col0 + ( - col1 ) FROM tab2 AS cor0
----
1055
1923
3659

skipif mysql # not compatible
query I rowsort label-823
SELECT ALL + col1 * + 63 + + col0 / + col0 + ( - col1 ) FROM tab2 AS cor0
----
1055
1923
3659

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-825
SELECT DISTINCT + col0 * + CAST ( NULL AS INTEGER ) col2 FROM tab0 AS cor0
----
NULL

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

query I rowsort
SELECT + cor2.col1 FROM tab1 cor0 CROSS JOIN tab0, tab0 AS cor1, tab2 AS cor2
----
81 values hashing to a5b6acb471910ea4ad7f31cae3b818f7

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

query I rowsort
SELECT ALL + ( - 62 ) AS col1 FROM tab2 AS cor0
----
-62
-62
-62

onlyif mysql # use DIV operator for integer division
query I rowsort label-830
SELECT ALL - ( + col2 ) DIV + col2 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-830
SELECT ALL - ( + col2 ) / + col2 FROM tab0 AS cor0
----
-1
-1
-1

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

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

query I rowsort
SELECT ALL - + col2 * col1 + ( col2 ) AS col0 FROM tab0 AS cor0
----
-2805
-7380
-96

query I rowsort
SELECT DISTINCT 80 * col0 - col0 FROM tab1 AS cor0
----
237
5056
6320

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

query I rowsort
SELECT ALL - - col1 + + col2 AS col0 FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT 44 + + col1 FROM tab2 cor0
----
103
61
75

query I rowsort
SELECT ALL - ( col2 ) * ( + col2 + - cor0.col1 ) AS col2 FROM tab0 AS cor0
----
1749
738
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + col1 * ( - col2 ) col1 FROM tab2 AS cor0
----
-1475
-629
-806

query I rowsort
SELECT ALL - + 47 * col1 - - ( - col2 ) AS col1 FROM tab2 AS cor0
----
-1484
-2799
-837

query I rowsort
SELECT DISTINCT - - 87 + col0 AS col2 FROM tab0 cor0
----
111
122
176

query I rowsort
SELECT ALL - col1 * col1 + + col0 AS col1 FROM tab0 AS cor0
----
-7372
-8192
-9374

query I rowsort
SELECT ALL + 59 * col1 FROM tab1 AS cor0
----
1534
590
767

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

query I rowsort
SELECT + col1 + col0 * col1 AS col0 FROM tab1 AS cor0
----
104
1053
650

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

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

query I rowsort
SELECT ALL col0 * + col2 + col1 * col1 FROM tab1
----
3748
7849
838

query I rowsort
SELECT col2 * col2 + + 83 FROM tab2
----
1527
759
812

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-849
SELECT CAST( NULL AS DECIMAL ) + 90 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-849
SELECT CAST ( NULL AS REAL ) + 90 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT ALL + 21 AS col1 FROM tab1
----
21
21
21

query I rowsort
SELECT ALL - - col1 * + cor0.col1 FROM tab1 AS cor0
----
100
169
676

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

skipif mysql # not compatible
query I rowsort label-852
SELECT - tab0.col1 * col2 + - CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL
NULL
NULL

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

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

query I rowsort
SELECT - 91 + - 17 * - col0 FROM tab2 AS cor0
----
1235
1252
28

query I rowsort
SELECT DISTINCT + 28 + 47 FROM tab1 AS cor0
----
75

query I rowsort
SELECT DISTINCT + - 89 + col1 * + col1 FROM tab1 AS cor0
----
11
587
80

query I rowsort
SELECT - cor0.col1 * 19 AS col1 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 2faddc3949c9a832722a1a5dd63a82ee

query I rowsort
SELECT DISTINCT - + cor0.col0 * ( col2 ) AS col0 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT DISTINCT + - 26 FROM tab1 AS cor0
----
-26

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

query I rowsort
SELECT ALL col2 * 49 + col0 AS col2 FROM tab2
----
1330
1352
1941

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

query I rowsort
SELECT ALL + 15 * - 2 + - col2 FROM tab1
----
-126
-84
-87

query I rowsort
SELECT ALL + 91 * tab2.col0 FROM tab2
----
637
7098
7189

query I rowsort
SELECT ALL + 14 * 69 * col0 + col0 AS col0 FROM tab2
----
6769
75426
76393

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + ( col0 ) col2 FROM tab2
----
137
38
96

query I rowsort
SELECT ALL cor0.col2 AS col0 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475

query I rowsort
SELECT ALL - + 79 * + ( - col2 ) FROM tab1 cor0
----
4266
4503
7584

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-869
SELECT - cor0.col2 * - CAST( - 82 AS SIGNED ) + + cor0.col2 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 640d96604aac8a415b8d187370909909

skipif mysql # not compatible
query I rowsort label-869
SELECT - cor0.col2 * - CAST ( - 82 AS INTEGER ) + + cor0.col2 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 640d96604aac8a415b8d187370909909

query I rowsort
SELECT 24 + col0 FROM tab1 AS cor0
----
104
27
88

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

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

query I rowsort
SELECT - col0 * + col0 AS col1 FROM tab2 AS cor0
----
-49
-6084
-6241

onlyif mysql # use DIV operator for integer division
query I rowsort label-873
SELECT DISTINCT 93 DIV 23 AS col2 FROM tab2
----
4

skipif mysql # not compatible
query I rowsort label-873
SELECT DISTINCT 93 / 23 AS col2 FROM tab2
----
4

query I rowsort
SELECT 33 + - 71 + col0 FROM tab1
----
-35
26
42

query I rowsort
SELECT ALL + tab2.col0 AS col1 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83

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

skipif mysql # not compatible
query I rowsort label-876
SELECT tab1.col1 / - 30 AS col1 FROM tab1
----
0
0
0

query I rowsort
SELECT cor0.col1 FROM tab0, tab0 cor0
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc

query I rowsort
SELECT ALL + cor0.col2 AS col2 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3

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

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

query I rowsort
SELECT DISTINCT - 73 + col0 * col2 FROM tab2 AS cor0
----
116
1955
2929

query I rowsort
SELECT ALL + 92 + col0 * col1 FROM tab0 cor0
----
2156
3487
8191

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + cor0.col2 col0 FROM tab2 AS cor0
----
26
27
38

query I rowsort
SELECT - cor1.col1 + 40 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 437ab7933dd0494043cbc389a4fad5a6

query I rowsort
SELECT + 1 + + col0 * - col1 FROM tab1 cor0
----
-1039
-639
-77

query I rowsort
SELECT 15 + - col1 * - 4 * col2 FROM tab2 AS cor0
----
2599
3363
6151

query I rowsort
SELECT - - 43 * col2 FROM tab0 AS cor0
----
1419
3526
43

query I rowsort
SELECT 92 + - col2 * - 66 FROM tab1 cor0
----
3656
3854
6428

query I rowsort
SELECT DISTINCT + ( - col2 ) FROM tab2
----
-26
-27
-38

query I rowsort
SELECT + ( + col2 + - ( 27 ) ) FROM tab2
----
-1
0
11

query I rowsort
SELECT + + col0 + col0 AS col0 FROM tab0 AS cor0
----
178
48
70

query I rowsort
SELECT + ( - 32 ) FROM tab1, tab1 AS cor0
----
9 values hashing to ef8f93119983b962f4c81381ebf4b1e6

query I rowsort
SELECT - 84 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 975e2ef2a3bf1ee2622362f4e435752f

query I rowsort
SELECT ( tab1.col0 ) FROM tab1, tab0 AS cor0
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870

query I rowsort
SELECT col1 * + col1 + - 66 FROM tab1 cor0
----
103
34
610

query I rowsort
SELECT - cor1.col2 AS col0 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to f9d4bb8677db7b98c7ed89d06e6e8cd6

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

skipif mysql # not compatible
query I rowsort label-896
SELECT ALL - col0 + col0 / + ( + col1 ) FROM tab2 AS cor0
----
-7
-75
-77

query I rowsort
SELECT + + col2 * 84 AS col2 FROM tab0 AS cor0
----
2772
6888
84

query I rowsort
SELECT + col1 * col1 + col2 FROM tab0 AS cor0
----
7429
8363
9410

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

query I rowsort
SELECT 15 * 41 + + col0 AS col0 FROM tab2 AS cor0
----
622
693
694

query I rowsort
SELECT - col0 + 96 FROM tab1 AS cor0
----
16
32
93

query I rowsort
SELECT 49 + 14 - + col2 FROM tab1 AS cor0
----
-33
6
9

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

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

skipif mysql # not compatible
query I rowsort
SELECT - CAST ( + col2 AS REAL ) FROM tab0 AS cor0
----
-1
-33
-82

onlyif mysql # use DIV operator for integer division
query I rowsort label-906
SELECT col0 * - col2 + + 86 DIV + col0 FROM tab2
----
-177
-2027
-3001

skipif mysql # not compatible
query I rowsort label-906
SELECT col0 * - col2 + + 86 / + col0 FROM tab2
----
-177
-2027
-3001

query I rowsort
SELECT ALL col2 + + 71 FROM tab2 AS cor0
----
109
97
98

query I rowsort
SELECT ALL + col0 * + 18 * - col2 AS col2 FROM tab2 cor0
----
-3402
-36504
-54036

query I rowsort
SELECT - + col0 + 34 * + ( col1 ) AS col0 FROM tab2 AS cor0
----
1047
1928
499

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 92 col0 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to c64cb7a81da51f4be0b6906a223e8817

query I rowsort
SELECT - cor0.col2 * 7 + - col1 FROM tab2 AS cor0
----
-220
-241
-283

query I rowsort
SELECT + tab2.col0 * - tab2.col0 * - 54 FROM tab2
----
2646
328536
337014

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

query I rowsort
SELECT ( tab0.col2 ) AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8

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

query I rowsort
SELECT DISTINCT - col0 - + col0 AS col2 FROM tab0
----
-178
-48
-70

query I rowsort
SELECT DISTINCT col0 + ( ( - col2 ) ) AS col2 FROM tab0
----
-9
34
7

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * + 77 * + col0 + tab1.col1 col0 FROM tab1
----
49290
6032
80093

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-920
SELECT ALL + col1 + - CAST( - col1 AS SIGNED ) AS col2 FROM tab2
----
118
34
62

skipif mysql # not compatible
query I rowsort label-920
SELECT ALL + col1 + - CAST ( - col1 AS INTEGER ) AS col2 FROM tab2
----
118
34
62

query I rowsort
SELECT DISTINCT col1 + ( + tab2.col1 * col0 ) FROM tab2
----
1360
248
4661

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab0, tab2 AS cor0, tab1 AS cor1
----
972 values hashing to 75a813ebd5ec5ec2e67a66d0593ff763

onlyif mysql # use DIV operator for integer division
query I rowsort label-923
SELECT ALL + col1 DIV - 68 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-923
SELECT ALL + col1 / - 68 FROM tab2
----
0
0
0

query I rowsort
SELECT ALL 66 * - col2 FROM tab0
----
-2178
-5412
-66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 46 * - ( col0 ) col2 FROM tab0
----
-1104
-1610
-4094

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

skipif mysql # not compatible
query I rowsort label-926
SELECT - 63 / - col2 FROM tab1 AS cor0
----
0
1
1

query I rowsort
SELECT + 3 + cor0.col2 FROM tab1 cor0
----
57
60
99

query I rowsort
SELECT + ( col2 ) * - 52 FROM tab1
----
-2808
-2964
-4992

query I rowsort
SELECT DISTINCT - tab0.col1 * tab0.col1 AS col0 FROM tab0
----
-7396
-8281
-9409

query I rowsort
SELECT 42 * + col2 FROM tab2 AS cor0
----
1092
1134
1596

query I rowsort
SELECT + + col1 + - col2 * 43 AS col0 FROM tab2 AS cor0
----
-1059
-1130
-1617

query I rowsort
SELECT + - 47 * + col1 FROM tab1 AS cor0
----
-1222
-470
-611

query I rowsort
SELECT + cor0.col0 * + cor0.col1 AS col2 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to aff311fa1b3948e179779cc03c1fade4

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

query I rowsort
SELECT ALL ( + col1 ) AS col0 FROM tab2
----
17
31
59

query I rowsort
SELECT + tab1.col2 AS col1 FROM tab1, tab2, tab0 cor0
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79

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

query I rowsort
SELECT DISTINCT - + 80 * + col2 + col0 FROM tab0 cor0
----
-2616
-45
-6471

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

query I rowsort
SELECT ALL + + col0 * + col1 + - col2 FROM tab1 AS cor0
----
24
583
944

query I rowsort
SELECT DISTINCT cor1.col0 AS col0 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
24
35
89

onlyif mysql # use DIV operator for integer division
query I rowsort label-942
SELECT + col0 DIV - 90 + - cor0.col2 FROM tab1 cor0
----
-54
-57
-96

skipif mysql # not compatible
query I rowsort label-942
SELECT + col0 / - 90 + - cor0.col2 FROM tab1 cor0
----
-54
-57
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + - col1 col2 FROM tab0 AS cor0
----
-53
-9
-96

query I rowsort
SELECT col2 + col0 * col0 - - col0 * - ( - 59 ) FROM tab0 AS cor0
----
13254
2025
3291

query I rowsort
SELECT DISTINCT + col0 * cor0.col0 AS col1 FROM tab1 AS cor0
----
4096
6400
9

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

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

query I rowsort
SELECT DISTINCT col2 * + col0 + col0 * col0 * tab0.col1 + 67 FROM tab0
----
118927
50395
728176

query I rowsort
SELECT DISTINCT col0 * 29 FROM tab0 cor0
----
1015
2581
696

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

query I rowsort
SELECT ALL + col2 + col0 * + col0 FROM tab1 AS cor0
----
4153
63
6496

query I rowsort
SELECT + col1 * - cor0.col1 FROM tab0 AS cor0
----
-7396
-8281
-9409

query I rowsort
SELECT ALL + col0 * col1 * + col0 AS col0 FROM tab1
----
234
40960
83200

query I rowsort
SELECT cor0.col2 + - cor0.col1 FROM tab1, tab1 AS cor0
----
9 values hashing to ae0eeb942db3f01544a81804e95e971a

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-956
SELECT DISTINCT - col0 DIV col2 + - 11 AS col1 FROM tab1 AS cor0
----
-11
-12

skipif mysql # not compatible
query I rowsort label-956
SELECT DISTINCT - col0 / col2 + - 11 AS col1 FROM tab1 AS cor0
----
-11
-12

query I rowsort
SELECT DISTINCT col0 + col0 * + cor0.col0 AS col2 FROM tab0 AS cor0
----
1260
600
8010

query I rowsort
SELECT DISTINCT - - col0 + - col1 AS col1 FROM tab1 cor0
----
-23
54
67

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

query I rowsort
SELECT col2 * col0 + col0 FROM tab2 AS cor0
----
196
2106
3081

query I rowsort
SELECT + 77 + - 65 AS col1 FROM tab0 AS cor0
----
12
12
12

query I rowsort
SELECT + ( + col1 ) + col1 * 51 AS col0 FROM tab2 AS cor0
----
1612
3068
884

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

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

query I rowsort
SELECT + - 79 FROM tab2 cor0
----
-79
-79
-79

query I rowsort
SELECT DISTINCT + col1 + 75 AS col0 FROM tab0 AS cor0
----
161
166
172

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

query I rowsort
SELECT DISTINCT - + ( 95 ) + col2 FROM tab0 AS cor0
----
-13
-62
-94

query I rowsort
SELECT ALL + - col1 + - 66 * + col1 FROM tab1 cor0
----
-1742
-670
-871

query I rowsort
SELECT ALL - + col2 AS col0 FROM tab0 cor0
----
-1
-33
-82

onlyif mysql # use DIV operator for integer division
query I rowsort label-970
SELECT - CAST( col2 AS SIGNED ) + col1 DIV ( col0 * + col1 ) col1 FROM tab2 AS cor0
----
-26
-27
-38

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-970
SELECT - CAST ( col2 AS INTEGER ) + col1 / ( col0 * + col1 ) col1 FROM tab2 AS cor0
----
-26
-27
-38

query I rowsort
SELECT DISTINCT + col0 + cor0.col0 * col2 + - 48 AS col2 FROM tab0 AS cor0
----
22
7339
768

query I rowsort
SELECT col1 * col0 + col1 AS col1 FROM tab0 AS cor0
----
2150
3492
8190

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

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

skipif mysql # not compatible
query I rowsort label-974
SELECT - CAST ( NULL AS INTEGER ) / + 87 + - col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col0 + + col0 * cor0.col1 AS col0 FROM tab1 AS cor0
----
1120
704
81

query I rowsort
SELECT DISTINCT + col1 + + col2 AS col0 FROM tab0 cor0
----
119
173
98

query I rowsort
SELECT DISTINCT - cor0.col2 * cor0.col0 + ( + col2 ) FROM tab1 AS cor0
----
-108
-3591
-7584

query I rowsort
SELECT 49 AS col1 FROM tab1 AS cor0
----
49
49
49

query I rowsort
SELECT ALL - cor0.col1 + cor0.col2 * + col0 AS col2 FROM tab0 AS cor0
----
-62
706
7207

query I rowsort
SELECT DISTINCT col0 + col1 * + col0 FROM tab0
----
2088
3430
8188

query I rowsort
SELECT 45 + col0 FROM tab0
----
134
69
80

query I rowsort
SELECT - tab2.col2 + col0 AS col1 FROM tab2
----
-20
41
52

query I rowsort
SELECT DISTINCT + 56 * + cor0.col0 FROM tab0, tab1 AS cor0
----
168
3584
4480

query IIIIII rowsort
SELECT * FROM tab0, tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN ( NULL ) AND NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NULL <= NULL AND NOT ( col0 ) > ( col2 + + col1 )
----

query I rowsort
SELECT + col1 * + col0 + col1 * + col0 FROM tab2
----
2686
434
9204

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

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

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

query I rowsort
SELECT + col1 * + col2 - + cor0.col1 * - col2 FROM tab0 AS cor0
----
14924
194
5676

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

query I rowsort
SELECT - - col0 * + cor0.col0 FROM tab1 AS cor0
----
4096
6400
9

query I rowsort
SELECT DISTINCT + + col0 + cor0.col0 AS col1 FROM tab2 AS cor0
----
14
156
158

query I rowsort
SELECT DISTINCT - col0 * col2 + + cor0.col0 AS col0 FROM tab1 cor0
----
-159
-3584
-7600

query I rowsort
SELECT ALL + + col2 * - col0 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT ALL - col0 + - col1 * + cor0.col2 AS col2 FROM tab1 AS cor0
----
-1328
-1407
-634

query I rowsort
SELECT ALL + col0 + col2 * col2 AS col2 FROM tab2 AS cor0
----
1523
736
754

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

query I rowsort
SELECT ALL - - col0 + - col0 * + col0 FROM tab2 cor0
----
-42
-6006
-6162

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * col0 col1 FROM tab0 AS cor0
----
2064
3395
8099

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

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

query I rowsort
SELECT - col0 + col1 + + col2 FROM tab2
----
-24
51
7

query I rowsort
SELECT ALL col1 + col1 + col2 AS col2 FROM tab1
----
106
122
77

query I rowsort
SELECT - + col0 + - col2 + col2 FROM tab2 AS cor0
----
-7
-78
-79

query I rowsort
SELECT + col0 + col2 * col2 AS col1 FROM tab2 AS cor0
----
1523
736
754

query I rowsort
SELECT ALL - + 55 + - col0 * col0 AS col2 FROM tab1 AS cor0
----
-4151
-64
-6455

query I rowsort
SELECT ALL col0 * - col0 + cor0.col2 AS col1 FROM tab2 cor0
----
-22
-6058
-6203

query I rowsort
SELECT DISTINCT - + 82 * col1 AS col2 FROM tab0 AS cor0
----
-7052
-7462
-7954

query I rowsort
SELECT ALL + 76 * + col2 + col0 FROM tab2 AS cor0
----
2054
2059
2967

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col2 * + col1 col1 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT ALL - col1 + + col1 + + cor0.col0 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT ( + col1 ) AS col2 FROM tab2 AS cor0
----
17
31
59

query I rowsort
SELECT ALL + + cor0.col0 * col0 AS col2 FROM tab1 AS cor0
----
4096
6400
9

onlyif mysql # use DIV operator for integer division
query I rowsort label-1014
SELECT DISTINCT col2 DIV cor0.col0 + col2 AS col1 FROM tab0 AS cor0
----
1
34
82

skipif mysql # not compatible
query I rowsort label-1014
SELECT DISTINCT col2 / cor0.col0 + col2 AS col1 FROM tab0 AS cor0
----
1
34
82

query I rowsort
SELECT ALL 58 AS col2 FROM tab0
----
58
58
58

query I rowsort
SELECT DISTINCT + + 82 * col1 - + col0 * - col0 FROM tab0 AS cor0
----
15383
7628
9179

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

query I rowsort
SELECT 16 * + col0 * col0 FROM tab2 AS cor0
----
784
97344
99856

query I rowsort
SELECT ALL + + 28 FROM tab0 AS cor0
----
28
28
28

query I rowsort
SELECT cor0.col0 * col1 FROM tab0 cor0 WHERE ( NULL = col1 ) AND NULL IN ( col2 * cor0.col2 - col0 ) OR NOT NULL < - col1 + col0
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-1021
SELECT DISTINCT col2 + cor0.col1 DIV col2 AS col0 FROM tab1 AS cor0
----
54
57
96

skipif mysql # not compatible
query I rowsort label-1021
SELECT DISTINCT col2 + cor0.col1 / col2 AS col0 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT + col2 + + cor0.col0 FROM tab1 AS cor0
----
121
176
57

onlyif mysql # use DIV operator for integer division
query I rowsort label-1023
SELECT ALL 47 + + col1 DIV tab1.col1 AS col1 FROM tab1
----
48
48
48

skipif mysql # not compatible
query I rowsort label-1023
SELECT ALL 47 + + col1 / tab1.col1 AS col1 FROM tab1
----
48
48
48

query I rowsort
SELECT - col0 + col0 + + col2 FROM tab2
----
26
27
38

onlyif mysql # use DIV operator for integer division
query I rowsort label-1025
SELECT ALL col2 DIV - col1 + col1 FROM tab0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-1025
SELECT ALL col2 / - col1 + col1 FROM tab0
----
86
91
97

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

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

skipif mysql # not compatible
query I rowsort label-1027
SELECT ALL col0 / col2 FROM tab1
----
0
0
1

query I rowsort
SELECT - col0 + tab1.col2 * - col1 + col1 FROM tab1
----
-1315
-1381
-624

query I rowsort
SELECT DISTINCT col1 AS col2 FROM tab1 WHERE NOT ( + col2 ) > ( - col1 )
----

query III rowsort
SELECT * FROM tab0 WHERE NULL <= col0 * - col1 - col2
----

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

query I rowsort
SELECT DISTINCT col1 AS col2 FROM tab0 WHERE NOT NULL BETWEEN col0 * col2 + + col2 * col1 * + col1 AND col0
----

query I rowsort
SELECT ALL - col2 * col2 + + col0 AS col2 FROM tab1
----
-2913
-3185
-9136

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - tab2.col2 * col2 col0 FROM tab2 WHERE ( - tab2.col2 ) > ( tab2.col2 )
----

query I rowsort
SELECT ALL - col1 - + col2 * col2 AS col2 FROM tab0
----
-1175
-6815
-98

onlyif mysql # use DIV operator for integer division
query I rowsort label-1036
SELECT col0 DIV - col1 + + tab1.col0 AS col0 FROM tab1
----
3
58
74

skipif mysql # not compatible
query I rowsort label-1036
SELECT col0 / - col1 + + tab1.col0 AS col0 FROM tab1
----
3
58
74

onlyif mysql # use DIV operator for integer division
query I rowsort label-1037
SELECT ALL col2 + col1 DIV + col1 AS col1 FROM tab0 AS cor0
----
2
34
83

skipif mysql # not compatible
query I rowsort label-1037
SELECT ALL col2 + col1 / + col1 AS col1 FROM tab0 AS cor0
----
2
34
83

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

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

query I rowsort
SELECT - col1 AS col1 FROM tab0 WHERE ( col1 ) BETWEEN col1 * col1 AND - col0
----

query I rowsort
SELECT DISTINCT + col1 * - col1 - col0 * tab0.col2 AS col1 FROM tab0
----
-15579
-8188
-9444

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1042
SELECT col1 DIV col1 + col0 FROM tab2
----
79
8
80

skipif mysql # not compatible
query I rowsort label-1042
SELECT col1 / col1 + col0 FROM tab2
----
79
8
80

query I rowsort
SELECT - col1 * col0 * col0 + col0 + + col1 FROM tab2
----
-106001
-1481
-358819

onlyif mysql # use DIV operator for integer division
query I rowsort label-1044
SELECT DISTINCT col0 DIV col0 col2 FROM tab1
----
1

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

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1047
SELECT DISTINCT tab1.col2 / - tab1.col1 col1 FROM tab1
----
-2
-5
-7

query I rowsort
SELECT + col2 * + col2 + col2 FROM tab0
----
1122
2
6806

query I rowsort
SELECT - col2 - col2 / - col2 AS col2 FROM tab1 WHERE NOT NULL < - col2
----

query I rowsort
SELECT - tab0.col2 + col1 * col2 FROM tab0
----
2805
7380
96

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

query I rowsort
SELECT col2 * + col2 FROM tab0 cor0
----
1
1089
6724

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( col1 * tab2.col0 ) < NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col1 * - col2 col2 FROM tab2 AS cor0
----
-1534
-646
-837

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1057
SELECT DISTINCT - tab0.col0 DIV - col1 FROM tab0 WHERE NOT col1 IN ( - col2 )
----
0

skipif mysql # not compatible
query I rowsort label-1057
SELECT DISTINCT - tab0.col0 / - col1 FROM tab0 WHERE NOT col1 IN ( - col2 )
----
0

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

query I rowsort
SELECT DISTINCT - col0 + - col0 AS col1 FROM tab0
----
-178
-48
-70

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

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

query I rowsort
SELECT cor0.col1 - cor0.col2 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 0bd022e691ee49f12c598975818ed537

query I rowsort
SELECT + 13 FROM tab1
----
13
13
13

query I rowsort
SELECT ALL col2 * col2 * + col1 AS col0 FROM tab0
----
611884
93654
97

query I rowsort
SELECT ALL + col1 * - cor0.col1 FROM tab1 AS cor0
----
-100
-169
-676

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 39 col0 FROM tab0 AS cor0
----
-39
-39
-39

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1067
SELECT + cor0.col1 DIV + 4 FROM tab2 AS cor0
----
14
4
7

skipif mysql # not compatible
query I rowsort label-1067
SELECT + cor0.col1 / + 4 FROM tab2 AS cor0
----
14
4
7

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + cor0.col0 * + ( col0 ) * col2 col1 FROM tab2 AS cor0
----
1316
158106
237079

query I rowsort
SELECT DISTINCT + ( col1 ) * col1 AS col1 FROM tab2 AS cor0
----
289
3481
961

query I rowsort
SELECT ALL + - 25 AS col1 FROM tab2 AS cor0
----
-25
-25
-25

query I rowsort
SELECT cor0.col1 + ( + col1 ) AS col1 FROM tab0 cor0
----
172
182
194

query I rowsort
SELECT ALL + 97 FROM tab1
----
97
97
97

query I rowsort
SELECT - col0 * + 96 * 38 + col1 FROM tab1 AS cor0
----
-10918
-233462
-291827

query I rowsort
SELECT DISTINCT + col2 + + 20 AS col1 FROM tab0 AS cor0
----
102
21
53

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

query I rowsort
SELECT DISTINCT 3 AS col2 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
3

query I rowsort
SELECT 69 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 85d9b90a03b9def161891b13085271f7

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * - col1 col0 FROM tab0 AS cor0
----
7396
8281
9409

onlyif mysql # use DIV operator for integer division
query I rowsort label-1082
SELECT DISTINCT + col1 + + col1 DIV col1 AS col0 FROM tab2 AS cor0
----
18
32
60

skipif mysql # not compatible
query I rowsort label-1082
SELECT DISTINCT + col1 + + col1 / col1 AS col0 FROM tab2 AS cor0
----
18
32
60

query I rowsort
SELECT ALL - + 78 + cor0.col2 * col2 AS col0 FROM tab1 AS cor0
----
2838
3171
9138

query I rowsort
SELECT + - col0 * ( col1 ) + 42 FROM tab2 AS cor0
----
-1301
-175
-4560

query I rowsort
SELECT ALL - - 39 + - col1 * col2 AS col2 FROM tab1 AS cor0
----
-1209
-1365
-531

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 89 col2 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to c36e597b7bc5727536f5bb580e6cebbc

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1090
SELECT col0 DIV 14 - + col1 * - col0 FROM tab2
----
1348
217
4607

skipif mysql # not compatible
query I rowsort label-1090
SELECT col0 / 14 - + col1 * - col0 FROM tab2
----
1348
217
4607

query I rowsort
SELECT ALL cor0.col1 * 16 - + col1 AS col1 FROM tab0 AS cor0
----
1290
1365
1455

query I rowsort
SELECT ALL + col0 - - cor0.col0 AS col1 FROM tab2 AS cor0
----
14
156
158

query I rowsort
SELECT ALL + - 52 + + col2 + + col1 * col1 FROM tab0 AS cor0
----
7377
8311
9358

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

query I rowsort
SELECT 20 + cor0.col0 * - col0 AS col0 FROM tab0 AS cor0
----
-1205
-556
-7901

query I rowsort
SELECT DISTINCT col0 * col1 * col2 + + col1 + + col1 AS col2 FROM tab2 cor0
----
119770
51068
5921

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

query I rowsort
SELECT DISTINCT - 81 FROM tab2, tab1 AS cor0
----
-81

query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab1, tab2 cor1
----
243 values hashing to d489341cd587fd6eb0b972c5464c6ddc

query I rowsort
SELECT + tab0.col2 + + col2 * col0 FROM tab0
----
36
7380
825

query I rowsort
SELECT ALL - tab1.col2 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 0dc9bbe392d52df93d2a115d7f622dba

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 50 * tab2.col2 col2 FROM tab2
----
-1300
-1350
-1900

skipif mysql # not compatible
query I rowsort
SELECT ALL - CAST ( tab0.col0 AS REAL ) FROM tab0
----
-24
-35
-89

query I rowsort
SELECT ALL + - col0 + + col0 * + col0 + col2 FROM tab0 cor0
----
1191
585
7914

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

query I rowsort
SELECT ALL - - ( + ( col1 ) ) * col2 + - col2 * col0 * - cor0.col2 AS col0 FROM tab0 AS cor0
----
132
28974
605898

query I rowsort
SELECT DISTINCT + col2 - 77 AS col2 FROM tab0 AS cor0
----
-44
-76
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 19 * col1 + + cor0.col2 col2 FROM tab1 AS cor0
----
-133
-151
-440

onlyif mysql # use DIV operator for integer division
query I rowsort label-1109
SELECT DISTINCT - col1 * col1 - - col1 * col2 DIV + tab0.col0 FROM tab0
----
-7278
-8198
-9407

skipif mysql # not compatible
query I rowsort label-1109
SELECT DISTINCT - col1 * col1 - - col1 * col2 / + tab0.col0 FROM tab0
----
-7278
-8198
-9407

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + tab2.col1 + - col1 + tab2.col1 col0 FROM tab2
----
1534
646
837

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab2, tab0 AS cor0, tab0 AS cor1
----
972 values hashing to d522b52b67b20888d3544d25cb98f232

query I rowsort
SELECT 22 * col1 - ( - 56 ) AS col2 FROM tab0 cor0
----
1948
2058
2190

query I rowsort
SELECT DISTINCT tab1.col2 * - col0 + + 85 * + col0 + col1 AS col1 FROM tab1
----
-867
119
1802

query I rowsort
SELECT DISTINCT - col0 * - tab2.col0 + col2 + tab2.col2 FROM tab2
----
103
6136
6317

query I rowsort
SELECT ALL + col0 * + 68 AS col2 FROM tab2 AS cor0
----
476
5304
5372

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

query I rowsort
SELECT DISTINCT - col0 * - 9 FROM tab0 AS cor0
----
216
315
801

query I rowsort
SELECT + col2 + col1 * + ( cor0.col1 + - col1 * col1 ) FROM tab2 AS cor0
----
-201872
-28803
-4586

query I rowsort
SELECT + col2 + + col1 * - col1 FROM tab0 AS cor0
----
-7363
-8199
-9408

query I rowsort
SELECT DISTINCT + col1 * - col2 - - col0 AS col0 FROM tab2 AS cor0
----
-1456
-567
-830

query I rowsort
SELECT + + col1 + col2 AS col1 FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT + col1 * 71 FROM tab2 AS cor0
----
1207
2201
4189

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * + col1 col2 FROM tab2 AS cor0
----
1534
646
837

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

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

query I rowsort
SELECT DISTINCT col1 + ( + col1 ) * - col2 FROM tab1 AS cor0
----
-1235
-1378
-560

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1130
SELECT ALL + + cor0.col2 * ( + cor0.col2 ) - - col0 * cor0.col2 DIV + col2 FROM tab0 AS cor0
----
1113
36
6813

skipif mysql # not compatible
query I rowsort label-1130
SELECT ALL + + cor0.col2 * ( + cor0.col2 ) - - col0 * cor0.col2 / + col2 FROM tab0 AS cor0
----
1113
36
6813

query I rowsort
SELECT DISTINCT tab0.col0 * col2 + - ( - tab0.col0 ) FROM tab0
----
70
7387
816

query I rowsort
SELECT ( + tab2.col0 ) + + col1 * 22 + - col0 AS col2 FROM tab2
----
1298
374
682

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1134
SELECT DISTINCT - + col1 + col1 DIV col1 FROM tab1 AS cor0
----
-12
-25
-9

skipif mysql # not compatible
query I rowsort label-1134
SELECT DISTINCT - + col1 + col1 / col1 FROM tab1 AS cor0
----
-12
-25
-9

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

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1136
SELECT ALL + tab0.col0 * CAST( NULL AS DECIMAL ) FROM tab0, tab2 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-1136
SELECT ALL + tab0.col0 * CAST ( NULL AS REAL ) FROM tab0, tab2 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT 11 AS col0 FROM tab0
----
11
11
11

query I rowsort
SELECT + col1 + - col0 - + col1 * col1 * col1 FROM tab2 AS cor0
----
-205398
-29767
-4975

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

query I rowsort
SELECT DISTINCT - col2 * col0 AS col1 FROM tab2 cor0
----
-189
-2028
-3002

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col1 + - ( + 78 ) * + col1 col1 FROM tab1 AS cor0
----
-1001
-2002
-770

query I rowsort
SELECT ALL - - col0 * col2 + 16 FROM tab2 AS cor0
----
2044
205
3018

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

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

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

skipif mysql # not compatible
query I rowsort label-1144
SELECT col0 / - 76 AS col2 FROM tab0
----
-1
0
0

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

query I rowsort
SELECT - col1 - + col2 * - col1 AS col0 FROM tab1 AS cor0
----
1235
1378
560

query I rowsort
SELECT + col1 + + 90 * 35 FROM tab2 AS cor0
----
3167
3181
3209

query I rowsort
SELECT col1 * - col0 + - col0 + - col1 AS col2 FROM tab2 AS cor0
----
-1439
-255
-4739

query I rowsort
SELECT col2 + cor0.col0 AS col2 FROM tab1 cor0
----
121
176
57

query I rowsort
SELECT - col2 + - col1 AS col1 FROM tab2 AS cor0
----
-55
-58
-85

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1151
SELECT DISTINCT + col0 + 69 * ( + col2 + CAST( col1 AS SIGNED ) ) FROM tab2 AS cor0
----
3874
4009
5943

skipif mysql # not compatible
query I rowsort label-1151
SELECT DISTINCT + col0 + 69 * ( + col2 + CAST ( col1 AS INTEGER ) ) FROM tab2 AS cor0
----
3874
4009
5943

query I rowsort
SELECT + + col0 - 82 AS col2 FROM tab1 AS cor0
----
-18
-2
-79

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

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

query I rowsort
SELECT - col0 + 35 FROM tab1 AS cor0
----
-29
-45
32

query IIIIIIIIIIII rowsort
SELECT * FROM tab0, tab1 AS cor0 CROSS JOIN tab1, tab1 cor1
----
972 values hashing to 635619591835474e6aa6acdff4ab166c

query I rowsort
SELECT ALL + 49 * - cor0.col2 FROM tab0 AS cor0
----
-1617
-4018
-49

query I rowsort
SELECT + 12 FROM tab0 AS cor0
----
12
12
12

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1159
SELECT - + col2 * - cor0.col0 DIV col0 AS col1 FROM tab1 AS cor0
----
54
57
96

skipif mysql # not compatible
query I rowsort label-1159
SELECT - + col2 * - cor0.col0 / col0 AS col1 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT DISTINCT - col1 * 91 AS col1 FROM tab2 AS cor0
----
-1547
-2821
-5369

query I rowsort
SELECT ALL - + 8 * - cor0.col0 + cor0.col0 FROM tab1 AS cor0
----
27
576
720

query I rowsort
SELECT DISTINCT - + 97 + - ( col0 ) * - cor0.col2 FROM tab1 AS cor0
----
3551
65
7583

query I rowsort
SELECT DISTINCT - + 32 * - 36 FROM tab1 AS cor0
----
1152

query I rowsort
SELECT + + 84 + - 48 * + cor0.col2 AS col1 FROM tab2 AS cor0
----
-1164
-1212
-1740

query I rowsort
SELECT ALL col2 + - 6 FROM tab2 AS cor0
----
20
21
32

query I rowsort
SELECT DISTINCT + col2 + col0 * cor0.col1 AS col0 FROM tab2 AS cor0
----
1381
244
4628

query I rowsort
SELECT ALL - 81 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to d0bfe8494f52235d9fcafb5ac5de3f81

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

query I rowsort
SELECT + 24 FROM tab1 AS cor0
----
24
24
24

query I rowsort
SELECT DISTINCT cor0.col1 + + col2 + 25 * cor0.col1 AS col0 FROM tab1 AS cor0
----
317
434
730

query I rowsort
SELECT 26 AS col2 FROM tab1 cor0
----
26
26
26

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

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

query I rowsort
SELECT + 3 * - col2 FROM tab1 cor0
----
-162
-171
-288

query I rowsort
SELECT - col2 * - ( 75 ) FROM tab0 AS cor0
----
2475
6150
75

query I rowsort
SELECT - 73 + ( col2 ) FROM tab0 cor0
----
-40
-72
9

query I rowsort
SELECT ALL col1 * col0 + 28 FROM tab2
----
1371
245
4630

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

query I rowsort
SELECT DISTINCT + 90 FROM tab2
----
90

query I rowsort
SELECT + 67 - + 21 AS col0 FROM tab2, tab0, tab1 AS cor0
----
27 values hashing to 2f97924b57b73102233df7c9ce8ad602

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1180
SELECT CAST( + col1 AS SIGNED ) FROM tab2
----
17
31
59

skipif mysql # not compatible
query I rowsort label-1180
SELECT CAST ( + col1 AS INTEGER ) FROM tab2
----
17
31
59

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

query I rowsort
SELECT ALL - - col0 + col1 * col2 AS col2 FROM tab1 AS cor0
----
1328
1407
634

query I rowsort
SELECT + 52 * + col2 + - col0 AS col0 FROM tab0 AS cor0
----
1692
17
4175

query I rowsort
SELECT ( - 97 ) AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to e4a6bd848a69226cbb7ad3d154be321b

query I rowsort
SELECT + 56 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 9c4523312174730bbc525b9977aa99fa

query I rowsort
SELECT - col2 * 92 * + col2 FROM tab1 AS cor0
----
-268272
-298908
-847872

query I rowsort
SELECT + ( ( + col0 ) ) FROM tab1 AS cor0
----
3
64
80

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

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

query I rowsort
SELECT col2 + + col0 * + col2 * col1 FROM tab1
----
36537
4266
99936

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

query I rowsort
SELECT DISTINCT - 18 + cor0.col2 AS col0 FROM tab2, tab1, tab0 AS cor0
----
-17
15
64

query I rowsort
SELECT ALL + 80 + - cor0.col1 FROM tab2 AS cor0
----
21
49
63

query I rowsort
SELECT ALL - 83 * 5 FROM tab1 AS cor0
----
-415
-415
-415

query I rowsort
SELECT DISTINCT + 71 * cor0.col1 AS col2 FROM tab2, tab2 AS cor0
----
1207
2201
4189

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1195
SELECT ALL CAST( col1 AS SIGNED ) + col1 AS col0 FROM tab2 AS cor0
----
118
34
62

skipif mysql # not compatible
query I rowsort label-1195
SELECT ALL CAST ( col1 AS INTEGER ) + col1 AS col0 FROM tab2 AS cor0
----
118
34
62

query I rowsort
SELECT cor0.col2 AS col0 FROM tab2, tab1 cor0, tab1 AS cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79

query I rowsort
SELECT 94 * ( - col0 * + 96 ) FROM tab2 AS cor0
----
-63168
-703872
-712896

onlyif mysql # use DIV operator for integer division
query I rowsort label-1198
SELECT ALL - 77 DIV - 93 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1198
SELECT ALL - 77 / - 93 FROM tab1 AS cor0
----
0
0
0

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

query I rowsort
SELECT DISTINCT - col2 * - tab0.col1 * - 33 FROM tab0
----
-246246
-3201
-93654

query I rowsort
SELECT - ( col0 ) + 67 + - tab1.col0 AS col2 FROM tab1
----
-61
-93
61

query I rowsort
SELECT - ( col2 ) * + ( - col0 ) AS col2 FROM tab0 AS cor0
----
35
7298
792

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab1 AS cor0, tab2 cor1, tab0 AS cor2
----
972 values hashing to 95de14c88adc44eda4adb5267fe9ebd1

query I rowsort
SELECT + col2 * + cor0.col1 + 11 AS col2 FROM tab2 AS cor0
----
1545
657
848

query I rowsort
SELECT + - 38 AS col0 FROM tab0 AS cor0
----
-38
-38
-38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - cor0.col2 col1 FROM tab0 cor0
----
-1
-33
-82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col1 * - col2 + col2 col0 FROM tab2 AS cor0
----
-1508
-608
-810

query I rowsort
SELECT + col0 * - cor0.col2 AS col1 FROM tab1 cor0
----
-162
-3648
-7680

onlyif mysql # use DIV operator for integer division
query I rowsort label-1209
SELECT DISTINCT + col2 DIV + ( - col2 ) + cor0.col0 * ( col1 ) FROM tab1 AS cor0
----
1039
639
77

skipif mysql # not compatible
query I rowsort label-1209
SELECT DISTINCT + col2 / + ( - col2 ) + cor0.col0 * ( col1 ) FROM tab1 AS cor0
----
1039
639
77

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

query I rowsort
SELECT ALL + cor0.col0 * cor0.col2 + ( + col0 ) * - col1 * 60 + - col1 FROM tab2 AS cor0
----
-12862
-274151
-77595

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

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

query I rowsort
SELECT - - col2 + + cor0.col1 + col1 FROM tab1 cor0
----
106
122
77

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

query I rowsort
SELECT DISTINCT - col2 + + col2 + - col1 FROM tab1 AS cor0
----
-10
-13
-26

query I rowsort
SELECT 53 * col2 * ( + 17 ) FROM tab1
----
48654
51357
86496

query I rowsort
SELECT DISTINCT ( - col0 + - 4 ) AS col1 FROM tab1
----
-68
-7
-84

query I rowsort
SELECT ALL + col2 + - ( ( - col2 ) ) FROM tab1 AS cor0
----
108
114
192

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1219
SELECT ALL + cor0.col1 * + CAST ( NULL AS INTEGER ) + 75 col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1220
SELECT ALL + col0 * - CAST( col2 AS SIGNED ) 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-1220
SELECT ALL + col0 * - CAST ( col2 AS INTEGER ) col2 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT DISTINCT col1 + - 26 * + col1 * col2 AS col1 FROM tab1 AS cor0
----
-14810
-32435
-36478

query I rowsort
SELECT DISTINCT + + col1 + - 10 AS col1 FROM tab0 cor0
----
76
81
87

query I rowsort
SELECT + 98 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to c758e8afbdfa6aae279045b0e9cbacc2

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

query I rowsort
SELECT ALL + col1 + col2 * - cor0.col0 FROM tab0 AS cor0
----
-706
-7207
62

onlyif mysql # use DIV operator for integer division
query I rowsort label-1226
SELECT - col0 DIV col1 + col2 * col0 FROM tab0 AS cor0
----
35
7298
792

skipif mysql # not compatible
query I rowsort label-1226
SELECT - col0 / col1 + col2 * col0 FROM tab0 AS cor0
----
35
7298
792

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1227
SELECT ALL col2 * + col1 * + ( + ( tab0.col0 ) ) - CAST( col0 AS SIGNED ) FROM tab0
----
3360
664029
68088

skipif mysql # not compatible
query I rowsort label-1227
SELECT ALL col2 * + col1 * + ( + ( tab0.col0 ) ) - CAST ( col0 AS INTEGER ) FROM tab0
----
3360
664029
68088

query I rowsort
SELECT - col1 * + cor0.col0 + 32 * - col0 FROM tab1 AS cor0
----
-174
-2688
-3600

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

query I rowsort
SELECT - + col2 + 44 FROM tab2 AS cor0
----
17
18
6

query I rowsort
SELECT + col2 + ( 34 ) * cor0.col0 AS col2 FROM tab2 AS cor0
----
265
2678
2724

query I rowsort
SELECT DISTINCT cor0.col1 + - col0 * + 4 + - col2 * - cor0.col2 AS col1 FROM tab0 cor0
----
-42
1079
6459

query I rowsort
SELECT DISTINCT - col0 * - col1 + - col1 FROM tab1 AS cor0
----
1027
52
630

query I rowsort
SELECT DISTINCT col2 + + col2 AS col0 FROM tab2
----
52
54
76

query I rowsort
SELECT col0 + 27 FROM tab1
----
107
30
91

query I rowsort
SELECT + tab0.col0 - - col2 AS col2 FROM tab0
----
171
36
57

query I rowsort
SELECT ALL - col0 + col2 * cor0.col0 * col1 AS col0 FROM tab1 AS cor0
----
36416
4209
99760

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

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

query I rowsort
SELECT ALL + 55 * + col0 + - col0 AS col0 FROM tab0 AS cor0
----
1296
1890
4806

onlyif mysql # use DIV operator for integer division
query I rowsort label-1240
SELECT - col1 * 75 DIV col1 + 65 DIV col0 AS col2 FROM tab0 AS cor0
----
-73
-74
-75

skipif mysql # not compatible
query I rowsort label-1240
SELECT - col1 * 75 / col1 + 65 / col0 AS col2 FROM tab0 AS cor0
----
-73
-74
-75

query I rowsort
SELECT + + col1 + 67 AS col1 FROM tab0 cor0
----
153
158
164

query I rowsort
SELECT ALL + 71 + 55 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 19b1f1fcc466c23e5267b585248665fc

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

query I rowsort
SELECT 85 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to aafa8e5cfb9e02cea8717833e7581f7b

query I rowsort
SELECT 44 FROM tab0, tab1 AS cor0
----
9 values hashing to ab2bc2b9f8baa300df7755e5980a319d

query I rowsort
SELECT ALL + col0 + + ( col2 ) AS col1 FROM tab0
----
171
36
57

query I rowsort
SELECT ALL - tab2.col2 + + ( - 20 ) * - col1 + + col2 FROM tab2
----
1180
340
620

query I rowsort
SELECT DISTINCT 42 AS col0 FROM tab2 AS cor0
----
42

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 75 - col0 * + col0 col2 FROM tab1 AS cor0
----
-4021
-6325
66

query I rowsort
SELECT ALL - col2 * col0 * + col0 FROM tab0 AS cor0
----
-1225
-19008
-649522

query I rowsort
SELECT DISTINCT - 91 FROM tab0 AS cor0
----
-91

query I rowsort
SELECT ALL ( - col2 ) AS col0 FROM tab2
----
-26
-27
-38

query I rowsort
SELECT ALL - cor0.col1 * + col2 + + cor0.col1 + - col2 AS col0 FROM tab2 AS cor0
----
-1501
-667
-833

onlyif mysql # use DIV operator for integer division
query I rowsort label-1254
SELECT ALL col0 DIV cor0.col1 - + cor0.col2 FROM tab2 cor0
----
-25
-27
-34

skipif mysql # not compatible
query I rowsort label-1254
SELECT ALL col0 / cor0.col1 - + cor0.col2 FROM tab2 cor0
----
-25
-27
-34

query I rowsort
SELECT DISTINCT + - col1 * cor0.col1 FROM tab2 AS cor0
----
-289
-3481
-961

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * col0 col0 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT ALL - 16 FROM tab1 AS cor0
----
-16
-16
-16

query I rowsort
SELECT - 22 * + cor0.col1 FROM tab2 AS cor0
----
-1298
-374
-682

query I rowsort
SELECT ALL + - col0 * - col2 - col1 FROM tab0 AS cor0
----
-62
706
7207

query I rowsort
SELECT ALL + 19 FROM tab2 cor0
----
19
19
19

query I rowsort
SELECT DISTINCT - + col0 + col0 AS col1 FROM tab2 AS cor0
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-1262
SELECT 18 DIV 28 - + col0 AS col1 FROM tab1
----
-3
-64
-80

skipif mysql # not compatible
query I rowsort label-1262
SELECT 18 / 28 - + col0 AS col1 FROM tab1
----
-3
-64
-80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab1.col1 col0 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892

onlyif mysql # use DIV operator for integer division
query I rowsort label-1264
SELECT 85 DIV col2 + col0 * + col1 AS col0 FROM tab1
----
1040
641
79

skipif mysql # not compatible
query I rowsort label-1264
SELECT 85 / col2 + col0 * + col1 AS col0 FROM tab1
----
1040
641
79

query I rowsort
SELECT DISTINCT - col2 - - col2 AS col1 FROM tab1
----
0

query I rowsort
SELECT DISTINCT - - col1 + col2 + col0 * 33 AS col0 FROM tab0 AS cor0
----
1253
3110
911

onlyif mysql # use DIV operator for integer division
query I rowsort label-1267
SELECT ALL - col0 DIV col1 - - col1 FROM tab0 cor0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-1267
SELECT ALL - col0 / col1 - - col1 FROM tab0 cor0
----
86
91
97

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

query I rowsort
SELECT ALL + col1 * col0 * - 31 FROM tab0 AS cor0
----
-105245
-251069
-63984

query I rowsort
SELECT DISTINCT 37 + - col1 AS col1 FROM tab2 AS cor0
----
-22
20
6

query I rowsort
SELECT DISTINCT col0 + + col1 * + 87 * + 49 + col0 FROM tab2 AS cor0
----
132167
251673
72629

query I rowsort
SELECT - - 2 * col2 + + col1 FROM tab0 AS cor0
----
152
255
99

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

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

query I rowsort
SELECT + + col0 * - cor0.col0 * col1 + - col1 AS col1 FROM tab2 AS cor0
----
-106114
-1550
-359015

query I rowsort
SELECT ALL - ( - col1 ) + - ( col0 ) * + col0 + - tab2.col0 FROM tab2
----
-25
-6103
-6303

query I rowsort
SELECT + ( + 34 ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 1146d159f0b9b4378a8b738b963f7039

query I rowsort
SELECT - + col1 * col2 - col0 * 43 FROM tab2 AS cor0
----
-1138
-4043
-4888

query I rowsort
SELECT + cor0.col1 * - col0 - - 82 AS col2 FROM tab0 AS cor0
----
-1982
-3313
-8017

onlyif mysql # use DIV operator for integer division
query I rowsort label-1280
SELECT - - col1 * cor0.col2 DIV - 79 + 15 * + col1 FROM tab0 AS cor0
----
1255
1271
1454

skipif mysql # not compatible
query I rowsort label-1280
SELECT - - col1 * cor0.col2 / - 79 + 15 * + col1 FROM tab0 AS cor0
----
1255
1271
1454

query I rowsort
SELECT + 69 FROM tab0 AS cor0
----
69
69
69

query I rowsort
SELECT ( + col2 ) * - cor0.col2 + + ( - 90 ) FROM tab1 AS cor0
----
-3006
-3339
-9306

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * + col0 + + col0 col2 FROM tab1 AS cor0
----
1120
704
81

query I rowsort
SELECT - col2 + - 72 AS col1 FROM tab2 AS cor0
----
-110
-98
-99

query I rowsort
SELECT - + col0 * col0 AS col2 FROM tab1 AS cor0
----
-4096
-6400
-9

query I rowsort
SELECT 20 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1, tab0 cor1, tab0 cor2, tab2 AS cor3
----
243 values hashing to 783fdb6630589eb0fa4e0c57a7c774ac

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

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

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

skipif mysql # not compatible
query I rowsort
SELECT + - 12 + + col1 * - CAST ( 88 AS REAL ) FROM tab2 AS cor0
----
-1508
-2740
-5204

query I rowsort
SELECT col0 + - 40 FROM tab2
----
-33
38
39

query I rowsort
SELECT - 86 + + col2 AS col2 FROM tab1
----
-29
-32
10

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

query I rowsort
SELECT - 45 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 71160abf09589695379a70558726f0ba

query I rowsort
SELECT cor0.col2 * + cor0.col1 AS col1 FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to 7623ebe74018211e6a4da91fc8c37d6d

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + tab0.col1 * + cor0.col0 + 76 col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 235d9c941e592662a3887a63c271e6ac

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1298
SELECT ALL ( + col1 ) * CAST( col1 * - col2 AS SIGNED ) + col1 AS col2 FROM tab0
----
-243982
-678951
-9312

skipif mysql # not compatible
query I rowsort label-1298
SELECT ALL ( + col1 ) * CAST ( col1 * - col2 AS INTEGER ) + col1 AS col2 FROM tab0
----
-243982
-678951
-9312

query I rowsort
SELECT DISTINCT + col1 * + col1 + - 5 AS col2 FROM tab2
----
284
3476
956

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - col2 col1 FROM tab0 cor0
----
-1
-1089
-6724

query I rowsort
SELECT - - 31 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to c3c6f92f0ca72d71793339f88a57e336

query I rowsort
SELECT 31 * col0 FROM tab0
----
1085
2759
744

query I rowsort
SELECT + col1 + col1 AS col1 FROM tab0
----
172
182
194

query I rowsort
SELECT ALL col2 * + col0 + 17 AS col1 FROM tab1 AS cor0
----
179
3665
7697

query I rowsort
SELECT + col0 * + col1 * - col0 + col1 FROM tab2 AS cor0
----
-106080
-1488
-358897

query I rowsort
SELECT - - cor0.col2 * 27 AS col2 FROM tab0 cor0
----
2214
27
891

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1307
SELECT ALL + col1 * - CAST( + col2 AS SIGNED ) + col1 * 32 * col0 AS col0 FROM tab1 AS cor0
----
1092
19910
32032

skipif mysql # not compatible
query I rowsort label-1307
SELECT ALL + col1 * - CAST ( + col2 AS INTEGER ) + col1 * 32 * col0 AS col0 FROM tab1 AS cor0
----
1092
19910
32032

query I rowsort
SELECT - - cor0.col1 * + 89 + - 23 AS col2 FROM tab1 AS cor0
----
1134
2291
867

query I rowsort
SELECT 35 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to d9b103f79c4e8f0de4b7c1c821783a29

query I rowsort
SELECT DISTINCT tab0.col2 * + 35 FROM tab0
----
1155
2870
35

query I rowsort
SELECT ALL col0 * 71 FROM tab2
----
497
5538
5609

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

query I rowsort
SELECT DISTINCT - col0 * + 91 * + col0 FROM tab0
----
-111475
-52416
-720811

query I rowsort
SELECT + col1 * + 13 AS col1 FROM tab1
----
130
169
338

query I rowsort
SELECT col2 + + col2 * - col1 FROM tab0 AS cor0
----
-2805
-7380
-96

query I rowsort
SELECT + + ( + col0 ) * + col1 AS col2 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT + cor1.col2 FROM tab0, tab0 AS cor0, tab1 cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79

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

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

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

query I rowsort
SELECT ALL - - 38 + + col1 FROM tab0 AS cor0
----
124
129
135

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 90 col0 FROM tab2 cor0
----
90

query I rowsort
SELECT ALL + 28 * cor0.col0 + col2 * + ( col1 ) AS col2 FROM tab2 AS cor0
----
1033
2858
3718

query I rowsort
SELECT + + 61 + col2 * - col0 AS col1 FROM tab1 AS cor0
----
-101
-3587
-7619

query I rowsort
SELECT + - 64 * ( + col1 ) FROM tab0 AS cor0
----
-5504
-5824
-6208

query I rowsort
SELECT - - 10 + + 1 * col2 + 75 FROM tab1 AS cor0
----
139
142
181

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

query I rowsort
SELECT cor0.col0 * col0 * 38 + 99 AS col1 FROM tab0 AS cor0
----
21987
301097
46649

onlyif mysql # use DIV operator for integer division
query I rowsort label-1329
SELECT DISTINCT + ( + col0 ) DIV col0 col1 FROM tab2 AS cor0
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1329
SELECT DISTINCT + ( + col0 ) / col0 col1 FROM tab2 AS cor0
----
1

query I rowsort
SELECT 89 * - col2 FROM tab1 AS cor0
----
-4806
-5073
-8544

query I rowsort
SELECT + col0 * - col1 - - 62 AS col2 FROM tab2 cor0
----
-1281
-155
-4540

query I rowsort
SELECT DISTINCT - 50 * tab1.col0 AS col1 FROM tab1
----
-150
-3200
-4000

onlyif mysql # use DIV operator for integer division
query I rowsort label-1333
SELECT col2 DIV - col1 FROM tab2
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-1333
SELECT col2 / - col1 FROM tab2
----
-2
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-1334
SELECT + 96 * col0 DIV 99 AS col0 FROM tab1
----
2
62
77

skipif mysql # not compatible
query I rowsort label-1334
SELECT + 96 * col0 / 99 AS col0 FROM tab1
----
2
62
77

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1336
SELECT + + col2 DIV col1 AS col0 FROM tab2 AS cor0
----
0
0
2

skipif mysql # not compatible
query I rowsort label-1336
SELECT + + col2 / col1 AS col0 FROM tab2 AS cor0
----
0
0
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 69 - col0 col1 FROM tab2 cor0
----
-10
-9
62

query I rowsort
SELECT + col2 * + col2 + + cor0.col1 * col1 AS col1 FROM tab1 AS cor0
----
3349
3592
9385

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 * ( 12 ) col0 FROM tab2 AS cor0
----
-312
-324
-456

query I rowsort
SELECT cor1.col0 AS col1 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f

onlyif mysql # use DIV operator for integer division
query I rowsort label-1341
SELECT + col1 + col2 DIV col2 FROM tab0 AS cor0
----
87
92
98

skipif mysql # not compatible
query I rowsort label-1341
SELECT + col1 + col2 / col2 FROM tab0 AS cor0
----
87
92
98

query I rowsort
SELECT - + col1 + - col2 + + cor0.col0 * col1 FROM tab0 cor0
----
1945
3297
7926

query I rowsort
SELECT DISTINCT 24 FROM tab0
----
24

query I rowsort
SELECT DISTINCT + 15 * cor0.col1 FROM tab2 AS cor0
----
255
465
885

onlyif mysql # use DIV operator for integer division
query I rowsort label-1345
SELECT ALL col1 + col0 DIV col0 AS col1 FROM tab0 AS cor0
----
87
92
98

skipif mysql # not compatible
query I rowsort label-1345
SELECT ALL col1 + col0 / col0 AS col1 FROM tab0 AS cor0
----
87
92
98

onlyif mysql # use DIV operator for integer division
query I rowsort label-1346
SELECT ALL col2 DIV + cor0.col2 + col2 * - cor0.col0 col2 FROM tab1 AS cor0
----
-161
-3647
-7679

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1346
SELECT ALL col2 / + cor0.col2 + col2 * - cor0.col0 col2 FROM tab1 AS cor0
----
-161
-3647
-7679

query I rowsort
SELECT DISTINCT - cor0.col0 * - col1 - - col1 AS col1 FROM tab1 cor0
----
104
1053
650

query I rowsort
SELECT + cor0.col0 + cor0.col0 * cor0.col2 * col1 FROM tab1 AS cor0
----
36544
4215
99920

query I rowsort
SELECT DISTINCT ( col1 ) * + col2 * - col0 + + col1 AS col1 FROM tab0 AS cor0
----
-3298
-664027
-68026

query I rowsort
SELECT DISTINCT - ( + col1 ) AS col2 FROM tab2 AS cor0
----
-17
-31
-59

query I rowsort
SELECT + - 42 AS col0 FROM tab0 cor0
----
-42
-42
-42

query I rowsort
SELECT ALL - - 88 * + col1 + col2 FROM tab1 AS cor0
----
1240
2342
937

query I rowsort
SELECT DISTINCT + col0 - 62 AS col1 FROM tab0
----
-27
-38
27

query I rowsort
SELECT DISTINCT col2 + col0 * + col1 AS col2 FROM tab2
----
1381
244
4628

query I rowsort
SELECT + col2 + - col1 * - col1 + + col0 FROM tab0
----
7453
8452
9445

query I rowsort
SELECT - ( + ( col1 ) * + col0 ) + + 10 * - tab0.col1 - ( col2 ) AS col1 FROM tab0
----
-2957
-4366
-9091

query I rowsort
SELECT tab0.col2 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8

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

query I rowsort
SELECT - col2 + col2 * 35 AS col0 FROM tab0 AS cor0
----
1122
2788
34

query I rowsort
SELECT ALL - col1 * + 81 FROM tab0
----
-6966
-7371
-7857

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 - + col2 * col2 col2 FROM tab0
----
-1065
-6635
34

query I rowsort
SELECT - col2 * col1 + + 1 FROM tab1
----
-1247
-1403
-569

query I rowsort
SELECT ALL + 11 * col0 * ( + 94 ) + - tab1.col2 FROM tab1
----
3048
66119
82624

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab0 cor0, tab2, tab0 AS cor1
----
972 values hashing to 9345325155d9f4d7dc4986690c631cb9

query I rowsort
SELECT 36 + 87 AS col1 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 29e9d8131952d56946bc643c97a760bb

query I rowsort
SELECT - - col1 + + col2 * - ( 45 ) + + cor0.col0 FROM tab2 AS cor0
----
-1033
-1177
-1614

query I rowsort
SELECT DISTINCT - col2 * col0 + cor0.col0 FROM tab0 AS cor0
----
-7209
-768
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 84 * + col1 * col0 + col1 * + col2 col2 FROM tab1 AS cor0
----
-5148
-53190
-86112

query I rowsort
SELECT ALL 69 * col1 FROM tab1 AS cor0
----
1794
690
897

query I rowsort
SELECT col0 * - ( - col2 + - col2 * + 30 ) FROM tab1
----
113088
238080
5022

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

query I rowsort
SELECT DISTINCT + 6 * cor0.col0 + col2 FROM tab0 AS cor0
----
177
211
616

query I rowsort
SELECT - + col2 + - col0 AS col0 FROM tab1 AS cor0
----
-121
-176
-57

query I rowsort
SELECT - col0 + 22 * + col2 AS col0 FROM tab2 AS cor0
----
494
587
757

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

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

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

query I rowsort
SELECT + col2 * + ( col1 + col1 ) * col0 FROM tab2 AS cor0
----
102068
11718
239304

query I rowsort
SELECT DISTINCT 58 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
58

query I rowsort
SELECT col0 * + 7 + - col1 + + ( - ( - col1 ) ) * + ( + col0 ) * col2 FROM tab0
----
3543
664650
68194

query I rowsort
SELECT DISTINCT + 6 + + col2 AS col1 FROM tab2
----
32
33
44

query I rowsort
SELECT DISTINCT col0 * - 38 + tab2.col0 AS col1 FROM tab2
----
-259
-2886
-2923

query I rowsort
SELECT + 38 * - tab1.col0 * col1 FROM tab1
----
-24320
-2964
-39520

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1383
SELECT CAST ( NULL AS INTEGER ) / - col1 col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 54 + 98 AS col0 FROM tab1
----
152
152
152

query I rowsort
SELECT - - col1 + 47 FROM tab0 AS cor0
----
133
138
144

onlyif mysql # use DIV operator for integer division
query I rowsort label-1386
SELECT - + 45 DIV + 91 + col2 FROM tab2 AS cor0
----
26
27
38

skipif mysql # not compatible
query I rowsort label-1386
SELECT - + 45 / + 91 + col2 FROM tab2 AS cor0
----
26
27
38

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

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

query I rowsort
SELECT + col0 + - col1 + + col1 AS col0 FROM tab1
----
3
64
80

query I rowsort
SELECT ALL 36 + col0 + + tab2.col1 * - col2 * col2 FROM tab2
----
-22556
-24433
-39770

query I rowsort
SELECT DISTINCT + col2 + - col0 * - tab0.col1 + + col1 AS col0 FROM tab0
----
2183
3493
8272

query I rowsort
SELECT ALL - 18 * col1 + - col2 * + 73 + + col1 AS col1 FROM tab2 AS cor0
----
-2498
-2901
-3063

query I rowsort
SELECT ALL ( 23 ) * + col2 AS col0 FROM tab2 cor0
----
598
621
874

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 * + 24 col1 FROM tab1 AS cor0
----
1296
1368
2304

query I rowsort
SELECT DISTINCT - 56 + 0 * col0 * col2 AS col1 FROM tab2 AS cor0
----
-56

query I rowsort
SELECT DISTINCT - + 78 * + col2 AS col0 FROM tab2 AS cor0
----
-2028
-2106
-2964

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + cor0.col2 * col1 col2 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT ALL - ( 25 ) * col2 FROM tab1 AS cor0
----
-1350
-1425
-2400

query I rowsort
SELECT ALL - - ( + col2 ) + - col0 * col0 FROM tab0 cor0
----
-1224
-543
-7839

query I rowsort
SELECT + 62 + col0 AS col0 FROM tab2 cor0
----
140
141
69

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1401
SELECT + 29 DIV + col1 - - col0 * cor0.col1 AS col2 FROM tab2 AS cor0
----
1344
217
4602

skipif mysql # not compatible
query I rowsort label-1401
SELECT + 29 / + col1 - - col0 * cor0.col1 AS col2 FROM tab2 AS cor0
----
1344
217
4602

query I rowsort
SELECT + 13 AS col0 FROM tab0 AS cor0
----
13
13
13

query I rowsort
SELECT DISTINCT - - ( col0 ) * - ( 55 ) FROM tab2 AS cor0
----
-385
-4290
-4345

query I rowsort
SELECT 19 * - col2 AS col2 FROM tab2 AS cor0
----
-494
-513
-722

query I rowsort
SELECT - 83 * 5 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 353c83270077d7f68de1b9ab6fcf0a81

query I rowsort
SELECT ALL - cor0.col0 * + col0 * - cor0.col0 - col1 * col0 FROM tab2 AS cor0
----
126
469950
491696

query I rowsort
SELECT DISTINCT + ( col2 ) AS col1 FROM tab2 cor0
----
26
27
38

query I rowsort
SELECT + 93 FROM tab2, tab0 AS cor0, tab2 AS cor1, tab0 AS cor2
----
81 values hashing to bed80270d2bd273301f8ff63d7ef9f43

query I rowsort
SELECT DISTINCT 12 AS col1 FROM tab0 cor0
----
12

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 86 + 74 col1 FROM tab1, tab2 cor0
----
160

query I rowsort
SELECT ALL + - col2 + col2 AS col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + - col0 + + col0 FROM tab1 cor0
----
0
0
0

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

query I rowsort
SELECT DISTINCT + cor0.col1 + col2 * - col1 FROM tab0 AS cor0
----
-2752
-7371
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col0 + col1 col2 FROM tab2 AS cor0
----
-19
-62
24

onlyif mysql # use DIV operator for integer division
query I rowsort label-1419
SELECT ALL + + col2 DIV CAST( - cor0.col2 AS SIGNED ) + + col1 AS col0 FROM tab1 cor0
----
12
25
9

skipif mysql # not compatible
query I rowsort label-1419
SELECT ALL + + col2 / CAST ( - cor0.col2 AS INTEGER ) + + col1 AS col0 FROM tab1 cor0
----
12
25
9

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1420
SELECT DISTINCT - col1 + + CAST( + col2 + col0 AS SIGNED ) FROM tab0 AS cor0
----
-29
-61
80

skipif mysql # not compatible
query I rowsort label-1420
SELECT DISTINCT - col1 + + CAST ( + col2 + col0 AS INTEGER ) FROM tab0 AS cor0
----
-29
-61
80

query I rowsort
SELECT DISTINCT col0 * - col1 + + col2 * - col0 AS col2 FROM tab2 AS cor0
----
-406
-4345
-6630

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1422
SELECT ALL - col0 * CAST( - col0 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
49
6084
6241

skipif mysql # not compatible
query I rowsort label-1422
SELECT ALL - col0 * CAST ( - col0 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
49
6084
6241

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col1 col0 FROM tab0 AS cor0
----
86
91
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 41 * - col2 col0 FROM tab1 AS cor0
----
-2214
-2337
-3936

query I rowsort
SELECT DISTINCT + + 54 AS col2 FROM tab2 AS cor0
----
54

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

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

query I rowsort
SELECT ALL + - 15 * 58 AS col2 FROM tab0 AS cor0
----
-870
-870
-870

query I rowsort
SELECT 79 * cor0.col0 FROM tab2 AS cor0
----
553
6162
6241

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

query I rowsort
SELECT ALL 24 * - col1 AS col2 FROM tab2 cor0
----
-1416
-408
-744

query I rowsort
SELECT DISTINCT - 49 * cor0.col2 * col0 FROM tab1 AS cor0
----
-178752
-376320
-7938

query I rowsort
SELECT - col2 + col0 * - col0 AS col0 FROM tab0 AS cor0
----
-1226
-609
-8003

query I rowsort
SELECT ALL tab0.col2 * ( + col0 + - col1 ) * 20 AS col0 FROM tab0
----
-1240
-3280
-40920

onlyif mysql # use DIV operator for integer division
query I rowsort label-1435
SELECT DISTINCT - col0 DIV tab0.col0 AS col1 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-1435
SELECT DISTINCT - col0 / tab0.col0 AS col1 FROM tab0
----
-1

onlyif mysql # use DIV operator for integer division
query I rowsort label-1436
SELECT DISTINCT - 97 DIV cor0.col2 col0 FROM tab1, tab2, tab0 AS cor0, tab1 AS cor1
----
-1
-2
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1436
SELECT DISTINCT - 97 / cor0.col2 col0 FROM tab1, tab2, tab0 AS cor0, tab1 AS cor1
----
-1
-2
-97

query I rowsort
SELECT ALL - col0 + - col2 * 69 FROM tab1 AS cor0
----
-3729
-3997
-6704

query I rowsort
SELECT ALL 67 FROM tab2 AS cor0
----
67
67
67

query I rowsort
SELECT DISTINCT + 3 * - col0 + - 77 * - col2 FROM tab1 AS cor0
----
4149
4197
7152

query I rowsort
SELECT - ( + tab1.col2 * ( - 86 ) ) FROM tab1
----
4644
4902
8256

query I rowsort
SELECT - + 94 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to 7eeab220fc6bbc2fb3fa4aef8600159f

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

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

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

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

query I rowsort
SELECT + col1 * 10 AS col2 FROM tab1 AS cor0
----
100
130
260

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

query I rowsort
SELECT - 17 FROM tab1
----
-17
-17
-17

onlyif mysql # use DIV operator for integer division
query I rowsort label-1447
SELECT 91 DIV 39 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 535345c50a19fdab97ce05d1837b1f09

skipif mysql # not compatible
query I rowsort label-1447
SELECT 91 / 39 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 535345c50a19fdab97ce05d1837b1f09

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1448
SELECT CAST( + 77 AS SIGNED ) - col1 AS col2 FROM tab1 AS cor0
----
51
64
67

skipif mysql # not compatible
query I rowsort label-1448
SELECT CAST ( + 77 AS INTEGER ) - col1 AS col2 FROM tab1 AS cor0
----
51
64
67

query I rowsort
SELECT + 68 * + 13 + + col1 FROM tab0 cor0
----
970
975
981

query I rowsort
SELECT + cor0.col2 + + cor0.col0 FROM tab0 AS cor0
----
171
36
57

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

query I rowsort
SELECT ALL - col1 + - col0 * col2 + 19 FROM tab1 AS cor0
----
-169
-3639
-7674

onlyif mysql # use DIV operator for integer division
query I rowsort label-1453
SELECT ALL col1 DIV + col0 + - col2 * col0 FROM tab0 AS cor0
----
-33
-7297
-789

skipif mysql # not compatible
query I rowsort label-1453
SELECT ALL col1 / + col0 + - col2 * col0 FROM tab0 AS cor0
----
-33
-7297
-789

onlyif mysql # use DIV operator for integer division
query I rowsort label-1454
SELECT + col1 DIV col1 + - col1 * ( + col0 ) FROM tab1 AS cor0
----
-1039
-639
-77

skipif mysql # not compatible
query I rowsort label-1454
SELECT + col1 / col1 + - col1 * ( + col0 ) FROM tab1 AS cor0
----
-1039
-639
-77

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

query I rowsort
SELECT - col0 + + ( - col0 ) + + tab2.col1 AS col1 FROM tab2
----
-141
-97
17

query I rowsort
SELECT col1 + 51 + - col2 FROM tab1
----
-32
23
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * tab0.col2 * - 38 + - col0 * col2 col1 FROM tab0
----
-108636
-290854
-3721

query I rowsort
SELECT col2 + 21 FROM tab2
----
47
48
59

query I rowsort
SELECT tab0.col1 * + 66 + col1 - + col1 AS col1 FROM tab0
----
5676
6006
6402

query I rowsort
SELECT col0 - 72 FROM tab0
----
-37
-48
17

onlyif mysql # use DIV operator for integer division
query I rowsort label-1462
SELECT ALL + col0 * ( col0 ) + - tab1.col2 DIV 24 col0 FROM tab1
----
4094
6396
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1462
SELECT ALL + col0 * ( col0 ) + - tab1.col2 / 24 col0 FROM tab1
----
4094
6396
7

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

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

query I rowsort
SELECT ALL + 76 + tab0.col0 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to efd64349cdb551ab99999b49c4a21049

query I rowsort
SELECT ALL ( + 90 ) * col1 + 10 * col1 FROM tab1
----
1000
1300
2600

query I rowsort
SELECT - col1 * + col0 + tab0.col0 AS col2 FROM tab0
----
-2040
-3360
-8010

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col0 col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 09d8a912de1b8ab762e5ffbe028ce99e

query I rowsort
SELECT ALL - col0 * 99 + cor0.col2 FROM tab1 AS cor0
----
-243
-6279
-7824

query I rowsort
SELECT + ( 24 ) * + col1 + + col2 * + col0 FROM tab0 AS cor0
----
2363
2856
9482

query I rowsort
SELECT ALL - 14 * - col2 AS col1 FROM tab1 AS cor0
----
1344
756
798

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

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

query I rowsort
SELECT + - 67 + 61 AS col1 FROM tab1 AS cor0
----
-6
-6
-6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * + col1 col2 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT DISTINCT + - col1 + cor0.col0 * col2 * col0 AS col1 FROM tab0 AS cor0
----
1128
18922
649431

query I rowsort
SELECT DISTINCT ( tab2.col0 + - col0 ) FROM tab2
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * 30 * + col2 col2 FROM tab2
----
-19380
-25110
-46020

onlyif mysql # use DIV operator for integer division
query I rowsort label-1478
SELECT + - 60 - col1 DIV col1 AS col2 FROM tab0 AS cor0
----
-61
-61
-61

skipif mysql # not compatible
query I rowsort label-1478
SELECT + - 60 - col1 / col1 AS col2 FROM tab0 AS cor0
----
-61
-61
-61

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

query I rowsort
SELECT ( + 30 ) * + col2 AS col2 FROM tab2
----
1140
780
810

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

query I rowsort
SELECT - col1 * + col1 + col2 AS col1 FROM tab0 AS cor0
----
-7363
-8199
-9408

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

query I rowsort
SELECT col1 * col2 + col2 FROM tab1 AS cor0
----
1344
1458
627

query I rowsort
SELECT - ( + col0 ) + - col2 AS col1 FROM tab2 AS cor0
----
-104
-117
-34

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1487
SELECT ( + col2 ) DIV ( 41 ) + - cor0.col0 AS col1 FROM tab1 AS cor0
----
-2
-63
-78

skipif mysql # not compatible
query I rowsort label-1487
SELECT ( + col2 ) / ( 41 ) + - cor0.col0 AS col1 FROM tab1 AS cor0
----
-2
-63
-78

query I rowsort
SELECT DISTINCT col2 * col1 * tab2.col0 AS col0 FROM tab2
----
119652
51034
5859

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * ( col0 ) col2 FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT - col2 * + 72 FROM tab1 AS cor0
----
-3888
-4104
-6912

query I rowsort
SELECT - ( col0 ) * col0 - ( 99 ) AS col0 FROM tab0 cor0
----
-1324
-675
-8020

query I rowsort
SELECT - cor0.col0 AS col2 FROM tab2, tab2 cor0
----
9 values hashing to 3000337dd3f11e9cfd5a312b01ef3f8b

query I rowsort
SELECT DISTINCT cor0.col1 - - cor0.col1 FROM tab2, tab2 AS cor0
----
118
34
62

query I rowsort
SELECT + 23 * + col0 AS col1 FROM tab0 AS cor0
----
2047
552
805

query I rowsort
SELECT - col0 * - cor0.col0 + + col2 AS col0 FROM tab0 cor0
----
1226
609
8003

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * col0 col1 FROM tab1 cor0
----
1040
640
78

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

query I rowsort
SELECT - cor0.col1 + 28 * + col2 FROM tab1 cor0
----
1486
1586
2675

query I rowsort
SELECT - - col2 * col0 + + col2 + + col1 FROM tab1 AS cor0
----
242
3715
7789

query I rowsort
SELECT ALL - + col1 * 81 FROM tab0 AS cor0
----
-6966
-7371
-7857

query I rowsort
SELECT ALL - + col0 + col0 AS col1 FROM tab2 AS cor0
----
0
0
0

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

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

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

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

query I rowsort
SELECT DISTINCT + col2 * - ( + 35 ) + cor0.col0 * - 2 FROM tab2 AS cor0
----
-1066
-1488
-959

query I rowsort
SELECT DISTINCT - col1 - ( + 9 ) * - col2 FROM tab1 AS cor0
----
460
503
851

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

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

query I rowsort
SELECT ALL - 52 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 9500afe5646d620d5e8943351a29d082

query I rowsort
SELECT ALL - + 93 FROM tab2 AS cor0
----
-93
-93
-93

query I rowsort
SELECT ALL col0 + 1 AS col1 FROM tab1 AS cor0
----
4
65
81

query I rowsort
SELECT 4 + - col2 + cor0.col2 * + ( + col0 + col1 ) * col0 AS col2 FROM tab0 AS cor0
----
1313562
4623
87091

query I rowsort
SELECT DISTINCT - - 93 * + col0 FROM tab2 AS cor0
----
651
7254
7347

query I rowsort
SELECT ALL col2 - + tab1.col0 AS col1 FROM tab1
----
-7
16
51

query I rowsort
SELECT ALL - - 76 + col1 * + ( col1 ) * col1 AS col1 FROM tab0 AS cor0
----
636132
753647
912749

query I rowsort
SELECT 7 * + col1 AS col1 FROM tab0 cor0
----
602
637
679

onlyif mysql # use DIV operator for integer division
query I rowsort label-1517
SELECT ALL cor0.col2 + - col0 - + col2 DIV col0 col0 FROM tab1 AS cor0
----
-7
15
33

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1517
SELECT ALL cor0.col2 + - col0 - + col2 / col0 col0 FROM tab1 AS cor0
----
-7
15
33

query I rowsort
SELECT DISTINCT - col0 + col0 * - 90 - ( + cor0.col0 * cor0.col0 ) AS col2 FROM tab0 AS cor0
----
-16020
-2760
-4410

query I rowsort
SELECT ALL 29 + + col2 FROM tab1 AS cor0
----
125
83
86

query I rowsort
SELECT ALL + ( - col1 * + ( - 13 ) + col2 ) FROM tab1
----
187
265
392

query I rowsort
SELECT ALL - 10 AS col2 FROM tab0
----
-10
-10
-10

query I rowsort
SELECT col1 * col2 + + 40 FROM tab0 AS cor0
----
137
2878
7502

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

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1524
SELECT - col2 + CAST( col2 AS SIGNED ) * col2 FROM tab1 AS cor0
----
2862
3192
9120

skipif mysql # not compatible
query I rowsort label-1524
SELECT - col2 + CAST ( col2 AS INTEGER ) * col2 FROM tab1 AS cor0
----
2862
3192
9120

query I rowsort
SELECT ALL + cor0.col0 * - 25 FROM tab0, tab0 AS cor0
----
9 values hashing to bff4da8ee66d28f697e5f89bd96e0719

query I rowsort
SELECT DISTINCT 65 * + col2 AS col0 FROM tab2 AS cor0
----
1690
1755
2470

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

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

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

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

query I rowsort
SELECT DISTINCT + col0 * + 33 + tab1.col1 AS col0 FROM tab1
----
125
2122
2653

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

query I rowsort
SELECT ALL + col2 + - ( col0 ) * col1 AS col0 FROM tab1 AS cor0
----
-24
-583
-944

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

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

query I rowsort
SELECT ALL + 80 * - col1 + + col1 + + col2 * - col0 FROM tab2
----
-2638
-4345
-6689

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

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

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1538
SELECT - - CAST( + 21 AS SIGNED ) * - col2 FROM tab2 AS cor0
----
-546
-567
-798

skipif mysql # not compatible
query I rowsort label-1538
SELECT - - CAST ( + 21 AS INTEGER ) * - col2 FROM tab2 AS cor0
----
-546
-567
-798

query I rowsort
SELECT DISTINCT - 82 AS col2 FROM tab0 AS cor0
----
-82

query I rowsort
SELECT DISTINCT + ( 17 ) * col2 FROM tab2 cor0
----
442
459
646

query I rowsort
SELECT ALL + 45 * + col0 AS col1 FROM tab1 AS cor0
----
135
2880
3600

query I rowsort
SELECT + 7 * + col0 AS col1 FROM tab2 AS cor0
----
49
546
553

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

query I rowsort
SELECT - ( col2 ) AS col2 FROM tab2 AS cor0
----
-26
-27
-38

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

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

query I rowsort
SELECT + col0 + col1 * + 41 AS col0 FROM tab0 AS cor0
----
3550
3820
4012

query I rowsort
SELECT ALL - - 91 + col2 FROM tab2 AS cor0
----
117
118
129

query I rowsort
SELECT DISTINCT - - ( - col1 ) * - 47 FROM tab2 AS cor0
----
1457
2773
799

query I rowsort
SELECT col2 + col0 * + col1 AS col0 FROM tab0 AS cor0
----
2097
3396
8181

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

query I rowsort
SELECT ALL 83 AS col1 FROM tab0 AS cor0
----
83
83
83

query I rowsort
SELECT - col0 * col2 + col0 * 86 FROM tab2
----
3792
413
4680

onlyif mysql # use DIV operator for integer division
query I rowsort label-1554
SELECT DISTINCT col2 * tab0.col2 * col2 + col0 DIV ( col1 ) col2 FROM tab0
----
1
35937
551368

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1554
SELECT DISTINCT col2 * tab0.col2 * col2 + col0 / ( col1 ) col2 FROM tab0
----
1
35937
551368

query I rowsort
SELECT ALL - 28 + - tab2.col1 * - col2 FROM tab2
----
1506
618
809

query I rowsort
SELECT - + 45 * col0 FROM tab2 AS cor0
----
-315
-3510
-3555

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col0 * + cor0.col0 col1 FROM tab0 cor0
----
1225
576
7921

query I rowsort
SELECT ALL - + col2 + - col0 + ( + col2 ) FROM tab2 cor0
----
-7
-78
-79

query I rowsort
SELECT ALL col2 + + 75 * col2 * tab1.col2 FROM tab1
----
218754
243732
691296

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col0 * col0 + col2 col0 FROM tab0 cor0
----
1226
609
8003

query I rowsort
SELECT DISTINCT + 86 * 28 FROM tab2
----
2408

onlyif mysql # use DIV operator for integer division
query I rowsort label-1562
SELECT 57 DIV 23 AS col0 FROM tab1
----
2
2
2

skipif mysql # not compatible
query I rowsort label-1562
SELECT 57 / 23 AS col0 FROM tab1
----
2
2
2

query I rowsort
SELECT ALL - - ( cor0.col0 ) AS col0 FROM tab0 AS cor0
----
24
35
89

onlyif mysql # use DIV operator for integer division
query I rowsort label-1564
SELECT - col2 * ( - col1 ) DIV ( col2 ) FROM tab1
----
10
13
26

skipif mysql # not compatible
query I rowsort label-1564
SELECT - col2 * ( - col1 ) / ( col2 ) FROM tab1
----
10
13
26

query I rowsort
SELECT ALL + 90 AS col2 FROM tab0 AS cor0
----
90
90
90

query I rowsort
SELECT col2 * + col0 * - col1 + - ( - col0 ) AS col1 FROM tab1 AS cor0
----
-36416
-4209
-99760

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

query I rowsort
SELECT 64 + col1 FROM tab0 AS cor0
----
150
155
161

query I rowsort
SELECT + - ( - 52 ) FROM tab0, tab2 cor0
----
9 values hashing to 7f4ae30893ab330784829711032ae599

onlyif mysql # use DIV operator for integer division
query I rowsort label-1570
SELECT + - col1 * col2 + 33 DIV col1 FROM tab1 AS cor0
----
-1246
-1403
-567

skipif mysql # not compatible
query I rowsort label-1570
SELECT + - col1 * col2 + 33 / col1 FROM tab1 AS cor0
----
-1246
-1403
-567

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab0.col1 * + ( - col0 ) col2 FROM tab0
----
-2064
-3395
-8099

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

query I rowsort
SELECT DISTINCT + col2 + + 65 AS col0 FROM tab1 AS cor0
----
119
122
161

query I rowsort
SELECT 95 AS col0 FROM tab1, tab2 AS cor0, tab2 cor1
----
27 values hashing to 14faa6dda52e3dfe1f5db2579c274a7e

query I rowsort
SELECT col0 + + 6 FROM tab1 AS cor0
----
70
86
9

skipif mysql # not compatible
query I rowsort
SELECT col0 + CAST ( - 36 AS REAL ) FROM tab0 AS cor0
----
-1
-12
53

query I rowsort
SELECT DISTINCT col1 * 23 AS col2 FROM tab2 AS cor0
----
1357
391
713

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

query I rowsort
SELECT DISTINCT + + col2 * - col2 + + 7 AS col0 FROM tab1 AS cor0
----
-2909
-3242
-9209

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

query I rowsort
SELECT + - col0 + - 28 - col0 * 92 FROM tab0 AS cor0
----
-2260
-3283
-8305

query I rowsort
SELECT + 91 + + col0 AS col1 FROM tab0 cor0
----
115
126
180

query I rowsort
SELECT 67 + - cor0.col1 FROM tab1 AS cor0
----
41
54
57

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

skipif mysql # not compatible
query I rowsort label-1584
SELECT CAST ( - col1 AS INTEGER ) * + cor0.col2 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT - 42 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 9894093f29c0defae91347934f060329

query I rowsort
SELECT - col0 + col1 - - col0 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT col0 * 73 * col2 AS col1 FROM tab0
----
2555
532754
57816

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

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

query I rowsort
SELECT + 9 + + col2 * col1 AS col2 FROM tab0 AS cor0
----
106
2847
7471

query I rowsort
SELECT col1 + + 77 AS col0 FROM tab0
----
163
168
174

query I rowsort
SELECT + - 79 * col0 AS col2 FROM tab2 cor0
----
-553
-6162
-6241

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

query I rowsort
SELECT - + ( + col0 ) * - cor0.col0 FROM tab2 cor0
----
49
6084
6241

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

query I rowsort
SELECT ALL - - col2 * col2 + + cor0.col2 FROM tab1 AS cor0
----
2970
3306
9312

query I rowsort
SELECT ALL ( - col1 + col1 ) AS col0 FROM tab1
----
0
0
0

query I rowsort
SELECT ALL + 49 + col1 FROM tab2 AS cor0
----
108
66
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-1599
SELECT + 79 * col1 + 65 DIV + col0 FROM tab1 AS cor0
----
1027
2075
791

skipif mysql # not compatible
query I rowsort label-1599
SELECT + 79 * col1 + 65 / + col0 FROM tab1 AS cor0
----
1027
2075
791

query I rowsort
SELECT DISTINCT + col1 + col1 AS col1 FROM tab0 AS cor0
----
172
182
194

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

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

query I rowsort
SELECT - col1 - + col1 AS col0 FROM tab0 AS cor0
----
-172
-182
-194

query I rowsort
SELECT - 70 + col0 * - 22 AS col0 FROM tab1 AS cor0
----
-136
-1478
-1830

onlyif mysql # use DIV operator for integer division
query I rowsort label-1605
SELECT DISTINCT cor0.col2 + + col2 DIV + 75 FROM tab0 AS cor0
----
1
33
83

skipif mysql # not compatible
query I rowsort label-1605
SELECT DISTINCT cor0.col2 + + col2 / + 75 FROM tab0 AS cor0
----
1
33
83

query I rowsort
SELECT ALL + col2 - - col0 * col2 AS col2 FROM tab2
----
2054
216
3040

query I rowsort
SELECT ( + 81 ) + col0 + - 8 AS col1 FROM tab2
----
151
152
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * + cor0.col2 + ( - col1 ) col0 FROM tab0 AS cor0
----
-132
-7389
-878

query I rowsort
SELECT - col0 + 34 * - cor0.col0 AS col2 FROM tab2 AS cor0
----
-245
-2730
-2765

query I rowsort
SELECT ALL + col1 * col1 AS col0 FROM tab1
----
100
169
676

query I rowsort
SELECT ALL - 1 AS col2 FROM tab1, tab0 AS cor0, tab1 cor1
----
27 values hashing to 84da757b1b7b0069ce25607f39bc08d9

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

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

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

query I rowsort
SELECT ALL 82 AS col0 FROM tab2, tab0 cor0, tab0 AS cor1
----
27 values hashing to 99920d9f7cd9cdccef99cfa459ae6944

query I rowsort
SELECT ALL - + 40 AS col0 FROM tab1 AS cor0
----
-40
-40
-40

query I rowsort
SELECT DISTINCT - col1 * + col2 + col2 * + cor0.col2 AS col1 FROM tab0 AS cor0
----
-1749
-738
-96

query I rowsort
SELECT DISTINCT + tab2.col1 * + col2 FROM tab2
----
1534
646
837

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

query I rowsort
SELECT - 79 AS col0 FROM tab2
----
-79
-79
-79

query I rowsort
SELECT ALL - col1 + col0 + col0 * + col0 * col0 AS col2 FROM tab2 AS cor0
----
319
474571
493101

query I rowsort
SELECT DISTINCT + cor0.col1 * col1 + - col0 - - col1 * col2 FROM tab0 AS cor0
----
10210
15654
9471

query I rowsort
SELECT - cor0.col0 * 67 * - col2 - + cor0.col1 FROM tab1 cor0
----
10828
244406
514547

query I rowsort
SELECT - col0 + ( col1 ) * col0 AS col2 FROM tab0 AS cor0
----
2040
3360
8010

query I rowsort
SELECT ALL + cor0.col2 + - ( 97 ) FROM tab0 AS cor0
----
-15
-64
-96

query I rowsort
SELECT ALL + cor0.col1 * - 23 - col0 FROM tab0 AS cor0
----
-2002
-2182
-2266

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

skipif mysql # not compatible
query I rowsort label-1627
SELECT DISTINCT + + col2 - + CAST ( NULL AS REAL ) AS col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT + - col1 * 2 - + 53 * - col1 AS col2 FROM tab2 cor0
----
1581
3009
867

query I rowsort
SELECT ALL + col1 * + 66 + col1 * + col2 + col0 * 42 AS col0 FROM tab1 AS cor0
----
3246
3918
5466

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

query I rowsort
SELECT DISTINCT - cor0.col0 * ( col0 * col1 + 48 ) FROM tab0 cor0
----
-120505
-50688
-725083

query I rowsort
SELECT DISTINCT - col1 * - ( - 57 * col1 ) FROM tab2 cor0
----
-16473
-198417
-54777

query I rowsort
SELECT DISTINCT col0 * 45 AS col1 FROM tab1 AS cor0
----
135
2880
3600

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + ( - col2 ) + col0 col0 FROM tab1 cor0
----
3
64
80

query I rowsort
SELECT - col2 + 33 FROM tab0 AS cor0
----
-49
0
32

query I rowsort
SELECT ALL col0 * + col0 AS col1 FROM tab1 AS cor0
----
4096
6400
9

query I rowsort
SELECT + - cor0.col2 * + col1 * 44 FROM tab1 cor0
----
-25080
-54912
-61776

query I rowsort
SELECT ALL - + col2 * ( col0 ) FROM tab1 AS cor0
----
-162
-3648
-7680

onlyif mysql # use DIV operator for integer division
query I rowsort label-1639
SELECT + col2 + - col0 DIV tab0.col2 + + col0 * col1 FROM tab0
----
2097
3361
8180

skipif mysql # not compatible
query I rowsort label-1639
SELECT + col2 + - col0 / tab0.col2 + + col0 * col1 FROM tab0
----
2097
3361
8180

query III rowsort
SELECT * FROM tab1 WHERE + col1 NOT IN ( col1 / col1 + tab1.col1 * + col2 - col1 )
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d

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

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

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

query I rowsort
SELECT + col1 * - tab1.col1 * col1 FROM tab1 WHERE NOT ( NULL ) <= col0
----

query I rowsort
SELECT col2 + col2 + + col1 * col0 AS col0 FROM tab2
----
1419
271
4654

query I rowsort
SELECT col0 + col0 + - col1 * col1 AS col2 FROM tab1
----
-670
-9
28

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

query I rowsort
SELECT DISTINCT col0 * col1 - col0 AS col1 FROM tab2
----
1264
210
4524

query I rowsort
SELECT col0 * + col2 + col1 * + col1 FROM tab1 WHERE NULL <= NULL
----

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

query I rowsort
SELECT tab2.col2 + col2 FROM tab2 WHERE NOT NULL = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * col2 * + tab0.col2 col1 FROM tab0
----
611884
93654
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-1653
SELECT ALL + col1 DIV col1 FROM tab0 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-1653
SELECT ALL + col1 / col1 FROM tab0 cor0
----
1
1
1

query I rowsort
SELECT + + 3 * - col0 AS col0 FROM tab2 AS cor0
----
-21
-234
-237

query I rowsort
SELECT DISTINCT + + col2 * col2 * col0 FROM tab0 AS cor0
----
26136
35
598436

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

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

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

query I rowsort
SELECT - col0 - + col0 * col0 * col1 FROM tab2
----
-106176
-1526
-359034

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

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NULL ) NOT IN ( col1 )
----

query I rowsort
SELECT - col0 * - tab2.col0 FROM tab2 WHERE NOT NULL <= NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL BETWEEN NULL AND col2
----

query I rowsort
SELECT ALL + col0 - col0 AS col1 FROM tab1
----
0
0
0

query I rowsort
SELECT ALL col0 * col0 * col0 FROM tab0
----
13824
42875
704969

query I rowsort
SELECT col1 - tab2.col0 * + col0 * + tab2.col1 FROM tab2
----
-106080
-1488
-358897

query III rowsort
SELECT * FROM tab1 WHERE NULL IN ( col1 * col2 * col1 )
----

query I rowsort
SELECT DISTINCT + + col0 + col1 * - 63 FROM tab2 AS cor0
----
-1946
-3639
-992

onlyif mysql # use DIV operator for integer division
query I rowsort label-1669
SELECT ALL col2 + col1 DIV col0 AS col2 FROM tab1 AS cor0
----
57
62
96

skipif mysql # not compatible
query I rowsort label-1669
SELECT ALL col2 + col1 / col0 AS col2 FROM tab1 AS cor0
----
57
62
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * col1 * col0 col0 FROM tab0 AS cor0
----
3395
664118
68112

query I rowsort
SELECT - 58 * - col1 AS col2 FROM tab2 AS cor0
----
1798
3422
986

query I rowsort
SELECT ALL + col0 + - col2 * - 91 FROM tab2 AS cor0
----
2444
2464
3537

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1674
SELECT - 77 DIV + col1 FROM tab1 AS cor0
----
-2
-5
-7

skipif mysql # not compatible
query I rowsort label-1674
SELECT - 77 / + col1 FROM tab1 AS cor0
----
-2
-5
-7

query I rowsort
SELECT DISTINCT + 15 * col1 FROM tab0 AS cor0
----
1290
1365
1455

onlyif mysql # use DIV operator for integer division
query I rowsort label-1676
SELECT 30 DIV col1 AS col2 FROM tab2 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-1676
SELECT 30 / col1 AS col2 FROM tab2 AS cor0
----
0
0
1

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

query I rowsort
SELECT DISTINCT - tab1.col0 + 64 * tab1.col2 * col1 FROM tab1
----
36416
79792
89853

query I rowsort
SELECT DISTINCT 58 AS col2 FROM tab2, tab0, tab2 AS cor0
----
58

query I rowsort
SELECT ALL ( col0 ) + + col1 * col2 + + col1 FROM tab1
----
1341
1433
644

onlyif mysql # use DIV operator for integer division
query I rowsort label-1681
SELECT + tab2.col2 DIV + 7 + col0 * col2 FROM tab2
----
192
2031
3007

skipif mysql # not compatible
query I rowsort label-1681
SELECT + tab2.col2 / + 7 + col0 * col2 FROM tab2
----
192
2031
3007

query I rowsort
SELECT - ( + col0 ) * + col0 + col0 FROM tab2 AS cor0
----
-42
-6006
-6162

query I rowsort
SELECT + 39 * - col2 FROM tab0 AS cor0
----
-1287
-3198
-39

query I rowsort
SELECT DISTINCT cor0.col0 * + 10 FROM tab0, tab1 AS cor0
----
30
640
800

query I rowsort
SELECT - 60 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 067a4b5daf8747042e3b07ca8459859f

query I rowsort
SELECT ALL - cor0.col0 + - cor0.col0 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 27b4e0878ffa5c5df119ac6cfa79ea07

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

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

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

query I rowsort
SELECT DISTINCT col2 * - col2 FROM tab0 cor0
----
-1
-1089
-6724

query I rowsort
SELECT ALL + + 27 + - 86 + - cor0.col2 FROM tab1 AS cor0
----
-113
-116
-155

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

query I rowsort
SELECT tab0.col0 + col2 + + col2 FROM tab0
----
253
37
90

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab0, tab1 AS cor1, tab0 AS cor2
----
972 values hashing to 95920403df268a272c4e933cd0bbe0be

query I rowsort
SELECT DISTINCT col1 + + ( ( col1 ) ) FROM tab0
----
172
182
194

query I rowsort
SELECT DISTINCT - 7 - cor0.col0 * tab1.col2 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 3573ee987fecf1d646df71fca0dc975f

query I rowsort
SELECT ALL 50 + + 26 FROM tab2
----
76
76
76

query I rowsort
SELECT + - 72 * + col2 AS col1 FROM tab1 AS cor0
----
-3888
-4104
-6912

query I rowsort
SELECT DISTINCT - + 13 FROM tab1 AS cor0
----
-13

query I rowsort
SELECT + 99 * - col2 + col2 AS col2 FROM tab2 cor0
----
-2548
-2646
-3724

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1701
SELECT DISTINCT CAST( col2 AS SIGNED ) + col1 FROM tab2 AS cor0
----
55
58
85

skipif mysql # not compatible
query I rowsort label-1701
SELECT DISTINCT CAST ( col2 AS INTEGER ) + col1 FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT + col0 + - 28 AS col1 FROM tab1 AS cor0
----
-25
36
52

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

query I rowsort
SELECT - 98 AS col2 FROM tab2 AS cor0
----
-98
-98
-98

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

query I rowsort
SELECT ALL + ( ( col0 ) ) AS col1 FROM tab1 AS cor0
----
3
64
80

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

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

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

query I rowsort
SELECT + + col2 + 72 * col1 * + col1 FROM tab1 AS cor0
----
12264
48726
7257

query I rowsort
SELECT ALL 82 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to f318fd9dac2de7af4b82cc7574bbca2c

query I rowsort
SELECT + 29 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 1e7120ba8e9191084172ddced17e5eb2

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1713
SELECT ALL + - col2 - col1 DIV - col1 AS col2 FROM tab2 AS cor0
----
-25
-26
-37

skipif mysql # not compatible
query I rowsort label-1713
SELECT ALL + - col2 - col1 / - col1 AS col2 FROM tab2 AS cor0
----
-25
-26
-37

onlyif mysql # use DIV operator for integer division
query I rowsort label-1714
SELECT - col0 + 45 DIV - col1 AS col1 FROM tab2
----
-78
-8
-81

skipif mysql # not compatible
query I rowsort label-1714
SELECT - col0 + 45 / - col1 AS col1 FROM tab2
----
-78
-8
-81

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

query I rowsort
SELECT ( col0 ) + col1 AS col0 FROM tab2
----
137
38
96

query I rowsort
SELECT ALL - ( + col0 ) * col0 * col2 AS col1 FROM tab2 AS cor0
----
-1323
-158184
-237158

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

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

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

query I rowsort
SELECT DISTINCT - cor0.col0 + + 65 * + col2 AS col0 FROM tab0 AS cor0
----
2121
30
5241

query I rowsort
SELECT ALL + ( ( col0 ) ) * + cor0.col2 + col2 FROM tab0 AS cor0
----
36
7380
825

query I rowsort
SELECT - 70 FROM tab1, tab2 AS cor0, tab0 AS cor1, tab2 AS cor2
----
81 values hashing to d0e68852e45abdcfbe6812110913ee01

query I rowsort
SELECT DISTINCT ( + col0 ) FROM tab0
----
24
35
89

query I rowsort
SELECT ALL - 8 AS col0 FROM tab2, tab1 cor0
----
9 values hashing to 47f43f23dcd23959d97d8e3b0aab692e

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

skipif mysql # not compatible
query I rowsort label-1725
SELECT DISTINCT + CAST ( NULL AS REAL ) * col0 * - col2 FROM tab1
----
NULL

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

query I rowsort
SELECT ALL + 88 * - col1 AS col2 FROM tab1 AS cor0
----
-1144
-2288
-880

query I rowsort
SELECT 92 + + col0 AS col0 FROM tab0 cor0
----
116
127
181

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + - col0 * col0 col1 FROM tab1 AS cor0
----
-12
-4160
-6480

query I rowsort
SELECT DISTINCT cor0.col2 * col2 FROM tab0 AS cor0
----
1
1089
6724

query I rowsort
SELECT ALL - 78 * col2 + - col1 AS col0 FROM tab0 AS cor0
----
-175
-2660
-6487

query I rowsort
SELECT DISTINCT - col1 * + cor0.col0 - 57 FROM tab0 AS cor0
----
-2121
-3452
-8156

onlyif mysql # use DIV operator for integer division
query I rowsort label-1733
SELECT 58 + - cor0.col2 DIV + cor0.col0 FROM tab0 AS cor0
----
57
58
58

skipif mysql # not compatible
query I rowsort label-1733
SELECT 58 + - cor0.col2 / + cor0.col0 FROM tab0 AS cor0
----
57
58
58

onlyif mysql # use DIV operator for integer division
query I rowsort label-1734
SELECT + - col1 DIV - cor0.col1 col2 FROM tab0 AS cor0
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1734
SELECT + - col1 / - cor0.col1 col2 FROM tab0 AS cor0
----
1
1
1

query I rowsort
SELECT - 95 * + col0 FROM tab2 AS cor0
----
-665
-7410
-7505

query I rowsort
SELECT ALL 27 * col0 FROM tab1
----
1728
2160
81

query I rowsort
SELECT - + 55 AS col0 FROM tab0 AS cor0
----
-55
-55
-55

query I rowsort
SELECT 18 AS col0 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 903ac227935c1532300db45a8537c595

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

query I rowsort
SELECT - - col2 * - ( - col2 ) FROM tab0 AS cor0
----
1
1089
6724

query I rowsort
SELECT - col1 * 29 * + cor0.col0 AS col0 FROM tab0 cor0
----
-234871
-59856
-98455

query I rowsort
SELECT + 12 AS col1 FROM tab0
----
12
12
12

onlyif mysql # use DIV operator for integer division
query I rowsort label-1743
SELECT - col1 DIV + 97 AS col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1743
SELECT - col1 / + 97 AS col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL cor0.col1 * ( col1 ) + + col1 FROM tab2 AS cor0
----
306
3540
992

query I rowsort
SELECT DISTINCT + cor0.col1 * 56 AS col0 FROM tab1 AS cor0
----
1456
560
728

query I rowsort
SELECT + 59 * - cor0.col0 * col2 + - ( col0 ) AS col2 FROM tab1 AS cor0
----
-215296
-453200
-9561

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

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

query I rowsort
SELECT - ( - col1 ) * col1 + - col0 AS col0 FROM tab0 AS cor0
----
7372
8192
9374

query I rowsort
SELECT - + 73 + - col2 * col1 AS col2 FROM tab0 AS cor0
----
-170
-2911
-7535

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col2 ) col1 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT + - ( col0 ) + col1 + - col2 FROM tab1 AS cor0
----
-111
-163
-31

query I rowsort
SELECT - 27 + + col0 AS col1 FROM tab0 AS cor0
----
-3
62
8

query I rowsort
SELECT + col1 + - ( ( col2 ) ) * col2 AS col1 FROM tab1
----
-2890
-3239
-9203

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

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

query I rowsort
SELECT DISTINCT + tab1.col1 FROM tab1, tab0 AS cor0
----
10
13
26

query I rowsort
SELECT DISTINCT col0 * col2 + col2 * + col1 FROM tab0
----
132
14760
3630

onlyif mysql # use DIV operator for integer division
query I rowsort label-1757
SELECT ALL - 12 DIV 78 + - col2 FROM tab0 AS cor0
----
-1
-33
-82

skipif mysql # not compatible
query I rowsort label-1757
SELECT ALL - 12 / 78 + - col2 FROM tab0 AS cor0
----
-1
-33
-82

query I rowsort
SELECT ALL 34 AS col1 FROM tab1 AS cor0
----
34
34
34

onlyif mysql # use DIV operator for integer division
query I rowsort label-1759
SELECT DISTINCT - 30 * - col1 + - cor0.col2 DIV col0 + + col2 * col2 AS col2 FROM tab1 AS cor0
----
3549
3678
9605

skipif mysql # not compatible
query I rowsort label-1759
SELECT DISTINCT - 30 * - col1 + - cor0.col2 / col0 + + col2 * col2 AS col2 FROM tab1 AS cor0
----
3549
3678
9605

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

query I rowsort
SELECT DISTINCT + - col0 * + col1 + + col0 + - 89 AS col2 FROM tab2 AS cor0
----
-1353
-299
-4613

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1763
SELECT ALL + tab1.col0 DIV - CAST( col2 * col0 AS SIGNED ) + - col1 FROM tab1
----
-10
-13
-26

skipif mysql # not compatible
query I rowsort label-1763
SELECT ALL + tab1.col0 / - CAST ( col2 * col0 AS INTEGER ) + - col1 FROM tab1
----
-10
-13
-26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + + ( + ( col2 ) ) col1 FROM tab2
----
104
117
34

query I rowsort
SELECT - col0 - col1 FROM tab2
----
-137
-38
-96

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

query I rowsort
SELECT ALL - 21 * col2 AS col1 FROM tab0 AS cor0
----
-1722
-21
-693

onlyif mysql # use DIV operator for integer division
query I rowsort label-1768
SELECT ALL - + 41 + + col1 + col0 * 19 DIV + 21 AS col0 FROM tab0 AS cor0
----
130
66
87

skipif mysql # not compatible
query I rowsort label-1768
SELECT ALL - + 41 + + col1 + col0 * 19 / + 21 AS col0 FROM tab0 AS cor0
----
130
66
87

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

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

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

query I rowsort
SELECT ALL + - col2 * 88 - - col1 * ( col0 ) AS col0 FROM tab2 AS cor0
----
-2001
-2159
2314

query I rowsort
SELECT - col1 * 78 AS col1 FROM tab0 AS cor0
----
-6708
-7098
-7566

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + + col1 col2 FROM tab0 AS cor0
----
110
132
180

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - col1 col1 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT DISTINCT + 17 * col2 FROM tab1 AS cor0
----
1632
918
969

query I rowsort
SELECT + + col2 - + col2 * col0 AS col1 FROM tab1 AS cor0
----
-108
-3591
-7584

query I rowsort
SELECT + 39 * + col1 AS col2 FROM tab2 AS cor0
----
1209
2301
663

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1780
SELECT ALL 24 DIV cor0.col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1780
SELECT ALL 24 / cor0.col2 FROM tab1 AS cor0
----
0
0
0

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 - - col0 col1 FROM tab2 AS cor0
----
137
38
96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1783
SELECT DISTINCT cor0.col0 * - CAST( + 61 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-1464
-2135
-5429

skipif mysql # not compatible
query I rowsort label-1783
SELECT DISTINCT cor0.col0 * - CAST ( + 61 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-1464
-2135
-5429

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

skipif mysql # not compatible
query I rowsort label-1784
SELECT col1 * - CAST ( - ( - col0 ) + 40 AS INTEGER ) * col1 FROM tab0 AS cor0
----
-1068249
-473344
-705675

query I rowsort
SELECT DISTINCT + 26 AS col2 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
26

query I rowsort
SELECT - col1 + 49 * + 73 FROM tab1 AS cor0
----
3551
3564
3567

onlyif mysql # use DIV operator for integer division
query I rowsort label-1787
SELECT + col0 DIV ( 56 ) FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-1787
SELECT + col0 / ( 56 ) FROM tab0 AS cor0
----
0
0
1

query I rowsort
SELECT + + col1 + ( col0 + - col2 ) FROM tab0 AS cor0
----
131
77
98

query I rowsort
SELECT DISTINCT - col2 + 27 * col2 AS col1 FROM tab2 AS cor0
----
676
702
988

query I rowsort
SELECT ALL + cor0.col0 + + col0 * col2 AS col2 FROM tab0 AS cor0
----
70
7387
816

query I rowsort
SELECT DISTINCT - col0 + + col0 FROM tab0 cor0
----
0

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

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

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

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

skipif mysql # not compatible
query I rowsort label-1795
SELECT - col1 / - 52 FROM tab2 AS cor0
----
0
0
1

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

query I rowsort
SELECT col2 * 49 + + 50 * + col2 FROM tab2 AS cor0
----
2574
2673
3762

onlyif mysql # use DIV operator for integer division
query I rowsort label-1798
SELECT ALL + + col2 * col2 + col2 DIV + cor0.col1 col0 FROM tab0 cor0
----
1
1089
6724

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1798
SELECT ALL + + col2 * col2 + col2 / + cor0.col1 col0 FROM tab0 cor0
----
1
1089
6724

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

query I rowsort
SELECT ALL col1 * - col0 + + col0 FROM tab2 AS cor0
----
-1264
-210
-4524

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

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

query I rowsort
SELECT + - col0 - 34 FROM tab2 cor0
----
-112
-113
-41

query I rowsort
SELECT ALL col1 + + cor0.col1 FROM tab2 AS cor0
----
118
34
62

query I rowsort
SELECT - col2 + + col0 + cor0.col2 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT - cor0.col2 FROM tab1, tab0 cor0, tab1 cor1
----
27 values hashing to 6a43e7f15194af73fe1c83385e6ebebc

query I rowsort
SELECT ALL - - cor0.col2 * col2 AS col0 FROM tab0 AS cor0
----
1
1089
6724

query I rowsort
SELECT + col1 * 26 FROM tab0 AS cor0
----
2236
2366
2522

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

query I rowsort
SELECT + ( cor0.col1 ) AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1813
SELECT - col1 - - 19 * col2 DIV - col0 FROM tab1
----
-26
-35
-368

skipif mysql # not compatible
query I rowsort label-1813
SELECT - col1 - - 19 * col2 / - col0 FROM tab1
----
-26
-35
-368

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab0 cor0, tab0, tab0 AS cor1
----
972 values hashing to ea0f747588ddf5869ee18a5e22d9f237

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

query I rowsort
SELECT ALL + col2 * - col0 + + 23 FROM tab2 AS cor0
----
-166
-2005
-2979

query I rowsort
SELECT ALL + col2 - col2 * + 17 * col1 AS col0 FROM tab1 AS cor0
----
-21120
-23814
-9633

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col2 * col2 col0 FROM tab2 AS cor0
----
-1444
-676
-729

query I rowsort
SELECT ( - col2 ) + + col0 * + col2 - col1 AS col0 FROM tab2 AS cor0
----
131
1943
2947

onlyif mysql # use DIV operator for integer division
query I rowsort label-1820
SELECT DISTINCT - 10 + col2 DIV col0 AS col1 FROM tab2 AS cor0
----
-10
-7

skipif mysql # not compatible
query I rowsort label-1820
SELECT DISTINCT - 10 + col2 / col0 AS col1 FROM tab2 AS cor0
----
-10
-7

query I rowsort
SELECT ( + 38 ) - - col0 AS col2 FROM tab1
----
102
118
41

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

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

query I rowsort
SELECT DISTINCT ( - 67 ) AS col1 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
-67

query I rowsort
SELECT + col2 + col1 + + col2 * + col2 FROM tab2
----
1499
761
787

query I rowsort
SELECT DISTINCT col1 * col1 + col1 FROM tab1
----
110
182
702

query I rowsort
SELECT DISTINCT - 82 * + col1 + - tab0.col0 AS col0 FROM tab0
----
-7076
-7551
-7989

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab0.col1 col0 FROM tab0, tab1, tab1 cor0
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd

query I rowsort
SELECT - col1 * cor0.col2 + col0 * col2 * 63 FROM tab2 AS cor0
----
11070
126230
188480

query I rowsort
SELECT + col1 * 59 FROM tab2 AS cor0
----
1003
1829
3481

query I rowsort
SELECT DISTINCT 53 * col1 + - col1 - col1 * col0 FROM tab0
----
-3367
1649
2408

query I rowsort
SELECT - col2 + - tab1.col0 * col1 FROM tab1
----
-1136
-132
-697

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 20 + + col1 col1 FROM tab2 AS cor0
----
37
51
79

query I rowsort
SELECT DISTINCT - col2 * col2 + col2 * col1 FROM tab1 AS cor0
----
-1512
-2679
-7968

query I rowsort
SELECT - 69 * + col0 FROM tab1
----
-207
-4416
-5520

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

query I rowsort
SELECT DISTINCT col2 + tab1.col2 FROM tab1
----
108
114
192

query I rowsort
SELECT + 20 + + col2 * ( col1 ) FROM tab2
----
1554
666
857

query I rowsort
SELECT - + ( col0 ) * + cor0.col2 AS col1 FROM tab1 cor0
----
-162
-3648
-7680

query I rowsort
SELECT col2 * + 40 AS col2 FROM tab0 AS cor0
----
1320
3280
40

query I rowsort
SELECT - 91 * + ( col1 ) AS col0 FROM tab1 AS cor0
----
-1183
-2366
-910

query I rowsort
SELECT + col1 * 50 FROM tab1 AS cor0
----
1300
500
650

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor1.col0 - - 70 * 13 col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 305951300ff3d5d9491c7534602c692e

query I rowsort
SELECT - 10 + 5 AS col1 FROM tab0 AS cor0
----
-5
-5
-5

query I rowsort
SELECT - 71 * ( col0 ) * ( col0 * col2 ) FROM tab0 AS cor0
----
-1349568
-46116062
-86975

query I rowsort
SELECT + 92 + col0 AS col2 FROM tab0 AS cor0
----
116
127
181

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

skipif mysql # not compatible
query I rowsort label-1848
SELECT - - 83 / + col1 AS col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT + ( ( - col0 ) ) AS col0 FROM tab0 AS cor0
----
-24
-35
-89

query I rowsort
SELECT - 4 AS col0 FROM tab0 AS cor0
----
-4
-4
-4

query I rowsort
SELECT - - cor0.col1 * + col0 + + col1 * col1 FROM tab0 AS cor0
----
12804
16380
9460

query I rowsort
SELECT ALL col0 * col1 * + tab0.col1 FROM tab0
----
177504
329315
737009

query I rowsort
SELECT DISTINCT 25 FROM tab2, tab0 cor0
----
25

query I rowsort
SELECT DISTINCT tab0.col2 + + tab0.col1 AS col1 FROM tab0, tab2 AS cor0
----
119
173
98

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

skipif mysql # not compatible
query I rowsort label-1855
SELECT - col0 / - CAST ( NULL AS INTEGER ) + + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query IIIIII rowsort
SELECT ALL * FROM tab1, tab2 AS cor0 WHERE NULL = NULL
----

query I rowsort
SELECT + col1 * col1 * + col0 AS col1 FROM tab1
----
13520
2028
6400

query I rowsort
SELECT + 52 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 7f4ae30893ab330784829711032ae599

query I rowsort
SELECT + cor0.col0 * cor0.col0 + + 95 AS col2 FROM tab1 cor0
----
104
4191
6495

query I rowsort
SELECT DISTINCT col1 * - 9 AS col2 FROM tab0
----
-774
-819
-873

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

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

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

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

query I rowsort
SELECT DISTINCT + - col0 * - 48 FROM tab0 AS cor0
----
1152
1680
4272

query I rowsort
SELECT ALL + col2 * - 16 + 95 FROM tab0 AS cor0
----
-1217
-433
79

query I rowsort
SELECT - cor0.col0 * 87 + col2 FROM tab0 cor0
----
-2055
-3044
-7661

query I rowsort
SELECT - 44 FROM tab2, tab0 AS cor0, tab0 cor1
----
27 values hashing to 38f05fdaaf15e64b62f27cd96f73fb79

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

query I rowsort
SELECT DISTINCT 21 FROM tab1 AS cor0
----
21

query I rowsort
SELECT DISTINCT + 69 + + col2 * + col2 FROM tab0 AS cor0
----
1158
6793
70

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

skipif mysql # not compatible
query I rowsort label-1871
SELECT CAST ( NULL AS REAL ) FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 23 * + col1 + col1 AS col0 FROM tab2 AS cor0
----
-1298
-374
-682

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

query I rowsort
SELECT ALL + col1 + 46 FROM tab0 AS cor0
----
132
137
143

query I rowsort
SELECT cor0.col1 + + cor1.col2 FROM tab0, tab0 cor0, tab0 AS cor1
----
27 values hashing to 940a6b82c800eab4d330c129dc095a0c

query I rowsort
SELECT ALL - 20 AS col2 FROM tab2
----
-20
-20
-20

query I rowsort
SELECT DISTINCT 34 FROM tab2, tab1, tab1 AS cor0
----
34

query I rowsort
SELECT ALL + 51 AS col2 FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to 02a7de94365b8cb5b5cb92c4b1d1e7c5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab1.col1 * col2 * col1 col2 FROM tab1
----
16224
36504
5700

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

query I rowsort
SELECT - 43 FROM tab2
----
-43
-43
-43

query I rowsort
SELECT ( + ( col0 ) ) * col2 + - col0 FROM tab0
----
0
7209
768

query I rowsort
SELECT + - col0 + 56 AS col2 FROM tab2 AS cor0
----
-22
-23
49

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab1 AS cor0, tab1 AS cor1, tab0, tab1 AS cor2
----
3645 values hashing to 9a402ad2669465fb284445c499a48f2c

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

skipif mysql # not compatible
query I rowsort label-1885
SELECT DISTINCT - + col1 / - ( col1 * - col2 + + 20 ) AS col0 FROM tab0 AS cor0
----
-1
0

query I rowsort
SELECT col1 * + 4 AS col0 FROM tab1 AS cor0
----
104
40
52

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

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

query I rowsort
SELECT col2 * col1 * col1 FROM tab0 AS cor0
----
244068
679042
9409

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

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

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

skipif mysql # not compatible
query I rowsort label-1892
SELECT - + col1 - CAST ( - col0 AS INTEGER ) FROM tab0 AS cor0
----
-2
-62
-62

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 col1 + - ( col0 ) FROM tab2 AS cor0
----
-19
-62
24

query I rowsort
SELECT ALL - cor0.col0 FROM tab0 cor0
----
-24
-35
-89

query I rowsort
SELECT DISTINCT - cor0.col2 * 4 AS col1 FROM tab1 AS cor0
----
-216
-228
-384

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

query I rowsort
SELECT ALL 20 AS col2 FROM tab0 cor0
----
20
20
20

query I rowsort
SELECT DISTINCT + col1 + - cor0.col0 * - cor0.col1 FROM tab2 AS cor0
----
1360
248
4661

query I rowsort
SELECT DISTINCT + + col0 * + col2 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT ALL 64 * + col2 * - col0 AS col2 FROM tab0
----
-2240
-467072
-50688

query I rowsort
SELECT ALL + 40 AS col1 FROM tab0 AS cor0
----
40
40
40

query I rowsort
SELECT ALL + 5 + col1 FROM tab1 AS cor0
----
15
18
31

query I rowsort
SELECT DISTINCT - - col0 + col0 * - col2 AS col2 FROM tab0 AS cor0
----
-7209
-768
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1905
SELECT DISTINCT - CAST( + col1 AS SIGNED ) - tab1.col1 FROM tab1
----
-20
-26
-52

skipif mysql # not compatible
query I rowsort label-1905
SELECT DISTINCT - CAST ( + col1 AS INTEGER ) - tab1.col1 FROM tab1
----
-20
-26
-52

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

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

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

query I rowsort
SELECT 22 * 78 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to fad42a5bc3e8cc51ee8ab3910e50e70f

onlyif mysql # use DIV operator for integer division
query I rowsort label-1909
SELECT ALL + col0 + col1 DIV - ( - cor0.col2 ) + + col0 * + ( col2 ) FROM tab0 AS cor0
----
167
7388
818

skipif mysql # not compatible
query I rowsort label-1909
SELECT ALL + col0 + col1 / - ( - cor0.col2 ) + + col0 * + ( col2 ) FROM tab0 AS cor0
----
167
7388
818

query I rowsort
SELECT ALL + - col1 + cor0.col1 FROM tab2 cor0
----
0
0
0

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + col0 * col1 col1 FROM tab1
----
24
583
944

query I rowsort
SELECT col1 + + tab1.col2 AS col0 FROM tab1
----
109
67
80

query I rowsort
SELECT + 17 * + col1 FROM tab0
----
1462
1547
1649

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

query I rowsort
SELECT ALL - col0 * 14 FROM tab2 AS cor0
----
-1092
-1106
-98

query I rowsort
SELECT - - cor0.col2 + 1 AS col1 FROM tab1 cor0
----
55
58
97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1918
SELECT col2 * CAST( - col0 AS SIGNED ) FROM tab0 AS cor0
----
-35
-7298
-792

skipif mysql # not compatible
query I rowsort label-1918
SELECT col2 * CAST ( - col0 AS INTEGER ) FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT col0 + ( 3 ) * col0 FROM tab0 AS cor0
----
140
356
96

query I rowsort
SELECT DISTINCT + tab0.col0 * - col2 AS col0 FROM tab0
----
-35
-7298
-792

query I rowsort
SELECT DISTINCT - col0 + - col1 + ( col0 ) FROM tab2
----
-17
-31
-59

query I rowsort
SELECT DISTINCT col2 * - col1 + 77 AS col0 FROM tab0
----
-20
-2761
-7385

query I rowsort
SELECT - 58 * col1 + - tab1.col2 AS col0 FROM tab1
----
-1562
-637
-850

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + + col1 * col1 col1 FROM tab2 AS cor0
----
327
3507
988

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

query I rowsort
SELECT + 50 * + 9 + col1 AS col0 FROM tab1 AS cor0
----
460
463
476

query I rowsort
SELECT + ( ( - col0 ) ) - col2 FROM tab0 AS cor0
----
-171
-36
-57

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1930
SELECT DISTINCT - + 43 DIV 45 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1930
SELECT DISTINCT - + 43 / 45 FROM tab1 AS cor0
----
0

query I rowsort
SELECT + col2 - ( col1 ) * + 38 FROM tab1 AS cor0
----
-323
-398
-934

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + cor0.col1 col0 FROM tab0 AS cor0
----
-86
-91
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 56 * col0 col0 FROM tab2 cor0
----
392
4368
4424

query I rowsort
SELECT ALL - 80 FROM tab1 AS cor0
----
-80
-80
-80

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

skipif mysql # not compatible
query I rowsort label-1935
SELECT - col1 * - col0 - col0 * CAST ( col0 AS INTEGER ) FROM tab0 AS cor0
----
1488
178
2170

query I rowsort
SELECT ALL cor0.col0 + - 88 * + col0 AS col1 FROM tab2 AS cor0
----
-609
-6786
-6873

onlyif mysql # use DIV operator for integer division
query I rowsort label-1937
SELECT - + col1 DIV + col0 - col1 AS col1 FROM tab1 AS cor0
----
-10
-13
-34

skipif mysql # not compatible
query I rowsort label-1937
SELECT - + col1 / + col0 - col1 AS col1 FROM tab1 AS cor0
----
-10
-13
-34

query I rowsort
SELECT ALL cor0.col2 * + 47 AS col2 FROM tab1 AS cor0
----
2538
2679
4512

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

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

query I rowsort
SELECT DISTINCT + ( 46 ) * - col2 + - col1 AS col1 FROM tab0 AS cor0
----
-143
-1604
-3863

query I rowsort
SELECT col1 + - col1 * col2 FROM tab1
----
-1235
-1378
-560

query I rowsort
SELECT ALL 71 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to c1aace5d5fe27721cc925552513c85c0

query I rowsort
SELECT DISTINCT + 68 FROM tab0, tab0 AS cor0
----
68

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab2 AS cor0 CROSS JOIN tab2, tab1 AS cor1
----
972 values hashing to 4c46de5c1773124597e14f3b372fc4ea

query I rowsort
SELECT ALL tab2.col1 + col0 * + col2 + + col0 AS col0 FROM tab2
----
2165
227
3098

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

query I rowsort
SELECT + - 67 * - col0 - - col1 AS col0 FROM tab2 AS cor0
----
500
5285
5310

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1948
SELECT ALL - CAST ( NULL AS INTEGER ) + - col2 * - col0 col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col1 * 4 col0 FROM tab2 cor0
----
124
236
68

query I rowsort
SELECT DISTINCT + - col2 + + col2 * - col0 FROM tab2 AS cor0
----
-2054
-216
-3040

query I rowsort
SELECT DISTINCT + + ( ( col2 ) ) FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT - col0 - col1 FROM tab2 AS cor0
----
-137
-38
-96

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

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

query I rowsort
SELECT ALL + cor0.col1 * col0 + col1 AS col1 FROM tab2 cor0
----
1360
248
4661

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

query I rowsort
SELECT col2 * - col0 * tab1.col2 FROM tab1
----
-207936
-737280
-8748

query I rowsort
SELECT ( col1 ) + + col2 AS col2 FROM tab2
----
55
58
85

query I rowsort
SELECT DISTINCT tab2.col1 + - tab2.col0 FROM tab2
----
-19
-62
24

query I rowsort
SELECT ALL + col0 * + tab2.col0 + col0 FROM tab2
----
56
6162
6320

query I rowsort
SELECT 34 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 1146d159f0b9b4378a8b738b963f7039

onlyif mysql # use DIV operator for integer division
query I rowsort label-1962
SELECT DISTINCT 52 + - col2 DIV + tab0.col1 col0 FROM tab0
----
52

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1962
SELECT DISTINCT 52 + - col2 / + tab0.col1 col0 FROM tab0
----
52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 84 + cor0.col0 col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 066df8b573430e3d35c6e354ddc853b6

query I rowsort
SELECT DISTINCT - 67 * + ( col2 * col2 ) AS col0 FROM tab1
----
-195372
-217683
-617472

query I rowsort
SELECT ALL - 61 AS col2 FROM tab2, tab0 cor0
----
9 values hashing to 51f53697966a79d306a4570537cd91a1

query I rowsort
SELECT ALL - 86 FROM tab2
----
-86
-86
-86

query I rowsort
SELECT - 29 + 24 * col1 FROM tab1 AS cor0
----
211
283
595

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( tab0.col1 ) * col0 + tab0.col0 col0 FROM tab0
----
2088
3430
8188

query I rowsort
SELECT ( - col2 + col2 ) * - col1 AS col2 FROM tab1
----
0
0
0

query I rowsort
SELECT - 43 AS col1 FROM tab2
----
-43
-43
-43

query I rowsort
SELECT DISTINCT + ( - 31 ) AS col0 FROM tab0
----
-31

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

query I rowsort
SELECT DISTINCT + ( + cor0.col2 ) - + col1 * + 98 AS col1 FROM tab1 AS cor0
----
-1178
-2494
-923

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

query I rowsort
SELECT DISTINCT + col1 + col1 + + col0 * 21 FROM tab2 AS cor0
----
1693
1756
209

query I rowsort
SELECT + ( - col2 ) * ( + 43 ) FROM tab2
----
-1118
-1161
-1634

query I rowsort
SELECT + 92 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 516fa45c8b06f9f67d6e500bfd435c1a

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

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

query I rowsort
SELECT DISTINCT 82 + col1 * col1 * - col2 FROM tab0 AS cor0
----
-243986
-678960
-9327

query I rowsort
SELECT ALL - col1 * col0 - col1 * + 38 AS col1 FROM tab1 AS cor0
----
-1020
-1066
-1534

query I rowsort
SELECT - + cor0.col1 * - col0 + col2 FROM tab2 AS cor0
----
1381
244
4628

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

query I rowsort
SELECT DISTINCT - + cor0.col0 * col1 + col0 * + col2 FROM tab1 AS cor0
----
3008
6640
84

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

skipif mysql # not compatible
query I rowsort label-1986
SELECT 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-1987
SELECT col1 + ( col2 ) + + col0 DIV 10 FROM tab2 AS cor0
----
58
62
92

skipif mysql # not compatible
query I rowsort label-1987
SELECT col1 + ( col2 ) + + col0 / 10 FROM tab2 AS cor0
----
58
62
92

query I rowsort
SELECT - col1 + + ( - cor0.col1 ) * col2 FROM tab0 AS cor0
----
-194
-2924
-7553

query I rowsort
SELECT - - cor0.col0 * + 60 AS col2 FROM tab2 AS cor0
----
420
4680
4740

query I rowsort
SELECT DISTINCT - + cor0.col1 * 78 + col1 FROM tab1 AS cor0
----
-1001
-2002
-770

query I rowsort
SELECT cor0.col0 AS col1 FROM tab1 cor0
----
3
64
80

query I rowsort
SELECT ALL col0 + ( 8 ) FROM tab2 AS cor0
----
15
86
87

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

query I rowsort
SELECT ALL + col1 * 74 + + col1 FROM tab2 AS cor0
----
1275
2325
4425

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

query I rowsort
SELECT - - 14 * col1 FROM tab2 AS cor0
----
238
434
826

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

query I rowsort
SELECT DISTINCT + col2 * cor0.col2 FROM tab0 cor0
----
1
1089
6724

query I rowsort
SELECT col1 + - col1 * + col1 FROM tab2 cor0
----
-272
-3422
-930

query I rowsort
SELECT + + ( col0 ) AS col2 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT ALL + col1 * col1 + cor0.col1 FROM tab2 AS cor0
----
306
3540
992

onlyif mysql # use DIV operator for integer division
query I rowsort label-2002
SELECT - 59 DIV - 42 FROM tab2 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2002
SELECT - 59 / - 42 FROM tab2 cor0
----
1
1
1

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

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

query I rowsort
SELECT - col0 - + 31 AS col1 FROM tab2 AS cor0
----
-109
-110
-38

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

query I rowsort
SELECT + 95 * - ( col0 ) + - col0 AS col2 FROM tab0 AS cor0
----
-2304
-3360
-8544

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2007
SELECT + CAST( + col1 AS SIGNED ) FROM tab2 AS cor0
----
17
31
59

skipif mysql # not compatible
query I rowsort label-2007
SELECT + CAST ( + col1 AS INTEGER ) FROM tab2 AS cor0
----
17
31
59

query I rowsort
SELECT ALL + - cor0.col1 FROM tab0, tab2 cor0
----
9 values hashing to ccaa5dd3388d9ee0fea676fa35299fe5

query I rowsort
SELECT - - 0 + col1 * col0 + - col2 * + col1 FROM tab0 AS cor0
----
-774
3298
637

query I rowsort
SELECT 41 * 86 FROM tab0
----
3526
3526
3526

query I rowsort
SELECT DISTINCT 20 * + tab1.col1 + tab1.col1 AS col0 FROM tab1
----
210
273
546

onlyif mysql # use DIV operator for integer division
query I rowsort label-2012
SELECT DISTINCT col0 DIV + col0 + + col0 FROM tab1
----
4
65
81

skipif mysql # not compatible
query I rowsort label-2012
SELECT DISTINCT col0 / + col0 + + col0 FROM tab1
----
4
65
81

query I rowsort
SELECT ALL - cor0.col1 AS col2 FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to d4c673b7444eb9927ec63175b43c6b84

query I rowsort
SELECT ALL col1 + - 84 * col0 * - col0 + col2 FROM tab2
----
4174
511141
524299

query I rowsort
SELECT col2 + + col1 FROM tab2 cor0
----
55
58
85

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

query I rowsort
SELECT - + 82 + - col1 * + cor0.col1 AS col0 FROM tab2 cor0
----
-1043
-3563
-371

query I rowsort
SELECT 37 * - col1 AS col2 FROM tab0
----
-3182
-3367
-3589

query I rowsort
SELECT ALL 47 * tab2.col2 AS col2 FROM tab2
----
1222
1269
1786

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( NULL ) > ( NULL )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-2022
SELECT col2 DIV - cor0.col1 + col0 FROM tab0 AS cor0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-2022
SELECT col2 / - cor0.col1 + col0 FROM tab0 AS cor0
----
24
35
89

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 >= + cor0.col0
----
24
86
33

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col2 col2 FROM tab0, tab2 cor0
----
-26
-27
-38

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

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

query I rowsort
SELECT + col1 + col0 + col2 AS col2 FROM tab1 WHERE NOT ( + col0 + col0 ) < NULL
----

query I rowsort
SELECT + col2 * col0 + - col1 FROM tab0
----
-62
706
7207

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col1 IN ( - col2 + + col1 )
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45

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

query I rowsort
SELECT ALL tab1.col1 AS col1 FROM tab1 WHERE NOT col2 + + col0 = NULL
----

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

query I rowsort
SELECT DISTINCT col2 + tab2.col1 AS col1 FROM tab2
----
55
58
85

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col0 * col1 NOT IN ( col1 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-2035
SELECT + col0 + col1 * col1 + - col2 DIV - col0 AS col1 FROM tab2
----
3559
368
971

skipif mysql # not compatible
query I rowsort label-2035
SELECT + col0 + col1 * col1 + - col2 / - col0 AS col1 FROM tab2
----
3559
368
971

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL <= ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * + col0 col0 FROM tab2
----
189
2028
3002

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * col0 + + tab1.col2 + + col2 col1 FROM tab1
----
-3534
-54
-7488

query I rowsort
SELECT DISTINCT col1 * col1 * col2 FROM tab0
----
244068
679042
9409

query I rowsort
SELECT col0 + + col0 * col2 - + col2 FROM tab0
----
69
7305
783

query I rowsort
SELECT ALL col1 + col0 + + col2 FROM tab1
----
131
189
83

query I rowsort
SELECT DISTINCT + + col2 * col2 + + col1 AS col1 FROM tab1 AS cor0
----
2942
3259
9229

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

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

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

query I rowsort
SELECT ALL col1 + col1 * col0 FROM tab2 AS cor0
----
1360
248
4661

query I rowsort
SELECT DISTINCT - col1 * - col1 + - cor0.col1 * col1 - col1 * + col1 AS col1 FROM tab0 AS cor0
----
-7396
-8281
-9409

query I rowsort
SELECT DISTINCT - tab2.col0 * - col0 FROM tab2
----
49
6084
6241

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

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-2051
SELECT col2 + - col0 * col1 DIV - col1 + + col0 * + col2 DIV col2 AS col0 FROM tab1
----
185
256
60

skipif mysql # not compatible
query I rowsort label-2051
SELECT col2 + - col0 * col1 / - col1 + + col0 * + col2 / col2 AS col0 FROM tab1
----
185
256
60

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 - col0 col1 FROM tab1
----
-7
16
51

query I rowsort
SELECT - + cor0.col1 * - col1 * col0 FROM tab1 AS cor0
----
13520
2028
6400

onlyif mysql # use DIV operator for integer division
query I rowsort label-2054
SELECT ALL + col2 + - col0 DIV + col1 FROM tab0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-2054
SELECT ALL + col2 + - col0 / + col1 FROM tab0
----
1
33
82

query I rowsort
SELECT - col1 + - 39 FROM tab0
----
-125
-130
-136

query I rowsort
SELECT + col1 + - col0 + col1 * col1 FROM tab0
----
7458
8283
9471

query I rowsort
SELECT + col1 + col0 + col2 FROM tab1
----
131
189
83

query I rowsort
SELECT - col2 + + col2 * 24 FROM tab0
----
1886
23
759

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

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

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

query I rowsort
SELECT ALL col1 * ( ( - cor0.col1 ) ) FROM tab1 AS cor0
----
-100
-169
-676

query I rowsort
SELECT + 23 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 546d49aa433406dd83ea19885588e658

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col2 * - col2 col0 FROM tab0 AS cor0
----
1
1089
6724

query I rowsort
SELECT DISTINCT - col2 + 21 * 1 FROM tab0 AS cor0
----
-12
-61
20

query I rowsort
SELECT col2 + + 63 - + col2 FROM tab1 cor0
----
63
63
63

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * + cor0.col0 col0 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT - - col0 * 63 + + col1 - col1 FROM tab0 AS cor0
----
1512
2205
5607

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 83 * - 25 col1 FROM tab1 AS cor0
----
-2075

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

query I rowsort
SELECT ALL ( col2 ) + col2 AS col1 FROM tab1 AS cor0
----
108
114
192

query I rowsort
SELECT DISTINCT cor0.col2 * col0 FROM tab2 cor0
----
189
2028
3002

query I rowsort
SELECT ALL - col0 * 66 FROM tab0 AS cor0
----
-1584
-2310
-5874

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

query I rowsort
SELECT ALL + col1 * col1 + + col2 + + col1 FROM tab2 AS cor0
----
1019
344
3566

query I rowsort
SELECT DISTINCT - - col2 * col0 - col1 FROM tab0 AS cor0
----
-62
706
7207

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2077
SELECT - CAST ( NULL AS INTEGER ) * 36 col2 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col2 * 70 FROM tab0 AS cor0
----
-2310
-5740
-70

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

query I rowsort
SELECT - cor0.col0 * col0 FROM tab1 cor0
----
-4096
-6400
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + - 72 * - col1 col1 FROM tab0
----
6225
6634
6985

onlyif mysql # use DIV operator for integer division
query I rowsort label-2082
SELECT + col2 DIV col1 + - ( - col2 ) AS col0 FROM tab0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-2082
SELECT + col2 / col1 + - ( - col2 ) AS col0 FROM tab0
----
1
33
82

query I rowsort
SELECT ALL - col1 + col0 + col0 * - col2 AS col2 FROM tab0
----
-7300
-854
-97

query I rowsort
SELECT - col2 - col2 FROM tab1
----
-108
-114
-192

query I rowsort
SELECT ALL - col1 + col0 AS col0 FROM tab1
----
-23
54
67

query I rowsort
SELECT DISTINCT col0 + 89 * - col0 AS col2 FROM tab0
----
-2112
-3080
-7832

onlyif mysql # use DIV operator for integer division
query I rowsort label-2087
SELECT DISTINCT tab2.col2 - col2 DIV col0 FROM tab2
----
24
26
38

skipif mysql # not compatible
query I rowsort label-2087
SELECT DISTINCT tab2.col2 - col2 / col0 FROM tab2
----
24
26
38

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

query I rowsort
SELECT - + 44 FROM tab0 AS cor0
----
-44
-44
-44

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col0 + - col0 col2 FROM tab2 AS cor0
----
-14
-156
-158

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

query I rowsort
SELECT DISTINCT - ( - col0 ) * col2 AS col2 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT ( col1 ) + + ( 9 ) FROM tab2 AS cor0
----
26
40
68

onlyif mysql # use DIV operator for integer division
query I rowsort label-2094
SELECT ALL col0 + cor0.col0 DIV + ( col1 ) + cor0.col1 AS col2 FROM tab0 AS cor0
----
110
132
180

skipif mysql # not compatible
query I rowsort label-2094
SELECT ALL col0 + cor0.col0 / + ( col1 ) + cor0.col1 AS col2 FROM tab0 AS cor0
----
110
132
180

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2095
SELECT 51 + col0 / CAST( NULL AS DECIMAL ) AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2095
SELECT 51 + col0 / CAST ( NULL AS REAL ) AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + - col1 * - col0 AS col1 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT DISTINCT + ( + col2 ) AS col2 FROM tab1
----
54
57
96

query I rowsort
SELECT ALL - ( ( + col0 ) * 1 ) FROM tab1
----
-3
-64
-80

query I rowsort
SELECT - col1 * - col0 + - col0 * 77 FROM tab0
----
1246
216
700

query I rowsort
SELECT ALL - + col1 * + col1 AS col1 FROM tab2 cor0
----
-289
-3481
-961

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

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

query I rowsort
SELECT + 50 FROM tab2
----
50
50
50

query I rowsort
SELECT - col2 * col2 + col1 * - cor0.col2 FROM tab0 AS cor0
----
-14186
-3927
-98

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

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

query I rowsort
SELECT col1 * 10 AS col1 FROM tab2 AS cor0
----
170
310
590

query I rowsort
SELECT col1 * - col0 + + col1 FROM tab2
----
-1326
-186
-4543

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

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

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

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

query I rowsort
SELECT ALL + - col0 + 60 - - col0 * - cor0.col2 FROM tab2 AS cor0
----
-136
-2046
-3021

query I rowsort
SELECT DISTINCT + + col0 + - col0 + col1 AS col1 FROM tab2 AS cor0
----
17
31
59

query I rowsort
SELECT - 19 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 339c9d62143bf2f7566b89a1b56eeeb4

query I rowsort
SELECT col2 * cor0.col2 AS col0 FROM tab2 AS cor0
----
1444
676
729

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-2117
SELECT DISTINCT + 27 + - col0 DIV col0 FROM tab0
----
26

skipif mysql # not compatible
query I rowsort label-2117
SELECT DISTINCT + 27 + - col0 / col0 FROM tab0
----
26

query I rowsort
SELECT + + 58 * col1 + col2 * 18 FROM tab1 cor0
----
1606
2480
2482

query I rowsort
SELECT ALL + 84 * col1 AS col2 FROM tab1 AS cor0
----
1092
2184
840

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col0 * ( col1 ) * + cor0.col0 col0 FROM tab1 AS cor0
----
234
40960
83200

query I rowsort
SELECT DISTINCT - cor0.col1 + + 36 FROM tab1 AS cor0
----
10
23
26

query I rowsort
SELECT ALL + 38 * - col1 AS col0 FROM tab1 AS cor0
----
-380
-494
-988

query I rowsort
SELECT DISTINCT 41 * cor0.col1 + col2 FROM tab1 AS cor0
----
1120
467
629

query I rowsort
SELECT DISTINCT - + col2 + col0 * + col0 AS col2 FROM tab2 AS cor0
----
22
6058
6203

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

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

query I rowsort
SELECT ALL col2 * col2 * 36 + + 42 + - col1 AS col2 FROM tab0 AS cor0
----
-19
242015
39160

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

query I rowsort
SELECT ALL + 17 FROM tab0
----
17
17
17

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 71 + col0 + + 48 col0 FROM tab1 AS cor0
----
122
183
199

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

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

query I rowsort
SELECT col0 * - col2 * - ( - col2 + col2 * col2 ) FROM tab1 AS cor0
----
11644416
463644
70041600

query I rowsort
SELECT + 53 + cor0.col1 * ( col2 ) AS col1 FROM tab2 AS cor0
----
1587
699
890

query I rowsort
SELECT DISTINCT + col0 * + col2 + cor0.col0 + col0 AS col2 FROM tab0 AS cor0
----
105
7476
840

query I rowsort
SELECT - 20 * + col2 + ( + ( col0 ) * + cor0.col0 ) AS col0 FROM tab1 AS cor0
----
-1071
2956
4480

query I rowsort
SELECT + + 83 AS col0 FROM tab0 cor0
----
83
83
83

onlyif mysql # use DIV operator for integer division
query I rowsort label-2136
SELECT + col0 DIV - col0 - 12 FROM tab2 AS cor0
----
-13
-13
-13

skipif mysql # not compatible
query I rowsort label-2136
SELECT + col0 / - col0 - 12 FROM tab2 AS cor0
----
-13
-13
-13

query I rowsort
SELECT ALL - 59 * - col1 + - col0 AS col2 FROM tab1 AS cor0
----
1531
526
687

query I rowsort
SELECT DISTINCT + 12 * + tab0.col0 AS col2 FROM tab0
----
1068
288
420

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2139
SELECT - 66 / + col1 col0 FROM tab0
----
0
0
0

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

query I rowsort
SELECT ALL ( - col1 + - col1 ) AS col2 FROM tab2
----
-118
-34
-62

query I rowsort
SELECT - - col1 * cor0.col0 + col1 AS col2 FROM tab1 AS cor0
----
104
1053
650

query I rowsort
SELECT ALL - 46 + col0 AS col1 FROM tab1
----
-43
18
34

query I rowsort
SELECT ALL cor0.col2 * ( cor1.col0 ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2, tab2 cor1
----
27 values hashing to 6a95e15f430b2932fa5393d3187190ee

query I rowsort
SELECT tab0.col0 + 45 FROM tab0, tab0 AS cor0
----
9 values hashing to 71b6e2387bc18cc6b51f06d9b7f2079d

query I rowsort
SELECT DISTINCT + col1 + + ( - 88 ) AS col1 FROM tab0 AS cor0
----
-2
3
9

query I rowsort
SELECT + + col0 * - col0 * col1 AS col1 FROM tab1 AS cor0
----
-234
-40960
-83200

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

query I rowsort
SELECT DISTINCT - col0 * + 13 FROM tab2 AS cor0
----
-1014
-1027
-91

query I rowsort
SELECT - col1 * col0 - col2 * - 28 AS col1 FROM tab2 AS cor0
----
-279
-3874
539

query I rowsort
SELECT - col1 + 91 + + col1 * col2 FROM tab2
----
1566
720
897

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2, tab1 AS cor0, tab2 AS cor1, tab1, tab0 AS cor2
----
3645 values hashing to 95cc5fe1844e2fb00b447bbee94ccc5e

query I rowsort
SELECT + - 75 * cor0.col2 + - col2 AS col2 FROM tab2 AS cor0
----
-1976
-2052
-2888

query I rowsort
SELECT + col1 - - cor0.col0 * col2 FROM tab0 cor0
----
132
7389
878

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

query I rowsort
SELECT ALL + 41 + col0 AS col0 FROM tab1 AS cor0
----
105
121
44

query I rowsort
SELECT DISTINCT - 44 * - ( - cor0.col2 ) FROM tab2 AS cor0
----
-1144
-1188
-1672

query I rowsort
SELECT ALL 49 FROM tab1 AS cor0
----
49
49
49

query I rowsort
SELECT DISTINCT - + cor0.col2 * col1 + col0 FROM tab2 AS cor0
----
-1456
-567
-830

query I rowsort
SELECT DISTINCT - - 36 * col0 + col1 * - col2 * - col1 AS col0 FROM tab1 cor0
----
19104
36612
8004

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-2162
SELECT col2 DIV - ( cor0.col1 ) AS col0 FROM tab1 AS cor0
----
-2
-5
-7

skipif mysql # not compatible
query I rowsort label-2162
SELECT col2 / - ( cor0.col1 ) AS col0 FROM tab1 AS cor0
----
-2
-5
-7

query I rowsort
SELECT DISTINCT + - ( + col2 ) * + col2 AS col0 FROM tab1 AS cor0
----
-2916
-3249
-9216

query I rowsort
SELECT ALL 48 FROM tab0 AS cor0
----
48
48
48

query I rowsort
SELECT + cor0.col2 * + 41 AS col1 FROM tab0, tab0 cor0
----
9 values hashing to 121a956ff89788c5d95fa7316c6730bd

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

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

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

query I rowsort
SELECT col1 + + 75 AS col2 FROM tab0 AS cor0
----
161
166
172

query I rowsort
SELECT - col0 + cor0.col2 + col0 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT DISTINCT + + col1 * + col1 FROM tab1 AS cor0
----
100
169
676

query I rowsort
SELECT - 4 + + 67 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to c3eea92c46f2c49716f386a58b575025

query I rowsort
SELECT ALL + + col1 * + col2 * col2 + col1 FROM tab0 AS cor0
----
194
611975
93740

onlyif mysql # use DIV operator for integer division
query I rowsort label-2173
SELECT ALL cor0.col1 DIV cor0.col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 245313dc4e9fc19df7ee93651efe9bf2

skipif mysql # not compatible
query I rowsort label-2173
SELECT ALL cor0.col1 / cor0.col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 245313dc4e9fc19df7ee93651efe9bf2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * 78 col2 FROM tab0 AS cor0
----
6708
7098
7566

query I rowsort
SELECT ALL + cor0.col2 * + col2 + - col0 * - col2 FROM tab0 AS cor0
----
14022
1881
36

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

query I rowsort
SELECT DISTINCT - - 88 + + col2 FROM tab0 AS cor0
----
121
170
89

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2179
SELECT DISTINCT + CAST( col0 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
7
78
79

skipif mysql # not compatible
query I rowsort label-2179
SELECT DISTINCT + CAST ( col0 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
7
78
79

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

query I rowsort
SELECT + 98 + col2 * col1 AS col2 FROM tab2 AS cor0
----
1632
744
935

query I rowsort
SELECT ALL col0 * cor0.col1 + col0 AS col2 FROM tab1 AS cor0
----
1120
704
81

query I rowsort
SELECT col2 * col2 + - tab1.col2 AS col2 FROM tab1
----
2862
3192
9120

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 89 + + tab2.col1 * + col2 col1 FROM tab2
----
1623
735
926

query IIIIIIIIIIII rowsort
SELECT * FROM tab1, tab1 cor0, tab1 AS cor1, tab1 AS cor2
----
972 values hashing to ed80235f6457dada5cbb50ce9e2a8923

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

query I rowsort
SELECT ALL - 86 * + col0 FROM tab1
----
-258
-5504
-6880

query I rowsort
SELECT DISTINCT + 55 FROM tab0 AS cor0
----
55

query I rowsort
SELECT DISTINCT - - 8 * + col2 AS col1 FROM tab0 AS cor0
----
264
656
8

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab2.col0 + cor0.col1 col2 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to e8a110a574ce9d6da24c6814b3fe3d2f

query I rowsort
SELECT ALL - cor0.col0 + - col0 AS col1 FROM tab2 cor0
----
-14
-156
-158

query I rowsort
SELECT ALL col2 + + 42 AS col0 FROM tab0 AS cor0
----
124
43
75

query I rowsort
SELECT ALL col2 * - ( + col0 ) + - col0 FROM tab1
----
-165
-3712
-7760

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

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

query I rowsort
SELECT ALL + col1 * 80 FROM tab1 AS cor0
----
1040
2080
800

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab1 AS cor0, tab1 cor1, tab2, tab2 AS cor2
----
3645 values hashing to 803a5565701c4ced6bba69940782c17a

query I rowsort
SELECT ALL - col0 * + 55 + col2 FROM tab2 cor0
----
-358
-4264
-4307

query I rowsort
SELECT DISTINCT - col2 - 45 FROM tab0 AS cor0
----
-127
-46
-78

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

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

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

query I rowsort
SELECT - 23 * 10 AS col2 FROM tab2
----
-230
-230
-230

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2203
SELECT ALL CAST( col0 AS SIGNED ) + col1 FROM tab1
----
29
74
93

skipif mysql # not compatible
query I rowsort label-2203
SELECT ALL CAST ( col0 AS INTEGER ) + col1 FROM tab1
----
29
74
93

query I rowsort
SELECT 18 + + col0 AS col2 FROM tab2
----
25
96
97

query I rowsort
SELECT ALL + + tab1.col0 AS col0 FROM tab1, tab2, tab1 AS cor0
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f

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

skipif mysql # not compatible
query I rowsort label-2206
SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 43 * col2 col2 FROM tab1 AS cor0
----
2322
2451
4128

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 95 * + cor0.col0 col1 FROM tab1 AS cor0
----
285
6080
7600

query I rowsort
SELECT - - ( + col1 ) + - col1 * + col1 * ( - col2 * + ( + col2 ) ) + - col1 * col1 AS col0 FROM tab2 AS cor0
----
2349734
417044
699639

query I rowsort
SELECT 1 FROM tab1, tab2 AS cor0
----
9 values hashing to 001554c2952f1a80506b182ee04686f5

query I rowsort
SELECT cor1.col2 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79

query I rowsort
SELECT + - 38 FROM tab2 AS cor0
----
-38
-38
-38

query I rowsort
SELECT 99 AS col2 FROM tab2, tab0 AS cor0, tab2 AS cor1, tab0 AS cor2
----
81 values hashing to c841a8d826151b422ecdb71db0250739

query I rowsort
SELECT DISTINCT col2 * cor0.col0 + + 8 * + cor0.col0 FROM tab2 AS cor0
----
245
2652
3634

query I rowsort
SELECT ALL - col0 * + col2 + col1 + col1 FROM tab2 cor0
----
-127
-1910
-2968

query I rowsort
SELECT DISTINCT - - col2 * - col0 FROM tab1 AS cor0
----
-162
-3648
-7680

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

skipif mysql # not compatible
query I rowsort label-2217
SELECT ALL + ( + col1 ) * CAST ( + col0 AS INTEGER ) FROM tab1 cor0
----
1040
640
78

query I rowsort
SELECT + 79 + cor0.col0 FROM tab0 AS cor0
----
103
114
168

query I rowsort
SELECT ALL + - 74 * col2 FROM tab2 AS cor0
----
-1924
-1998
-2812

query I rowsort
SELECT DISTINCT - + 70 + + col2 AS col2 FROM tab2 AS cor0
----
-32
-43
-44

onlyif mysql # use DIV operator for integer division
query I rowsort label-2221
SELECT ALL col1 * col2 DIV ( 14 ) FROM tab0 AS cor0
----
202
533
6

skipif mysql # not compatible
query I rowsort label-2221
SELECT ALL col1 * col2 / ( 14 ) FROM tab0 AS cor0
----
202
533
6

query I rowsort
SELECT 28 - - 35 FROM tab0
----
63
63
63

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 4 col0 FROM tab0, tab1, tab1 AS cor0, tab2
----
81 values hashing to 3347a3237b37ed63205e9440d8818a46

query I rowsort
SELECT DISTINCT tab0.col1 + + col1 AS col1 FROM tab0
----
172
182
194

query I rowsort
SELECT DISTINCT + 40 + col1 AS col0 FROM tab1
----
50
53
66

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

skipif mysql # not compatible
query I rowsort label-2226
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + col1 * + col0 + col1 FROM tab2
----
NULL

query I rowsort
SELECT + 21 * + col0 + col0 AS col0 FROM tab0 AS cor0
----
1958
528
770

query I rowsort
SELECT DISTINCT 32 AS col0 FROM tab2 cor0
----
32

onlyif mysql # use DIV operator for integer division
query I rowsort label-2229
SELECT ALL - + col2 + + col0 DIV ( + cor0.col2 ) - - col2 AS col2 FROM tab0 AS cor0
----
0
1
35

skipif mysql # not compatible
query I rowsort label-2229
SELECT ALL - + col2 + + col0 / ( + cor0.col2 ) - - col2 AS col2 FROM tab0 AS cor0
----
0
1
35

query I rowsort
SELECT 27 * col0 FROM tab1 AS cor0
----
1728
2160
81

query I rowsort
SELECT DISTINCT - 11 * + col1 FROM tab2 AS cor0
----
-187
-341
-649

query I rowsort
SELECT ALL 45 + + cor0.col2 FROM tab2, tab1 AS cor0, tab1 cor1
----
27 values hashing to 32675edc11aaa48a8f2d135738717428

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

query I rowsort
SELECT - ( - col1 ) + + col2 + + col2 FROM tab2 AS cor0
----
111
85
93

query I rowsort
SELECT ALL + - 38 FROM tab0, tab1 AS cor0
----
9 values hashing to e571541ae40cb0ddaca16e11f4359507

query I rowsort
SELECT + 2 * col1 + cor0.col1 AS col2 FROM tab1 AS cor0
----
30
39
78

onlyif mysql # use DIV operator for integer division
query I rowsort label-2237
SELECT ALL - col1 DIV - tab1.col0 FROM tab1
----
0
0
8

skipif mysql # not compatible
query I rowsort label-2237
SELECT ALL - col1 / - tab1.col0 FROM tab1
----
0
0
8

query I rowsort
SELECT ALL + 55 * - tab2.col2 FROM tab2
----
-1430
-1485
-2090

query I rowsort
SELECT - col1 - + cor0.col1 AS col1 FROM tab2 AS cor0
----
-118
-34
-62

onlyif mysql # use DIV operator for integer division
query I rowsort label-2240
SELECT - 92 * 59 DIV col0 FROM tab1 AS cor0
----
-1809
-67
-84

skipif mysql # not compatible
query I rowsort label-2240
SELECT - 92 * 59 / col0 FROM tab1 AS cor0
----
-1809
-67
-84

query I rowsort
SELECT col1 + 96 FROM tab2 AS cor0
----
113
127
155

query I rowsort
SELECT - col1 + - 62 * cor0.col2 FROM tab0 cor0
----
-159
-2132
-5175

query I rowsort
SELECT + col1 + + cor0.col1 * - cor0.col0 FROM tab0 AS cor0
----
-1978
-3298
-8008

query I rowsort
SELECT ALL + + 89 * + col0 AS col2 FROM tab1 AS cor0
----
267
5696
7120

query I rowsort
SELECT DISTINCT + cor0.col2 + col1 + cor0.col1 FROM tab1 cor0
----
106
122
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 85 * + col1 col0 FROM tab1 AS cor0
----
1105
2210
850

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

query I rowsort
SELECT ALL + 63 + + col2 * col2 FROM tab0 cor0
----
1152
64
6787

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + cor0.col2 col1 FROM tab0 AS cor0
----
-1
-33
-82

query I rowsort
SELECT ALL col2 + + col1 * + col0 FROM tab0 AS cor0
----
2097
3396
8181

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + col1 col0 FROM tab2
----
-19
-62
24

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

query I rowsort
SELECT tab0.col1 + 58 AS col0 FROM tab0
----
144
149
155

onlyif mysql # use DIV operator for integer division
query I rowsort label-2254
SELECT - col2 DIV - ( - col1 ) FROM tab2
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-2254
SELECT - col2 / - ( - col1 ) FROM tab2
----
-2
0
0

query I rowsort
SELECT col1 * col0 + col0 * col2 - + tab0.col0 FROM tab0
----
15308
2832
3395

query I rowsort
SELECT - 99 FROM tab0, tab0 AS cor0
----
9 values hashing to 64d06513850a26495bc6c2fddeb254b7

onlyif mysql # use DIV operator for integer division
query I rowsort label-2257
SELECT ALL 7 DIV - tab1.col1 AS col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2257
SELECT ALL 7 / - tab1.col1 AS col0 FROM tab1
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-2258
SELECT DISTINCT + col0 DIV + col0 + - col1 FROM tab1 AS cor0
----
-12
-25
-9

skipif mysql # not compatible
query I rowsort label-2258
SELECT DISTINCT + col0 / + col0 + - col1 FROM tab1 AS cor0
----
-12
-25
-9

query I rowsort
SELECT DISTINCT - col1 * 45 FROM tab1 cor0
----
-1170
-450
-585

query I rowsort
SELECT + ( col1 ) + col2 * - 12 FROM tab0 AS cor0
----
-310
-893
85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + 22 * + col2 col0 FROM tab1 AS cor0
----
1242
1311
2208

query I rowsort
SELECT - 92 * col0 + - col0 FROM tab1 AS cor0
----
-279
-5952
-7440

query I rowsort
SELECT DISTINCT - col1 * - 25 + + col0 AS col0 FROM tab0 AS cor0
----
2174
2364
2460

query I rowsort
SELECT ALL - + col1 - - col0 AS col1 FROM tab1 cor0
----
-23
54
67

query I rowsort
SELECT DISTINCT + cor0.col1 * col2 + cor0.col0 * + col0 * + 61 FROM tab0 AS cor0
----
37974
490643
74822

query I rowsort
SELECT - col2 - 66 AS col0 FROM tab1 cor0
----
-120
-123
-162

query I rowsort
SELECT - col1 * col2 + col2 - - col0 FROM tab0 AS cor0
----
-2781
-61
-7291

query I rowsort
SELECT - + col1 * - ( col1 ) + + col2 AS col0 FROM tab1 AS cor0
----
157
265
730

query I rowsort
SELECT + 99 FROM tab2, tab0, tab1 AS cor0
----
27 values hashing to 05ea182fd6036c7f5e0ea08fc061cc67

query I rowsort
SELECT + col0 * ( col0 ) FROM tab2 AS cor0
----
49
6084
6241

query I rowsort
SELECT + cor2.col2 FROM tab1 AS cor0 CROSS JOIN tab1, tab0 AS cor1, tab2 AS cor2
----
81 values hashing to c4e6b1f1d28e731664a15a6f7cda4da9

query I rowsort
SELECT DISTINCT 79 + ( col0 ) * cor0.col0 AS col2 FROM tab0 AS cor0
----
1304
655
8000

query I rowsort
SELECT ALL + col1 - - col1 * + col1 AS col2 FROM tab2
----
306
3540
992

query I rowsort
SELECT col2 + ( col2 ) AS col2 FROM tab0 AS cor0
----
164
2
66

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

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

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

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

query I rowsort
SELECT + 46 + 15 * col1 FROM tab0
----
1336
1411
1501

query I rowsort
SELECT ALL - - 84 + + col1 FROM tab2 AS cor0
----
101
115
143

query I rowsort
SELECT - ( 49 ) AS col2 FROM tab1, tab0 cor0, tab1 AS cor1
----
27 values hashing to adfccb10c9468825d9961e3613140f89

query I rowsort
SELECT 67 AS col2 FROM tab2
----
67
67
67

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

skipif mysql # not compatible
query I rowsort label-2282
SELECT DISTINCT col2 / col0 FROM tab1
----
0
1
18

query I rowsort
SELECT ALL 78 FROM tab2
----
78
78
78

query I rowsort
SELECT + 78 * cor0.col2 FROM tab2 AS cor0
----
2028
2106
2964

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 + - col0 * ( col2 ) col1 FROM tab2 AS cor0
----
-2054
-216
-3040

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

query I rowsort
SELECT col2 * - col0 * - cor0.col2 AS col2 FROM tab1 cor0
----
207936
737280
8748

query I rowsort
SELECT ( + col2 ) + col1 + 35 FROM tab1 AS cor0
----
102
115
144

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col0 - - col0 * - col1 col1 FROM tab2 AS cor0
----
-1422
-224
-4680

query I rowsort
SELECT - col0 + col1 * + 62 FROM tab1
----
1609
556
726

query I rowsort
SELECT - col0 * col2 * - col2 AS col1 FROM tab2 AS cor0
----
114076
5103
52728

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

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

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

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

query I rowsort
SELECT ALL - col0 + col0 * + col0 - + col2 AS col1 FROM tab1 AS cor0
----
-48
3975
6224

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

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

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

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

query I rowsort
SELECT DISTINCT + + col0 + col2 * + ( col0 ) AS col1 FROM tab1 AS cor0
----
165
3712
7760

onlyif mysql # use DIV operator for integer division
query I rowsort label-2301
SELECT DISTINCT + col0 DIV - col2 + col0 + - col2 FROM tab0
----
-1
-9
6

skipif mysql # not compatible
query I rowsort label-2301
SELECT DISTINCT + col0 / - col2 + col0 + - col2 FROM tab0
----
-1
-9
6

query I rowsort
SELECT + 69 + col0 * - col1 AS col2 FROM tab2 AS cor0
----
-1274
-148
-4533

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-2304
SELECT DISTINCT tab2.col1 DIV 76 + - col2 AS col2 FROM tab2
----
-26
-27
-38

skipif mysql # not compatible
query I rowsort label-2304
SELECT DISTINCT tab2.col1 / 76 + - col2 AS col2 FROM tab2
----
-26
-27
-38

onlyif mysql # use DIV operator for integer division
query I rowsort label-2305
SELECT - ( + 81 ) * + col1 + CAST( 43 AS SIGNED ) * tab1.col2 DIV - col0 AS col2 FROM tab1
----
-1104
-2880
-848

skipif mysql # not compatible
query I rowsort label-2305
SELECT - ( + 81 ) * + col1 + CAST ( 43 AS INTEGER ) * tab1.col2 / - col0 AS col2 FROM tab1
----
-1104
-2880
-848

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

query I rowsort
SELECT - 94 + - cor0.col1 FROM tab0 AS cor0
----
-180
-185
-191

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

query I rowsort
SELECT + - 81 * - col1 AS col1 FROM tab2 AS cor0
----
1377
2511
4779

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

query I rowsort
SELECT + - 86 * 34 AS col2 FROM tab1 AS cor0
----
-2924
-2924
-2924

query I rowsort
SELECT ALL 77 + + cor0.col0 AS col2 FROM tab1 AS cor0
----
141
157
80

query I rowsort
SELECT ALL + col2 + col1 * - ( ( col1 ) ) FROM tab1 AS cor0
----
-43
-622
-73

query I rowsort
SELECT DISTINCT 4 * col1 * - col0 AS col1 FROM tab0 AS cor0
----
-13580
-32396
-8256

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * col2 col2 FROM tab2 AS cor0
----
-1444
-676
-729

query I rowsort
SELECT - ( - col0 ) + + 64 * 41 AS col1 FROM tab2 AS cor0
----
2631
2702
2703

query I rowsort
SELECT 39 * col2 FROM tab0 AS cor0
----
1287
3198
39

query I rowsort
SELECT DISTINCT + 33 - col1 FROM tab2 AS cor0
----
-26
16
2

query I rowsort
SELECT DISTINCT + 36 + col0 FROM tab1 AS cor0
----
100
116
39

query I rowsort
SELECT + 86 * col1 AS col1 FROM tab0
----
7396
7826
8342

query I rowsort
SELECT ALL + tab2.col0 FROM tab2, tab1 cor0
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a

query I rowsort
SELECT ALL + ( + col2 + col0 ) * - ( - ( - tab1.col1 ) ) * + col0 FROM tab1
----
-183040
-4446
-77440

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

query I rowsort
SELECT col0 * + col2 * + col0 FROM tab0
----
1225
19008
649522

query I rowsort
SELECT + + col1 * + 39 + + col1 AS col0 FROM tab0 cor0
----
3440
3640
3880

query I rowsort
SELECT ALL - ( 53 ) + col1 FROM tab1 AS cor0
----
-27
-40
-43

query I rowsort
SELECT DISTINCT + ( col0 ) - - col1 * col2 AS col2 FROM tab2 cor0
----
1612
725
844

query I rowsort
SELECT - + 91 FROM tab0 AS cor0
----
-91
-91
-91

query I rowsort
SELECT ALL + 89 * + 26 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to a1dce11e97a9b464107a97ea759fda42

query I rowsort
SELECT DISTINCT 53 - - 8 FROM tab1, tab2 AS cor0
----
61

query IIIIIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab1, tab1 cor1
----
243 values hashing to 89e3b35a4a4f02d7b83645addb9dcdc3

query I rowsort
SELECT ALL + 97 * 52 AS col0 FROM tab0
----
5044
5044
5044

onlyif mysql # use DIV operator for integer division
query I rowsort label-2333
SELECT DISTINCT 13 DIV + col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-2333
SELECT DISTINCT 13 / + col2 FROM tab1
----
0

query I rowsort
SELECT ALL + 54 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to d2364c4ffc09ac2cf1f6fa4d767d8b09

query I rowsort
SELECT tab2.col2 - cor0.col1 * 12 FROM tab2, tab0 AS cor0
----
9 values hashing to bbd7135c4b1065cf16af145e94b25e6f

query I rowsort
SELECT ALL + 33 * col1 * - col0 FROM tab0
----
-112035
-267267
-68112

query I rowsort
SELECT ( - col2 ) AS col0 FROM tab2 AS cor0
----
-26
-27
-38

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

query I rowsort
SELECT ALL - col0 + - col1 * + col1 FROM tab1 AS cor0
----
-164
-249
-679

query I rowsort
SELECT DISTINCT + - 47 * col2 + - col2 AS col1 FROM tab0 AS cor0
----
-1584
-3936
-48

query I rowsort
SELECT ALL + col1 + - col2 * - col2 * + ( - col1 ) FROM tab0 AS cor0
----
-611793
-93568
0

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

query I rowsort
SELECT DISTINCT + 56 FROM tab1
----
56

query I rowsort
SELECT 37 * col1 + col2 - col2 AS col1 FROM tab1
----
370
481
962

query I rowsort
SELECT DISTINCT col2 + col0 * + 15 AS col1 FROM tab0
----
1417
393
526

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

query I rowsort
SELECT ALL - col0 + ( col1 * + col1 ) FROM tab2 AS cor0
----
210
3403
954

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 96 * tab0.col2 * ( + col1 ) - - col2 col0 FROM tab0
----
-272415
-716270
-9311

query I rowsort
SELECT DISTINCT - col2 * col2 + - col1 AS col0 FROM tab1
----
-2942
-3259
-9229

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

query I rowsort
SELECT + col1 * + col1 + + col0 - col1 AS col2 FROM tab1 AS cor0
----
154
236
653

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

query I rowsort
SELECT DISTINCT - col2 * + tab0.col0 + - col0 * col0 FROM tab0
----
-1260
-1368
-15219

query I rowsort
SELECT col0 * - col0 AS col2 FROM tab2
----
-49
-6084
-6241

query I rowsort
SELECT + ( col0 * ( + col1 ) ) + - col0 + col2 AS col1 FROM tab2
----
1302
237
4550

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

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

query I rowsort
SELECT ALL - + col2 * 75 * 32 FROM tab2 cor0
----
-62400
-64800
-91200

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + col0 col2 FROM tab0 AS cor0
----
178
48
70

query I rowsort
SELECT ALL + + col2 * col0 * col2 + col2 FROM tab2 AS cor0
----
114114
5130
52754

onlyif mysql # use DIV operator for integer division
query I rowsort label-2361
SELECT DISTINCT - + col2 + 36 DIV 64 FROM tab1 AS cor0
----
-54
-57
-96

skipif mysql # not compatible
query I rowsort label-2361
SELECT DISTINCT - + col2 + 36 / 64 FROM tab1 AS cor0
----
-54
-57
-96

query I rowsort
SELECT DISTINCT - cor0.col0 * - col0 + - col0 * col1 - - ( col0 ) AS col1 FROM tab0 AS cor0
----
-1464
-2135
-89

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

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

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

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

query I rowsort
SELECT ALL col0 + + 74 - + cor0.col0 * - col2 FROM tab2 cor0
----
2180
270
3155

query I rowsort
SELECT - + col0 * - col2 + col2 FROM tab0 AS cor0
----
36
7380
825

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col1 + + ( - cor0.col0 ) * col1 * + 14 col0 FROM tab2 AS cor0
----
-18819
-3069
-64487

query I rowsort
SELECT DISTINCT - + col0 * 66 AS col0 FROM tab2 AS cor0
----
-462
-5148
-5214

query I rowsort
SELECT col1 * cor0.col1 + - 11 AS col1 FROM tab2 AS cor0
----
278
3470
950

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

query I rowsort
SELECT DISTINCT + - col1 + 62 FROM tab1 AS cor0
----
36
49
52

onlyif mysql # use DIV operator for integer division
query I rowsort label-2373
SELECT - col0 * col0 + + col2 * col2 DIV 70 AS col2 FROM tab0 AS cor0
----
-1225
-561
-7825

skipif mysql # not compatible
query I rowsort label-2373
SELECT - col0 * col0 + + col2 * col2 / 70 AS col2 FROM tab0 AS cor0
----
-1225
-561
-7825

query I rowsort
SELECT DISTINCT - col2 + + 25 FROM tab2 AS cor0
----
-1
-13
-2

query I rowsort
SELECT ALL - - col2 - cor0.col1 AS col0 FROM tab0 AS cor0
----
-53
-9
-96

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

skipif mysql # not compatible
query I rowsort label-2376
SELECT ALL - + col0 * - CAST ( - ( col1 ) AS INTEGER ) * ( + cor0.col2 ) AS col2 FROM tab0 AS cor0
----
-3395
-664118
-68112

query I rowsort
SELECT ALL - col0 + + 62 AS col0 FROM tab2
----
-16
-17
55

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2378
SELECT - col0 + + CAST( + 5 AS SIGNED ) AS col0 FROM tab2
----
-2
-73
-74

skipif mysql # not compatible
query I rowsort label-2378
SELECT - col0 + + CAST ( + 5 AS INTEGER ) AS col0 FROM tab2
----
-2
-73
-74

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

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

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

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

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

query I rowsort
SELECT ALL + col2 * - 3 FROM tab1 AS cor0
----
-162
-171
-288

query I rowsort
SELECT + col1 * + 15 * cor0.col1 AS col1 FROM tab2 AS cor0
----
14415
4335
52215

query I rowsort
SELECT + - ( ( - col0 ) ) FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT DISTINCT ( - col2 ) * - col2 + - col2 FROM tab2 AS cor0
----
1406
650
702

query I rowsort
SELECT ALL - - ( col2 ) AS col2 FROM tab2 cor0
----
26
27
38

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

skipif mysql # not compatible
query I rowsort label-2388
SELECT DISTINCT + - CAST ( NULL AS REAL ) + 33 + col1 AS col1 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT + + 61 FROM tab2 AS cor0
----
61
61
61

query I rowsort
SELECT cor0.col1 + + 31 FROM tab1 AS cor0
----
41
44
57

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

query I rowsort
SELECT col0 + col1 * - col2 FROM tab1 AS cor0
----
-1168
-1401
-506

query I rowsort
SELECT - + col2 * + col2 + col2 * - 11 AS col2 FROM tab0 AS cor0
----
-12
-1452
-7626

query I rowsort
SELECT ALL 55 * col1 AS col1 FROM tab0 AS cor0
----
4730
5005
5335

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-2396
SELECT 4 DIV + col0 FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-2396
SELECT 4 / + col0 FROM tab1 AS cor0
----
0
0
1

query I rowsort
SELECT DISTINCT - col1 + + col0 * ( col0 + + col2 ) FROM tab1
----
14067
145
7734

query I rowsort
SELECT - - col0 * - col2 + ( - col2 ) FROM tab0 AS cor0
----
-36
-7380
-825

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + - cor0.col1 col2 FROM tab2 AS cor0
----
-137
-38
-96

query I rowsort
SELECT col2 * col2 AS col0 FROM tab0 cor0
----
1
1089
6724

query I rowsort
SELECT DISTINCT col0 * col1 + + 77 FROM tab1 AS cor0
----
1117
155
717

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

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

query I rowsort
SELECT ALL + 23 * col1 AS col0 FROM tab0 AS cor0
----
1978
2093
2231

onlyif mysql # use DIV operator for integer division
query I rowsort label-2404
SELECT + col2 + 68 DIV + col1 FROM tab2 AS cor0
----
27
29
42

skipif mysql # not compatible
query I rowsort label-2404
SELECT + col2 + 68 / + col1 FROM tab2 AS cor0
----
27
29
42

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2406
SELECT DISTINCT CAST( + 36 AS SIGNED ) - cor0.col0 * 12 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-48
-900
-912

skipif mysql # not compatible
query I rowsort label-2406
SELECT DISTINCT CAST ( + 36 AS INTEGER ) - cor0.col0 * 12 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-48
-900
-912

query I rowsort
SELECT DISTINCT - ( 63 ) AS col2 FROM tab2
----
-63

query I rowsort
SELECT ALL - 0 * + cor0.col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query I rowsort
SELECT - cor0.col2 + - 80 FROM tab2 cor0
----
-106
-107
-118

query I rowsort
SELECT 25 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 525a55d5ed224a62da65df36731881a7

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

query I rowsort
SELECT - 56 AS col2 FROM tab0 AS cor0
----
-56
-56
-56

onlyif mysql # use DIV operator for integer division
query I rowsort label-2413
SELECT ALL - + col0 - col0 DIV + col0 col2 FROM tab2 AS cor0
----
-79
-8
-80

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2413
SELECT ALL - + col0 - col0 / + col0 col2 FROM tab2 AS cor0
----
-79
-8
-80

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 56 * + col2 col0 FROM tab2 AS cor0
----
1456
1512
2128

query I rowsort
SELECT - 76 * - cor0.col1 FROM tab1 AS cor0
----
1976
760
988

query I rowsort
SELECT DISTINCT + 41 + cor0.col1 AS col1 FROM tab2 AS cor0
----
100
58
72

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2418
SELECT - col0 * CAST( col0 * + col0 AS SIGNED ) + col0 + + col2 AS col1 FROM tab2 AS cor0
----
-309
-474448
-492922

skipif mysql # not compatible
query I rowsort label-2418
SELECT - col0 * CAST ( col0 * + col0 AS INTEGER ) + col0 + + col2 AS col1 FROM tab2 AS cor0
----
-309
-474448
-492922

query I rowsort
SELECT - col0 + - col2 * + ( col2 ) + + col1 AS col1 FROM tab2 AS cor0
----
-1506
-695
-705

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * col2 + - col0 + + col1 col0 FROM tab0 AS cor0
----
7300
854
97

query I rowsort
SELECT - col2 * col2 + cor0.col1 AS col0 FROM tab2 AS cor0
----
-1427
-617
-698

query I rowsort
SELECT - col1 + - col2 + + col1 AS col0 FROM tab2
----
-26
-27
-38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 * + cor0.col1 * - col1 + + col1 col1 FROM tab0 AS cor0
----
244154
679133
9506

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 80 * - 5 + + col1 col2 FROM tab2 AS cor0
----
-341
-369
-383

query I rowsort
SELECT ALL - - 32 FROM tab2 AS cor0
----
32
32
32

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2428
SELECT DISTINCT - CAST( col1 AS SIGNED ) * - cor0.col0 - cor0.col0 * cor0.col0 AS col0 FROM tab2 AS cor0
----
-1482
-4898
168

skipif mysql # not compatible
query I rowsort label-2428
SELECT DISTINCT - CAST ( col1 AS INTEGER ) * - cor0.col0 - cor0.col0 * cor0.col0 AS col0 FROM tab2 AS cor0
----
-1482
-4898
168

query I rowsort
SELECT + 97 FROM tab0, tab2 cor0
----
9 values hashing to 5e0d31ac41981bcdf6a665538a71a09c

query I rowsort
SELECT ALL + col2 * col2 AS col0 FROM tab0 AS cor0
----
1
1089
6724

query I rowsort
SELECT ALL + col2 * col2 + col0 + - col2 FROM tab1 AS cor0
----
2865
3256
9200

query I rowsort
SELECT DISTINCT - - col2 * - cor0.col0 + col0 + - col0 AS col2 FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT + - col1 + col1 + - col2 AS col2 FROM tab1 AS cor0
----
-54
-57
-96

query I rowsort
SELECT DISTINCT col2 * cor0.col0 + col0 + cor0.col1 * col0 AS col2 FROM tab0 AS cor0
----
15486
2880
3465

query I rowsort
SELECT DISTINCT + col2 * col2 + col2 * + col0 FROM tab1 AS cor0
----
16896
3078
6897

query I rowsort
SELECT DISTINCT + - col0 + col1 * col2 FROM tab1 AS cor0
----
1168
1401
506

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

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

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

query I rowsort
SELECT DISTINCT + col0 * tab1.col0 + + tab1.col1 * + col2 FROM tab1
----
1413
4666
7648

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

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

query I rowsort
SELECT ALL - col2 + col0 * col1 FROM tab0
----
2031
3394
8017

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab1.col2 col2 FROM tab1 AS cor0 CROSS JOIN tab1
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17

onlyif mysql # use DIV operator for integer division
query I rowsort label-2445
SELECT ALL + col0 + cor0.col2 DIV - cor0.col0 FROM tab2 AS cor0
----
4
78
79

skipif mysql # not compatible
query I rowsort label-2445
SELECT ALL + col0 + cor0.col2 / - cor0.col0 FROM tab2 AS cor0
----
4
78
79

query I rowsort
SELECT - - col2 * + cor0.col0 + col0 FROM tab1 AS cor0
----
165
3712
7760

query I rowsort
SELECT ALL - col1 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN NULL AND NULL OR col2 BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT ALL - col2 * - col2 + col0 FROM tab1 AS cor0
----
2919
3313
9296

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

query I rowsort
SELECT col1 + + col1 * + col2 FROM tab1
----
1261
1430
580

query I rowsort
SELECT ALL - 61 AS col1 FROM tab0
----
-61
-61
-61

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

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

query I rowsort
SELECT + cor1.col2 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8

onlyif mysql # use DIV operator for integer division
query I rowsort label-2454
SELECT - 74 DIV col0 AS col0 FROM tab0
----
-2
-3
0

skipif mysql # not compatible
query I rowsort label-2454
SELECT - 74 / col0 AS col0 FROM tab0
----
-2
-3
0

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

query I rowsort
SELECT ALL - + cor0.col2 * + col1 + col0 AS col1 FROM tab2 AS cor0
----
-1456
-567
-830

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col0 col0 FROM tab0, tab1 AS cor0
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor1.col1 col0 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to c61d27a0022e6d022371dc58819ab272

query I rowsort
SELECT - col2 - + tab1.col0 AS col2 FROM tab1
----
-121
-176
-57

query I rowsort
SELECT col2 + col2 + col0 * col0 FROM tab2
----
103
6136
6317

query I rowsort
SELECT DISTINCT + 34 - col1 * col1 FROM tab2
----
-255
-3447
-927

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

query I rowsort
SELECT col1 * - col1 * tab1.col1 FROM tab1
----
-1000
-17576
-2197

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

query I rowsort
SELECT DISTINCT + col1 + + tab0.col1 AS col1 FROM tab0
----
172
182
194

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

query IIIIII rowsort
SELECT * FROM tab1, tab2 cor0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

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

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

query I rowsort
SELECT ALL + col0 - + col1 FROM tab1 AS cor0
----
-23
54
67

query I rowsort
SELECT - col2 * col0 * col2 FROM tab1 AS cor0
----
-207936
-737280
-8748

query I rowsort
SELECT ALL + col2 * - cor0.col0 FROM tab0 cor0
----
-35
-7298
-792

query I rowsort
SELECT - 94 * - cor0.col1 AS col1 FROM tab2 AS cor0
----
1598
2914
5546

query I rowsort
SELECT ALL + 5 AS col2 FROM tab2
----
5
5
5

query I rowsort
SELECT + 25 + col0 FROM tab2 AS cor0
----
103
104
32

query I rowsort
SELECT DISTINCT + 45 AS col0 FROM tab2 AS cor0
----
45

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

query I rowsort
SELECT + col2 + - col2 * + ( col2 ) * + col1 FROM tab0 AS cor0
----
-611802
-93621
-96

query I rowsort
SELECT + col1 * col0 + + col2 * col2 * - cor0.col1 FROM tab0 AS cor0
----
-603785
-91590
3298

query I rowsort
SELECT 38 + + col2 * - 23 AS col2 FROM tab2 AS cor0
----
-560
-583
-836

query I rowsort
SELECT ALL 33 AS col2 FROM tab0 cor0
----
33
33
33

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2483
SELECT ALL - cor0.col2 + col0 * + CAST( + col1 * col2 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
119626
50996
5832

skipif mysql # not compatible
query I rowsort label-2483
SELECT ALL - cor0.col2 + col0 * + CAST ( + col1 * col2 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
119626
50996
5832

onlyif mysql # use DIV operator for integer division
query I rowsort label-2484
SELECT cor0.col0 DIV col2 + 65 AS col0 FROM tab0 AS cor0
----
100
65
66

skipif mysql # not compatible
query I rowsort label-2484
SELECT cor0.col0 / col2 + 65 AS col0 FROM tab0 AS cor0
----
100
65
66

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT ALL CAST ( + col0 AS REAL ) * col0 col0 FROM tab2 AS cor0
----
49
6084
6241

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

skipif mysql # not compatible
query I rowsort label-2486
SELECT DISTINCT + CAST ( + ( - col2 ) AS INTEGER ) + ( + col1 ) FROM tab0 AS cor0
----
53
9
96

skipif mysql # not compatible
query I rowsort
SELECT - CAST ( cor0.col1 AS REAL ) / + col1 FROM tab2 AS cor0
----
-1
-1
-1

query I rowsort
SELECT ALL col2 + - cor0.col1 * col1 + 93 AS col1 FROM tab2 AS cor0
----
-158
-3362
-841

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

query I rowsort
SELECT + col0 + - ( + col2 ) * col0 AS col0 FROM tab0
----
-7209
-768
0

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2491
SELECT ALL CAST ( NULL AS REAL ) + col2 col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT col2 + ( - col2 ) + col0 AS col1 FROM tab1
----
3
64
80

query I rowsort
SELECT - 80 AS col2 FROM tab2
----
-80
-80
-80

query I rowsort
SELECT ALL tab0.col1 * col2 + - col0 FROM tab0
----
2814
62
7373

query I rowsort
SELECT DISTINCT 90 + 81 + col1 * col0 FROM tab1
----
1211
249
811

query I rowsort
SELECT - 84 * + col0 FROM tab1
----
-252
-5376
-6720

query I rowsort
SELECT ALL - 8 + col1 AS col2 FROM tab2 AS cor0
----
23
51
9

query I rowsort
SELECT ALL cor0.col2 * col1 + - col1 FROM tab1 AS cor0
----
1235
1378
560

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

query I rowsort
SELECT + ( 3 * + col0 + - col0 ) FROM tab1
----
128
160
6

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

skipif mysql # not compatible
query I rowsort label-2501
SELECT - col2 / 90 AS col0 FROM tab2
----
0
0
0

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-2503
SELECT DISTINCT + col0 * - col2 DIV col2 + + 76 AS col0 FROM tab0
----
-13
41
52

skipif mysql # not compatible
query I rowsort label-2503
SELECT DISTINCT + col0 * - col2 / col2 + + 76 AS col0 FROM tab0
----
-13
41
52

onlyif mysql # use DIV operator for integer division
query I rowsort label-2504
SELECT DISTINCT col2 DIV - ( - col2 ) + - ( col1 ) * - tab0.col0 + - col0 FROM tab0
----
2041
3361
8011

skipif mysql # not compatible
query I rowsort label-2504
SELECT DISTINCT col2 / - ( - col2 ) + - ( col1 ) * - tab0.col0 + - col0 FROM tab0
----
2041
3361
8011

query I rowsort
SELECT DISTINCT 34 + - col0 + - tab1.col2 FROM tab1
----
-142
-23
-87

onlyif mysql # use DIV operator for integer division
query I rowsort label-2506
SELECT col2 DIV + col2 + - col1 FROM tab1
----
-12
-25
-9

skipif mysql # not compatible
query I rowsort label-2506
SELECT col2 / + col2 + - col1 FROM tab1
----
-12
-25
-9

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

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-2509
SELECT + col1 DIV - cor0.col1 + + col1 FROM tab1 AS cor0
----
12
25
9

skipif mysql # not compatible
query I rowsort label-2509
SELECT + col1 / - cor0.col1 + + col1 FROM tab1 AS cor0
----
12
25
9

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

query I rowsort
SELECT ALL 77 FROM tab2, tab1 AS cor0 CROSS JOIN tab1
----
27 values hashing to d7b027bca5d37c67e29013904def8125

query I rowsort
SELECT DISTINCT - 97 AS col1 FROM tab0
----
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-2513
SELECT ALL - tab1.col0 DIV col0 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2513
SELECT ALL - tab1.col0 / col0 FROM tab1
----
-1
-1
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 42 + 13 col0 FROM tab0, tab1 AS cor0, tab0 cor1
----
27 values hashing to 832128adb1ddc65c3105e29cc2c8b3a3

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

query I rowsort
SELECT 67 FROM tab1
----
67
67
67

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

query I rowsort
SELECT DISTINCT + 62 AS col0 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
62

query I rowsort
SELECT DISTINCT ( 1 ) FROM tab1, tab2 AS cor0
----
1

query I rowsort
SELECT + col0 * + col0 * - col2 AS col1 FROM tab0 AS cor0
----
-1225
-19008
-649522

query I rowsort
SELECT DISTINCT + - col1 * - col1 AS col2 FROM tab2 AS cor0
----
289
3481
961

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-2524
SELECT ALL + + col0 DIV ( + cor0.col0 ) FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2524
SELECT ALL + + col0 / ( + cor0.col0 ) FROM tab1 AS cor0
----
1
1
1

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

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

query I rowsort
SELECT ALL + col2 + col2 AS col0 FROM tab1 cor0
----
108
114
192

query I rowsort
SELECT DISTINCT + + 78 + + 3 FROM tab2 AS cor0
----
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 7 + col2 * - col0 col2 FROM tab1 AS cor0
----
-155
-3641
-7673

onlyif mysql # use DIV operator for integer division
query I rowsort label-2530
SELECT ALL col1 DIV 90 AS col1 FROM tab0 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-2530
SELECT ALL col1 / 90 AS col1 FROM tab0 AS cor0
----
0
1
1

query I rowsort
SELECT - 3 AS col2 FROM tab1 AS cor0
----
-3
-3
-3

query I rowsort
SELECT DISTINCT - 92 AS col2 FROM tab0 AS cor0
----
-92

query I rowsort
SELECT DISTINCT + 25 + col2 + col2 AS col0 FROM tab2 AS cor0
----
101
77
79

query I rowsort
SELECT 83 FROM tab2 AS cor0
----
83
83
83

query I rowsort
SELECT - ( + cor0.col1 ) AS col1 FROM tab0 AS cor0
----
-86
-91
-97

query I rowsort
SELECT + - 58 FROM tab0 AS cor0
----
-58
-58
-58

query I rowsort
SELECT + 8 AS col2 FROM tab0 AS cor0
----
8
8
8

query I rowsort
SELECT DISTINCT tab1.col0 * - 29 FROM tab1, tab0 cor0
----
-1856
-2320
-87

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

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2540
SELECT + col2 * CAST( col0 AS SIGNED ) FROM tab1 AS cor0
----
162
3648
7680

skipif mysql # not compatible
query I rowsort label-2540
SELECT + col2 * CAST ( col0 AS INTEGER ) FROM tab1 AS cor0
----
162
3648
7680

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * + col1 col1 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT - tab2.col2 - 16 AS col1 FROM tab2
----
-42
-43
-54

query I rowsort
SELECT DISTINCT col1 + + col2 * col0 * + col0 FROM tab2
----
1354
158243
237175

query I rowsort
SELECT 65 FROM tab0, tab2 cor0
----
9 values hashing to 8bef2ea1f05f3514633f851312bdd805

query I rowsort
SELECT + + col0 * 94 FROM tab2 AS cor0
----
658
7332
7426

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

query I rowsort
SELECT 66 + + 3 FROM tab1 AS cor0
----
69
69
69

query I rowsort
SELECT col0 * ( col2 ) + ( - col2 ) * col0 FROM tab2
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col1 + + col1 col2 FROM tab0 AS cor0
----
172
182
194

query I rowsort
SELECT DISTINCT - + 31 + + col0 * - col2 AS col2 FROM tab0 AS cor0
----
-66
-7329
-823

onlyif mysql # use DIV operator for integer division
query I rowsort label-2551
SELECT ALL + 74 - col2 DIV col1 AS col1 FROM tab0 cor0
----
74
74
74

skipif mysql # not compatible
query I rowsort label-2551
SELECT ALL + 74 - col2 / col1 AS col1 FROM tab0 cor0
----
74
74
74

query I rowsort
SELECT - - col2 * + col1 * + col1 AS col0 FROM tab0 cor0
----
244068
679042
9409

query I rowsort
SELECT DISTINCT + col2 * cor0.col1 + col2 + - 39 AS col0 FROM tab2 AS cor0
----
1521
645
825

query I rowsort
SELECT DISTINCT ( + 16 ) + col0 * - col1 FROM tab0 AS cor0
----
-2048
-3379
-8083

query I rowsort
SELECT + ( - col2 ) * - cor0.col2 * - ( + 31 ) + col1 FROM tab0 AS cor0
----
-208353
-33673
66

query I rowsort
SELECT - 88 + - col2 AS col1 FROM tab0 cor0
----
-121
-170
-89

query I rowsort
SELECT col2 * col2 - cor0.col0 AS col1 FROM tab1 AS cor0
----
2913
3185
9136

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col1 col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 58ed467a9a332e4d7bfaa9abdbbd063f

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

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

query I rowsort
SELECT cor0.col0 + + col0 * 13 AS col1 FROM tab2 cor0
----
1092
1106
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * 54 * col2 col1 FROM tab1 AS cor0
----
157464
175446
497664

query I rowsort
SELECT + col2 * col2 + cor0.col0 AS col0 FROM tab2 AS cor0
----
1523
736
754

query I rowsort
SELECT - col2 + col2 * col0 AS col2 FROM tab0 AS cor0
----
34
7216
759

query I rowsort
SELECT ALL - cor0.col2 * + 40 AS col1 FROM tab1 AS cor0
----
-2160
-2280
-3840

onlyif mysql # use DIV operator for integer division
query I rowsort label-2566
SELECT col1 DIV + CAST( + 20 + - cor0.col2 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2566
SELECT col1 / + CAST ( + 20 + - cor0.col2 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL col1 * - 97 FROM tab2 cor0
----
-1649
-3007
-5723

onlyif mysql # use DIV operator for integer division
query I rowsort label-2568
SELECT DISTINCT - col0 + col2 DIV - 48 FROM tab2 AS cor0
----
-7
-78
-79

skipif mysql # not compatible
query I rowsort label-2568
SELECT DISTINCT - col0 + col2 / - 48 FROM tab2 AS cor0
----
-7
-78
-79

query I rowsort
SELECT - col0 * + 74 FROM tab0 cor0
----
-1776
-2590
-6586

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

query I rowsort
SELECT - + col2 * ( col1 ) + col0 FROM tab1 AS cor0
----
-1168
-1401
-506

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2572
SELECT DISTINCT - col2 + col2 / - col0 col0 FROM tab0 AS cor0
----
-1
-34
-82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col0 col1 FROM tab1 cor0
----
3
64
80

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

skipif mysql # not compatible
query I rowsort label-2574
SELECT DISTINCT - col2 / 90 + + col1 FROM tab1 AS cor0
----
10
12
26

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2575
SELECT - cor0.col0 + + CAST( 55 + - col0 AS SIGNED ) FROM tab2 cor0
----
-101
-103
41

skipif mysql # not compatible
query I rowsort label-2575
SELECT - cor0.col0 + + CAST ( 55 + - col0 AS INTEGER ) FROM tab2 cor0
----
-101
-103
41

query I rowsort
SELECT ALL + - col1 * col1 AS col1 FROM tab1 AS cor0
----
-100
-169
-676

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2577
SELECT + - col2 * - CAST( cor0.col0 AS SIGNED ) - col0 AS col1 FROM tab0 AS cor0
----
0
7209
768

skipif mysql # not compatible
query I rowsort label-2577
SELECT + - col2 * - CAST ( cor0.col0 AS INTEGER ) - col0 AS col1 FROM tab0 AS cor0
----
0
7209
768

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

query I rowsort
SELECT DISTINCT - col0 * + col0 * - 94 FROM tab2 AS cor0
----
4606
571896
586654

query I rowsort
SELECT + col0 - - 15 AS col0 FROM tab1 AS cor0
----
18
79
95

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-2582
SELECT ALL - cor0.col2 + - ( ( - col2 ) ) DIV ( col0 ) col1 FROM tab1 AS cor0
----
-36
-57
-95

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2582
SELECT ALL - cor0.col2 + - ( ( - col2 ) ) / ( col0 ) col1 FROM tab1 AS cor0
----
-36
-57
-95

onlyif mysql # use DIV operator for integer division
query I rowsort label-2583
SELECT col1 + 13 * - cor0.col0 - col0 DIV ( - col0 ) AS col0 FROM tab0 AS cor0
----
-1065
-225
-357

skipif mysql # not compatible
query I rowsort label-2583
SELECT col1 + 13 * - cor0.col0 - col0 / ( - col0 ) AS col0 FROM tab0 AS cor0
----
-1065
-225
-357

query I rowsort
SELECT DISTINCT cor0.col1 + ( + ( col0 ) ) * col2 + 87 AS col0 FROM tab1 AS cor0
----
275
3745
7780

query I rowsort
SELECT ALL - - col0 * 89 + + ( col0 ) AS col1 FROM tab2 AS cor0
----
630
7020
7110

query I rowsort
SELECT + - cor0.col1 * + 31 + - 36 FROM tab1 AS cor0
----
-346
-439
-842

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

query I rowsort
SELECT col0 * 16 FROM tab2
----
112
1248
1264

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

skipif mysql # not compatible
query I rowsort label-2589
SELECT DISTINCT + CAST ( col1 AS INTEGER ) * col0 AS col2 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT DISTINCT + col1 * cor0.col0 - - col1 FROM tab0 AS cor0
----
2150
3492
8190

onlyif mysql # use DIV operator for integer division
query I rowsort label-2591
SELECT DISTINCT - + col0 * col0 DIV - col2 AS col2 FROM tab0 cor0
----
1225
17
96

skipif mysql # not compatible
query I rowsort label-2591
SELECT DISTINCT - + col0 * col0 / - col2 AS col2 FROM tab0 cor0
----
1225
17
96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2592
SELECT ALL - CAST( - 38 AS SIGNED ) + + cor0.col0 FROM tab1 cor0
----
102
118
41

skipif mysql # not compatible
query I rowsort label-2592
SELECT ALL - CAST ( - 38 AS INTEGER ) + + cor0.col0 FROM tab1 cor0
----
102
118
41

query I rowsort
SELECT + - col1 + 47 FROM tab2 AS cor0
----
-12
16
30

query I rowsort
SELECT DISTINCT + col0 + col0 * + col1 + col1 AS col1 FROM tab1 AS cor0
----
107
1133
714

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

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

query I rowsort
SELECT ALL col1 + 85 FROM tab1
----
111
95
98

query I rowsort
SELECT col2 + + col0 - + col0 FROM tab1
----
54
57
96

query I rowsort
SELECT + ( col1 ) * + ( - cor0.col1 ) AS col1 FROM tab1 AS cor0
----
-100
-169
-676

query I rowsort
SELECT + 30 AS col0 FROM tab0 AS cor0
----
30
30
30

query I rowsort
SELECT DISTINCT col0 * + col0 + col0 FROM tab2 AS cor0
----
56
6162
6320

query I rowsort
SELECT ALL + 42 * col2 + - col1 AS col0 FROM tab0 AS cor0
----
-55
1300
3353

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

query I rowsort
SELECT ALL col0 * col2 - 7 AS col2 FROM tab1
----
155
3641
7673

query I rowsort
SELECT ALL tab1.col2 + - 51 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to cdc7781f436fbc64d6528cd623438182

query I rowsort
SELECT ( col0 ) - 23 FROM tab1
----
-20
41
57

onlyif mysql # use DIV operator for integer division
query I rowsort label-2607
SELECT tab1.col1 DIV col0 + + col0 + col0 * col0 AS col2 FROM tab1
----
20
4160
6480

skipif mysql # not compatible
query I rowsort label-2607
SELECT tab1.col1 / col0 + + col0 + col0 * col0 AS col2 FROM tab1
----
20
4160
6480

query I rowsort
SELECT DISTINCT col2 + + tab2.col0 / - col2 FROM tab2 WHERE col2 + - col0 IN ( + tab2.col1 )
----

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

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col0 * col1 + - col1 < ( + col2 )
----
64
10
57
80
13
96

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

query I rowsort
SELECT DISTINCT - col0 * + col0 AS col2 FROM tab0
----
-1225
-576
-7921

query I rowsort
SELECT DISTINCT col0 * + col0 * - col0 AS col1 FROM tab2
----
-343
-474552
-493039

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL <= ( - col2 * + col0 * - col0 )
----

query I rowsort
SELECT tab1.col2 * col2 * col2 AS col1 FROM tab1
----
157464
185193
884736

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

query I rowsort
SELECT ALL + col2 * tab0.col0 AS col0 FROM tab0
----
35
7298
792

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col1 + tab2.col2 NOT IN ( col1 )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE ( + col1 * + col0 * col1 ) <> ( col1 - tab2.col1 )
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45

onlyif mysql # use DIV operator for integer division
query I rowsort label-2620
SELECT col1 DIV col1 + col2 FROM tab0
----
2
34
83

skipif mysql # not compatible
query I rowsort label-2620
SELECT col1 / col1 + col2 FROM tab0
----
2
34
83

query I rowsort
SELECT ALL + tab1.col0 * col0 * col0 AS col2 FROM tab1
----
262144
27
512000

query I rowsort
SELECT col2 * - tab2.col1 FROM tab2
----
-1534
-646
-837

onlyif mysql # use DIV operator for integer division
query I rowsort label-2623
SELECT DISTINCT 71 DIV col2 FROM tab0 AS cor0
----
0
2
71

skipif mysql # not compatible
query I rowsort label-2623
SELECT DISTINCT 71 / col2 FROM tab0 AS cor0
----
0
2
71

query I rowsort
SELECT ALL + 43 + - col2 AS col1 FROM tab1 cor0
----
-11
-14
-53

query I rowsort
SELECT + ( col2 ) + 5 FROM tab0 AS cor0
----
38
6
87

onlyif mysql # use DIV operator for integer division
query I rowsort label-2626
SELECT ALL + cor0.col1 * - col1 + - col2 DIV + col0 FROM tab2 AS cor0
----
-289
-3481
-964

skipif mysql # not compatible
query I rowsort label-2626
SELECT ALL + cor0.col1 * - col1 + - col2 / + col0 FROM tab2 AS cor0
----
-289
-3481
-964

query I rowsort
SELECT col1 - col0 * col1 FROM tab1
----
-1027
-52
-630

query I rowsort
SELECT ALL tab2.col2 * col1 * col0 FROM tab2
----
119652
51034
5859

onlyif mysql # use DIV operator for integer division
query I rowsort label-2629
SELECT - cor0.col0 DIV col1 + col2 AS col0 FROM tab0 AS cor0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-2629
SELECT - cor0.col0 / col1 + col2 AS col0 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT DISTINCT + col2 + - col1 * - col1 * col0 AS col2 FROM tab2
----
22869
271544
6754

query I rowsort
SELECT ALL - col0 + - col1 AS col1 FROM tab1
----
-29
-74
-93

query I rowsort
SELECT - cor0.col0 AS col2 FROM tab1 cor0
----
-3
-64
-80

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

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL <= col1
----

query I rowsort
SELECT ALL col0 + - col2 * col2 AS col0 FROM tab0
----
-1065
-6635
34

query I rowsort
SELECT + col2 + - col1 FROM tab1
----
28
47
83

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

query I rowsort
SELECT DISTINCT - col1 AS col2 FROM tab2 WHERE NOT NULL >= col1
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + tab2.col0 NOT IN ( + col2 * col0 )
----

query III rowsort
SELECT * FROM tab2 WHERE NULL BETWEEN NULL AND ( col1 )
----

query I rowsort
SELECT - col1 + + col1 AS col0 FROM tab1
----
0
0
0

query I rowsort
SELECT ALL - col0 + + tab0.col1 * col0 AS col0 FROM tab0
----
2040
3360
8010

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - tab0.col1 + tab0.col2 * col0 col0 FROM tab0
----
-62
706
7207

onlyif mysql # use DIV operator for integer division
query I rowsort label-2644
SELECT col0 + col2 * + col1 DIV col1 - col0 FROM tab1
----
54
57
96

skipif mysql # not compatible
query I rowsort label-2644
SELECT col0 + col2 * + col1 / col1 - col0 FROM tab1
----
54
57
96

query I rowsort
SELECT - col1 + col2 + - tab0.col2 AS col2 FROM tab0
----
-86
-91
-97

query I rowsort
SELECT + + 34 + + col1 AS col0 FROM tab0 AS cor0
----
120
125
131

query I rowsort
SELECT + col2 * ( - col1 ) + col0 FROM tab1
----
-1168
-1401
-506

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

query I rowsort
SELECT DISTINCT 51 AS col1 FROM tab2
----
51

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

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

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

query I rowsort
SELECT ALL + 28 FROM tab0, tab0 AS cor0
----
9 values hashing to aad32232c428b3ecb5ada63f7e9b0a97

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-2654
SELECT ALL + - ( - cor0.col0 ) DIV + col2 + col1 + - col1 FROM tab1 cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-2654
SELECT ALL + - ( - cor0.col0 ) / + col2 + col1 + - col1 FROM tab1 cor0
----
0
0
1

query I rowsort
SELECT ALL cor1.col2 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475

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

query I rowsort
SELECT DISTINCT + col1 * col2 * - col0 + + col2 AS col2 FROM tab1
----
-36423
-4158
-99744

query I rowsort
SELECT DISTINCT + 33 + col1 FROM tab2
----
50
64
92

query I rowsort
SELECT + - cor0.col1 AS col0 FROM tab2 cor0
----
-17
-31
-59

query I rowsort
SELECT + col1 + 25 AS col2 FROM tab0 AS cor0
----
111
116
122

onlyif mysql # use DIV operator for integer division
query I rowsort label-2661
SELECT col1 * ( col0 ) DIV col1 FROM tab0 cor0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-2661
SELECT col1 * ( col0 ) / col1 FROM tab0 cor0
----
24
35
89

query I rowsort
SELECT + 53 AS col0 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 866ae1b4ab9e5b4043ac1bcfd413aaa6

query I rowsort
SELECT ALL - col2 * - ( - col0 ) + + col0 FROM tab2 AS cor0
----
-182
-1950
-2923

query I rowsort
SELECT - col2 * - ( col0 ) * col1 + + 58 FROM tab0 AS cor0
----
3453
664176
68170

onlyif mysql # use DIV operator for integer division
query I rowsort label-2665
SELECT DISTINCT cor0.col2 DIV + ( col0 ) + - col2 AS col2 FROM tab0 AS cor0
----
-1
-32
-82

skipif mysql # not compatible
query I rowsort label-2665
SELECT DISTINCT cor0.col2 / + ( col0 ) + - col2 AS col2 FROM tab0 AS cor0
----
-1
-32
-82

query I rowsort
SELECT - col2 + - 55 AS col2 FROM tab0 cor0
----
-137
-56
-88

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

query I rowsort
SELECT ALL col0 * + col0 FROM tab1 cor0
----
4096
6400
9

query I rowsort
SELECT DISTINCT 64 * col1 * 62 FROM tab1 AS cor0
----
103168
39680
51584

query I rowsort
SELECT - col0 * col0 + col0 + + 34 * + col0 FROM tab2 AS cor0
----
-3354
-3476
196

query I rowsort
SELECT + - col1 + col0 * col0 FROM tab0 AS cor0
----
1128
490
7830

query I rowsort
SELECT - + col1 * - col1 + - col0 * col1 + - col2 AS col2 FROM tab1 AS cor0
----
-597
-967
544

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 49 col1 FROM tab2, tab2 AS cor0
----
9 values hashing to cb40783c0fff72e8802cdf0682e7cb55

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

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

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

query I rowsort
SELECT cor1.col2 AS col2 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5

query I rowsort
SELECT + col1 + col1 + - 29 * + 53 * + col0 FROM tab1
----
-122934
-4559
-98348

query I rowsort
SELECT DISTINCT + cor0.col0 AS col1 FROM tab2, tab1 cor0
----
3
64
80

query I rowsort
SELECT + cor0.col2 * ( 25 ) AS col1 FROM tab0 AS cor0
----
2050
25
825

query I rowsort
SELECT DISTINCT - 82 + tab1.col0 FROM tab1, tab0, tab0 AS cor0
----
-18
-2
-79

query I rowsort
SELECT DISTINCT + col0 * col2 * col2 AS col0 FROM tab0
----
26136
35
598436

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2683
SELECT tab1.col1 * - col1 * CAST( col2 AS SIGNED ) AS col1 FROM tab1
----
-16224
-36504
-5700

skipif mysql # not compatible
query I rowsort label-2683
SELECT tab1.col1 * - col1 * CAST ( col2 AS INTEGER ) AS col1 FROM tab1
----
-16224
-36504
-5700

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

query I rowsort
SELECT ALL + + 53 AS col2 FROM tab1, tab2, tab1 cor0
----
27 values hashing to 866ae1b4ab9e5b4043ac1bcfd413aaa6

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2686
SELECT DISTINCT + tab0.col2 + tab0.col1 + - CAST( + ( col0 ) + ( 73 ) AS SIGNED ) FROM tab0
----
-10
11
22

skipif mysql # not compatible
query I rowsort label-2686
SELECT DISTINCT + tab0.col2 + tab0.col1 + - CAST ( + ( col0 ) + ( 73 ) AS INTEGER ) FROM tab0
----
-10
11
22

query I rowsort
SELECT ALL - 52 + col2 AS col1 FROM tab0
----
-19
-51
30

query I rowsort
SELECT - 19 + + col1 AS col2 FROM tab1
----
-6
-9
7

query I rowsort
SELECT DISTINCT col1 + ( - col1 + - col2 ) AS col0 FROM tab1 AS cor0
----
-54
-57
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( col0 ) - + col0 col0 FROM tab2 cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-2691
SELECT ALL + cor0.col1 DIV - ( - col2 * cor0.col0 ) + - col1 AS col2 FROM tab1 AS cor0
----
-10
-13
-26

skipif mysql # not compatible
query I rowsort label-2691
SELECT ALL + cor0.col1 / - ( - col2 * cor0.col0 ) + - col1 AS col2 FROM tab1 AS cor0
----
-10
-13
-26

query I rowsort
SELECT col0 + 60 FROM tab1
----
124
140
63

onlyif mysql # use DIV operator for integer division
query I rowsort label-2693
SELECT + col1 DIV 56 + - col0 * - col0 FROM tab1
----
4096
6400
9

skipif mysql # not compatible
query I rowsort label-2693
SELECT + col1 / 56 + - col0 * - col0 FROM tab1
----
4096
6400
9

query I rowsort
SELECT + 11 + ( tab2.col1 ) * - col1 - col2 AS col2 FROM tab2
----
-316
-3496
-977

query I rowsort
SELECT + col1 * + 73 FROM tab2
----
1241
2263
4307

query I rowsort
SELECT DISTINCT 3 - - col0 * - col0 FROM tab0
----
-1222
-573
-7918

query I rowsort
SELECT ALL - col1 * + cor0.col1 * + col0 + col1 * - 12 FROM tab1 AS cor0
----
-13676
-2340
-6520

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

skipif mysql # not compatible
query I rowsort label-2698
SELECT col0 / 89 FROM tab0 AS cor0
----
0
0
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-2699
SELECT + 80 DIV col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2699
SELECT + 80 / col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT + ( - col1 ) * + col2 * col0 + - cor0.col1 - col0 FROM tab1 AS cor0
----
-36554
-4241
-99933

query I rowsort
SELECT ALL 85 + + 34 - + tab1.col0 FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to 8658c7ab69e47c479694298c04a90e54

query I rowsort
SELECT DISTINCT col1 - + 79 * col1 FROM tab1 AS cor0
----
-1014
-2028
-780

query I rowsort
SELECT DISTINCT + col1 - cor0.col1 * col2 * 3 FROM tab0 AS cor0
----
-194
-22295
-8428

query I rowsort
SELECT - ( 79 ) + + col2 FROM tab0 AS cor0
----
-46
-78
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * + 3 col1 FROM tab0 AS cor0
----
246
3
99

query I rowsort
SELECT ALL + col2 * + col0 AS col1 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT ALL + 4 AS col1 FROM tab0
----
4
4
4

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

query I rowsort
SELECT ALL - + 20 - - col2 FROM tab2 AS cor0
----
18
6
7

query I rowsort
SELECT ALL - cor0.col2 * col1 + col0 AS col0 FROM tab1 cor0
----
-1168
-1401
-506

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

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

query I rowsort
SELECT DISTINCT + 31 + col1 AS col2 FROM tab1 AS cor0
----
41
44
57

query I rowsort
SELECT DISTINCT + col1 * - col0 + 46 AS col0 FROM tab0 AS cor0
----
-2018
-3349
-8053

query I rowsort
SELECT DISTINCT cor0.col0 + col2 + col2 AS col1 FROM tab1 AS cor0
----
111
178
272

query I rowsort
SELECT ALL 13 + col0 AS col0 FROM tab1 AS cor0
----
16
77
93

query I rowsort
SELECT + 72 + + col0 AS col1 FROM tab2 AS cor0
----
150
151
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * + col1 + - 14 col0 FROM tab1 AS cor0
----
1026
626
64

query I rowsort
SELECT + col0 * col2 - 64 AS col1 FROM tab0 AS cor0
----
-29
7234
728

query I rowsort
SELECT ALL - + 85 + + cor0.col0 AS col2 FROM tab1 AS cor0
----
-21
-5
-82

query I rowsort
SELECT DISTINCT - cor0.col2 * + col1 - col2 FROM tab1 AS cor0
----
-1344
-1458
-627

query I rowsort
SELECT 19 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 3dac30dc82c9e5acbbd3a5c5d1aeee11

query I rowsort
SELECT - 52 AS col1 FROM tab1 cor0
----
-52
-52
-52

onlyif mysql # use DIV operator for integer division
query I rowsort label-2723
SELECT ALL + 59 DIV col1 + - ( + col2 ) FROM tab0 AS cor0
----
-1
-33
-82

skipif mysql # not compatible
query I rowsort label-2723
SELECT ALL + 59 / col1 + - ( + col2 ) FROM tab0 AS cor0
----
-1
-33
-82

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

query I rowsort
SELECT + cor0.col1 * - cor0.col1 + - ( + col2 ) FROM tab1 AS cor0
----
-157
-265
-730

query I rowsort
SELECT ALL + col1 * col0 + + 1 FROM tab1 cor0
----
1041
641
79

query I rowsort
SELECT - 59 + - col0 FROM tab1 AS cor0
----
-123
-139
-62

query I rowsort
SELECT DISTINCT - col0 - col0 AS col0 FROM tab0 cor0
----
-178
-48
-70

query I rowsort
SELECT DISTINCT - 46 * + col1 FROM tab2 AS cor0
----
-1426
-2714
-782

query I rowsort
SELECT + col0 * col0 - 50 AS col0 FROM tab1 AS cor0
----
-41
4046
6350

query I rowsort
SELECT ALL col1 * - col1 * - 76 + ( col2 ) FROM tab0 AS cor0
----
562129
629438
715085

query I rowsort
SELECT - col0 + tab2.col2 * + col1 AS col0 FROM tab2
----
1456
567
830

query I rowsort
SELECT + tab1.col0 AS col1 FROM tab1, tab1 cor0
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870

query I rowsort
SELECT DISTINCT - col1 + - col1 AS col2 FROM tab0 cor0
----
-172
-182
-194

query I rowsort
SELECT ALL + col1 * + 44 FROM tab2 AS cor0
----
1364
2596
748

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - cor0.col1 + 42 * - col2 + - col2 col0 FROM tab0 AS cor0
----
-1333
-3435
54

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

skipif mysql # not compatible
query I rowsort label-2737
SELECT col1 + CAST ( - col1 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + col0 * + 4 FROM tab0 cor0
----
140
356
96

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

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

query I rowsort
SELECT + - ( col2 ) * - col0 AS col2 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT ALL + col0 * + col0 * col1 AS col1 FROM tab1 AS cor0
----
234
40960
83200

query I rowsort
SELECT ALL tab1.col1 + - cor0.col1 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 2b5ce14343793e82b2c07b009299e0dd

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

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

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

query I rowsort
SELECT 97 AS col2 FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to c73fa6978df8525c99d6bc792bb27123

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

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

query I rowsort
SELECT - 55 FROM tab0, tab0 cor0
----
9 values hashing to ac76841ceecd2311e80c621d15bacdd3

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

query I rowsort
SELECT cor0.col1 * ( 44 ) FROM tab1 AS cor0
----
1144
440
572

query I rowsort
SELECT DISTINCT - col1 * + 89 AS col0 FROM tab2 AS cor0
----
-1513
-2759
-5251

onlyif mysql # use DIV operator for integer division
query I rowsort label-2753
SELECT ALL + + cor0.col2 + - col2 DIV 47 FROM tab1 cor0
----
53
56
94

skipif mysql # not compatible
query I rowsort label-2753
SELECT ALL + + cor0.col2 + - col2 / 47 FROM tab1 cor0
----
53
56
94

query I rowsort
SELECT + col0 * + cor0.col2 AS col0 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT - - col2 * + 34 AS col1 FROM tab1 AS cor0
----
1836
1938
3264

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2756
SELECT ALL - + col2 + CAST( + 55 AS SIGNED ) AS col2 FROM tab2 cor0
----
17
28
29

skipif mysql # not compatible
query I rowsort label-2756
SELECT ALL - + col2 + CAST ( + 55 AS INTEGER ) AS col2 FROM tab2 cor0
----
17
28
29

query I rowsort
SELECT ALL col2 * + 27 + + 71 FROM tab1 cor0
----
1529
1610
2663

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * - ( col0 * col0 + 49 ) col1 FROM tab0 cor0
----
1274
20625
653540

query I rowsort
SELECT col2 + 55 AS col2 FROM tab1 cor0
----
109
112
151

query I rowsort
SELECT ALL 24 - - col0 AS col1 FROM tab2 AS cor0
----
102
103
31

query I rowsort
SELECT ALL - + 34 + - col1 FROM tab1 AS cor0
----
-44
-47
-60

query I rowsort
SELECT + 64 + ( col2 ) * 75 FROM tab2 AS cor0
----
2014
2089
2914

query I rowsort
SELECT ALL + + col1 * - ( col1 ) FROM tab1 AS cor0
----
-100
-169
-676

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

query I rowsort
SELECT DISTINCT 35 * col0 FROM tab1 AS cor0
----
105
2240
2800

query I rowsort
SELECT - 47 + + col2 FROM tab1
----
10
49
7

query I rowsort
SELECT DISTINCT + ( + col0 ) AS col2 FROM tab2
----
7
78
79

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab2, tab0 cor0, tab1 AS cor1
----
972 values hashing to 82e15d5967b272804e574774895a0222

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + cor0.col0 col1 FROM tab2 AS cor0
----
137
38
96

query I rowsort
SELECT DISTINCT - col2 * - col0 + - col1 + + col0 * col1 AS col2 FROM tab2 AS cor0
----
375
4328
6571

query I rowsort
SELECT - cor0.col0 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 3000337dd3f11e9cfd5a312b01ef3f8b

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - tab0.col2 col0 FROM tab0
----
-1
-33
-82

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

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

query I rowsort
SELECT - + col0 * col1 * + col0 + col0 + - col0 AS col1 FROM tab1 cor0
----
-234
-40960
-83200

query I rowsort
SELECT + cor0.col1 * + col1 AS col1 FROM tab1 cor0
----
100
169
676

query I rowsort
SELECT + 76 * + cor0.col2 AS col1 FROM tab0 AS cor0
----
2508
6232
76

query I rowsort
SELECT + col1 + + col2 * 92 FROM tab0 AS cor0
----
189
3122
7635

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab2 cor0, tab0 AS cor1, tab1, tab2 AS cor2
----
3645 values hashing to 47906197307eee6829150d762058792a

query I rowsort
SELECT - 26 AS col2 FROM tab2, tab2 cor0
----
9 values hashing to 47d0574274146de273829785364ada39

query I rowsort
SELECT - 40 * + 93 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 476f0bb883ce162754af4924c1790cf9

query I rowsort
SELECT - + col1 * 96 FROM tab0 AS cor0
----
-8256
-8736
-9312

query I rowsort
SELECT DISTINCT 21 AS col2 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
21

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

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

query I rowsort
SELECT + 73 * ( + col0 * col1 ) FROM tab0 AS cor0
----
150672
247835
591227

query I rowsort
SELECT ALL col1 * 67 AS col1 FROM tab0
----
5762
6097
6499

query I rowsort
SELECT DISTINCT + 18 * - col0 AS col1 FROM tab0 AS cor0
----
-1602
-432
-630

onlyif mysql # use DIV operator for integer division
query I rowsort label-2788
SELECT DISTINCT - 22 DIV cor0.col1 FROM tab2 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-2788
SELECT DISTINCT - 22 / cor0.col1 FROM tab2 AS cor0
----
-1
0

query I rowsort
SELECT + col0 * - col0 * - col0 + col0 * - col2 - + col2 AS col2 FROM tab0 AS cor0
----
12999
42839
697589

query I rowsort
SELECT ALL cor0.col2 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17

query I rowsort
SELECT ( + 46 ) FROM tab1, tab2 cor0
----
9 values hashing to 31818c9d4d325eb248735c97cb1dce39

query I rowsort
SELECT col0 * + 47 + + col2 AS col0 FROM tab2 AS cor0
----
356
3692
3751

query I rowsort
SELECT - + 88 * - cor0.col2 AS col0 FROM tab0 cor0
----
2904
7216
88

query I rowsort
SELECT DISTINCT + 22 * + col1 AS col2 FROM tab1
----
220
286
572

query I rowsort
SELECT DISTINCT 96 + 28 AS col2 FROM tab1, tab2, tab2 AS cor0
----
124

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2796
SELECT + CAST( - col2 AS SIGNED ) * col2 col1 FROM tab0
----
-1
-1089
-6724

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2796
SELECT + CAST ( - col2 AS INTEGER ) * col2 col1 FROM tab0
----
-1
-1089
-6724

query I rowsort
SELECT DISTINCT ( + ( col0 ) ) FROM tab2
----
7
78
79

query I rowsort
SELECT - 28 * - col1 AS col1 FROM tab0 AS cor0
----
2408
2548
2716

query I rowsort
SELECT + 78 * - col0 FROM tab2 cor0
----
-546
-6084
-6162

query I rowsort
SELECT col2 + + cor0.col2 AS col1 FROM tab0 AS cor0
----
164
2
66

query I rowsort
SELECT ALL - ( - 48 + + col2 ) AS col1 FROM tab2
----
10
21
22

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

skipif mysql # not compatible
query I rowsort label-2802
SELECT DISTINCT + CAST ( NULL AS REAL ) * + col1 FROM tab2
----
NULL

query I rowsort
SELECT + 90 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 96f7a90428db93f472e0d219bab64853

query I rowsort
SELECT DISTINCT col1 + - ( col1 ) * tab0.col1 - col2 * - 12 * col1 AS col1 FROM tab0
----
-8148
26746
81354

onlyif mysql # use DIV operator for integer division
query I rowsort label-2805
SELECT tab1.col2 * CAST( 84 AS SIGNED ) DIV - col0 FROM tab1
----
-100
-1512
-74

skipif mysql # not compatible
query I rowsort label-2805
SELECT tab1.col2 * CAST ( 84 AS INTEGER ) / - col0 FROM tab1
----
-100
-1512
-74

query I rowsort
SELECT - + col0 * ( col1 * col2 ) + - 39 + col1 FROM tab2 AS cor0
----
-119632
-51056
-5867

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

query I rowsort
SELECT col2 * + cor0.col0 * - cor0.col2 FROM tab2 cor0
----
-114076
-5103
-52728

query I rowsort
SELECT ALL col2 * 83 AS col0 FROM tab0 AS cor0
----
2739
6806
83

query I rowsort
SELECT - col2 + - ( col0 ) * - col2 FROM tab0 AS cor0
----
34
7216
759

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2811
SELECT + col1 * CAST( - col0 AS SIGNED ) AS col1 FROM tab2 cor0
----
-1343
-217
-4602

skipif mysql # not compatible
query I rowsort label-2811
SELECT + col1 * CAST ( - col0 AS INTEGER ) AS col1 FROM tab2 cor0
----
-1343
-217
-4602

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

query I rowsort
SELECT DISTINCT - + ( col1 ) AS col2 FROM tab0 AS cor0
----
-86
-91
-97

query I rowsort
SELECT - 61 * col2 - - col2 AS col0 FROM tab2 AS cor0
----
-1560
-1620
-2280

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

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

skipif mysql # not compatible
query I rowsort label-2816
SELECT - col0 * CAST ( NULL AS INTEGER ) / col2 AS col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT + col0 * 1 AS col2 FROM tab2
----
7
78
79

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + CAST ( col0 AS REAL ) FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT + ( ( + col1 ) ) + - col2 - + col1 FROM tab1 AS cor0
----
-54
-57
-96

query I rowsort
SELECT ALL col1 * - 15 FROM tab0 AS cor0
----
-1290
-1365
-1455

query I rowsort
SELECT + ( - cor0.col0 ) FROM tab2 cor0
----
-7
-78
-79

onlyif mysql # use DIV operator for integer division
query I rowsort label-2822
SELECT + + 95 DIV + 27 AS col2 FROM tab0 AS cor0
----
3
3
3

skipif mysql # not compatible
query I rowsort label-2822
SELECT + + 95 / + 27 AS col2 FROM tab0 AS cor0
----
3
3
3

query I rowsort
SELECT DISTINCT - col1 * + 93 + col0 FROM tab2 AS cor0
----
-1502
-2876
-5409

query I rowsort
SELECT DISTINCT - 46 * + 55 FROM tab2 AS cor0
----
-2530

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 * + 28 col0 FROM tab0 AS cor0
----
-2492
-672
-980

query I rowsort
SELECT ALL ( 12 ) * col0 AS col2 FROM tab0 AS cor0
----
1068
288
420

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * + col2 col0 FROM tab0 AS cor0
----
1
1089
6724

query I rowsort
SELECT ALL + tab2.col2 - col1 * 71 FROM tab2
----
-1169
-2174
-4163

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

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

query I rowsort
SELECT ALL col1 * 11 FROM tab2
----
187
341
649

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

query I rowsort
SELECT + col0 + - cor0.col2 AS col0 FROM tab2 AS cor0
----
-20
41
52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col2 * cor0.col2 * + col0 col2 FROM tab2 AS cor0
----
114076
5103
52728

query I rowsort
SELECT + 40 + - col0 AS col0 FROM tab1 AS cor0
----
-24
-40
37

query I rowsort
SELECT DISTINCT - cor0.col2 + cor0.col2 * - col0 AS col1 FROM tab0 AS cor0
----
-36
-7380
-825

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 55 + col1 col2 FROM tab1 cor0
----
-29
-42
-45

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

skipif mysql # not compatible
query I rowsort label-2837
SELECT DISTINCT + CAST ( NULL AS INTEGER ) FROM tab1, tab2, tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL col1 * tab0.col0 FROM tab0
----
2064
3395
8099

query I rowsort
SELECT ALL cor0.col1 - + 76 FROM tab1, tab0 AS cor0
----
9 values hashing to 9d2e349c21294c1a3632d6abd4cfe7f0

query I rowsort
SELECT ALL + 81 AS col0 FROM tab1
----
81
81
81

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

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

query I rowsort
SELECT ALL tab2.col2 * - col1 FROM tab2
----
-1534
-646
-837

query I rowsort
SELECT DISTINCT - col1 * tab2.col1 FROM tab2
----
-289
-3481
-961

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab2, tab0 cor0, tab2 AS cor1
----
972 values hashing to 42e69ecdafb3c81046bc5cb4c98b1666

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

query I rowsort
SELECT DISTINCT + 73 AS col2 FROM tab2
----
73

query I rowsort
SELECT ALL + + col1 * - col0 + col1 AS col0 FROM tab1 AS cor0
----
-1027
-52
-630

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

query I rowsort
SELECT ALL col0 * ( + cor0.col0 ) FROM tab2 AS cor0
----
49
6084
6241

query I rowsort
SELECT + col2 * col0 + col1 AS col1 FROM tab1 cor0
----
188
3658
7693

query I rowsort
SELECT ALL + col0 * + col2 + - col2 + + col1 * col0 FROM tab0 AS cor0
----
15315
2823
3429

query I rowsort
SELECT ALL - col0 + - 37 * col1 AS col2 FROM tab2 AS cor0
----
-1154
-2261
-708

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

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2854
SELECT 62 - col0 * CAST( + col0 + col1 AS SIGNED ) AS col0 FROM tab1
----
-25
-4674
-7378

skipif mysql # not compatible
query I rowsort label-2854
SELECT 62 - col0 * CAST ( + col0 + col1 AS INTEGER ) AS col0 FROM tab1
----
-25
-4674
-7378

query I rowsort
SELECT 73 + col2 * col2 * col1 AS col0 FROM tab1
----
119881
32563
75889

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

query I rowsort
SELECT DISTINCT - col2 + ( col0 ) FROM tab0 AS cor0
----
-9
34
7

query I rowsort
SELECT ALL + 11 + + 63 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 2ccf8ef3f477e1a1a3e30c8b8154ff31

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

query I rowsort
SELECT ALL - + cor0.col1 * + col0 - + col1 AS col2 FROM tab0 AS cor0
----
-2150
-3492
-8190

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

query I rowsort
SELECT ALL - col0 + col0 + + 23 FROM tab1 AS cor0
----
23
23
23

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2863
SELECT col0 * - CAST( + 3 AS SIGNED ) FROM tab0 AS cor0
----
-105
-267
-72

skipif mysql # not compatible
query I rowsort label-2863
SELECT col0 * - CAST ( + 3 AS INTEGER ) FROM tab0 AS cor0
----
-105
-267
-72

query I rowsort
SELECT ALL - cor0.col0 * + ( col2 ) - + col1 AS col2 FROM tab0 AS cor0
----
-132
-7389
-878

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

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

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

skipif mysql # not compatible
query I rowsort label-2867
SELECT ALL - col0 * 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-2868
SELECT DISTINCT + col2 DIV + 61 + - col2 * - col1 + col1 FROM tab0 AS cor0
----
194
2924
7554

skipif mysql # not compatible
query I rowsort label-2868
SELECT DISTINCT + col2 / + 61 + - col2 * - col1 + col1 FROM tab0 AS cor0
----
194
2924
7554

onlyif mysql # use DIV operator for integer division
query I rowsort label-2869
SELECT DISTINCT col0 DIV 68 + - col2 FROM tab2
----
-25
-27
-37

skipif mysql # not compatible
query I rowsort label-2869
SELECT DISTINCT col0 / 68 + - col2 FROM tab2
----
-25
-27
-37

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

skipif mysql # not compatible
query I rowsort label-2870
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + 59 + - tab2.col1 FROM tab2
----
NULL

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

query I rowsort
SELECT - - col2 * 20 + col0 FROM tab0 AS cor0
----
1729
55
684

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

query I rowsort
SELECT 93 FROM tab0 AS cor0
----
93
93
93

query I rowsort
SELECT ALL + + 58 * - col1 AS col2 FROM tab2 AS cor0
----
-1798
-3422
-986

onlyif mysql # use DIV operator for integer division
query I rowsort label-2876
SELECT col0 * + col2 + cor0.col2 DIV cor0.col0 AS col0 FROM tab0 AS cor0
----
35
7298
793

skipif mysql # not compatible
query I rowsort label-2876
SELECT col0 * + col2 + cor0.col2 / cor0.col0 AS col0 FROM tab0 AS cor0
----
35
7298
793

query I rowsort
SELECT - ( cor0.col0 ) + + col1 * + col2 FROM tab2 AS cor0
----
1456
567
830

onlyif mysql # use DIV operator for integer division
query I rowsort label-2878
SELECT ALL + - col2 + cor0.col0 DIV + 97 AS col1 FROM tab1 cor0
----
-54
-57
-96

skipif mysql # not compatible
query I rowsort label-2878
SELECT ALL + - col2 + cor0.col0 / + 97 AS col1 FROM tab1 cor0
----
-54
-57
-96

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

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

query I rowsort
SELECT ( ( + col0 ) + col2 ) FROM tab1
----
121
176
57

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

query I rowsort
SELECT DISTINCT 18 FROM tab0, tab1 cor0, tab2 AS cor1
----
18

query I rowsort
SELECT DISTINCT - 42 + col0 AS col1 FROM tab1 AS cor0
----
-39
22
38

onlyif mysql # use DIV operator for integer division
query I rowsort label-2884
SELECT + + ( - col0 ) DIV col1 + col0 * col0 FROM tab0 AS cor0
----
1225
576
7921

skipif mysql # not compatible
query I rowsort label-2884
SELECT + + ( - col0 ) / col1 + col0 * col0 FROM tab0 AS cor0
----
1225
576
7921

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

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

query I rowsort
SELECT DISTINCT - - col1 * col0 - - col1 * ( col1 ) AS col0 FROM tab0 AS cor0
----
12804
16380
9460

query I rowsort
SELECT DISTINCT col0 * - ( col1 ) FROM tab2 cor0
----
-1343
-217
-4602

query I rowsort
SELECT DISTINCT + - 6 AS col1 FROM tab2 AS cor0
----
-6

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2889
SELECT DISTINCT + CAST( + col2 AS SIGNED ) * + col0 AS col1 FROM tab1 cor0
----
162
3648
7680

skipif mysql # not compatible
query I rowsort label-2889
SELECT DISTINCT + CAST ( + col2 AS INTEGER ) * + col0 AS col1 FROM tab1 cor0
----
162
3648
7680

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

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

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

query I rowsort
SELECT + - 65 * col1 AS col1 FROM tab1 AS cor0
----
-1690
-650
-845

query I rowsort
SELECT ALL - - 35 * col2 + col1 AS col2 FROM tab2 cor0
----
1347
969
976

query I rowsort
SELECT 90 * 65 AS col1 FROM tab0 AS cor0
----
5850
5850
5850

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

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

query I rowsort
SELECT ALL col1 * - 11 AS col0 FROM tab1 AS cor0
----
-110
-143
-286

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

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

query I rowsort
SELECT DISTINCT - 96 * col1 + - col2 FROM tab2 AS cor0
----
-1670
-3003
-5690

query I rowsort
SELECT ALL - - col0 + - col2 AS col0 FROM tab2 AS cor0
----
-20
41
52

query I rowsort
SELECT DISTINCT tab0.col2 + ( tab0.col2 ) * col2 AS col2 FROM tab0
----
1122
2
6806

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-2902
SELECT DISTINCT cor0.col1 DIV ( tab1.col2 ) FROM tab1, tab0 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-2902
SELECT DISTINCT cor0.col1 / ( tab1.col2 ) FROM tab1, tab0 AS cor0
----
0
1

query I rowsort
SELECT col0 * + col0 + 74 AS col2 FROM tab2
----
123
6158
6315

query I rowsort
SELECT col0 * ( - 37 ) + - col0 FROM tab2
----
-266
-2964
-3002

onlyif mysql # use DIV operator for integer division
query I rowsort label-2905
SELECT DISTINCT col2 * col2 + col1 DIV col1 col1 FROM tab0
----
1090
2
6725

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2905
SELECT DISTINCT col2 * col2 + col1 / col1 col1 FROM tab0
----
1090
2
6725

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + col2 ) col0 FROM tab2 cor0
----
26
27
38

onlyif mysql # use DIV operator for integer division
query I rowsort label-2907
SELECT 91 DIV col1 AS col0 FROM tab1 AS cor0
----
3
7
9

skipif mysql # not compatible
query I rowsort label-2907
SELECT 91 / col1 AS col0 FROM tab1 AS cor0
----
3
7
9

query I rowsort
SELECT + 73 * col2 FROM tab0 AS cor0
----
2409
5986
73

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 67 * - tab2.col1 col2 FROM tab2, tab0 AS cor0
----
-1139
-2077
-3953

query I rowsort
SELECT cor0.col1 + + ( col1 ) + - col2 FROM tab2 cor0
----
-4
35
92

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-2912
SELECT - col2 + + 50 DIV 25 AS col0 FROM tab1 cor0
----
-52
-55
-94

skipif mysql # not compatible
query I rowsort label-2912
SELECT - col2 + + 50 / 25 AS col0 FROM tab1 cor0
----
-52
-55
-94

query I rowsort
SELECT DISTINCT col2 + - 92 + + cor0.col0 AS col1 FROM tab0 AS cor0
----
-35
-56
79

query I rowsort
SELECT - col2 * - col2 + + 29 * - cor0.col2 FROM tab2 AS cor0
----
-54
-78
342

query I rowsort
SELECT ALL - 79 + - cor1.col1 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 0d940f25e380f56ac6f2bc1800aac60b

query I rowsort
SELECT 28 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to aad32232c428b3ecb5ada63f7e9b0a97

query I rowsort
SELECT ALL 72 + + col2 * col1 AS col2 FROM tab1
----
1320
1476
642

query I rowsort
SELECT col0 * + ( 35 ) FROM tab0
----
1225
3115
840

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col1 col0 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab1, tab1 AS cor0, tab1 AS cor1
----
972 values hashing to 635619591835474e6aa6acdff4ab166c

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 88 col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 6be17b82ecb3e8b268fcb4ba610ddb37

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

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1, tab2 AS cor0, tab1 cor1, tab2, tab1 AS cor2
----
3645 values hashing to 2563d2f4127fd757b80c46400c5511cb

onlyif mysql # use DIV operator for integer division
query I rowsort label-2924
SELECT DISTINCT - col2 + col0 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-2924
SELECT DISTINCT - col2 + col0 / col1 col2 FROM tab0 AS cor0
----
-1
-33
-82

query I rowsort
SELECT ALL - cor0.col2 * - 32 FROM tab2 AS cor0
----
1216
832
864

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

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

query I rowsort
SELECT DISTINCT cor0.col1 FROM tab1 AS cor0 CROSS JOIN tab0, tab2 AS cor1
----
10
13
26

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab0 AS cor0, tab2, tab2 cor1
----
972 values hashing to 82def1c3361e635dd4cf447edc22edb9

query I rowsort
SELECT ALL + 11 FROM tab1 AS cor0 CROSS JOIN tab0, tab1 AS cor1, tab2 AS cor2
----
81 values hashing to 288f8fb62e079d095c14d7cf3e2d3359

query I rowsort
SELECT - col1 + ( + 34 ) FROM tab1 cor0
----
21
24
8

query I rowsort
SELECT ALL + col2 + 93 - 70 * col1 AS col0 FROM tab0 AS cor0
----
-5894
-6195
-6696

query I rowsort
SELECT DISTINCT - col0 * + col1 + 32 AS col0 FROM tab1 AS cor0
----
-1008
-46
-608

query I rowsort
SELECT col1 * col0 + 14 * - cor0.col0 FROM tab0 AS cor0
----
1728
2905
6853

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

query I rowsort
SELECT DISTINCT tab1.col1 + + col1 + col1 FROM tab1
----
30
39
78

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

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

query I rowsort
SELECT - 29 * + 38 AS col0 FROM tab0
----
-1102
-1102
-1102

onlyif mysql # use DIV operator for integer division
query I rowsort label-2939
SELECT + col2 - tab1.col0 DIV - col1 FROM tab1
----
102
54
63

skipif mysql # not compatible
query I rowsort label-2939
SELECT + col2 - tab1.col0 / - col1 FROM tab1
----
102
54
63

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

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

skipif mysql # not compatible
query I rowsort label-2941
SELECT - CAST ( NULL AS INTEGER ) + - 2 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 51 AS col0 FROM tab0
----
51
51
51

query I rowsort
SELECT ALL 59 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to e29fef8cdec1ee45a71d213f16d2f1d3

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1, tab2 AS cor0, tab1 AS cor1, tab2, tab1 AS cor2
----
3645 values hashing to 2563d2f4127fd757b80c46400c5511cb

query I rowsort
SELECT - + cor0.col1 * col1 FROM tab0 AS cor0
----
-7396
-8281
-9409

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-2947
SELECT ALL - col2 DIV cor0.col0 - - col1 AS col0 FROM tab2 AS cor0
----
17
28
59

skipif mysql # not compatible
query I rowsort label-2947
SELECT ALL - col2 / cor0.col0 - - col1 AS col0 FROM tab2 AS cor0
----
17
28
59

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

query I rowsort
SELECT - 76 * - col0 FROM tab0 AS cor0
----
1824
2660
6764

query I rowsort
SELECT - col1 * + col0 - col0 * col0 FROM tab0 AS cor0
----
-16020
-2640
-4620

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

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

query I rowsort
SELECT col2 * col2 - cor0.col0 * - col1 FROM tab1 cor0
----
10256
2994
3889

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

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

query I rowsort
SELECT col0 * col2 * - col0 + col1 - col2 FROM tab1 cor0
----
-233519
-514
-614483

onlyif mysql # use DIV operator for integer division
query I rowsort label-2955
SELECT - 79 + - tab0.col1 + 91 * - col0 DIV col0 FROM tab0
----
-256
-261
-267

skipif mysql # not compatible
query I rowsort label-2955
SELECT - 79 + - tab0.col1 + 91 * - col0 / col0 FROM tab0
----
-256
-261
-267

query I rowsort
SELECT + col0 + - tab2.col0 * ( + 42 ) FROM tab2
----
-287
-3198
-3239

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

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

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

query I rowsort
SELECT DISTINCT - col1 + + tab1.col0 * + col0 + - col1 FROM tab1
----
-43
4076
6374

query I rowsort
SELECT DISTINCT + col1 * tab1.col0 + + col0 FROM tab1
----
1120
704
81

query I rowsort
SELECT + col1 * - col1 - - 47 * + col0 AS col0 FROM tab2 AS cor0
----
-632
185
3424

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 - col2 col1 FROM tab2
----
-20
41
52

query I rowsort
SELECT ALL + cor0.col1 + 86 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to d73c4e88be92ac04c0fc0414ab793dca

onlyif mysql # use DIV operator for integer division
query I rowsort label-2966
SELECT DISTINCT + 5 DIV + 80 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-2966
SELECT DISTINCT + 5 / + 80 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
0

query I rowsort
SELECT ALL col0 * + 94 FROM tab1 cor0
----
282
6016
7520

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 59 col2 FROM tab0, tab1 AS cor0, tab2 cor1
----
27 values hashing to e29fef8cdec1ee45a71d213f16d2f1d3

query I rowsort
SELECT ALL col0 + ( cor0.col0 + col0 ) AS col2 FROM tab2 AS cor0
----
21
234
237

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( cor1.col1 ) + + cor1.col0 col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c22e7a33a1d8d55a5f7224b3cf03e3bc

query I rowsort
SELECT - 60 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 1a0b29f8e6f82c54623a665ba4af8fd1

onlyif mysql # use DIV operator for integer division
query I rowsort label-2972
SELECT cor0.col1 * col0 DIV 40 FROM tab2 AS cor0
----
115
33
5

skipif mysql # not compatible
query I rowsort label-2972
SELECT cor0.col1 * col0 / 40 FROM tab2 AS cor0
----
115
33
5

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2973
SELECT DISTINCT + cor0.col2 + CAST( 10 AS SIGNED ) + col2 FROM tab2 cor0
----
62
64
86

skipif mysql # not compatible
query I rowsort label-2973
SELECT DISTINCT + cor0.col2 + CAST ( 10 AS INTEGER ) + col2 FROM tab2 cor0
----
62
64
86

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

query I rowsort
SELECT DISTINCT ( col1 ) + + tab1.col0 * - col0 AS col2 FROM tab1
----
-4086
-6387
17

onlyif mysql # use DIV operator for integer division
query I rowsort label-2976
SELECT DISTINCT + cor0.col0 DIV cor0.col2 AS col1 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
0
1

skipif mysql # not compatible
query I rowsort label-2976
SELECT DISTINCT + cor0.col0 / cor0.col2 AS col1 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
0
1

query I rowsort
SELECT + 58 * + col1 FROM tab0
----
4988
5278
5626

query I rowsort
SELECT - ( - 59 ) AS col0 FROM tab0
----
59
59
59

query I rowsort
SELECT ALL + 79 FROM tab0, tab0 AS cor0, tab1 AS cor1, tab2 AS cor2
----
81 values hashing to da0116d31b8af0da9f685c090d378baf

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 50 + + 52 col1 FROM tab1 AS cor0
----
2
2
2

query I rowsort
SELECT ALL + + 62 FROM tab1 AS cor0
----
62
62
62

query I rowsort
SELECT col2 * - col0 AS col2 FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT DISTINCT - col2 * + col0 * + col0 AS col1 FROM tab0 AS cor0
----
-1225
-19008
-649522

query I rowsort
SELECT + 57 * col2 AS col2 FROM tab1 cor0
----
3078
3249
5472

query I rowsort
SELECT ALL + 96 + cor0.col2 AS col1 FROM tab2 AS cor0
----
122
123
134

query I rowsort
SELECT ALL - 99 + - col1 AS col0 FROM tab1 AS cor0
----
-109
-112
-125

query I rowsort
SELECT 17 AS col1 FROM tab2 AS cor0
----
17
17
17

onlyif mysql # use DIV operator for integer division
query I rowsort label-2988
SELECT ALL col2 + + cor0.col0 + + cor0.col2 DIV - col1 FROM tab2 AS cor0
----
104
115
34

skipif mysql # not compatible
query I rowsort label-2988
SELECT ALL col2 + + cor0.col0 + + cor0.col2 / - col1 FROM tab2 AS cor0
----
104
115
34

query I rowsort
SELECT + 11 + cor0.col1 AS col1 FROM tab1 AS cor0
----
21
24
37

query I rowsort
SELECT DISTINCT + 80 AS col1 FROM tab1 AS cor0
----
80

query I rowsort
SELECT - cor0.col0 + col1 * - col2 * ( col1 ) FROM tab2 AS cor0
----
-11061
-25954
-90584

query I rowsort
SELECT ALL 29 FROM tab1 cor0
----
29
29
29

query I rowsort
SELECT DISTINCT + 68 + + col2 AS col1 FROM tab2 AS cor0
----
106
94
95

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

query I rowsort
SELECT DISTINCT 80 AS col2 FROM tab1 AS cor0
----
80

query I rowsort
SELECT cor0.col2 + col1 * + ( col2 ) * col1 AS col0 FROM tab0 AS cor0
----
244101
679124
9410

query I rowsort
SELECT + 76 * - col0 FROM tab0
----
-1824
-2660
-6764

query I rowsort
SELECT + col1 + col1 * + col2 FROM tab0
----
194
2924
7553

query I rowsort
SELECT DISTINCT 43 + col2 * + tab2.col2 AS col2 FROM tab2
----
1487
719
772

query I rowsort
SELECT DISTINCT tab2.col0 * - col0 + col2 * + col1 * tab2.col0 FROM tab2
----
113568
44793
5810

query I rowsort
SELECT tab0.col2 * col0 * + col2 + col2 FROM tab0
----
26169
36
598518

query I rowsort
SELECT DISTINCT - 64 + col2 AS col1 FROM tab2
----
-26
-37
-38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( col2 * + col0 ) - + col1 * - col2 * ( - tab0.col0 ) col0 FROM tab0
----
-3430
-671416
-68904

query I rowsort
SELECT ALL + + cor0.col0 + - cor0.col2 AS col2 FROM tab1 AS cor0
----
-16
-51
7

onlyif mysql # use DIV operator for integer division
query I rowsort label-3005
SELECT ALL - + col0 DIV + 31 AS col0 FROM tab1 AS cor0
----
-2
-2
0

skipif mysql # not compatible
query I rowsort label-3005
SELECT ALL - + col0 / + 31 AS col0 FROM tab1 AS cor0
----
-2
-2
0

query I rowsort
SELECT - + col2 * cor0.col0 AS col2 FROM tab1 AS cor0
----
-162
-3648
-7680

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * col1 - + col1 col1 FROM tab1 AS cor0
----
156
650
90

query I rowsort
SELECT ALL + 9 * col1 + - col2 * col1 FROM tab2 AS cor0
----
-1003
-493
-558

onlyif mysql # use DIV operator for integer division
query I rowsort label-3010
SELECT ALL + 87 DIV col2 AS col2 FROM tab1 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-3010
SELECT ALL + 87 / col2 AS col2 FROM tab1 AS cor0
----
0
1
1

query I rowsort
SELECT 28 - + col0 * col0 * + col1 FROM tab2 AS cor0
----
-106069
-1491
-358928

query I rowsort
SELECT ALL 70 + + 62 FROM tab0 AS cor0
----
132
132
132

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3013
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - col2 - col1 AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3013
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - col2 - col1 AS col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT + + tab2.col1 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to 7599b480125de521efed71b5b2413c7d

query I rowsort
SELECT DISTINCT tab1.col1 AS col0 FROM tab1, tab0, tab2 AS cor0
----
10
13
26

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3016
SELECT ALL - CAST( - col2 AS SIGNED ) + - col1 * + 5 * - col0 FROM tab2 AS cor0
----
1112
23036
6753

skipif mysql # not compatible
query I rowsort label-3016
SELECT ALL - CAST ( - col2 AS INTEGER ) + - col1 * + 5 * - col0 FROM tab2 AS cor0
----
1112
23036
6753

query I rowsort
SELECT ALL + 13 * - col2 + + col0 * ( col1 ) * + col0 FROM tab0 AS cor0
----
118812
49107
719745

query I rowsort
SELECT ALL + - col0 + - col2 AS col0 FROM tab2 AS cor0
----
-104
-117
-34

query I rowsort
SELECT ALL col1 * + col2 * tab1.col2 - col0 * - ( col0 ) AS col0 FROM tab1
----
126208
36586
75825

query I rowsort
SELECT ALL col2 - - col1 AS col1 FROM tab1
----
109
67
80

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab2 cor0 CROSS JOIN tab2, tab1 AS cor1, tab1 cor2
----
3645 values hashing to 6156c969b7e054b8a333fdb86aee82f2

query I rowsort
SELECT ( col1 * tab0.col0 + - col1 * - ( + tab0.col1 ) ) AS col1 FROM tab0
----
12804
16380
9460

query I rowsort
SELECT DISTINCT + cor1.col0 * cor0.col1 AS col0 FROM tab1, tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to ae10dfda2508149d338269366c35c584

query I rowsort
SELECT 95 FROM tab0, tab0 AS cor0
----
9 values hashing to e57d8ed879dfd04d04aae87725c970d3

query I rowsort
SELECT DISTINCT + - ( + ( col0 ) ) + cor0.col2 FROM tab0 AS cor0
----
-34
-7
9

query I rowsort
SELECT + - 18 + + col2 AS col0 FROM tab2 AS cor0
----
20
8
9

onlyif mysql # use DIV operator for integer division
query I rowsort label-3027
SELECT ALL - - col0 DIV cor0.col0 AS col0 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3027
SELECT ALL - - col0 / cor0.col0 AS col0 FROM tab0 AS cor0
----
1
1
1

query I rowsort
SELECT DISTINCT - + 26 + - ( - col2 ) FROM tab1 AS cor0
----
28
31
70

query I rowsort
SELECT - ( col2 ) + cor0.col0 AS col2 FROM tab0 cor0
----
-9
34
7

query I rowsort
SELECT DISTINCT + 70 * ( + col1 ) AS col1 FROM tab1 AS cor0
----
1820
700
910

query I rowsort
SELECT - 88 * col1 + + col2 + col1 FROM tab0 AS cor0
----
-7449
-7835
-8438

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 37 col0 FROM tab2 AS cor0
----
-37
-37
-37

query I rowsort
SELECT col0 + + 18 AS col1 FROM tab2 AS cor0
----
25
96
97

query I rowsort
SELECT ALL 36 + 72 * - col1 AS col2 FROM tab0 AS cor0
----
-6156
-6516
-6948

query I rowsort
SELECT DISTINCT ( - tab1.col0 ) * col2 + col2 AS col1 FROM tab1
----
-108
-3591
-7584

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3036
SELECT ALL CAST( NULL AS SIGNED ) + - col1 * tab0.col0 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3036
SELECT ALL CAST ( NULL AS INTEGER ) + - col1 * tab0.col0 AS col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT + col0 * + 65 * + col1 AS col2 FROM tab2 AS cor0
----
14105
299130
87295

query I rowsort
SELECT - 93 - cor0.col0 FROM tab0 AS cor0
----
-117
-128
-182

query I rowsort
SELECT col1 + col0 FROM tab2 WHERE NOT col2 >= - tab2.col1
----

query I rowsort
SELECT tab0.col2 AS col2 FROM tab0 WHERE NULL BETWEEN - col1 + col1 AND ( - col1 - - col0 * col2 )
----

query I rowsort
SELECT col0 * + col1 + + col2 * col1 FROM tab2
----
1054
1989
6136

query I rowsort
SELECT DISTINCT col2 * - col2 + col0 * - col0 FROM tab2
----
-6760
-7685
-778

query I rowsort
SELECT + col0 FROM tab0 AS cor0 WHERE + col0 + + col0 + col1 NOT IN ( + col2 + - col2 )
----
24
35
89

query I rowsort
SELECT ALL col0 * col1 AS col1 FROM tab1 AS cor0
----
1040
640
78

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 * - col1 - col0 = - col1
----

query I rowsort
SELECT DISTINCT tab0.col2 * + col0 AS col1 FROM tab0
----
35
7298
792

query I rowsort
SELECT - tab2.col0 + - col0 + col1 FROM tab2
----
-141
-97
17

query I rowsort
SELECT ALL + col2 AS col1 FROM tab0 WHERE ( col2 + + col0 * col0 ) IN ( - tab0.col0 + col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab0.col0 * - col0 * col2 - col0 * + col2 col0 FROM tab0
----
-1260
-19800
-656820

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NULL ) IN ( + col1 )
----

query I rowsort
SELECT DISTINCT col0 * - col0 - + col1 FROM tab0
----
-1322
-662
-8012

query I rowsort
SELECT + col0 - + tab1.col1 * - col0 FROM tab1
----
1120
704
81

query I rowsort
SELECT col1 + col0 * - col2 - col1 * col0 * tab0.col2 AS col1 FROM tab0
----
-3333
-671325
-68818

query I rowsort
SELECT col0 * + col2 AS col1 FROM tab1
----
162
3648
7680

query I rowsort
SELECT DISTINCT col2 * col0 * tab0.col0 FROM tab0
----
1225
19008
649522

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * col0 * col0 col1 FROM tab0
----
118825
49536
720811

query I rowsort
SELECT ALL col2 + col2 AS col0 FROM tab0 WHERE ( col2 ) <= col0 + - col0
----

query I rowsort
SELECT + col2 + - col1 AS col2 FROM tab1
----
28
47
83

query I rowsort
SELECT DISTINCT tab1.col2 * col1 + tab1.col0 AS col2 FROM tab1
----
1328
1407
634

onlyif mysql # use DIV operator for integer division
query I rowsort label-3060
SELECT DISTINCT col2 * - col0 + + col2 DIV - tab1.col0 FROM tab1
----
-180
-3648
-7681

skipif mysql # not compatible
query I rowsort label-3060
SELECT DISTINCT col2 * - col0 + + col2 / - tab1.col0 FROM tab1
----
-180
-3648
-7681

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NULL ) NOT IN ( col1 + col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * + col1 col2 FROM tab2
----
1534
646
837

query I rowsort
SELECT ALL - col2 * - tab2.col1 AS col1 FROM tab2
----
1534
646
837

query I rowsort
SELECT ALL col0 * + col2 + + col2 FROM tab1
----
216
3705
7776

query I rowsort
SELECT col2 + col1 * + col1 + col1 * col0 AS col1 FROM tab0 cor0
----
12805
16462
9493

query I rowsort
SELECT DISTINCT + col1 * + col1 FROM tab1 cor0
----
100
169
676

query I rowsort
SELECT DISTINCT + + col1 * + cor0.col0 - - col2 FROM tab1 AS cor0
----
1136
132
697

query I rowsort
SELECT - col1 * - col2 AS col1 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT ALL + col1 * + cor0.col1 AS col0 FROM tab0 AS cor0
----
7396
8281
9409

onlyif mysql # use DIV operator for integer division
query I rowsort label-3070
SELECT DISTINCT + col2 DIV + col0 + + cor0.col1 AS col2 FROM tab2 cor0
----
17
34
59

skipif mysql # not compatible
query I rowsort label-3070
SELECT DISTINCT + col2 / + col0 + + cor0.col1 AS col2 FROM tab2 cor0
----
17
34
59

onlyif mysql # use DIV operator for integer division
query I rowsort label-3071
SELECT DISTINCT col1 DIV + col2 FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-3071
SELECT DISTINCT col1 / + col2 FROM tab1 cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 * + cor0.col1 * - cor0.col1 - + col1 col2 FROM tab1 AS cor0
----
17550
2184
990

query I rowsort
SELECT - + col1 * + cor0.col1 FROM tab0 AS cor0
----
-7396
-8281
-9409

query I rowsort
SELECT - + col2 + + col1 * col2 FROM tab0 AS cor0
----
2805
7380
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-3075
SELECT DISTINCT + col0 * - cor0.col0 - + col2 DIV col2 FROM tab0 AS cor0
----
-1226
-577
-7922

skipif mysql # not compatible
query I rowsort label-3075
SELECT DISTINCT + col0 * - cor0.col0 - + col2 / col2 FROM tab0 AS cor0
----
-1226
-577
-7922

onlyif mysql # use DIV operator for integer division
query I rowsort label-3076
SELECT ALL - col0 - col1 DIV - col2 FROM tab1 AS cor0
----
-3
-64
-80

skipif mysql # not compatible
query I rowsort label-3076
SELECT ALL - col0 - col1 / - col2 FROM tab1 AS cor0
----
-3
-64
-80

query I rowsort
SELECT DISTINCT + cor0.col2 + - cor0.col0 + + col1 FROM tab1 AS cor0
----
29
3
77

query I rowsort
SELECT col2 + + col2 * col2 AS col1 FROM tab2 AS cor0
----
1482
702
756

query I rowsort
SELECT DISTINCT col0 + tab0.col2 FROM tab0
----
171
36
57

query I rowsort
SELECT DISTINCT col2 * col1 + + col2 AS col1 FROM tab0
----
2871
7544
98

onlyif mysql # use DIV operator for integer division
query I rowsort label-3081
SELECT tab1.col0 DIV - col2 FROM tab1
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-3081
SELECT tab1.col0 / - col2 FROM tab1
----
-1
0
0

query I rowsort
SELECT ALL - tab2.col2 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2
----
9 values hashing to 7b5938124253798426fbf09c18e1fd75

query I rowsort
SELECT + tab1.col2 AS col0 FROM tab1 WHERE NOT NULL NOT IN ( - col0 * col2 - col0 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-3084
SELECT DISTINCT col0 * col2 + - col1 DIV col0 AS col1 FROM tab1
----
154
3648
7680

skipif mysql # not compatible
query I rowsort label-3084
SELECT DISTINCT col0 * col2 + - col1 / col0 AS col1 FROM tab1
----
154
3648
7680

query I rowsort
SELECT - col1 + - 76 - - col0 * cor0.col0 AS col2 FROM tab0 AS cor0
----
1052
414
7754

query I rowsort
SELECT + + col2 - 98 AS col2 FROM tab1 AS cor0
----
-2
-41
-44

query I rowsort
SELECT + - col2 + - cor0.col1 - - col1 FROM tab2 AS cor0
----
-26
-27
-38

onlyif mysql # use DIV operator for integer division
query I rowsort label-3088
SELECT col1 DIV 81 col2 FROM tab1 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3088
SELECT col1 / 81 col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT col0 * 35 + - col1 - col2 AS col0 FROM tab0 AS cor0
----
1127
2942
721

query I rowsort
SELECT - col0 + col0 * + col0 AS col1 FROM tab0 cor0
----
1190
552
7832

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + col1 - col1 col1 FROM tab1 AS cor0
----
3
64
80

query IIIIIIIIIIII rowsort
SELECT * FROM tab1, tab0, tab1 cor0, tab2
----
972 values hashing to f0b9665afa0b835e4e5097af17c51766

query I rowsort
SELECT ALL - + col0 + - ( col0 ) FROM tab0 AS cor0
----
-178
-48
-70

query I rowsort
SELECT col1 * col0 - - col0 AS col1 FROM tab0
----
2088
3430
8188

query I rowsort
SELECT DISTINCT col2 + 13 - col2 AS col2 FROM tab2
----
13

query I rowsort
SELECT - col2 * ( - 17 ) + - col1 * - ( col0 ) AS col2 FROM tab0 AS cor0
----
2625
3412
9493

query I rowsort
SELECT DISTINCT - cor0.col2 FROM tab2, tab2 AS cor0
----
-26
-27
-38

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( NULL ) BETWEEN NULL AND col1 + - col2 / col0
----

query I rowsort
SELECT - col0 + + col0 * + col0 FROM tab1
----
4032
6
6320

query I rowsort
SELECT DISTINCT col1 * + col1 - col2 * col0 * + col1 FROM tab2
----
-116171
-4898
-50745

query III rowsort
SELECT * FROM tab1 WHERE + col1 >= NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-3102
SELECT 42 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-3102
SELECT 42 / + col1 col2 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-3103
SELECT - 92 DIV col2 AS col0 FROM tab0 AS cor0
----
-1
-2
-92

skipif mysql # not compatible
query I rowsort label-3103
SELECT - 92 / col2 AS col0 FROM tab0 AS cor0
----
-1
-2
-92

query I rowsort
SELECT - 98 * - col0 * + col1 + ( + col1 ) AS col1 FROM tab0 cor0
----
202358
332807
793793

query I rowsort
SELECT ALL - 83 + 40 AS col1 FROM tab2 AS cor0
----
-43
-43
-43

onlyif mysql # use DIV operator for integer division
query I rowsort label-3106
SELECT ALL + col1 * - ( col2 ) DIV - col2 FROM tab1
----
10
13
26

skipif mysql # not compatible
query I rowsort label-3106
SELECT ALL + col1 * - ( col2 ) / - col2 FROM tab1
----
10
13
26

onlyif mysql # use DIV operator for integer division
query I rowsort label-3107
SELECT DISTINCT + tab0.col2 DIV + 68 FROM tab0
----
0
1

skipif mysql # not compatible
query I rowsort label-3107
SELECT DISTINCT + tab0.col2 / + 68 FROM tab0
----
0
1

query I rowsort
SELECT DISTINCT 38 + + col0 * - col2 FROM tab1 AS cor0
----
-124
-3610
-7642

query I rowsort
SELECT DISTINCT - col0 * + col1 + + col1 * + ( + col1 ) * - col1 + - 82 * - col0 * cor0.col0 FROM tab2 cor0
----
-25990
288907
505506

query I rowsort
SELECT - 23 + + 78 FROM tab0 cor0
----
55
55
55

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - CAST ( + 31 AS REAL ) + - col0 * + cor0.col2 col2 FROM tab2 AS cor0
----
-2059
-220
-3033

query I rowsort
SELECT DISTINCT ( col1 ) + col1 AS col0 FROM tab1 AS cor0
----
20
26
52

query I rowsort
SELECT DISTINCT cor0.col0 + - ( + 38 ) FROM tab2, tab2 cor0, tab0 AS cor1
----
-31
40
41

query I rowsort
SELECT ALL col1 + 7 AS col1 FROM tab2
----
24
38
66

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3115
SELECT ALL CAST( col0 AS SIGNED ) * col2 col0 FROM tab1
----
162
3648
7680

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3115
SELECT ALL CAST ( col0 AS INTEGER ) * col2 col0 FROM tab1
----
162
3648
7680

query I rowsort
SELECT ALL + col1 * 1 FROM tab1
----
10
13
26

query I rowsort
SELECT - col0 + + col1 AS col0 FROM tab2
----
-19
-62
24

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3118
SELECT + CAST( NULL AS SIGNED ) FROM tab0, tab1 AS cor0, tab2 AS cor1, tab1 cor2
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c

skipif mysql # not compatible
query I rowsort label-3118
SELECT + CAST ( NULL AS INTEGER ) FROM tab0, tab1 AS cor0, tab2 AS cor1, tab1 cor2
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c

query I rowsort
SELECT ALL + cor0.col0 + 36 FROM tab2 AS cor0
----
114
115
43

query I rowsort
SELECT - col2 * + col2 + - col1 FROM tab2 cor0
----
-1461
-735
-760

query I rowsort
SELECT DISTINCT 32 FROM tab0, tab1 AS cor0
----
32

query I rowsort
SELECT DISTINCT tab0.col2 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
1
33
82

query I rowsort
SELECT ALL 31 - col1 FROM tab1
----
18
21
5

query I rowsort
SELECT ALL - 10 AS col1 FROM tab2, tab0, tab0 AS cor0
----
27 values hashing to bb7f754a7a056e665155ed52a63f5bc0

query I rowsort
SELECT col2 * col1 * ( col1 ) FROM tab2
----
10982
25947
90506

query I rowsort
SELECT ALL - 40 FROM tab1
----
-40
-40
-40

query I rowsort
SELECT - ( col0 ) * - 72 - - 21 * cor0.col1 * + col1 FROM tab0 AS cor0
----
157044
180309
200109

query I rowsort
SELECT cor0.col0 * cor0.col1 - col2 AS col1 FROM tab2 AS cor0
----
1305
190
4576

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3129
SELECT ALL + col2 - + col0 * + CAST( - col0 AS SIGNED ) FROM tab1
----
4153
63
6496

skipif mysql # not compatible
query I rowsort label-3129
SELECT ALL + col2 - + col0 * + CAST ( - col0 AS INTEGER ) FROM tab1
----
4153
63
6496

query I rowsort
SELECT - col1 + + ( - 15 ) AS col1 FROM tab2 AS cor0
----
-32
-46
-74

onlyif mysql # use DIV operator for integer division
query I rowsort label-3131
SELECT - col0 DIV ( - col1 ) FROM tab1 AS cor0
----
0
6
6

skipif mysql # not compatible
query I rowsort label-3131
SELECT - col0 / ( - col1 ) FROM tab1 AS cor0
----
0
6
6

query I rowsort
SELECT - + col1 + col2 AS col0 FROM tab0 AS cor0
----
-53
-9
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col0 col0 FROM tab2 cor0
----
7
78
79

query I rowsort
SELECT + col1 * - cor0.col2 + col1 FROM tab1 AS cor0
----
-1235
-1378
-560

query I rowsort
SELECT - col2 + - ( - col2 ) FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT + col1 + col0 * - col2 * + col2 AS col1 FROM tab2 AS cor0
----
-114059
-5072
-52669

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3137
SELECT ALL - col1 + + CAST( col0 + + col1 AS SIGNED ) FROM tab2 cor0
----
7
78
79

skipif mysql # not compatible
query I rowsort label-3137
SELECT ALL - col1 + + CAST ( col0 + + col1 AS INTEGER ) FROM tab2 cor0
----
7
78
79

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3138
SELECT DISTINCT - - col1 * CAST( - col2 AS SIGNED ) - - col1 AS col2 FROM tab2 AS cor0
----
-1475
-629
-806

skipif mysql # not compatible
query I rowsort label-3138
SELECT DISTINCT - - col1 * CAST ( - col2 AS INTEGER ) - - col1 AS col2 FROM tab2 AS cor0
----
-1475
-629
-806

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + + col2 * - col2 col0 FROM tab1 AS cor0
----
-2862
-3192
-9120

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * 18 + + col1 * col0 col0 FROM tab1 AS cor0
----
-386
-688
-894

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3141
SELECT - col1 * - ( - col1 ) + cor0.col1 * - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3141
SELECT - col1 * - ( - col1 ) + cor0.col1 * - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col0 * + cor0.col1 FROM tab2 cor0
----
-1343
-217
-4602

query I rowsort
SELECT ALL + - col1 + + 81 AS col0 FROM tab2 AS cor0
----
22
50
64

query I rowsort
SELECT ALL col1 * - col0 + col1 + cor0.col1 FROM tab1 AS cor0
----
-1014
-26
-620

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3145
SELECT DISTINCT col1 + CAST( - col0 AS SIGNED ) FROM tab0
----
2
62

skipif mysql # not compatible
query I rowsort label-3145
SELECT DISTINCT col1 + CAST ( - col0 AS INTEGER ) FROM tab0
----
2
62

query I rowsort
SELECT DISTINCT + col1 * tab0.col2 + - 12 FROM tab0
----
2826
7450
85

query I rowsort
SELECT - col0 + - 7 * cor0.col0 AS col2 FROM tab1 AS cor0
----
-24
-512
-640

query I rowsort
SELECT DISTINCT col0 * col2 AS col2 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT DISTINCT 30 AS col1 FROM tab0, tab2 AS cor0
----
30

query I rowsort
SELECT ALL cor0.col2 * col2 + 87 FROM tab1 cor0
----
3003
3336
9303

query I rowsort
SELECT + col2 * + 79 AS col2 FROM tab1
----
4266
4503
7584

query I rowsort
SELECT col0 + + col2 + - col1 FROM tab0
----
-29
-61
80

query I rowsort
SELECT ALL + col2 * + 56 FROM tab0 cor0
----
1848
4592
56

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3154
SELECT + + col2 * CAST( NULL AS SIGNED ) * - ( - col1 * ( + 23 ) ) - - col0 * - CAST( - col1 AS SIGNED ) col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3154
SELECT + + col2 * CAST ( NULL AS INTEGER ) * - ( - col1 * ( + 23 ) ) - - col0 * - CAST ( - col1 AS INTEGER ) col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col0 + col2 * + col0 AS col0 FROM tab1 AS cor0
----
159
3584
7600

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 14 col2 FROM tab1 AS cor0
----
-14
-14
-14

onlyif mysql # use DIV operator for integer division
query I rowsort label-3157
SELECT - col2 DIV col0 + - col2 AS col0 FROM tab0 AS cor0
----
-1
-34
-82

skipif mysql # not compatible
query I rowsort label-3157
SELECT - col2 / col0 + - col2 AS col0 FROM tab0 AS cor0
----
-1
-34
-82

query I rowsort
SELECT + - cor0.col0 * - col0 + col0 AS col0 FROM tab0 AS cor0
----
1260
600
8010

query I rowsort
SELECT DISTINCT + col2 * + col1 - col0 * - col2 * - col2 AS col2 FROM tab2 AS cor0
----
-113430
-4266
-51194

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3160
SELECT + ( cor0.col2 ) * - col1 + CAST( NULL AS SIGNED ) * col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3160
SELECT + ( cor0.col2 ) * - col1 + CAST ( NULL AS INTEGER ) * col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 23 AS col2 FROM tab0 AS cor0
----
23
23
23

query I rowsort
SELECT ALL col2 * - 1 + + col1 AS col0 FROM tab0 AS cor0
----
53
9
96

query I rowsort
SELECT ALL + - col1 * - col1 - + col2 AS col2 FROM tab2 AS cor0
----
251
3455
934

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( - cor0.col1 ) col1 FROM tab1 AS cor0
----
10
13
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 65 * col1 col2 FROM tab1 AS cor0
----
1690
650
845

query I rowsort
SELECT - col1 + cor0.col1 * - col2 FROM tab0 AS cor0
----
-194
-2924
-7553

query I rowsort
SELECT ALL - - col1 + + col1 * - col0 AS col0 FROM tab1 AS cor0
----
-1027
-52
-630

query I rowsort
SELECT + cor0.col0 * col2 AS col1 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT DISTINCT + - col1 * + col1 FROM tab0 AS cor0
----
-7396
-8281
-9409

onlyif mysql # use DIV operator for integer division
query I rowsort label-3170
SELECT + col1 + col1 DIV col1 AS col1 FROM tab1 cor0
----
11
14
27

skipif mysql # not compatible
query I rowsort label-3170
SELECT + col1 + col1 / col1 AS col1 FROM tab1 cor0
----
11
14
27

query I rowsort
SELECT + col1 + ( col2 * col2 ) AS col2 FROM tab0
----
1175
6815
98

query I rowsort
SELECT tab0.col1 * - col0 + - col1 + + tab0.col1 * + tab0.col1 AS col0 FROM tab0
----
5246
5917
91

query I rowsort
SELECT DISTINCT - + cor0.col1 AS col1 FROM tab0 cor0
----
-86
-91
-97

query I rowsort
SELECT - col1 * - col2 AS col1 FROM tab1 cor0
----
1248
1404
570

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3175
SELECT ALL + 60 + + col2 * + CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3175
SELECT ALL + 60 + + col2 * + CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 81 FROM tab2 AS cor0
----
81

query I rowsort
SELECT - 50 AS col0 FROM tab1 cor0
----
-50
-50
-50

query I rowsort
SELECT ALL - + col1 * + col1 AS col2 FROM tab2 cor0
----
-289
-3481
-961

query I rowsort
SELECT DISTINCT cor0.col0 * + cor0.col2 * col0 + + col2 FROM tab2 AS cor0
----
1350
158210
237196

query I rowsort
SELECT ALL col0 * col0 AS col1 FROM tab0
----
1225
576
7921

query I rowsort
SELECT ALL + + 48 AS col2 FROM tab1 AS cor0
----
48
48
48

query I rowsort
SELECT DISTINCT + 86 FROM tab0 cor0
----
86

onlyif mysql # use DIV operator for integer division
query I rowsort label-3183
SELECT DISTINCT + col2 DIV col0 FROM tab0 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-3183
SELECT DISTINCT + col2 / col0 FROM tab0 AS cor0
----
0
1

query I rowsort
SELECT ALL - + 55 * cor0.col0 AS col0 FROM tab1 AS cor0
----
-165
-3520
-4400

query I rowsort
SELECT ALL col2 * - col0 AS col1 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT DISTINCT 53 + col2 - + 5 * + 71 FROM tab1
----
-206
-245
-248

query I rowsort
SELECT ALL + col0 * + tab0.col1 + + col0 * col1 - + col0 * - 91 FROM tab0
----
24297
6312
9975

onlyif mysql # use DIV operator for integer division
query I rowsort label-3188
SELECT + col0 DIV col1 + - col1 FROM tab2
----
-13
-31
-58

skipif mysql # not compatible
query I rowsort label-3188
SELECT + col0 / col1 + - col1 FROM tab2
----
-13
-31
-58

query I rowsort
SELECT + 96 * - cor0.col0 AS col0 FROM tab0 AS cor0
----
-2304
-3360
-8544

query I rowsort
SELECT DISTINCT + 3 * - col1 * - ( + col0 + + tab2.col1 ) FROM tab2
----
24249
3534
4896

query I rowsort
SELECT col2 * 79 * - col2 FROM tab2
----
-114076
-53404
-57591

query I rowsort
SELECT + col0 * cor0.col2 + - col1 AS col0 FROM tab0 AS cor0
----
-62
706
7207

query I rowsort
SELECT ALL + col1 * col0 + + col2 * + col2 AS col0 FROM tab0
----
14823
3153
3396

query I rowsort
SELECT DISTINCT - col2 + - 96 * col0 AS col0 FROM tab1 AS cor0
----
-342
-6201
-7776

query I rowsort
SELECT - 45 FROM tab1 cor0
----
-45
-45
-45

onlyif mysql # use DIV operator for integer division
query I rowsort label-3196
SELECT tab2.col2 DIV - col0 AS col1 FROM tab2
----
-3
0
0

skipif mysql # not compatible
query I rowsort label-3196
SELECT tab2.col2 / - col0 AS col1 FROM tab2
----
-3
0
0

query I rowsort
SELECT DISTINCT 26 AS col1 FROM tab1, tab1 AS cor0
----
26

query I rowsort
SELECT ALL + 56 AS col2 FROM tab2 AS cor0
----
56
56
56

query I rowsort
SELECT 53 * col0 + 88 + - col0 AS col1 FROM tab1 AS cor0
----
244
3416
4248

query I rowsort
SELECT - + col2 * col2 AS col0 FROM tab2 AS cor0
----
-1444
-676
-729

query I rowsort
SELECT - - 46 * - 92 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 80340472b2a19b0aa3be2a2ed464c481

query I rowsort
SELECT 49 - - col2 AS col2 FROM tab0 AS cor0
----
131
50
82

query I rowsort
SELECT col1 * col2 * col2 + col1 FROM tab2 AS cor0
----
22630
24565
39943

query I rowsort
SELECT 70 * col1 AS col2 FROM tab2 AS cor0
----
1190
2170
4130

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * col2 * + 57 - - col0 col2 FROM tab0 AS cor0
----
383357
62097
92

query I rowsort
SELECT ALL - col0 * - col2 + - 56 + - col1 AS col2 FROM tab1 AS cor0
----
3582
7611
80

query I rowsort
SELECT - col1 + 33 FROM tab1
----
20
23
7

query I rowsort
SELECT DISTINCT col0 + - cor0.col1 * col1 - col2 FROM tab0 cor0
----
-7405
-8274
-9375

query I rowsort
SELECT col1 * ( 69 ) * + col1 FROM tab1 AS cor0
----
11661
46644
6900

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3210
SELECT ALL - - col1 * - CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3210
SELECT ALL - - col1 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * - col2 * - 29 col1 FROM tab2 AS cor0
----
-19604
-21141
-41876

onlyif mysql # use DIV operator for integer division
query I rowsort label-3212
SELECT DISTINCT - cor0.col2 DIV + col1 + col0 AS col2 FROM tab1 AS cor0
----
1
59
73

skipif mysql # not compatible
query I rowsort label-3212
SELECT DISTINCT - cor0.col2 / + col1 + col0 AS col2 FROM tab1 AS cor0
----
1
59
73

query I rowsort
SELECT ALL - col1 * 77 FROM tab0 AS cor0
----
-6622
-7007
-7469

query I rowsort
SELECT cor0.col1 * 17 AS col2 FROM tab1 AS cor0
----
170
221
442

onlyif mysql # use DIV operator for integer division
query I rowsort label-3215
SELECT ALL - - col1 DIV col0 + - col1 AS col1 FROM tab2 AS cor0
----
-17
-27
-59

skipif mysql # not compatible
query I rowsort label-3215
SELECT ALL - - col1 / col0 + - col1 AS col1 FROM tab2 AS cor0
----
-17
-27
-59

query I rowsort
SELECT ALL - col1 * col0 - cor0.col2 * col2 FROM tab0 cor0
----
-14823
-3153
-3396

query I rowsort
SELECT DISTINCT - col1 + - col0 * - 16 AS col1 FROM tab1 AS cor0
----
1014
1267
22

query I rowsort
SELECT + col2 * 1 AS col1 FROM tab2 AS cor0
----
26
27
38

query I rowsort
SELECT ALL + + col2 + - col0 * col2 FROM tab2 AS cor0
----
-162
-2002
-2964

query I rowsort
SELECT col2 * - col0 + - col2 FROM tab1 AS cor0
----
-216
-3705
-7776

onlyif mysql # use DIV operator for integer division
query I rowsort label-3221
SELECT ALL - col1 DIV ( col0 ) + cor0.col1 * col1 DIV col1 FROM tab1 AS cor0
----
10
13
18

skipif mysql # not compatible
query I rowsort label-3221
SELECT ALL - col1 / ( col0 ) + cor0.col1 * col1 / col1 FROM tab1 AS cor0
----
10
13
18

query I rowsort
SELECT DISTINCT - col1 * col1 - col2 * + cor0.col2 FROM tab2 cor0
----
-1690
-1733
-4157

query I rowsort
SELECT ALL - ( col1 ) - cor0.col2 FROM tab1 AS cor0
----
-109
-67
-80

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab2 cor0, tab2 AS cor1, tab0 AS cor2
----
972 values hashing to e4c748f267e8d2a0e6d563281e1fb975

query IIIIIIIIIIII rowsort
SELECT * FROM tab0, tab1 cor0, tab1, tab1 AS cor1
----
972 values hashing to 635619591835474e6aa6acdff4ab166c

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3226
SELECT + col1 + - CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3226
SELECT + col1 + - CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-3227
SELECT + - 42 * 5 DIV cor0.col2 FROM tab1 AS cor0
----
-2
-3
-3

skipif mysql # not compatible
query I rowsort label-3227
SELECT + - 42 * 5 / cor0.col2 FROM tab1 AS cor0
----
-2
-3
-3

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3228
SELECT - CAST( - col1 AS SIGNED ) col1 FROM tab0
----
86
91
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3228
SELECT - CAST ( - col1 AS INTEGER ) col1 FROM tab0
----
86
91
97

query IIIIIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab0 AS cor0 CROSS JOIN tab2, tab2 AS cor1, tab1 AS cor2, tab2 AS cor3
----
13122 values hashing to f7b34c3cbe4fd6ac2c1f5a7abbb1b300

query I rowsort
SELECT DISTINCT + col2 * + 72 FROM tab2
----
1872
1944
2736

query I rowsort
SELECT 59 * col1 FROM tab2 cor0
----
1003
1829
3481

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 * - col0 col1 FROM tab0 cor0
----
1225
576
7921

query I rowsort
SELECT col1 * + col2 AS col0 FROM tab1 cor0
----
1248
1404
570

query I rowsort
SELECT - + ( 80 ) FROM tab0 AS cor0
----
-80
-80
-80

query I rowsort
SELECT - ( 59 ) * col2 AS col1 FROM tab0 AS cor0
----
-1947
-4838
-59

query I rowsort
SELECT + 10 * + col1 AS col0 FROM tab1 AS cor0
----
100
130
260

query I rowsort
SELECT ALL - 95 * col2 FROM tab0 AS cor0
----
-3135
-7790
-95

query I rowsort
SELECT - 80 * + col1 - + col2 AS col2 FROM tab2 AS cor0
----
-1398
-2507
-4746

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0, tab2 AS cor0 CROSS JOIN tab1, tab2 cor1, tab1 AS cor2
----
3645 values hashing to db56d052e81a1ceebb4c3aea124670be

query I rowsort
SELECT - cor0.col1 * - col0 + ( col1 ) + col2 FROM tab0 AS cor0
----
2183
3493
8272

query I rowsort
SELECT + col2 + - col1 + col1 AS col2 FROM tab2 AS cor0
----
26
27
38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 + cor0.col2 col0 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to c78408d90c4e135ef1bbc23c5252cd1d

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 col1 FROM tab0 cor0
----
86
91
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-3244
SELECT ALL + ( - col1 ) DIV - col1 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3244
SELECT ALL + ( - col1 ) / - col1 FROM tab2
----
1
1
1

query I rowsort
SELECT - col2 + + 18 + + 60 FROM tab0 AS cor0
----
-4
45
77

query I rowsort
SELECT ALL + col0 * ( + col1 ) FROM tab0
----
2064
3395
8099

query I rowsort
SELECT ALL + tab2.col0 * - ( tab2.col1 ) FROM tab2
----
-1343
-217
-4602

query I rowsort
SELECT + 9 AS col2 FROM tab2, tab0 cor0, tab1 AS cor1
----
27 values hashing to ebef7303942834ca1e6ca8604ec18a07

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3249
SELECT ALL CAST( NULL AS SIGNED ) / 66 FROM tab2, tab0 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-3249
SELECT ALL CAST ( NULL AS INTEGER ) / 66 FROM tab2, tab0 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT - - col0 * - 87 AS col1 FROM tab0 AS cor0
----
-2088
-3045
-7743

query I rowsort
SELECT ALL - col0 * + col2 FROM tab0
----
-35
-7298
-792

query I rowsort
SELECT DISTINCT + + 35 FROM tab2 AS cor0
----
35

query I rowsort
SELECT ALL + - col0 * + col1 AS col0 FROM tab0 AS cor0
----
-2064
-3395
-8099

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col1 col0 FROM tab1 cor0
----
10
13
26

query I rowsort
SELECT + col0 * col1 + - col0 * cor0.col0 FROM tab1 AS cor0
----
-3456
-5360
69

query I rowsort
SELECT DISTINCT - col0 + + col2 * 35 FROM tab1 AS cor0
----
1887
1931
3280

query I rowsort
SELECT 74 FROM tab0 cor0
----
74
74
74

query I rowsort
SELECT ALL - ( cor0.col0 ) AS col2 FROM tab1 AS cor0
----
-3
-64
-80

query I rowsort
SELECT - - col1 + - col2 * ( col2 * col2 ) AS col1 FROM tab1 AS cor0
----
-157438
-185183
-884723

onlyif mysql # use DIV operator for integer division
query I rowsort label-3260
SELECT col1 + + col1 DIV + ( col2 ) FROM tab1 AS cor0
----
10
13
26

skipif mysql # not compatible
query I rowsort label-3260
SELECT col1 + + col1 / + ( col2 ) FROM tab1 AS cor0
----
10
13
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * + col2 col2 FROM tab2 AS cor0
----
1444
676
729

query I rowsort
SELECT + 76 + + col2 AS col0 FROM tab1 AS cor0
----
130
133
172

onlyif mysql # use DIV operator for integer division
query I rowsort label-3263
SELECT ALL - 71 DIV - col0 AS col0 FROM tab0 AS cor0
----
0
2
2

skipif mysql # not compatible
query I rowsort label-3263
SELECT ALL - 71 / - col0 AS col0 FROM tab0 AS cor0
----
0
2
2

query I rowsort
SELECT DISTINCT + 60 AS col1 FROM tab0 AS cor0
----
60

query I rowsort
SELECT + + 24 + col1 AS col1 FROM tab0 AS cor0
----
110
115
121

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * cor0.col1 col1 FROM tab1 AS cor0
----
-100
-169
-676

query I rowsort
SELECT ALL - ( col0 ) * + col2 FROM tab0
----
-35
-7298
-792

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3268
SELECT CAST( NULL AS SIGNED ) * - 68 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3268
SELECT CAST ( NULL AS INTEGER ) * - 68 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-3269
SELECT DISTINCT col2 + + col0 DIV - 68 col2 FROM tab1 AS cor0
----
54
57
95

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3269
SELECT DISTINCT col2 + + col0 / - 68 col2 FROM tab1 AS cor0
----
54
57
95

query I rowsort
SELECT - col2 + + col2 AS col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - ( - col2 ) - col2 AS col1 FROM tab2 AS cor0
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-3272
SELECT + col2 + col2 DIV 96 AS col2 FROM tab1 AS cor0
----
54
57
97

skipif mysql # not compatible
query I rowsort label-3272
SELECT + col2 + col2 / 96 AS col2 FROM tab1 AS cor0
----
54
57
97

query I rowsort
SELECT + + 15 - cor0.col1 AS col0 FROM tab1 AS cor0
----
-11
2
5

query I rowsort
SELECT DISTINCT + + col1 * + col1 * ( + 78 ) + col0 FROM tab0 AS cor0
----
576912
646007
733937

query I rowsort
SELECT ALL + 67 * col2 AS col1 FROM tab1 AS cor0
----
3618
3819
6432

query I rowsort
SELECT - - col0 + col2 AS col0 FROM tab0 AS cor0
----
171
36
57

query I rowsort
SELECT DISTINCT + cor0.col0 AS col0 FROM tab1 cor0
----
3
64
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( tab0.col1 ) * col1 col0 FROM tab0
----
-7396
-8281
-9409

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3279
SELECT ALL - - col2 / - CAST( NULL AS DECIMAL ) - cor0.col0 * - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3279
SELECT ALL - - col2 / - CAST ( NULL AS REAL ) - cor0.col0 * - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 + 90 AS col0 FROM tab2 AS cor0
----
107
121
149

onlyif mysql # use DIV operator for integer division
query I rowsort label-3281
SELECT + - col1 + + col2 DIV - 93 FROM tab1 AS cor0
----
-10
-14
-26

skipif mysql # not compatible
query I rowsort label-3281
SELECT + - col1 + + col2 / - 93 FROM tab1 AS cor0
----
-10
-14
-26

query I rowsort
SELECT ALL + 61 * - col0 + + col2 FROM tab0
----
-1431
-2134
-5347

query I rowsort
SELECT ALL - 4 * - col2 + col0 FROM tab1
----
219
292
464

query I rowsort
SELECT DISTINCT col1 + col1 AS col1 FROM tab0
----
172
182
194

query I rowsort
SELECT + col2 * col2 * col2 + + col2 AS col2 FROM tab1
----
157518
185250
884832

query I rowsort
SELECT + + 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-3287
SELECT ALL + + CAST( col0 AS SIGNED ) * cor0.col2 AS col2 FROM tab0 AS cor0
----
35
7298
792

skipif mysql # not compatible
query I rowsort label-3287
SELECT ALL + + CAST ( col0 AS INTEGER ) * cor0.col2 AS col2 FROM tab0 AS cor0
----
35
7298
792

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3288
SELECT CAST( NULL AS DECIMAL ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3288
SELECT CAST ( NULL AS REAL ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-3289
SELECT ALL + col1 DIV col1 AS col0 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3289
SELECT ALL + col1 / col1 AS col0 FROM tab1 AS cor0
----
1
1
1

query I rowsort
SELECT DISTINCT - + 84 + 18 AS col0 FROM tab1 AS cor0
----
-66

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3291
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - col1 + + col0 col2 FROM tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3291
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - col1 + + col0 col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL + - 31 AS col1 FROM tab0 AS cor0
----
-31
-31
-31

query I rowsort
SELECT cor1.col1 * + 39 + 60 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to c16766390baf9859caeff812adf3bcd9

query I rowsort
SELECT DISTINCT - - ( - col2 ) + col2 FROM tab1 AS cor0
----
0

query I rowsort
SELECT + 82 AS col0 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 99920d9f7cd9cdccef99cfa459ae6944

query I rowsort
SELECT ALL - 17 - col0 FROM tab0
----
-106
-41
-52

onlyif mysql # use DIV operator for integer division
query I rowsort label-3297
SELECT ALL + 96 DIV + col0 - + col1 FROM tab1
----
-12
-9
6

skipif mysql # not compatible
query I rowsort label-3297
SELECT ALL + 96 / + col0 - + col1 FROM tab1
----
-12
-9
6

query I rowsort
SELECT ALL col2 - + ( col1 ) * 84 FROM tab2
----
-1390
-2577
-4930

query I rowsort
SELECT + cor0.col0 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd

query I rowsort
SELECT - ( + tab1.col1 ) FROM tab1
----
-10
-13
-26

query I rowsort
SELECT ALL 58 FROM tab2
----
58
58
58

query I rowsort
SELECT + 39 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 5ecc4d3de68ae828a2d522dff8571cbf

query I rowsort
SELECT + col1 + + col1 * + cor0.col0 AS col1 FROM tab0 AS cor0
----
2150
3492
8190

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2, tab2 AS cor0 CROSS JOIN tab1, tab1 AS cor1, tab1 AS cor2
----
3645 values hashing to 44545a6297aa29bb730ffb907c13bc58

query I rowsort
SELECT 9 * - col2 + - col1 FROM tab2
----
-274
-293
-359

onlyif mysql # use DIV operator for integer division
query I rowsort label-3306
SELECT DISTINCT ( - col0 ) DIV + col0 FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-3306
SELECT DISTINCT ( - col0 ) / + col0 FROM tab2
----
-1

query I rowsort
SELECT ALL 37 + - cor0.col1 - 88 AS col2 FROM tab0 AS cor0
----
-137
-142
-148

query I rowsort
SELECT ALL - col1 + col2 * - 15 AS col2 FROM tab0
----
-112
-1321
-581

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 20 + + col1 + - 54 col1 FROM tab0
----
52
57
63

query I rowsort
SELECT DISTINCT - 81 + - col2 + + col2 * - col2 FROM tab2
----
-1563
-783
-837

onlyif mysql # use DIV operator for integer division
query I rowsort label-3311
SELECT ALL + + col1 DIV col1 AS col1 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3311
SELECT ALL + + col1 / col1 AS col1 FROM tab0 AS cor0
----
1
1
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-3312
SELECT DISTINCT + col1 * col2 DIV + col2 FROM tab1 AS cor0
----
10
13
26

skipif mysql # not compatible
query I rowsort label-3312
SELECT DISTINCT + col1 * col2 / + col2 FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT - cor0.col0 - + col2 FROM tab0 AS cor0
----
-171
-36
-57

query I rowsort
SELECT - + 79 + - col0 * + col2 - col0 FROM tab1 AS cor0
----
-244
-3791
-7839

query I rowsort
SELECT 10 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to a47194429f3e0358a3aebffd5f050113

query I rowsort
SELECT - col1 * + ( - col1 ) FROM tab1
----
100
169
676

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3317
SELECT + tab2.col0 + + CAST( + 34 AS SIGNED ) FROM tab2
----
112
113
41

skipif mysql # not compatible
query I rowsort label-3317
SELECT + tab2.col0 + + CAST ( + 34 AS INTEGER ) FROM tab2
----
112
113
41

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col0 + 59 col0 FROM tab0 AS cor0
----
-30
24
35

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + - 98 + 13 col1 FROM tab2 AS cor0
----
-26
-54
-68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + cor0.col0 col0 FROM tab1 AS cor0
----
128
160
6

query I rowsort
SELECT - 29 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 0cc9ddad93fc783055518ae4b6be054b

query I rowsort
SELECT ALL - col0 + - cor0.col2 + col1 FROM tab0 AS cor0
----
-80
29
61

query I rowsort
SELECT DISTINCT - + col1 + cor0.col0 AS col2 FROM tab2 cor0
----
-24
19
62

query I rowsort
SELECT DISTINCT + col0 * + col2 AS col0 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT col2 * ( - col1 ) AS col2 FROM tab0 AS cor0
----
-2838
-7462
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-3326
SELECT ALL - col2 * + 59 * col1 + ( + col1 ) DIV col1 FROM tab2 AS cor0
----
-38113
-49382
-90505

skipif mysql # not compatible
query I rowsort label-3326
SELECT ALL - col2 * + 59 * col1 + ( + col1 ) / col1 FROM tab2 AS cor0
----
-38113
-49382
-90505

query I rowsort
SELECT DISTINCT + - col0 - - col2 AS col1 FROM tab1 AS cor0
----
-7
16
51

query I rowsort
SELECT ALL - 11 AS col2 FROM tab0 AS cor0
----
-11
-11
-11

query I rowsort
SELECT DISTINCT 4 + - col0 FROM tab0 AS cor0
----
-20
-31
-85

query I rowsort
SELECT ALL col2 * col0 - + col0 AS col2 FROM tab2 cor0
----
182
1950
2923

query I rowsort
SELECT DISTINCT - - 93 * col2 * cor0.col0 FROM tab0 AS cor0
----
3255
678714
73656

query I rowsort
SELECT ALL - 55 + + col0 + + col0 FROM tab0 AS cor0
----
-7
123
15

query I rowsort
SELECT DISTINCT - 35 + + col1 FROM tab0 AS cor0
----
51
56
62

query I rowsort
SELECT DISTINCT - - ( - ( + col2 ) ) AS col1 FROM tab2 AS cor0
----
-26
-27
-38

query I rowsort
SELECT ALL + - 63 + - 85 FROM tab2 AS cor0
----
-148
-148
-148

query I rowsort
SELECT ALL 58 + col1 FROM tab0 AS cor0
----
144
149
155

query I rowsort
SELECT + 22 FROM tab1 cor0
----
22
22
22

query I rowsort
SELECT DISTINCT - 21 AS col2 FROM tab0, tab2 AS cor0
----
-21

query I rowsort
SELECT col0 * + col1 + tab2.col1 FROM tab2
----
1360
248
4661

query I rowsort
SELECT + 89 + ( - cor0.col0 ) FROM tab0 cor0
----
0
54
65

query I rowsort
SELECT ALL - ( + 87 ) + cor0.col2 AS col2 FROM tab2 AS cor0
----
-49
-60
-61

query I rowsort
SELECT DISTINCT + ( col0 ) * col1 AS col1 FROM tab2 cor0
----
1343
217
4602

query I rowsort
SELECT - - ( col1 ) FROM tab1 cor0
----
10
13
26

query I rowsort
SELECT DISTINCT - 8 + col0 AS col1 FROM tab0 AS cor0
----
16
27
81

query I rowsort
SELECT - ( 51 ) FROM tab2, tab2 cor0
----
9 values hashing to 08d3853e39924d3c636260a6dd856837

query I rowsort
SELECT ALL 34 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 4e2ca147a59e0d5661c28cf3e5431caa

onlyif mysql # use DIV operator for integer division
query I rowsort label-3347
SELECT - col1 DIV - col0 AS col0 FROM tab1 AS cor0
----
0
0
8

skipif mysql # not compatible
query I rowsort label-3347
SELECT - col1 / - col0 AS col0 FROM tab1 AS cor0
----
0
0
8

query I rowsort
SELECT ALL 52 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 7f4ae30893ab330784829711032ae599

query I rowsort
SELECT - ( col1 ) - - col2 * col0 FROM tab2 AS cor0
----
158
1969
2985

query I rowsort
SELECT 49 + + col0 - - cor0.col2 AS col0 FROM tab0 AS cor0
----
106
220
85

query I rowsort
SELECT col0 * - cor0.col2 + - col2 FROM tab1 cor0
----
-216
-3705
-7776

onlyif mysql # use DIV operator for integer division
query I rowsort label-3352
SELECT ALL cor0.col1 DIV ( col1 ) 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-3352
SELECT ALL cor0.col1 / ( col1 ) col2 FROM tab2 AS cor0
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab2.col0 col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a

query I rowsort
SELECT + col0 * - col2 AS col0 FROM tab1
----
-162
-3648
-7680

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + col0 ) col0 FROM tab1
----
3
64
80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3356
SELECT DISTINCT CAST( + col0 AS SIGNED ) FROM tab2
----
7
78
79

skipif mysql # not compatible
query I rowsort label-3356
SELECT DISTINCT CAST ( + col0 AS INTEGER ) FROM tab2
----
7
78
79

query I rowsort
SELECT - col2 + + col2 + + col2 * col0 AS col0 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT ( col1 ) + + 43 + col1 FROM tab2 AS cor0
----
105
161
77

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3359
SELECT CAST( 30 AS SIGNED ) * + col1 FROM tab0
----
2580
2730
2910

skipif mysql # not compatible
query I rowsort label-3359
SELECT CAST ( 30 AS INTEGER ) * + col1 FROM tab0
----
2580
2730
2910

query I rowsort
SELECT ALL - col1 * - 84 FROM tab0
----
7224
7644
8148

query I rowsort
SELECT + 14 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 83e5779d2487d12495e7d816c797264f

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 74 * + 20 col1 FROM tab2
----
-1480

query I rowsort
SELECT ALL + 33 * - col0 FROM tab1
----
-2112
-2640
-99

query I rowsort
SELECT - 54 + - col2 * col2 + + col0 FROM tab2 AS cor0
----
-1419
-652
-776

onlyif mysql # use DIV operator for integer division
query I rowsort label-3365
SELECT + col0 DIV col2 col1 FROM tab1 AS cor0
----
0
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3365
SELECT + col0 / col2 col1 FROM tab1 AS cor0
----
0
0
1

query I rowsort
SELECT + - col2 * + col2 AS col2 FROM tab0 cor0
----
-1
-1089
-6724

onlyif mysql # use DIV operator for integer division
query I rowsort label-3367
SELECT ALL + col0 DIV + col0 AS col1 FROM tab0 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3367
SELECT ALL + col0 / + col0 AS col1 FROM tab0 cor0
----
1
1
1

query I rowsort
SELECT DISTINCT ( + cor0.col0 ) * ( - col1 ) AS col0 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT ALL - 37 * col1 FROM tab1 AS cor0
----
-370
-481
-962

query I rowsort
SELECT DISTINCT + cor0.col2 AS col2 FROM tab1 cor0
----
54
57
96

query I rowsort
SELECT - cor0.col1 * col2 FROM tab1 AS cor0
----
-1248
-1404
-570

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - cor0.col0 * col2 col0 FROM tab0 AS cor0
----
35
7298
792

onlyif mysql # use DIV operator for integer division
query I rowsort label-3373
SELECT ALL col1 DIV + col0 FROM tab0
----
1
2
3

skipif mysql # not compatible
query I rowsort label-3373
SELECT ALL col1 / + col0 FROM tab0
----
1
2
3

query I rowsort
SELECT DISTINCT - ( + col1 ) * col1 + col1 AS col0 FROM tab2
----
-272
-3422
-930

onlyif mysql # use DIV operator for integer division
query I rowsort label-3375
SELECT ( - tab0.col1 ) DIV - 2 + - 92 - col1 AS col0 FROM tab0
----
-135
-138
-141

skipif mysql # not compatible
query I rowsort label-3375
SELECT ( - tab0.col1 ) / - 2 + - 92 - col1 AS col0 FROM tab0
----
-135
-138
-141

query I rowsort
SELECT - + col1 * + col0 FROM tab0 cor0
----
-2064
-3395
-8099

query I rowsort
SELECT 59 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to a9b9966d749d1b2ce5955ed12394f9bc

query I rowsort
SELECT + + col1 * col0 * + col2 AS col0 FROM tab0 cor0
----
3395
664118
68112

onlyif mysql # use DIV operator for integer division
query I rowsort label-3379
SELECT col2 DIV 97 AS col1 FROM tab0 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3379
SELECT col2 / 97 AS col1 FROM tab0 cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col0 col1 FROM tab1 cor0
----
3
64
80

query I rowsort
SELECT DISTINCT + col0 * + 38 FROM tab2 AS cor0
----
266
2964
3002

query I rowsort
SELECT DISTINCT + - col0 + 84 * 12 AS col2 FROM tab0 AS cor0
----
919
973
984

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + ( + col2 ) col0 FROM tab0 AS cor0
----
171
36
57

query I rowsort
SELECT DISTINCT col0 * + 6 FROM tab1 cor0
----
18
384
480

onlyif mysql # use DIV operator for integer division
query I rowsort label-3385
SELECT DISTINCT col2 DIV + col1 FROM tab2 AS cor0
----
0
2

skipif mysql # not compatible
query I rowsort label-3385
SELECT DISTINCT col2 / + col1 FROM tab2 AS cor0
----
0
2

query I rowsort
SELECT ALL - - col0 * col2 + - col1 AS col0 FROM tab2 AS cor0
----
158
1969
2985

query I rowsort
SELECT col2 + + 86 FROM tab0 AS cor0
----
119
168
87

query I rowsort
SELECT DISTINCT col1 * - 77 * col1 FROM tab0
----
-569492
-637637
-724493

onlyif mysql # use DIV operator for integer division
query I rowsort label-3389
SELECT - col0 + col1 DIV col0 FROM tab2 AS cor0
----
-3
-78
-79

skipif mysql # not compatible
query I rowsort label-3389
SELECT - col0 + col1 / col0 FROM tab2 AS cor0
----
-3
-78
-79

query I rowsort
SELECT 1 + cor0.col1 FROM tab2 AS cor0
----
18
32
60

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3391
SELECT + - col2 * col0 / CAST( NULL AS SIGNED ) + 19 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3391
SELECT + - col2 * col0 / CAST ( NULL AS INTEGER ) + 19 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 55 * tab2.col1 FROM tab2, tab0 AS cor0
----
1705
3245
935

query I rowsort
SELECT DISTINCT - col0 * - col1 + col0 + 79 FROM tab2 AS cor0
----
1501
303
4759

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab0 cor0 CROSS JOIN tab2, tab1, tab1 AS cor1
----
3645 values hashing to 199388980dc5177ebebcfdbc0408ba02

query I rowsort
SELECT ALL + + col0 * - 45 + - col2 FROM tab1 AS cor0
----
-189
-2937
-3696

query I rowsort
SELECT DISTINCT col2 * cor0.col1 * col1 - col2 FROM tab2 AS cor0
----
10944
25920
90480

query I rowsort
SELECT DISTINCT + col0 * + 9 AS col1 FROM tab1 AS cor0
----
27
576
720

query I rowsort
SELECT ALL - col0 * - 61 * + col0 + - col1 FROM tab0 cor0
----
35050
483090
74628

query I rowsort
SELECT ALL + col1 - ( - col1 ) FROM tab2 cor0
----
118
34
62

query I rowsort
SELECT col2 + cor0.col1 AS col1 FROM tab1 AS cor0
----
109
67
80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3401
SELECT DISTINCT - CAST( NULL AS SIGNED ) * col2 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3401
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * col2 FROM tab1 cor0
----
NULL

query I rowsort
SELECT DISTINCT - col2 * + cor0.col1 AS col1 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT - 8 + 1 FROM tab2 AS cor0
----
-7
-7
-7

query I rowsort
SELECT ALL - ( col2 ) * col0 FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT DISTINCT col0 * + 73 + - col2 + col0 FROM tab1 AS cor0
----
168
4679
5824

query I rowsort
SELECT ALL 75 * col1 * col2 AS col1 FROM tab2 AS cor0
----
115050
48450
62775

query I rowsort
SELECT + + 24 AS col2 FROM tab2 AS cor0
----
24
24
24

query I rowsort
SELECT 87 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to fa0cdd86483844cda3bb806e032d5c64

query I rowsort
SELECT - col2 * + col2 + - col2 * col0 + - col1 AS col1 FROM tab1
----
-16909
-3104
-6907

query I rowsort
SELECT col1 * + col1 + ( - col0 ) + col1 FROM tab1
----
102
46
699

query I rowsort
SELECT ALL + 98 AS col0 FROM tab0 AS cor0
----
98
98
98

query IIIIII rowsort
SELECT ALL * FROM tab1, tab2 cor0 WHERE NOT NULL >= ( NULL )
----

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3413
SELECT + CAST( tab0.col2 AS SIGNED ) FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475

skipif mysql # not compatible
query I rowsort label-3413
SELECT + CAST ( tab0.col2 AS INTEGER ) FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475

query I rowsort
SELECT DISTINCT - ( col1 ) AS col1 FROM tab2 AS cor0
----
-17
-31
-59

query I rowsort
SELECT + col2 + cor0.col2 + - col2 AS col2 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT ALL - 75 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to c0722b1d77ac0ed13c0f2691a5751c59

query I rowsort
SELECT + col0 + + col0 * - col1 * + 76 AS col1 FROM tab0
----
-156840
-257985
-615435

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab1.col0 col0 FROM tab1, tab2, tab2 AS cor0
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f

query I rowsort
SELECT 11 + - col0 AS col1 FROM tab0
----
-13
-24
-78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + - col0 * col2 col2 FROM tab0 AS cor0
----
-7209
-768
0

query I rowsort
SELECT DISTINCT - col1 * col2 + + col2 AS col1 FROM tab0 AS cor0
----
-2805
-7380
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - col1 + - tab2.col0 col2 FROM tab2
----
1264
210
4524

query I rowsort
SELECT ALL - col1 * + col1 AS col1 FROM tab1
----
-100
-169
-676

query I rowsort
SELECT ALL col2 * - col2 * col0 FROM tab1
----
-207936
-737280
-8748

query I rowsort
SELECT ALL col2 * + col1 + - cor0.col1 AS col0 FROM tab0 AS cor0
----
0
2752
7371

query I rowsort
SELECT DISTINCT cor0.col1 + - cor0.col2 FROM tab0 AS cor0
----
53
9
96

query I rowsort
SELECT DISTINCT - col0 * + col0 AS col1 FROM tab2
----
-49
-6084
-6241

query I rowsort
SELECT ( - 10 ) - + col2 FROM tab1
----
-106
-64
-67

query I rowsort
SELECT + 45 * + col0 * + col2 FROM tab0
----
1575
328410
35640

query I rowsort
SELECT DISTINCT - col1 + - tab2.col1 * + col2 FROM tab2
----
-1593
-663
-868

skipif mysql # not compatible
query I rowsort
SELECT + CAST ( 61 AS REAL ) - - tab1.col0 AS col1 FROM tab1
----
125
141
64

query I rowsort
SELECT ALL + col0 + + tab2.col0 FROM tab2
----
14
156
158

query I rowsort
SELECT - - col1 * col0 + col0 AS col0 FROM tab2 AS cor0
----
1422
224
4680

query I rowsort
SELECT DISTINCT + + ( + col0 ) * cor0.col2 + col0 * - col1 FROM tab0 AS cor0
----
-1272
-3360
-801

query I rowsort
SELECT ALL col2 + col1 * col0 FROM tab0
----
2097
3396
8181

query I rowsort
SELECT 87 * ( tab1.col2 ) FROM tab1
----
4698
4959
8352

query I rowsort
SELECT - col0 * col1 * - col0 AS col0 FROM tab2
----
106097
1519
358956

query I rowsort
SELECT col2 + col1 AS col0 FROM tab0
----
119
173
98

query I rowsort
SELECT DISTINCT - ( tab1.col0 ) + + tab1.col0 * col0 FROM tab1
----
4032
6
6320

query I rowsort
SELECT cor0.col0 * col0 - + col0 AS col1 FROM tab2 AS cor0
----
42
6006
6162

query I rowsort
SELECT - + ( col0 ) AS col0 FROM tab1 AS cor0
----
-3
-64
-80

query I rowsort
SELECT DISTINCT - col2 * + cor0.col0 - cor0.col0 AS col1 FROM tab2 cor0
----
-196
-2106
-3081

query I rowsort
SELECT ALL cor0.col0 + + tab0.col2 FROM tab0, tab1 AS cor0
----
9 values hashing to bd4afbebf32cf7139d4a26f0c77f8156

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3444
SELECT + CAST( NULL AS SIGNED ) * tab1.col2 + + col0 + col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3444
SELECT + CAST ( NULL AS INTEGER ) * tab1.col2 + + col0 + col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT - col0 * ( tab2.col0 ) + + col2 * + col2 AS col2 FROM tab2
----
-4797
-5408
680

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 ALL col1 * + cor0.col1 FROM tab1 AS cor0
----
100
169
676

query I rowsort
SELECT DISTINCT + + 40 * - col1 + - cor0.col1 * col0 FROM tab2 AS cor0
----
-1457
-2023
-6962

query I rowsort
SELECT ALL - 86 * + col0 + col2 FROM tab2 AS cor0
----
-575
-6682
-6756

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 78 * col1 col1 FROM tab0 AS cor0
----
-6708
-7098
-7566

onlyif mysql # use DIV operator for integer division
query I rowsort label-3451
SELECT col0 DIV col0 + col1 AS col0 FROM tab0 AS cor0
----
87
92
98

skipif mysql # not compatible
query I rowsort label-3451
SELECT col0 / col0 + col1 AS col0 FROM tab0 AS cor0
----
87
92
98

query I rowsort
SELECT ALL + - 44 * col1 + - col1 AS col1 FROM tab2 AS cor0
----
-1395
-2655
-765

onlyif mysql # use DIV operator for integer division
query I rowsort label-3453
SELECT + - col2 * - col1 + + cor0.col1 DIV - cor0.col1 FROM tab2 AS cor0
----
1533
645
836

skipif mysql # not compatible
query I rowsort label-3453
SELECT + - col2 * - col1 + + cor0.col1 / - cor0.col1 FROM tab2 AS cor0
----
1533
645
836

query I rowsort
SELECT - ( + col2 ) * - cor0.col2 + col2 FROM tab2 AS cor0
----
1482
702
756

query I rowsort
SELECT ALL - col2 * col0 + col1 * + col0 + cor0.col0 FROM tab0 AS cor0
----
1296
3395
890

query I rowsort
SELECT ALL 87 + - col0 AS col2 FROM tab2 AS cor0
----
8
80
9

query I rowsort
SELECT DISTINCT - col2 + - col1 * - cor0.col1 AS col0 FROM tab2 cor0
----
251
3455
934

query I rowsort
SELECT ALL - 31 * + col1 FROM tab0 AS cor0
----
-2666
-2821
-3007

query I rowsort
SELECT DISTINCT col2 * col0 * col1 FROM tab2 cor0
----
119652
51034
5859

query I rowsort
SELECT ALL col1 + col1 + + col0 * col1 AS col0 FROM tab2 AS cor0
----
1377
279
4720

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col2 * + col0 col2 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT ALL 56 * col2 AS col0 FROM tab2 AS cor0
----
1456
1512
2128

query I rowsort
SELECT DISTINCT - 37 * - col1 AS col2 FROM tab0 AS cor0
----
3182
3367
3589

query I rowsort
SELECT ALL col1 + col0 * col0 FROM tab1 AS cor0
----
35
4106
6413

query I rowsort
SELECT 80 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 878f012d707aab113cedaf56e6c52e94

query I rowsort
SELECT + cor0.col0 FROM tab0, tab1 AS cor0, tab1 cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f

query I rowsort
SELECT - ( - col0 ) FROM tab1
----
3
64
80

query I rowsort
SELECT DISTINCT 48 * 69 * col1 FROM tab0
----
284832
301392
321264

query I rowsort
SELECT + 27 + 51 AS col1 FROM tab0 AS cor0
----
78
78
78

query I rowsort
SELECT - col0 * 76 AS col2 FROM tab1 cor0
----
-228
-4864
-6080

query I rowsort
SELECT ALL + cor0.col2 FROM tab0, tab2 cor0
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3

query I rowsort
SELECT col0 + + cor0.col2 AS col2 FROM tab1 cor0
----
121
176
57

query I rowsort
SELECT DISTINCT 47 AS col0 FROM tab0, tab2 AS cor0
----
47

query I rowsort
SELECT - ( + cor0.col1 ) + ( - ( col0 ) ) * 9 FROM tab2 AS cor0
----
-728
-761
-94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col0 * col0 col0 FROM tab1 AS cor0
----
4096
6400
9

query I rowsort
SELECT cor0.col0 * col2 + col1 FROM tab1 AS cor0
----
188
3658
7693

query I rowsort
SELECT DISTINCT - 48 * tab2.col2 * col2 AS col0 FROM tab2
----
-32448
-34992
-69312

query I rowsort
SELECT - + col2 - + ( col1 * - col0 ) FROM tab0 cor0
----
2031
3394
8017

query I rowsort
SELECT - col0 * ( 81 ) + + col0 FROM tab1 AS cor0
----
-240
-5120
-6400

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3480
SELECT - col0 + - CAST( 96 AS SIGNED ) FROM tab0 cor0
----
-120
-131
-185

skipif mysql # not compatible
query I rowsort label-3480
SELECT - col0 + - CAST ( 96 AS INTEGER ) FROM tab0 cor0
----
-120
-131
-185

query I rowsort
SELECT + col2 + ( col2 ) * - col2 AS col0 FROM tab2 cor0
----
-1406
-650
-702

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col0 + - ( 53 ) col1 FROM tab1 AS cor0
----
-117
-133
-56

query I rowsort
SELECT DISTINCT + + col1 AS col2 FROM tab1 cor0
----
10
13
26

onlyif mysql # use DIV operator for integer division
query I rowsort label-3484
SELECT + col0 + 14 * - col0 + col0 * col1 DIV + col1 FROM tab1 AS cor0
----
-36
-768
-960

skipif mysql # not compatible
query I rowsort label-3484
SELECT + col0 + 14 * - col0 + col0 * col1 / + col1 FROM tab1 AS cor0
----
-36
-768
-960

query I rowsort
SELECT + col2 + ( - col2 ) * cor0.col2 AS col2 FROM tab2 cor0
----
-1406
-650
-702

query I rowsort
SELECT 76 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 30b8941a700cffd5b983116383bd42d5

query I rowsort
SELECT col2 + + 39 * col2 + - cor0.col1 * col0 AS col2 FROM tab2 AS cor0
----
-3562
177
863

query I rowsort
SELECT + - col0 + ( + 92 * + col0 ) AS col1 FROM tab0 AS cor0
----
2184
3185
8099

query I rowsort
SELECT DISTINCT - + cor0.col1 * - 51 AS col0 FROM tab1 cor0
----
1326
510
663

query I rowsort
SELECT DISTINCT + + col2 * col0 * + col1 AS col1 FROM tab0 AS cor0
----
3395
664118
68112

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 95 col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to e57d8ed879dfd04d04aae87725c970d3

query I rowsort
SELECT DISTINCT + ( + col0 ) + cor0.col0 * 77 AS col1 FROM tab0 AS cor0
----
1872
2730
6942

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 65 col0 FROM tab2 AS cor0
----
65
65
65

query I rowsort
SELECT ALL + + col0 * cor0.col2 + + col1 FROM tab0 AS cor0
----
132
7389
878

query I rowsort
SELECT ALL - 16 FROM tab0, tab0 AS cor0
----
9 values hashing to be22ac76b42c6f7212ecc0ba7c89eb34

onlyif mysql # use DIV operator for integer division
query I rowsort label-3496
SELECT col2 DIV ( 78 * + tab0.col1 ) AS col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3496
SELECT col2 / ( 78 * + tab0.col1 ) AS col1 FROM tab0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-3497
SELECT ( - col1 ) DIV col2 FROM tab0 cor0
----
-1
-2
-97

skipif mysql # not compatible
query I rowsort label-3497
SELECT ( - col1 ) / col2 FROM tab0 cor0
----
-1
-2
-97

query I rowsort
SELECT + - 57 FROM tab0 cor0
----
-57
-57
-57

query I rowsort
SELECT DISTINCT - 69 + col0 AS col0 FROM tab1 cor0
----
-5
-66
11

query I rowsort
SELECT ALL + tab0.col2 * + ( 73 ) FROM tab0
----
2409
5986
73

query I rowsort
SELECT 17 * cor0.col2 FROM tab2, tab2 AS cor0
----
9 values hashing to ace3d030d524a7677f9f84197e5fb842

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * 26 col1 FROM tab1
----
-1404
-1482
-2496

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * - ( - col0 + col0 ) col2 FROM tab2
----
0
0
0

query I rowsort
SELECT tab1.col0 * ( - col1 * col0 ) FROM tab1
----
-234
-40960
-83200

query I rowsort
SELECT + col0 + + col1 + cor0.col1 AS col0 FROM tab1 AS cor0
----
106
55
84

query I rowsort
SELECT - + 57 FROM tab2 AS cor0
----
-57
-57
-57

query I rowsort
SELECT - 30 + - col1 AS col0 FROM tab2 AS cor0
----
-47
-61
-89

query I rowsort
SELECT ALL - col1 + + cor0.col0 FROM tab2 cor0
----
-24
19
62

query I rowsort
SELECT col2 * ( + cor0.col0 ) * - col2 - - col1 AS col0 FROM tab0 cor0
----
-26050
-598345
62

query I rowsort
SELECT - + col0 * + cor0.col0 AS col2 FROM tab2 AS cor0
----
-49
-6084
-6241

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3511
SELECT ALL tab1.col1 - - CAST( NULL AS DECIMAL ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3511
SELECT ALL tab1.col1 - - CAST ( NULL AS REAL ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - cor0.col0 * + cor0.col1 AS col2 FROM tab2, tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT + - cor0.col0 + 20 AS col0 FROM tab2 AS cor0
----
-58
-59
13

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab2 AS cor0, tab0 cor1, tab0 cor2
----
972 values hashing to 09b120a8ff13ebafea7af10c2152241b

onlyif mysql # use DIV operator for integer division
query I rowsort label-3515
SELECT + col2 + - CAST( + ( col1 ) AS SIGNED ) DIV col1 FROM tab0 AS cor0
----
0
32
81

skipif mysql # not compatible
query I rowsort label-3515
SELECT + col2 + - CAST ( + ( col1 ) AS INTEGER ) / col1 FROM tab0 AS cor0
----
0
32
81

query I rowsort
SELECT ALL - col2 * - 29 * - col1 AS col0 FROM tab1 cor0
----
-16530
-36192
-40716

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3517
SELECT col1 + - CAST( NULL AS SIGNED ) * - col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3517
SELECT col1 + - CAST ( NULL AS INTEGER ) * - col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col1 + 42 AS col1 FROM tab1 AS cor0
----
52
55
68

query I rowsort
SELECT DISTINCT - col2 * 33 + col2 AS col0 FROM tab0 AS cor0
----
-1056
-2624
-32

query I rowsort
SELECT col2 * col1 + col1 FROM tab0
----
194
2924
7553

onlyif mysql # use DIV operator for integer division
query I rowsort label-3521
SELECT tab0.col1 DIV + col1 + + ( - col0 ) AS col2 FROM tab0
----
-23
-34
-88

skipif mysql # not compatible
query I rowsort label-3521
SELECT tab0.col1 / + col1 + + ( - col0 ) AS col2 FROM tab0
----
-23
-34
-88

query I rowsort
SELECT DISTINCT 52 AS col0 FROM tab0
----
52

query I rowsort
SELECT cor0.col2 AS col2 FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to 7786718bd8042022537378d40ec87475

query I rowsort
SELECT DISTINCT + col1 * tab2.col1 * col0 FROM tab2
----
22831
271518
6727

query I rowsort
SELECT ALL + cor0.col2 * col0 + col0 AS col1 FROM tab1 AS cor0
----
165
3712
7760

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * - col1 * col0 col2 FROM tab0
----
177504
329315
737009

query I rowsort
SELECT DISTINCT 67 AS col1 FROM tab0, tab2 AS cor0, tab2 cor1
----
67

query I rowsort
SELECT ALL - col2 * ( col1 ) FROM tab1 cor0
----
-1248
-1404
-570

query I rowsort
SELECT - cor0.col1 * 2 AS col1 FROM tab1 AS cor0
----
-20
-26
-52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col0 * + col2 * ( - col1 ) col1 FROM tab2 AS cor0
----
119652
51034
5859

query I rowsort
SELECT ALL - + col0 * - cor0.col0 FROM tab1 AS cor0
----
4096
6400
9

query I rowsort
SELECT ALL - + col2 + cor0.col0 FROM tab2 AS cor0
----
-20
41
52

query I rowsort
SELECT - - col1 + 20 AS col1 FROM tab1 AS cor0
----
30
33
46

query I rowsort
SELECT DISTINCT - - col2 + col2 * col0 FROM tab2 AS cor0
----
2054
216
3040

query I rowsort
SELECT + col1 * + 46 AS col2 FROM tab2 AS cor0
----
1426
2714
782

query I rowsort
SELECT col0 - + tab0.col2 FROM tab0
----
-9
34
7

query I rowsort
SELECT ( col2 ) AS col2 FROM tab0 cor0
----
1
33
82

query I rowsort
SELECT DISTINCT - - col2 * col0 * - cor0.col2 + col2 + col2 FROM tab0 AS cor0
----
-26070
-33
-598272

query I rowsort
SELECT DISTINCT cor0.col1 + 31 AS col2 FROM tab0 cor0
----
117
122
128

query I rowsort
SELECT col1 * 76 AS col1 FROM tab2 AS cor0
----
1292
2356
4484

query I rowsort
SELECT - col2 * col1 - - col2 FROM tab0 AS cor0
----
-2805
-7380
-96

onlyif mysql # use DIV operator for integer division
query I rowsort label-3542
SELECT ALL - col1 + + cor0.col2 DIV col1 FROM tab2 AS cor0
----
-15
-31
-59

skipif mysql # not compatible
query I rowsort label-3542
SELECT ALL - col1 + + cor0.col2 / col1 FROM tab2 AS cor0
----
-15
-31
-59

query I rowsort
SELECT + col1 + 74 * + col0 FROM tab0 AS cor0
----
1862
2687
6677

query I rowsort
SELECT + - ( + col1 ) AS col2 FROM tab2 AS cor0
----
-17
-31
-59

onlyif mysql # use DIV operator for integer division
query I rowsort label-3545
SELECT DISTINCT col1 DIV - col0 + ( cor0.col1 ) DIV + col2 FROM tab1 AS cor0
----
-8
0

skipif mysql # not compatible
query I rowsort label-3545
SELECT DISTINCT col1 / - col0 + ( cor0.col1 ) / + col2 FROM tab1 AS cor0
----
-8
0

query I rowsort
SELECT ALL - + col0 - col2 FROM tab0 cor0
----
-171
-36
-57

query I rowsort
SELECT ALL - col0 * col2 - + col1 AS col0 FROM tab2 AS cor0
----
-2087
-220
-3019

onlyif mysql # use DIV operator for integer division
query I rowsort label-3548
SELECT DISTINCT - col0 DIV - col0 col1 FROM tab2
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3548
SELECT DISTINCT - col0 / - col0 col1 FROM tab2
----
1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3549
SELECT ALL + ( - cor0.col1 ) * - CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3549
SELECT ALL + ( - cor0.col1 ) * - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 14 col0 FROM tab1, tab2 AS cor0, tab1 cor1
----
-14

query I rowsort
SELECT ALL + col0 + col0 * + 66 AS col1 FROM tab0 AS cor0
----
1608
2345
5963

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3552
SELECT ALL col1 * col1 * CAST( NULL AS SIGNED ) + + col2 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3552
SELECT ALL col1 * col1 * CAST ( NULL AS INTEGER ) + + col2 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 59 * - col2 + - 12 AS col2 FROM tab1 AS cor0
----
-3198
-3375
-5676

query I rowsort
SELECT ALL col0 * col0 * col2 FROM tab2 AS cor0
----
1323
158184
237158

query I rowsort
SELECT - + 94 * col0 + cor0.col0 FROM tab1 AS cor0
----
-279
-5952
-7440

query I rowsort
SELECT DISTINCT + 7 + + col0 FROM tab2 AS cor0
----
14
85
86

query I rowsort
SELECT DISTINCT ( cor0.col2 ) AS col0 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT + - 96 FROM tab2 AS cor0
----
-96
-96
-96

query I rowsort
SELECT ALL + - col1 * col2 + ( 80 ) AS col1 FROM tab1 AS cor0
----
-1168
-1324
-490

query I rowsort
SELECT col0 * - col1 + + ( - col0 ) * col2 AS col0 FROM tab2
----
-406
-4345
-6630

query I rowsort
SELECT DISTINCT cor0.col2 * - cor0.col2 + 98 FROM tab2 AS cor0
----
-1346
-578
-631

query I rowsort
SELECT ALL - cor0.col2 - col0 * + col0 FROM tab2 AS cor0
----
-6110
-6279
-76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 8 + - cor0.col1 col0 FROM tab0 cor0
----
-78
-83
-89

query I rowsort
SELECT + - 25 * col2 FROM tab2 AS cor0
----
-650
-675
-950

onlyif mysql # use DIV operator for integer division
query I rowsort label-3565
SELECT - + col2 DIV - col0 + col0 AS col0 FROM tab2 AS cor0
----
10
78
79

skipif mysql # not compatible
query I rowsort label-3565
SELECT - + col2 / - col0 + col0 AS col0 FROM tab2 AS cor0
----
10
78
79

query I rowsort
SELECT DISTINCT - 99 AS col2 FROM tab2 AS cor0
----
-99

query I rowsort
SELECT - - cor0.col0 * - col2 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT DISTINCT + + col2 - - col1 AS col2 FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT ALL - - cor0.col1 * col2 AS col0 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT + + 72 FROM tab1 AS cor0
----
72
72
72

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3571
SELECT DISTINCT + + cor0.col2 * + col1 + - CAST( - col1 AS SIGNED ) FROM tab0 AS cor0
----
194
2924
7553

skipif mysql # not compatible
query I rowsort label-3571
SELECT DISTINCT + + cor0.col2 * + col1 + - CAST ( - col1 AS INTEGER ) FROM tab0 AS cor0
----
194
2924
7553

query I rowsort
SELECT ALL ( + col0 ) * 47 AS col2 FROM tab0 AS cor0
----
1128
1645
4183

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3573
SELECT col2 + + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3573
SELECT col2 + + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col1 * ( + ( + 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-3575
SELECT - CAST( NULL AS SIGNED ) AS col2 FROM tab2, tab1 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-3575
SELECT - CAST ( NULL AS INTEGER ) AS col2 FROM tab2, tab1 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # use DIV operator for integer division
query I rowsort label-3576
SELECT ALL + - col2 DIV col0 + + ( + col2 ) * 5 DIV - col1 FROM tab1 AS cor0
----
-28
-28
-37

skipif mysql # not compatible
query I rowsort label-3576
SELECT ALL + - col2 / col0 + + ( + col2 ) * 5 / - col1 FROM tab1 AS cor0
----
-28
-28
-37

query I rowsort
SELECT - cor0.col0 * col0 + + col2 FROM tab1 AS cor0
----
-4039
-6304
45

query I rowsort
SELECT + col1 + + cor0.col0 * - col2 AS col0 FROM tab0 AS cor0
----
-706
-7207
62

query I rowsort
SELECT ALL + 27 AS col1 FROM tab2 AS cor0
----
27
27
27

query I rowsort
SELECT ALL + 79 * + col0 AS col2 FROM tab1 AS cor0
----
237
5056
6320

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab1 cor0, tab2 AS cor1, tab2 cor2
----
972 values hashing to 64ce0e736818e884f0a9ecd075da5eb7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 59 + col0 col1 FROM tab1 AS cor0
----
-56
21
5

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3583
SELECT col1 * ( + col2 * + CAST( col2 AS SIGNED ) ) + + col1 * - 82 - 56 col1 FROM tab2 cor0
----
20001
23098
34990

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3583
SELECT col1 * ( + col2 * + CAST ( col2 AS INTEGER ) ) + + col1 * - 82 - 56 col1 FROM tab2 cor0
----
20001
23098
34990

query I rowsort
SELECT col0 + col0 * - col2 FROM tab1 AS cor0
----
-159
-3584
-7600

query I rowsort
SELECT DISTINCT 26 + ( col0 ) * - 3 AS col2 FROM tab2 AS cor0
----
-208
-211
5

query I rowsort
SELECT DISTINCT + 14 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
14

query I rowsort
SELECT ALL col1 * - 36 AS col1 FROM tab1
----
-360
-468
-936

query I rowsort
SELECT 88 * - col2 + - col0 + - 88 FROM tab2 AS cor0
----
-2454
-2471
-3511

query I rowsort
SELECT DISTINCT - + col2 * - cor0.col0 FROM tab1 AS cor0
----
162
3648
7680

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3590
SELECT - CAST( NULL AS SIGNED ) * col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3590
SELECT - CAST ( NULL AS INTEGER ) * col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col2 + + 43 FROM tab2
----
16
17
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( col1 ) + col1 * + col2 col2 FROM tab0
----
194
2924
7553

onlyif mysql # use DIV operator for integer division
query I rowsort label-3593
SELECT ALL 76 DIV col1 + col1 FROM tab0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-3593
SELECT ALL 76 / col1 + col1 FROM tab0
----
86
91
97

query I rowsort
SELECT DISTINCT + col0 + ( + tab1.col2 ) * + 62 AS col1 FROM tab1
----
3351
3598
6032

query I rowsort
SELECT ALL + col1 * col0 + col1 * - col2 AS col0 FROM tab2
----
-620
3068
697

query I rowsort
SELECT 2 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 84dbfaf9bc17dd097f15bc36b4186261

query I rowsort
SELECT - + 13 * - 22 + + col1 * ( - col1 ) + + col0 AS col1 FROM tab0 AS cor0
----
-7086
-7906
-9088

query I rowsort
SELECT DISTINCT + - col1 * 21 FROM tab0 AS cor0
----
-1806
-1911
-2037

query I rowsort
SELECT col2 * + 75 + col0 AS col0 FROM tab1 AS cor0
----
4053
4339
7280

onlyif mysql # use DIV operator for integer division
query I rowsort label-3600
SELECT - col0 DIV - ( - col0 * col0 ) FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3600
SELECT - col0 / - ( - col0 * col0 ) FROM tab1
----
0
0
0

query I rowsort
SELECT ( - col1 ) - tab1.col1 FROM tab1
----
-20
-26
-52

query I rowsort
SELECT DISTINCT + tab0.col2 + + 8 * + 65 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
521
553
602

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab2.col2 col0 FROM tab2
----
26
27
38

onlyif mysql # use DIV operator for integer division
query I rowsort label-3604
SELECT DISTINCT - col1 DIV 66 AS col1 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-3604
SELECT DISTINCT - col1 / 66 AS col1 FROM tab0
----
-1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3605
SELECT - CAST( NULL AS SIGNED ) + - cor0.col2 + + cor0.col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3605
SELECT - CAST ( NULL AS INTEGER ) + - cor0.col2 + + cor0.col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col0 * - col0 AS col0 FROM tab1 AS cor0
----
-4096
-6400
-9

query I rowsort
SELECT - + ( + 83 ) * cor0.col2 AS col2 FROM tab1 AS cor0
----
-4482
-4731
-7968

query I rowsort
SELECT DISTINCT - tab0.col2 FROM tab0, tab1 AS cor0
----
-1
-33
-82

query I rowsort
SELECT DISTINCT + 37 + col1 * + col0 AS col0 FROM tab1
----
1077
115
677

query I rowsort
SELECT col2 * tab0.col2 * + col1 FROM tab0
----
611884
93654
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-3611
SELECT col2 DIV col0 col0 FROM tab0
----
0
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3611
SELECT col2 / col0 col0 FROM tab0
----
0
0
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-3612
SELECT + 92 DIV - col0 AS col2 FROM tab0
----
-1
-2
-3

skipif mysql # not compatible
query I rowsort label-3612
SELECT + 92 / - col0 AS col2 FROM tab0
----
-1
-2
-3

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3613
SELECT 29 * - tab2.col2 * CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3613
SELECT 29 * - tab2.col2 * CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT + - 57 FROM tab0 AS cor0
----
-57
-57
-57

query I rowsort
SELECT - 90 * col1 FROM tab1 AS cor0
----
-1170
-2340
-900

query I rowsort
SELECT DISTINCT + col1 * col1 AS col2 FROM tab2 AS cor0
----
289
3481
961

query I rowsort
SELECT - col2 + ( + col0 ) FROM tab1 AS cor0
----
-16
-51
7

onlyif mysql # use DIV operator for integer division
query I rowsort label-3618
SELECT - col2 * ( - cor0.col1 ) - + col1 DIV ( + 1 ) AS col1 FROM tab0 AS cor0
----
0
2752
7371

skipif mysql # not compatible
query I rowsort label-3618
SELECT - col2 * ( - cor0.col1 ) - + col1 / ( + 1 ) AS col1 FROM tab0 AS cor0
----
0
2752
7371

query I rowsort
SELECT + + col0 + cor0.col1 FROM tab0 cor0
----
110
132
180

query I rowsort
SELECT - - col1 + - 12 * - col2 FROM tab1 AS cor0
----
1165
674
694

query I rowsort
SELECT - col1 * 7 + + 74 FROM tab2 AS cor0
----
-143
-339
-45

query I rowsort
SELECT + 77 + - col1 FROM tab0
----
-14
-20
-9

query I rowsort
SELECT DISTINCT + tab2.col2 + col0 * + col1 AS col2 FROM tab2
----
1381
244
4628

query I rowsort
SELECT + cor0.col2 - - col0 AS col1 FROM tab0 AS cor0
----
171
36
57

query I rowsort
SELECT + col2 * ( - col0 ) * col2 FROM tab0 AS cor0
----
-26136
-35
-598436

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 28 + col1 * + col1 col0 FROM tab1
----
128
197
704

query I rowsort
SELECT ALL col2 - col0 * col1 FROM tab2
----
-1305
-190
-4576

query I rowsort
SELECT + - col0 + + col2 - 48 FROM tab2 AS cor0
----
-100
-28
-89

query I rowsort
SELECT DISTINCT col1 * 48 FROM tab2 AS cor0
----
1488
2832
816

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + + 37 col2 FROM tab1 AS cor0
----
47
50
63

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + col0 col2 FROM tab2 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col1 * - ( 36 ) - - cor0.col2 col0 FROM tab2 AS cor0
----
-1089
-2098
-574

query I rowsort
SELECT DISTINCT cor0.col2 * + col1 + - col0 AS col2 FROM tab0 cor0
----
2814
62
7373

query I rowsort
SELECT ALL - ( - col2 ) - + col2 AS col2 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-3635
SELECT - col0 DIV - col0 + col0 FROM tab2 cor0
----
79
8
80

skipif mysql # not compatible
query I rowsort label-3635
SELECT - col0 / - col0 + col0 FROM tab2 cor0
----
79
8
80

query I rowsort
SELECT ALL + 8 - 8 AS col2 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-3637
SELECT - col2 DIV + col1 + col2 * ( + col0 ) FROM tab0 AS cor0
----
35
7298
792

skipif mysql # not compatible
query I rowsort label-3637
SELECT - col2 / + col1 + col2 * ( + col0 ) FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT DISTINCT - + cor0.col0 + - col2 AS col0 FROM tab1 AS cor0
----
-121
-176
-57

query I rowsort
SELECT DISTINCT - col2 - cor0.col2 AS col0 FROM tab2 AS cor0
----
-52
-54
-76

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3640
SELECT ALL CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3640
SELECT ALL CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT ( + col1 ) + - col0 FROM tab0 cor0
----
2
62

query I rowsort
SELECT DISTINCT + col0 * - cor0.col0 + col2 FROM tab2 AS cor0
----
-22
-6058
-6203

query I rowsort
SELECT DISTINCT + col1 + + col1 * + col1 - 51 AS col0 FROM tab2 AS cor0
----
255
3489
941

query I rowsort
SELECT + col0 * col0 + + 54 * col2 FROM tab1
----
11584
2925
7174

query I rowsort
SELECT DISTINCT + col1 - ( tab2.col2 ) * col2 FROM tab2
----
-1427
-617
-698

query I rowsort
SELECT ALL col1 * ( col1 ) - - col0 FROM tab0
----
7420
8370
9444

query I rowsort
SELECT tab2.col0 AS col0 FROM tab2, tab0, tab1 AS cor0
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83

onlyif mysql # use DIV operator for integer division
query I rowsort label-3648
SELECT col2 * col2 DIV tab0.col0 AS col1 FROM tab0
----
0
45
75

skipif mysql # not compatible
query I rowsort label-3648
SELECT col2 * col2 / tab0.col0 AS col1 FROM tab0
----
0
45
75

query I rowsort
SELECT col2 * - 72 FROM tab2
----
-1872
-1944
-2736

onlyif mysql # use DIV operator for integer division
query I rowsort label-3650
SELECT 17 + - col2 DIV + col0 AS col0 FROM tab1 AS cor0
----
-1
16
17

skipif mysql # not compatible
query I rowsort label-3650
SELECT 17 + - col2 / + col0 AS col0 FROM tab1 AS cor0
----
-1
16
17

query I rowsort
SELECT ALL + - col2 + - col1 AS col1 FROM tab2 AS cor0
----
-55
-58
-85

query I rowsort
SELECT ALL - 70 * + col2 AS col0 FROM tab1 AS cor0
----
-3780
-3990
-6720

query I rowsort
SELECT DISTINCT - col2 * - cor0.col0 FROM tab1 AS cor0
----
162
3648
7680

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 col0 FROM tab1 AS cor0
----
-3
-64
-80

onlyif mysql # use DIV operator for integer division
query I rowsort label-3655
SELECT + 28 DIV cor0.col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3655
SELECT + 28 / cor0.col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - 0 FROM tab2, tab2 AS cor0
----
0

query I rowsort
SELECT DISTINCT 19 AS col2 FROM tab1, tab1 AS cor0
----
19

query I rowsort
SELECT + tab2.col0 AS col0 FROM tab2, tab1 cor0
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a

query I rowsort
SELECT ALL - tab2.col2 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 7b5938124253798426fbf09c18e1fd75

query I rowsort
SELECT DISTINCT 50 + cor1.col2 AS col1 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
132
51
83

query I rowsort
SELECT 98 * - cor0.col0 * - col2 FROM tab0 AS cor0
----
3430
715204
77616

query I rowsort
SELECT col0 * - col2 FROM tab0 cor0
----
-35
-7298
-792

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3663
SELECT ALL + - CAST( col2 AS SIGNED ) + col1 * - col0 * col1 AS col1 FROM tab0 AS cor0
----
-177537
-329316
-737091

skipif mysql # not compatible
query I rowsort label-3663
SELECT ALL + - CAST ( col2 AS INTEGER ) + col1 * - col0 * col1 AS col1 FROM tab0 AS cor0
----
-177537
-329316
-737091

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3664
SELECT DISTINCT + + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3664
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL - - ( col0 ) * col1 AS col0 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT - 44 * cor0.col1 + - cor0.col1 FROM tab2 AS cor0
----
-1395
-2655
-765

query I rowsort
SELECT DISTINCT + + col2 * + 98 + col1 * - 8 AS col2 FROM tab2 AS cor0
----
2076
2398
3588

query I rowsort
SELECT DISTINCT + + col0 * col2 + + col2 FROM tab1 AS cor0
----
216
3705
7776

query I rowsort
SELECT col0 * 81 AS col2 FROM tab1 AS cor0
----
243
5184
6480

onlyif mysql # use DIV operator for integer division
query I rowsort label-3670
SELECT DISTINCT - 46 DIV cor0.col1 + col2 * col0 DIV - col2 + col2 FROM tab0 AS cor0
----
-34
-7
9

skipif mysql # not compatible
query I rowsort label-3670
SELECT DISTINCT - 46 / cor0.col1 + col2 * col0 / - col2 + col2 FROM tab0 AS cor0
----
-34
-7
9

query I rowsort
SELECT + col1 * 0 AS col0 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-3672
SELECT + 29 * col2 + - col2 + - ( 34 + col0 ) DIV col0 AS col0 FROM tab2 AS cor0
----
1063
727
751

skipif mysql # not compatible
query I rowsort label-3672
SELECT + 29 * col2 + - col2 + - ( 34 + col0 ) / col0 AS col0 FROM tab2 AS cor0
----
1063
727
751

query I rowsort
SELECT DISTINCT - - 72 * col2 FROM tab1 AS cor0
----
3888
4104
6912

query I rowsort
SELECT ALL ( col0 ) + col0 FROM tab1 AS cor0
----
128
160
6

query I rowsort
SELECT DISTINCT + - ( + col2 ) + cor0.col1 FROM tab1 AS cor0
----
-28
-47
-83

query I rowsort
SELECT - 77 * col1 FROM tab0 AS cor0
----
-6622
-7007
-7469

query I rowsort
SELECT ALL + col0 + + 60 AS col2 FROM tab2
----
138
139
67

query I rowsort
SELECT ALL - col2 + - 0 + - col2 * - col1 FROM tab1
----
1152
1350
513

query I rowsort
SELECT ALL 9 * col0 FROM tab2 AS cor0
----
63
702
711

query I rowsort
SELECT + + 70 + + col2 * + col0 FROM tab1 cor0
----
232
3718
7750

query I rowsort
SELECT - 78 FROM tab0
----
-78
-78
-78

query I rowsort
SELECT DISTINCT + col2 * - cor0.col0 FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT + - col1 * + 43 AS col1 FROM tab0 AS cor0
----
-3698
-3913
-4171

query I rowsort
SELECT + col0 * 27 * col0 AS col2 FROM tab2 AS cor0
----
1323
164268
168507

query I rowsort
SELECT DISTINCT - 59 FROM tab1 cor0
----
-59

query I rowsort
SELECT ALL + - 71 AS col0 FROM tab2 AS cor0
----
-71
-71
-71

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3687
SELECT ALL + CAST( - 30 AS SIGNED ) col0 FROM tab1, tab2 AS cor0 CROSS JOIN tab2
----
27 values hashing to a96370a8187089b6b83ce9bfbade5142

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3687
SELECT ALL + CAST ( - 30 AS INTEGER ) col0 FROM tab1, tab2 AS cor0 CROSS JOIN tab2
----
27 values hashing to a96370a8187089b6b83ce9bfbade5142

query I rowsort
SELECT col2 + + col0 * col1 FROM tab0
----
2097
3396
8181

onlyif mysql # use DIV operator for integer division
query I rowsort label-3689
SELECT cor0.col0 DIV CAST( + col0 AS SIGNED ) + col0 FROM tab1 AS cor0
----
4
65
81

skipif mysql # not compatible
query I rowsort label-3689
SELECT cor0.col0 / CAST ( + col0 AS INTEGER ) + col0 FROM tab1 AS cor0
----
4
65
81

query I rowsort
SELECT - 23 * + col1 AS col0 FROM tab2
----
-1357
-391
-713

query I rowsort
SELECT ( col2 ) + - col1 AS col2 FROM tab2 AS cor0
----
-33
-4
21

query I rowsort
SELECT + col2 + + col0 + + ( col1 ) FROM tab0
----
133
143
262

onlyif mysql # use DIV operator for integer division
query I rowsort label-3693
SELECT DISTINCT - 87 + col2 - col2 DIV + 17 AS col2 FROM tab2
----
-51
-61
-62

skipif mysql # not compatible
query I rowsort label-3693
SELECT DISTINCT - 87 + col2 - col2 / + 17 AS col2 FROM tab2
----
-51
-61
-62

query I rowsort
SELECT DISTINCT - col1 * ( - 19 ) + - tab1.col2 + + col0 FROM tab1
----
197
231
443

query I rowsort
SELECT ALL col0 + - ( - col0 ) * + col0 FROM tab1
----
12
4160
6480

query I rowsort
SELECT DISTINCT - col0 + - tab2.col2 * - ( col2 + 84 ) * + col2 AS col2 FROM tab2
----
176089
74282
80912

query I rowsort
SELECT tab0.col2 + - col2 * + col1 + + tab0.col2 FROM tab0
----
-2772
-7298
-95

query I rowsort
SELECT DISTINCT col1 * col2 + - col1 + - col0 FROM tab0
----
-35
2728
7282

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 60 + 66 col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 5d1cb90ed58fa7573895d2f95b211821

query I rowsort
SELECT DISTINCT 98 AS col1 FROM tab2, tab1 cor0
----
98

query I rowsort
SELECT DISTINCT col2 + col0 * ( + col1 + col2 ) FROM tab0
----
15479
2889
3431

query I rowsort
SELECT - - cor0.col2 * + col1 FROM tab0 cor0
----
2838
7462
97

skipif mysql # not compatible
query I rowsort
SELECT ALL + col2 * CAST ( 70 AS REAL ) AS col0 FROM tab1 cor0
----
3780
3990
6720

query I rowsort
SELECT DISTINCT + col0 * 61 FROM tab2 cor0
----
427
4758
4819

query I rowsort
SELECT - cor0.col1 * - cor0.col1 AS col2 FROM tab1 cor0
----
100
169
676

query I rowsort
SELECT ALL + col2 + - 9 AS col2 FROM tab0
----
-8
24
73

query I rowsort
SELECT DISTINCT col2 * - 49 + - col1 * col1 AS col0 FROM tab2
----
-2151
-2284
-4755

query IIIIIIIIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0, tab2 AS cor1, tab2 cor2
----
972 values hashing to 617c9545df26d6d983e3967864e8e9e4

query I rowsort
SELECT DISTINCT - 32 + + 49 AS col0 FROM tab0, tab1 AS cor0
----
17

query I rowsort
SELECT - tab0.col1 * col0 * 42 FROM tab0
----
-142590
-340158
-86688

query I rowsort
SELECT ALL + + col1 + 14 FROM tab0 AS cor0
----
100
105
111

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3712
SELECT + - col0 + - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3712
SELECT + - col0 + - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + cor0.col2 * - 84 + 99 * col0 AS col2 FROM tab1 AS cor0
----
-144
-4239
1548

query I rowsort
SELECT DISTINCT + col1 + cor0.col2 AS col1 FROM tab1 AS cor0
----
109
67
80

query I rowsort
SELECT - + col0 * ( col2 ) - col2 AS col1 FROM tab2 AS cor0
----
-2054
-216
-3040

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col1 col2 FROM tab2 cor0 CROSS JOIN tab1, tab0 AS cor1
----
17
31
59

query I rowsort
SELECT 39 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 5ecc4d3de68ae828a2d522dff8571cbf

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3718
SELECT DISTINCT + col0 + CAST( NULL AS SIGNED ) AS col0 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3718
SELECT DISTINCT + col0 + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 cor0
----
NULL

query I rowsort
SELECT ALL - col0 * - 52 + col2 AS col2 FROM tab2 AS cor0
----
391
4082
4146

query I rowsort
SELECT + col2 * - col0 + col1 FROM tab1 AS cor0
----
-136
-3638
-7667

query I rowsort
SELECT + ( col2 ) + - cor0.col2 + 9 FROM tab1 AS cor0
----
9
9
9

query I rowsort
SELECT + - 8 FROM tab2 cor0
----
-8
-8
-8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * col1 col2 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT DISTINCT + + 18 + + col0 - - ( col1 + cor0.col0 ) FROM tab2 AS cor0
----
193
233
63

query I rowsort
SELECT - col1 * col0 AS col0 FROM tab0 cor0
----
-2064
-3395
-8099

query I rowsort
SELECT 74 * - col1 AS col2 FROM tab2 AS cor0
----
-1258
-2294
-4366

query I rowsort
SELECT DISTINCT - - ( + col2 ) FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT ALL 8 + col0 - col0 * col2 FROM tab1 AS cor0
----
-151
-3576
-7592

query I rowsort
SELECT DISTINCT + col2 * col2 AS col1 FROM tab1 cor0
----
2916
3249
9216

query I rowsort
SELECT ALL cor0.col1 + - col2 AS col1 FROM tab1 AS cor0
----
-28
-47
-83

query I rowsort
SELECT + cor0.col1 * - col1 * - 71 AS col2 FROM tab2 AS cor0
----
20519
247151
68231

query I rowsort
SELECT + 73 - - col1 * 86 FROM tab0
----
7469
7899
8415

query I rowsort
SELECT col2 * + col0 - col1 AS col2 FROM tab0 cor0
----
-62
706
7207

query I rowsort
SELECT DISTINCT + - col2 + col0 * - ( + cor0.col1 ) FROM tab2 AS cor0
----
-1381
-244
-4628

query I rowsort
SELECT ALL - col1 - 16 AS col1 FROM tab0 AS cor0
----
-102
-107
-113

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col0 + col2 col1 FROM tab2 AS cor0
----
104
117
34

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3737
SELECT ALL - col2 * - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3737
SELECT ALL - col2 * - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col2 + 14 AS col2 FROM tab1 AS cor0
----
110
68
71

query I rowsort
SELECT DISTINCT + - col1 * + col0 * - 10 + - col2 AS col1 FROM tab2 AS cor0
----
13392
2143
45994

query I rowsort
SELECT ALL - - col2 * + ( - 28 ) - cor0.col1 * - 99 AS col2 FROM tab2 AS cor0
----
2313
5113
619

query I rowsort
SELECT col2 * - 1 - 45 * - cor0.col1 FROM tab0 AS cor0
----
3837
4013
4364

query I rowsort
SELECT + col2 * tab2.col2 * col2 + 75 FROM tab2
----
17651
19758
54947

query I rowsort
SELECT - + 94 * cor0.col0 FROM tab1, tab1 cor0
----
9 values hashing to b307cea94f8b4b3db747ff167e582c6c

query I rowsort
SELECT ( col2 + col2 ) * - ( col2 ) AS col0 FROM tab2
----
-1352
-1458
-2888

query I rowsort
SELECT + col0 * + col1 AS col2 FROM tab1 AS cor0
----
1040
640
78

onlyif mysql # use DIV operator for integer division
query I rowsort label-3746
SELECT - col2 DIV col0 FROM tab0 cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-3746
SELECT - col2 / col0 FROM tab0 cor0
----
-1
0
0

query I rowsort
SELECT DISTINCT - cor0.col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-24
-35
-89

query I rowsort
SELECT DISTINCT 78 * 52 AS col2 FROM tab2, tab1 AS cor0
----
4056

query I rowsort
SELECT DISTINCT - 96 + - tab1.col1 FROM tab1, tab1 AS cor0
----
-106
-109
-122

query I rowsort
SELECT ALL 9 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 03b93b53107e36cf7d524e48c509b17b

query I rowsort
SELECT 91 FROM tab1, tab2 AS cor0
----
9 values hashing to 5748627ef5fd86a21cd559fd278d7277

query I rowsort
SELECT DISTINCT col1 * col0 + + 44 + - col1 FROM tab1 AS cor0
----
1071
674
96

query I rowsort
SELECT cor0.col0 AS col0 FROM tab1, tab0 AS cor0, tab1 cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd

query I rowsort
SELECT ALL - col2 + + ( + col0 ) FROM tab0 AS cor0
----
-9
34
7

onlyif mysql # use DIV operator for integer division
query I rowsort label-3755
SELECT DISTINCT + col2 * - col1 DIV + col1 FROM tab2
----
-26
-27
-38

skipif mysql # not compatible
query I rowsort label-3755
SELECT DISTINCT + col2 * - col1 / + col1 FROM tab2
----
-26
-27
-38

query I rowsort
SELECT DISTINCT + + col2 + + col0 FROM tab1 AS cor0
----
121
176
57

query I rowsort
SELECT + cor0.col0 * col0 FROM tab0 cor0
----
1225
576
7921

query I rowsort
SELECT + 69 AS col1 FROM tab1 AS cor0
----
69
69
69

query I rowsort
SELECT - - 32 AS col2 FROM tab1 AS cor0
----
32
32
32

query I rowsort
SELECT 40 AS col0 FROM tab0 AS cor0
----
40
40
40

query I rowsort
SELECT + ( - col1 ) AS col1 FROM tab0 AS cor0
----
-86
-91
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-3762
SELECT ALL - col0 DIV - 88 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3762
SELECT ALL - col0 / - 88 FROM tab1
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 80 col1 FROM tab2
----
80
80
80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3764
SELECT ALL - - ( + 7 ) * - col0 + + CAST( - 13 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-181
-258
-636

skipif mysql # not compatible
query I rowsort label-3764
SELECT ALL - - ( + 7 ) * - col0 + + CAST ( - 13 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-181
-258
-636

query I rowsort
SELECT + ( + 42 ) * + col1 * - ( - cor0.col1 ) FROM tab1 AS cor0
----
28392
4200
7098

query I rowsort
SELECT + 43 * - col2 FROM tab0 AS cor0
----
-1419
-3526
-43

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3767
SELECT + CAST( NULL AS SIGNED ) AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3767
SELECT + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + ( + cor0.col0 ) * + col0 FROM tab0 AS cor0
----
1225
576
7921

query I rowsort
SELECT - col1 + - col2 * - col0 FROM tab0 AS cor0
----
-62
706
7207

query I rowsort
SELECT 1 AS col1 FROM tab2
----
1
1
1

query I rowsort
SELECT 96 * - col2 FROM tab2 AS cor0
----
-2496
-2592
-3648

query I rowsort
SELECT DISTINCT + col1 + + col1 * col0 FROM tab0 cor0
----
2150
3492
8190

query I rowsort
SELECT + col0 + + col1 AS col2 FROM tab1 AS cor0
----
29
74
93

query I rowsort
SELECT ALL col0 * cor0.col2 + - 1 * + 35 AS col1 FROM tab0 AS cor0
----
0
7263
757

query I rowsort
SELECT ALL 39 + cor0.col1 FROM tab1 AS cor0
----
49
52
65

query I rowsort
SELECT + 93 * - col0 FROM tab1 AS cor0
----
-279
-5952
-7440

query I rowsort
SELECT DISTINCT 1 AS col0 FROM tab2, tab0, tab2 AS cor0
----
1

query I rowsort
SELECT ALL - - 26 + col0 * col0 FROM tab0 AS cor0
----
1251
602
7947

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col1 - - cor0.col0 * col2 * cor0.col1 col1 FROM tab0 cor0
----
3298
664027
68026

query I rowsort
SELECT ALL + + 69 * col0 + ( col2 ) AS col2 FROM tab0 AS cor0
----
1689
2416
6223

query I rowsort
SELECT ALL - + col2 * + cor0.col1 + + col0 * - col1 AS col2 FROM tab1 cor0
----
-1210
-1482
-2288

query I rowsort
SELECT ALL 4 FROM tab2 AS cor0
----
4
4
4

query I rowsort
SELECT - col1 * - ( ( col2 ) ) AS col2 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT - col1 + col2 * col2 FROM tab2 AS cor0
----
1427
617
698

query I rowsort
SELECT + col1 * - ( col0 ) AS col2 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT - cor0.col1 * ( col1 ) + col0 * - col1 FROM tab2 AS cor0
----
-1178
-1632
-8083

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3787
SELECT ALL + + col1 / CAST( NULL AS DECIMAL ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3787
SELECT ALL + + col1 / CAST ( NULL AS REAL ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + 70 ) col2 FROM tab2, tab2 AS cor0, tab2 cor1
----
70

query I rowsort
SELECT - col0 * - col1 + + col0 * col1 AS col2 FROM tab0 AS cor0
----
16198
4128
6790

query I rowsort
SELECT col0 + col1 * - col1 AS col1 FROM tab1 AS cor0
----
-36
-673
-89

query I rowsort
SELECT + 45 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 60b9f935ee8e404d155a2f5e9515c050

query I rowsort
SELECT - col0 + - col2 FROM tab2 cor0
----
-104
-117
-34

query I rowsort
SELECT ALL - + cor0.col2 * + cor0.col0 + col2 FROM tab0 cor0
----
-34
-7216
-759

query I rowsort
SELECT ALL - col0 + col0 * - cor0.col2 - col0 * col0 AS col2 FROM tab2 cor0
----
-245
-8190
-9322

query I rowsort
SELECT + ( + cor0.col0 ) AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63

query I rowsort
SELECT DISTINCT 21 + col1 FROM tab1
----
31
34
47

query I rowsort
SELECT - col0 * tab0.col0 * - col2 FROM tab0
----
1225
19008
649522

query I rowsort
SELECT ALL - + col2 + - col2 * 27 AS col0 FROM tab0 cor0
----
-2296
-28
-924

query I rowsort
SELECT 16 AS col0 FROM tab0 AS cor0
----
16
16
16

query I rowsort
SELECT ALL - 86 AS col0 FROM tab1 AS cor0
----
-86
-86
-86

query I rowsort
SELECT DISTINCT + 84 AS col1 FROM tab0 AS cor0
----
84

query I rowsort
SELECT + col0 * cor0.col1 - - cor0.col0 FROM tab0 AS cor0
----
2088
3430
8188

query I rowsort
SELECT DISTINCT - col1 * - col1 AS col2 FROM tab2 AS cor0
----
289
3481
961

query I rowsort
SELECT + - col0 * col0 + - col1 FROM tab0 cor0
----
-1322
-662
-8012

query I rowsort
SELECT + col0 + ( - col2 ) AS col1 FROM tab1 AS cor0
----
-16
-51
7

query I rowsort
SELECT ALL col2 * - col1 + col2 + col1 FROM tab1 AS cor0
----
-1139
-1324
-503

query I rowsort
SELECT DISTINCT + col2 + cor0.col0 FROM tab0 AS cor0
----
171
36
57

query I rowsort
SELECT ALL - col2 - + ( col2 * cor0.col0 ) AS col0 FROM tab0 cor0
----
-36
-7380
-825

query I rowsort
SELECT DISTINCT - col0 + + col0 + + col1 AS col2 FROM tab0 AS cor0
----
86
91
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-3810
SELECT ALL + col1 DIV col1 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3810
SELECT ALL + col1 / col1 FROM tab0 AS cor0
----
1
1
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-3811
SELECT DISTINCT + col0 * col1 DIV - col1 + - col2 AS col0 FROM tab1 AS cor0
----
-121
-176
-57

skipif mysql # not compatible
query I rowsort label-3811
SELECT DISTINCT + col0 * col1 / - col1 + - col2 AS col0 FROM tab1 AS cor0
----
-121
-176
-57

query I rowsort
SELECT - - col0 * - ( - 79 ) * col1 + + col2 AS col1 FROM tab0 AS cor0
----
163089
268206
639903

query I rowsort
SELECT col1 + + col1 AS col2 FROM tab2 AS cor0
----
118
34
62

query I rowsort
SELECT DISTINCT - col1 + col2 * - col1 AS col0 FROM tab1 AS cor0
----
-1261
-1430
-580

query I rowsort
SELECT DISTINCT + col0 + - ( - col1 ) AS col1 FROM tab0 AS cor0
----
110
132
180

query I rowsort
SELECT ALL col1 + col0 * 7 * col1 AS col1 FROM tab2
----
1550
32273
9418

query I rowsort
SELECT DISTINCT + tab1.col1 AS col0 FROM tab1, tab1 AS cor0
----
10
13
26

query I rowsort
SELECT - - col2 + - col1 * cor0.col2 AS col1 FROM tab1 AS cor0
----
-1152
-1350
-513

query I rowsort
SELECT DISTINCT + ( - col0 ) + - col1 * ( - col1 ) FROM tab2 cor0
----
210
3403
954

query I rowsort
SELECT DISTINCT + - 77 + col1 AS col2 FROM tab0 cor0
----
14
20
9

query I rowsort
SELECT - - cor0.col2 + 3 * - col1 FROM tab0 AS cor0
----
-191
-225
-290

query I rowsort
SELECT ALL 8 AS col2 FROM tab0 AS cor0
----
8
8
8

query I rowsort
SELECT ALL 75 * - ( - col0 ) FROM tab0 AS cor0
----
1800
2625
6675

query I rowsort
SELECT DISTINCT + + col1 * + col1 + col2 FROM tab2 AS cor0
----
327
3507
988

query I rowsort
SELECT DISTINCT cor0.col2 * + 60 AS col2 FROM tab1 AS cor0
----
3240
3420
5760

query I rowsort
SELECT 37 * - col0 FROM tab0 AS cor0
----
-1295
-3293
-888

query I rowsort
SELECT - + col2 * + ( col0 * + 86 + col1 * cor0.col0 ) FROM tab0 AS cor0
----
-1291746
-136224
-6405

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( 66 ) * + col1 col1 FROM tab2 AS cor0
----
1122
2046
3894

query I rowsort
SELECT ALL - 80 * col2 FROM tab1 AS cor0
----
-4320
-4560
-7680

query I rowsort
SELECT DISTINCT + ( col2 ) * col0 AS col0 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT DISTINCT + - ( - col0 ) * - col1 + ( - ( + col2 ) ) AS col1 FROM tab0 AS cor0
----
-2097
-3396
-8181

query I rowsort
SELECT DISTINCT + cor0.col0 * col1 * + cor0.col2 + - col0 * col0 * col1 FROM tab2 AS cor0
----
-239304
-55063
4340

query I rowsort
SELECT - col1 * + cor0.col1 + ( 14 * col1 ) FROM tab2 AS cor0
----
-2655
-51
-527

query I rowsort
SELECT - 52 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 9500afe5646d620d5e8943351a29d082

query I rowsort
SELECT - ( - col0 ) AS col1 FROM tab0
----
24
35
89

onlyif mysql # use DIV operator for integer division
query I rowsort label-3836
SELECT + + col2 DIV col2 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3836
SELECT + + col2 / col2 FROM tab0 AS cor0
----
1
1
1

query I rowsort
SELECT - cor0.col0 * + col2 + - col1 FROM tab2 cor0
----
-2087
-220
-3019

query I rowsort
SELECT + ( cor0.col2 ) + + col2 * col1 FROM tab2 AS cor0
----
1560
684
864

query I rowsort
SELECT 8 AS col2 FROM tab0 AS cor0
----
8
8
8

onlyif mysql # use DIV operator for integer division
query I rowsort label-3840
SELECT ALL - col1 DIV - col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3840
SELECT ALL - col1 / - col2 FROM tab1
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-3841
SELECT - tab2.col0 + - col2 DIV + col0 FROM tab2
----
-10
-78
-79

skipif mysql # not compatible
query I rowsort label-3841
SELECT - tab2.col0 + - col2 / + col0 FROM tab2
----
-10
-78
-79

query I rowsort
SELECT + 52 AS col0 FROM tab2
----
52
52
52

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab2 AS cor0, tab1, tab0 cor1
----
972 values hashing to e84152c0bf436177d3b3d80e42832d4f

query I rowsort
SELECT DISTINCT + cor1.col1 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
10
13
26

query I rowsort
SELECT DISTINCT - cor0.col1 AS col1 FROM tab2, tab1 AS cor0
----
-10
-13
-26

query I rowsort
SELECT ALL - col0 * cor0.col1 AS col2 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT DISTINCT - col1 * - cor0.col2 + col1 * + col2 FROM tab2 AS cor0
----
1292
1674
3068

query I rowsort
SELECT - - ( col0 ) * col1 AS col2 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT ALL ( cor0.col1 ) FROM tab2 AS cor0
----
17
31
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * col0 col0 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT 23 AS col2 FROM tab2 cor0
----
23
23
23

query I rowsort
SELECT + cor1.col1 AS col2 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc

query I rowsort
SELECT DISTINCT ( - cor0.col2 ) * col2 + + cor0.col1 + col2 FROM tab0 cor0
----
-6551
-970
97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3854
SELECT CAST( col2 AS SIGNED ) * - col0 + cor0.col2 FROM tab2 AS cor0
----
-162
-2002
-2964

skipif mysql # not compatible
query I rowsort label-3854
SELECT CAST ( col2 AS INTEGER ) * - col0 + cor0.col2 FROM tab2 AS cor0
----
-162
-2002
-2964

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab2, tab2 AS cor1, tab0, tab0 AS cor2
----
3645 values hashing to 1751d8ec783486b9121baa2709745253

onlyif mysql # use DIV operator for integer division
query I rowsort label-3856
SELECT col2 + + tab0.col0 DIV + col2 AS col0 FROM tab0
----
33
36
83

skipif mysql # not compatible
query I rowsort label-3856
SELECT col2 + + tab0.col0 / + col2 AS col0 FROM tab0
----
33
36
83

query I rowsort
SELECT DISTINCT col0 * ( ( col2 ) ) FROM tab2
----
189
2028
3002

query I rowsort
SELECT - col2 * col1 + col0 + col0 FROM tab1 AS cor0
----
-1088
-1398
-442

query I rowsort
SELECT ALL cor0.col1 + + col1 * + 73 FROM tab2 AS cor0
----
1258
2294
4366

query I rowsort
SELECT DISTINCT - cor0.col2 + + 96 AS col2 FROM tab0 AS cor0
----
14
63
95

query I rowsort
SELECT ALL - cor0.col2 + col0 AS col2 FROM tab1 AS cor0
----
-16
-51
7

query I rowsort
SELECT DISTINCT + + col0 * col1 * col2 AS col1 FROM tab1 AS cor0
----
36480
4212
99840

query I rowsort
SELECT - col2 + ( - col1 ) AS col0 FROM tab0 AS cor0
----
-119
-173
-98

onlyif mysql # use DIV operator for integer division
query I rowsort label-3864
SELECT + - col0 DIV + ( cor0.col1 ) FROM tab2 AS cor0
----
-1
-4
0

skipif mysql # not compatible
query I rowsort label-3864
SELECT + - col0 / + ( cor0.col1 ) FROM tab2 AS cor0
----
-1
-4
0

query I rowsort
SELECT DISTINCT 97 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
97

query I rowsort
SELECT ALL + + 80 + + cor0.col2 AS col0 FROM tab2 AS cor0
----
106
107
118

query I rowsort
SELECT ALL col2 * + 26 AS col0 FROM tab0
----
2132
26
858

onlyif mysql # use DIV operator for integer division
query I rowsort label-3868
SELECT ALL - 14 DIV + col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3868
SELECT ALL - 14 / + col2 FROM tab1
----
0
0
0

query I rowsort
SELECT ALL col1 + - cor0.col0 * - col2 AS col1 FROM tab2 AS cor0
----
2087
220
3019

query I rowsort
SELECT ALL - 48 + + col0 AS col2 FROM tab1 AS cor0
----
-45
16
32

query I rowsort
SELECT - col0 * col1 AS col2 FROM tab1 cor0
----
-1040
-640
-78

query I rowsort
SELECT + col0 * 82 AS col2 FROM tab0 AS cor0
----
1968
2870
7298

query I rowsort
SELECT + + col2 * - col0 AS col1 FROM tab2 AS cor0
----
-189
-2028
-3002

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 * + col0 col2 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT DISTINCT - col2 * col2 AS col1 FROM tab2 cor0
----
-1444
-676
-729

query I rowsort
SELECT DISTINCT + cor0.col1 + + 81 AS col2 FROM tab1, tab1 AS cor0
----
107
91
94

query I rowsort
SELECT + - ( - col0 ) + + col2 FROM tab0 AS cor0
----
171
36
57

query I rowsort
SELECT + 64 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 60ab040e931c5c85db7ba19364eacc8e

onlyif mysql # use DIV operator for integer division
query I rowsort label-3879
SELECT - 40 * - col2 + + col0 * col2 + col0 DIV 80 FROM tab1 cor0
----
11521
2322
5928

skipif mysql # not compatible
query I rowsort label-3879
SELECT - 40 * - col2 + + col0 * col2 + col0 / 80 FROM tab1 cor0
----
11521
2322
5928

query I rowsort
SELECT + cor0.col0 * col0 AS col2 FROM tab0 AS cor0
----
1225
576
7921

query I rowsort
SELECT ALL + 47 * + col2 * + col2 AS col1 FROM tab0
----
316028
47
51183

query I rowsort
SELECT DISTINCT - tab0.col0 * - tab0.col0 FROM tab0
----
1225
576
7921

query I rowsort
SELECT - 94 AS col2 FROM tab1
----
-94
-94
-94

query I rowsort
SELECT DISTINCT + 88 FROM tab2
----
88

query I rowsort
SELECT - + 51 FROM tab0 AS cor0
----
-51
-51
-51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * + col0 col2 FROM tab0
----
-2064
-3395
-8099

query I rowsort
SELECT tab2.col2 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3

query I rowsort
SELECT ALL - - col0 * + ( col0 ) FROM tab2 AS cor0
----
49
6084
6241

query I rowsort
SELECT - cor0.col2 * 4 AS col2 FROM tab2 AS cor0
----
-104
-108
-152

query I rowsort
SELECT DISTINCT - 90 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
-90

onlyif mysql # use DIV operator for integer division
query I rowsort label-3891
SELECT - - col1 DIV + ( col1 ) + - cor0.col0 * ( col1 * cor0.col2 ) + + cor0.col2 AS col1 FROM tab2 AS cor0
----
-119625
-50995
-5831

skipif mysql # not compatible
query I rowsort label-3891
SELECT - - col1 / + ( col1 ) + - cor0.col0 * ( col1 * cor0.col2 ) + + cor0.col2 AS col1 FROM tab2 AS cor0
----
-119625
-50995
-5831

query I rowsort
SELECT DISTINCT + - col1 * col0 AS col2 FROM tab1 AS cor0
----
-1040
-640
-78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * + col2 col2 FROM tab1 AS cor0
----
2916
3249
9216

query I rowsort
SELECT DISTINCT col2 + + col2 AS col0 FROM tab1
----
108
114
192

query I rowsort
SELECT DISTINCT - + 20 - 95 FROM tab0, tab1, tab0 AS cor0, tab2
----
-115

query I rowsort
SELECT + col1 + - col0 AS col0 FROM tab2
----
-19
-62
24

query I rowsort
SELECT DISTINCT - tab1.col1 * 5 FROM tab1
----
-130
-50
-65

query I rowsort
SELECT ALL - 35 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to c12e8bdd687c9040a5600dab3b6adf5b

onlyif mysql # use DIV operator for integer division
query I rowsort label-3899
SELECT ALL tab2.col0 DIV col1 FROM tab2
----
0
1
4

skipif mysql # not compatible
query I rowsort label-3899
SELECT ALL tab2.col0 / col1 FROM tab2
----
0
1
4

query I rowsort
SELECT ALL - col2 * 71 AS col2 FROM tab2 AS cor0
----
-1846
-1917
-2698

query I rowsort
SELECT ALL - 39 + + cor0.col2 AS col2 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 0c3e58c584ab8d0f3811089dba2110b1

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0, tab0 AS cor0, tab0 AS cor1, tab2, tab0 AS cor2
----
3645 values hashing to ba0381921410f59519cc658d8e65eee3

query I rowsort
SELECT DISTINCT - col2 * + 38 * + col1 FROM tab2 AS cor0
----
-24548
-31806
-58292

query I rowsort
SELECT - col1 * - ( col1 ) AS col0 FROM tab0 AS cor0
----
7396
8281
9409

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3905
SELECT ALL - + CAST( NULL AS DECIMAL ) AS col2 FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-3905
SELECT ALL - + CAST ( NULL AS REAL ) AS col2 FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT + cor0.col2 AS col1 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475

query I rowsort
SELECT 23 * + tab2.col0 FROM tab2
----
161
1794
1817

query I rowsort
SELECT + ( col0 + col1 * ( + col2 ) ) AS col0 FROM tab1
----
1328
1407
634

query I rowsort
SELECT ALL 52 - col2 AS col0 FROM tab0
----
-30
19
51

query I rowsort
SELECT ALL - tab1.col2 * col1 - col1 AS col1 FROM tab1
----
-1261
-1430
-580

query I rowsort
SELECT ALL + ( - ( - tab2.col1 ) ) - + 9 AS col2 FROM tab2
----
22
50
8

skipif mysql # not compatible
query I rowsort
SELECT ALL - ( - col2 * CAST ( - col2 AS REAL ) ) + + tab2.col2 FROM tab2
----
-1406
-650
-702

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3913
SELECT - col1 + - col0 * CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3913
SELECT - col1 + - col0 * CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - + 42 * col1 FROM tab2 AS cor0
----
-1302
-2478
-714

query I rowsort
SELECT DISTINCT 38 * + col0 AS col1 FROM tab1 AS cor0
----
114
2432
3040

query I rowsort
SELECT ALL - + cor0.col1 * + col2 * 55 AS col1 FROM tab2 AS cor0
----
-35530
-46035
-84370

query I rowsort
SELECT DISTINCT - cor0.col0 FROM tab0, tab2 AS cor0
----
-7
-78
-79

query I rowsort
SELECT + - col2 - col0 * + ( 52 ) FROM tab1 AS cor0
----
-210
-3385
-4256

query I rowsort
SELECT 67 * col0 FROM tab1
----
201
4288
5360

query I rowsort
SELECT ALL + - col1 * + cor0.col0 * cor0.col2 FROM tab1 AS cor0
----
-36480
-4212
-99840

query I rowsort
SELECT + ( col0 ) * ( - cor0.col1 ) + col1 FROM tab1 AS cor0
----
-1027
-52
-630

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col2 col1 FROM tab2 cor0
----
-26
-27
-38

query I rowsort
SELECT DISTINCT - 36 + col2 AS col0 FROM tab0 AS cor0
----
-3
-35
46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 89 + col0 * cor0.col0 col0 FROM tab0 AS cor0
----
1314
665
8010

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3925
SELECT CAST( 50 AS SIGNED ) AS col1 FROM tab1
----
50
50
50

skipif mysql # not compatible
query I rowsort label-3925
SELECT CAST ( 50 AS INTEGER ) AS col1 FROM tab1
----
50
50
50

query I rowsort
SELECT ALL + ( + col2 ) * - col2 - - ( col0 ) AS col0 FROM tab0
----
-1065
-6635
34

onlyif mysql # use DIV operator for integer division
query I rowsort label-3927
SELECT CAST( col1 AS SIGNED ) DIV col1 AS col1 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3927
SELECT CAST ( col1 AS INTEGER ) / col1 AS col1 FROM tab1
----
1
1
1

query IIIIIIIII rowsort
SELECT * FROM tab2, tab1, tab0 cor0 WHERE NULL = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 96 col1 FROM tab0
----
-96
-96
-96

query I rowsort
SELECT 61 AS col1 FROM tab0 cor0
----
61
61
61

onlyif mysql # use DIV operator for integer division
query I rowsort label-3931
SELECT DISTINCT - CAST( col0 AS SIGNED ) + col2 * col0 + 6 DIV + col0 AS col1 FROM tab2 AS cor0
----
182
1950
2923

skipif mysql # not compatible
query I rowsort label-3931
SELECT DISTINCT - CAST ( col0 AS INTEGER ) + col2 * col0 + 6 / + col0 AS col1 FROM tab2 AS cor0
----
182
1950
2923

query I rowsort
SELECT ALL 77 AS col1 FROM tab2, tab0 AS cor0, tab1 cor1, tab1 AS cor2
----
81 values hashing to 38f487c2147ee2fe05527e38c5e0503b

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3933
SELECT DISTINCT + CAST( ( col2 - + 59 ) AS SIGNED ) + 86 + col0 FROM tab2 AS cor0
----
131
144
61

skipif mysql # not compatible
query I rowsort label-3933
SELECT DISTINCT + CAST ( ( col2 - + 59 ) AS INTEGER ) + 86 + col0 FROM tab2 AS cor0
----
131
144
61

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 col0 FROM tab0 cor0
----
-86
-91
-97

query I rowsort
SELECT cor0.col0 * + cor0.col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 815fccd4c3d372b28d3f3fb103025775

query I rowsort
SELECT + cor1.col0 AS col0 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f

query I rowsort
SELECT DISTINCT + 38 * col0 * tab1.col1 AS col1 FROM tab1
----
24320
2964
39520

query I rowsort
SELECT DISTINCT - + ( col1 ) + col2 * col1 AS col2 FROM tab0 AS cor0
----
0
2752
7371

query I rowsort
SELECT - + 99 AS col1 FROM tab1 AS cor0
----
-99
-99
-99

onlyif mysql # use DIV operator for integer division
query I rowsort label-3940
SELECT DISTINCT 1 DIV col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3940
SELECT DISTINCT 1 / col2 FROM tab1 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + col2 - + col1 col2 FROM tab1 cor0
----
1235
1378
560

query I rowsort
SELECT DISTINCT col1 * col0 + - 16 * col1 * - col0 FROM tab1 AS cor0
----
10880
1326
17680

query I rowsort
SELECT ALL cor0.col2 + col1 * + col1 AS col2 FROM tab1 AS cor0
----
157
265
730

query I rowsort
SELECT DISTINCT + 43 + + cor0.col2 * 31 AS col0 FROM tab2 cor0
----
1221
849
880

query I rowsort
SELECT ALL + 28 * col0 + tab2.col2 FROM tab2
----
2210
223
2250

query I rowsort
SELECT DISTINCT col1 * + cor0.col0 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT DISTINCT + ( cor0.col2 ) * - col1 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT ( - col0 ) + + col2 * col0 - + col1 AS col0 FROM tab1 AS cor0
----
133
3574
7587

query I rowsort
SELECT DISTINCT col2 + + col2 * + 22 AS col0 FROM tab0 AS cor0
----
1886
23
759

query I rowsort
SELECT - col1 - - col2 AS col1 FROM tab0 AS cor0
----
-53
-9
-96

query I rowsort
SELECT ALL col0 * - col1 AS col0 FROM tab1 cor0
----
-1040
-640
-78

query I rowsort
SELECT - + col0 * col2 + ( 78 ) AS col2 FROM tab1 AS cor0
----
-3570
-7602
-84

onlyif mysql # use DIV operator for integer division
query I rowsort label-3953
SELECT 6 DIV 98 AS col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3953
SELECT 6 / 98 AS col0 FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT + 43 - - col2 FROM tab0 AS cor0
----
125
44
76

query I rowsort
SELECT + - col2 * - col2 + 66 FROM tab1 cor0
----
2982
3315
9282

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col2 col1 FROM tab1 AS cor0
----
-54
-57
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 81 - - col2 col1 FROM tab0 AS cor0
----
114
163
82

query I rowsort
SELECT ALL 66 FROM tab1 AS cor0
----
66
66
66

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3959
SELECT DISTINCT - col1 / - col2 + + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3959
SELECT DISTINCT - col1 / - col2 + + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( col0 ) * col1 + + 9 col0 FROM tab0 AS cor0
----
-2055
-3386
-8090

onlyif mysql # use DIV operator for integer division
query I rowsort label-3961
SELECT DISTINCT - 15 * col1 DIV col1 AS col2 FROM tab1 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-3961
SELECT DISTINCT - 15 * col1 / col1 AS col2 FROM tab1 AS cor0
----
-15

query I rowsort
SELECT + - 78 * - col0 - 74 * col1 FROM tab0 AS cor0
----
-4448
-4492
208

query I rowsort
SELECT - + col0 * + col1 FROM tab0 cor0
----
-2064
-3395
-8099

query I rowsort
SELECT col1 * 13 AS col2 FROM tab0 AS cor0
----
1118
1183
1261

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 I rowsort
SELECT - col1 * + col2 + 61 AS col1 FROM tab2 cor0
----
-1473
-585
-776

query I rowsort
SELECT + + col0 * 88 * - 82 FROM tab0 AS cor0
----
-173184
-252560
-642224

query I rowsort
SELECT - col0 * col2 * + col1 + + col0 FROM tab1 AS cor0
----
-36416
-4209
-99760

query I rowsort
SELECT DISTINCT + + col2 * col2 + + col2 AS col2 FROM tab0 AS cor0
----
1122
2
6806

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col1 + - col1 col2 FROM tab0 AS cor0
----
-172
-182
-194

query I rowsort
SELECT - col0 * + col2 AS col2 FROM tab2 cor0
----
-189
-2028
-3002

query I rowsort
SELECT DISTINCT col2 + ( cor0.col0 ) FROM tab2 AS cor0
----
104
117
34

query I rowsort
SELECT DISTINCT - + col0 * cor0.col0 * col0 FROM tab0 cor0
----
-13824
-42875
-704969

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + ( 44 ) col0 FROM tab0 cor0
----
130
135
141

query I rowsort
SELECT - cor0.col2 + - col1 * col0 FROM tab1 AS cor0
----
-1136
-132
-697

query I rowsort
SELECT DISTINCT - col1 * + ( - ( - col0 ) ) FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT DISTINCT - col1 + 12 * col1 FROM tab0 AS cor0
----
1001
1067
946

query I rowsort
SELECT ALL + + col0 * + col2 AS col0 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT ALL - col0 + 99 FROM tab0 AS cor0
----
10
64
75

query I rowsort
SELECT ALL - + col1 * + ( + col2 ) * col1 AS col0 FROM tab1 AS cor0
----
-16224
-36504
-5700

query I rowsort
SELECT DISTINCT col1 + ( + col2 ) + - col1 FROM tab2 AS cor0
----
26
27
38

query I rowsort
SELECT ( + cor0.col2 ) FROM tab0, tab1 AS cor0
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17

query I rowsort
SELECT DISTINCT - 9 * 15 AS col2 FROM tab1 AS cor0
----
-135

onlyif mysql # use DIV operator for integer division
query I rowsort label-3984
SELECT DISTINCT - cor0.col0 + 26 DIV + col1 - + 2 * col1 * + col2 AS col2 FROM tab0 AS cor0
----
-15013
-229
-5700

skipif mysql # not compatible
query I rowsort label-3984
SELECT DISTINCT - cor0.col0 + 26 / + col1 - + 2 * col1 * + col2 AS col2 FROM tab0 AS cor0
----
-15013
-229
-5700

query I rowsort
SELECT ALL + 12 * col1 AS col0 FROM tab0 cor0
----
1032
1092
1164

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3986
SELECT DISTINCT + - CAST( - 40 AS SIGNED ) + col0 AS col1 FROM tab2 AS cor0
----
118
119
47

skipif mysql # not compatible
query I rowsort label-3986
SELECT DISTINCT + - CAST ( - 40 AS INTEGER ) + col0 AS col1 FROM tab2 AS cor0
----
118
119
47

query I rowsort
SELECT ALL + ( col0 ) * + col1 + ( ( + col2 ) ) + 11 FROM tab1 AS cor0
----
1147
143
708

query I rowsort
SELECT - cor0.col1 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to c7890469eabb2c6fc81454b35d2333b6

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3989
SELECT DISTINCT - col1 * + col1 - col0 * CAST( NULL AS DECIMAL ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3989
SELECT DISTINCT - col1 * + col1 - col0 * CAST ( NULL AS REAL ) AS col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT - - 12 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to d4f5a8e032294c3b9342821617800972

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1 cor0 CROSS JOIN tab0, tab2 AS cor1, tab1 AS cor2, tab1 AS cor3
----
3645 values hashing to 160649b428b8d254517cd2096e054d21

query I rowsort
SELECT col2 + ( - 4 ) FROM tab0
----
-3
29
78

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab2, tab1 AS cor1, tab1, tab0 AS cor2
----
3645 values hashing to 3b4587ab6c08d2179c6df094d2f76ad7

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1, tab1 AS cor1, tab0 AS cor2, tab1 AS cor3
----
3645 values hashing to 9044210e7dc2a764fe944d925f222728

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col2 + col0 col1 FROM tab2 AS cor0
----
104
117
34

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3996
SELECT ALL CAST( NULL AS SIGNED ) + 66 * col1 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3996
SELECT ALL CAST ( NULL AS INTEGER ) + 66 * col1 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - ( - col1 ) + - col0 * cor0.col0 FROM tab1 AS cor0
----
-4086
-6387
17

query I rowsort
SELECT + + 33 * + col1 FROM tab0 AS cor0
----
2838
3003
3201

query I rowsort
SELECT + col1 + 70 FROM tab1 AS cor0
----
80
83
96

query I rowsort
SELECT + 29 + + col2 AS col0 FROM tab1 AS cor0
----
125
83
86

query I rowsort
SELECT ALL + + col1 + + 46 * cor0.col1 FROM tab2 AS cor0
----
1457
2773
799

query I rowsort
SELECT DISTINCT + 32 FROM tab0 cor0
----
32

onlyif mysql # use DIV operator for integer division
query I rowsort label-4003
SELECT ALL + ( + 28 ) DIV col1 AS col1 FROM tab1 AS cor0
----
1
2
2

skipif mysql # not compatible
query I rowsort label-4003
SELECT ALL + ( + 28 ) / col1 AS col1 FROM tab1 AS cor0
----
1
2
2

query I rowsort
SELECT DISTINCT - ( col1 ) * col2 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT col0 + - col0 AS col1 FROM tab2
----
0
0
0

query I rowsort
SELECT - - col2 + ( + col2 ) + col0 AS col2 FROM tab2 AS cor0
----
130
155
61

query I rowsort
SELECT + ( + cor0.col1 ) * ( - col0 ) AS col0 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT 99 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 4b77467dd5f346109d29f6364a7bb8db

onlyif mysql # use DIV operator for integer division
query I rowsort label-4009
SELECT col2 + col1 DIV - col0 col1 FROM tab2
----
23
26
38

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4009
SELECT col2 + col1 / - col0 col1 FROM tab2
----
23
26
38

query I rowsort
SELECT - col0 + - col1 * + col0 + + col2 FROM tab1 AS cor0
----
-1024
-27
-647

onlyif mysql # use DIV operator for integer division
query I rowsort label-4011
SELECT + - cor0.col0 DIV - ( + col1 ) AS col1 FROM tab1 AS cor0
----
0
6
6

skipif mysql # not compatible
query I rowsort label-4011
SELECT + - cor0.col0 / - ( + col1 ) AS col1 FROM tab1 AS cor0
----
0
6
6

query I rowsort
SELECT ( tab2.col2 ) + col2 + - col2 AS col2 FROM tab2
----
26
27
38

query I rowsort
SELECT ALL col1 * + col2 + col1 + + col0 FROM tab0
----
229
2948
7642

query I rowsort
SELECT ALL + tab1.col0 + col0 * + col0 FROM tab1
----
12
4160
6480

query I rowsort
SELECT ALL col0 * + col1 AS col2 FROM tab1
----
1040
640
78

query I rowsort
SELECT DISTINCT tab2.col2 AS col1 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
26
27
38

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4017
SELECT DISTINCT CAST( NULL AS DECIMAL ) AS col1 FROM tab2, tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4017
SELECT DISTINCT CAST ( NULL AS REAL ) AS col1 FROM tab2, tab2 AS cor0
----
NULL

query I rowsort
SELECT + col0 + + col1 * - col1 AS col0 FROM tab2 cor0
----
-210
-3403
-954

query I rowsort
SELECT DISTINCT - col0 * + 37 FROM tab2 AS cor0
----
-259
-2886
-2923

query I rowsort
SELECT col0 * - 24 * col2 FROM tab0
----
-175152
-19008
-840

query I rowsort
SELECT DISTINCT - col2 + + ( 94 ) FROM tab2 AS cor0
----
56
67
68

query I rowsort
SELECT ALL + col0 * 48 AS col0 FROM tab0 AS cor0
----
1152
1680
4272

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4023
SELECT ALL col2 * + CAST( NULL AS SIGNED ) col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4023
SELECT ALL col2 * + CAST ( NULL AS INTEGER ) col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( + col2 ) NOT BETWEEN ( - col2 ) AND ( NULL )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - col0 NOT IN ( + col1 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-4026
SELECT - + col2 DIV + col1 FROM tab1 AS cor0
----
-2
-5
-7

skipif mysql # not compatible
query I rowsort label-4026
SELECT - + col2 / + col1 FROM tab1 AS cor0
----
-2
-5
-7

query I rowsort
SELECT - cor0.col1 + + col2 * cor0.col1 FROM tab1 AS cor0
----
1235
1378
560

onlyif mysql # use DIV operator for integer division
query I rowsort label-4028
SELECT - cor0.col2 + col1 DIV col2 AS col2 FROM tab1 AS cor0
----
-54
-57
-96

skipif mysql # not compatible
query I rowsort label-4028
SELECT - cor0.col2 + col1 / col2 AS col2 FROM tab1 AS cor0
----
-54
-57
-96

onlyif mysql # use DIV operator for integer division
query I rowsort label-4029
SELECT - + col2 DIV col1 + - col1 FROM tab0 AS cor0
----
-86
-91
-97

skipif mysql # not compatible
query I rowsort label-4029
SELECT - + col2 / col1 + - col1 FROM tab0 AS cor0
----
-86
-91
-97

query I rowsort
SELECT ALL + cor0.col0 FROM tab0, tab2, tab1 cor0
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f

query I rowsort
SELECT - col1 + + col0 FROM tab2 cor0
----
-24
19
62

query I rowsort
SELECT DISTINCT - col2 * - col1 AS col0 FROM tab2
----
1534
646
837

query I rowsort
SELECT ALL - col2 * col1 * col0 FROM tab1 WHERE NOT ( NULL ) NOT IN ( + tab1.col0 * col1 ) AND ( col0 ) BETWEEN col2 / col1 AND ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col1 col2 FROM tab0 cor0
----
-86
-91
-97

query I rowsort
SELECT - cor0.col0 * cor0.col1 * cor0.col2 + - col1 AS col0 FROM tab0 AS cor0
----
-3492
-664209
-68198

query I rowsort
SELECT ALL + 90 + col1 * - ( col2 ) AS col1 FROM tab2 AS cor0
----
-1444
-556
-747

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4037
SELECT - cor0.col1 * + cor0.col1 + + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4037
SELECT - cor0.col1 * + cor0.col1 + + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-4038
SELECT ALL - - col2 DIV col2 FROM tab0 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4038
SELECT ALL - - col2 / col2 FROM tab0 cor0
----
1
1
1

query I rowsort
SELECT - ( col0 ) * ( 27 + col0 ) AS col2 FROM tab2 AS cor0
----
-238
-8190
-8374

query III rowsort
SELECT * FROM tab0 WHERE NOT ( col1 * + tab0.col2 ) BETWEEN - col0 AND - col1
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7

query I rowsort
SELECT DISTINCT - + cor0.col2 AS col2 FROM tab2 cor0
----
-26
-27
-38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * col2 + + col1 col2 FROM tab2 AS cor0
----
2087
220
3019

onlyif mysql # use DIV operator for integer division
query I rowsort label-4043
SELECT - col1 * - col1 DIV + col1 + col0 * + col2 * + col1 FROM tab0
----
3492
664209
68198

skipif mysql # not compatible
query I rowsort label-4043
SELECT - col1 * - col1 / + col1 + col0 * + col2 * + col1 FROM tab0
----
3492
664209
68198

query I rowsort
SELECT ALL tab2.col0 + - tab2.col0 FROM tab2
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-4045
SELECT ALL - col1 * col1 DIV + 62 + + col0 AS col1 FROM tab0
----
-116
-44
-95

skipif mysql # not compatible
query I rowsort label-4045
SELECT ALL - col1 * col1 / + 62 + + col0 AS col1 FROM tab0
----
-116
-44
-95

query I rowsort
SELECT + tab1.col2 + + col0 * col1 + col0 * col2 AS col0 FROM tab1
----
294
4345
8816

query I rowsort
SELECT + 72 + - col2 - - col0 FROM tab2
----
113
124
52

query I rowsort
SELECT col1 - tab2.col0 AS col0 FROM tab2
----
-19
-62
24

query I rowsort
SELECT 37 AS col2 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to c023509f63faa044d654943e6df55ca2

query I rowsort
SELECT DISTINCT - col0 + - col2 AS col1 FROM tab0
----
-171
-36
-57

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4051
SELECT DISTINCT col2 * - col0 + CAST( NULL AS SIGNED ) / + ( col0 * col2 ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4051
SELECT DISTINCT col2 * - col0 + CAST ( NULL AS INTEGER ) / + ( col0 * col2 ) FROM tab1
----
NULL

query I rowsort
SELECT + col1 - - col2 * - tab0.col0 AS col1 FROM tab0
----
-706
-7207
62

query I rowsort
SELECT ALL col1 * - col2 + + col0 * col2 AS col2 FROM tab1
----
-1242
3078
6432

query I rowsort
SELECT DISTINCT + col1 + + tab0.col2 FROM tab0
----
119
173
98

query I rowsort
SELECT - col2 * tab2.col1 AS col2 FROM tab2
----
-1534
-646
-837

query I rowsort
SELECT - col0 FROM tab0 WHERE NOT NULL NOT IN ( - col0 )
----

query I rowsort
SELECT DISTINCT - tab2.col0 + col2 * - col0 FROM tab2
----
-196
-2106
-3081

onlyif mysql # use DIV operator for integer division
query I rowsort label-4058
SELECT col0 DIV col1 AS col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4058
SELECT col0 / col1 AS col1 FROM tab0
----
0
0
0

query I rowsort
SELECT + col0 - tab2.col2 * col2 * col2 FROM tab2
----
-17498
-19676
-54793

query I rowsort
SELECT DISTINCT - col0 * + col0 * col0 + col0 FROM tab1
----
-24
-262080
-511920

query I rowsort
SELECT ALL + tab2.col2 + + col1 AS col2 FROM tab2
----
55
58
85

onlyif mysql # use DIV operator for integer division
query I rowsort label-4062
SELECT DISTINCT col2 DIV tab1.col2 AS col0 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-4062
SELECT DISTINCT col2 / tab1.col2 AS col0 FROM tab1
----
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-4063
SELECT DISTINCT tab2.col2 DIV - col1 FROM tab2
----
-2
0

skipif mysql # not compatible
query I rowsort label-4063
SELECT DISTINCT tab2.col2 / - col1 FROM tab2
----
-2
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-4064
SELECT ALL col1 DIV - col0 FROM tab2
----
-4
0
0

skipif mysql # not compatible
query I rowsort label-4064
SELECT ALL col1 / - col0 FROM tab2
----
-4
0
0

query I rowsort
SELECT ALL - col1 + + col2 * tab1.col0 - - col2 FROM tab1
----
190
3695
7763

onlyif mysql # use DIV operator for integer division
query I rowsort label-4066
SELECT ALL - col1 DIV - col0 FROM tab2
----
0
0
4

skipif mysql # not compatible
query I rowsort label-4066
SELECT ALL - col1 / - col0 FROM tab2
----
0
0
4

onlyif mysql # use DIV operator for integer division
query I rowsort label-4067
SELECT ALL col0 DIV col1 AS col2 FROM tab2
----
0
1
4

skipif mysql # not compatible
query I rowsort label-4067
SELECT ALL col0 / col1 AS col2 FROM tab2
----
0
1
4

onlyif mysql # use DIV operator for integer division
query I rowsort label-4068
SELECT + col0 DIV + tab1.col2 AS col0 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-4068
SELECT + col0 / + tab1.col2 AS col0 FROM tab1
----
0
0
1

query I rowsort
SELECT tab0.col0 + tab0.col1 * tab0.col1 + col1 FROM tab0
----
7506
8461
9541

query I rowsort
SELECT DISTINCT col2 * tab2.col2 AS col2 FROM tab2
----
1444
676
729

query I rowsort
SELECT + col1 * col0 + - col2 FROM tab0
----
2031
3394
8017

query III rowsort
SELECT * FROM tab0 WHERE NULL IN ( tab0.col1 / col2 )
----

query I rowsort
SELECT DISTINCT + tab0.col2 * col2 FROM tab0
----
1
1089
6724

query I rowsort
SELECT DISTINCT - col0 * col2 FROM tab1
----
-162
-3648
-7680

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT IN ( tab1.col1 )
----

query I rowsort
SELECT - col1 * tab1.col1 + col1 FROM tab1
----
-156
-650
-90

onlyif mysql # use DIV operator for integer division
query I rowsort label-4077
SELECT col2 DIV col0 + + col0 FROM tab2
----
10
78
79

skipif mysql # not compatible
query I rowsort label-4077
SELECT col2 / col0 + + col0 FROM tab2
----
10
78
79

query I rowsort
SELECT col0 FROM tab0 WHERE NOT NULL IN ( - col2 + col2 / col2 )
----

query I rowsort
SELECT ALL + tab1.col0 + col1 - + tab1.col2 AS col2 FROM tab1
----
-25
-3
17

query I rowsort
SELECT DISTINCT - col0 FROM tab0 WHERE NOT NULL IN ( col0 )
----

query I rowsort
SELECT - col0 * + col0 AS col0 FROM tab2
----
-49
-6084
-6241

onlyif mysql # use DIV operator for integer division
query I rowsort label-4082
SELECT - col0 DIV + col2 FROM tab0 AS cor0
----
-1
-35
0

skipif mysql # not compatible
query I rowsort label-4082
SELECT - col0 / + col2 FROM tab0 AS cor0
----
-1
-35
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * + col2 + col2 col2 FROM tab0 AS cor0
----
1122
2
6806

query I rowsort
SELECT - col2 + + ( col2 ) AS col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT + + col2 * ( 98 ) FROM tab0 AS cor0
----
3234
8036
98

query I rowsort
SELECT DISTINCT 54 FROM tab0, tab0 cor0
----
54

query I rowsort
SELECT ALL col0 * 8 AS col0 FROM tab0 AS cor0
----
192
280
712

query I rowsort
SELECT ALL + col1 * col2 AS col2 FROM tab2
----
1534
646
837

query I rowsort
SELECT ALL + tab0.col2 * - col0 AS col2 FROM tab0
----
-35
-7298
-792

query I rowsort
SELECT DISTINCT - col0 + ( col0 ) AS col0 FROM tab0 AS cor0
----
0

query I rowsort
SELECT DISTINCT + col1 - - cor0.col2 * col1 FROM tab0 AS cor0
----
194
2924
7553

onlyif mysql # use DIV operator for integer division
query I rowsort label-4092
SELECT ALL col1 DIV 3 + - col0 * - col0 col2 FROM tab1 AS cor0
----
17
4099
6404

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4092
SELECT ALL col1 / 3 + - col0 * - col0 col2 FROM tab1 AS cor0
----
17
4099
6404

query I rowsort
SELECT DISTINCT + cor0.col1 + - col0 - cor0.col1 AS col2 FROM tab2 AS cor0
----
-7
-78
-79

query I rowsort
SELECT col1 * col0 + col0 * col0 AS col2 FROM tab2
----
10686
266
7584

query I rowsort
SELECT ALL + tab0.col0 * col1 FROM tab0
----
2064
3395
8099

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4096
SELECT ALL 22 + - tab2.col1 * - tab2.col2 * CAST( NULL AS SIGNED ) + ( - col2 ) * + CAST( col1 AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4096
SELECT ALL 22 + - tab2.col1 * - tab2.col2 * CAST ( NULL AS INTEGER ) + ( - col2 ) * + CAST ( col1 AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT + 36 AS col0 FROM tab2, tab0, tab1 AS cor0
----
27 values hashing to 4d1892e880125dc90345721151acb22c

query I rowsort
SELECT 3 + - 17 * col1 FROM tab2
----
-1000
-286
-524

query I rowsort
SELECT DISTINCT cor1.col2 AS col1 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
26
27
38

onlyif mysql # use DIV operator for integer division
query I rowsort label-4100
SELECT ALL col1 DIV - col0 + + col1 FROM tab2
----
17
27
59

skipif mysql # not compatible
query I rowsort label-4100
SELECT ALL col1 / - col0 + + col1 FROM tab2
----
17
27
59

query I rowsort
SELECT + 50 + - 56 * col0 FROM tab1
----
-118
-3534
-4430

query I rowsort
SELECT DISTINCT - 77 AS col2 FROM tab1 AS cor0
----
-77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 - - col0 col1 FROM tab2 AS cor0
----
-24
19
62

query I rowsort
SELECT ALL + cor0.col0 * col1 AS col1 FROM tab2 AS cor0
----
1343
217
4602

query IIIIIIIIIIII rowsort
SELECT * FROM tab1, tab1 cor0, tab2 AS cor1, tab0 AS cor2
----
972 values hashing to 95de14c88adc44eda4adb5267fe9ebd1

query I rowsort
SELECT DISTINCT - 80 + col0 AS col1 FROM tab0
----
-45
-56
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + + 63 col1 FROM tab0
----
149
154
160

query I rowsort
SELECT ALL 59 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to a9b9966d749d1b2ce5955ed12394f9bc

query I rowsort
SELECT DISTINCT + 29 + tab1.col2 AS col0 FROM tab1
----
125
83
86

query I rowsort
SELECT DISTINCT ( 13 * - col1 ) + 70 AS col1 FROM tab1
----
-268
-60
-99

query I rowsort
SELECT DISTINCT tab2.col0 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
7
78
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 7 * + col1 col0 FROM tab0
----
602
637
679

query I rowsort
SELECT 21 * ( col2 ) + - col1 FROM tab2
----
487
536
781

query I rowsort
SELECT ALL + - col2 * + col1 * + col2 FROM tab0 AS cor0
----
-611884
-93654
-97

query I rowsort
SELECT DISTINCT cor0.col0 AS col0 FROM tab2 cor0
----
7
78
79

onlyif mysql # use DIV operator for integer division
query I rowsort label-4116
SELECT + - ( + col0 ) DIV - CAST( 1 AS SIGNED ) + + col0 + + ( + col0 + - cor0.col1 * col2 ) AS col0 FROM tab0 AS cor0
----
-2766
-7195
8

skipif mysql # not compatible
query I rowsort label-4116
SELECT + - ( + col0 ) / - CAST ( 1 AS INTEGER ) + + col0 + + ( + col0 + - cor0.col1 * col2 ) AS col0 FROM tab0 AS cor0
----
-2766
-7195
8

query I rowsort
SELECT ALL 44 * col2 FROM tab2 AS cor0
----
1144
1188
1672

query I rowsort
SELECT - col1 + - col1 AS col1 FROM tab0 cor0
----
-172
-182
-194

query I rowsort
SELECT DISTINCT - - ( - col2 ) + col0 * cor0.col0 + + col1 * + col2 FROM tab2 AS cor0
----
6849
7592
859

query I rowsort
SELECT DISTINCT + + 70 AS col0 FROM tab0 AS cor0
----
70

query I rowsort
SELECT ALL - - col2 * col1 + cor0.col2 * - col0 AS col1 FROM tab2 AS cor0
----
-2356
-494
648

query I rowsort
SELECT ALL - 97 * col2 FROM tab2 AS cor0
----
-2522
-2619
-3686

query I rowsort
SELECT - + 47 * - cor0.col2 FROM tab0 AS cor0
----
1551
3854
47

query I rowsort
SELECT DISTINCT 19 FROM tab2 AS cor0
----
19

query I rowsort
SELECT - col0 + col2 * col1 * - cor0.col1 + col0 FROM tab1 cor0
----
-16224
-36504
-5700

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4126
SELECT + + col0 * + col0 * + CAST( + col0 AS SIGNED ) FROM tab2 AS cor0
----
343
474552
493039

skipif mysql # not compatible
query I rowsort label-4126
SELECT + + col0 * + col0 * + CAST ( + col0 AS INTEGER ) FROM tab2 AS cor0
----
343
474552
493039

query I rowsort
SELECT ALL - + 31 FROM tab1 AS cor0
----
-31
-31
-31

query I rowsort
SELECT - col2 + - cor0.col0 + col2 * + col0 AS col2 FROM tab2 AS cor0
----
155
1924
2885

query I rowsort
SELECT ALL 71 + col1 FROM tab0 cor0
----
157
162
168

query I rowsort
SELECT DISTINCT col1 + col2 * 56 * + col2 AS col0 FROM tab0 AS cor0
----
153
376635
61070

query I rowsort
SELECT DISTINCT - - 67 * col1 + - col0 * + col1 FROM tab0 AS cor0
----
-2002
3104
3698

query I rowsort
SELECT ALL col2 * - col1 + 86 AS col2 FROM tab0 AS cor0
----
-11
-2752
-7376

onlyif mysql # use DIV operator for integer division
query I rowsort label-4133
SELECT - 68 + col1 DIV - col0 FROM tab2 AS cor0
----
-68
-68
-72

skipif mysql # not compatible
query I rowsort label-4133
SELECT - 68 + col1 / - col0 FROM tab2 AS cor0
----
-68
-68
-72

onlyif mysql # use DIV operator for integer division
query I rowsort label-4134
SELECT - - 63 + col2 * col2 DIV col0 + - col2 * 48 * + col0 AS col0 FROM tab0 AS cor0
----
-1617
-350166
-37908

skipif mysql # not compatible
query I rowsort label-4134
SELECT - - 63 + col2 * col2 / col0 + - col2 * 48 * + col0 AS col0 FROM tab0 AS cor0
----
-1617
-350166
-37908

query I rowsort
SELECT ALL - 7 AS col0 FROM tab2 AS cor0
----
-7
-7
-7

query I rowsort
SELECT DISTINCT - col2 + col2 + - ( col0 ) FROM tab2 cor0
----
-7
-78
-79

query I rowsort
SELECT + cor0.col0 + col0 * + 0 FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT DISTINCT - - cor0.col0 * col1 AS col1 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT ( - col2 * ( + col0 ) ) FROM tab0
----
-35
-7298
-792

onlyif mysql # use DIV operator for integer division
query I rowsort label-4140
SELECT DISTINCT cor0.col0 DIV + 58 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
0
1

skipif mysql # not compatible
query I rowsort label-4140
SELECT DISTINCT cor0.col0 / + 58 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * - col1 col2 FROM tab0
----
-2838
-7462
-97

query I rowsort
SELECT ALL col0 + cor0.col0 * + 59 * ( + col0 + - ( + cor0.col0 ) * - col1 ) AS col1 FROM tab2 AS cor0
----
21537438
6628021
92519

query I rowsort
SELECT col0 * - col0 * col2 AS col1 FROM tab2 AS cor0
----
-1323
-158184
-237158

query I rowsort
SELECT - col1 + + 94 FROM tab1 cor0
----
68
81
84

query I rowsort
SELECT DISTINCT - 10 AS col2 FROM tab2, tab1, tab1 AS cor0
----
-10

query I rowsort
SELECT DISTINCT 35 * col1 FROM tab0
----
3010
3185
3395

query I rowsort
SELECT + + col1 * + 47 + 22 AS col1 FROM tab2 AS cor0
----
1479
2795
821

query I rowsort
SELECT DISTINCT + 86 + - cor0.col0 * + col2 AS col1 FROM tab0 AS cor0
----
-706
-7212
51

query I rowsort
SELECT ALL ( - cor0.col2 ) + - col2 + - col0 * 58 FROM tab0 AS cor0
----
-1458
-2032
-5326

query I rowsort
SELECT - - col1 + col2 AS col0 FROM tab2 AS cor0
----
55
58
85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col0 * + ( + col0 ) col1 FROM tab1 AS cor0
----
4096
6400
9

query I rowsort
SELECT DISTINCT 18 + col2 AS col0 FROM tab1 AS cor0
----
114
72
75

query I rowsort
SELECT + 88 FROM tab0 cor0
----
88
88
88

query I rowsort
SELECT + - ( + ( col0 ) ) AS col1 FROM tab1 AS cor0
----
-3
-64
-80

query I rowsort
SELECT ALL - - 15 * - 31 * col1 - cor0.col1 * - cor0.col2 FROM tab2 cor0
----
-13578
-25901
-7259

query I rowsort
SELECT DISTINCT ( - col0 ) FROM tab0 AS cor0
----
-24
-35
-89

query I rowsort
SELECT 8 AS col0 FROM tab1
----
8
8
8

query I rowsort
SELECT 15 * 98 + col1 FROM tab2 AS cor0
----
1487
1501
1529

query I rowsort
SELECT ALL ( + 66 ) + col2 * - cor0.col0 AS col2 FROM tab1 AS cor0
----
-3582
-7614
-96

query I rowsort
SELECT DISTINCT - + 11 * - col2 + col0 AS col1 FROM tab1 AS cor0
----
1136
597
691

query I rowsort
SELECT - ( + col1 ) * - col0 FROM tab0 AS cor0
----
2064
3395
8099

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 + - col1 col1 FROM tab1 AS cor0
----
-20
-26
-52

query I rowsort
SELECT - col1 * - ( col1 ) + - tab1.col1 FROM tab1
----
156
650
90

query I rowsort
SELECT DISTINCT - 44 FROM tab1 AS cor0
----
-44

query I rowsort
SELECT ALL col2 * col2 AS col0 FROM tab1 AS cor0
----
2916
3249
9216

query I rowsort
SELECT - 14 - - 51 FROM tab0 cor0
----
37
37
37

query I rowsort
SELECT + - 32 * col2 + col1 FROM tab0 AS cor0
----
-2533
-970
65

query I rowsort
SELECT + 74 + + col0 AS col0 FROM tab1 AS cor0
----
138
154
77

query I rowsort
SELECT + col1 * col1 + + col0 AS col2 FROM tab1 AS cor0
----
164
249
679

query I rowsort
SELECT + - 74 AS col0 FROM tab2 AS cor0
----
-74
-74
-74

query I rowsort
SELECT ALL + 78 + col2 * - col0 AS col0 FROM tab2
----
-111
-1950
-2924

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab1 AS cor0 CROSS JOIN tab1, tab2 cor1
----
972 values hashing to 01a5931cccc3dad8792a1bc6df09c614

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 17 col2 FROM tab0 AS cor0
----
-17
-17
-17

query I rowsort
SELECT ALL - 95 FROM tab2 cor0
----
-95
-95
-95

skipif mysql # not compatible
query I rowsort
SELECT + - CAST ( col0 AS REAL ) * - col2 + col1 FROM tab2 AS cor0
----
2087
220
3019

query I rowsort
SELECT ALL + 90 AS col1 FROM tab0 AS cor0
----
90
90
90

query I rowsort
SELECT - col1 * + 19 FROM tab0 AS cor0
----
-1634
-1729
-1843

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 95 * col1 col1 FROM tab1 AS cor0
----
-1235
-2470
-950

query I rowsort
SELECT col1 * - 92 AS col2 FROM tab0
----
-7912
-8372
-8924

query I rowsort
SELECT + 39 + 91 AS col2 FROM tab2, tab0, tab1 AS cor0, tab1 AS cor1
----
81 values hashing to 1d2ec5dcb2862d059e78592900439050

query I rowsort
SELECT ALL 80 FROM tab2, tab1 AS cor0
----
9 values hashing to 878f012d707aab113cedaf56e6c52e94

query I rowsort
SELECT 45 * - 80 - + col0 FROM tab1
----
-3603
-3664
-3680

query I rowsort
SELECT - col2 * + ( - col2 * ( col1 ) ) + col1 AS col1 FROM tab1 AS cor0
----
119821
32500
75842

query I rowsort
SELECT - 58 + col0 AS col0 FROM tab0 AS cor0
----
-23
-34
31

query I rowsort
SELECT + col0 * + col2 AS col1 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT + - col0 + + col1 + col1 * + col1 FROM tab0 cor0
----
7458
8283
9471

onlyif mysql # use DIV operator for integer division
query I rowsort label-4187
SELECT DISTINCT col2 * col0 DIV + col0 AS col2 FROM tab0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-4187
SELECT DISTINCT col2 * col0 / + col0 AS col2 FROM tab0
----
1
33
82

query I rowsort
SELECT - + cor1.col0 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 09d8a912de1b8ab762e5ffbe028ce99e

query I rowsort
SELECT + + 67 + col1 * cor0.col2 FROM tab2 cor0
----
1601
713
904

query I rowsort
SELECT - + col0 * + col1 FROM tab1 cor0
----
-1040
-640
-78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * col0 col2 FROM tab0 AS cor0
----
35
7298
792

onlyif mysql # use DIV operator for integer division
query I rowsort label-4192
SELECT ALL + tab0.col2 DIV 12 - 48 FROM tab0
----
-42
-46
-48

skipif mysql # not compatible
query I rowsort label-4192
SELECT ALL + tab0.col2 / 12 - 48 FROM tab0
----
-42
-46
-48

query I rowsort
SELECT ALL + col2 + - col2 - + tab2.col1 FROM tab2
----
-17
-31
-59

query I rowsort
SELECT col2 * cor0.col1 + - cor0.col0 AS col0 FROM tab1 AS cor0
----
1168
1401
506

query I rowsort
SELECT - col0 + - col0 + col1 AS col0 FROM tab0
----
-87
27
38

query I rowsort
SELECT ALL - col2 - + col1 * - ( col1 ) * + col0 FROM tab1 AS cor0
----
13424
1974
6343

query I rowsort
SELECT col1 + - cor0.col0 FROM tab0 AS cor0
----
2
62
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + ( - 3 ) * col2 col2 FROM tab1 cor0
----
-216
-228
-384

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col1 + col1 * 76 col0 FROM tab1 AS cor0
----
1001
2002
770

query I rowsort
SELECT DISTINCT col2 + - col2 * - 61 AS col2 FROM tab1 AS cor0
----
3348
3534
5952

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4201
SELECT DISTINCT col2 + CAST( - 73 AS SIGNED ) + col2 FROM tab2 cor0
----
-19
-21
3

skipif mysql # not compatible
query I rowsort label-4201
SELECT DISTINCT col2 + CAST ( - 73 AS INTEGER ) + col2 FROM tab2 cor0
----
-19
-21
3

query I rowsort
SELECT + + col2 * + 98 AS col0 FROM tab0 cor0
----
3234
8036
98

query I rowsort
SELECT DISTINCT + col1 + - ( + 5 ) * + col2 FROM tab2 AS cor0
----
-104
-173
-71

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col1 * col2 - 69 col2 FROM tab0 AS cor0
----
-166
-2907
-7531

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4205
SELECT ALL cor0.col0 * - CAST( col1 + col2 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-406
-4345
-6630

skipif mysql # not compatible
query I rowsort label-4205
SELECT ALL cor0.col0 * - CAST ( col1 + col2 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-406
-4345
-6630

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * 39 col1 FROM tab2 AS cor0
----
273
3042
3081

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + - 49 col2 FROM tab1 AS cor0
----
47
5
8

query I rowsort
SELECT DISTINCT cor0.col2 AS col2 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
26
27
38

query I rowsort
SELECT DISTINCT + col2 * - 51 * cor0.col0 FROM tab0 AS cor0
----
-1785
-372198
-40392

query I rowsort
SELECT - ( - ( + col0 ) ) FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT DISTINCT - + 61 FROM tab0 AS cor0
----
-61

query I rowsort
SELECT DISTINCT col2 + 51 * - cor0.col1 AS col1 FROM tab2 AS cor0
----
-1554
-2983
-829

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 82 col0 FROM tab2 AS cor0
----
82
82
82

query I rowsort
SELECT - + col2 + - col0 + - cor0.col1 * - ( col2 ) * + cor0.col0 FROM tab2 AS cor0
----
119548
50917
5825

query I rowsort
SELECT + - col0 * - col2 * - col0 AS col1 FROM tab1 cor0
----
-233472
-486
-614400

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + tab1.col1 + 12 - + col0 col2 FROM tab1
----
-42
-55
35

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab1, tab0 cor1, tab2 AS cor2
----
972 values hashing to 591a9a93560839231c038a1e10bd240a

query I rowsort
SELECT DISTINCT col1 * 39 + col2 AS col2 FROM tab2 cor0
----
1236
2327
701

query I rowsort
SELECT ALL + col2 * col0 * - col0 FROM tab2 AS cor0
----
-1323
-158184
-237158

query IIIIIIIIIIII rowsort
SELECT * FROM tab1, tab2 AS cor0, tab2 AS cor1, tab2 cor2
----
972 values hashing to 163d7732097d78f1cda7f65c2cea5a08

query I rowsort
SELECT ALL + - col1 * - 65 FROM tab1 AS cor0
----
1690
650
845

onlyif mysql # use DIV operator for integer division
query I rowsort label-4222
SELECT DISTINCT - + 59 DIV - col0 AS col2 FROM tab0 cor0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-4222
SELECT DISTINCT - + 59 / - col0 AS col2 FROM tab0 cor0
----
0
1
2

query I rowsort
SELECT DISTINCT 67 * - 92 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
-6164

query I rowsort
SELECT ALL + cor0.col2 * col1 + + 41 * - col0 + col0 FROM tab2 AS cor0
----
-1586
-2514
557

query I rowsort
SELECT + col1 + + col1 + - col2 AS col0 FROM tab2 AS cor0
----
-4
35
92

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4226
SELECT ALL + cor0.col0 * CAST( NULL AS SIGNED ) AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-4226
SELECT ALL + cor0.col0 * CAST ( NULL AS INTEGER ) AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # use DIV operator for integer division
query I rowsort label-4227
SELECT ALL + - 96 DIV col1 AS col1 FROM tab1 cor0
----
-3
-7
-9

skipif mysql # not compatible
query I rowsort label-4227
SELECT ALL + - 96 / col1 AS col1 FROM tab1 cor0
----
-3
-7
-9

query I rowsort
SELECT tab1.col0 AS col1 FROM tab1, tab2 AS cor0, tab0 cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f

query I rowsort
SELECT DISTINCT 13 FROM tab2
----
13

query I rowsort
SELECT ALL col0 + + 62 * col2 FROM tab2 cor0
----
1681
1690
2435

query I rowsort
SELECT DISTINCT - + col2 + - ( - 51 + - col2 ) FROM tab1 AS cor0
----
51

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4232
SELECT DISTINCT col0 + + CAST( + col2 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
171
36
57

skipif mysql # not compatible
query I rowsort label-4232
SELECT DISTINCT col0 + + CAST ( + col2 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
171
36
57

onlyif mysql # use DIV operator for integer division
query I rowsort label-4233
SELECT DISTINCT + + col2 + col1 DIV + col2 FROM tab1 AS cor0
----
54
57
96

skipif mysql # not compatible
query I rowsort label-4233
SELECT DISTINCT + + col2 + col1 / + col2 FROM tab1 AS cor0
----
54
57
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-4234
SELECT col0 DIV - tab1.col0 + + 9 * col2 AS col1 FROM tab1
----
485
512
863

skipif mysql # not compatible
query I rowsort label-4234
SELECT col0 / - tab1.col0 + + 9 * col2 AS col1 FROM tab1
----
485
512
863

query I rowsort
SELECT ALL + tab2.col0 FROM tab2, tab0, tab1 cor0
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83

query I rowsort
SELECT ( col2 ) * col1 - - col1 AS col1 FROM tab1
----
1261
1430
580

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4237
SELECT ALL - CAST( NULL AS SIGNED ) + col1 * - col0 + 7 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4237
SELECT ALL - CAST ( NULL AS INTEGER ) + col1 * - col0 + 7 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + cor0.col0 ) col0 FROM tab0 cor0
----
24
35
89

query I rowsort
SELECT - ( 58 ) + - col2 AS col0 FROM tab0 AS cor0
----
-140
-59
-91

query I rowsort
SELECT ALL + + 83 * - col2 * col0 FROM tab1 AS cor0
----
-13446
-302784
-637440

query I rowsort
SELECT DISTINCT - 12 + + 74 * + col0 AS col1 FROM tab0 cor0
----
1764
2578
6574

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4242
SELECT + CAST( NULL AS DECIMAL ) + 50 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4242
SELECT + CAST ( NULL AS REAL ) + 50 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - cor0.col0 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 09d8a912de1b8ab762e5ffbe028ce99e

query I rowsort
SELECT 37 + ( cor0.col1 * - cor0.col1 ) AS col2 FROM tab1 AS cor0
----
-132
-63
-639

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4245
SELECT ALL CAST( + col0 AS SIGNED ) * - col2 + - col2 * - col2 AS col1 FROM tab0 AS cor0
----
-34
-574
297

skipif mysql # not compatible
query I rowsort label-4245
SELECT ALL CAST ( + col0 AS INTEGER ) * - col2 + - col2 * - col2 AS col1 FROM tab0 AS cor0
----
-34
-574
297

query I rowsort
SELECT + - 84 + 5 FROM tab2 cor0
----
-79
-79
-79

query I rowsort
SELECT + + 30 + - col2 AS col1 FROM tab0 AS cor0
----
-3
-52
29

query I rowsort
SELECT ALL + ( col2 * + col2 ) FROM tab2
----
1444
676
729

query I rowsort
SELECT ALL + 67 FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to eea8a0738728ea55e4e7ba1506c9905a

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4250
SELECT + CAST( NULL AS SIGNED ) + tab1.col0 * col0 col0 FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4250
SELECT + CAST ( NULL AS INTEGER ) + tab1.col0 * col0 col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT + 33 FROM tab2
----
33
33
33

query I rowsort
SELECT DISTINCT tab2.col1 * 94 FROM tab2
----
1598
2914
5546

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col0 + + col2 - - col2 col1 FROM tab0 AS cor0
----
253
37
90

query I rowsort
SELECT ALL + - col1 * + col1 AS col2 FROM tab2 AS cor0
----
-289
-3481
-961

query I rowsort
SELECT - + col2 * - ( + ( - cor0.col2 ) ) * 15 + 24 FROM tab0 AS cor0
----
-100836
-16311
9

onlyif mysql # use DIV operator for integer division
query I rowsort label-4256
SELECT + col2 * col0 + - col2 DIV col1 FROM tab2 AS cor0
----
189
2028
3000

skipif mysql # not compatible
query I rowsort label-4256
SELECT + col2 * col0 + - col2 / col1 FROM tab2 AS cor0
----
189
2028
3000

query I rowsort
SELECT ALL - col1 + 55 FROM tab0 AS cor0
----
-31
-36
-42

query I rowsort
SELECT ALL col1 + + col0 FROM tab2 AS cor0
----
137
38
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-4259
SELECT DISTINCT col1 DIV 23 FROM tab0 AS cor0
----
3
4

skipif mysql # not compatible
query I rowsort label-4259
SELECT DISTINCT col1 / 23 FROM tab0 AS cor0
----
3
4

query I rowsort
SELECT + cor0.col2 - + 87 AS col2 FROM tab2 AS cor0
----
-49
-60
-61

query I rowsort
SELECT - - col1 + ( - 52 ) * + col0 AS col1 FROM tab2 AS cor0
----
-333
-3997
-4091

query I rowsort
SELECT ALL + tab2.col0 * + col1 - + col2 FROM tab2
----
1305
190
4576

query I rowsort
SELECT ALL tab0.col1 - - col2 AS col0 FROM tab0
----
119
173
98

query I rowsort
SELECT DISTINCT + + 57 FROM tab1, tab2, tab0 AS cor0
----
57

query I rowsort
SELECT ALL 17 FROM tab0, tab0 AS cor0, tab2 cor1
----
27 values hashing to e0dd9155e4d67132637a04c18ef46b2a

onlyif mysql # use DIV operator for integer division
query I rowsort label-4266
SELECT ALL col1 + col2 DIV + col2 FROM tab0
----
87
92
98

skipif mysql # not compatible
query I rowsort label-4266
SELECT ALL col1 + col2 / + col2 FROM tab0
----
87
92
98

query I rowsort
SELECT ALL cor1.col0 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0, tab1 cor1, tab1 AS cor2
----
81 values hashing to e28bf7f922650ca423ade3642ce0285b

query I rowsort
SELECT + col0 * + ( 23 ) FROM tab0
----
2047
552
805

query I rowsort
SELECT DISTINCT - col0 + col0 + + col1 AS col1 FROM tab1
----
10
13
26

query I rowsort
SELECT - col1 * + col1 + col2 AS col2 FROM tab0 AS cor0
----
-7363
-8199
-9408

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 - + ( + 47 ) col0 FROM tab2 AS cor0
----
-125
-126
-54

query I rowsort
SELECT DISTINCT + - col0 - + col2 * - 50 AS col2 FROM tab0 AS cor0
----
15
1626
4011

onlyif mysql # use DIV operator for integer division
query I rowsort label-4273
SELECT DISTINCT + cor0.col1 * - cor0.col0 + + 67 DIV col0 AS col2 FROM tab1 AS cor0
----
-1040
-56
-639

skipif mysql # not compatible
query I rowsort label-4273
SELECT DISTINCT + cor0.col1 * - cor0.col0 + + 67 / col0 AS col2 FROM tab1 AS cor0
----
-1040
-56
-639

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4274
SELECT - - cor0.col1 + + CAST( col2 * - cor0.col2 AS SIGNED ) FROM tab0 AS cor0
----
-1003
-6633
96

skipif mysql # not compatible
query I rowsort label-4274
SELECT - - cor0.col1 + + CAST ( col2 * - cor0.col2 AS INTEGER ) FROM tab0 AS cor0
----
-1003
-6633
96

query I rowsort
SELECT DISTINCT 25 - 23 AS col2 FROM tab0, tab1 cor0
----
2

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4276
SELECT ALL + col0 / CAST( NULL AS SIGNED ) + + col2 * tab0.col2 / col0 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4276
SELECT ALL + col0 / CAST ( NULL AS INTEGER ) + + col2 * tab0.col2 / col0 AS col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT + ( cor0.col1 ) + cor0.col1 AS col0 FROM tab2 AS cor0
----
118
34
62

query I rowsort
SELECT cor0.col2 + - col0 * - col2 AS col2 FROM tab1 AS cor0
----
216
3705
7776

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4279
SELECT ( - col2 ) + col1 + + CAST( NULL AS SIGNED ) * + cor0.col1 * + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4279
SELECT ( - col2 ) + col1 + + CAST ( NULL AS INTEGER ) * + cor0.col1 * + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + tab1.col0 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f

query I rowsort
SELECT ALL - - cor0.col1 * + ( - col2 * col0 ) AS col2 FROM tab1 AS cor0
----
-36480
-4212
-99840

query I rowsort
SELECT ALL + cor0.col2 * cor0.col1 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT tab2.col0 AS col2 FROM tab2, tab2 AS cor0, tab1 cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83

query I rowsort
SELECT DISTINCT + tab0.col1 + 6 * + 45 FROM tab0
----
356
361
367

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab1.col2 * - 56 col0 FROM tab1, tab0 AS cor0
----
9 values hashing to dc8adb5a22835a3499bc74e2304fbcb9

query I rowsort
SELECT + col0 * tab2.col0 AS col2 FROM tab2
----
49
6084
6241

onlyif mysql # use DIV operator for integer division
query I rowsort label-4287
SELECT + col1 DIV 63 col2 FROM tab2
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4287
SELECT + col1 / 63 col2 FROM tab2
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-4288
SELECT tab1.col2 DIV + 93 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-4288
SELECT tab1.col2 / + 93 FROM tab1
----
0
0
1

query I rowsort
SELECT - col1 * tab2.col2 AS col1 FROM tab2
----
-1534
-646
-837

query I rowsort
SELECT DISTINCT tab0.col1 AS col1 FROM tab0, tab2 cor0
----
86
91
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col0 + - 32 * col1 col2 FROM tab1 AS cor0
----
-256
-336
-829

query I rowsort
SELECT + col1 * + 75 FROM tab2 AS cor0
----
1275
2325
4425

query I rowsort
SELECT DISTINCT - - 84 FROM tab2 AS cor0
----
84

query I rowsort
SELECT ALL + 31 FROM tab2 cor0
----
31
31
31

query I rowsort
SELECT - + ( + col0 ) + col2 AS col2 FROM tab1 AS cor0
----
-7
16
51

query I rowsort
SELECT ( + 34 ) * col2 FROM tab1 AS cor0
----
1836
1938
3264

query I rowsort
SELECT - col2 + 43 * col1 FROM tab2 cor0
----
1306
2511
693

query I rowsort
SELECT cor0.col1 * - col1 + - col0 * + 70 AS col1 FROM tab0 AS cor0
----
-11859
-14511
-9076

query I rowsort
SELECT ALL - ( col2 ) * cor0.col0 AS col0 FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT cor0.col1 + col1 + col1 AS col0 FROM tab2 AS cor0
----
177
51
93

onlyif mysql # use DIV operator for integer division
query I rowsort label-4301
SELECT + + 55 DIV - cor0.col1 + + col0 * - col1 AS col2 FROM tab2 AS cor0
----
-1346
-218
-4602

skipif mysql # not compatible
query I rowsort label-4301
SELECT + + 55 / - cor0.col1 + + col0 * - col1 AS col2 FROM tab2 AS cor0
----
-1346
-218
-4602

query I rowsort
SELECT 7 + 59 FROM tab1 AS cor0
----
66
66
66

query I rowsort
SELECT 11 + - ( + col0 ) * + col0 AS col1 FROM tab0 AS cor0
----
-1214
-565
-7910

query I rowsort
SELECT ALL - - ( cor1.col2 ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8

query I rowsort
SELECT + 5 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 6035628694bdea36f584f3649088551d

query I rowsort
SELECT DISTINCT cor0.col0 + + col1 AS col1 FROM tab2 AS cor0
----
137
38
96

query I rowsort
SELECT ALL - + 36 AS col1 FROM tab1 AS cor0
----
-36
-36
-36

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + col1 * 86 col2 FROM tab0 cor0
----
7372
7737
8307

query I rowsort
SELECT DISTINCT + 5 + - col0 FROM tab0 AS cor0
----
-19
-30
-84

query I rowsort
SELECT ALL + 80 AS col0 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 6dd5038be71dffa82f5ceba787caab91

onlyif mysql # use DIV operator for integer division
query I rowsort label-4311
SELECT ALL + col0 * col0 + + 44 DIV 13 - col0 AS col1 FROM tab2 AS cor0
----
45
6009
6165

skipif mysql # not compatible
query I rowsort label-4311
SELECT ALL + col0 * col0 + + 44 / 13 - col0 AS col1 FROM tab2 AS cor0
----
45
6009
6165

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 98 col1 FROM tab0 AS cor0
----
-98
-98
-98

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4313
SELECT ALL + col2 / + col2 - + CAST( NULL AS SIGNED ) * + col1 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4313
SELECT ALL + col2 / + col2 - + CAST ( NULL AS INTEGER ) * + col1 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col0 * - col1 - col2 FROM tab2 AS cor0
----
-1381
-244
-4628

onlyif mysql # use DIV operator for integer division
query I rowsort label-4315
SELECT DISTINCT col1 DIV + 80 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4315
SELECT DISTINCT col1 / + 80 FROM tab2 AS cor0
----
0

query I rowsort
SELECT col2 + - col2 - + col1 FROM tab2 AS cor0
----
-17
-31
-59

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4317
SELECT DISTINCT col0 * + CAST( NULL AS SIGNED ) AS col0 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4317
SELECT DISTINCT col0 * + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 cor0
----
NULL

query I rowsort
SELECT + col1 + + col0 AS col0 FROM tab1
----
29
74
93

query I rowsort
SELECT DISTINCT - ( cor1.col2 ) FROM tab1, tab2 AS cor0, tab1 cor1
----
-54
-57
-96

query I rowsort
SELECT - col1 * cor0.col0 * cor0.col0 + + 76 - col1 FROM tab0 AS cor0
----
-118846
-49546
-720826

onlyif mysql # use DIV operator for integer division
query I rowsort label-4321
SELECT + col0 DIV col2 - - ( + 95 * + col0 ) FROM tab1 cor0
----
285
6081
7600

skipif mysql # not compatible
query I rowsort label-4321
SELECT + col0 / col2 - - ( + 95 * + col0 ) FROM tab1 cor0
----
285
6081
7600

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col1 - + col2 col2 FROM tab0 AS cor0
----
53
9
96

query I rowsort
SELECT + 3 + + 41 FROM tab0, tab2, tab2 AS cor0
----
27 values hashing to 0cc3e52e781e46962291c3060c6ae73b

query I rowsort
SELECT ALL + 99 + 97 AS col0 FROM tab0
----
196
196
196

query I rowsort
SELECT ALL tab0.col0 + - col2 * col2 AS col2 FROM tab0
----
-1065
-6635
34

query I rowsort
SELECT ALL - col0 + + col0 * cor0.col0 AS col0 FROM tab0 AS cor0
----
1190
552
7832

query I rowsort
SELECT + col1 + + cor0.col0 AS col0 FROM tab1 AS cor0
----
29
74
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 27 col2 FROM tab0 AS cor0
----
-27

query I rowsort
SELECT - 12 - - col0 AS col1 FROM tab0 cor0
----
12
23
77

query I rowsort
SELECT col2 * + col1 * tab2.col0 FROM tab2
----
119652
51034
5859

query I rowsort
SELECT DISTINCT - col1 + - col1 AS col1 FROM tab0 cor0
----
-172
-182
-194

query I rowsort
SELECT DISTINCT - col1 * + col0 * - tab1.col1 AS col2 FROM tab1
----
13520
2028
6400

query I rowsort
SELECT + 75 FROM tab2
----
75
75
75

query I rowsort
SELECT + 68 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 599bee15ac4cc39b859854e07dfe7990

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4335
SELECT DISTINCT - CAST( NULL AS SIGNED ) FROM tab2, tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4335
SELECT DISTINCT - CAST ( NULL AS INTEGER ) FROM tab2, tab1 cor0
----
NULL

query I rowsort
SELECT DISTINCT + ( 13 ) * + col1 AS col0 FROM tab2
----
221
403
767

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 32 * col1 col0 FROM tab0
----
-2752
-2912
-3104

query I rowsort
SELECT DISTINCT - 64 FROM tab1, tab1 cor0
----
-64

query I rowsort
SELECT + 23 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to d94fadcc1c8cc4fc51b78b83e04795f2

query I rowsort
SELECT DISTINCT - ( + 93 ) * + col1 * + ( - col1 + tab1.col2 ) AS col1 FROM tab1
----
-100347
-43710
-67704

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4341
SELECT - + CAST( - col0 AS SIGNED ) col0 FROM tab2 AS cor0
----
7
78
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4341
SELECT - + CAST ( - col0 AS INTEGER ) col0 FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT - cor0.col1 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to d4c673b7444eb9927ec63175b43c6b84

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4343
SELECT + CAST( col2 AS SIGNED ) + - col1 * col0 * cor0.col0 FROM tab2 AS cor0
----
-106059
-1492
-358930

skipif mysql # not compatible
query I rowsort label-4343
SELECT + CAST ( col2 AS INTEGER ) + - col1 * col0 * cor0.col0 FROM tab2 AS cor0
----
-106059
-1492
-358930

query I rowsort
SELECT ALL + 99 * tab2.col2 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to bda9dc9880143e384bf5fe3f45517e20

query I rowsort
SELECT 95 * - col0 AS col2 FROM tab1 AS cor0
----
-285
-6080
-7600

query I rowsort
SELECT - col1 * - 2 FROM tab0 AS cor0
----
172
182
194

query I rowsort
SELECT col2 + col1 * col2 FROM tab0 AS cor0
----
2871
7544
98

query I rowsort
SELECT ( tab2.col0 ) + col2 FROM tab2
----
104
117
34

query I rowsort
SELECT + 47 * - col1 FROM tab1 cor0
----
-1222
-470
-611

query I rowsort
SELECT DISTINCT + + col2 * - cor0.col2 FROM tab0 AS cor0
----
-1
-1089
-6724

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4351
SELECT ALL 82 * col1 + - CAST( NULL AS SIGNED ) + + col0 * + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4351
SELECT ALL 82 * col1 + - CAST ( NULL AS INTEGER ) + + col0 * + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + cor0.col2 * col0 AS col2 FROM tab0 cor0
----
35
7298
792

query I rowsort
SELECT ALL + - ( cor0.col2 ) * - col1 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT DISTINCT ( col0 ) AS col2 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT DISTINCT - 97 AS col2 FROM tab2 cor0
----
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-4356
SELECT ALL + ( - col0 ) DIV col2 + + col1 + - col1 * + col1 FROM tab1 AS cor0
----
-156
-650
-91

skipif mysql # not compatible
query I rowsort label-4356
SELECT ALL + ( - col0 ) / col2 + + col1 + - col1 * + col1 FROM tab1 AS cor0
----
-156
-650
-91

query I rowsort
SELECT col2 + - tab0.col2 AS col1 FROM tab0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4358
SELECT - col1 * + CAST( 76 AS SIGNED ) + col2 FROM tab1 AS cor0
----
-1922
-703
-892

skipif mysql # not compatible
query I rowsort label-4358
SELECT - col1 * + CAST ( 76 AS INTEGER ) + col2 FROM tab1 AS cor0
----
-1922
-703
-892

query I rowsort
SELECT - 5 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 74665fbb47d5b17da011bca567195b21

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 + - col0 * col2 col1 FROM tab1 cor0
----
-188
-3658
-7693

onlyif mysql # use DIV operator for integer division
query I rowsort label-4361
SELECT ALL + col2 DIV ( - col2 ) + col2 * 10 FROM tab1 AS cor0
----
539
569
959

skipif mysql # not compatible
query I rowsort label-4361
SELECT ALL + col2 / ( - col2 ) + col2 * 10 FROM tab1 AS cor0
----
539
569
959

query I rowsort
SELECT ALL - cor0.col2 AS col1 FROM tab0, tab1 cor0
----
9 values hashing to 0dc9bbe392d52df93d2a115d7f622dba

query I rowsort
SELECT + col1 * col1 * col2 AS col1 FROM tab1 AS cor0
----
16224
36504
5700

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4364
SELECT ALL + CAST( - col2 AS SIGNED ) + - cor0.col2 * col1 AS col2 FROM tab1 AS cor0
----
-1344
-1458
-627

skipif mysql # not compatible
query I rowsort label-4364
SELECT ALL + CAST ( - col2 AS INTEGER ) + - cor0.col2 * col1 AS col2 FROM tab1 AS cor0
----
-1344
-1458
-627

query I rowsort
SELECT DISTINCT - col2 + + col2 * - col2 FROM tab1 AS cor0
----
-2970
-3306
-9312

query I rowsort
SELECT DISTINCT - 96 + col2 FROM tab1 AS cor0
----
-39
-42
0

query I rowsort
SELECT DISTINCT + + col2 * 84 + col0 * - col1 * col2 FROM tab2 AS cor0
----
-117468
-3591
-47842

query I rowsort
SELECT ALL + 8 + - ( + col0 ) * cor0.col0 * ( - col1 ) AS col2 FROM tab2 cor0
----
106105
1527
358964

onlyif mysql # use DIV operator for integer division
query I rowsort label-4369
SELECT DISTINCT - + col1 DIV col0 AS col2 FROM tab0 AS cor0
----
-1
-2
-3

skipif mysql # not compatible
query I rowsort label-4369
SELECT DISTINCT - + col1 / col0 AS col2 FROM tab0 AS cor0
----
-1
-2
-3

query I rowsort
SELECT - 14 * col1 FROM tab1 AS cor0
----
-140
-182
-364

query I rowsort
SELECT DISTINCT + + 24 * col2 * - col2 FROM tab1 AS cor0
----
-221184
-69984
-77976

query I rowsort
SELECT - + ( + col1 ) + - col0 AS col0 FROM tab0 AS cor0
----
-110
-132
-180

query I rowsort
SELECT ALL + + ( - 26 ) AS col0 FROM tab2 cor0
----
-26
-26
-26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 74 * 43 + + col0 col2 FROM tab1 AS cor0
----
3185
3246
3262

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * col2 + - col0 * - 98 col0 FROM tab0 AS cor0
----
16184
3527
5190

query I rowsort
SELECT ALL + col0 * col2 - col2 AS col1 FROM tab2 AS cor0
----
162
2002
2964

query I rowsort
SELECT + 7 AS col0 FROM tab1 AS cor0
----
7
7
7

query I rowsort
SELECT ALL - col0 + 85 + + col2 FROM tab0
----
51
78
94

query I rowsort
SELECT ALL - - cor0.col2 - col1 * + col1 FROM tab2 AS cor0
----
-251
-3455
-934

query I rowsort
SELECT col0 * - ( 46 ) + - col2 FROM tab0 cor0
----
-1137
-1611
-4176

query I rowsort
SELECT DISTINCT + col1 + + col0 AS col0 FROM tab0 AS cor0
----
110
132
180

query I rowsort
SELECT - cor0.col1 * + 20 + cor0.col0 * col2 + - col2 AS col0 FROM tab2 AS cor0
----
-458
2624
822

query I rowsort
SELECT ALL + col1 + - ( col0 ) AS col2 FROM tab0 cor0
----
2
62
62

query I rowsort
SELECT ALL - 6 * - 67 AS col2 FROM tab0 AS cor0
----
402
402
402

query I rowsort
SELECT ALL col1 * - col1 * col0 AS col1 FROM tab2
----
-22831
-271518
-6727

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4386
SELECT + - CAST( NULL AS SIGNED ) * 83 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4386
SELECT + - CAST ( NULL AS INTEGER ) * 83 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - ( col1 ) * + col1 FROM tab0 AS cor0
----
-7396
-8281
-9409

onlyif mysql # use DIV operator for integer division
query I rowsort label-4388
SELECT + - cor0.col1 + col1 DIV cor0.col1 AS col2 FROM tab1 AS cor0
----
-12
-25
-9

skipif mysql # not compatible
query I rowsort label-4388
SELECT + - cor0.col1 + col1 / cor0.col1 AS col2 FROM tab1 AS cor0
----
-12
-25
-9

query I rowsort
SELECT 75 * - col0 + col1 + col0 FROM tab2 AS cor0
----
-487
-5713
-5829

query I rowsort
SELECT - 5 * ( col2 ) + + col1 * 69 AS col2 FROM tab0 AS cor0
----
5769
5869
6688

query I rowsort
SELECT DISTINCT + col0 + + col0 + cor0.col2 FROM tab0 AS cor0
----
260
71
81

query I rowsort
SELECT ALL + col1 * col1 + ( + cor0.col0 ) AS col0 FROM tab1 cor0
----
164
249
679

query I rowsort
SELECT - - 13 * - col2 FROM tab1 AS cor0
----
-1248
-702
-741

query I rowsort
SELECT 65 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 1c9d0bf96cd3361942fadad668138b9c

query I rowsort
SELECT DISTINCT 99 * + col2 FROM tab2 AS cor0
----
2574
2673
3762

query I rowsort
SELECT DISTINCT col0 + cor0.col2 AS col0 FROM tab0 AS cor0
----
171
36
57

query I rowsort
SELECT ( - col0 ) AS col2 FROM tab2
----
-7
-78
-79

query I rowsort
SELECT - 37 AS col0 FROM tab2
----
-37
-37
-37

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 8 col0 FROM tab1 AS cor0
----
-8

onlyif mysql # use DIV operator for integer division
query I rowsort label-4400
SELECT ALL + - col1 DIV - col0 FROM tab1 AS cor0
----
0
0
8

skipif mysql # not compatible
query I rowsort label-4400
SELECT ALL + - col1 / - col0 FROM tab1 AS cor0
----
0
0
8

query I rowsort
SELECT ALL cor0.col2 + col1 + - cor0.col2 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT + col1 + col2 * col1 AS col2 FROM tab0 AS cor0
----
194
2924
7553

query I rowsort
SELECT col0 * 17 - - col1 * - col2 FROM tab2 AS cor0
----
-208
-718
697

query I rowsort
SELECT ALL col2 * col1 * - col1 FROM tab0 AS cor0
----
-244068
-679042
-9409

query I rowsort
SELECT + col2 - + col1 FROM tab2 AS cor0
----
-33
-4
21

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col0 * - 52 col2 FROM tab1 AS cor0
----
-156
-3328
-4160

onlyif mysql # use DIV operator for integer division
query I rowsort label-4407
SELECT DISTINCT col0 + + col1 DIV 21 FROM tab2 cor0
----
79
8
80

skipif mysql # not compatible
query I rowsort label-4407
SELECT DISTINCT col0 + + col1 / 21 FROM tab2 cor0
----
79
8
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-4408
SELECT cor0.col2 + - cor0.col0 DIV 69 FROM tab0 AS cor0
----
1
33
81

skipif mysql # not compatible
query I rowsort label-4408
SELECT cor0.col2 + - cor0.col0 / 69 FROM tab0 AS cor0
----
1
33
81

onlyif mysql # use DIV operator for integer division
query I rowsort label-4409
SELECT + - col2 DIV + 70 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-4409
SELECT + - col2 / + 70 col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - + col2 + + col2 * - col2 AS col2 FROM tab0 AS cor0
----
-1122
-2
-6806

onlyif mysql # use DIV operator for integer division
query I rowsort label-4411
SELECT ALL 30 DIV + col0 AS col0 FROM tab2
----
0
0
4

skipif mysql # not compatible
query I rowsort label-4411
SELECT ALL 30 / + col0 AS col0 FROM tab2
----
0
0
4

query I rowsort
SELECT DISTINCT + - tab2.col0 AS col0 FROM tab2, tab1, tab0 cor0, tab0
----
-7
-78
-79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 col2 FROM tab2 cor0
----
-26
-27
-38

query I rowsort
SELECT DISTINCT ( col1 * + 85 + col2 ) AS col1 FROM tab0
----
7343
7817
8246

onlyif mysql # use DIV operator for integer division
query I rowsort label-4415
SELECT ALL col2 DIV col1 + - col1 FROM tab2
----
-15
-31
-59

skipif mysql # not compatible
query I rowsort label-4415
SELECT ALL col2 / col1 + - col1 FROM tab2
----
-15
-31
-59

query I rowsort
SELECT ALL - 4 FROM tab0, tab2 AS cor0
----
9 values hashing to 5784540a5af6ca2be84399d314acd2fd

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4417
SELECT - CAST( NULL AS SIGNED ) * col2 - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4417
SELECT - CAST ( NULL AS INTEGER ) * col2 - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col1 + ( cor0.col1 ) FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT + 23 + - cor0.col0 FROM tab2 AS cor0
----
-55
-56
16

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 9 col2 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to ebef7303942834ca1e6ca8604ec18a07

query I rowsort
SELECT ALL 98 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to f9dee8c21116f1aed64ac5160e190809

query I rowsort
SELECT col2 * tab1.col2 * col0 FROM tab1
----
207936
737280
8748

query I rowsort
SELECT - col2 * + ( 0 ) * tab0.col2 FROM tab0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-4424
SELECT - col1 DIV + col0 AS col2 FROM tab1
----
-8
0
0

skipif mysql # not compatible
query I rowsort label-4424
SELECT - col1 / + col0 AS col2 FROM tab1
----
-8
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-4425
SELECT + col2 DIV col2 AS col0 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4425
SELECT + col2 / col2 AS col0 FROM tab1
----
1
1
1

query I rowsort
SELECT DISTINCT col1 * + 85 FROM tab2
----
1445
2635
5015

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - col1 ) col2 FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT 4 * + 31 AS col0 FROM tab1
----
124
124
124

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 90 * col2 * - col2 col2 FROM tab1
----
-262440
-292410
-829440

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 79 * - col1 col0 FROM tab0 AS cor0
----
6794
7189
7663

query I rowsort
SELECT 95 * col1 FROM tab0 AS cor0
----
8170
8645
9215

onlyif mysql # use DIV operator for integer division
query I rowsort label-4432
SELECT DISTINCT tab1.col1 DIV + 82 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-4432
SELECT DISTINCT tab1.col1 / + 82 FROM tab1
----
0

query I rowsort
SELECT DISTINCT + col2 * - col0 AS col1 FROM tab2
----
-189
-2028
-3002

query I rowsort
SELECT - ( - 91 ) FROM tab1, tab0, tab0 AS cor0
----
27 values hashing to deebbcfb9c7803a34dca6bd860849afe

query I rowsort
SELECT + col1 * - ( col1 ) FROM tab0
----
-7396
-8281
-9409

onlyif mysql # use DIV operator for integer division
query I rowsort label-4436
SELECT DISTINCT - ( + 88 + col2 ) DIV - col1 FROM tab2
----
1
3
7

skipif mysql # not compatible
query I rowsort label-4436
SELECT DISTINCT - ( + 88 + col2 ) / - col1 FROM tab2
----
1
3
7

query I rowsort
SELECT col2 + tab0.col2 FROM tab0
----
164
2
66

query I rowsort
SELECT ALL - col2 * - 78 AS col2 FROM tab2
----
2028
2106
2964

query I rowsort
SELECT col1 + 36 * col1 * col0 FROM tab0
----
122317
291655
74390

query I rowsort
SELECT + 92 + + col2 * - col2 * cor0.col1 FROM tab0 AS cor0
----
-5
-611792
-93562

query I rowsort
SELECT 32 AS col2 FROM tab1 AS cor0
----
32
32
32

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + col0 * - 99 col0 FROM tab1 AS cor0
----
-294
-6272
-7840

query I rowsort
SELECT ALL + + col2 * col0 AS col1 FROM tab1 cor0
----
162
3648
7680

query I rowsort
SELECT DISTINCT + + col0 * col0 AS col1 FROM tab1 AS cor0
----
4096
6400
9

query I rowsort
SELECT + + col2 + col1 * col0 AS col1 FROM tab1 AS cor0
----
1136
132
697

onlyif mysql # use DIV operator for integer division
query I rowsort label-4446
SELECT ALL - col1 * + col1 DIV + col1 AS col2 FROM tab1
----
-10
-13
-26

skipif mysql # not compatible
query I rowsort label-4446
SELECT ALL - col1 * + col1 / + col1 AS col2 FROM tab1
----
-10
-13
-26

query I rowsort
SELECT + col0 - col1 FROM tab2
----
-24
19
62

query I rowsort
SELECT col1 * col1 + col1 AS col1 FROM tab0
----
7482
8372
9506

query I rowsort
SELECT col1 - - tab0.col1 * - col2 FROM tab0
----
-2752
-7371
0

query I rowsort
SELECT col2 * col0 * + col0 + col1 FROM tab2
----
1354
158243
237175

query I rowsort
SELECT tab0.col2 + - col0 * col1 FROM tab0
----
-2031
-3394
-8017

query I rowsort
SELECT tab1.col2 + col2 AS col0 FROM tab1
----
108
114
192

query I rowsort
SELECT col0 - - col2 FROM tab2
----
104
117
34

query I rowsort
SELECT DISTINCT + cor0.col1 FROM tab2, tab2 cor0
----
17
31
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - col2 + col0 - col0 col1 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT DISTINCT - cor0.col2 * cor0.col1 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT DISTINCT - cor0.col2 + col2 FROM tab1 cor0 WHERE NULL < col2 OR NOT NULL BETWEEN ( col1 + cor0.col0 ) AND NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-4458
SELECT + col1 + col2 DIV - cor0.col2 FROM tab0 AS cor0
----
85
90
96

skipif mysql # not compatible
query I rowsort label-4458
SELECT + col1 + col2 / - cor0.col2 FROM tab0 AS cor0
----
85
90
96

query I rowsort
SELECT + col0 + cor0.col0 * + cor0.col2 AS col2 FROM tab2 AS cor0
----
196
2106
3081

onlyif mysql # use DIV operator for integer division
query I rowsort label-4460
SELECT col0 DIV col2 FROM tab0 cor0
----
0
1
35

skipif mysql # not compatible
query I rowsort label-4460
SELECT col0 / col2 FROM tab0 cor0
----
0
1
35

query I rowsort
SELECT + - col2 + col0 * + cor0.col2 - - col2 * col1 AS col2 FROM tab1 AS cor0
----
1512
4161
8832

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col2 * + col0 <> ( NULL ) OR - cor0.col0 * - col0 * + col0 NOT IN ( col0 + + col1 )
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col2 + + cor0.col0 col1 FROM tab0 AS cor0
----
-9
34
7

query I rowsort
SELECT + col2 + - col0 AS col0 FROM tab2 AS cor0
----
-41
-52
20

query I rowsort
SELECT + col2 * + col0 + + col0 AS col1 FROM tab2 AS cor0
----
196
2106
3081

query I rowsort
SELECT + + col1 * col1 * - col0 + + col0 FROM tab2 AS cor0
----
-22752
-271440
-6720

query I rowsort
SELECT + col0 + + col1 * - cor0.col0 * - col1 AS col2 FROM tab2 AS cor0
----
22910
271596
6734

query I rowsort
SELECT ALL + 63 + + col0 FROM tab1 AS cor0
----
127
143
66

query I rowsort
SELECT DISTINCT - + cor0.col0 + cor0.col0 * col2 FROM tab1 AS cor0
----
159
3584
7600

query I rowsort
SELECT 60 * - 46 FROM tab1
----
-2760
-2760
-2760

query I rowsort
SELECT + ( + col2 * col1 ) AS col0 FROM tab2
----
1534
646
837

query I rowsort
SELECT - 90 * tab2.col0 FROM tab2
----
-630
-7020
-7110

query I rowsort
SELECT tab1.col0 * + col0 FROM tab1
----
4096
6400
9

query I rowsort
SELECT 7 * col0 + + col2 * - col0 AS col1 FROM tab2 cor0
----
-140
-1482
-2449

query I rowsort
SELECT - col2 * col1 * + col1 AS col0 FROM tab1 AS cor0
----
-16224
-36504
-5700

onlyif mysql # use DIV operator for integer division
query I rowsort label-4476
SELECT ALL + + col0 DIV + col2 + col1 * col0 + col0 FROM tab0 AS cor0
----
2088
3465
8189

skipif mysql # not compatible
query I rowsort label-4476
SELECT ALL + + col0 / + col2 + col1 * col0 + col0 FROM tab0 AS cor0
----
2088
3465
8189

onlyif mysql # use DIV operator for integer division
query I rowsort label-4477
SELECT DISTINCT + - col0 + col0 * col1 DIV col1 col1 FROM tab2 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4477
SELECT DISTINCT + - col0 + col0 * col1 / col1 col1 FROM tab2 AS cor0
----
0

query I rowsort
SELECT ALL + col1 * col0 AS col1 FROM tab2 cor0
----
1343
217
4602

query I rowsort
SELECT 51 AS col1 FROM tab2
----
51
51
51

query I rowsort
SELECT DISTINCT - cor0.col2 AS col2 FROM tab0, tab2 AS cor0
----
-26
-27
-38

query I rowsort
SELECT ALL col1 + col0 * - col0 FROM tab2
----
-18
-6025
-6224

query I rowsort
SELECT DISTINCT col0 FROM tab0 WHERE NOT ( NULL ) NOT BETWEEN col1 * col2 AND ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * tab0.col1 col0 FROM tab0
----
-2838
-7462
-97

query I rowsort
SELECT DISTINCT tab2.col1 * col2 FROM tab2
----
1534
646
837

onlyif mysql # use DIV operator for integer division
query I rowsort label-4485
SELECT + col1 DIV - col1 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-4485
SELECT + col1 / - col1 FROM tab1
----
-1
-1
-1

query I rowsort
SELECT DISTINCT col2 * - col0 + - col0 * col1 + + col2 FROM tab0
----
-15315
-2823
-3429

query I rowsort
SELECT DISTINCT - col0 * tab0.col1 * - col0 AS col0 FROM tab0
----
118825
49536
720811

onlyif mysql # use DIV operator for integer division
query I rowsort label-4488
SELECT tab2.col1 + col0 DIV + tab2.col0 AS col0 FROM tab2
----
18
32
60

skipif mysql # not compatible
query I rowsort label-4488
SELECT tab2.col1 + col0 / + tab2.col0 AS col0 FROM tab2
----
18
32
60

query I rowsort
SELECT - col2 * col2 + col0 * + col1 + + tab0.col1 FROM tab0
----
1061
1466
3491

query I rowsort
SELECT DISTINCT + col0 * col2 * col0 AS col1 FROM tab0
----
1225
19008
649522

query I rowsort
SELECT col1 * - col1 - col0 * col2 AS col2 FROM tab0
----
-15579
-8188
-9444

query III rowsort
SELECT ALL * FROM tab2 WHERE col1 <> NULL
----

query I rowsort
SELECT ALL + col1 - - col0 AS col0 FROM tab2
----
137
38
96

query I rowsort
SELECT + col1 + tab2.col1 * col0 AS col1 FROM tab2
----
1360
248
4661

query I rowsort
SELECT ALL col2 * + col2 * col0 - - col0 * col0 FROM tab1
----
212032
743680
8757

query I rowsort
SELECT + tab1.col2 + + col0 + + col1 FROM tab1
----
131
189
83

query I rowsort
SELECT col1 + col2 * tab1.col0 AS col0 FROM tab1
----
188
3658
7693

query I rowsort
SELECT - col0 + + col0 * - col1 FROM tab1 WHERE ( NULL ) <> col2 * col2
----

query I rowsort
SELECT + tab2.col0 + col2 FROM tab2
----
104
117
34

onlyif mysql # use DIV operator for integer division
query I rowsort label-4500
SELECT col2 DIV + col0 + + col0 * + col0 + - col2 col2 FROM tab2
----
25
6058
6203

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4500
SELECT col2 / + col0 + + col0 * + col0 + - col2 col2 FROM tab2
----
25
6058
6203

query I rowsort
SELECT tab1.col0 + + col1 * + col1 FROM tab1
----
164
249
679

query I rowsort
SELECT DISTINCT - tab1.col1 - - col2 FROM tab1
----
28
47
83

query I rowsort
SELECT ALL col0 + + col2 - + tab1.col2 AS col2 FROM tab1
----
3
64
80

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL > col1
----

query I rowsort
SELECT + col0 + - col1 AS col1 FROM tab0 cor0
----
-2
-62
-62

query I rowsort
SELECT DISTINCT tab1.col2 + - col2 * - col1 AS col1 FROM tab1 WHERE - col0 * + col0 + + col2 * col0 IN ( + col1 )
----

query I rowsort
SELECT col1 * col2 + col0 * col0 AS col1 FROM tab1
----
1413
4666
7648

query I rowsort
SELECT + col1 + col0 + col0 * col1 FROM tab0
----
2174
3527
8279

query I rowsort
SELECT - col1 + col2 + col0 FROM tab0
----
-29
-61
80

query I rowsort
SELECT - col0 + col2 * col0 AS col0 FROM tab0 AS cor0
----
0
7209
768

query I rowsort
SELECT + col0 + col0 - + col0 FROM tab1
----
3
64
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-4512
SELECT DISTINCT - col0 DIV + col2 - col1 col1 FROM tab1
----
-11
-13
-26

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4512
SELECT DISTINCT - col0 / + col2 - col1 col1 FROM tab1
----
-11
-13
-26

query I rowsort
SELECT ALL col1 * - col1 AS col0 FROM tab1
----
-100
-169
-676

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + + tab1.col2 + col2 * col2 col1 FROM tab1
----
2996
3316
9325

query I rowsort
SELECT DISTINCT col1 + col0 * col0 FROM tab0
----
1322
662
8012

query I rowsort
SELECT DISTINCT tab0.col0 * col0 AS col1 FROM tab0
----
1225
576
7921

query I rowsort
SELECT col1 * col2 + col0 FROM tab1
----
1328
1407
634

query I rowsort
SELECT DISTINCT - col2 * + col1 AS col1 FROM tab1
----
-1248
-1404
-570

query I rowsort
SELECT DISTINCT - col0 + col0 AS col2 FROM tab0
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( col0 + + col1 + - col0 ) NOT IN ( col2 * col0 + col2 )
----

query III rowsort
SELECT * FROM tab0 WHERE - col0 * col0 + - col0 / col0 >= ( NULL )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-4523
SELECT col0 DIV - col1 FROM tab1 AS cor0
----
-6
-6
0

skipif mysql # not compatible
query I rowsort label-4523
SELECT col0 / - col1 FROM tab1 AS cor0
----
-6
-6
0

query I rowsort
SELECT cor0.col2 * + col1 AS col2 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT ALL + tab2.col1 * col2 FROM tab2
----
1534
646
837

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4526
SELECT - CAST( NULL AS SIGNED ) + 21 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4526
SELECT - CAST ( NULL AS INTEGER ) + 21 AS col0 FROM tab0
----
NULL
NULL
NULL

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 - ( col2 ) * - col2 col2 FROM tab0
----
1
1089
6724

query I rowsort
SELECT DISTINCT + - col0 * + col2 FROM tab2 AS cor0
----
-189
-2028
-3002

onlyif mysql # use DIV operator for integer division
query I rowsort label-4530
SELECT - 32 + - cor0.col2 DIV col0 AS col1 FROM tab0 AS cor0
----
-32
-32
-33

skipif mysql # not compatible
query I rowsort label-4530
SELECT - 32 + - cor0.col2 / col0 AS col1 FROM tab0 AS cor0
----
-32
-32
-33

query I rowsort
SELECT ALL + + cor0.col2 * col1 AS col0 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT ALL - + 41 FROM tab1, tab0 AS cor0
----
9 values hashing to 4ba0c102091f9cbc9fe9439b04584e70

onlyif mysql # use DIV operator for integer division
query I rowsort label-4533
SELECT ALL col2 DIV - col2 + + col2 * col1 FROM tab0 AS cor0
----
2837
7461
96

skipif mysql # not compatible
query I rowsort label-4533
SELECT ALL col2 / - col2 + + col2 * col1 FROM tab0 AS cor0
----
2837
7461
96

query I rowsort
SELECT ALL - 26 FROM tab2, tab0 AS cor0
----
9 values hashing to 47d0574274146de273829785364ada39

query I rowsort
SELECT DISTINCT - col0 * ( - tab0.col2 ) FROM tab0
----
35
7298
792

query I rowsort
SELECT - col2 * col2 * + ( col0 ) - - col1 AS col0 FROM tab2
----
-114059
-5072
-52669

query I rowsort
SELECT DISTINCT - 21 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
-21

query I rowsort
SELECT DISTINCT + ( - cor0.col1 ) FROM tab1, tab0 AS cor0, tab1 AS cor1
----
-86
-91
-97

query I rowsort
SELECT ALL + - col2 + col1 AS col2 FROM tab1 AS cor0
----
-28
-47
-83

query I rowsort
SELECT DISTINCT col2 * ( + 24 ) AS col0 FROM tab2 AS cor0
----
624
648
912

query I rowsort
SELECT ALL + + col1 + col1 * 69 FROM tab0 AS cor0
----
6020
6370
6790

query I rowsort
SELECT ALL - - ( - 8 ) AS col2 FROM tab0 AS cor0
----
-8
-8
-8

query I rowsort
SELECT ALL + 99 * 18 FROM tab0 AS cor0
----
1782
1782
1782

query I rowsort
SELECT DISTINCT - col2 + + 56 FROM tab1 cor0
----
-1
-40
2

onlyif mysql # use DIV operator for integer division
query I rowsort label-4545
SELECT + ( - 87 ) + col2 DIV + CAST( + 66 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-86
-87
-87

skipif mysql # not compatible
query I rowsort label-4545
SELECT + ( - 87 ) + col2 / + CAST ( + 66 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-86
-87
-87

onlyif mysql # use DIV operator for integer division
query I rowsort label-4546
SELECT ALL + - col2 * col2 + cor0.col0 DIV - CAST( col2 AS SIGNED ) FROM tab0 AS cor0
----
-1089
-36
-6725

skipif mysql # not compatible
query I rowsort label-4546
SELECT ALL + - col2 * col2 + cor0.col0 / - CAST ( col2 AS INTEGER ) FROM tab0 AS cor0
----
-1089
-36
-6725

onlyif mysql # use DIV operator for integer division
query I rowsort label-4547
SELECT 48 DIV + col0 FROM tab2 AS cor0
----
0
0
6

skipif mysql # not compatible
query I rowsort label-4547
SELECT 48 / + col0 FROM tab2 AS cor0
----
0
0
6

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4548
SELECT ALL + CAST( ( + col0 ) AS SIGNED ) + 26 * + 52 AS col1 FROM tab2 AS cor0
----
1359
1430
1431

skipif mysql # not compatible
query I rowsort label-4548
SELECT ALL + CAST ( ( + col0 ) AS INTEGER ) + 26 * + 52 AS col1 FROM tab2 AS cor0
----
1359
1430
1431

query I rowsort
SELECT 82 AS col1 FROM tab0 cor0
----
82
82
82

query I rowsort
SELECT DISTINCT - + 31 AS col0 FROM tab0 AS cor0
----
-31

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4551
SELECT - - CAST( NULL AS SIGNED ) + - col2 col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4551
SELECT - - CAST ( NULL AS INTEGER ) + - col2 col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + ( col0 ) * - col0 AS col1 FROM tab1 cor0
----
-4096
-6400
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + col2 * - col0 col0 FROM tab2 cor0
----
-196
-2106
-3081

onlyif mysql # use DIV operator for integer division
query I rowsort label-4554
SELECT ALL + col0 * col1 + + col2 DIV col0 FROM tab0 AS cor0
----
2065
3395
8099

skipif mysql # not compatible
query I rowsort label-4554
SELECT ALL + col0 * col1 + + col2 / col0 FROM tab0 AS cor0
----
2065
3395
8099

query I rowsort
SELECT DISTINCT 17 FROM tab0 AS cor0
----
17

query I rowsort
SELECT col0 + ( col0 ) FROM tab1 cor0
----
128
160
6

query I rowsort
SELECT DISTINCT - ( 44 ) FROM tab0
----
-44

query I rowsort
SELECT DISTINCT - cor0.col0 + col0 * + cor0.col1 AS col1 FROM tab1 AS cor0
----
576
75
960

query I rowsort
SELECT ( col2 ) * + col2 FROM tab1 AS cor0
----
2916
3249
9216

query I rowsort
SELECT - 96 + col0 FROM tab1 AS cor0
----
-16
-32
-93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + ( - col2 ) col1 FROM tab2 AS cor0
----
-26
-27
-38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - cor0.col0 col0 FROM tab2 AS cor0
----
-7
-78
-79

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4563
SELECT + col0 + + col0 * CAST( NULL AS SIGNED ) AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4563
SELECT + col0 + + col0 * CAST ( NULL AS INTEGER ) AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + + 47 FROM tab1 AS cor0
----
47
47
47

query I rowsort
SELECT ALL 23 FROM tab1, tab2 AS cor0
----
9 values hashing to d94fadcc1c8cc4fc51b78b83e04795f2

query I rowsort
SELECT ALL + ( - col0 ) AS col1 FROM tab2
----
-7
-78
-79

query I rowsort
SELECT - - col1 + - col2 AS col0 FROM tab0 cor0
----
53
9
96

query I rowsort
SELECT DISTINCT col1 + col0 * + col2 FROM tab0 AS cor0
----
132
7389
878

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 * 1 col1 FROM tab1 AS cor0
----
-3
-64
-80

query I rowsort
SELECT + cor0.col1 * 86 AS col1 FROM tab2 AS cor0
----
1462
2666
5074

query I rowsort
SELECT ALL - - col0 * - 1 - - 24 AS col2 FROM tab1 AS cor0
----
-40
-56
21

query I rowsort
SELECT DISTINCT - - col1 * 55 FROM tab1 AS cor0
----
1430
550
715

query I rowsort
SELECT ALL + - col2 + + ( col0 ) * + col0 * - col2 AS col1 FROM tab2 AS cor0
----
-1350
-158210
-237196

query I rowsort
SELECT - col0 + + 76 AS col2 FROM tab2 AS cor0
----
-2
-3
69

query I rowsort
SELECT ALL ( - col2 ) + - col1 * tab0.col0 FROM tab0
----
-2097
-3396
-8181

query I rowsort
SELECT + col0 * ( - col1 ) FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT cor0.col1 + 2 FROM tab2 AS cor0
----
19
33
61

query I rowsort
SELECT ALL col1 * + 26 - col1 AS col0 FROM tab1 AS cor0
----
250
325
650

query I rowsort
SELECT ALL + 49 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to cb40783c0fff72e8802cdf0682e7cb55

query I rowsort
SELECT cor0.col2 * 64 AS col0 FROM tab0 AS cor0
----
2112
5248
64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 col0 FROM tab2, tab2 cor0
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3

query I rowsort
SELECT 93 - tab0.col0 FROM tab0
----
4
58
69

query I rowsort
SELECT - 85 + + tab0.col0 AS col2 FROM tab0
----
-50
-61
4

onlyif mysql # use DIV operator for integer division
query I rowsort label-4584
SELECT + + cor0.col0 DIV col0 FROM tab0 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4584
SELECT + + cor0.col0 / col0 FROM tab0 cor0
----
1
1
1

query I rowsort
SELECT 56 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 9c4523312174730bbc525b9977aa99fa

query IIIIIIIIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2, tab1 AS cor1, tab0 cor2
----
972 values hashing to 9b91cf9fcc064ee1c13074a678b72ac7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * cor0.col0 col1 FROM tab2 AS cor0
----
-49
-6084
-6241

query I rowsort
SELECT DISTINCT - col0 * col2 + 71 FROM tab0 AS cor0
----
-721
-7227
36

query I rowsort
SELECT + col0 * + ( - col0 ) FROM tab2 AS cor0
----
-49
-6084
-6241

query I rowsort
SELECT DISTINCT - + col1 * col0 * + col2 AS col1 FROM tab2 AS cor0
----
-119652
-51034
-5859

onlyif mysql # use DIV operator for integer division
query I rowsort label-4591
SELECT col2 DIV + col0 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-4591
SELECT col2 / + col0 FROM tab0 AS cor0
----
0
0
1

query I rowsort
SELECT DISTINCT + + col0 + 1 AS col1 FROM tab2 AS cor0
----
79
8
80

query I rowsort
SELECT + 87 + + col0 * + col2 FROM tab1
----
249
3735
7767

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 - + 36 * - col1 * + col0 col1 FROM tab0
----
122221
291646
74337

query I rowsort
SELECT + + col1 - 47 AS col0 FROM tab1 AS cor0
----
-21
-34
-37

query I rowsort
SELECT - col1 * - col0 FROM tab1 cor0
----
1040
640
78

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4597
SELECT CAST( NULL AS SIGNED ) * 81 + col2 * col2 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4597
SELECT CAST ( NULL AS INTEGER ) * 81 + col2 * col2 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + + ( - col2 ) - col1 * - col0 AS col0 FROM tab2 AS cor0
----
1305
190
4576

onlyif mysql # use DIV operator for integer division
query I rowsort label-4599
SELECT col0 + cor0.col1 DIV col2 + col2 AS col2 FROM tab0 AS cor0
----
133
172
59

skipif mysql # not compatible
query I rowsort label-4599
SELECT col0 + cor0.col1 / col2 + col2 AS col2 FROM tab0 AS cor0
----
133
172
59

query I rowsort
SELECT ALL - + col2 * + col1 + ( - col1 ) FROM tab2 AS cor0
----
-1593
-663
-868

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 + + col0 * - 62 col2 FROM tab2 AS cor0
----
-407
-4810
-4860

query I rowsort
SELECT - cor0.col2 * col2 + col0 + 79 AS col2 FROM tab0 AS cor0
----
-6556
-986
113

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 26 * col2 col2 FROM tab2 AS cor0
----
676
702
988

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 21 * - col0 + cor0.col0 * col2 + col1 col0 FROM tab0 AS cor0
----
1382
867
9258

query I rowsort
SELECT ALL - + 81 + col1 AS col1 FROM tab1 AS cor0
----
-55
-68
-71

query I rowsort
SELECT - col1 * + col1 + - col0 FROM tab1 AS cor0
----
-164
-249
-679

query I rowsort
SELECT ALL - col2 + - col0 * - col0 - - cor0.col0 AS col1 FROM tab1 cor0
----
-42
4103
6384

query I rowsort
SELECT ALL + 61 + cor0.col1 FROM tab2 AS cor0
----
120
78
92

query I rowsort
SELECT + 63 + col0 AS col1 FROM tab1 AS cor0
----
127
143
66

query I rowsort
SELECT - col0 * col0 + - 58 FROM tab1 AS cor0
----
-4154
-6458
-67

query I rowsort
SELECT DISTINCT - 61 + col2 FROM tab2 AS cor0
----
-23
-34
-35

query I rowsort
SELECT + + col0 * cor0.col2 + 78 * 30 FROM tab1 AS cor0
----
10020
2502
5988

query I rowsort
SELECT DISTINCT col2 + - cor0.col2 AS col2 FROM tab2 AS cor0
----
0

query I rowsort
SELECT ALL - 25 AS col0 FROM tab2 AS cor0
----
-25
-25
-25

query I rowsort
SELECT DISTINCT + col2 * col1 * - col1 AS col1 FROM tab0 AS cor0
----
-244068
-679042
-9409

query I rowsort
SELECT + cor0.col1 + col1 - + col0 * - col2 AS col0 FROM tab2 AS cor0
----
2146
251
3036

query I rowsort
SELECT DISTINCT - + col1 + col2 * col0 AS col0 FROM tab0 cor0
----
-62
706
7207

onlyif mysql # use DIV operator for integer division
query I rowsort label-4618
SELECT ALL 74 DIV col0 - ( col1 ) FROM tab1 cor0
----
-13
-2
-9

skipif mysql # not compatible
query I rowsort label-4618
SELECT ALL 74 / col0 - ( col1 ) FROM tab1 cor0
----
-13
-2
-9

query I rowsort
SELECT + col1 * - col2 + + 38 AS col1 FROM tab0 AS cor0
----
-2800
-59
-7424

query I rowsort
SELECT 8 FROM tab1 AS cor0
----
8
8
8

onlyif mysql # use DIV operator for integer division
query I rowsort label-4621
SELECT DISTINCT + col1 + + cor0.col1 DIV ( col1 ) FROM tab0 AS cor0
----
87
92
98

skipif mysql # not compatible
query I rowsort label-4621
SELECT DISTINCT + col1 + + cor0.col1 / ( col1 ) FROM tab0 AS cor0
----
87
92
98

query I rowsort
SELECT ALL + + col1 + col0 FROM tab2 AS cor0
----
137
38
96

query I rowsort
SELECT col1 * + col2 + col2 - - col2 FROM tab2 AS cor0
----
1586
722
891

query I rowsort
SELECT DISTINCT 30 * + col2 FROM tab2 AS cor0
----
1140
780
810

query I rowsort
SELECT tab1.col2 * + col0 + col1 AS col1 FROM tab1
----
188
3658
7693

query I rowsort
SELECT DISTINCT col0 * ( col2 ) + - col2 FROM tab2 AS cor0
----
162
2002
2964

query I rowsort
SELECT - col2 * 17 + col0 AS col2 FROM tab2 AS cor0
----
-364
-452
-567

query I rowsort
SELECT DISTINCT + + col2 * + col0 + cor0.col1 AS col1 FROM tab1 AS cor0
----
188
3658
7693

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4629
SELECT DISTINCT - cor0.col0 + CAST( 55 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-25
-9
52

skipif mysql # not compatible
query I rowsort label-4629
SELECT DISTINCT - cor0.col0 + CAST ( 55 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-25
-9
52

onlyif mysql # use DIV operator for integer division
query I rowsort label-4630
SELECT ALL col1 DIV col0 + 86 FROM tab1
----
86
86
94

skipif mysql # not compatible
query I rowsort label-4630
SELECT ALL col1 / col0 + 86 FROM tab1
----
86
86
94

query I rowsort
SELECT cor1.col2 + 90 AS col0 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 6256ffdcbb980d3bf7725a2482f16587

query I rowsort
SELECT ALL col1 + + col0 AS col1 FROM tab1
----
29
74
93

onlyif mysql # use DIV operator for integer division
query I rowsort label-4633
SELECT + col2 DIV + col0 + 50 * 49 FROM tab1
----
2450
2451
2468

skipif mysql # not compatible
query I rowsort label-4633
SELECT + col2 / + col0 + 50 * 49 FROM tab1
----
2450
2451
2468

query I rowsort
SELECT - col1 * + ( col1 ) AS col2 FROM tab0 cor0
----
-7396
-8281
-9409

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 91 col2 FROM tab2 AS cor0
----
91
91
91

onlyif mysql # use DIV operator for integer division
query I rowsort label-4636
SELECT DISTINCT + + col2 - 84 DIV + col0 AS col0 FROM tab1 AS cor0
----
26
56
95

skipif mysql # not compatible
query I rowsort label-4636
SELECT DISTINCT + + col2 - 84 / + col0 AS col0 FROM tab1 AS cor0
----
26
56
95

query I rowsort
SELECT ALL - ( - 45 ) FROM tab1 AS cor0
----
45
45
45

query I rowsort
SELECT ALL + col2 + + 80 * - col1 FROM tab0 AS cor0
----
-6847
-7198
-7759

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab1 AS cor0, tab2 AS cor1, tab2 cor2
----
972 values hashing to f94a4a64ac54a61fc21f78e2b831ebee

query I rowsort
SELECT ALL - 99 FROM tab2 cor0 CROSS JOIN tab1, tab0 AS cor1, tab1 AS cor2
----
81 values hashing to 501094e80bab5e6e81bd79b84ea81e69

query I rowsort
SELECT cor0.col0 AS col0 FROM tab0, tab0 cor0
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63

query I rowsort
SELECT ALL col0 - + ( col2 ) AS col1 FROM tab2
----
-20
41
52

query I rowsort
SELECT - 28 AS col0 FROM tab2
----
-28
-28
-28

onlyif mysql # use DIV operator for integer division
query I rowsort label-4644
SELECT ALL - 26 * + 65 * - col2 - + CAST( col2 AS SIGNED ) DIV + tab0.col1 FROM tab0
----
138580
1690
55770

skipif mysql # not compatible
query I rowsort label-4644
SELECT ALL - 26 * + 65 * - col2 - + CAST ( col2 AS INTEGER ) / + tab0.col1 FROM tab0
----
138580
1690
55770

query I rowsort
SELECT - ( col2 ) + + col1 * tab2.col0 - - col2 AS col0 FROM tab2
----
1343
217
4602

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4646
SELECT CAST( col2 AS SIGNED ) * col1 AS col0 FROM tab1 AS cor0
----
1248
1404
570

skipif mysql # not compatible
query I rowsort label-4646
SELECT CAST ( col2 AS INTEGER ) * col1 AS col0 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT DISTINCT - col0 * + 89 - col2 FROM tab0 cor0
----
-2169
-3116
-8003

query I rowsort
SELECT DISTINCT 18 AS col2 FROM tab0 AS cor0
----
18

query I rowsort
SELECT DISTINCT - col0 * + col2 + col1 FROM tab1
----
-136
-3638
-7667

onlyif mysql # use DIV operator for integer division
query I rowsort label-4650
SELECT - cor0.col0 DIV col2 - + col2 AS col2 FROM tab1 AS cor0
----
-54
-58
-96

skipif mysql # not compatible
query I rowsort label-4650
SELECT - cor0.col0 / col2 - + col2 AS col2 FROM tab1 AS cor0
----
-54
-58
-96

query I rowsort
SELECT DISTINCT + + col2 - - ( 74 ) FROM tab2 AS cor0
----
100
101
112

query I rowsort
SELECT ALL - - col2 + 80 AS col0 FROM tab2 AS cor0
----
106
107
118

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4653
SELECT - cor0.col2 + CAST( + 57 AS SIGNED ) FROM tab0 AS cor0
----
-25
24
56

skipif mysql # not compatible
query I rowsort label-4653
SELECT - cor0.col2 + CAST ( + 57 AS INTEGER ) FROM tab0 AS cor0
----
-25
24
56

query I rowsort
SELECT DISTINCT - col0 * + cor0.col1 + col2 AS col0 FROM tab0 AS cor0
----
-2031
-3394
-8017

onlyif mysql # use DIV operator for integer division
query I rowsort label-4655
SELECT ALL + + col0 DIV + ( col1 ) + col0 * + ( + 93 ) * - cor0.col2 + col2 FROM tab0 AS cor0
----
-3254
-678632
-73623

skipif mysql # not compatible
query I rowsort label-4655
SELECT ALL + + col0 / + ( col1 ) + col0 * + ( + 93 ) * - cor0.col2 + col2 FROM tab0 AS cor0
----
-3254
-678632
-73623

query I rowsort
SELECT ALL - col0 * + 54 + 67 FROM tab2 AS cor0
----
-311
-4145
-4199

query I rowsort
SELECT ALL - - cor0.col1 * cor0.col0 + + 71 * + col2 * + 29 FROM tab0 AS cor0
----
176937
5454
70011

query I rowsort
SELECT ALL - 54 FROM tab2
----
-54
-54
-54

query I rowsort
SELECT + col2 * col2 + cor0.col2 * - col2 FROM tab2 cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab1.col0 + 0 col1 FROM tab1
----
3
64
80

query I rowsort
SELECT + - 48 AS col0 FROM tab1 AS cor0
----
-48
-48
-48

query I rowsort
SELECT ALL - 62 AS col0 FROM tab1, tab2 cor0
----
9 values hashing to f0e93f6ff5fc3cf50a14e276206dad5c

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab0.col2 col1 FROM tab0
----
1
33
82

onlyif mysql # use DIV operator for integer division
query I rowsort label-4664
SELECT cor0.col2 * col0 + - CAST( col2 AS SIGNED ) DIV + col0 FROM tab0 AS cor0
----
35
7298
791

skipif mysql # not compatible
query I rowsort label-4664
SELECT cor0.col2 * col0 + - CAST ( col2 AS INTEGER ) / + col0 FROM tab0 AS cor0
----
35
7298
791

query I rowsort
SELECT DISTINCT ( 60 ) + - col2 AS col0 FROM tab1
----
-36
3
6

query I rowsort
SELECT DISTINCT + - 5 * - col2 AS col0 FROM tab2 AS cor0
----
130
135
190

query I rowsort
SELECT ALL + cor0.col1 + col1 AS col2 FROM tab2 AS cor0
----
118
34
62

query I rowsort
SELECT ALL - col2 + - col0 FROM tab1
----
-121
-176
-57

query IIIIIIIII rowsort
SELECT * FROM tab1, tab2 AS cor0 CROSS JOIN tab0 cor1
----
243 values hashing to 566180e0144350a78b0ef3318e8f4c00

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4670
SELECT + CAST( NULL AS SIGNED ) + + col2 + col0 * col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4670
SELECT + CAST ( NULL AS INTEGER ) + + col2 + col0 * col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col1 * tab2.col0 + col2 AS col1 FROM tab2
----
1381
244
4628

query I rowsort
SELECT 44 * + col1 AS col1 FROM tab0
----
3784
4004
4268

query I rowsort
SELECT DISTINCT + col1 * - col2 AS col0 FROM tab0
----
-2838
-7462
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 37 * - col2 col2 FROM tab2 AS cor0
----
-1406
-962
-999

query I rowsort
SELECT ALL cor0.col0 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a

query I rowsort
SELECT ALL - 38 * + cor0.col2 * col1 FROM tab2 AS cor0
----
-24548
-31806
-58292

query I rowsort
SELECT - 23 * + col1 FROM tab0 AS cor0
----
-1978
-2093
-2231

query I rowsort
SELECT ALL + ( col2 ) + - col0 FROM tab2 AS cor0
----
-41
-52
20

query I rowsort
SELECT ALL + 34 * - col1 FROM tab1 AS cor0
----
-340
-442
-884

query I rowsort
SELECT + 85 + col0 * + col2 FROM tab2 AS cor0
----
2113
274
3087

onlyif mysql # use DIV operator for integer division
query I rowsort label-4681
SELECT DISTINCT + 95 DIV col1 FROM tab2
----
1
3
5

skipif mysql # not compatible
query I rowsort label-4681
SELECT DISTINCT + 95 / col1 FROM tab2
----
1
3
5

query I rowsort
SELECT - - col1 + + 48 AS col2 FROM tab1 AS cor0
----
58
61
74

onlyif mysql # use DIV operator for integer division
query I rowsort label-4683
SELECT - col2 * + col1 + + col0 DIV col1 + cor0.col0 AS col2 FROM tab1 AS cor0
----
-1162
-1401
-500

skipif mysql # not compatible
query I rowsort label-4683
SELECT - col2 * + col1 + + col0 / col1 + cor0.col0 AS col2 FROM tab1 AS cor0
----
-1162
-1401
-500

query I rowsort
SELECT DISTINCT 86 FROM tab2, tab1 cor0, tab0 AS cor1
----
86

query I rowsort
SELECT + col1 * - col2 + ( col1 ) AS col2 FROM tab1
----
-1235
-1378
-560

query I rowsort
SELECT + 61 FROM tab1, tab2 AS cor0
----
9 values hashing to 07149905a72bd87553381f34d19ed290

query I rowsort
SELECT ALL ( 15 ) FROM tab2, tab1 AS cor0
----
9 values hashing to d1d280d38bf9c2d5d5ec90dd43aeaffd

query I rowsort
SELECT ALL - - tab1.col2 * - 57 AS col0 FROM tab1, tab0, tab0 AS cor0
----
27 values hashing to 7ab6a49f65b0dc01c7c572ba5c21131f

query I rowsort
SELECT DISTINCT - 79 * + cor0.col1 FROM tab0, tab0 AS cor0
----
-6794
-7189
-7663

query I rowsort
SELECT - - col2 * + col1 AS col2 FROM tab1 cor0
----
1248
1404
570

query I rowsort
SELECT + col2 + + col0 * 4 AS col1 FROM tab1 AS cor0
----
313
416
66

query I rowsort
SELECT + col2 + - 81 * + col0 FROM tab0 AS cor0
----
-1911
-2834
-7127

query I rowsort
SELECT ALL 39 FROM tab0, tab1 AS cor0
----
9 values hashing to 5ecc4d3de68ae828a2d522dff8571cbf

query I rowsort
SELECT ( col1 * col1 + 29 ) FROM tab1
----
129
198
705

skipif mysql # not compatible
query I rowsort
SELECT + CAST ( col2 AS REAL ) - + col1 * + col0 AS col0 FROM tab2 AS cor0
----
-1305
-190
-4576

onlyif mysql # use DIV operator for integer division
query I rowsort label-4696
SELECT col0 DIV + col1 AS col0 FROM tab2
----
0
1
4

skipif mysql # not compatible
query I rowsort label-4696
SELECT col0 / + col1 AS col0 FROM tab2
----
0
1
4

query I rowsort
SELECT + - col2 * - col1 + cor0.col2 AS col1 FROM tab1 AS cor0
----
1344
1458
627

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4698
SELECT ALL - + CAST( + col2 AS SIGNED ) FROM tab1 AS cor0
----
-54
-57
-96

skipif mysql # not compatible
query I rowsort label-4698
SELECT ALL - + CAST ( + col2 AS INTEGER ) FROM tab1 AS cor0
----
-54
-57
-96

query I rowsort
SELECT - ( 38 ) AS col1 FROM tab2 AS cor0
----
-38
-38
-38

query I rowsort
SELECT + - col0 * col0 - - col1 * col0 FROM tab2 AS cor0
----
-1482
-4898
168

query I rowsort
SELECT ( + col0 ) + col0 + 21 FROM tab0
----
199
69
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * + col2 + - col2 * col2 * + 74 col1 FROM tab0
----
-39
-490278
-79794

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4703
SELECT + - col2 * + col2 + CAST( NULL AS SIGNED ) * 51 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4703
SELECT + - col2 * + col2 + CAST ( NULL AS INTEGER ) * 51 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 6 FROM tab1 cor0
----
6
6
6

onlyif mysql # use DIV operator for integer division
query I rowsort label-4705
SELECT ALL + - col2 * - 85 + col0 DIV - 23 AS col0 FROM tab2 AS cor0
----
2207
2295
3227

skipif mysql # not compatible
query I rowsort label-4705
SELECT ALL + - col2 * - 85 + col0 / - 23 AS col0 FROM tab2 AS cor0
----
2207
2295
3227

query I rowsort
SELECT - 43 + - 96 FROM tab2 AS cor0
----
-139
-139
-139

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 22 + 31 col2 FROM tab1 AS cor0
----
53

query I rowsort
SELECT + col0 * col0 + col2 * - col1 * + col1 FROM tab0 AS cor0
----
-243492
-671121
-8184

query I rowsort
SELECT ALL + ( - ( + col2 ) ) + col0 AS col0 FROM tab0 cor0
----
-9
34
7

query I rowsort
SELECT cor2.col2 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0, tab0 AS cor1, tab1 AS cor2
----
81 values hashing to 9d355f1f2edc347a359dad00d2d3f886

query I rowsort
SELECT DISTINCT col0 * - tab0.col0 FROM tab0
----
-1225
-576
-7921

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4712
SELECT ALL - CAST( NULL AS SIGNED ) - + col2 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4712
SELECT ALL - CAST ( NULL AS INTEGER ) - + col2 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col1 * - col0 + col2 AS col2 FROM tab2 AS cor0
----
-1305
-190
-4576

query I rowsort
SELECT ALL - ( + 48 ) + col1 * - col0 FROM tab0
----
-2112
-3443
-8147

query I rowsort
SELECT + + cor0.col0 * cor0.col2 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT ALL + cor0.col1 * - col0 * col2 + + col2 * - col0 FROM tab1 cor0
----
-107520
-40128
-4374

query I rowsort
SELECT ( 37 ) FROM tab2, tab0, tab1 AS cor0
----
27 values hashing to c023509f63faa044d654943e6df55ca2

query I rowsort
SELECT ALL col1 + ( - col1 ) * + ( - col0 ) FROM tab2
----
1360
248
4661

query I rowsort
SELECT + col0 + 94 AS col0 FROM tab2
----
101
172
173

query I rowsort
SELECT col2 * col0 - - tab2.col2 FROM tab2
----
2054
216
3040

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4721
SELECT CAST( NULL AS SIGNED ) + tab0.col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4721
SELECT CAST ( NULL AS INTEGER ) + tab0.col1 FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + col1 col2 FROM tab2
----
55
58
85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + cor0.col2 + tab1.col0 col2 FROM tab1, tab0, tab0 AS cor0
----
27 values hashing to 5e52e24329c96ca96802109e5c7c8bdf

query I rowsort
SELECT ALL col1 * + col0 AS col0 FROM tab2
----
1343
217
4602

query I rowsort
SELECT DISTINCT + - cor0.col1 + - cor0.col1 AS col2 FROM tab0 AS cor0
----
-172
-182
-194

query I rowsort
SELECT - + col0 * col1 + + col0 AS col0 FROM tab2 AS cor0
----
-1264
-210
-4524

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4727
SELECT + col1 * CAST( NULL AS SIGNED ) - col0 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4727
SELECT + col1 * CAST ( NULL AS INTEGER ) - col0 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + - col2 - col2 FROM tab1 cor0
----
-108
-114
-192

query I rowsort
SELECT DISTINCT + col0 - col2 * - cor0.col1 AS col0 FROM tab2 AS cor0
----
1612
725
844

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * col1 col1 FROM tab1
----
100
169
676

query I rowsort
SELECT DISTINCT col0 * - col0 * col0 FROM tab2
----
-343
-474552
-493039

query I rowsort
SELECT - 99 AS col0 FROM tab0
----
-99
-99
-99

query I rowsort
SELECT ALL + 81 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 7a8ea30c6803aeddc5fca5b5821d8267

onlyif mysql # use DIV operator for integer division
query I rowsort label-4734
SELECT - + col0 DIV ( 65 ) + - col0 * col2 AS col0 FROM tab2 cor0
----
-189
-2029
-3003

skipif mysql # not compatible
query I rowsort label-4734
SELECT - + col0 / ( 65 ) + - col0 * col2 AS col0 FROM tab2 cor0
----
-189
-2029
-3003

onlyif mysql # use DIV operator for integer division
query I rowsort label-4735
SELECT + col1 DIV - CAST( + col2 AS SIGNED ) FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4735
SELECT + col1 / - CAST ( + col2 AS INTEGER ) FROM tab1
----
0
0
0

query I rowsort
SELECT + - col1 + ( col1 ) - - col1 FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT col2 + - col0 - - 7 AS col1 FROM tab2 AS cor0
----
-34
-45
27

query I rowsort
SELECT col2 * - col1 + - col2 - - col2 AS col1 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT - col1 * col2 + col1 AS col1 FROM tab2 cor0
----
-1475
-629
-806

query I rowsort
SELECT ALL + tab0.col2 * - 14 - 85 * col0 FROM tab0
----
-2502
-2989
-8713

query I rowsort
SELECT - tab2.col1 * - 53 + tab2.col0 * - col2 - ( - 6 + - col0 ) AS col0 FROM tab2
----
-2016
1183
1467

query I rowsort
SELECT ALL tab1.col1 - col0 FROM tab1
----
-54
-67
23

query I rowsort
SELECT + col2 * 40 FROM tab1
----
2160
2280
3840

query I rowsort
SELECT DISTINCT - 70 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
-70

query I rowsort
SELECT col1 + - col1 * col2 - col0 FROM tab1
----
-1315
-1381
-624

query I rowsort
SELECT ALL + - col0 + ( + ( - col1 ) ) FROM tab1 AS cor0
----
-29
-74
-93

onlyif mysql # use DIV operator for integer division
query I rowsort label-4747
SELECT DISTINCT + col2 + cor0.col0 + col1 DIV - col0 AS col1 FROM tab0 AS cor0
----
170
34
54

skipif mysql # not compatible
query I rowsort label-4747
SELECT DISTINCT + col2 + cor0.col0 + col1 / - col0 AS col1 FROM tab0 AS cor0
----
170
34
54

query I rowsort
SELECT DISTINCT - 90 * ( + col2 ) FROM tab1 AS cor0
----
-4860
-5130
-8640

query I rowsort
SELECT + - col0 * + col1 * - col0 FROM tab2 AS cor0
----
106097
1519
358956

query I rowsort
SELECT col1 - + 46 AS col2 FROM tab1 AS cor0
----
-20
-33
-36

onlyif mysql # use DIV operator for integer division
query I rowsort label-4751
SELECT + col1 + + 48 DIV cor0.col0 FROM tab1 AS cor0
----
10
13
42

skipif mysql # not compatible
query I rowsort label-4751
SELECT + col1 + + 48 / cor0.col0 FROM tab1 AS cor0
----
10
13
42

query I rowsort
SELECT ALL + + col0 * - col2 FROM tab0 AS cor0
----
-35
-7298
-792

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 col2 FROM tab1 cor0
----
10
13
26

query I rowsort
SELECT - col0 * + col1 + + col1 AS col0 FROM tab0 AS cor0
----
-1978
-3298
-8008

onlyif mysql # use DIV operator for integer division
query I rowsort label-4755
SELECT ALL + cor0.col1 DIV + col1 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4755
SELECT ALL + cor0.col1 / + col1 FROM tab1 AS cor0
----
1
1
1

query I rowsort
SELECT + 57 * + col2 - - col0 * - col2 FROM tab1 AS cor0
----
-2208
-399
2916

query I rowsort
SELECT DISTINCT - 8 + - col2 AS col2 FROM tab1 AS cor0
----
-104
-62
-65

onlyif mysql # use DIV operator for integer division
query I rowsort label-4758
SELECT + - 59 DIV - ( cor0.col0 + - col1 ) AS col0 FROM tab0 AS cor0
----
-29
0
0

skipif mysql # not compatible
query I rowsort label-4758
SELECT + - 59 / - ( cor0.col0 + - col1 ) AS col0 FROM tab0 AS cor0
----
-29
0
0

query I rowsort
SELECT ALL 90 AS col0 FROM tab1 AS cor0
----
90
90
90

query I rowsort
SELECT + - ( - col2 ) * - col0 + + 13 - + col1 FROM tab1 cor0
----
-175
-3645
-7680

onlyif mysql # use DIV operator for integer division
query I rowsort label-4761
SELECT - ( + col0 ) DIV + col0 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-4761
SELECT - ( + col0 ) / + col0 FROM tab1 AS cor0
----
-1
-1
-1

onlyif mysql # use DIV operator for integer division
query I rowsort label-4762
SELECT col2 - - col1 DIV + 41 FROM tab0
----
3
35
84

skipif mysql # not compatible
query I rowsort label-4762
SELECT col2 - - col1 / + 41 FROM tab0
----
3
35
84

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4763
SELECT DISTINCT - - CAST( - ( col0 ) AS SIGNED ) FROM tab2 AS cor0
----
-7
-78
-79

skipif mysql # not compatible
query I rowsort label-4763
SELECT DISTINCT - - CAST ( - ( col0 ) AS INTEGER ) FROM tab2 AS cor0
----
-7
-78
-79

query I rowsort
SELECT DISTINCT - - cor0.col2 + + col1 AS col1 FROM tab0 AS cor0
----
119
173
98

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4765
SELECT + - CAST( + ( + col1 ) AS SIGNED ) + + col2 * 53 * col0 AS col0 FROM tab1 AS cor0
----
193334
407027
8560

skipif mysql # not compatible
query I rowsort label-4765
SELECT + - CAST ( + ( + col1 ) AS INTEGER ) + + col2 * 53 * col0 AS col0 FROM tab1 AS cor0
----
193334
407027
8560

query I rowsort
SELECT ALL col0 * - cor0.col1 + - col2 FROM tab0 cor0
----
-2097
-3396
-8181

onlyif mysql # use DIV operator for integer division
query I rowsort label-4767
SELECT - col2 + + cor0.col0 DIV cor0.col0 AS col0 FROM tab0 AS cor0
----
-32
-81
0

skipif mysql # not compatible
query I rowsort label-4767
SELECT - col2 + + cor0.col0 / cor0.col0 AS col0 FROM tab0 AS cor0
----
-32
-81
0

query I rowsort
SELECT + ( col1 ) + - col2 AS col1 FROM tab0 AS cor0
----
53
9
96

query I rowsort
SELECT ALL - ( + ( - col0 ) ) + ( col1 ) FROM tab0 cor0
----
110
132
180

query I rowsort
SELECT - - col2 + - col1 * + col0 FROM tab0 AS cor0
----
-2031
-3394
-8017

query I rowsort
SELECT DISTINCT - + col1 + col0 + - col0 AS col0 FROM tab0 AS cor0
----
-86
-91
-97

query I rowsort
SELECT DISTINCT - col1 * + cor0.col0 FROM tab0 cor0
----
-2064
-3395
-8099

query I rowsort
SELECT ALL + col0 * + col1 * col1 AS col2 FROM tab1
----
13520
2028
6400

query I rowsort
SELECT DISTINCT 2 * - col2 AS col1 FROM tab0 AS cor0
----
-164
-2
-66

onlyif mysql # use DIV operator for integer division
query I rowsort label-4775
SELECT ALL - + 72 * col2 + + 49 DIV cor0.col2 FROM tab0 AS cor0
----
-23
-2375
-5904

skipif mysql # not compatible
query I rowsort label-4775
SELECT ALL - + 72 * col2 + + 49 / cor0.col2 FROM tab0 AS cor0
----
-23
-2375
-5904

query I rowsort
SELECT ALL col2 + col1 * + col1 FROM tab1 AS cor0
----
157
265
730

query I rowsort
SELECT DISTINCT - 68 - + cor0.col2 AS col0 FROM tab2 AS cor0
----
-106
-94
-95

onlyif mysql # use DIV operator for integer division
query I rowsort label-4778
SELECT 19 DIV col2 + + col0 AS col1 FROM tab1 AS cor0
----
3
64
80

skipif mysql # not compatible
query I rowsort label-4778
SELECT 19 / col2 + + col0 AS col1 FROM tab1 AS cor0
----
3
64
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-4779
SELECT 21 DIV col2 + ( - col0 ) AS col1 FROM tab1 AS cor0
----
-3
-64
-80

skipif mysql # not compatible
query I rowsort label-4779
SELECT 21 / col2 + ( - col0 ) AS col1 FROM tab1 AS cor0
----
-3
-64
-80

query I rowsort
SELECT DISTINCT col2 * col0 + cor0.col2 FROM tab0 AS cor0
----
36
7380
825

query I rowsort
SELECT DISTINCT 33 - + col0 FROM tab0 AS cor0
----
-2
-56
9

query I rowsort
SELECT ALL - 14 * + col0 * + 31 + col1 AS col0 FROM tab1 AS cor0
----
-1276
-27766
-34707

query I rowsort
SELECT ALL cor0.col2 * - col2 FROM tab2 AS cor0
----
-1444
-676
-729

query I rowsort
SELECT + col2 * col0 FROM tab1 cor0
----
162
3648
7680

onlyif mysql # use DIV operator for integer division
query I rowsort label-4785
SELECT ALL + - col2 + + col2 * cor0.col2 DIV - cor0.col1 FROM tab0 AS cor0
----
-1
-155
-45

skipif mysql # not compatible
query I rowsort label-4785
SELECT ALL + - col2 + + col2 * cor0.col2 / - cor0.col1 FROM tab0 AS cor0
----
-1
-155
-45

query I rowsort
SELECT DISTINCT + ( - cor0.col1 ) FROM tab0 cor0
----
-86
-91
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-4787
SELECT ALL + + col0 DIV + col2 + + col2 AS col1 FROM tab1 AS cor0
----
54
58
96

skipif mysql # not compatible
query I rowsort label-4787
SELECT ALL + + col0 / + col2 + + col2 AS col1 FROM tab1 AS cor0
----
54
58
96

query I rowsort
SELECT ( + col1 ) AS col1 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT + cor1.col2 AS col2 FROM tab2, tab0 cor0, tab2 AS cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5

onlyif mysql # use DIV operator for integer division
query I rowsort label-4790
SELECT ALL - col1 DIV col2 + cor0.col1 FROM tab0 AS cor0
----
0
84
90

skipif mysql # not compatible
query I rowsort label-4790
SELECT ALL - col1 / col2 + cor0.col1 FROM tab0 AS cor0
----
0
84
90

query I rowsort
SELECT ALL + col0 + + col2 AS col0 FROM tab0 AS cor0
----
171
36
57

query I rowsort
SELECT col0 + + cor0.col1 * - col1 FROM tab0 AS cor0
----
-7372
-8192
-9374

query I rowsort
SELECT ALL col2 + + col2 FROM tab0 AS cor0
----
164
2
66

onlyif mysql # use DIV operator for integer division
query I rowsort label-4794
SELECT + col2 + + col1 * col0 DIV - col0 AS col2 FROM tab2 AS cor0
----
-33
-4
21

skipif mysql # not compatible
query I rowsort label-4794
SELECT + col2 + + col1 * col0 / - col0 AS col2 FROM tab2 AS cor0
----
-33
-4
21

query I rowsort
SELECT ( - col2 ) + + tab0.col0 AS col2 FROM tab0
----
-9
34
7

query I rowsort
SELECT ALL + ( ( col2 ) ) * cor0.col1 AS col0 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT DISTINCT - + cor0.col1 + - col1 AS col2 FROM tab2 cor0
----
-118
-34
-62

onlyif mysql # use DIV operator for integer division
query I rowsort label-4798
SELECT ALL - 3 * 29 + - col2 DIV - 31 AS col1 FROM tab2 AS cor0
----
-86
-87
-87

skipif mysql # not compatible
query I rowsort label-4798
SELECT ALL - 3 * 29 + - col2 / - 31 AS col1 FROM tab2 AS cor0
----
-86
-87
-87

onlyif mysql # use DIV operator for integer division
query I rowsort label-4799
SELECT DISTINCT + + col2 DIV col0 + col0 FROM tab0 cor0
----
25
35
89

skipif mysql # not compatible
query I rowsort label-4799
SELECT DISTINCT + + col2 / col0 + col0 FROM tab0 cor0
----
25
35
89

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4800
SELECT ALL - 41 * + cor0.col1 + col2 + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4800
SELECT ALL - 41 * + cor0.col1 + col2 + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab2 AS cor0, tab2, tab1 AS cor1
----
972 values hashing to 4c46de5c1773124597e14f3b372fc4ea

query I rowsort
SELECT DISTINCT - 40 AS col0 FROM tab1, tab2 AS cor0
----
-40

query I rowsort
SELECT DISTINCT - ( - col0 ) * - col2 + - col1 - - col0 * col0 FROM tab2 AS cor0
----
-171
3222
3997

query I rowsort
SELECT - - col0 * - 52 + col0 * col1 AS col1 FROM tab2 cor0
----
-147
-2765
546

onlyif mysql # use DIV operator for integer division
query I rowsort label-4805
SELECT + col1 DIV - col0 + + col0 FROM tab0 AS cor0
----
21
33
88

skipif mysql # not compatible
query I rowsort label-4805
SELECT + col1 / - col0 + + col0 FROM tab0 AS cor0
----
21
33
88

query I rowsort
SELECT - col1 * 17 + + cor0.col2 AS col2 FROM tab0 AS cor0
----
-1429
-1465
-1648

query I rowsort
SELECT ALL - + col2 * + col0 + - col2 * 54 AS col2 FROM tab2 AS cor0
----
-1647
-3432
-5054

query I rowsort
SELECT DISTINCT cor0.col2 - - ( col1 * + col2 ) AS col0 FROM tab2 AS cor0
----
1560
684
864

query I rowsort
SELECT ALL + + 82 + + col0 AS col1 FROM tab1 AS cor0
----
146
162
85

query I rowsort
SELECT DISTINCT + col0 + - 46 * + col1 * - col2 FROM tab2 AS cor0
----
29795
38509
70642

query I rowsort
SELECT col0 + - cor0.col2 * col0 FROM tab0 AS cor0
----
-7209
-768
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4812
SELECT ALL CAST( - col1 AS SIGNED ) * col0 + 69 * 52 FROM tab2 AS cor0
----
-1014
2245
3371

skipif mysql # not compatible
query I rowsort label-4812
SELECT ALL CAST ( - col1 AS INTEGER ) * col0 + 69 * 52 FROM tab2 AS cor0
----
-1014
2245
3371

query I rowsort
SELECT ALL + ( col0 ) + 91 * col0 AS col0 FROM tab0 AS cor0
----
2208
3220
8188

query I rowsort
SELECT - + 91 AS col0 FROM tab0 AS cor0
----
-91
-91
-91

query I rowsort
SELECT cor0.col0 * + col0 FROM tab1 AS cor0
----
4096
6400
9

query I rowsort
SELECT ALL - 52 FROM tab0
----
-52
-52
-52

query I rowsort
SELECT + cor0.col1 * - ( - 8 ) + - col1 FROM tab2 AS cor0
----
119
217
413

query I rowsort
SELECT ALL - col1 * col1 FROM tab1 cor0
----
-100
-169
-676

query I rowsort
SELECT DISTINCT - col1 + - cor0.col1 AS col1 FROM tab2 AS cor0
----
-118
-34
-62

query I rowsort
SELECT ALL + + col0 + col2 FROM tab1 AS cor0
----
121
176
57

query I rowsort
SELECT ALL tab1.col0 + + tab1.col1 + cor0.col1 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 2c143573bcc8602787f17bcb108ab49b

query I rowsort
SELECT + col2 * - 44 AS col2 FROM tab2
----
-1144
-1188
-1672

query I rowsort
SELECT col0 * - 13 AS col0 FROM tab1
----
-1040
-39
-832

query I rowsort
SELECT ALL - col0 + - col2 AS col1 FROM tab2
----
-104
-117
-34

query I rowsort
SELECT cor0.col2 * col0 + col2 FROM tab1 AS cor0
----
216
3705
7776

query I rowsort
SELECT ALL ( + 29 ) - tab1.col1 * 91 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to a54af78870fabeb1d833e63d376e1fa7

query I rowsort
SELECT DISTINCT col2 * + col0 * col1 AS col2 FROM tab0
----
3395
664118
68112

onlyif mysql # use DIV operator for integer division
query I rowsort label-4828
SELECT + col1 DIV ( - col1 * + tab2.col1 ) FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4828
SELECT + col1 / ( - col1 * + tab2.col1 ) FROM tab2
----
0
0
0

query I rowsort
SELECT + col0 * + ( col0 ) - - col1 FROM tab1 AS cor0
----
35
4106
6413

query I rowsort
SELECT DISTINCT + col1 + ( - ( + col1 ) ) * + 48 FROM tab2 AS cor0
----
-1457
-2773
-799

onlyif mysql # use DIV operator for integer division
query I rowsort label-4831
SELECT DISTINCT 17 DIV cor0.col2 AS col0 FROM tab1, tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4831
SELECT DISTINCT 17 / cor0.col2 AS col0 FROM tab1, tab1 AS cor0
----
0

query I rowsort
SELECT + + col1 * 6 * + col1 + - col1 FROM tab2 cor0
----
1717
20827
5735

query I rowsort
SELECT - 80 + 34 * - col0 FROM tab0 cor0
----
-1270
-3106
-896

query I rowsort
SELECT + ( + ( col2 ) ) + cor0.col0 AS col1 FROM tab1 AS cor0
----
121
176
57

query I rowsort
SELECT col0 * + col1 AS col1 FROM tab2
----
1343
217
4602

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0, tab1 AS cor1, tab2, tab0 AS cor2
----
3645 values hashing to 32e6d0f63bf719b0a999c75379e75eca

onlyif mysql # use DIV operator for integer division
query I rowsort label-4837
SELECT + col2 + col0 + ( col0 ) DIV + col1 AS col2 FROM tab1
----
127
182
57

skipif mysql # not compatible
query I rowsort label-4837
SELECT + col2 + col0 + ( col0 ) / + col1 AS col2 FROM tab1
----
127
182
57

query I rowsort
SELECT DISTINCT ( tab0.col1 * col1 ) AS col2 FROM tab0
----
7396
8281
9409

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - 31 col2 FROM tab1
----
-310
-403
-806

query I rowsort
SELECT - 31 * ( col2 ) FROM tab1
----
-1674
-1767
-2976

query I rowsort
SELECT + ( - tab1.col0 + col0 ) FROM tab1
----
0
0
0

query I rowsort
SELECT - - cor0.col1 AS col2 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to 7599b480125de521efed71b5b2413c7d

query I rowsort
SELECT ALL - col2 + - col1 - + col2 * col2 AS col2 FROM tab0
----
-1208
-6897
-99

query I rowsort
SELECT 14 * + col0 AS col2 FROM tab2 cor0
----
1092
1106
98

query I rowsort
SELECT - tab0.col0 * + 20 FROM tab0, tab0 cor0
----
9 values hashing to 0ac5adb7a2b0cab9fe42930f5c60e309

onlyif mysql # use DIV operator for integer division
query I rowsort label-4846
SELECT ALL col1 DIV tab0.col0 FROM tab0
----
1
2
3

skipif mysql # not compatible
query I rowsort label-4846
SELECT ALL col1 / tab0.col0 FROM tab0
----
1
2
3

query I rowsort
SELECT - 49 AS col2 FROM tab0
----
-49
-49
-49

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4848
SELECT DISTINCT col1 * col2 * CAST( + 12 AS SIGNED ) FROM tab2
----
10044
18408
7752

skipif mysql # not compatible
query I rowsort label-4848
SELECT DISTINCT col1 * col2 * CAST ( + 12 AS INTEGER ) FROM tab2
----
10044
18408
7752

query I rowsort
SELECT ALL - - 25 * col2 FROM tab0 AS cor0
----
2050
25
825

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * col0 col2 FROM tab1
----
162
3648
7680

query I rowsort
SELECT ALL - 20 FROM tab0
----
-20
-20
-20

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4852
SELECT ALL + - col1 * - CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4852
SELECT ALL + - col1 * - CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col0 * ( - 59 ) FROM tab1 AS cor0
----
-177
-3776
-4720

query I rowsort
SELECT col1 * 71 FROM tab2 AS cor0
----
1207
2201
4189

query I rowsort
SELECT col2 * col0 * - col2 AS col0 FROM tab1 AS cor0
----
-207936
-737280
-8748

query I rowsort
SELECT cor0.col1 * ( - 55 ) FROM tab0 AS cor0
----
-4730
-5005
-5335

query I rowsort
SELECT - cor0.col0 + 28 * col0 FROM tab2 AS cor0
----
189
2106
2133

query I rowsort
SELECT DISTINCT + 17 + + cor0.col2 * - col0 + - 44 FROM tab0 AS cor0
----
-62
-7325
-819

query I rowsort
SELECT ALL + col2 * - cor0.col1 AS col2 FROM tab0 cor0
----
-2838
-7462
-97

query I rowsort
SELECT DISTINCT 52 + + col0 FROM tab2 AS cor0
----
130
131
59

query I rowsort
SELECT DISTINCT + - cor0.col1 * cor0.col2 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT + 38 AS col2 FROM tab0 AS cor0
----
38
38
38

query I rowsort
SELECT cor0.col1 AS col1 FROM tab2, tab1 cor0, tab0 AS cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892

query I rowsort
SELECT DISTINCT + col1 * 34 AS col1 FROM tab0 AS cor0
----
2924
3094
3298

onlyif mysql # use DIV operator for integer division
query I rowsort label-4865
SELECT ALL + col1 + - ( - 88 ) DIV + col0 + col0 AS col2 FROM tab0 AS cor0
----
113
134
180

skipif mysql # not compatible
query I rowsort label-4865
SELECT ALL + col1 + - ( - 88 ) / + col0 + col0 AS col2 FROM tab0 AS cor0
----
113
134
180

query I rowsort
SELECT ALL + + col2 * col0 + + col2 FROM tab2 AS cor0
----
2054
216
3040

onlyif mysql # use DIV operator for integer division
query I rowsort label-4867
SELECT - 72 DIV - col1 FROM tab2
----
1
2
4

skipif mysql # not compatible
query I rowsort label-4867
SELECT - 72 / - col1 FROM tab2
----
1
2
4

query I rowsort
SELECT DISTINCT col2 * 30 FROM tab2 AS cor0
----
1140
780
810

query I rowsort
SELECT col1 + ( col2 ) + cor0.col2 FROM tab0 AS cor0
----
152
255
99

query I rowsort
SELECT ALL - col1 + + cor0.col2 AS col1 FROM tab0 AS cor0
----
-53
-9
-96

query I rowsort
SELECT DISTINCT + + col1 * + col2 + col2 * - cor0.col1 AS col2 FROM tab0 AS cor0
----
0

query I rowsort
SELECT - - col2 + 13 * - 73 + col2 FROM tab2 AS cor0
----
-873
-895
-897

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col1 * 61 * + ( col1 ) col1 FROM tab0 AS cor0
----
451156
505141
573949

query I rowsort
SELECT ALL - col1 + - col0 FROM tab2 cor0
----
-137
-38
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * - col2 * + col1 - - 80 * col1 col1 FROM tab1
----
-2132
-35680
-98800

query I rowsort
SELECT ALL 29 FROM tab1, tab2, tab1 AS cor0
----
27 values hashing to 4c56285992bcb76e1aac22e6d23d1318

query I rowsort
SELECT ALL - tab1.col0 - tab1.col1 AS col1 FROM tab1
----
-29
-74
-93

query I rowsort
SELECT DISTINCT + cor0.col2 + - tab2.col1 * - 49 FROM tab2, tab2 AS cor0
----
9 values hashing to 86071e5321c00bd5664ba9a44d9b9b96

query I rowsort
SELECT ALL - col1 + col2 AS col0 FROM tab1 cor0
----
28
47
83

query I rowsort
SELECT + 42 * - col0 AS col0 FROM tab2 cor0
----
-294
-3276
-3318

onlyif mysql # use DIV operator for integer division
query I rowsort label-4881
SELECT ALL + col2 DIV + col0 - col1 FROM tab1 AS cor0
----
-10
-12
-8

skipif mysql # not compatible
query I rowsort label-4881
SELECT ALL + col2 / + col0 - col1 FROM tab1 AS cor0
----
-10
-12
-8

query I rowsort
SELECT DISTINCT + ( 8 ) AS col0 FROM tab2 AS cor0
----
8

query I rowsort
SELECT + + 43 + + col1 * col2 AS col0 FROM tab1 AS cor0
----
1291
1447
613

query I rowsort
SELECT ALL + - col0 + + ( col0 * - col0 ) AS col0 FROM tab2 AS cor0
----
-56
-6162
-6320

query I rowsort
SELECT - col1 * - cor0.col2 FROM tab2 cor0
----
1534
646
837

query I rowsort
SELECT - - cor0.col0 * col1 FROM tab2 cor0
----
1343
217
4602

query I rowsort
SELECT ALL col0 * - tab0.col0 AS col2 FROM tab0
----
-1225
-576
-7921

query I rowsort
SELECT 80 AS col2 FROM tab2
----
80
80
80

query I rowsort
SELECT DISTINCT 24 AS col0 FROM tab0, tab0 AS cor0
----
24

query I rowsort
SELECT 59 FROM tab1, tab1 AS cor0
----
9 values hashing to a9b9966d749d1b2ce5955ed12394f9bc

query I rowsort
SELECT 26 * + col2 FROM tab0 AS cor0
----
2132
26
858

query I rowsort
SELECT + - col0 * - col2 * col2 FROM tab1 AS cor0
----
207936
737280
8748

query I rowsort
SELECT - 5 AS col0 FROM tab0 AS cor0
----
-5
-5
-5

query I rowsort
SELECT DISTINCT ( + 44 ) AS col2 FROM tab2
----
44

query I rowsort
SELECT ALL 88 FROM tab1
----
88
88
88

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4896
SELECT DISTINCT CAST( + 46 AS SIGNED ) * + col1 col0 FROM tab2
----
1426
2714
782

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4896
SELECT DISTINCT CAST ( + 46 AS INTEGER ) * + col1 col0 FROM tab2
----
1426
2714
782

query I rowsort
SELECT ( col2 ) + col1 * + 54 AS col0 FROM tab1
----
1458
597
798

query I rowsort
SELECT DISTINCT cor0.col0 - col0 FROM tab2 AS cor0
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-4899
SELECT DISTINCT - 66 * - col2 + + col1 DIV 18 col0 FROM tab0 AS cor0
----
2182
5417
71

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4899
SELECT DISTINCT - 66 * - col2 + + col1 / 18 col0 FROM tab0 AS cor0
----
2182
5417
71

query I rowsort
SELECT - + col0 + + col2 AS col1 FROM tab0 cor0
----
-34
-7
9

query I rowsort
SELECT DISTINCT - ( col0 ) * 5 AS col2 FROM tab1 AS cor0
----
-15
-320
-400

query I rowsort
SELECT ALL + ( cor0.col2 ) AS col0 FROM tab2 AS cor0
----
26
27
38

onlyif mysql # use DIV operator for integer division
query I rowsort label-4903
SELECT ALL - ( + col0 ) DIV col0 AS col0 FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-4903
SELECT ALL - ( + col0 ) / col0 AS col0 FROM tab0
----
-1
-1
-1

query I rowsort
SELECT 27 FROM tab2, tab2 cor0
----
9 values hashing to 701bf12d86392cb1585d9e4f3c72e9a8

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4905
SELECT + - CAST( NULL AS SIGNED ) AS col1 FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-4905
SELECT + - CAST ( NULL AS INTEGER ) AS col1 FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT + ( - 82 * col1 ) FROM tab1
----
-1066
-2132
-820

onlyif mysql # use DIV operator for integer division
query I rowsort label-4907
SELECT col0 + tab1.col0 DIV col2 FROM tab1
----
3
65
80

skipif mysql # not compatible
query I rowsort label-4907
SELECT col0 + tab1.col0 / col2 FROM tab1
----
3
65
80

query I rowsort
SELECT ALL col1 * + tab0.col2 FROM tab0
----
2838
7462
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + - col0 col0 FROM tab1
----
-54
-67
23

query I rowsort
SELECT ALL 28 + col2 AS col1 FROM tab1 AS cor0
----
124
82
85

onlyif mysql # use DIV operator for integer division
query I rowsort label-4911
SELECT DISTINCT + - col0 DIV + cor0.col2 AS col0 FROM tab1 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-4911
SELECT DISTINCT + - col0 / + cor0.col2 AS col0 FROM tab1 AS cor0
----
-1
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-4912
SELECT col2 + + col1 DIV - col0 FROM tab0 AS cor0
----
-1
30
81

skipif mysql # not compatible
query I rowsort label-4912
SELECT col2 + + col1 / - col0 FROM tab0 AS cor0
----
-1
30
81

query I rowsort
SELECT DISTINCT + + 19 * - col0 - col1 * col1 * col1 FROM tab1 AS cor0
----
-17633
-2216
-3717

query I rowsort
SELECT - 72 * - col2 FROM tab2 AS cor0
----
1872
1944
2736

onlyif mysql # use DIV operator for integer division
query I rowsort label-4915
SELECT ALL - + cor0.col2 DIV col1 FROM tab2 AS cor0
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-4915
SELECT ALL - + cor0.col2 / col1 FROM tab2 AS cor0
----
-2
0
0

query I rowsort
SELECT ALL - + cor0.col2 * - col1 AS col0 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT DISTINCT - ( cor0.col2 ) FROM tab1 AS cor0
----
-54
-57
-96

query I rowsort
SELECT ALL - - col0 + col2 AS col2 FROM tab1 AS cor0
----
121
176
57

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab1, tab1 cor1, tab2, tab1 AS cor2
----
3645 values hashing to 91c4f11552b395e0eb390f09eebaec3d

onlyif mysql # use DIV operator for integer division
query I rowsort label-4920
SELECT - col0 DIV + tab2.col1 - - col2 AS col2 FROM tab2
----
25
27
34

skipif mysql # not compatible
query I rowsort label-4920
SELECT - col0 / + tab2.col1 - - col2 AS col2 FROM tab2
----
25
27
34

query I rowsort
SELECT ALL - col1 * + ( - col1 ) + cor0.col1 AS col2 FROM tab0 cor0
----
7482
8372
9506

onlyif mysql # use DIV operator for integer division
query I rowsort label-4922
SELECT DISTINCT col1 DIV 90 + 52 AS col0 FROM tab0 cor0
----
52
53

skipif mysql # not compatible
query I rowsort label-4922
SELECT DISTINCT col1 / 90 + 52 AS col0 FROM tab0 cor0
----
52
53

query I rowsort
SELECT ALL + - col0 - cor0.col2 FROM tab1 AS cor0
----
-121
-176
-57

query I rowsort
SELECT col1 + cor0.col2 FROM tab0 AS cor0
----
119
173
98

query IIIIIIIIIIII rowsort
SELECT * FROM tab2 cor0 CROSS JOIN tab1, tab2 cor1, tab0 AS cor2
----
972 values hashing to 58757c5bbbd4217c03cf2ac0b6126e55

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4926
SELECT DISTINCT + CAST( + col0 AS SIGNED ) * col0 AS col0 FROM tab0 AS cor0
----
1225
576
7921

skipif mysql # not compatible
query I rowsort label-4926
SELECT DISTINCT + CAST ( + col0 AS INTEGER ) * col0 AS col0 FROM tab0 AS cor0
----
1225
576
7921

onlyif mysql # use DIV operator for integer division
query I rowsort label-4927
SELECT + + 40 + + col0 DIV - col0 + 28 FROM tab0 AS cor0
----
67
67
67

skipif mysql # not compatible
query I rowsort label-4927
SELECT + + 40 + + col0 / - col0 + 28 FROM tab0 AS cor0
----
67
67
67

query I rowsort
SELECT ALL ( cor0.col0 ) * col0 AS col1 FROM tab1 AS cor0
----
4096
6400
9

query I rowsort
SELECT cor0.col2 FROM tab0, tab0 cor0
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8

query I rowsort
SELECT DISTINCT - 83 * - ( - col0 ) AS col1 FROM tab1 cor0
----
-249
-5312
-6640

query I rowsort
SELECT DISTINCT 53 * + ( + cor0.col2 ) AS col2 FROM tab0 AS cor0
----
1749
4346
53

query I rowsort
SELECT DISTINCT - 7 + - col1 FROM tab1 AS cor0
----
-17
-20
-33

onlyif mysql # use DIV operator for integer division
query I rowsort label-4933
SELECT ALL + - cor0.col0 DIV + col2 + - col1 AS col1 FROM tab1 AS cor0
----
-11
-13
-26

skipif mysql # not compatible
query I rowsort label-4933
SELECT ALL + - cor0.col0 / + col2 + - col1 AS col1 FROM tab1 AS cor0
----
-11
-13
-26

query I rowsort
SELECT + + 50 AS col2 FROM tab0 AS cor0
----
50
50
50

query I rowsort
SELECT - - col2 * col0 + + col1 + col1 AS col2 FROM tab0 AS cor0
----
229
7480
964

query I rowsort
SELECT - col0 + - col1 FROM tab2 cor0
----
-137
-38
-96

query I rowsort
SELECT DISTINCT tab0.col2 * col2 + tab0.col0 FROM tab0
----
1113
36
6813

query I rowsort
SELECT ALL col2 + - col0 * col2 AS col0 FROM tab0
----
-34
-7216
-759

query I rowsort
SELECT + cor0.col2 * col0 - + col2 FROM tab1 AS cor0
----
108
3591
7584

query I rowsort
SELECT - col1 * 9 AS col0 FROM tab2
----
-153
-279
-531

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab1 AS cor0, tab0, tab0 cor1
----
972 values hashing to 8b4fcda7f1ca76bad7c7d728f54a51e0

query I rowsort
SELECT DISTINCT + 98 - col2 * col1 FROM tab0 cor0
----
-2740
-7364
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-4943
SELECT col1 DIV col1 + + col0 FROM tab2 AS cor0
----
79
8
80

skipif mysql # not compatible
query I rowsort label-4943
SELECT col1 / col1 + + col0 FROM tab2 AS cor0
----
79
8
80

query I rowsort
SELECT 48 * + col1 FROM tab2 cor0
----
1488
2832
816

query I rowsort
SELECT - - 64 + cor0.col2 * + col1 * col0 AS col2 FROM tab0 AS cor0
----
3459
664182
68176

query I rowsort
SELECT col2 - + 90 AS col1 FROM tab2 AS cor0
----
-52
-63
-64

query I rowsort
SELECT 68 + + col2 FROM tab1 AS cor0
----
122
125
164

query I rowsort
SELECT + col2 * - col2 * - col2 + + col0 FROM tab2 AS cor0
----
17654
19690
54951

query I rowsort
SELECT + 29 * col1 * col0 FROM tab1 cor0
----
18560
2262
30160

query I rowsort
SELECT DISTINCT tab0.col2 * col0 AS col0 FROM tab0
----
35
7298
792

query I rowsort
SELECT + cor0.col1 * + 78 FROM tab1, tab0 AS cor0
----
9 values hashing to 226f7bda3805102b1cfe16bbcd69bedc

query I rowsort
SELECT 69 * - 1 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 3bd7460efa48c66c072ad5f3c2def7e9

query I rowsort
SELECT - col2 * col2 + 0 AS col1 FROM tab1
----
-2916
-3249
-9216

query I rowsort
SELECT - + 39 FROM tab1 AS cor0
----
-39
-39
-39

query I rowsort
SELECT ALL - col0 + col2 * + col1 * col1 AS col2 FROM tab2 AS cor0
----
10903
25940
90428

query I rowsort
SELECT DISTINCT - + 86 * col0 + col2 FROM tab1 AS cor0
----
-204
-5447
-6784

query I rowsort
SELECT ALL - + col0 * - col1 + + 44 FROM tab1 AS cor0
----
1084
122
684

query I rowsort
SELECT DISTINCT + 80 * col1 + - 51 * - col1 + + col0 * col1 AS col0 FROM tab2 AS cor0
----
12331
3570
4278

query I rowsort
SELECT ALL + col1 + - col2 * col2 AS col2 FROM tab0 AS cor0
----
-1003
-6633
96

query I rowsort
SELECT DISTINCT + col2 + - col2 * + cor0.col2 FROM tab0 AS cor0
----
-1056
-6642
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + - col1 col1 FROM tab2 cor0
----
-118
-34
-62

query I rowsort
SELECT ALL + + 86 * col2 + col2 * + 44 + + col0 AS col2 FROM tab1 AS cor0
----
12560
7023
7474

query I rowsort
SELECT DISTINCT - + col1 + + col2 * + cor0.col2 FROM tab1 AS cor0
----
2890
3239
9203

query I rowsort
SELECT + col0 + ( - col2 ) - col1 FROM tab0 cor0
----
-63
-84
-95

query I rowsort
SELECT DISTINCT + col1 * - col1 + 18 FROM tab2 AS cor0
----
-271
-3463
-943

query I rowsort
SELECT + cor0.col2 + col1 * cor0.col2 AS col0 FROM tab0 AS cor0
----
2871
7544
98

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4967
SELECT DISTINCT CAST( 61 AS SIGNED ) AS col2 FROM tab1, tab2 AS cor0
----
61

skipif mysql # not compatible
query I rowsort label-4967
SELECT DISTINCT CAST ( 61 AS INTEGER ) AS col2 FROM tab1, tab2 AS cor0
----
61

query I rowsort
SELECT + - col0 + - col0 AS col2 FROM tab1 cor0
----
-128
-160
-6

query I rowsort
SELECT + cor1.col0 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0, tab0 AS cor1, tab0 AS cor2
----
81 values hashing to 2304fcc140e955eb2d1ee28ab1eea994

query I rowsort
SELECT DISTINCT cor0.col0 - - ( cor0.col0 ) AS col1 FROM tab0 AS cor0
----
178
48
70

query I rowsort
SELECT DISTINCT - col0 * col1 * + col1 + + cor0.col1 * cor0.col0 - col0 AS col2 FROM tab1 AS cor0
----
-12560
-1953
-5824

query I rowsort
SELECT ALL - - 12 FROM tab0 AS cor0
----
12
12
12

onlyif mysql # use DIV operator for integer division
query I rowsort label-4973
SELECT - 77 DIV - ( col2 ) AS col1 FROM tab1 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-4973
SELECT - 77 / - ( col2 ) AS col1 FROM tab1 AS cor0
----
0
1
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-4974
SELECT ALL - ( - col1 ) DIV - cor0.col1 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-4974
SELECT ALL - ( - col1 ) / - cor0.col1 FROM tab1 AS cor0
----
-1
-1
-1

query I rowsort
SELECT ALL + + 87 * + ( cor0.col2 ) FROM tab0 AS cor0
----
2871
7134
87

query I rowsort
SELECT - - cor0.col2 + - col1 FROM tab1 AS cor0
----
28
47
83

query I rowsort
SELECT - col1 * col0 + - col2 FROM tab2 cor0
----
-1381
-244
-4628

query I rowsort
SELECT cor1.col2 * cor1.col1 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 7623ebe74018211e6a4da91fc8c37d6d

query I rowsort
SELECT ALL - 68 FROM tab2
----
-68
-68
-68

query I rowsort
SELECT ALL - col0 * + col2 AS col1 FROM tab0
----
-35
-7298
-792

query I rowsort
SELECT ALL - 46 AS col0 FROM tab2
----
-46
-46
-46

query I rowsort
SELECT + 7 AS col2 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 4e72e9e33dacac757f48d0ce46094607

query I rowsort
SELECT + col0 + col1 * - col0 AS col1 FROM tab0 cor0
----
-2040
-3360
-8010

query I rowsort
SELECT 35 AS col2 FROM tab0
----
35
35
35

query I rowsort
SELECT DISTINCT + 25 AS col2 FROM tab0
----
25

query I rowsort
SELECT ALL + 70 FROM tab0, tab0 AS cor0, tab2 cor1
----
27 values hashing to c76157a7a7ec18de56823b2058b49f32

query I rowsort
SELECT - 39 - + tab2.col0 FROM tab2
----
-117
-118
-46

query I rowsort
SELECT - 39 AS col0 FROM tab1, tab0 cor0
----
9 values hashing to 504d14939d58aeb4a14f31c80de5b53e

query I rowsort
SELECT 54 FROM tab2, tab1 AS cor0
----
9 values hashing to d2364c4ffc09ac2cf1f6fa4d767d8b09

query I rowsort
SELECT ALL 14 FROM tab2 cor0
----
14
14
14

query I rowsort
SELECT - 82 * col1 FROM tab0 AS cor0
----
-7052
-7462
-7954

query I rowsort
SELECT - 32 + + 21 AS col2 FROM tab1 AS cor0
----
-11
-11
-11

query I rowsort
SELECT + cor0.col2 FROM tab0, tab0 cor0
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8

query I rowsort
SELECT DISTINCT 87 * col2 AS col0 FROM tab2
----
2262
2349
3306

query I rowsort
SELECT ALL + - 63 + + col1 FROM tab2 AS cor0
----
-32
-4
-46

query I rowsort
SELECT col1 + col2 * col1 AS col2 FROM tab1 AS cor0
----
1261
1430
580

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col2 + + cor0.col0 col1 FROM tab2 AS cor0
----
-20
41
52

query I rowsort
SELECT - ( + tab2.col0 ) AS col1 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to c82df1de3cb666224690a83f3d790d79

query I rowsort
SELECT DISTINCT + + col0 * + cor0.col2 AS col0 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT ALL - + ( col1 ) + - 29 AS col0 FROM tab2 cor0
----
-46
-60
-88

query I rowsort
SELECT DISTINCT + - 57 AS col1 FROM tab1 AS cor0
----
-57

query I rowsort
SELECT ALL ( + col0 ) + col2 FROM tab0 AS cor0
----
171
36
57

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab1 AS cor0, tab1 AS cor1, tab1, tab0 AS cor2
----
3645 values hashing to 0cc433e09ad9e61562b7840dd1db6f57

query I rowsort
SELECT DISTINCT col0 + + tab0.col1 AS col0 FROM tab0
----
110
132
180

query I rowsort
SELECT + col1 * - 92 FROM tab1 AS cor0
----
-1196
-2392
-920

query I rowsort
SELECT ALL - - cor0.col0 + 90 FROM tab0, tab2, tab2 AS cor0
----
27 values hashing to 8076629e0f061585615f18ed75357fa5

query I rowsort
SELECT ALL col2 + + 24 AS col0 FROM tab1
----
120
78
81

query I rowsort
SELECT - 43 AS col1 FROM tab0, tab0 AS cor0, tab0 cor1
----
27 values hashing to 2f72bd9cab68c8d8c38874510a290a3c

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5009
SELECT DISTINCT - col2 + - CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5009
SELECT DISTINCT - col2 + - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT col0 + col0 AS col0 FROM tab1 cor0
----
128
160
6

query I rowsort
SELECT DISTINCT - col1 * 37 + - col2 AS col1 FROM tab2 cor0
----
-1174
-2209
-667

onlyif mysql # use DIV operator for integer division
query I rowsort label-5012
SELECT ALL + + col2 DIV - 28 + col2 AS col2 FROM tab0 AS cor0
----
1
32
80

skipif mysql # not compatible
query I rowsort label-5012
SELECT ALL + + col2 / - 28 + col2 AS col2 FROM tab0 AS cor0
----
1
32
80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5013
SELECT DISTINCT - + col0 + CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5013
SELECT DISTINCT - + col0 + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT - col1 + col1 AS col1 FROM tab1 cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-5015
SELECT 21 DIV col1 FROM tab2 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-5015
SELECT 21 / col1 FROM tab2 AS cor0
----
0
0
1

query I rowsort
SELECT ALL + ( + col0 ) * - col1 AS col1 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT ALL - ( + col1 ) + - col1 FROM tab2 AS cor0
----
-118
-34
-62

query I rowsort
SELECT - col2 * cor0.col2 + - col2 AS col1 FROM tab1 cor0
----
-2970
-3306
-9312

query I rowsort
SELECT DISTINCT - ( - col2 ) * + col2 AS col2 FROM tab0 AS cor0
----
1
1089
6724

query I rowsort
SELECT DISTINCT - col1 * - 3 * - col0 FROM tab1 AS cor0
----
-1920
-234
-3120

query I rowsort
SELECT ALL - 93 + + col2 * col2 * col1 FROM tab1 AS cor0
----
119715
32397
75723

query I rowsort
SELECT ALL cor0.col0 * - cor0.col1 AS col1 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT - 28 * - col0 FROM tab0 AS cor0
----
2492
672
980

query I rowsort
SELECT DISTINCT + ( - 7 ) AS col0 FROM tab2 AS cor0
----
-7

query I rowsort
SELECT ALL - cor0.col1 * col1 * col1 FROM tab2 AS cor0
----
-205379
-29791
-4913

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 99 col1 FROM tab1 AS cor0
----
99
99
99

query I rowsort
SELECT ALL + 59 * ( + col1 ) AS col2 FROM tab1 AS cor0
----
1534
590
767

onlyif mysql # use DIV operator for integer division
query I rowsort label-5028
SELECT DISTINCT 54 DIV - col1 AS col1 FROM tab1 AS cor0
----
-2
-4
-5

skipif mysql # not compatible
query I rowsort label-5028
SELECT DISTINCT 54 / - col1 AS col1 FROM tab1 AS cor0
----
-2
-4
-5

query I rowsort
SELECT - col1 + col1 + - col1 AS col1 FROM tab1 AS cor0
----
-10
-13
-26

query I rowsort
SELECT ALL + 61 + + col0 AS col0 FROM tab2 AS cor0
----
139
140
68

query I rowsort
SELECT col2 * 40 * col0 FROM tab1
----
145920
307200
6480

query I rowsort
SELECT DISTINCT + ( - col1 ) + col2 FROM tab1 AS cor0
----
28
47
83

query I rowsort
SELECT DISTINCT + col0 * + col0 + col2 AS col0 FROM tab0 cor0
----
1226
609
8003

query I rowsort
SELECT ( col0 ) + - col1 AS col0 FROM tab1 cor0
----
-23
54
67

query I rowsort
SELECT + col1 * + 16 * cor0.col1 + + ( + col1 ) * + col1 AS col2 FROM tab0 AS cor0
----
125732
140777
159953

query I rowsort
SELECT ALL 51 + 79 FROM tab2 AS cor0
----
130
130
130

query I rowsort
SELECT DISTINCT - 91 * + col1 + col2 + - cor0.col1 FROM tab0 AS cor0
----
-7879
-8290
-8923

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + ( col0 ) ) * + col0 + - 57 col1 FROM tab0 AS cor0
----
-1282
-633
-7978

query I rowsort
SELECT - 87 * + col1 + col2 AS col2 FROM tab2 AS cor0
----
-1441
-2670
-5107

query I rowsort
SELECT ALL + - col0 * col2 + - col0 AS col1 FROM tab2 AS cor0
----
-196
-2106
-3081

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab1 AS cor0, tab1 cor1, tab2 AS cor2
----
972 values hashing to 01a5931cccc3dad8792a1bc6df09c614

query I rowsort
SELECT col2 * - col1 AS col0 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT ALL + 89 * 87 FROM tab1
----
7743
7743
7743

query I rowsort
SELECT - - 21 FROM tab0 AS cor0
----
21
21
21

query I rowsort
SELECT 25 + - col1 * ( + cor0.col1 ) AS col0 FROM tab0 AS cor0
----
-7371
-8256
-9384

query I rowsort
SELECT + cor0.col0 * col0 FROM tab1 cor0
----
4096
6400
9

query I rowsort
SELECT col1 + - col0 * + col0 AS col1 FROM tab0
----
-1128
-490
-7830

query I rowsort
SELECT - ( - col0 ) AS col2 FROM tab0
----
24
35
89

query I rowsort
SELECT ALL - cor0.col1 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to ccaa5dd3388d9ee0fea676fa35299fe5

onlyif mysql # use DIV operator for integer division
query I rowsort label-5050
SELECT - cor0.col1 DIV - tab0.col0 AS col2 FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to 6106195a9eda8fa7933db2cef02b010b

skipif mysql # not compatible
query I rowsort label-5050
SELECT - cor0.col1 / - tab0.col0 AS col2 FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to 6106195a9eda8fa7933db2cef02b010b

query I rowsort
SELECT ALL + 62 AS col1 FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to 4911b1417a3797d23dd8f38b6ed05c1b

query I rowsort
SELECT DISTINCT - cor0.col1 * col0 + col1 FROM tab0 AS cor0
----
-1978
-3298
-8008

query I rowsort
SELECT DISTINCT + col2 * col0 - 57 * + col2 AS col2 FROM tab0 AS cor0
----
-1089
-22
2624

query I rowsort
SELECT DISTINCT - col0 + + ( - col2 ) AS col1 FROM tab2 AS cor0
----
-104
-117
-34

query I rowsort
SELECT ALL + col0 * + col2 + 85 - - col2 * 80 AS col2 FROM tab2 AS cor0
----
2434
4193
6127

query I rowsort
SELECT - col0 + - ( 34 ) * col0 AS col0 FROM tab1 AS cor0
----
-105
-2240
-2800

query I rowsort
SELECT DISTINCT cor0.col1 + - ( col2 ) * + col0 AS col2 FROM tab0 AS cor0
----
-706
-7207
62

query I rowsort
SELECT DISTINCT col1 * + col1 AS col2 FROM tab0 AS cor0
----
7396
8281
9409

query I rowsort
SELECT - col2 * col0 + col2 FROM tab0 cor0
----
-34
-7216
-759

query I rowsort
SELECT DISTINCT + cor0.col0 + + col0 + - 80 AS col1 FROM tab2 AS cor0
----
-66
76
78

query I rowsort
SELECT - 62 * + col0 FROM tab0
----
-1488
-2170
-5518

query I rowsort
SELECT ALL col0 - + col0 AS col1 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT + col2 * - ( - 25 ) + tab1.col2 FROM tab1
----
1404
1482
2496

query IIIIIIIIIIII rowsort
SELECT * FROM tab1 cor0 CROSS JOIN tab1, tab1 AS cor1, tab1 AS cor2
----
972 values hashing to ed80235f6457dada5cbb50ce9e2a8923

query I rowsort
SELECT - cor0.col1 * - 6 + - 74 FROM tab2 cor0
----
112
28
280

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5066
SELECT - col1 * CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5066
SELECT - col1 * CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5067
SELECT ALL - + col2 * - CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5067
SELECT ALL - + col2 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col2 * - col2 + 5 AS col0 FROM tab0
----
-1084
-6719
4

query I rowsort
SELECT + - col1 * col1 AS col0 FROM tab0 AS cor0
----
-7396
-8281
-9409

query I rowsort
SELECT col1 * - col0 AS col0 FROM tab2 cor0
----
-1343
-217
-4602

query I rowsort
SELECT ALL 61 * 83 AS col2 FROM tab1
----
5063
5063
5063

query I rowsort
SELECT DISTINCT ( col1 ) AS col2 FROM tab0
----
86
91
97

query I rowsort
SELECT ALL + col1 * + col0 AS col1 FROM tab2
----
1343
217
4602

query I rowsort
SELECT - 84 + col0 FROM tab0
----
-49
-60
5

onlyif mysql # use DIV operator for integer division
query I rowsort label-5075
SELECT col0 DIV col0 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5075
SELECT col0 / col0 FROM tab0
----
1
1
1

query I rowsort
SELECT DISTINCT col2 + + col2 FROM tab1
----
108
114
192

query I rowsort
SELECT ALL 80 * col0 AS col0 FROM tab2 AS cor0
----
560
6240
6320

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 39 * + cor0.col0 - + col2 col0 FROM tab1 AS cor0
----
2439
3024
63

query I rowsort
SELECT DISTINCT col0 * col2 + ( - col0 ) AS col0 FROM tab0 AS cor0
----
0
7209
768

onlyif mysql # use DIV operator for integer division
query I rowsort label-5080
SELECT 91 DIV col1 + + 53 FROM tab2 AS cor0
----
54
55
58

skipif mysql # not compatible
query I rowsort label-5080
SELECT 91 / col1 + + 53 FROM tab2 AS cor0
----
54
55
58

query I rowsort
SELECT ALL + + 61 FROM tab1 AS cor0
----
61
61
61

query I rowsort
SELECT - ( + col1 ) + 17 + - 57 FROM tab1 cor0
----
-50
-53
-66

query I rowsort
SELECT DISTINCT + 99 * - col2 AS col1 FROM tab2
----
-2574
-2673
-3762

query I rowsort
SELECT ALL - col0 + + col0 * col2 * + col2 FROM tab1 AS cor0
----
207872
737200
8745

query I rowsort
SELECT ALL cor1.col0 * - cor1.col0 FROM tab0 AS cor0 CROSS JOIN tab2, tab2 AS cor1
----
27 values hashing to bfa29ac72730a1b8452f6f2702fbe6b9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 15 * + tab1.col1 + tab1.col0 * 14 col0 FROM tab1, tab0 cor0
----
9 values hashing to d72d5b416d917375a44ac6580e2d569f

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0, tab2 AS cor1, tab1 AS cor2, tab0 AS cor3
----
3645 values hashing to b225d3765f33551c12574f545c8c91eb

query IIIIIIIII rowsort
SELECT ALL * FROM tab1 cor0 CROSS JOIN tab0, tab0 cor1
----
243 values hashing to 3581f59ff9574f9d6290fc6bca0b5e4d

query I rowsort
SELECT DISTINCT + col2 + col0 AS col0 FROM tab1 AS cor0
----
121
176
57

query I rowsort
SELECT - 16 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to be22ac76b42c6f7212ecc0ba7c89eb34

query I rowsort
SELECT DISTINCT - col1 * + col2 + - col2 FROM tab1 AS cor0
----
-1344
-1458
-627

query I rowsort
SELECT + 20 AS col2 FROM tab1 AS cor0
----
20
20
20

query I rowsort
SELECT DISTINCT 70 AS col0 FROM tab0, tab1 AS cor0
----
70

query I rowsort
SELECT + cor0.col0 * 45 FROM tab2 AS cor0
----
315
3510
3555

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1, tab0 cor0, tab2 cor1, tab0, tab0 AS cor2
----
3645 values hashing to b223aa53e3aafe0f3f3f59048cc7a0d2

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5096
SELECT DISTINCT + CAST( NULL AS DECIMAL ) * + 93 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5096
SELECT DISTINCT + CAST ( NULL AS REAL ) * + 93 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT + 62 * + col0 AS col0 FROM tab2 AS cor0
----
434
4836
4898

onlyif mysql # use DIV operator for integer division
query I rowsort label-5098
SELECT + cor0.col1 DIV cor0.col2 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 318c9ee2d951551d2809d5b794d537f4

skipif mysql # not compatible
query I rowsort label-5098
SELECT + cor0.col1 / cor0.col2 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 318c9ee2d951551d2809d5b794d537f4

query I rowsort
SELECT - - ( - cor0.col0 ) AS col1 FROM tab1 cor0
----
-3
-64
-80

query I rowsort
SELECT ALL + ( 88 ) * + col1 + 21 * - col0 + col0 * - col0 AS col0 FROM tab2
----
-2530
-6404
2532

query I rowsort
SELECT + + cor1.col0 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63

query I rowsort
SELECT + 45 AS col1 FROM tab0
----
45
45
45

query I rowsort
SELECT ( - 69 ) AS col0 FROM tab0 AS cor0
----
-69
-69
-69

query I rowsort
SELECT + + col2 + + cor0.col2 FROM tab0 AS cor0
----
164
2
66

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5105
SELECT - + ( - col0 ) + col1 * CAST( NULL AS SIGNED ) col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5105
SELECT - + ( - col0 ) + col1 * CAST ( NULL AS INTEGER ) col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - + col2 * col0 * + col0 FROM tab1 AS cor0
----
-233472
-486
-614400

query I rowsort
SELECT + 33 AS col1 FROM tab1
----
33
33
33

query I rowsort
SELECT DISTINCT + cor0.col1 + col1 AS col1 FROM tab1 AS cor0
----
20
26
52

query I rowsort
SELECT + 10 * col0 FROM tab1 cor0
----
30
640
800

query I rowsort
SELECT cor0.col1 * + col0 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT - col1 * 3 FROM tab0
----
-258
-273
-291

query I rowsort
SELECT + col2 + 39 FROM tab1 AS cor0
----
135
93
96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5113
SELECT - col2 + + CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5113
SELECT - col2 + + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 61 FROM tab0, tab2 cor0
----
9 values hashing to 07149905a72bd87553381f34d19ed290

query I rowsort
SELECT ALL - + 74 + 51 * + col2 + cor0.col1 AS col0 FROM tab1 AS cor0
----
2706
2843
4835

query I rowsort
SELECT - col1 + col1 * col0 FROM tab0 AS cor0
----
1978
3298
8008

query I rowsort
SELECT - ( col1 ) + + col2 AS col1 FROM tab2 AS cor0
----
-33
-4
21

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5118
SELECT + + CAST( NULL AS DECIMAL ) * col2 * col0 + + 20 * col2 * - col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5118
SELECT + + CAST ( NULL AS REAL ) * col2 * col0 + + 20 * col2 * - col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col1 * - 9 AS col1 FROM tab1
----
-117
-234
-90

query I rowsort
SELECT col2 + 57 FROM tab0
----
139
58
90

query I rowsort
SELECT + tab1.col1 FROM tab1, tab0, tab1 AS cor0, tab2
----
81 values hashing to d7d3fabcafbed14f0d6ffd37195c971c

query I rowsort
SELECT ALL - col0 - col1 * col0 FROM tab0 AS cor0
----
-2088
-3430
-8188

query I rowsort
SELECT DISTINCT + - cor0.col1 * + col0 * 11 FROM tab1 AS cor0
----
-11440
-7040
-858

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 col0 FROM tab2 cor0
----
-17
-31
-59

query I rowsort
SELECT DISTINCT cor0.col0 * + 2 + + col2 AS col0 FROM tab1 cor0
----
185
256
60

query I rowsort
SELECT ALL - cor0.col2 - - ( + col1 ) FROM tab0 cor0
----
53
9
96

query I rowsort
SELECT ALL col1 * - 21 + col2 FROM tab2 AS cor0
----
-1213
-319
-624

query I rowsort
SELECT + 86 AS col0 FROM tab2
----
86
86
86

onlyif mysql # use DIV operator for integer division
query I rowsort label-5129
SELECT ALL + 4 DIV + cor1.col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

skipif mysql # not compatible
query I rowsort label-5129
SELECT ALL + 4 / + cor1.col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query I rowsort
SELECT DISTINCT col2 * col1 * - col1 + 82 AS col0 FROM tab1
----
-16142
-36422
-5618

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5131
SELECT ALL col1 * + CAST( - 75 * - col1 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
21675
261075
72075

skipif mysql # not compatible
query I rowsort label-5131
SELECT ALL col1 * + CAST ( - 75 * - col1 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
21675
261075
72075

query I rowsort
SELECT ALL + + col1 * cor0.col0 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT + cor0.col2 * 71 * - col1 FROM tab2 AS cor0
----
-108914
-45866
-59427

query I rowsort
SELECT - tab1.col0 + + 84 * col2 FROM tab1
----
4533
4724
7984

onlyif mysql # use DIV operator for integer division
query I rowsort label-5135
SELECT DISTINCT + col0 DIV col2 - col0 * + ( col2 ) AS col1 FROM tab1
----
-162
-3647
-7680

skipif mysql # not compatible
query I rowsort label-5135
SELECT DISTINCT + col0 / col2 - col0 * + ( col2 ) AS col1 FROM tab1
----
-162
-3647
-7680

onlyif mysql # use DIV operator for integer division
query I rowsort label-5136
SELECT DISTINCT 57 DIV tab2.col0 FROM tab2, tab0 AS cor0
----
0
8

skipif mysql # not compatible
query I rowsort label-5136
SELECT DISTINCT 57 / tab2.col0 FROM tab2, tab0 AS cor0
----
0
8

query I rowsort
SELECT - 16 FROM tab1, tab0 AS cor0
----
9 values hashing to be22ac76b42c6f7212ecc0ba7c89eb34

query I rowsort
SELECT ALL - tab1.col2 AS col1 FROM tab1, tab2 cor0
----
9 values hashing to 0dc9bbe392d52df93d2a115d7f622dba

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5139
SELECT CAST( col1 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
17
31
59

skipif mysql # not compatible
query I rowsort label-5139
SELECT CAST ( col1 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
17
31
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 28 - + col2 * - col2 col1 FROM tab0
----
1117
29
6752

query I rowsort
SELECT DISTINCT - 75 AS col1 FROM tab2, tab2 AS cor0
----
-75

onlyif mysql # use DIV operator for integer division
query I rowsort label-5142
SELECT - ( + 7 ) DIV + col0 FROM tab2 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-5142
SELECT - ( + 7 ) / + col0 FROM tab2 AS cor0
----
-1
0
0

query I rowsort
SELECT - col2 * col1 * 1 AS col0 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT - + 44 + col0 + + col1 AS col1 FROM tab2 AS cor0
----
-6
52
93

query I rowsort
SELECT ALL + col0 + - cor0.col1 FROM tab2 AS cor0
----
-24
19
62

query I rowsort
SELECT ALL ( col2 ) * col1 AS col1 FROM tab2 cor0
----
1534
646
837

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5147
SELECT ALL + + CAST( NULL AS SIGNED ) AS col1 FROM tab0, tab1, tab0 cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-5147
SELECT ALL + + CAST ( NULL AS INTEGER ) AS col1 FROM tab0, tab1, tab0 cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT - col0 + + col2 FROM tab1 cor0
----
-7
16
51

query I rowsort
SELECT DISTINCT + - 46 + - col0 FROM tab0 AS cor0
----
-135
-70
-81

query I rowsort
SELECT ALL 36 AS col1 FROM tab1 AS cor0
----
36
36
36

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5151
SELECT + col0 + col1 + CAST( - 44 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-6
52
93

skipif mysql # not compatible
query I rowsort label-5151
SELECT + col0 + col1 + CAST ( - 44 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-6
52
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 95 + col1 col2 FROM tab2 AS cor0
----
112
126
154

query I rowsort
SELECT - col2 + col1 FROM tab1 cor0
----
-28
-47
-83

query I rowsort
SELECT DISTINCT - col2 * col1 * cor0.col0 FROM tab0 AS cor0
----
-3395
-664118
-68112

query I rowsort
SELECT DISTINCT + + cor0.col2 * col0 + 26 AS col1 FROM tab0 cor0
----
61
7324
818

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab1.col0 * + col0 col1 FROM tab1
----
-4096
-6400
-9

query I rowsort
SELECT ALL - + 74 * col2 AS col0 FROM tab0 AS cor0
----
-2442
-6068
-74

onlyif mysql # use DIV operator for integer division
query I rowsort label-5158
SELECT DISTINCT - col1 + cor0.col1 * - ( + col1 ) DIV - col1 AS col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5158
SELECT DISTINCT - col1 + cor0.col1 * - ( + col1 ) / - col1 AS col0 FROM tab0 AS cor0
----
0

query I rowsort
SELECT 19 * cor0.col2 + + col1 AS col0 FROM tab0 AS cor0
----
116
1649
713

query I rowsort
SELECT DISTINCT col2 + + col2 * col0 FROM tab0 AS cor0
----
36
7380
825

query I rowsort
SELECT DISTINCT + + col2 * + col0 * - col1 AS col0 FROM tab2 AS cor0
----
-119652
-51034
-5859

query I rowsort
SELECT + col1 + col0 * - 50 FROM tab1 AS cor0
----
-124
-3190
-3987

query I rowsort
SELECT ALL + col1 * + ( 66 * + col2 ) FROM tab1 AS cor0
----
37620
82368
92664

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + 79 col2 FROM tab2 AS cor0
----
110
138
96

query I rowsort
SELECT + - col1 + ( col0 * col0 ) FROM tab2 cor0
----
18
6025
6224

query I rowsort
SELECT ALL col0 * ( + col2 ) FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT + col0 * + 88 FROM tab1 AS cor0
----
264
5632
7040

query I rowsort
SELECT DISTINCT + + col1 * ( col2 ) AS col0 FROM tab1 cor0
----
1248
1404
570

query I rowsort
SELECT DISTINCT 45 + col0 AS col2 FROM tab1
----
109
125
48

query I rowsort
SELECT + col0 * + col2 * + col1 FROM tab2
----
119652
51034
5859

onlyif mysql # use DIV operator for integer division
query I rowsort label-5171
SELECT ALL + col1 DIV - tab0.col1 + CAST( + col2 AS SIGNED ) * + col2 FROM tab0
----
0
1088
6723

skipif mysql # not compatible
query I rowsort label-5171
SELECT ALL + col1 / - tab0.col1 + CAST ( + col2 AS INTEGER ) * + col2 FROM tab0
----
0
1088
6723

query I rowsort
SELECT col0 * + col0 + 59 + col0 FROM tab2 AS cor0
----
115
6221
6379

query I rowsort
SELECT ALL - col1 + col2 + - col1 AS col2 FROM tab1
----
2
37
70

query I rowsort
SELECT ALL - ( + col2 ) + col1 AS col1 FROM tab2 AS cor0
----
-21
33
4

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5175
SELECT DISTINCT + - cor0.col2 * - ( + col1 * - CAST( + col0 AS SIGNED ) ) AS col0 FROM tab2 AS cor0
----
-119652
-51034
-5859

skipif mysql # not compatible
query I rowsort label-5175
SELECT DISTINCT + - cor0.col2 * - ( + col1 * - CAST ( + col0 AS INTEGER ) ) AS col0 FROM tab2 AS cor0
----
-119652
-51034
-5859

onlyif mysql # use DIV operator for integer division
query I rowsort label-5176
SELECT DISTINCT col1 DIV cor0.col1 AS col2 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-5176
SELECT DISTINCT col1 / cor0.col1 AS col2 FROM tab1 AS cor0
----
1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5177
SELECT ALL - col2 * + col1 + - col0 * CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5177
SELECT ALL - col2 * + col1 + - col0 * CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + - 75 + - col2 * - col1 FROM tab0 AS cor0
----
22
2763
7387

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5179
SELECT DISTINCT CAST( NULL AS SIGNED ) + 86 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5179
SELECT DISTINCT CAST ( NULL AS INTEGER ) + 86 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL + col0 * + col1 + col1 FROM tab2 AS cor0
----
1360
248
4661

query I rowsort
SELECT 94 * - 30 AS col1 FROM tab0 cor0
----
-2820
-2820
-2820

query I rowsort
SELECT ALL - ( col1 ) * - cor0.col0 - + col2 AS col2 FROM tab2 AS cor0
----
1305
190
4576

query I rowsort
SELECT ALL - col1 + + col1 + - col0 AS col1 FROM tab2 AS cor0
----
-7
-78
-79

query I rowsort
SELECT ALL + + col0 + - col2 * col1 FROM tab0 AS cor0
----
-2814
-62
-7373

query I rowsort
SELECT ALL - - col0 * 46 FROM tab0 cor0
----
1104
1610
4094

query I rowsort
SELECT DISTINCT - 4 FROM tab1 AS cor0
----
-4

query I rowsort
SELECT ALL + col2 * tab0.col0 FROM tab0
----
35
7298
792

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 - col1 col2 FROM tab2
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * col1 + col0 * col0 col2 FROM tab0 AS cor0
----
-1488
-178
-2170

query I rowsort
SELECT DISTINCT + col2 + col1 AS col2 FROM tab0 AS cor0
----
119
173
98

query I rowsort
SELECT DISTINCT - 11 * 37 + + cor0.col2 FROM tab2 AS cor0
----
-369
-380
-381

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5192
SELECT ALL - CAST( NULL AS DECIMAL ) / + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5192
SELECT ALL - CAST ( NULL AS REAL ) / + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5193
SELECT + - CAST( 79 AS SIGNED ) * col1 col0 FROM tab2 AS cor0
----
-1343
-2449
-4661

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5193
SELECT + - CAST ( 79 AS INTEGER ) * col1 col0 FROM tab2 AS cor0
----
-1343
-2449
-4661

query I rowsort
SELECT ALL cor0.col2 * cor0.col0 + col2 FROM tab0 AS cor0
----
36
7380
825

query I rowsort
SELECT + 21 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to c5272facdaaa11f884c8cc0d9d4f41c7

query I rowsort
SELECT DISTINCT - ( 86 ) - col0 AS col0 FROM tab0
----
-110
-121
-175

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 69 * + col0 + ( 28 ) col2 FROM tab1 AS cor0
----
-179
-4388
-5492

onlyif mysql # use DIV operator for integer division
query I rowsort label-5198
SELECT DISTINCT + col0 DIV + col2 AS col1 FROM tab1 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-5198
SELECT DISTINCT + col0 / + col2 AS col1 FROM tab1 AS cor0
----
0
1

query I rowsort
SELECT - ( + col1 ) + + ( - col2 ) * - col1 + - col2 * + col2 AS col1 FROM tab0 AS cor0
----
-1
1663
647

query I rowsort
SELECT DISTINCT col0 - + col1 * - col2 FROM tab1
----
1328
1407
634

onlyif mysql # use DIV operator for integer division
query I rowsort label-5201
SELECT + cor0.col0 DIV - col0 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-5201
SELECT + cor0.col0 / - col0 FROM tab1 AS cor0
----
-1
-1
-1

query I rowsort
SELECT ALL tab1.col2 * + tab1.col0 AS col1 FROM tab1
----
162
3648
7680

query I rowsort
SELECT ALL - col0 * 66 FROM tab2 cor0
----
-462
-5148
-5214

query I rowsort
SELECT + 10 + - 45 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to c12e8bdd687c9040a5600dab3b6adf5b

query I rowsort
SELECT DISTINCT cor1.col1 * cor1.col2 AS col1 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
1248
1404
570

query I rowsort
SELECT - col1 * 89 + - col2 AS col1 FROM tab2 AS cor0
----
-1551
-2786
-5277

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 + ( - col2 ) col2 FROM tab2 AS cor0
----
-20
41
52

query I rowsort
SELECT - cor0.col2 AS col2 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to f9d4bb8677db7b98c7ed89d06e6e8cd6

query I rowsort
SELECT cor0.col1 AS col0 FROM tab1, tab0 cor0
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc

query I rowsort
SELECT - col1 * 98 FROM tab0 cor0
----
-8428
-8918
-9506

query I rowsort
SELECT - col0 + + col0 * + cor0.col1 AS col0 FROM tab2 AS cor0
----
1264
210
4524

query I rowsort
SELECT cor0.col0 * col0 AS col1 FROM tab0 AS cor0
----
1225
576
7921

query I rowsort
SELECT DISTINCT - col0 * col1 AS col1 FROM tab2 cor0
----
-1343
-217
-4602

query I rowsort
SELECT col2 * ( col1 * 92 ) AS col1 FROM tab0 cor0
----
261096
686504
8924

query I rowsort
SELECT DISTINCT - tab0.col1 * tab0.col2 * + 5 AS col2 FROM tab0
----
-14190
-37310
-485

query I rowsort
SELECT 31 AS col1 FROM tab0 AS cor0
----
31
31
31

query I rowsort
SELECT + 37 AS col2 FROM tab2 cor0
----
37
37
37

query I rowsort
SELECT ALL col1 - - col2 FROM tab1 AS cor0
----
109
67
80

query I rowsort
SELECT ALL + - col2 + + col2 AS col2 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT + col1 + col2 * 79 * + col0 FROM tab0 AS cor0
----
2862
576633
62654

query I rowsort
SELECT 10 * col2 AS col2 FROM tab1 AS cor0
----
540
570
960

query I rowsort
SELECT - cor0.col1 * + col1 + + col2 * 60 * col1 AS col0 FROM tab1 cor0
----
34100
74711
83564

onlyif mysql # use DIV operator for integer division
query I rowsort label-5223
SELECT ALL - col2 DIV tab1.col1 + col1 AS col0 FROM tab1
----
24
5
6

skipif mysql # not compatible
query I rowsort label-5223
SELECT ALL - col2 / tab1.col1 + col1 AS col0 FROM tab1
----
24
5
6

query I rowsort
SELECT ALL col2 + 66 AS col2 FROM tab2
----
104
92
93

query I rowsort
SELECT - col0 * 20 * col2 AS col0 FROM tab0
----
-145960
-15840
-700

query I rowsort
SELECT col1 * - col1 AS col0 FROM tab1 cor0
----
-100
-169
-676

query I rowsort
SELECT ( col2 ) * ( - col0 ) FROM tab1
----
-162
-3648
-7680

query I rowsort
SELECT 94 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to b0ffb7527f4fbf44f30945e1ccb58c24

query I rowsort
SELECT DISTINCT - - col2 + + cor0.col1 FROM tab1 cor0
----
109
67
80

query I rowsort
SELECT DISTINCT 8 * + col2 * + col2 - - 8 FROM tab1 AS cor0
----
23336
26000
73736

onlyif mysql # use DIV operator for integer division
query I rowsort label-5231
SELECT - 8 + col1 * + ( col0 ) DIV col0 FROM tab0 AS cor0
----
78
83
89

skipif mysql # not compatible
query I rowsort label-5231
SELECT - 8 + col1 * + ( col0 ) / col0 FROM tab0 AS cor0
----
78
83
89

query I rowsort
SELECT - cor0.col0 + - col2 AS col2 FROM tab1 AS cor0
----
-121
-176
-57

query I rowsort
SELECT col0 + 1 FROM tab0 AS cor0
----
25
36
90

query I rowsort
SELECT DISTINCT + 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-5235
SELECT - col2 + + CAST( col2 AS SIGNED ) FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5235
SELECT - col2 + + CAST ( col2 AS INTEGER ) FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - col0 * + col0 AS col0 FROM tab0
----
-1225
-576
-7921

query I rowsort
SELECT + 92 * + col1 AS col0 FROM tab1
----
1196
2392
920

query I rowsort
SELECT + col2 * col1 AS col0 FROM tab0 cor0
----
2838
7462
97

query I rowsort
SELECT col2 + 48 * 6 * - cor0.col2 AS col1 FROM tab0 cor0
----
-23534
-287
-9471

query I rowsort
SELECT col2 * col0 + - col2 FROM tab2 AS cor0
----
162
2002
2964

query I rowsort
SELECT ALL - cor0.col0 * 73 + - col2 * - col0 * + col1 AS col2 FROM tab0 AS cor0
----
657621
66360
840

query I rowsort
SELECT ALL - tab0.col1 * col0 AS col1 FROM tab0
----
-2064
-3395
-8099

query I rowsort
SELECT ALL col1 * + col1 AS col2 FROM tab2
----
289
3481
961

onlyif mysql # use DIV operator for integer division
query I rowsort label-5244
SELECT col0 DIV col0 col0 FROM tab0
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5244
SELECT col0 / col0 col0 FROM tab0
----
1
1
1

query I rowsort
SELECT - 73 - - col1 * 13 * ( + col2 ) AS col2 FROM tab1
----
16151
18179
7337

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 33 * + col1 col0 FROM tab0
----
2838
3003
3201

query I rowsort
SELECT col2 + - 51 FROM tab1
----
3
45
6

query I rowsort
SELECT DISTINCT cor0.col1 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1, tab1 AS cor1
----
86
91
97

query I rowsort
SELECT + col0 * - 80 FROM tab0
----
-1920
-2800
-7120

query I rowsort
SELECT - 75 AS col1 FROM tab1 AS cor0
----
-75
-75
-75

query I rowsort
SELECT + 10 AS col0 FROM tab2 AS cor0
----
10
10
10

onlyif mysql # use DIV operator for integer division
query I rowsort label-5252
SELECT + + col0 DIV col1 AS col1 FROM tab1 cor0
----
0
6
6

skipif mysql # not compatible
query I rowsort label-5252
SELECT + + col0 / col1 AS col1 FROM tab1 cor0
----
0
6
6

query I rowsort
SELECT ALL - 44 * - col2 * - tab2.col0 AS col0 FROM tab2
----
-132088
-8316
-89232

query I rowsort
SELECT + 12 + - col1 AS col1 FROM tab0 AS cor0
----
-74
-79
-85

query I rowsort
SELECT ALL 6 FROM tab0 AS cor0
----
6
6
6

query I rowsort
SELECT ALL + - ( - col0 ) AS col1 FROM tab1 AS cor0
----
3
64
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col1 * - col2 col0 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT + + col0 + + col2 * + col0 * - col2 AS col2 FROM tab2 AS cor0
----
-113997
-5096
-52650

query I rowsort
SELECT 0 + 46 FROM tab1 cor0
----
46
46
46

query I rowsort
SELECT ALL + + col1 + - col1 * + cor0.col1 AS col1 FROM tab1 AS cor0
----
-156
-650
-90

query I rowsort
SELECT ALL + 6 AS col0 FROM tab1 AS cor0
----
6
6
6

query I rowsort
SELECT col1 * ( + col0 * - 7 ) AS col1 FROM tab0 AS cor0
----
-14448
-23765
-56693

query I rowsort
SELECT ALL - - 92 + col0 * - col1 + ( col1 ) * - col2 AS col2 FROM tab0 AS cor0
----
-15469
-3400
-4810

query I rowsort
SELECT DISTINCT + ( - ( - col1 ) ) AS col2 FROM tab2 AS cor0
----
17
31
59

query I rowsort
SELECT DISTINCT - + 32 FROM tab2 AS cor0
----
-32

query I rowsort
SELECT + 89 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 5c8428e9f1e7de3d09cb0814b4cc1743

query I rowsort
SELECT ALL + 58 + - cor0.col1 FROM tab2 AS cor0
----
-1
27
41

query I rowsort
SELECT DISTINCT + 58 + + ( - col1 ) * + 46 FROM tab2 AS cor0
----
-1368
-2656
-724

onlyif mysql # use DIV operator for integer division
query I rowsort label-5269
SELECT DISTINCT + + ( + col2 ) DIV cor0.col1 + cor0.col2 + 92 AS col2 FROM tab2 cor0
----
118
119
132

skipif mysql # not compatible
query I rowsort label-5269
SELECT DISTINCT + + ( + col2 ) / cor0.col1 + cor0.col2 + 92 AS col2 FROM tab2 cor0
----
118
119
132

query I rowsort
SELECT - + 80 + + ( - col1 ) FROM tab1 AS cor0
----
-106
-90
-93

query I rowsort
SELECT DISTINCT - cor0.col0 + col1 * col1 + + col1 * ( col1 ) AS col0 FROM tab0 AS cor0
----
14768
16473
18783

query I rowsort
SELECT DISTINCT - - col0 + col0 FROM tab1 cor0
----
128
160
6

query I rowsort
SELECT ALL - + col2 + - col0 AS col1 FROM tab1 AS cor0
----
-121
-176
-57

query I rowsort
SELECT cor0.col2 * col2 + + cor0.col2 AS col1 FROM tab2 AS cor0
----
1482
702
756

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 5 + + col1 col1 FROM tab1 AS cor0
----
21
5
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + ( + cor0.col1 ) col1 FROM tab0 AS cor0
----
-86
-91
-97

query I rowsort
SELECT ALL + + col2 * - 46 AS col1 FROM tab2 AS cor0
----
-1196
-1242
-1748

query I rowsort
SELECT cor0.col2 * col2 - + col1 FROM tab1 cor0
----
2890
3239
9203

query I rowsort
SELECT ALL - 7 * - col0 * + col2 + ( 21 + cor0.col1 ) FROM tab0 AS cor0
----
363
51198
5651

query I rowsort
SELECT - + ( - col1 ) + - col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + 91 FROM tab1 AS cor0
----
91
91
91

query I rowsort
SELECT DISTINCT 73 FROM tab1 AS cor0
----
73

query I rowsort
SELECT DISTINCT 97 + ( + col1 ) * - 70 + - col2 FROM tab0
----
-5956
-6355
-6694

query I rowsort
SELECT ALL - + col1 * col0 + - col1 FROM tab0 AS cor0
----
-2150
-3492
-8190

query I rowsort
SELECT ALL - + col0 * cor0.col2 AS col1 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT - cor0.col2 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to b5a4102107e5ebd26e341538f4fede1e

query I rowsort
SELECT + 56 FROM tab0
----
56
56
56

query I rowsort
SELECT - cor1.col1 AS col1 FROM tab0, tab1 AS cor0, tab1 cor1
----
27 values hashing to c7890469eabb2c6fc81454b35d2333b6

query I rowsort
SELECT DISTINCT + col2 + - col0 * - 97 AS col1 FROM tab2 AS cor0
----
706
7592
7701

query I rowsort
SELECT DISTINCT - col1 * col0 AS col2 FROM tab1 cor0
----
-1040
-640
-78

query I rowsort
SELECT col0 * - 48 * - col0 FROM tab1 AS cor0
----
196608
307200
432

query I rowsort
SELECT ALL col1 * 35 FROM tab1 AS cor0
----
350
455
910

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5293
SELECT col2 * CAST( + 50 * col2 AS SIGNED ) + tab0.col1 FROM tab0
----
147
336291
54536

skipif mysql # not compatible
query I rowsort label-5293
SELECT col2 * CAST ( + 50 * col2 AS INTEGER ) + tab0.col1 FROM tab0
----
147
336291
54536

query I rowsort
SELECT - col2 * col1 * + col1 FROM tab1
----
-16224
-36504
-5700

query I rowsort
SELECT ALL - col0 + ( - col1 ) FROM tab0
----
-110
-132
-180

onlyif mysql # use DIV operator for integer division
query I rowsort label-5296
SELECT ALL col0 + col1 DIV + col0 AS col0 FROM tab0
----
27
37
90

skipif mysql # not compatible
query I rowsort label-5296
SELECT ALL col0 + col1 / + col0 AS col0 FROM tab0
----
27
37
90

query I rowsort
SELECT ALL - tab0.col0 * col0 - tab0.col2 FROM tab0
----
-1226
-609
-8003

query I rowsort
SELECT - 80 * 47 + col1 * col0 AS col2 FROM tab2 AS cor0
----
-2417
-3543
842

query I rowsort
SELECT DISTINCT - col2 * - 43 FROM tab1
----
2322
2451
4128

query I rowsort
SELECT DISTINCT + col1 * ( + 95 ) AS col2 FROM tab1
----
1235
2470
950

query I rowsort
SELECT 76 * - col2 FROM tab0
----
-2508
-6232
-76

query I rowsort
SELECT DISTINCT + ( - col1 ) AS col0 FROM tab1
----
-10
-13
-26

query I rowsort
SELECT - 54 AS col2 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to 71e27a12767d3a987ce05e4d6edad211

query I rowsort
SELECT ALL - + ( + col0 ) AS col1 FROM tab2 AS cor0
----
-7
-78
-79

query I rowsort
SELECT 20 * + 50 FROM tab2
----
1000
1000
1000

query I rowsort
SELECT - tab2.col0 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 3000337dd3f11e9cfd5a312b01ef3f8b

query I rowsort
SELECT ALL - - col2 + + col2 * cor0.col0 * 76 FROM tab1 AS cor0
----
12366
277305
583776

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5308
SELECT CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5308
SELECT CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT cor0.col1 + + 2 FROM tab0 AS cor0
----
88
93
99

query I rowsort
SELECT DISTINCT - ( col2 ) * + col0 - - col0 AS col0 FROM tab2 AS cor0
----
-182
-1950
-2923

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 58 col2 FROM tab0 AS cor0
----
-58
-58
-58

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5312
SELECT + CAST( NULL AS SIGNED ) - - ( + cor0.col2 ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5312
SELECT + CAST ( NULL AS INTEGER ) - - ( + cor0.col2 ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - tab0.col2 * tab0.col1 FROM tab0
----
-2838
-7462
-97

query I rowsort
SELECT - 78 FROM tab2
----
-78
-78
-78

query I rowsort
SELECT - col1 * col2 + 91 AS col2 FROM tab1
----
-1157
-1313
-479

query I rowsort
SELECT ALL cor0.col0 FROM tab2, tab0, tab0 cor0
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd

query I rowsort
SELECT + col2 * + col0 + - col0 * 77 + + col0 AS col1 FROM tab2 AS cor0
----
-3002
-343
-3900

query I rowsort
SELECT DISTINCT + col2 * col0 + col2 AS col0 FROM tab0 AS cor0
----
36
7380
825

query I rowsort
SELECT ALL 74 FROM tab0 AS cor0
----
74
74
74

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab0 AS cor0, tab0 AS cor1, tab2 cor2
----
972 values hashing to d41be7437523f0dba2158c7f0439f329

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-5322
SELECT DISTINCT cor0.col2 * CAST( - 34 AS SIGNED ) + col0 FROM tab1 AS cor0
----
-1833
-1874
-3184

skipif mysql # not compatible
query I rowsort label-5322
SELECT DISTINCT cor0.col2 * CAST ( - 34 AS INTEGER ) + col0 FROM tab1 AS cor0
----
-1833
-1874
-3184

query I rowsort
SELECT DISTINCT + col1 + col1 * col1 FROM tab2 cor0
----
306
3540
992

query I rowsort
SELECT + col1 * + cor0.col1 AS col0 FROM tab0 AS cor0
----
7396
8281
9409

onlyif mysql # use DIV operator for integer division
query I rowsort label-5325
SELECT DISTINCT col1 DIV + cor0.col2 FROM tab0 AS cor0
----
1
2
97

skipif mysql # not compatible
query I rowsort label-5325
SELECT DISTINCT col1 / + cor0.col2 FROM tab0 AS cor0
----
1
2
97

query I rowsort
SELECT ALL + col1 + 31 * cor0.col0 FROM tab2 AS cor0
----
2466
2477
248

query I rowsort
SELECT + col1 * + cor0.col1 AS col0 FROM tab0 cor0
----
7396
8281
9409

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col2 + - 14 col1 FROM tab2 AS cor0
----
12
13
24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 61 col1 FROM tab2
----
-61
-61
-61

query I rowsort
SELECT ALL + 86 FROM tab2
----
86
86
86

query I rowsort
SELECT + col2 + + col2 AS col0 FROM tab2
----
52
54
76

query I rowsort
SELECT DISTINCT - 76 AS col2 FROM tab1
----
-76

query I rowsort
SELECT col0 * + ( + 49 ) FROM tab0 cor0
----
1176
1715
4361

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5334
SELECT + - col1 * - CAST( NULL AS DECIMAL ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5334
SELECT + - col1 * - CAST ( NULL AS REAL ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 54 * col1 * ( col1 ) AS col0 FROM tab2
----
-15606
-187974
-51894

onlyif mysql # use DIV operator for integer division
query I rowsort label-5336
SELECT DISTINCT 56 DIV + col2 FROM tab1
----
0
1

skipif mysql # not compatible
query I rowsort label-5336
SELECT DISTINCT 56 / + col2 FROM tab1
----
0
1

query I rowsort
SELECT DISTINCT - col2 * col0 AS col1 FROM tab0
----
-35
-7298
-792

query I rowsort
SELECT - - col1 + + col2 + - col1 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT - + ( cor0.col1 ) AS col1 FROM tab1 AS cor0
----
-10
-13
-26

onlyif mysql # use DIV operator for integer division
query I rowsort label-5340
SELECT DISTINCT tab0.col0 DIV col2 AS col1 FROM tab0
----
0
1
35

skipif mysql # not compatible
query I rowsort label-5340
SELECT DISTINCT tab0.col0 / col2 AS col1 FROM tab0
----
0
1
35

query I rowsort
SELECT ALL - 79 + - col1 * - ( + col1 ) * col2 FROM tab1 AS cor0
----
16145
36425
5621

query I rowsort
SELECT DISTINCT - col2 + - 46 FROM tab0 AS cor0
----
-128
-47
-79

query I rowsort
SELECT + col0 * - col0 + 4 FROM tab2 AS cor0
----
-45
-6080
-6237

query I rowsort
SELECT ALL col0 * col1 AS col2 FROM tab2
----
1343
217
4602

onlyif mysql # use DIV operator for integer division
query I rowsort label-5345
SELECT col0 DIV col1 + col2 AS col2 FROM tab2
----
27
27
42

skipif mysql # not compatible
query I rowsort label-5345
SELECT col0 / col1 + col2 AS col2 FROM tab2
----
27
27
42

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5346
SELECT - col1 + - CAST( NULL AS SIGNED ) + 85 * + col0 AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5346
SELECT - col1 + - CAST ( NULL AS INTEGER ) + 85 * + col0 AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + + col2 + - 95 * col0 AS col0 FROM tab2 AS cor0
----
-638
-7384
-7467

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL NOT BETWEEN NULL AND ( col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 - + col0 col2 FROM tab2
----
-41
-52
20

query I rowsort
SELECT + col0 - col1 AS col1 FROM tab2
----
-24
19
62

query I rowsort
SELECT DISTINCT - tab1.col0 FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND col2
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - col2 IN ( col1 )
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45

query I rowsort
SELECT - col2 + col2 - - col1 * col0 FROM tab2
----
1343
217
4602

query I rowsort
SELECT + col0 + col2 * col1 * - col0 AS col1 FROM tab1
----
-36416
-4209
-99760

query I rowsort
SELECT ALL col0 + - tab1.col1 AS col2 FROM tab1
----
-23
54
67

query I rowsort
SELECT - col2 * - col0 + col2 * col1 AS col2 FROM tab0
----
132
14760
3630

onlyif mysql # use DIV operator for integer division
query I rowsort label-5357
SELECT ALL - col1 + col0 DIV tab1.col1 + - col2 FROM tab1
----
-103
-61
-80

skipif mysql # not compatible
query I rowsort label-5357
SELECT ALL - col1 + col0 / tab1.col1 + - col2 FROM tab1
----
-103
-61
-80

query I rowsort
SELECT + col2 * col2 + + col0 + col0 * + col0 FROM tab2
----
6838
7764
785

onlyif mysql # use DIV operator for integer division
query I rowsort label-5359
SELECT - col0 DIV - col1 + + col2 * - col0 AS col0 FROM tab0
----
-35
-7298
-792

skipif mysql # not compatible
query I rowsort label-5359
SELECT - col0 / - col1 + + col2 * - col0 AS col0 FROM tab0
----
-35
-7298
-792

onlyif mysql # use DIV operator for integer division
query I rowsort label-5360
SELECT DISTINCT + tab0.col0 DIV + col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-5360
SELECT DISTINCT + tab0.col0 / + col1 FROM tab0
----
0

query I rowsort
SELECT + col2 * - col0 + - 83 + col1 AS col0 FROM tab2 AS cor0
----
-2052
-241
-3068

query I rowsort
SELECT - 74 FROM tab0, tab1 cor0, tab0 AS cor1, tab1 AS cor2
----
81 values hashing to 83dc6c0e38784f5f5c6b91de33ab4ff1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5363
SELECT + 79 * - col2 * CAST( 41 AS SIGNED ) FROM tab1 AS cor0
----
-174906
-184623
-310944

skipif mysql # not compatible
query I rowsort label-5363
SELECT + 79 * - col2 * CAST ( 41 AS INTEGER ) FROM tab1 AS cor0
----
-174906
-184623
-310944

query I rowsort
SELECT + col0 * - col1 * col1 - + col0 FROM tab2
----
-22910
-271596
-6734

query I rowsort
SELECT ALL + col0 AS col1 FROM tab0 WHERE NOT NULL <> ( NULL )
----

query I rowsort
SELECT col0 * col0 * col1 FROM tab0
----
118825
49536
720811

query I rowsort
SELECT DISTINCT + col2 - - tab2.col1 * col2 AS col2 FROM tab2
----
1560
684
864

query I rowsort
SELECT ALL + col0 AS col1 FROM tab2 WHERE NULL <> col1 * + col1 * - col0 + - col1 * - col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * - col1 col2 FROM tab1
----
-1248
-1404
-570

query I rowsort
SELECT ALL + col0 * + col0 AS col2 FROM tab2
----
49
6084
6241

query I rowsort
SELECT DISTINCT + col0 * - col0 AS col1 FROM tab1
----
-4096
-6400
-9

onlyif mysql # use DIV operator for integer division
query I rowsort label-5372
SELECT tab2.col0 DIV + col0 + + col0 DIV tab2.col1 AS col1 FROM tab2
----
1
2
5

skipif mysql # not compatible
query I rowsort label-5372
SELECT tab2.col0 / + col0 + + col0 / tab2.col1 AS col1 FROM tab2
----
1
2
5

query I rowsort
SELECT + col2 + - col0 AS col2 FROM tab1 AS cor0
----
-7
16
51

query I rowsort
SELECT + col1 + + col0 * col0 AS col0 FROM tab0 AS cor0
----
1322
662
8012

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 89 col1 FROM tab2 AS cor0
----
-89
-89
-89

query I rowsort
SELECT ALL - col1 * + col1 + + cor0.col1 FROM tab0 AS cor0
----
-7310
-8190
-9312

query I rowsort
SELECT - 58 + col1 FROM tab1 AS cor0
----
-32
-45
-48

query I rowsort
SELECT + + 98 FROM tab1 cor0
----
98
98
98

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5379
SELECT + - 23 * col1 + CAST( + col1 * col2 AS SIGNED ) FROM tab0 AS cor0
----
-2134
5369
860

skipif mysql # not compatible
query I rowsort label-5379
SELECT + - 23 * col1 + CAST ( + col1 * col2 AS INTEGER ) FROM tab0 AS cor0
----
-2134
5369
860

query I rowsort
SELECT + ( - col0 + - col0 ) * - 4 * - col0 FROM tab2
----
-392
-48672
-49928

query I rowsort
SELECT ALL - 91 AS col2 FROM tab1
----
-91
-91
-91

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5382
SELECT CAST( col0 AS SIGNED ) * + col1 AS col2 FROM tab2
----
1343
217
4602

skipif mysql # not compatible
query I rowsort label-5382
SELECT CAST ( col0 AS INTEGER ) * + col1 AS col2 FROM tab2
----
1343
217
4602

query I rowsort
SELECT DISTINCT 67 * - col0 AS col1 FROM tab2
----
-469
-5226
-5293

query I rowsort
SELECT ALL + col2 * - col0 + + 32 * col0 * col2 AS col2 FROM tab2 AS cor0
----
5859
62868
93062

onlyif mysql # use DIV operator for integer division
query I rowsort label-5385
SELECT ALL + cor0.col0 DIV + col0 + - cor0.col1 AS col1 FROM tab0 AS cor0
----
-85
-90
-96

skipif mysql # not compatible
query I rowsort label-5385
SELECT ALL + cor0.col0 / + col0 + - cor0.col1 AS col1 FROM tab0 AS cor0
----
-85
-90
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * - col2 - cor0.col1 col2 FROM tab0 AS cor0
----
-194
-2924
-7553

query I rowsort
SELECT ALL - 3 AS col2 FROM tab0
----
-3
-3
-3

query I rowsort
SELECT + col2 + 44 AS col2 FROM tab0 cor0
----
126
45
77

query I rowsort
SELECT ALL - col0 + 40 FROM tab0 AS cor0
----
-49
16
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 - - col2 col2 FROM tab0
----
171
36
57

query I rowsort
SELECT DISTINCT + 32 - tab2.col2 AS col2 FROM tab2
----
-6
5
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 27 * 28 col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
756

query I rowsort
SELECT 17 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 43298e43365fccb5146ea32003753c92

query I rowsort
SELECT ALL tab2.col2 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3

query I rowsort
SELECT col2 * + 12 AS col2 FROM tab1 AS cor0
----
1152
648
684

query I rowsort
SELECT + - 72 * + col0 AS col2 FROM tab1 AS cor0
----
-216
-4608
-5760

query I rowsort
SELECT DISTINCT - col1 * col1 AS col0 FROM tab2
----
-289
-3481
-961

query I rowsort
SELECT + 13 AS col1 FROM tab1, tab2 cor0
----
9 values hashing to 184e52d7aa5aa66591291e39c67a3dfb

query I rowsort
SELECT 75 AS col1 FROM tab2
----
75
75
75

query I rowsort
SELECT - 45 AS col0 FROM tab2
----
-45
-45
-45

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + cor0.col0 col1 FROM tab2 AS cor0
----
137
38
96

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab0 AS cor0, tab0 cor1, tab1 AS cor2
----
972 values hashing to 9af67d6f98010464af5d560bf949d487

query I rowsort
SELECT DISTINCT + cor0.col1 AS col0 FROM tab2, tab2 AS cor0
----
17
31
59

query I rowsort
SELECT + ( 70 ) * cor0.col0 FROM tab2 AS cor0
----
490
5460
5530

query I rowsort
SELECT 84 + - col1 + + col1 FROM tab1
----
84
84
84

query I rowsort
SELECT + cor1.col0 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a

query I rowsort
SELECT DISTINCT ( col2 ) + col0 AS col2 FROM tab1
----
121
176
57

query I rowsort
SELECT DISTINCT + - cor0.col2 + - col2 FROM tab1 AS cor0
----
-108
-114
-192

query I rowsort
SELECT + col0 * col0 + cor0.col2 AS col1 FROM tab1 AS cor0
----
4153
63
6496

query I rowsort
SELECT DISTINCT - - col1 * + col1 + col2 + col1 * col0 AS col0 FROM tab1 AS cor0
----
1305
797
808

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 - col0 col2 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT - + col2 * col0 + - col1 AS col2 FROM tab2 AS cor0
----
-2087
-220
-3019

query I rowsort
SELECT - + 39 * col1 + + col2 FROM tab1 AS cor0
----
-333
-411
-960

query I rowsort
SELECT ALL + 46 * col2 + col2 AS col0 FROM tab2 AS cor0
----
1222
1269
1786

query I rowsort
SELECT ALL + col0 + - col2 AS col2 FROM tab2 cor0
----
-20
41
52

onlyif mysql # use DIV operator for integer division
query I rowsort label-5416
SELECT ALL col2 + - col2 DIV col0 AS col1 FROM tab0 AS cor0
----
1
32
82

skipif mysql # not compatible
query I rowsort label-5416
SELECT ALL col2 + - col2 / col0 AS col1 FROM tab0 AS cor0
----
1
32
82

query I rowsort
SELECT DISTINCT + col1 * - col1 AS col1 FROM tab0 AS cor0
----
-7396
-8281
-9409

onlyif mysql # use DIV operator for integer division
query I rowsort label-5418
SELECT ALL cor0.col1 DIV + col1 AS col1 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5418
SELECT ALL cor0.col1 / + col1 AS col1 FROM tab1 AS cor0
----
1
1
1

query I rowsort
SELECT + col2 + - col1 FROM tab0 cor0
----
-53
-9
-96

query I rowsort
SELECT - col1 * col0 + + col0 AS col0 FROM tab2 AS cor0
----
-1264
-210
-4524

query I rowsort
SELECT + + 27 AS col1 FROM tab2 AS cor0
----
27
27
27

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5422
SELECT ALL CAST( + 74 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
74
74
74

skipif mysql # not compatible
query I rowsort label-5422
SELECT ALL CAST ( + 74 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
74
74
74

onlyif mysql # use DIV operator for integer division
query I rowsort label-5423
SELECT - col2 DIV + col1 AS col1 FROM tab2 AS cor0
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-5423
SELECT - col2 / + col1 AS col1 FROM tab2 AS cor0
----
-2
0
0

query I rowsort
SELECT DISTINCT + - col2 + col0 AS col2 FROM tab1 AS cor0
----
-16
-51
7

query I rowsort
SELECT DISTINCT - col1 + + 60 * + col2 * + col2 AS col2 FROM tab0 AS cor0
----
-37
403349
65254

query I rowsort
SELECT 13 + 0 FROM tab2 AS cor0
----
13
13
13

query I rowsort
SELECT ALL - cor0.col0 FROM tab2, tab2 cor0, tab2 cor1
----
27 values hashing to c82df1de3cb666224690a83f3d790d79

query I rowsort
SELECT ALL + - col2 + 18 + + col0 FROM tab1 AS cor0
----
-33
2
25

query I rowsort
SELECT ALL - + col2 + - col0 AS col1 FROM tab0 AS cor0
----
-171
-36
-57

query I rowsort
SELECT DISTINCT - 26 + + col0 FROM tab1 AS cor0
----
-23
38
54

query I rowsort
SELECT DISTINCT col1 * 9 FROM tab2
----
153
279
531

query I rowsort
SELECT DISTINCT + + 59 * - cor0.col1 AS col0 FROM tab2 cor0
----
-1003
-1829
-3481

query I rowsort
SELECT ALL + + col0 * - cor0.col1 AS col2 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT + col0 * + col1 + - col2 FROM tab2 AS cor0
----
1305
190
4576

onlyif mysql # use DIV operator for integer division
query I rowsort label-5435
SELECT + col0 * + col0 DIV col0 col1 FROM tab2 AS cor0
----
7
78
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5435
SELECT + col0 * + col0 / col0 col1 FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT ALL + 71 FROM tab0
----
71
71
71

query I rowsort
SELECT + 31 + ( + col0 + - col0 ) AS col0 FROM tab2
----
31
31
31

query I rowsort
SELECT DISTINCT + ( 69 ) AS col2 FROM tab0
----
69

query I rowsort
SELECT - col0 + - 27 AS col2 FROM tab1
----
-107
-30
-91

query I rowsort
SELECT + col1 * col0 + + col1 * col2 FROM tab0
----
15561
3492
4902

query I rowsort
SELECT 37 + - col2 AS col2 FROM tab0
----
-45
36
4

query I rowsort
SELECT ALL + 82 AS col2 FROM tab1
----
82
82
82

query I rowsort
SELECT DISTINCT - col0 + col2 - + col0 FROM tab0 AS cor0
----
-15
-69
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col1 + + col0 col1 FROM tab0 AS cor0
----
110
132
180

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab1.col1 + + col1 col0 FROM tab1
----
20
26
52

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 cor0 CROSS JOIN tab1
----
54 values hashing to 341cdc053c309cf3abe57fa060ecf96e

query I rowsort
SELECT ALL col2 FROM tab0 WHERE NOT ( NULL ) < NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NULL NOT BETWEEN NULL AND col1 / - col0
----

query I rowsort
SELECT ALL - col0 + col1 AS col1 FROM tab1
----
-54
-67
23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - tab2.col1 col0 FROM tab2
----
-17
-31
-59

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col2 = NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-5452
SELECT DISTINCT + col0 DIV + col1 - col2 * + col2 FROM tab0
----
-1
-1089
-6724

skipif mysql # not compatible
query I rowsort label-5452
SELECT DISTINCT + col0 / + col1 - col2 * + col2 FROM tab0
----
-1
-1089
-6724

query I rowsort
SELECT col1 AS col2 FROM tab1 WHERE NOT ( NULL ) NOT BETWEEN NULL AND col0 * + col0 * col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * col1 + col2 + + col1 col2 FROM tab2
----
1398
275
4687

query I rowsort
SELECT col2 + col0 * - col2 AS col1 FROM tab2
----
-162
-2002
-2964

query I rowsort
SELECT + col2 * + col0 AS col2 FROM tab1
----
162
3648
7680

query I rowsort
SELECT DISTINCT - col1 * col1 FROM tab0 WHERE NULL NOT IN ( col0 )
----

query I rowsort
SELECT DISTINCT - col0 + tab1.col0 * - col2 AS col2 FROM tab1 WHERE NOT NULL BETWEEN col0 + col2 AND NULL
----

query I rowsort
SELECT ALL + col0 - col0 FROM tab1 cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col1 * + col2 + + col1 col1 FROM tab0 AS cor0
----
-2752
-7371
0

query I rowsort
SELECT ALL - tab1.col2 + col1 FROM tab1
----
-28
-47
-83

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col1 BETWEEN - col0 + col1 AND NULL
----

query I rowsort
SELECT tab1.col1 AS col1 FROM tab1, tab2, tab1 AS cor0
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892

query I rowsort
SELECT - col2 * col0 - + tab0.col0 FROM tab0
----
-70
-7387
-816

query I rowsort
SELECT ALL tab2.col1 * - col2 + tab2.col2 FROM tab2
----
-1508
-608
-810

query I rowsort
SELECT ALL tab1.col1 + - col2 AS col1 FROM tab1
----
-28
-47
-83

query I rowsort
SELECT - col2 + col1 * col0 AS col0 FROM tab2
----
1305
190
4576

query I rowsort
SELECT col0 * - cor0.col2 + - col0 FROM tab1 cor0
----
-165
-3712
-7760

query I rowsort
SELECT ALL tab2.col2 + + col0 FROM tab2
----
104
117
34

query I rowsort
SELECT ALL + col1 + + col2 AS col2 FROM tab0
----
119
173
98

query I rowsort
SELECT col1 + col2 + - col1 FROM tab1
----
54
57
96

query I rowsort
SELECT DISTINCT + col2 + - col1 * + col2 + col1 FROM tab1
----
-1139
-1324
-503

query I rowsort
SELECT DISTINCT col0 * col0 * - col0 + - col2 AS col0 FROM tab2
----
-370
-474578
-493077

query I rowsort
SELECT ALL col2 * - col0 + col0 + tab2.col1 AS col1 FROM tab2
----
-151
-1891
-2906

query I rowsort
SELECT - tab1.col1 + - col2 * - col0 FROM tab1
----
136
3638
7667

query I rowsort
SELECT ALL + col0 + col1 AS col2 FROM tab2
----
137
38
96

query I rowsort
SELECT col2 + tab2.col0 * tab2.col2 * col2 AS col1 FROM tab2
----
114114
5130
52754

onlyif mysql # use DIV operator for integer division
query I rowsort label-5478
SELECT ALL col1 DIV col0 + col1 FROM tab0 cor0
----
89
92
99

skipif mysql # not compatible
query I rowsort label-5478
SELECT ALL col1 / col0 + col1 FROM tab0 cor0
----
89
92
99

query I rowsort
SELECT + + col2 * col1 + col2 AS col1 FROM tab2 AS cor0
----
1560
684
864

query I rowsort
SELECT DISTINCT - cor0.col0 - col0 AS col0 FROM tab1 AS cor0
----
-128
-160
-6

query I rowsort
SELECT ALL + + col0 * col1 + - cor0.col2 FROM tab2 AS cor0
----
1305
190
4576

onlyif mysql # use DIV operator for integer division
query I rowsort label-5482
SELECT - col1 DIV col2 + col2 FROM tab0 AS cor0
----
-96
31
81

skipif mysql # not compatible
query I rowsort label-5482
SELECT - col1 / col2 + col2 FROM tab0 AS cor0
----
-96
31
81

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL IN ( col2 + - col0 )
----

query I rowsort
SELECT DISTINCT + cor0.col1 * - col0 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT DISTINCT + - col1 + + col0 * + cor0.col2 FROM tab2 AS cor0
----
158
1969
2985

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + + col0 * + col2 col2 FROM tab0 cor0
----
0
7209
768

onlyif mysql # use DIV operator for integer division
query I rowsort label-5487
SELECT DISTINCT col1 * col2 + col0 * - col1 DIV col1 FROM tab2 cor0
----
1456
567
830

skipif mysql # not compatible
query I rowsort label-5487
SELECT DISTINCT col1 * col2 + col0 * - col1 / col1 FROM tab2 cor0
----
1456
567
830

query I rowsort
SELECT ALL - + cor0.col1 + col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT col1 * - col2 AS col1 FROM tab0 cor0
----
-2838
-7462
-97

query I rowsort
SELECT - - col0 * col2 * col2 FROM tab2 AS cor0
----
114076
5103
52728

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 22 * cor0.col2 col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 753d4f7c514b9e015612181ef0349c00

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 46 + + col2 col2 FROM tab1 AS cor0
----
100
103
142

query I rowsort
SELECT - cor0.col2 * col0 * + col0 + + 71 AS col1 FROM tab0 AS cor0
----
-1154
-18937
-649451

query I rowsort
SELECT - ( cor0.col1 ) * - col1 + col0 AS col1 FROM tab1 AS cor0
----
164
249
679

query I rowsort
SELECT + 29 * - 64 AS col2 FROM tab0 AS cor0
----
-1856
-1856
-1856

query I rowsort
SELECT DISTINCT tab0.col0 * col1 AS col1 FROM tab0
----
2064
3395
8099

query I rowsort
SELECT - col2 * + 69 * col2 AS col1 FROM tab1
----
-201204
-224181
-635904

query I rowsort
SELECT - 58 AS col1 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to de0811e670e75d2aeeb657e32bddb0c0

query I rowsort
SELECT ( tab1.col1 ) * col0 FROM tab1
----
1040
640
78

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5500
SELECT CAST( + 15 AS SIGNED ) * col1 AS col1 FROM tab0
----
1290
1365
1455

skipif mysql # not compatible
query I rowsort label-5500
SELECT CAST ( + 15 AS INTEGER ) * col1 AS col1 FROM tab0
----
1290
1365
1455

query I rowsort
SELECT - col0 * - col0 * - col1 FROM tab0
----
-118825
-49536
-720811

query I rowsort
SELECT - ( + 4 ) FROM tab1
----
-4
-4
-4

query I rowsort
SELECT - 98 * ( - col1 ) AS col1 FROM tab1
----
1274
2548
980

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 40 col2 FROM tab2, tab2 AS cor0
----
40

query I rowsort
SELECT 70 FROM tab0 cor0
----
70
70
70

query I rowsort
SELECT ALL 69 FROM tab0, tab2, tab0 cor0
----
27 values hashing to 2810c3097fe4771e273cfff903357b40

query I rowsort
SELECT + col1 + col0 AS col1 FROM tab1
----
29
74
93

query I rowsort
SELECT DISTINCT + tab2.col0 AS col1 FROM tab2, tab0 cor0
----
7
78
79

query I rowsort
SELECT ALL ( col0 ) * tab1.col1 AS col2 FROM tab1
----
1040
640
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col2 * cor0.col0 col2 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT + + 13 * col0 FROM tab0 cor0
----
1157
312
455

query I rowsort
SELECT DISTINCT + 8 FROM tab0
----
8

query I rowsort
SELECT + cor0.col2 * cor0.col2 - - col1 * - col2 FROM tab2 AS cor0
----
-108
-858
798

onlyif mysql # use DIV operator for integer division
query I rowsort label-5514
SELECT - col1 DIV + col1 col2 FROM tab1
----
-1
-1
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5514
SELECT - col1 / + col1 col2 FROM tab1
----
-1
-1
-1

query I rowsort
SELECT + - col1 + col1 * cor0.col0 AS col1 FROM tab1 AS cor0
----
1027
52
630

query I rowsort
SELECT DISTINCT - col2 * + col1 AS col0 FROM tab1
----
-1248
-1404
-570

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5517
SELECT - col0 + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5517
SELECT - col0 + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5518
SELECT CAST( NULL AS SIGNED ) * - ( cor0.col1 ) * - 84 + cor0.col1 * - tab1.col1 * CAST( NULL AS DECIMAL ) AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-5518
SELECT CAST ( NULL AS INTEGER ) * - ( cor0.col1 ) * - 84 + cor0.col1 * - tab1.col1 * CAST ( NULL AS REAL ) AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT - 87 FROM tab2, tab1 cor0
----
9 values hashing to 84bcab58a965cc8ae97b39d2d01b3d23

query I rowsort
SELECT - col1 - 72 FROM tab0
----
-158
-163
-169

query I rowsort
SELECT - - cor0.col1 + cor0.col2 * - 18 FROM tab2 AS cor0
----
-409
-455
-667

query I rowsort
SELECT cor0.col1 * 89 FROM tab0 cor0
----
7654
8099
8633

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * + col1 col2 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT DISTINCT 62 * col0 - - col2 * ( col0 ) * cor0.col1 FROM tab0 AS cor0
----
5565
669636
69600

query I rowsort
SELECT ALL col0 * + 31 * - col0 + - col2 AS col2 FROM tab1 cor0
----
-127033
-198496
-333

query I rowsort
SELECT DISTINCT - 24 * col1 - + col1 FROM tab2 AS cor0
----
-1475
-425
-775

query I rowsort
SELECT 15 + + cor0.col1 FROM tab0 AS cor0
----
101
106
112

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5528
SELECT + - CAST( NULL AS SIGNED ) * + cor0.col2 - + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5528
SELECT + - CAST ( NULL AS INTEGER ) * + cor0.col2 - + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col0 * col0 + + col1 * + col2 AS col2 FROM tab1 AS cor0
----
-3526
-5152
1395

query I rowsort
SELECT col1 * ( + col0 ) * col0 + ( - col1 ) - col2 * - col0 FROM tab0 AS cor0
----
118763
50242
728018

onlyif mysql # use DIV operator for integer division
query I rowsort label-5531
SELECT - ( + col0 ) + - col2 DIV + col0 FROM tab0 cor0
----
-25
-35
-89

skipif mysql # not compatible
query I rowsort label-5531
SELECT - ( + col0 ) + - col2 / + col0 FROM tab0 cor0
----
-25
-35
-89

onlyif mysql # use DIV operator for integer division
query I rowsort label-5532
SELECT ( - 48 ) DIV col2 + - col2 * - col2 AS col1 FROM tab1 AS cor0
----
2916
3249
9216

skipif mysql # not compatible
query I rowsort label-5532
SELECT ( - 48 ) / col2 + - col2 * - col2 AS col1 FROM tab1 AS cor0
----
2916
3249
9216

query I rowsort
SELECT ALL + ( - col2 ) * - col1 AS col0 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT + 7 FROM tab1, tab1 cor0
----
9 values hashing to 3362c0cb2b2c663037159d0699d46b76

query I rowsort
SELECT - - col1 * ( col1 ) AS col0 FROM tab0 AS cor0
----
7396
8281
9409

query I rowsort
SELECT DISTINCT + + cor0.col2 + 26 * - col0 FROM tab1 AS cor0
----
-1607
-1984
-24

query I rowsort
SELECT ALL + - 4 * 57 AS col0 FROM tab0 AS cor0
----
-228
-228
-228

onlyif mysql # use DIV operator for integer division
query I rowsort label-5538
SELECT ALL - col2 DIV 25 col1 FROM tab2 AS cor0
----
-1
-1
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5538
SELECT ALL - col2 / 25 col1 FROM tab2 AS cor0
----
-1
-1
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( col2 ) col0 FROM tab1 AS cor0
----
-54
-57
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 97 * - col2 col1 FROM tab2 AS cor0
----
-2522
-2619
-3686

query I rowsort
SELECT DISTINCT col0 + col0 * col2 AS col0 FROM tab0
----
70
7387
816

query I rowsort
SELECT - + 98 AS col1 FROM tab1 AS cor0
----
-98
-98
-98

query I rowsort
SELECT - - col0 + + col1 FROM tab1 AS cor0
----
29
74
93

query I rowsort
SELECT DISTINCT - col0 * col2 + col0 * - 20 * + col1 FROM tab1 cor0
----
-16448
-1722
-28480

query I rowsort
SELECT ALL 92 FROM tab1 AS cor0
----
92
92
92

query I rowsort
SELECT + col2 * cor0.col1 + - col2 FROM tab2 AS cor0
----
1508
608
810

query I rowsort
SELECT + - 91 FROM tab2 AS cor0
----
-91
-91
-91

onlyif mysql # use DIV operator for integer division
query I rowsort label-5548
SELECT ALL - + col2 DIV col0 AS col0 FROM tab2 AS cor0
----
-3
0
0

skipif mysql # not compatible
query I rowsort label-5548
SELECT ALL - + col2 / col0 AS col0 FROM tab2 AS cor0
----
-3
0
0

query I rowsort
SELECT ALL - col1 + cor0.col2 * col2 FROM tab0 cor0
----
-96
1003
6633

query I rowsort
SELECT ( tab0.col0 ) FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd

query I rowsort
SELECT ALL - col0 + + 11 FROM tab1 cor0
----
-53
-69
8

query I rowsort
SELECT ALL col0 * + col1 AS col1 FROM tab0 cor0
----
2064
3395
8099

query I rowsort
SELECT DISTINCT + - col1 * col1 FROM tab2 AS cor0
----
-289
-3481
-961

query I rowsort
SELECT ALL - 14 AS col1 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to c2bf0e2420d22cd58d7ee3b30827afcc

query I rowsort
SELECT DISTINCT - ( + col2 * - col2 + col1 ) AS col0 FROM tab0
----
-96
1003
6633

onlyif mysql # use DIV operator for integer division
query I rowsort label-5556
SELECT tab1.col0 - - col1 DIV col1 FROM tab1
----
4
65
81

skipif mysql # not compatible
query I rowsort label-5556
SELECT tab1.col0 - - col1 / col1 FROM tab1
----
4
65
81

query I rowsort
SELECT + col1 * 75 * col2 + - tab0.col1 FROM tab0
----
212764
559559
7178

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + - col1 col1 FROM tab0 AS cor0
----
-2
-62
-62

onlyif mysql # use DIV operator for integer division
query I rowsort label-5559
SELECT DISTINCT + 98 DIV - cor0.col0 AS col0 FROM tab2 AS cor0
----
-1
-14

skipif mysql # not compatible
query I rowsort label-5559
SELECT DISTINCT + 98 / - cor0.col0 AS col0 FROM tab2 AS cor0
----
-1
-14

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col2 col2 FROM tab1 AS cor0
----
-54
-57
-96

query I rowsort
SELECT + col2 * col0 * + 77 AS col0 FROM tab1 AS cor0
----
12474
280896
591360

query I rowsort
SELECT DISTINCT ( 25 + - col2 ) FROM tab1
----
-29
-32
-71

query I rowsort
SELECT tab2.col1 + + 51 AS col2 FROM tab2
----
110
68
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 19 col2 FROM tab0
----
-19
-19
-19

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab0 AS cor0, tab2, tab2 AS cor1 WHERE NOT ( NULL ) <> ( NULL )
----

query I rowsort
SELECT DISTINCT - tab2.col2 + col0 AS col2 FROM tab2
----
-20
41
52

onlyif mysql # use DIV operator for integer division
query I rowsort label-5567
SELECT ALL cor0.col2 DIV + col1 FROM tab1 AS cor0
----
2
5
7

skipif mysql # not compatible
query I rowsort label-5567
SELECT ALL cor0.col2 / + col1 FROM tab1 AS cor0
----
2
5
7

query I rowsort
SELECT DISTINCT - + col2 + + col0 AS col0 FROM tab1 AS cor0
----
-16
-51
7

query I rowsort
SELECT DISTINCT + col1 + col2 * - 32 AS col2 FROM tab2 AS cor0
----
-1199
-773
-833

query I rowsort
SELECT + + 78 AS col2 FROM tab1 AS cor0
----
78
78
78

query I rowsort
SELECT DISTINCT + col1 * - col2 AS col0 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT DISTINCT - cor0.col2 + + col0 FROM tab1 cor0
----
-16
-51
7

query I rowsort
SELECT + 96 + col0 * - col2 AS col0 FROM tab0 AS cor0
----
-696
-7202
61

query I rowsort
SELECT ALL + + cor0.col1 * - col0 - col2 * - cor0.col2 FROM tab1 AS cor0
----
2609
2838
8176

query I rowsort
SELECT DISTINCT - col0 * + col1 AS col1 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT ALL - + 41 AS col1 FROM tab1 AS cor0
----
-41
-41
-41

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 * - col0 col1 FROM tab2 cor0
----
-189
-2028
-3002

query I rowsort
SELECT DISTINCT - 53 * cor0.col0 * - col1 + + col0 AS col0 FROM tab2 AS cor0
----
11508
243984
71258

onlyif mysql # use DIV operator for integer division
query I rowsort label-5579
SELECT DISTINCT - cor0.col2 - + col0 DIV 60 FROM tab0 AS cor0
----
-1
-33
-83

skipif mysql # not compatible
query I rowsort label-5579
SELECT DISTINCT - cor0.col2 - + col0 / 60 FROM tab0 AS cor0
----
-1
-33
-83

query I rowsort
SELECT DISTINCT - col0 * col2 + + col0 * col2 AS col1 FROM tab2
----
0

query I rowsort
SELECT DISTINCT tab1.col2 * - tab1.col1 + col1 * - col2 AS col1 FROM tab1
----
-1140
-2496
-2808

query I rowsort
SELECT + - cor0.col1 + + col2 + col1 FROM tab2 AS cor0
----
26
27
38

query I rowsort
SELECT - - col0 * - col0 AS col2 FROM tab0 AS cor0
----
-1225
-576
-7921

query I rowsort
SELECT ALL col2 * 82 AS col1 FROM tab1 AS cor0
----
4428
4674
7872

query I rowsort
SELECT - col2 * + 80 AS col2 FROM tab1 AS cor0
----
-4320
-4560
-7680

query I rowsort
SELECT DISTINCT 20 * - col2 * + col1 AS col0 FROM tab1 AS cor0
----
-11400
-24960
-28080

query I rowsort
SELECT ALL + ( + col1 ) + + col2 FROM tab2 AS cor0
----
55
58
85

onlyif mysql # use DIV operator for integer division
query I rowsort label-5588
SELECT 31 + 29 DIV cor0.col1 FROM tab2 AS cor0
----
31
31
32

skipif mysql # not compatible
query I rowsort label-5588
SELECT 31 + 29 / cor0.col1 FROM tab2 AS cor0
----
31
31
32

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5589
SELECT ALL + + CAST( NULL AS SIGNED ) + col1 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5589
SELECT ALL + + CAST ( NULL AS INTEGER ) + col1 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query IIIIIIIIIIII rowsort
SELECT * FROM tab2, tab1 AS cor0, tab0 cor1, tab2 cor2
----
972 values hashing to 9600bdf5bac0caec3229e87170cc40b3

query I rowsort
SELECT + col0 * 16 FROM tab2 AS cor0
----
112
1248
1264

skipif mysql # not compatible
query I rowsort
SELECT ALL - CAST ( 80 AS REAL ) + + col0 FROM tab0 AS cor0
----
-45
-56
9

query I rowsort
SELECT - 63 * col2 AS col2 FROM tab0 AS cor0
----
-2079
-5166
-63

query I rowsort
SELECT ALL + col2 * cor0.col0 * col0 + + col1 * + col2 AS col1 FROM tab1 cor0
----
1890
234042
615648

query I rowsort
SELECT DISTINCT - 51 - 36 FROM tab1 AS cor0
----
-87

query I rowsort
SELECT DISTINCT - col0 * - 30 - - col1 * - col2 * - 56 FROM tab0 AS cor0
----
159648
420542
6482

query I rowsort
SELECT 38 + col1 FROM tab1 AS cor0
----
48
51
64

query I rowsort
SELECT DISTINCT - 19 + + cor0.col2 FROM tab2 AS cor0
----
19
7
8

query I rowsort
SELECT ALL - - 78 + + 72 * col1 FROM tab2 AS cor0
----
1302
2310
4326

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + ( col2 ) ) * - 18 col2 FROM tab0 AS cor0
----
-1476
-18
-594

query I rowsort
SELECT ALL + cor0.col1 * - col2 + col1 AS col1 FROM tab2 cor0
----
-1475
-629
-806

query I rowsort
SELECT DISTINCT cor0.col0 FROM tab2, tab2 AS cor0 CROSS JOIN tab1, tab1 AS cor1
----
7
78
79

query I rowsort
SELECT - - ( + col1 ) * + cor0.col0 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT + + cor0.col2 + + 54 + cor0.col2 * col0 FROM tab0 AS cor0
----
7434
879
90

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5605
SELECT - - CAST( - col1 AS SIGNED ) * col2 + - col0 + ( col1 ) FROM tab2 AS cor0
----
-1553
-708
-813

skipif mysql # not compatible
query I rowsort label-5605
SELECT - - CAST ( - col1 AS INTEGER ) * col2 + - col0 + ( col1 ) FROM tab2 AS cor0
----
-1553
-708
-813

query I rowsort
SELECT 64 FROM tab0 AS cor0
----
64
64
64

query I rowsort
SELECT cor0.col2 + + col0 + col0 FROM tab2 AS cor0
----
182
196
41

query I rowsort
SELECT DISTINCT - + 15 FROM tab0 AS cor0
----
-15

query I rowsort
SELECT DISTINCT - - col0 * + col1 * col1 FROM tab2 AS cor0
----
22831
271518
6727

skipif mysql # not compatible
query I rowsort
SELECT ALL CAST ( - 33 AS REAL ) + col0 FROM tab2 AS cor0
----
-26
45
46

onlyif mysql # use DIV operator for integer division
query I rowsort label-5611
SELECT 8 DIV + cor0.col0 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5611
SELECT 8 / + cor0.col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + col2 * + 98 AS col2 FROM tab2 AS cor0
----
2548
2646
3724

query I rowsort
SELECT ALL + col1 * + col2 FROM tab0 AS cor0
----
2838
7462
97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5614
SELECT - - 41 * + col0 + - col1 + CAST( + 63 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
319
3202
3285

skipif mysql # not compatible
query I rowsort label-5614
SELECT - - 41 * + col0 + - col1 + CAST ( + 63 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
319
3202
3285

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5615
SELECT ALL + - CAST( col0 AS SIGNED ) + cor0.col0 * 47 AS col1 FROM tab0 AS cor0
----
1104
1610
4094

skipif mysql # not compatible
query I rowsort label-5615
SELECT ALL + - CAST ( col0 AS INTEGER ) + cor0.col0 * 47 AS col1 FROM tab0 AS cor0
----
1104
1610
4094

query I rowsort
SELECT + + col2 * - col0 AS col2 FROM tab0 cor0
----
-35
-7298
-792

query I rowsort
SELECT - col2 + - cor0.col1 AS col0 FROM tab0 AS cor0
----
-119
-173
-98

query I rowsort
SELECT + + col2 * - cor0.col0 * ( - ( col2 ) ) FROM tab2 AS cor0
----
114076
5103
52728

query I rowsort
SELECT ALL + + col0 + cor0.col2 AS col2 FROM tab2 AS cor0
----
104
117
34

query I rowsort
SELECT col1 * - col1 AS col2 FROM tab1 cor0
----
-100
-169
-676

query I rowsort
SELECT - col0 * + col0 * col0 AS col1 FROM tab2 AS cor0
----
-343
-474552
-493039

query I rowsort
SELECT - col1 * - 8 FROM tab2 AS cor0
----
136
248
472

query I rowsort
SELECT ALL - - col0 + 44 AS col1 FROM tab0 cor0
----
133
68
79

query I rowsort
SELECT DISTINCT + - cor0.col2 + - 56 AS col0 FROM tab1 AS cor0
----
-110
-113
-152

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5625
SELECT + cor0.col2 + + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5625
SELECT + cor0.col2 + + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - - col1 * + ( col2 ) * cor0.col1 AS col2 FROM tab1 AS cor0
----
16224
36504
5700

query I rowsort
SELECT + 52 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 7f4ae30893ab330784829711032ae599

query I rowsort
SELECT ALL - col2 + col0 FROM tab1
----
-16
-51
7

query I rowsort
SELECT DISTINCT - col2 + + ( + 24 ) FROM tab0
----
-58
-9
23

onlyif mysql # use DIV operator for integer division
query I rowsort label-5630
SELECT - cor0.col1 + - ( - col1 ) DIV col0 AS col0 FROM tab2 AS cor0
----
-17
-27
-59

skipif mysql # not compatible
query I rowsort label-5630
SELECT - cor0.col1 + - ( - col1 ) / col0 AS col0 FROM tab2 AS cor0
----
-17
-27
-59

query I rowsort
SELECT + cor0.col1 + cor0.col0 FROM tab1 AS cor0
----
29
74
93

query I rowsort
SELECT + + 68 FROM tab0 AS cor0
----
68
68
68

onlyif mysql # use DIV operator for integer division
query I rowsort label-5633
SELECT col0 DIV 78 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-5633
SELECT col0 / 78 FROM tab1
----
0
0
1

query I rowsort
SELECT ALL + col2 + - 6 FROM tab2 AS cor0
----
20
21
32

query I rowsort
SELECT ALL 49 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to a40d8754a5be3ce2309c61bfd3e00197

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + + col1 * 27 + col0 col1 FROM tab2
----
1749
617
851

onlyif mysql # use DIV operator for integer division
query I rowsort label-5637
SELECT - - 50 DIV - col2 AS col2 FROM tab0 AS cor0
----
-1
-50
0

skipif mysql # not compatible
query I rowsort label-5637
SELECT - - 50 / - col2 AS col2 FROM tab0 AS cor0
----
-1
-50
0

query I rowsort
SELECT - 39 * col2 + col0 FROM tab2 cor0
----
-1046
-1403
-936

query I rowsort
SELECT + ( - cor0.col1 ) AS col1 FROM tab0 cor0
----
-86
-91
-97

query I rowsort
SELECT DISTINCT 14 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
14

query IIIIIIIIIIII rowsort
SELECT * FROM tab1, tab0 AS cor0, tab2, tab2 cor1
----
972 values hashing to a698694a7dac245e42212ff0316bdf45

query I rowsort
SELECT ALL col0 + + col0 + col2 * + tab1.col1 FROM tab1
----
1408
1410
698

query I rowsort
SELECT ALL - - 8 AS col1 FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to 33069adc3c1142d31511ec88fcfa40af

query I rowsort
SELECT + + col1 * - 74 - 55 * + col0 AS col2 FROM tab0 AS cor0
----
-11629
-7684
-9103

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col0 * - col0 * cor0.col2 col2 FROM tab2 AS cor0
----
-1323
-158184
-237158

onlyif mysql # use DIV operator for integer division
query I rowsort label-5646
SELECT col0 DIV col2 AS col0 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-5646
SELECT col0 / col2 AS col0 FROM tab1
----
0
0
1

query I rowsort
SELECT ALL - cor1.col2 AS col1 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to f9d4bb8677db7b98c7ed89d06e6e8cd6

onlyif mysql # use DIV operator for integer division
query I rowsort label-5648
SELECT - col2 DIV col1 col0 FROM tab1
----
-2
-5
-7

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5648
SELECT - col2 / col1 col0 FROM tab1
----
-2
-5
-7

onlyif mysql # use DIV operator for integer division
query I rowsort label-5649
SELECT ( tab2.col0 ) DIV - col0 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-5649
SELECT ( tab2.col0 ) / - col0 FROM tab2
----
-1
-1
-1

onlyif mysql # use DIV operator for integer division
query I rowsort label-5650
SELECT DISTINCT col1 DIV - tab2.col1 FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-5650
SELECT DISTINCT col1 / - tab2.col1 FROM tab2
----
-1

query I rowsort
SELECT tab1.col0 * col2 AS col2 FROM tab1
----
162
3648
7680

query I rowsort
SELECT + col0 + + 32 * col2 AS col0 FROM tab0 AS cor0
----
1080
2713
67

query I rowsort
SELECT + 9 AS col2 FROM tab0 AS cor0
----
9
9
9

query I rowsort
SELECT - + 21 * - 50 FROM tab1 cor0
----
1050
1050
1050

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5655
SELECT - tab0.col1 * - CAST( NULL AS SIGNED ) * - 83 + - col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5655
SELECT - tab0.col1 * - CAST ( NULL AS INTEGER ) * - 83 + - col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT tab0.col2 * + col2 AS col2 FROM tab0
----
1
1089
6724

query I rowsort
SELECT col2 + col2 * 81 AS col1 FROM tab0
----
2706
6724
82

query I rowsort
SELECT ( - col1 ) * - col2 AS col0 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT - - ( - col1 ) * + col0 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT - col2 + + col0 + col0 * + ( col1 + + col1 ) * - cor0.col0 AS col0 FROM tab0 AS cor0
----
-1441615
-237616
-99081

query I rowsort
SELECT tab2.col0 * col0 * - col2 AS col1 FROM tab2
----
-1323
-158184
-237158

query I rowsort
SELECT - 56 AS col2 FROM tab0
----
-56
-56
-56

query I rowsort
SELECT + 58 FROM tab0 AS cor0
----
58
58
58

query I rowsort
SELECT DISTINCT - 33 AS col0 FROM tab0
----
-33

query I rowsort
SELECT DISTINCT - ( col1 ) + col2 FROM tab1 AS cor0
----
28
47
83

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5666
SELECT ALL + CAST( NULL AS SIGNED ) / cor0.col2 - - cor0.col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5666
SELECT ALL + CAST ( NULL AS INTEGER ) / cor0.col2 - - cor0.col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 95 * col0 FROM tab0 AS cor0
----
-2280
-3325
-8455

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - cor0.col2 col2 FROM tab0 AS cor0
----
-1
-33
-82

query I rowsort
SELECT - 57 AS col1 FROM tab0
----
-57
-57
-57

query I rowsort
SELECT col0 + 33 FROM tab0
----
122
57
68

query I rowsort
SELECT ALL ( + 50 ) * - tab1.col0 + + col0 * col0 + tab1.col1 FROM tab1
----
-115
2413
906

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5672
SELECT CAST( NULL AS DECIMAL ) * col0 * col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5672
SELECT CAST ( NULL AS REAL ) * col0 * col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 12 AS col2 FROM tab2
----
12
12
12

query I rowsort
SELECT ALL + col0 + tab1.col1 + + col2 FROM tab1
----
131
189
83

query I rowsort
SELECT ALL cor0.col0 * - col0 FROM tab2 AS cor0
----
-49
-6084
-6241

query I rowsort
SELECT + 64 * cor0.col1 FROM tab0 AS cor0
----
5504
5824
6208

query I rowsort
SELECT ALL col2 * - col0 AS col2 FROM tab1 cor0
----
-162
-3648
-7680

query I rowsort
SELECT DISTINCT - - cor0.col0 + + col1 * col2 AS col1 FROM tab0 AS cor0
----
132
2862
7551

query I rowsort
SELECT DISTINCT 50 * - col1 FROM tab0 AS cor0
----
-4300
-4550
-4850

skipif mysql # not compatible
query I rowsort
SELECT ALL ( col1 ) + CAST ( + col0 AS REAL ) AS col1 FROM tab2 AS cor0
----
137
38
96

query I rowsort
SELECT ALL + - ( - col1 ) AS col0 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT DISTINCT + + 19 AS col2 FROM tab0 AS cor0
----
19

query I rowsort
SELECT col2 * cor0.col1 AS col1 FROM tab2 AS cor0
----
1534
646
837

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5684
SELECT col2 + - CAST( + col0 AS SIGNED ) FROM tab2 AS cor0
----
-41
-52
20

skipif mysql # not compatible
query I rowsort label-5684
SELECT col2 + - CAST ( + col0 AS INTEGER ) FROM tab2 AS cor0
----
-41
-52
20

query I rowsort
SELECT - col1 + cor0.col0 + 96 FROM tab1 AS cor0
----
150
163
73

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 + + ( col1 ) * + col0 col1 FROM tab2 AS cor0
----
1305
190
4576

query I rowsort
SELECT col2 + - col0 + - 27 FROM tab1 cor0
----
-11
-34
24

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5688
SELECT - cor0.col1 + + CAST( NULL AS DECIMAL ) FROM tab0, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-5688
SELECT - cor0.col1 + + CAST ( NULL AS REAL ) FROM tab0, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT ALL 23 + col0 * col1 AS col2 FROM tab0 AS cor0
----
2087
3418
8122

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5690
SELECT + col2 * - col2 + - col0 + - CAST( - 97 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-1426
-639
-657

skipif mysql # not compatible
query I rowsort label-5690
SELECT + col2 * - col2 + - col0 + - CAST ( - 97 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-1426
-639
-657

skipif mysql # not compatible
query I rowsort
SELECT CAST ( col0 AS REAL ) AS col1 FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT DISTINCT 99 AS col2 FROM tab0, tab1 cor0
----
99

query I rowsort
SELECT - - 50 + col1 * - cor0.col1 + col2 * - col2 FROM tab2 AS cor0
----
-1640
-1683
-4107

query I rowsort
SELECT - 96 FROM tab1, tab1 cor0
----
9 values hashing to c89b545346f99713888a7934e4caa539

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab1, tab2 cor1, tab1 AS cor2
----
972 values hashing to 4c0813b2179303fdf58f082d81d6d03c

query I rowsort
SELECT col0 + ( + cor0.col0 ) * col1 FROM tab2 AS cor0
----
1422
224
4680

query I rowsort
SELECT ALL cor0.col0 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83

query I rowsort
SELECT ALL + + col0 + cor0.col1 * col2 * col2 FROM tab1 AS cor0
----
119888
32554
75819

query I rowsort
SELECT DISTINCT + + col0 + ( + col1 ) FROM tab1 AS cor0
----
29
74
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col0 + - col0 col1 FROM tab2 AS cor0
----
-14
-156
-158

query I rowsort
SELECT + col0 + + col1 AS col1 FROM tab1 cor0
----
29
74
93

query I rowsort
SELECT + + col0 * + 78 + - col0 FROM tab0 AS cor0
----
1848
2695
6853

query I rowsort
SELECT DISTINCT - + col0 + ( + col2 ) FROM tab1 AS cor0
----
-7
16
51

query I rowsort
SELECT DISTINCT - - col0 - - 28 FROM tab1 AS cor0
----
108
31
92

query I rowsort
SELECT ALL - + col1 * 30 AS col2 FROM tab1 AS cor0
----
-300
-390
-780

query I rowsort
SELECT DISTINCT + col1 + ( + 10 ) FROM tab2 AS cor0
----
27
41
69

query I rowsort
SELECT - cor0.col0 * 99 FROM tab1 AS cor0
----
-297
-6336
-7920

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5708
SELECT DISTINCT col1 * col0 + + 51 + col1 * - CAST( + 61 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-1457
298
81

skipif mysql # not compatible
query I rowsort label-5708
SELECT DISTINCT col1 * col0 + + 51 + col1 * - CAST ( + 61 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-1457
298
81

query I rowsort
SELECT ALL - - col1 * col1 - + col0 AS col2 FROM tab1 cor0
----
36
673
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + 78 col2 FROM tab0 AS cor0
----
2574
6396
78

query I rowsort
SELECT DISTINCT col0 * - col2 + - col2 FROM tab1
----
-216
-3705
-7776

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + - col0 * ( col1 ) col2 FROM tab0
----
-2150
-3492
-8190

query I rowsort
SELECT ALL + tab1.col0 + + col2 FROM tab1
----
121
176
57

query I rowsort
SELECT ALL - + col0 + - col0 FROM tab2 AS cor0
----
-14
-156
-158

query I rowsort
SELECT col1 * - 6 AS col1 FROM tab1 AS cor0
----
-156
-60
-78

query I rowsort
SELECT ALL + + col1 * col2 * - col2 FROM tab0 AS cor0
----
-611884
-93654
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-5717
SELECT DISTINCT + col2 DIV - col0 + col0 + col1 AS col0 FROM tab0 AS cor0
----
109
132
180

skipif mysql # not compatible
query I rowsort label-5717
SELECT DISTINCT + col2 / - col0 + col0 + col1 AS col0 FROM tab0 AS cor0
----
109
132
180

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 38 * col2 + col1 col2 FROM tab0
----
-1168
-3025
59

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5719
SELECT - col1 - - CAST( 51 AS SIGNED ) AS col2 FROM tab2
----
-8
20
34

skipif mysql # not compatible
query I rowsort label-5719
SELECT - col1 - - CAST ( 51 AS INTEGER ) AS col2 FROM tab2
----
-8
20
34

query I rowsort
SELECT ALL col2 + + col1 + col2 AS col2 FROM tab2 AS cor0
----
111
85
93

query I rowsort
SELECT DISTINCT col0 + 73 FROM tab2 AS cor0
----
151
152
80

query I rowsort
SELECT ALL col2 * 75 AS col1 FROM tab0 AS cor0
----
2475
6150
75

query I rowsort
SELECT - + 47 + + col1 AS col0 FROM tab1 AS cor0
----
-21
-34
-37

query I rowsort
SELECT DISTINCT - col2 + col2 * col2 AS col0 FROM tab1 cor0
----
2862
3192
9120

query I rowsort
SELECT col1 + + col2 * - col1 * col2 FROM tab0 AS cor0
----
-611793
-93568
0

query I rowsort
SELECT DISTINCT - cor0.col0 FROM tab2, tab1 cor0
----
-3
-64
-80

query I rowsort
SELECT + - col0 * col0 + col0 FROM tab2 AS cor0
----
-42
-6006
-6162

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5728
SELECT DISTINCT - col2 * col0 + CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5728
SELECT DISTINCT - col2 * col0 + CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-5729
SELECT ALL - col0 + - col1 DIV - 87 AS col0 FROM tab1
----
-3
-64
-80

skipif mysql # not compatible
query I rowsort label-5729
SELECT ALL - col0 + - col1 / - 87 AS col0 FROM tab1
----
-3
-64
-80

onlyif mysql # use DIV operator for integer division
query I rowsort label-5730
SELECT DISTINCT - + col2 DIV - col2 AS col1 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-5730
SELECT DISTINCT - + col2 / - col2 AS col1 FROM tab1 AS cor0
----
1

query I rowsort
SELECT DISTINCT - - cor0.col1 + - cor0.col2 FROM tab1, tab0 AS cor0
----
53
9
96

query I rowsort
SELECT ALL + - cor0.col2 + + col0 FROM tab2 AS cor0
----
-20
41
52

query I rowsort
SELECT 63 * col2 AS col2 FROM tab2 cor0
----
1638
1701
2394

query I rowsort
SELECT ALL col1 * + col0 - - col2 FROM tab2 AS cor0
----
1381
244
4628

query I rowsort
SELECT DISTINCT + - ( - cor0.col2 ) * + col0 AS col2 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT DISTINCT - col2 + + col2 * + 9 FROM tab1 cor0
----
432
456
768

query I rowsort
SELECT - col2 * col2 * - ( - 98 ) + cor0.col2 AS col2 FROM tab1 AS cor0
----
-285714
-318345
-903072

query I rowsort
SELECT DISTINCT - 58 * - col1 + - 30 * 66 AS col2 FROM tab0
----
3008
3298
3646

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5739
SELECT DISTINCT col2 + + col0 * + CAST( + col2 AS SIGNED ) + - col1 col0 FROM tab1
----
190
3695
7763

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5739
SELECT DISTINCT col2 + + col0 * + CAST ( + col2 AS INTEGER ) + - col1 col0 FROM tab1
----
190
3695
7763

query I rowsort
SELECT ALL - col1 * - col1 + 69 AS col2 FROM tab0 AS cor0
----
7465
8350
9478

onlyif mysql # use DIV operator for integer division
query I rowsort label-5741
SELECT DISTINCT - 62 DIV cor0.col0 FROM tab2 AS cor0
----
-8
0

skipif mysql # not compatible
query I rowsort label-5741
SELECT DISTINCT - 62 / cor0.col0 FROM tab2 AS cor0
----
-8
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-5742
SELECT - - col1 DIV col1 AS col1 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5742
SELECT - - col1 / col1 AS col1 FROM tab2 AS cor0
----
1
1
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-5743
SELECT 6 DIV col2 + 49 DIV + col0 AS col2 FROM tab1 AS cor0
----
0
0
16

skipif mysql # not compatible
query I rowsort label-5743
SELECT 6 / col2 + 49 / + col0 AS col2 FROM tab1 AS cor0
----
0
0
16

query I rowsort
SELECT ALL + cor0.col2 + col2 FROM tab0 AS cor0
----
164
2
66

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5745
SELECT ALL + col1 * + CAST( + col2 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
1248
1404
570

skipif mysql # not compatible
query I rowsort label-5745
SELECT ALL + col1 * + CAST ( + col2 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT ALL - cor0.col1 + 83 * + col2 + cor0.col1 FROM tab1 AS cor0
----
4482
4731
7968

query I rowsort
SELECT - col1 + - ( - 93 ) FROM tab1 cor0
----
67
80
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * col0 * col1 col2 FROM tab2
----
-22831
-271518
-6727

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5749
SELECT ALL + - col2 * - CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5749
SELECT ALL + - col2 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + - col2 * col2 AS col1 FROM tab0 AS cor0
----
-1
-1089
-6724

query I rowsort
SELECT + ( - cor1.col0 * + 6 ) FROM tab0, tab1 cor0, tab1 AS cor1
----
27 values hashing to c58e0b3baccff12de05e145c280ec1a9

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5752
SELECT - 30 + tab0.col2 + CAST( ( - col0 ) * ( ( + col2 ) ) AS SIGNED ) AS col1 FROM tab0
----
-64
-7246
-789

skipif mysql # not compatible
query I rowsort label-5752
SELECT - 30 + tab0.col2 + CAST ( ( - col0 ) * ( ( + col2 ) ) AS INTEGER ) AS col1 FROM tab0
----
-64
-7246
-789

query I rowsort
SELECT col2 + col0 + + 50 FROM tab2
----
154
167
84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 + 5 * col1 col2 FROM tab0 cor0
----
463
486
537

query I rowsort
SELECT col1 * cor0.col0 AS col1 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT DISTINCT + - col1 * col0 FROM tab2 AS cor0
----
-1343
-217
-4602

onlyif mysql # use DIV operator for integer division
query I rowsort label-5757
SELECT + cor0.col2 DIV col1 AS col2 FROM tab2 AS cor0
----
0
0
2

skipif mysql # not compatible
query I rowsort label-5757
SELECT + cor0.col2 / col1 AS col2 FROM tab2 AS cor0
----
0
0
2

query I rowsort
SELECT - 48 * - col1 AS col2 FROM tab2 AS cor0
----
1488
2832
816

onlyif mysql # use DIV operator for integer division
query I rowsort label-5759
SELECT + - ( 78 ) + - col0 DIV + 82 FROM tab1 AS cor0
----
-78
-78
-78

skipif mysql # not compatible
query I rowsort label-5759
SELECT + - ( 78 ) + - col0 / + 82 FROM tab1 AS cor0
----
-78
-78
-78

query I rowsort
SELECT ALL 40 FROM tab2 cor0
----
40
40
40

query I rowsort
SELECT ALL - ( 92 ) FROM tab0
----
-92
-92
-92

query I rowsort
SELECT ALL ( 9 + + col1 ) FROM tab1
----
19
22
35

query I rowsort
SELECT + 56 AS col1 FROM tab1 AS cor0
----
56
56
56

query I rowsort
SELECT ALL + 55 * + col1 + col0 * + 51 FROM tab2 AS cor0
----
2062
4964
7223

query I rowsort
SELECT DISTINCT + 74 AS col2 FROM tab2 AS cor0
----
74

query I rowsort
SELECT + - cor0.col2 + - ( + col1 ) FROM tab2 AS cor0
----
-55
-58
-85

query I rowsort
SELECT ALL + col2 * + 28 + col0 * 92 * - col2 FROM tab1 AS cor0
----
-13392
-334020
-703872

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0, tab2 AS cor0, tab2 AS cor1, tab1, tab0 AS cor2
----
3645 values hashing to 825c5bff5308aeedb3a0a28713da0683

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5769
SELECT ALL + CAST( NULL AS SIGNED ) + col0 * col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5769
SELECT ALL + CAST ( NULL AS INTEGER ) + col0 * col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 55 AS col2 FROM tab1 AS cor0
----
55

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5771
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-5771
SELECT 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 - col0 + - col0 * - 65 col1 FROM tab0 AS cor0
----
1536
2240
5696

query I rowsort
SELECT - + 60 * + col1 - col2 AS col0 FROM tab1 AS cor0
----
-1614
-657
-876

onlyif mysql # use DIV operator for integer division
query I rowsort label-5774
SELECT + - 82 DIV - col0 + col2 AS col1 FROM tab2 AS cor0
----
27
38
39

skipif mysql # not compatible
query I rowsort label-5774
SELECT + - 82 / - col0 + col2 AS col1 FROM tab2 AS cor0
----
27
38
39

query I rowsort
SELECT + ( + col0 ) * 26 - - 13 * col0 * col1 AS col1 FROM tab2 AS cor0
----
19513
3003
61854

query I rowsort
SELECT + 1 + col2 * tab2.col2 + tab2.col1 FROM tab2
----
1462
736
761

query I rowsort
SELECT 82 + col0 AS col1 FROM tab0
----
106
117
171

query I rowsort
SELECT - col1 * + col0 + + ( - col1 ) - - col2 * col2 FROM tab0 AS cor0
----
-1061
-1466
-3491

onlyif mysql # use DIV operator for integer division
query I rowsort label-5779
SELECT DISTINCT 18 DIV col0 + ( 3 + cor0.col2 ) FROM tab2 AS cor0
----
29
32
41

skipif mysql # not compatible
query I rowsort label-5779
SELECT DISTINCT 18 / col0 + ( 3 + cor0.col2 ) FROM tab2 AS cor0
----
29
32
41

query I rowsort
SELECT col0 - col2 FROM tab2 cor0
----
-20
41
52

query I rowsort
SELECT + - col2 * - cor0.col0 + cor0.col1 * col1 FROM tab0 AS cor0
----
15579
8188
9444

onlyif mysql # use DIV operator for integer division
query I rowsort label-5782
SELECT DISTINCT col0 DIV - col0 AS col0 FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-5782
SELECT DISTINCT col0 / - col0 AS col0 FROM tab1
----
-1

query I rowsort
SELECT 17 AS col0 FROM tab2
----
17
17
17

query I rowsort
SELECT ALL ( 94 ) AS col0 FROM tab2
----
94
94
94

query I rowsort
SELECT DISTINCT tab1.col2 + + col0 - - col1 * col2 FROM tab1
----
1424
1461
691

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + - col2 col1 FROM tab0
----
-164
-2
-66

query I rowsort
SELECT col1 + - col2 FROM tab2 WHERE NOT NULL BETWEEN - col2 - col1 AND NULL
----

query I rowsort
SELECT ALL col1 - col2 AS col0 FROM tab1
----
-28
-47
-83

query I rowsort
SELECT tab2.col0 - col0 * col2 FROM tab2
----
-182
-1950
-2923

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * col1 col1 FROM tab1
----
1248
1404
570

query I rowsort
SELECT DISTINCT + tab1.col1 - - col1 FROM tab1
----
20
26
52

query I rowsort
SELECT tab2.col0 + + col1 * col2 AS col1 FROM tab2
----
1612
725
844

query I rowsort
SELECT col0 + - col2 + - col1 * + col2 FROM tab1
----
-1264
-1455
-563

query I rowsort
SELECT + col2 * col0 AS col0 FROM tab0
----
35
7298
792

query I rowsort
SELECT tab1.col2 + col0 * col0 AS col2 FROM tab1
----
4153
63
6496

query III rowsort
SELECT ALL * FROM tab2 WHERE - col2 + + col1 * col0 < ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL BETWEEN ( NULL ) AND + col1 * col1
----

query I rowsort
SELECT - col1 * - tab2.col2 AS col1 FROM tab2
----
1534
646
837

query I rowsort
SELECT ( col0 ) * - 2 * col2 FROM tab2 AS cor0
----
-378
-4056
-6004

query I rowsort
SELECT DISTINCT col1 + col0 * - col2 FROM tab1
----
-136
-3638
-7667

query I rowsort
SELECT ALL + col2 FROM tab0 WHERE NOT col1 * + col1 <> ( NULL )
----

query I rowsort
SELECT - 51 FROM tab1 AS cor0
----
-51
-51
-51

query I rowsort
SELECT tab1.col2 - col0 FROM tab1
----
-7
16
51

query I rowsort
SELECT - col0 FROM tab2 WHERE - col2 * col2 BETWEEN - col1 AND ( NULL )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-5805
SELECT - col2 * + col0 * tab0.col1 + - col2 DIV + col2 col0 FROM tab0
----
-3396
-664119
-68113

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5805
SELECT - col2 * + col0 * tab0.col1 + - col2 / + col2 col0 FROM tab0
----
-3396
-664119
-68113

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * col0 col2 FROM tab1 AS cor0 WHERE ( - col1 ) IN ( - col0 )
----

query I rowsort
SELECT col0 + + col1 + col1 FROM tab0 AS cor0
----
196
229
271

query I rowsort
SELECT + col0 + + col0 + - col2 * - cor0.col2 FROM tab2 cor0
----
1602
743
832

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT IN ( + col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NULL ) < ( NULL )
----

query I rowsort
SELECT col2 + - cor0.col2 + + col1 AS col2 FROM tab0 AS cor0
----
86
91
97

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-5813
SELECT col0 + - col1 DIV - col0 + + tab0.col0 AS col0 FROM tab0
----
179
51
72

skipif mysql # not compatible
query I rowsort label-5813
SELECT col0 + - col1 / - col0 + + tab0.col0 AS col0 FROM tab0
----
179
51
72

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 col0 * + col1 - + col2 AS col1 FROM tab0
----
2031
3394
8017

query I rowsort
SELECT ALL + col1 + col0 * col1 * col0 AS col2 FROM tab2
----
106114
1550
359015

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col0 > ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + col0 * col1 col0 FROM tab2
----
1381
244
4628

query I rowsort
SELECT ALL + col1 - col0 AS col1 FROM tab1 WHERE ( NULL ) > - col0
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + col0 * col1 <= NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT BETWEEN - col1 AND - col1
----

query I rowsort
SELECT + 13 + cor0.col0 FROM tab1, tab2 AS cor0
----
9 values hashing to bbc411e0f76a7f50d36727944af278a3

query I rowsort
SELECT ALL + col0 + - col0 * col1 FROM tab0 cor0
----
-2040
-3360
-8010

query I rowsort
SELECT - col2 * col1 + col2 FROM tab2 AS cor0
----
-1508
-608
-810

query I rowsort
SELECT - 57 + + 6 AS col1 FROM tab0 AS cor0
----
-51
-51
-51

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5826
SELECT + CAST( NULL AS SIGNED ) + col0 / col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5826
SELECT + CAST ( NULL AS INTEGER ) + col0 / col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-5827
SELECT ALL + col1 DIV col0 + + col1 FROM tab0 cor0
----
89
92
99

skipif mysql # not compatible
query I rowsort label-5827
SELECT ALL + col1 / col0 + + col1 FROM tab0 cor0
----
89
92
99

query I rowsort
SELECT DISTINCT 47 * - cor0.col2 * col0 + - col0 FROM tab2 AS cor0
----
-141173
-8890
-95394

query I rowsort
SELECT ALL - 85 * col2 FROM tab1 AS cor0
----
-4590
-4845
-8160

query I rowsort
SELECT ALL + + col1 + - col2 * col2 * col2 + col1 AS col0 FROM tab0 AS cor0
----
-35765
-551186
193

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab2 AS cor0, tab1 AS cor1, tab0 cor2
----
972 values hashing to e84152c0bf436177d3b3d80e42832d4f

query I rowsort
SELECT DISTINCT + col0 * col0 * col0 + 24 AS col2 FROM tab2 AS cor0
----
367
474576
493063

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5833
SELECT ALL + CAST( 26 AS SIGNED ) FROM tab2 AS cor0
----
26
26
26

skipif mysql # not compatible
query I rowsort label-5833
SELECT ALL + CAST ( 26 AS INTEGER ) FROM tab2 AS cor0
----
26
26
26

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5834
SELECT DISTINCT + CAST( NULL AS SIGNED ) AS col1 FROM tab1, tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5834
SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col1 FROM tab1, tab0 AS cor0
----
NULL

query I rowsort
SELECT 84 - + 86 * + col1 AS col1 FROM tab0
----
-7312
-7742
-8258

query I rowsort
SELECT ALL - 28 + 32 * - cor0.col1 FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to 646cfc3d994b1311239027a9735d7091

query I rowsort
SELECT DISTINCT - 28 + col2 FROM tab0 AS cor0
----
-27
5
54

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5838
SELECT ALL CAST( + col1 AS SIGNED ) col0 FROM tab0
----
86
91
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5838
SELECT ALL CAST ( + col1 AS INTEGER ) col0 FROM tab0
----
86
91
97

query I rowsort
SELECT + 70 FROM tab0
----
70
70
70

query I rowsort
SELECT col0 * 50 FROM tab2
----
350
3900
3950

query I rowsort
SELECT ALL - 39 FROM tab2
----
-39
-39
-39

query I rowsort
SELECT ALL + col2 * col0 + + col2 FROM tab1
----
216
3705
7776

query I rowsort
SELECT DISTINCT + col2 + col1 + col2 FROM tab0
----
152
255
99

onlyif mysql # use DIV operator for integer division
query I rowsort label-5844
SELECT DISTINCT + 47 * col0 + col0 * - col0 + col2 DIV col0 AS col1 FROM tab0
----
-3738
420
553

skipif mysql # not compatible
query I rowsort label-5844
SELECT DISTINCT + 47 * col0 + col0 * - col0 + col2 / col0 AS col1 FROM tab0
----
-3738
420
553

query I rowsort
SELECT ALL ( + col2 ) * - col2 + - 30 AS col1 FROM tab0
----
-1119
-31
-6754

query I rowsort
SELECT ALL - col1 - + cor0.col1 AS col0 FROM tab1 AS cor0
----
-20
-26
-52

query I rowsort
SELECT + col0 * - 0 + + 41 AS col1 FROM tab2 AS cor0
----
41
41
41

query I rowsort
SELECT DISTINCT - + col0 + - 75 * cor0.col1 AS col2 FROM tab2 AS cor0
----
-1354
-2332
-4503

query I rowsort
SELECT ALL col0 * cor0.col0 FROM tab1 AS cor0
----
4096
6400
9

query I rowsort
SELECT col0 * - col2 + col2 FROM tab2
----
-162
-2002
-2964

query I rowsort
SELECT - 92 + col0 FROM tab0
----
-3
-57
-68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 - col1 * - col1 col0 FROM tab1
----
157
265
730

query I rowsort
SELECT + tab2.col1 + - col0 AS col1 FROM tab2
----
-19
-62
24

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5854
SELECT ALL + col1 * col2 / + tab0.col0 - col2 * - CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5854
SELECT ALL + col1 * col2 / + tab0.col0 - col2 * - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT - + col0 + + cor0.col1 FROM tab1 AS cor0
----
-54
-67
23

query I rowsort
SELECT DISTINCT - col0 + 85 FROM tab1 AS cor0
----
21
5
82

query I rowsort
SELECT DISTINCT - + cor0.col2 + col2 FROM tab0 cor0
----
0

query I rowsort
SELECT ALL + col2 + col1 AS col2 FROM tab1 AS cor0
----
109
67
80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5859
SELECT ALL - col1 + + CAST( NULL AS SIGNED ) - + col2 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5859
SELECT ALL - col1 + + CAST ( NULL AS INTEGER ) - + col2 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-5860
SELECT col1 + + col0 DIV 27 AS col1 FROM tab1 AS cor0
----
12
15
26

skipif mysql # not compatible
query I rowsort label-5860
SELECT col1 + + col0 / 27 AS col1 FROM tab1 AS cor0
----
12
15
26

query I rowsort
SELECT + col0 * ( - col2 ) - - col1 * + 97 AS col0 FROM tab2 cor0
----
-1353
2818
3695

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 - 93 col2 FROM tab2 cor0
----
-100
-171
-172

query I rowsort
SELECT DISTINCT + ( tab1.col2 ) * - col2 FROM tab1
----
-2916
-3249
-9216

query I rowsort
SELECT + 78 AS col1 FROM tab0
----
78
78
78

query I rowsort
SELECT ALL 60 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to a97561e17ecaa618227c75a57b268f33

query I rowsort
SELECT DISTINCT col0 + - 99 * + col2 * + col1 + col1 FROM tab1
----
-123459
-138967
-56356

query I rowsort
SELECT ALL - col1 + - ( - col2 ) * col1 FROM tab1
----
1235
1378
560

query I rowsort
SELECT + col2 * 96 FROM tab0
----
3168
7872
96

query I rowsort
SELECT ALL 83 + col2 * col1 FROM tab1
----
1331
1487
653

query I rowsort
SELECT - ( + 26 ) + col2 * cor0.col0 + cor0.col2 AS col0 FROM tab1 AS cor0
----
190
3679
7750

query I rowsort
SELECT DISTINCT + 22 * col1 FROM tab0 cor0
----
1892
2002
2134

onlyif mysql # use DIV operator for integer division
query I rowsort label-5872
SELECT DISTINCT - col2 DIV cor0.col2 AS col1 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-5872
SELECT DISTINCT - col2 / cor0.col2 AS col1 FROM tab1 AS cor0
----
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * - 38 col1 FROM tab2 AS cor0
----
-1178
-2242
-646

query I rowsort
SELECT ALL - - col0 * + 76 AS col1 FROM tab1 AS cor0
----
228
4864
6080

onlyif mysql # use DIV operator for integer division
query I rowsort label-5875
SELECT ALL - col1 DIV col0 AS col2 FROM tab0 AS cor0
----
-1
-2
-3

skipif mysql # not compatible
query I rowsort label-5875
SELECT ALL - col1 / col0 AS col2 FROM tab0 AS cor0
----
-1
-2
-3

query I rowsort
SELECT ALL + 16 FROM tab0 cor0
----
16
16
16

onlyif mysql # use DIV operator for integer division
query I rowsort label-5877
SELECT - col1 * col2 * + cor0.col1 + col2 + - col1 DIV - col0 FROM tab1 AS cor0
----
-16128
-36442
-5643

skipif mysql # not compatible
query I rowsort label-5877
SELECT - col1 * col2 * + cor0.col1 + col2 + - col1 / - col0 FROM tab1 AS cor0
----
-16128
-36442
-5643

query I rowsort
SELECT + ( + col2 ) * + col0 AS col2 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT DISTINCT + + 60 * - col1 * col0 FROM tab1 AS cor0
----
-38400
-4680
-62400

onlyif mysql # use DIV operator for integer division
query I rowsort label-5880
SELECT DISTINCT - 69 DIV col0 FROM tab1 AS cor0
----
-1
-23
0

skipif mysql # not compatible
query I rowsort label-5880
SELECT DISTINCT - 69 / col0 FROM tab1 AS cor0
----
-1
-23
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-5881
SELECT + 62 + - cor0.col0 DIV - col1 AS col2 FROM tab0 cor0
----
62
62
62

skipif mysql # not compatible
query I rowsort label-5881
SELECT + 62 + - cor0.col0 / - col1 AS col2 FROM tab0 cor0
----
62
62
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col2 * - col2 col2 FROM tab1 AS cor0
----
-2916
-3249
-9216

query I rowsort
SELECT - cor0.col2 + - col1 + cor0.col0 FROM tab1 AS cor0
----
-29
-3
-77

query I rowsort
SELECT col2 + cor0.col1 + + col2 AS col0 FROM tab0 AS cor0
----
152
255
99

query I rowsort
SELECT DISTINCT + col1 * - cor0.col1 AS col0 FROM tab2 AS cor0
----
-289
-3481
-961

query I rowsort
SELECT ALL - col1 + + col0 * col2 AS col1 FROM tab2
----
158
1969
2985

query I rowsort
SELECT - ( + col2 ) * - col1 + col1 FROM tab0 AS cor0
----
194
2924
7553

query I rowsort
SELECT ALL - 38 + - col1 * tab1.col1 + tab1.col0 FROM tab1
----
-127
-711
-74

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * 74 + - 44 * col1 col2 FROM tab0 AS cor0
----
2580
2730
2910

query I rowsort
SELECT ALL col2 * - col1 + - 59 FROM tab0 cor0
----
-156
-2897
-7521

query I rowsort
SELECT cor0.col1 * + 0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - col1 * - 5 AS col0 FROM tab2 AS cor0
----
155
295
85

query I rowsort
SELECT DISTINCT + col1 * - col2 + ( col2 ) * - cor0.col0 AS col0 FROM tab1 AS cor0
----
-1566
-4218
-8928

query I rowsort
SELECT ALL col0 + - col0 * + 4 AS col0 FROM tab2 AS cor0
----
-21
-234
-237

query I rowsort
SELECT ALL + - col2 + 3 FROM tab2 AS cor0
----
-23
-24
-35

onlyif mysql # use DIV operator for integer division
query I rowsort label-5896
SELECT DISTINCT col2 DIV + ( col0 ) + - col0 AS col0 FROM tab0 AS cor0
----
-23
-35
-89

skipif mysql # not compatible
query I rowsort label-5896
SELECT DISTINCT col2 / + ( col0 ) + - col0 AS col0 FROM tab0 AS cor0
----
-23
-35
-89

onlyif mysql # use DIV operator for integer division
query I rowsort label-5897
SELECT DISTINCT col0 DIV col1 AS col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5897
SELECT DISTINCT col0 / col1 AS col1 FROM tab0 AS cor0
----
0

query I rowsort
SELECT DISTINCT col1 + col1 * - cor0.col2 AS col0 FROM tab2 AS cor0
----
-1475
-629
-806

query I rowsort
SELECT DISTINCT + - col1 + col2 AS col0 FROM tab1 AS cor0
----
28
47
83

query I rowsort
SELECT ALL + - col2 + col2 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT DISTINCT 59 AS col1 FROM tab1
----
59

query I rowsort
SELECT ALL + 29 AS col0 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to 4c56285992bcb76e1aac22e6d23d1318

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5903
SELECT ALL + col1 / + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5903
SELECT ALL + col1 / + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - - cor0.col2 + col0 * + col2 AS col2 FROM tab1 AS cor0
----
216
3705
7776

query I rowsort
SELECT DISTINCT col1 * + 20 FROM tab0 AS cor0
----
1720
1820
1940

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5906
SELECT ALL - col2 + CAST( NULL AS SIGNED ) * + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5906
SELECT ALL - col2 + CAST ( NULL AS INTEGER ) * + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - cor0.col2 * + cor0.col1 col1 FROM tab0 AS cor0
----
244068
679042
9409

query I rowsort
SELECT DISTINCT col0 + 36 FROM tab0 AS cor0
----
125
60
71

query I rowsort
SELECT ALL + col1 - - ( col1 ) FROM tab0
----
172
182
194

query I rowsort
SELECT DISTINCT col2 + + ( col0 ) AS col2 FROM tab2
----
104
117
34

query I rowsort
SELECT + col0 - cor0.col0 * + col1 FROM tab0 AS cor0
----
-2040
-3360
-8010

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + tab0.col0 col2 FROM tab0
----
24
35
89

onlyif mysql # use DIV operator for integer division
query I rowsort label-5913
SELECT col1 DIV - tab1.col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5913
SELECT col1 / - tab1.col2 FROM tab1
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-5914
SELECT - col0 DIV - tab0.col1 col1 FROM tab0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5914
SELECT - col0 / - tab0.col1 col1 FROM tab0
----
0
0
0

query I rowsort
SELECT DISTINCT - col1 * - col1 + - col1 AS col0 FROM tab1
----
156
650
90

query I rowsort
SELECT DISTINCT col2 FROM tab0 WHERE NOT NULL NOT IN ( - tab0.col2 )
----

query I rowsort
SELECT ALL cor0.col0 * + col2 + col1 FROM tab1 AS cor0
----
188
3658
7693

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 - col1 col2 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-5919
SELECT ALL col2 + col0 DIV col1 AS col0 FROM tab2 AS cor0
----
27
27
42

skipif mysql # not compatible
query I rowsort label-5919
SELECT ALL col2 + col0 / col1 AS col0 FROM tab2 AS cor0
----
27
27
42

query I rowsort
SELECT - col2 * col0 + + col0 AS col1 FROM tab1 AS cor0
----
-159
-3584
-7600

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * - col2 col2 FROM tab2 AS cor0
----
1444
676
729

query I rowsort
SELECT - tab2.col1 + col1 AS col1 FROM tab2
----
0
0
0

query I rowsort
SELECT 69 FROM tab2 AS cor0
----
69
69
69

query I rowsort
SELECT ALL + + col2 * col0 * + col2 FROM tab1 AS cor0
----
207936
737280
8748

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col0 + col2 * - col1 col2 FROM tab1 AS cor0
----
-1168
-1401
-506

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab0 AS cor0, tab0 cor1, tab1 cor2
----
972 values hashing to 5621675b1bd32b061d284d0444c76601

query I rowsort
SELECT ALL 8 * col1 FROM tab1
----
104
208
80

query I rowsort
SELECT ALL + + 67 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to b56f8a4f1fcebc9802481256df61e97c

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5929
SELECT - ( - col0 ) + CAST( NULL AS SIGNED ) * 86 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-5929
SELECT - ( - col0 ) + CAST ( NULL AS INTEGER ) * 86 col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 75 * col0 AS col1 FROM tab1 AS cor0
----
-225
-4800
-6000

onlyif mysql # use DIV operator for integer division
query I rowsort label-5931
SELECT + col2 DIV cor0.col1 + - col0 AS col0 FROM tab1 AS cor0
----
-1
-59
-73

skipif mysql # not compatible
query I rowsort label-5931
SELECT + col2 / cor0.col1 + - col0 AS col0 FROM tab1 AS cor0
----
-1
-59
-73

query I rowsort
SELECT ALL tab1.col2 * + ( - col2 ) FROM tab1
----
-2916
-3249
-9216

query I rowsort
SELECT DISTINCT col1 + + 5 AS col0 FROM tab0
----
102
91
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 6 + 71 * + cor0.col1 col0 FROM tab0, tab1 cor0
----
9 values hashing to cc20f5b31b34462e738e115d78683adb

query I rowsort
SELECT ALL + col2 + ( ( col0 ) ) FROM tab1
----
121
176
57

query I rowsort
SELECT + - col2 + + cor0.col0 FROM tab2 AS cor0
----
-20
41
52

query I rowsort
SELECT - col0 * - 12 + - ( col1 ) AS col0 FROM tab0 AS cor0
----
202
323
977

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 54 col0 FROM tab0, tab1 AS cor0, tab2 AS cor1, tab1, tab2 AS cor2
----
243 values hashing to f06dd6157f7bd618232d2ea2147f8e19

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5939
SELECT DISTINCT CAST( NULL AS SIGNED ) col2 FROM tab2
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5939
SELECT DISTINCT CAST ( NULL AS INTEGER ) col2 FROM tab2
----
NULL

query I rowsort
SELECT 19 AS col1 FROM tab0, tab2, tab1 AS cor0, tab2 AS cor1
----
81 values hashing to 39241ace4c29d5a55052e1665aa36823

query I rowsort
SELECT - ( 93 + + col2 ) * - col0 FROM tab0
----
15575
3024
3290

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5942
SELECT + CAST( NULL AS SIGNED ) / col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5942
SELECT + CAST ( NULL AS INTEGER ) / col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT cor0.col1 FROM tab2, tab1 cor0
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775

query I rowsort
SELECT DISTINCT tab1.col0 * - col1 FROM tab1
----
-1040
-640
-78

onlyif mysql # use DIV operator for integer division
query I rowsort label-5945
SELECT ALL + CAST( - col0 AS SIGNED ) DIV - col0 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5945
SELECT ALL + CAST ( - col0 AS INTEGER ) / - col0 FROM tab0
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + ( + col0 ) col0 FROM tab0 AS cor0
----
-24
-35
-89

onlyif mysql # use DIV operator for integer division
query I rowsort label-5947
SELECT + - ( - col0 ) DIV col0 AS col1 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5947
SELECT + - ( - col0 ) / col0 AS col1 FROM tab1 AS cor0
----
1
1
1

query I rowsort
SELECT - 68 FROM tab0 AS cor0
----
-68
-68
-68

query I rowsort
SELECT ALL cor0.col1 + col1 * + col1 FROM tab0 AS cor0
----
7482
8372
9506

query I rowsort
SELECT - + col2 * - 38 AS col0 FROM tab1 AS cor0
----
2052
2166
3648

query I rowsort
SELECT - - cor0.col0 - col1 AS col1 FROM tab1 AS cor0
----
-23
54
67

query I rowsort
SELECT - + ( cor0.col0 ) + ( + 53 ) * + col2 FROM tab2 AS cor0
----
1300
1424
1935

query I rowsort
SELECT col0 + col1 * + col1 AS col2 FROM tab0 AS cor0
----
7420
8370
9444

query I rowsort
SELECT + 56 + - col1 FROM tab0 AS cor0
----
-30
-35
-41

query I rowsort
SELECT ALL 8 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to ffc5b4c98b57ae546521175995c49c57

query I rowsort
SELECT ALL - 8 AS col2 FROM tab1
----
-8
-8
-8

query I rowsort
SELECT - - 93 * - col1 FROM tab0 AS cor0
----
-7998
-8463
-9021

query I rowsort
SELECT ALL - ( col1 ) + col0 FROM tab1
----
-23
54
67

query I rowsort
SELECT DISTINCT + col1 * - col1 + + 54 FROM tab1
----
-115
-46
-622

query I rowsort
SELECT - ( 25 ) * cor0.col0 FROM tab0, tab0 AS cor0
----
9 values hashing to bff4da8ee66d28f697e5f89bd96e0719

onlyif mysql # use DIV operator for integer division
query I rowsort label-5961
SELECT DISTINCT col2 DIV - col1 AS col0 FROM tab2 AS cor0
----
-2
0

skipif mysql # not compatible
query I rowsort label-5961
SELECT DISTINCT col2 / - col1 AS col0 FROM tab2 AS cor0
----
-2
0

query I rowsort
SELECT DISTINCT col1 + col1 AS col1 FROM tab1 cor0
----
20
26
52

query I rowsort
SELECT + + col0 * - col1 * col0 + + col2 FROM tab2 AS cor0
----
-106059
-1492
-358930

query I rowsort
SELECT ALL - + col1 + + cor0.col0 AS col2 FROM tab2 AS cor0
----
-24
19
62

query I rowsort
SELECT ALL - - col0 + - col0 * + 22 FROM tab2 AS cor0
----
-147
-1638
-1659

query I rowsort
SELECT col0 * + ( 90 ) + col1 * ( col2 ) AS col0 FROM tab2 AS cor0
----
1467
7756
8554

query I rowsort
SELECT col0 - 38 * col1 * col1 FROM tab1 AS cor0
----
-25685
-3736
-6342

query I rowsort
SELECT DISTINCT col0 + - 32 AS col1 FROM tab0 cor0
----
-8
3
57

query I rowsort
SELECT col0 * ( - col1 * - col2 ) FROM tab0 AS cor0
----
3395
664118
68112

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col1 * + ( - col1 ) + + col2 col1 FROM tab2 AS cor0
----
327
3507
988

query I rowsort
SELECT - col1 + col2 * cor0.col2 AS col0 FROM tab2 cor0
----
1427
617
698

query I rowsort
SELECT - col0 * + 33 FROM tab1 AS cor0
----
-2112
-2640
-99

query I rowsort
SELECT DISTINCT - col0 + 73 FROM tab2 AS cor0
----
-5
-6
66

query I rowsort
SELECT ALL - cor0.col2 * col0 FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT DISTINCT 38 * - col2 - + tab2.col0 AS col1 FROM tab2
----
-1033
-1066
-1523

onlyif mysql # use DIV operator for integer division
query I rowsort label-5976
SELECT - col0 DIV - col1 col0 FROM tab0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5976
SELECT - col0 / - col1 col0 FROM tab0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * - col2 * + tab2.col0 col2 FROM tab2
----
114076
5103
52728

query I rowsort
SELECT DISTINCT col0 * col0 * ( col0 * + col2 ) AS col2 FROM tab1
----
1458
14942208
49152000

query I rowsort
SELECT DISTINCT 31 - - tab2.col1 FROM tab2
----
48
62
90

query I rowsort
SELECT 83 + + tab2.col2 - - 1 FROM tab2
----
110
111
122

query I rowsort
SELECT ALL ( + col0 ) - - col0 FROM tab0 cor0
----
178
48
70

query I rowsort
SELECT ALL + + 25 FROM tab1 AS cor0
----
25
25
25

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5983
SELECT ALL - + CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5983
SELECT ALL - + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT ( col0 ) + col0 FROM tab1 cor0
----
128
160
6

query I rowsort
SELECT ALL 11 + - col1 * - col2 FROM tab0 AS cor0
----
108
2849
7473

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5986
SELECT - + CAST( 28 AS SIGNED ) FROM tab0 AS cor0
----
-28
-28
-28

skipif mysql # not compatible
query I rowsort label-5986
SELECT - + CAST ( 28 AS INTEGER ) FROM tab0 AS cor0
----
-28
-28
-28

query I rowsort
SELECT DISTINCT - col2 * + 46 * + cor0.col1 + - 99 FROM tab2 AS cor0
----
-29815
-38601
-70663

query I rowsort
SELECT ALL - 81 + - 99 FROM tab0 AS cor0
----
-180
-180
-180

query I rowsort
SELECT tab2.col2 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3

query I rowsort
SELECT + + 55 * col2 FROM tab2 cor0
----
1430
1485
2090

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 67 + cor0.col2 col1 FROM tab1 AS cor0
----
121
124
163

query I rowsort
SELECT + 69 AS col0 FROM tab2 cor0
----
69
69
69

query I rowsort
SELECT ALL - 98 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to f17b7008a7deae1eb5a2e707ec237638

query I rowsort
SELECT 35 FROM tab1, tab0 AS cor0
----
9 values hashing to d9b103f79c4e8f0de4b7c1c821783a29

query I rowsort
SELECT col0 * col1 + col0 + col1 FROM tab1
----
107
1133
714

query I rowsort
SELECT DISTINCT - col2 + col1 - - col2 AS col2 FROM tab2
----
17
31
59

query I rowsort
SELECT ALL - tab0.col2 - + 1 * tab0.col2 AS col1 FROM tab0
----
-164
-2
-66

query I rowsort
SELECT col2 * 75 AS col0 FROM tab0 cor0
----
2475
6150
75

query I rowsort
SELECT DISTINCT - col1 + col0 * - col1 FROM tab2 AS cor0
----
-1360
-248
-4661

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col0 col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a

query I rowsort
SELECT - 71 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to e72f95c346714d3065a96d67a6fd5062

query I rowsort
SELECT ALL - col2 + + ( + col2 ) * - col0 FROM tab1
----
-216
-3705
-7776

query I rowsort
SELECT ALL + col2 + 22 AS col0 FROM tab2
----
48
49
60

query I rowsort
SELECT DISTINCT 53 * + col2 AS col0 FROM tab1 AS cor0
----
2862
3021
5088

query I rowsort
SELECT - 18 * 40 FROM tab0 AS cor0
----
-720
-720
-720

query I rowsort
SELECT ALL - + col2 * col0 + col0 AS col0 FROM tab2 cor0
----
-182
-1950
-2923

query I rowsort
SELECT DISTINCT - - cor0.col2 * + col1 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT ALL - 50 - col0 FROM tab0 AS cor0
----
-139
-74
-85

query I rowsort
SELECT ALL 93 * - col2 AS col1 FROM tab1 cor0
----
-5022
-5301
-8928

query I rowsort
SELECT + 77 * - col1 + - col0 * + col0 AS col0 FROM tab2 AS cor0
----
-10627
-2436
-7550

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 + col2 - - 57 FROM tab1 AS cor0
----
111
114
153

query I rowsort
SELECT cor0.col2 + 3 FROM tab2 AS cor0
----
29
30
41

query I rowsort
SELECT - 75 - - col2 AS col2 FROM tab1 AS cor0
----
-18
-21
21

query I rowsort
SELECT ALL + 53 * col1 AS col2 FROM tab1 AS cor0
----
1378
530
689

query I rowsort
SELECT ALL cor0.col0 + ( - col1 ) AS col2 FROM tab1 AS cor0
----
-23
54
67

query I rowsort
SELECT DISTINCT + 55 + + col2 * cor0.col1 FROM tab2 AS cor0
----
1589
701
892

query I rowsort
SELECT ALL ( cor0.col2 ) + col0 - + col0 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT + - col0 * - col1 + - cor0.col1 AS col2 FROM tab1 AS cor0
----
1027
52
630

onlyif mysql # use DIV operator for integer division
query I rowsort label-6020
SELECT DISTINCT - + col0 DIV + col0 AS col0 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-6020
SELECT DISTINCT - + col0 / + col0 AS col0 FROM tab2 AS cor0
----
-1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6021
SELECT DISTINCT - + CAST( + col1 AS SIGNED ) FROM tab1 cor0
----
-10
-13
-26

skipif mysql # not compatible
query I rowsort label-6021
SELECT DISTINCT - + CAST ( + col1 AS INTEGER ) FROM tab1 cor0
----
-10
-13
-26

query I rowsort
SELECT ALL + col2 + - col1 AS col0 FROM tab1 AS cor0
----
28
47
83

query I rowsort
SELECT - + cor0.col2 AS col0 FROM tab0 cor0
----
-1
-33
-82

query I rowsort
SELECT DISTINCT - + col1 * + 90 - cor0.col1 AS col0 FROM tab1 AS cor0
----
-1183
-2366
-910

query I rowsort
SELECT DISTINCT - + 64 FROM tab1 AS cor0
----
-64

query I rowsort
SELECT - col0 + + col2 * 60 AS col0 FROM tab0 AS cor0
----
1956
25
4831

query I rowsort
SELECT ALL + 6 * col1 FROM tab2 AS cor0
----
102
186
354

query I rowsort
SELECT - - col2 * col1 AS col0 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT - - cor0.col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6030
SELECT ALL - - ( + col2 ) + + CAST( col1 AS SIGNED ) * + col2 FROM tab0 AS cor0
----
2871
7544
98

skipif mysql # not compatible
query I rowsort label-6030
SELECT ALL - - ( + col2 ) + + CAST ( col1 AS INTEGER ) * + col2 FROM tab0 AS cor0
----
2871
7544
98

query I rowsort
SELECT ALL - col1 + cor0.col2 FROM tab0 cor0
----
-53
-9
-96

query I rowsort
SELECT DISTINCT + col2 + cor0.col2 AS col0 FROM tab0 AS cor0
----
164
2
66

query I rowsort
SELECT DISTINCT ( col1 ) * - 86 FROM tab2 AS cor0
----
-1462
-2666
-5074

onlyif mysql # use DIV operator for integer division
query I rowsort label-6034
SELECT ALL - col1 DIV col1 + ( col0 ) * + col0 * + col1 col2 FROM tab2 AS cor0
----
106096
1518
358955

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6034
SELECT ALL - col1 / col1 + ( col0 ) * + col0 * + col1 col2 FROM tab2 AS cor0
----
106096
1518
358955

onlyif mysql # use DIV operator for integer division
query I rowsort label-6035
SELECT DISTINCT - col0 DIV col2 FROM tab0 cor0
----
-1
-35
0

skipif mysql # not compatible
query I rowsort label-6035
SELECT DISTINCT - col0 / col2 FROM tab0 cor0
----
-1
-35
0

query I rowsort
SELECT + 68 + col1 * - cor0.col0 AS col1 FROM tab0 AS cor0
----
-1996
-3327
-8031

query I rowsort
SELECT DISTINCT col1 * - col0 AS col2 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT DISTINCT + - col0 * + col0 AS col0 FROM tab0 AS cor0
----
-1225
-576
-7921

query I rowsort
SELECT col0 * + col0 + + 23 * - col2 * col0 FROM tab1 AS cor0
----
-170240
-3717
-79808

onlyif mysql # use DIV operator for integer division
query I rowsort label-6040
SELECT ALL col0 DIV + col0 AS col2 FROM tab1 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6040
SELECT ALL col0 / + col0 AS col2 FROM tab1 cor0
----
1
1
1

query I rowsort
SELECT - cor0.col1 * col0 AS col0 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT DISTINCT 99 AS col2 FROM tab2 AS cor0
----
99

query I rowsort
SELECT DISTINCT cor0.col2 + 28 FROM tab0, tab1 AS cor0
----
124
82
85

query I rowsort
SELECT + col1 + col2 * 22 AS col1 FROM tab0 cor0
----
119
1895
812

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 51 col1 FROM tab0, tab0 AS cor0
----
9 values hashing to d8bf0a05c9c4d2a93812d106baae4752

query I rowsort
SELECT DISTINCT + col1 * ( - col1 + col1 * - 83 ) AS col1 FROM tab2 AS cor0
----
-24276
-292404
-80724

query I rowsort
SELECT col0 * ( - col0 ) FROM tab0 AS cor0
----
-1225
-576
-7921

query I rowsort
SELECT ALL col0 * - col0 * col0 FROM tab2
----
-343
-474552
-493039

query I rowsort
SELECT - col0 * 58 AS col0 FROM tab1 AS cor0
----
-174
-3712
-4640

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6050
SELECT CAST( NULL AS SIGNED ) / cor1.col2 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-6050
SELECT CAST ( NULL AS INTEGER ) / cor1.col2 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6051
SELECT ALL - col2 - CAST( 86 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-112
-113
-124

skipif mysql # not compatible
query I rowsort label-6051
SELECT ALL - col2 - CAST ( 86 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-112
-113
-124

query I rowsort
SELECT DISTINCT + + col0 + ( 71 ) FROM tab2 AS cor0
----
149
150
78

onlyif mysql # use DIV operator for integer division
query I rowsort label-6053
SELECT + + col2 DIV col0 AS col0 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-6053
SELECT + + col2 / col0 AS col0 FROM tab0 AS cor0
----
0
0
1

query I rowsort
SELECT DISTINCT - col0 + + col2 + col1 * col2 AS col2 FROM tab2 AS cor0
----
1482
605
857

query I rowsort
SELECT cor0.col1 * 54 AS col2 FROM tab0 AS cor0
----
4644
4914
5238

query I rowsort
SELECT ALL + + col0 * - 69 FROM tab1 AS cor0
----
-207
-4416
-5520

query I rowsort
SELECT 0 FROM tab1, tab0 AS cor0, tab2 cor1
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2

onlyif mysql # use DIV operator for integer division
query I rowsort label-6058
SELECT col1 DIV 27 AS col1 FROM tab0 AS cor0
----
3
3
3

skipif mysql # not compatible
query I rowsort label-6058
SELECT col1 / 27 AS col1 FROM tab0 AS cor0
----
3
3
3

query I rowsort
SELECT + - col2 * ( ( + col1 ) ) * + ( + 61 ) FROM tab2 AS cor0
----
-39406
-51057
-93574

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab2, tab2 AS cor1, tab0 AS cor2, tab0 AS cor3
----
3645 values hashing to f655b6f4c5b9ff73813030f2822ea1fd

query I rowsort
SELECT DISTINCT 41 AS col2 FROM tab0, tab2 AS cor0
----
41

query I rowsort
SELECT + + cor0.col0 + - col1 AS col2 FROM tab2 AS cor0
----
-24
19
62

query I rowsort
SELECT + col2 * 65 + 92 FROM tab2
----
1782
1847
2562

onlyif mysql # use DIV operator for integer division
query I rowsort label-6064
SELECT + + col1 * col0 + - col2 DIV 78 FROM tab1 AS cor0
----
1039
640
78

skipif mysql # not compatible
query I rowsort label-6064
SELECT + + col1 * col0 + - col2 / 78 FROM tab1 AS cor0
----
1039
640
78

query I rowsort
SELECT ALL - 37 FROM tab2, tab0 AS cor0
----
9 values hashing to ed4644af7729c2425ea6cc3d84c6504f

query I rowsort
SELECT ALL ( - cor0.col2 ) AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to b5a4102107e5ebd26e341538f4fede1e

query I rowsort
SELECT DISTINCT + ( tab0.col1 ) + + col2 FROM tab0
----
119
173
98

onlyif mysql # use DIV operator for integer division
query I rowsort label-6068
SELECT DISTINCT 22 DIV col0 FROM tab1
----
0
7

skipif mysql # not compatible
query I rowsort label-6068
SELECT DISTINCT 22 / col0 FROM tab1
----
0
7

query I rowsort
SELECT - 50 * col2 FROM tab2
----
-1300
-1350
-1900

query I rowsort
SELECT DISTINCT - tab1.col0 + 28 AS col2 FROM tab1, tab2 AS cor0
----
-36
-52
25

query I rowsort
SELECT - col2 * + col2 + + col2 FROM tab1
----
-2862
-3192
-9120

query I rowsort
SELECT ALL - + col2 * + col1 + col1 FROM tab1 AS cor0
----
-1235
-1378
-560

query I rowsort
SELECT DISTINCT col2 + col1 * col2 FROM tab2 AS cor0
----
1560
684
864

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab2 AS cor0, tab2 AS cor1, tab2, tab2 cor2
----
3645 values hashing to f1fc3f16747aca82b54b2b759d1f5ea2

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6075
SELECT DISTINCT - + ( + col2 ) * CAST( NULL AS SIGNED ) + - col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6075
SELECT DISTINCT - + ( + col2 ) * CAST ( NULL AS INTEGER ) + - col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL + 78 FROM tab1
----
78
78
78

query I rowsort
SELECT DISTINCT - - 78 * cor0.col1 FROM tab2 AS cor0
----
1326
2418
4602

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + cor0.col0 * col0 + + 55 col0 FROM tab2 AS cor0
----
-6029
-6186
6

query I rowsort
SELECT + 73 - + cor0.col2 FROM tab0 AS cor0
----
-9
40
72

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6080
SELECT + - CAST( col1 AS SIGNED ) * + col1 * + 14 + col1 * col1 + 95 AS col2 FROM tab0 AS cor0
----
-107558
-122222
-96053

skipif mysql # not compatible
query I rowsort label-6080
SELECT + - CAST ( col1 AS INTEGER ) * + col1 * + 14 + col1 * col1 + 95 AS col2 FROM tab0 AS cor0
----
-107558
-122222
-96053

query I rowsort
SELECT + col1 - - col0 AS col2 FROM tab0 AS cor0
----
110
132
180

query I rowsort
SELECT ( - col0 ) * + cor0.col1 + 33 FROM tab1 AS cor0
----
-1007
-45
-607

onlyif mysql # use DIV operator for integer division
query I rowsort label-6083
SELECT ALL - col1 DIV 10 FROM tab0
----
-8
-9
-9

skipif mysql # not compatible
query I rowsort label-6083
SELECT ALL - col1 / 10 FROM tab0
----
-8
-9
-9

query I rowsort
SELECT - 25 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 2e7a33467ee3a4d9570560d60302b35a

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 * col2 + + col2 col2 FROM tab2 AS cor0
----
-162
-2002
-2964

onlyif mysql # use DIV operator for integer division
query I rowsort label-6086
SELECT ALL + + col2 * 52 DIV col2 FROM tab0 AS cor0
----
52
52
52

skipif mysql # not compatible
query I rowsort label-6086
SELECT ALL + + col2 * 52 / col2 FROM tab0 AS cor0
----
52
52
52

query I rowsort
SELECT + 29 * col0 FROM tab2 cor0
----
203
2262
2291

query I rowsort
SELECT DISTINCT - 72 + + ( col2 ) * - cor0.col0 FROM tab0 cor0
----
-107
-7370
-864

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col1 col0 FROM tab1 AS cor0
----
-10
-13
-26

query I rowsort
SELECT ALL - 64 FROM tab2 AS cor0
----
-64
-64
-64

query I rowsort
SELECT DISTINCT - col0 * - cor0.col2 AS col2 FROM tab0 AS cor0
----
35
7298
792

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6092
SELECT ALL - + CAST( + 43 AS SIGNED ) * + col1 FROM tab0 AS cor0
----
-3698
-3913
-4171

skipif mysql # not compatible
query I rowsort label-6092
SELECT ALL - + CAST ( + 43 AS INTEGER ) * + col1 FROM tab0 AS cor0
----
-3698
-3913
-4171

query I rowsort
SELECT 7 FROM tab2, tab0 cor0, tab1, tab1 AS cor1
----
81 values hashing to bd991c690468eea3ef45a96817ca3617

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col1 col0 FROM tab1 AS cor0
----
-10
-13
-26

query I rowsort
SELECT DISTINCT 68 + 24 AS col1 FROM tab1
----
92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 64 * 41 col1 FROM tab0 AS cor0
----
2624
2624
2624

query IIIIII rowsort
SELECT * FROM tab2, tab0 cor0 WHERE NOT ( NULL ) NOT BETWEEN ( tab2.col2 ) AND ( NULL )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-6098
SELECT ALL - tab0.col2 * 23 DIV - 71 FROM tab0, tab2, tab2 cor0
----
27 values hashing to 9dba781d0006ac4186b79233e21749ea

skipif mysql # not compatible
query I rowsort label-6098
SELECT ALL - tab0.col2 * 23 / - 71 FROM tab0, tab2, tab2 cor0
----
27 values hashing to 9dba781d0006ac4186b79233e21749ea

query I rowsort
SELECT col1 * - 30 AS col0 FROM tab2
----
-1770
-510
-930

query I rowsort
SELECT col1 * col1 + + col2 AS col1 FROM tab0 AS cor0
----
7429
8363
9410

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6101
SELECT - col2 * - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6101
SELECT - col2 * - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col1 + col0 * 46 FROM tab0 AS cor0
----
1018
1513
4003

query I rowsort
SELECT + 2 FROM tab2, tab0 cor0
----
9 values hashing to 84dbfaf9bc17dd097f15bc36b4186261

query I rowsort
SELECT col0 * + col2 * tab0.col0 - col1 FROM tab0
----
1128
18922
649431

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + col0 * + col0 col1 FROM tab2 AS cor0
----
56
6162
6320

query I rowsort
SELECT + - 34 * 97 FROM tab1 AS cor0
----
-3298
-3298
-3298

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col0 col1 FROM tab0, tab2 cor0
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a

query I rowsort
SELECT DISTINCT ( col0 ) + col0 AS col0 FROM tab2 AS cor0
----
14
156
158

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * + col2 col1 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT + col1 - col2 * col1 FROM tab2 AS cor0
----
-1475
-629
-806

query I rowsort
SELECT DISTINCT + 23 AS col1 FROM tab2 AS cor0
----
23

query I rowsort
SELECT ALL 95 * + 51 FROM tab2 cor0
----
4845
4845
4845

query I rowsort
SELECT ALL + - ( + col2 ) * cor0.col1 AS col1 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT ALL + ( + ( - col0 ) ) AS col1 FROM tab2 AS cor0
----
-7
-78
-79

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6115
SELECT DISTINCT ( col0 ) * col1 + - CAST( col0 * + col2 + col0 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-1738
21
2496

skipif mysql # not compatible
query I rowsort label-6115
SELECT DISTINCT ( col0 ) * col1 + - CAST ( col0 * + col2 + col0 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-1738
21
2496

query I rowsort
SELECT DISTINCT - 73 * + cor0.col1 * - col2 + ( - ( + col2 ) ) FROM tab1 AS cor0
----
102438
41553
91008

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + col1 * + cor0.col1 col2 FROM tab2 AS cor0
----
306
3540
992

query I rowsort
SELECT ALL - col2 + - cor0.col1 AS col0 FROM tab2 AS cor0
----
-55
-58
-85

query I rowsort
SELECT DISTINCT col0 * col2 + + col2 + col0 * col0 * - col0 FROM tab2
----
-127
-472498
-489999

query I rowsort
SELECT - 9 + + col0 + - ( col1 ) FROM tab1 AS cor0
----
-32
45
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( + col2 ) * + 56 col1 FROM tab0 AS cor0
----
1848
4592
56

query I rowsort
SELECT ALL + cor0.col2 + col0 * + col2 FROM tab1 AS cor0
----
216
3705
7776

query I rowsort
SELECT DISTINCT - 15 * - col1 AS col2 FROM tab0 AS cor0
----
1290
1365
1455

query I rowsort
SELECT - + cor0.col2 * + col1 + - cor0.col2 AS col1 FROM tab0 AS cor0
----
-2871
-7544
-98

query I rowsort
SELECT DISTINCT - col2 * - ( + col2 ) * col0 AS col2 FROM tab1 AS cor0
----
207936
737280
8748

query I rowsort
SELECT + + col0 * 42 AS col0 FROM tab1 AS cor0
----
126
2688
3360

query I rowsort
SELECT ALL + cor0.col0 + col2 AS col1 FROM tab2 AS cor0
----
104
117
34

query I rowsort
SELECT ALL - cor0.col0 * - col2 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT ALL + col2 * - 41 AS col0 FROM tab2 AS cor0
----
-1066
-1107
-1558

query I rowsort
SELECT DISTINCT - col2 * ( - col1 ) FROM tab2 cor0
----
1534
646
837

query I rowsort
SELECT DISTINCT + + ( cor0.col1 ) * 8 FROM tab0, tab2, tab0 cor0
----
688
728
776

query I rowsort
SELECT + + col0 * col2 + - cor0.col0 FROM tab2 AS cor0
----
182
1950
2923

query I rowsort
SELECT ALL col0 + + ( + col2 * + col0 ) FROM tab1 cor0
----
165
3712
7760

query I rowsort
SELECT DISTINCT + - col2 * col0 - + 22 AS col0 FROM tab1 AS cor0
----
-184
-3670
-7702

query I rowsort
SELECT ALL 41 AS col1 FROM tab0
----
41
41
41

query I rowsort
SELECT - + col0 * col2 AS col1 FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT DISTINCT + col2 * cor0.col1 + cor0.col1 * + col0 FROM tab0 cor0
----
15561
3492
4902

onlyif mysql # use DIV operator for integer division
query I rowsort label-6138
SELECT DISTINCT + col2 DIV col0 + - col1 + col2 FROM tab2 cor0
----
-1
-33
21

skipif mysql # not compatible
query I rowsort label-6138
SELECT DISTINCT + col2 / col0 + - col1 + col2 FROM tab2 cor0
----
-1
-33
21

query I rowsort
SELECT ALL - 73 * col2 + ( + cor0.col1 * - cor0.col0 + + ( + cor0.col2 ) ) FROM tab0 AS cor0
----
-14003
-3467
-4440

query I rowsort
SELECT - - 68 FROM tab1 AS cor0
----
68
68
68

query I rowsort
SELECT + col0 + col2 AS col0 FROM tab0
----
171
36
57

query I rowsort
SELECT DISTINCT ( col2 ) AS col0 FROM tab0
----
1
33
82

query I rowsort
SELECT 50 * cor1.col2 AS col0 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 4d7afd25215a425cd08c88d7b6124676

onlyif mysql # use DIV operator for integer division
query I rowsort label-6144
SELECT + col0 DIV 33 FROM tab0 AS cor0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-6144
SELECT + col0 / 33 FROM tab0 AS cor0
----
0
1
2

query I rowsort
SELECT - 65 + col0 FROM tab1
----
-1
-62
15

query I rowsort
SELECT - 59 AS col2 FROM tab0, tab1 AS cor0, tab0 cor1
----
27 values hashing to 582c5aa5e5b4fc3f2ea27e7637992d1f

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col0 + + col0 col1 FROM tab2 AS cor0
----
14
156
158

query I rowsort
SELECT - col2 + col0 + col1 FROM tab2
----
11
111
58

query I rowsort
SELECT ALL + 3 FROM tab1, tab2, tab2 AS cor0, tab2 AS cor1
----
81 values hashing to c7bd37716aa9c76e684a54f53d1ee343

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6150
SELECT + CAST( NULL AS SIGNED ) + 93 col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6150
SELECT + CAST ( NULL AS INTEGER ) + 93 col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-6151
SELECT + + col2 + cor0.col0 DIV - col2 FROM tab1 AS cor0
----
54
56
96

skipif mysql # not compatible
query I rowsort label-6151
SELECT + + col2 + cor0.col0 / - col2 FROM tab1 AS cor0
----
54
56
96

query I rowsort
SELECT DISTINCT tab2.col2 * - col2 + + 80 FROM tab2
----
-1364
-596
-649

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + tab2.col1 * tab2.col2 col2 FROM tab2
----
1534
646
837

query I rowsort
SELECT ALL - - col0 * + col0 * 36 AS col2 FROM tab1 AS cor0
----
147456
230400
324

query I rowsort
SELECT + col0 + ( - tab1.col1 ) * - col0 FROM tab1
----
1120
704
81

query I rowsort
SELECT ALL col2 + + 97 FROM tab2
----
123
124
135

query I rowsort
SELECT + 94 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to a4d239626cf0546ac1b2f57bb8407089

query I rowsort
SELECT ALL + + ( col0 ) - col2 FROM tab0 AS cor0
----
-9
34
7

query I rowsort
SELECT ALL - + col1 * 4 + col0 FROM tab2 AS cor0
----
-117
-158
11

query I rowsort
SELECT + - 34 AS col2 FROM tab0 AS cor0
----
-34
-34
-34

query I rowsort
SELECT DISTINCT + col1 - + cor0.col1 * - col2 FROM tab2 cor0
----
1593
663
868

query I rowsort
SELECT ALL + + ( cor0.col2 ) * col1 + - cor0.col1 + col0 FROM tab0 cor0
----
2776
35
7460

onlyif mysql # use DIV operator for integer division
query I rowsort label-6163
SELECT DISTINCT + ( cor0.col0 ) DIV col1 FROM tab1 AS cor0
----
0
6

skipif mysql # not compatible
query I rowsort label-6163
SELECT DISTINCT + ( cor0.col0 ) / col1 FROM tab1 AS cor0
----
0
6

query I rowsort
SELECT ALL - + 67 * + col0 + - col2 AS col2 FROM tab2 AS cor0
----
-496
-5252
-5331

query I rowsort
SELECT DISTINCT + + 19 - - col2 * cor0.col2 FROM tab0 AS cor0
----
1108
20
6743

query I rowsort
SELECT ALL + 59 + col1 * - col2 AS col2 FROM tab0 AS cor0
----
-2779
-38
-7403

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * 15 + - cor0.col0 * - ( 34 ) col0 FROM tab2 AS cor0
----
343
3822
3871

onlyif mysql # use DIV operator for integer division
query I rowsort label-6168
SELECT DISTINCT - - col2 DIV + col1 FROM tab2 AS cor0
----
0
2

skipif mysql # not compatible
query I rowsort label-6168
SELECT DISTINCT - - col2 / + col1 FROM tab2 AS cor0
----
0
2

query I rowsort
SELECT ALL 16 * 33 + - cor0.col1 FROM tab0 cor0
----
431
437
442

query I rowsort
SELECT DISTINCT + 93 + 18 * col2 AS col0 FROM tab2 AS cor0
----
561
579
777

query I rowsort
SELECT - 77 + 1 FROM tab0 AS cor0
----
-76
-76
-76

query I rowsort
SELECT ALL col2 + + col0 * col0 AS col1 FROM tab2 AS cor0
----
6110
6279
76

query I rowsort
SELECT DISTINCT 65 FROM tab0, tab1 AS cor0
----
65

query I rowsort
SELECT 49 * col0 FROM tab1
----
147
3136
3920

query I rowsort
SELECT DISTINCT + cor1.col1 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
17
31
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( 64 ) * - col0 * + ( + col2 ) col1 FROM tab1
----
-10368
-233472
-491520

query I rowsort
SELECT + + cor0.col2 FROM tab0, tab2 cor0
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3

query I rowsort
SELECT ALL 91 AS col2 FROM tab1
----
91
91
91

query I rowsort
SELECT - col0 * - col2 * + col0 FROM tab2 AS cor0
----
1323
158184
237158

query I rowsort
SELECT + + col0 * + col0 * + ( + col1 ) AS col2 FROM tab2 AS cor0
----
106097
1519
358956

query I rowsort
SELECT - 59 * col1 AS col2 FROM tab1 AS cor0
----
-1534
-590
-767

query I rowsort
SELECT - 88 FROM tab1 cor0
----
-88
-88
-88

skipif mysql # not compatible
query I rowsort
SELECT ALL + CAST ( + 98 + + col2 AS REAL ) AS col0 FROM tab2
----
124
125
136

query I rowsort
SELECT 56 FROM tab1, tab1 cor0
----
9 values hashing to 9c4523312174730bbc525b9977aa99fa

query I rowsort
SELECT ( - col2 ) + - cor0.col2 AS col1 FROM tab2 AS cor0
----
-52
-54
-76

query I rowsort
SELECT - 8 * + col1 + 20 AS col2 FROM tab0 AS cor0
----
-668
-708
-756

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6187
SELECT ALL - - col1 + CAST( col0 AS SIGNED ) FROM tab2 cor0
----
137
38
96

skipif mysql # not compatible
query I rowsort label-6187
SELECT ALL - - col1 + CAST ( col0 AS INTEGER ) FROM tab2 cor0
----
137
38
96

query I rowsort
SELECT + - col2 + + col1 * + 48 * + cor0.col1 AS col2 FROM tab1 AS cor0
----
32394
4743
8016

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6189
SELECT col2 + + CAST( 77 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
103
104
115

skipif mysql # not compatible
query I rowsort label-6189
SELECT col2 + + CAST ( 77 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
103
104
115

query I rowsort
SELECT ALL - col0 * 32 + + 60 * col2 FROM tab1 cor0
----
1372
3144
3200

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + - col0 col1 FROM tab2 AS cor0
----
-41
-52
20

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - col2 + - cor0.col2 col2 FROM tab1 AS cor0
----
-1344
-1458
-627

query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab2 cor0 CROSS JOIN tab2, tab1 cor1
----
243 values hashing to 877a8dbac0e29b86e845fb64ed9d2242

query I rowsort
SELECT DISTINCT - 26 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
-26

query I rowsort
SELECT + - col1 + - col1 FROM tab1 cor0
----
-20
-26
-52

query I rowsort
SELECT - - col2 * + 95 AS col0 FROM tab1 AS cor0
----
5130
5415
9120

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 * 33 - - cor0.col0 col2 FROM tab2 AS cor0
----
-1175
-780
-884

query I rowsort
SELECT - cor0.col1 * col0 + ( col1 ) FROM tab1 cor0
----
-1027
-52
-630

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6199
SELECT - + col0 + - CAST( NULL AS SIGNED ) * - 92 / col1 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6199
SELECT - + col0 + - CAST ( NULL AS INTEGER ) * - 92 / col1 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 + col1 * - 75 col2 FROM tab1 AS cor0
----
-1055
-1953
-814

onlyif mysql # use DIV operator for integer division
query I rowsort label-6201
SELECT 72 + col2 DIV - cor0.col2 col0 FROM tab1 AS cor0
----
71
71
71

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6201
SELECT 72 + col2 / - cor0.col2 col0 FROM tab1 AS cor0
----
71
71
71

query I rowsort
SELECT + - 46 + col2 * - col1 * + ( + col2 * + col2 ) AS col2 FROM tab2 AS cor0
----
-1037030
-610219
-932870

query I rowsort
SELECT - col0 + + 49 + - col1 FROM tab2
----
-47
-88
11

query I rowsort
SELECT + - col1 + col2 AS col0 FROM tab2 AS cor0
----
-33
-4
21

query I rowsort
SELECT 57 + col0 * - 1 FROM tab1 AS cor0
----
-23
-7
54

onlyif mysql # use DIV operator for integer division
query I rowsort label-6206
SELECT - cor0.col1 DIV - col2 FROM tab0 AS cor0
----
1
2
97

skipif mysql # not compatible
query I rowsort label-6206
SELECT - cor0.col1 / - col2 FROM tab0 AS cor0
----
1
2
97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6207
SELECT ALL - col0 * - col0 * CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6207
SELECT ALL - col0 * - col0 * CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col2 * + col1 AS col0 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT DISTINCT - + col1 + + col0 FROM tab0 AS cor0
----
-2
-62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * + col1 col1 FROM tab0 cor0
----
-7396
-8281
-9409

query I rowsort
SELECT - col0 * + col2 + col1 AS col2 FROM tab1 AS cor0
----
-136
-3638
-7667

onlyif mysql # use DIV operator for integer division
query I rowsort label-6212
SELECT - - col2 * col1 + - col0 DIV + col1 FROM tab1 AS cor0
----
1242
1404
564

skipif mysql # not compatible
query I rowsort label-6212
SELECT - - col2 * col1 + - col0 / + col1 FROM tab1 AS cor0
----
1242
1404
564

query I rowsort
SELECT col2 + cor0.col2 AS col0 FROM tab0 AS cor0
----
164
2
66

query I rowsort
SELECT 49 FROM tab0
----
49
49
49

onlyif mysql # use DIV operator for integer division
query I rowsort label-6215
SELECT + col1 DIV - col1 AS col1 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-6215
SELECT + col1 / - col1 AS col1 FROM tab1
----
-1
-1
-1

query I rowsort
SELECT DISTINCT col0 * + col1 AS col0 FROM tab2
----
1343
217
4602

onlyif mysql # use DIV operator for integer division
query I rowsort label-6217
SELECT + + cor0.col0 DIV 37 FROM tab1, tab2 AS cor0
----
9 values hashing to dcf0bdb0a33a97c73a81c5b823899d40

skipif mysql # not compatible
query I rowsort label-6217
SELECT + + cor0.col0 / 37 FROM tab1, tab2 AS cor0
----
9 values hashing to dcf0bdb0a33a97c73a81c5b823899d40

query I rowsort
SELECT - col2 + 83 * - col2 FROM tab0 AS cor0
----
-2772
-6888
-84

query I rowsort
SELECT ( - 23 ) FROM tab1 AS cor0
----
-23
-23
-23

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6220
SELECT + col0 + + CAST( + 13 AS SIGNED ) FROM tab1
----
16
77
93

skipif mysql # not compatible
query I rowsort label-6220
SELECT + col0 + + CAST ( + 13 AS INTEGER ) FROM tab1
----
16
77
93

query IIIIIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab0, tab2 AS cor1, tab1, tab2 AS cor2, tab2
----
13122 values hashing to 78387e1ccdd92d2c2ea431cc7be6fa0d

query I rowsort
SELECT ALL + 87 * - 59 AS col1 FROM tab0
----
-5133
-5133
-5133

query I rowsort
SELECT ALL - + col1 + col0 AS col0 FROM tab1 AS cor0
----
-23
54
67

onlyif mysql # use DIV operator for integer division
query I rowsort label-6224
SELECT + - col2 + col2 * col0 DIV ( col2 ) FROM tab0 AS cor0
----
-9
34
7

skipif mysql # not compatible
query I rowsort label-6224
SELECT + - col2 + col2 * col0 / ( col2 ) FROM tab0 AS cor0
----
-9
34
7

query I rowsort
SELECT ALL 80 AS col2 FROM tab0
----
80
80
80

query I rowsort
SELECT DISTINCT + 95 * + col1 * - 85 + + cor0.col0 * cor0.col2 * col2 - - col1 AS col1 FROM tab1 AS cor0
----
-201176
127196
632318

query I rowsort
SELECT ALL - 99 * + col0 FROM tab2 cor0
----
-693
-7722
-7821

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 92 col1 FROM tab0, tab1 cor0
----
9 values hashing to 516fa45c8b06f9f67d6e500bfd435c1a

query I rowsort
SELECT ALL + cor0.col0 + col1 AS col2 FROM tab2 AS cor0
----
137
38
96

query I rowsort
SELECT - + col0 * col0 FROM tab1 AS cor0
----
-4096
-6400
-9

query I rowsort
SELECT ALL + 46 FROM tab0 AS cor0
----
46
46
46

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6232
SELECT + CAST( NULL AS SIGNED ) * tab0.col0 + - col0 * col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6232
SELECT + CAST ( NULL AS INTEGER ) * tab0.col0 + - col0 * col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col0 * - col1 * + col2 FROM tab1
----
-36480
-4212
-99840

onlyif mysql # use DIV operator for integer division
query I rowsort label-6234
SELECT DISTINCT ( - tab1.col2 ) DIV - col1 FROM tab1
----
2
5
7

skipif mysql # not compatible
query I rowsort label-6234
SELECT DISTINCT ( - tab1.col2 ) / - col1 FROM tab1
----
2
5
7

query I rowsort
SELECT ALL - col1 * - col1 + + col1 AS col0 FROM tab2 AS cor0
----
306
3540
992

query I rowsort
SELECT ALL - col2 * + col2 * + 20 + - cor0.col2 AS col0 FROM tab1 AS cor0
----
-184416
-58374
-65037

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6237
SELECT DISTINCT + + col0 + col1 + CAST( NULL AS SIGNED ) / - col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6237
SELECT DISTINCT + + col0 + col1 + CAST ( NULL AS INTEGER ) / - col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT - ( col0 ) * + col1 + - col1 * - col2 AS col1 FROM tab0
----
-3298
-637
774

onlyif mysql # use DIV operator for integer division
query I rowsort label-6239
SELECT + col2 + - col2 DIV + 97 col1 FROM tab2
----
26
27
38

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6239
SELECT + col2 + - col2 / + 97 col1 FROM tab2
----
26
27
38

query I rowsort
SELECT ALL + col2 + col1 * - col0 + - 93 FROM tab1 AS cor0
----
-1037
-117
-676

query I rowsort
SELECT DISTINCT + cor0.col2 * col0 AS col1 FROM tab0 cor0
----
35
7298
792

query I rowsort
SELECT ALL + ( cor0.col2 ) * cor0.col2 FROM tab0, tab1 AS cor0
----
9 values hashing to aeb56f097f17f262600266df7fcf8652

query I rowsort
SELECT - tab2.col2 * - col2 + col0 AS col1 FROM tab2
----
1523
736
754

query I rowsort
SELECT - col0 - tab2.col0 * col1 * tab2.col1 FROM tab2
----
-22910
-271596
-6734

query I rowsort
SELECT - 8 AS col2 FROM tab1, tab1 cor0
----
9 values hashing to 47f43f23dcd23959d97d8e3b0aab692e

onlyif mysql # use DIV operator for integer division
query I rowsort label-6246
SELECT col1 DIV + ( - 27 ) AS col1 FROM tab2
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-6246
SELECT col1 / + ( - 27 ) AS col1 FROM tab2
----
-1
-2
0

query I rowsort
SELECT ALL col2 + - ( + col1 * + col0 ) AS col0 FROM tab1
----
-24
-583
-944

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - col0 * - cor0.col0 col1 FROM tab1 AS cor0
----
233472
486
614400

query I rowsort
SELECT + col0 * ( - col2 ) + - col1 FROM tab0 AS cor0
----
-132
-7389
-878

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 49 * col2 col1 FROM tab2 AS cor0
----
-1274
-1323
-1862

query I rowsort
SELECT DISTINCT 99 + 12 AS col0 FROM tab1 AS cor0
----
111

query I rowsort
SELECT + 72 AS col0 FROM tab2
----
72
72
72

query I rowsort
SELECT ( - 25 ) FROM tab2 AS cor0
----
-25
-25
-25

onlyif mysql # use DIV operator for integer division
query I rowsort label-6254
SELECT DISTINCT ( - col2 ) DIV + col1 - + 15 FROM tab1 cor0
----
-17
-20
-22

skipif mysql # not compatible
query I rowsort label-6254
SELECT DISTINCT ( - col2 ) / + col1 - + 15 FROM tab1 cor0
----
-17
-20
-22

query I rowsort
SELECT DISTINCT - + col2 * + col0 AS col2 FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT DISTINCT + - 78 + 8 * col0 * + col2 FROM tab2 cor0
----
1434
16146
23938

query I rowsort
SELECT ALL col0 - ( cor0.col1 * col0 ) AS col1 FROM tab2 AS cor0
----
-1264
-210
-4524

query I rowsort
SELECT DISTINCT + col2 * 26 FROM tab2
----
676
702
988

query I rowsort
SELECT ALL - - ( - col0 ) * + col1 - col1 AS col1 FROM tab2 AS cor0
----
-1360
-248
-4661

query I rowsort
SELECT col0 * - col0 + + col1 * ( ( - col1 ) ) FROM tab1 AS cor0
----
-4196
-6569
-685

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col0 * + col0 * cor0.col2 col0 FROM tab0 AS cor0
----
-1225
-19008
-649522

query I rowsort
SELECT DISTINCT + - cor0.col0 * col0 + col0 FROM tab1 AS cor0
----
-4032
-6
-6320

query I rowsort
SELECT ALL col2 + col0 * cor0.col1 FROM tab1 AS cor0
----
1136
132
697

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 29 col2 FROM tab2 cor0
----
29
29
29

skipif mysql # not compatible
query I rowsort
SELECT + + CAST ( 86 AS REAL ) * col1 * - col2 AS col2 FROM tab1 AS cor0
----
-107328
-120744
-49020

query I rowsort
SELECT DISTINCT - - 40 FROM tab0 AS cor0
----
40

query I rowsort
SELECT DISTINCT + + 84 + + 12 FROM tab2 AS cor0
----
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * 63 + + col0 col2 FROM tab1 AS cor0
----
3405
3655
6128

query I rowsort
SELECT ALL + + col1 + - 97 FROM tab0 AS cor0
----
-11
-6
0

query I rowsort
SELECT cor0.col1 * - 47 + col1 * col0 AS col0 FROM tab1 AS cor0
----
-1144
170
429

query I rowsort
SELECT DISTINCT ( + tab1.col1 ) FROM tab1, tab1 AS cor0
----
10
13
26

query I rowsort
SELECT DISTINCT - 88 FROM tab1, tab2 cor0
----
-88

query I rowsort
SELECT ALL + cor2.col2 FROM tab0, tab0 AS cor0, tab1 AS cor1, tab0 AS cor2
----
81 values hashing to e938777ebffc2e3e9c0cdfaa4f732c05

query I rowsort
SELECT - cor0.col1 * + 77 FROM tab1 cor0
----
-1001
-2002
-770

query I rowsort
SELECT - cor0.col2 * + col0 + - 4 + + col2 * + 2 AS col1 FROM tab2 cor0
----
-139
-1980
-2930

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6276
SELECT col1 * - col2 + col2 / col1 + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6276
SELECT col1 * - col2 + col2 / 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 94 col1 FROM tab0
----
94
94
94

onlyif mysql # use DIV operator for integer division
query I rowsort label-6278
SELECT DISTINCT + cor0.col1 DIV + 24 AS col0 FROM tab2, tab0 AS cor0
----
3
4

skipif mysql # not compatible
query I rowsort label-6278
SELECT DISTINCT + cor0.col1 / + 24 AS col0 FROM tab2, tab0 AS cor0
----
3
4

query I rowsort
SELECT col1 * + ( - col2 ) + col1 * + col0 + 19 FROM tab2 cor0
----
-601
3087
716

query I rowsort
SELECT ALL - cor0.col0 * 16 AS col0 FROM tab0 AS cor0
----
-1424
-384
-560

query I rowsort
SELECT ALL + col0 * - 3 + - col2 * + col0 AS col0 FROM tab1 cor0
----
-171
-3840
-7920

query I rowsort
SELECT cor0.col0 AS col1 FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f

query I rowsort
SELECT + 14 * + cor0.col2 AS col0 FROM tab0 AS cor0
----
1148
14
462

onlyif mysql # use DIV operator for integer division
query I rowsort label-6284
SELECT col2 * ( + col2 ) + - col2 DIV - col0 FROM tab0
----
1
1090
6724

skipif mysql # not compatible
query I rowsort label-6284
SELECT col2 * ( + col2 ) + - col2 / - col0 FROM tab0
----
1
1090
6724

query I rowsort
SELECT tab2.col1 + ( - col1 ) AS col1 FROM tab2
----
0
0
0

query I rowsort
SELECT cor0.col0 + ( - 70 ) * tab1.col2 AS col2 FROM tab1, tab0, tab1 cor0
----
27 values hashing to 36cdb9f141af7c322c29a32c834d514b

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6287
SELECT DISTINCT col0 * CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-6287
SELECT DISTINCT col0 * CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

query I rowsort
SELECT ALL - 17 + - col2 + + ( col0 + col1 ) FROM tab1 AS cor0
----
-20
-42
0

query I rowsort
SELECT DISTINCT - - 5 - + col1 AS col1 FROM tab2 cor0
----
-12
-26
-54

onlyif mysql # use DIV operator for integer division
query I rowsort label-6290
SELECT col0 DIV + col2 - cor0.col2 AS col2 FROM tab1 AS cor0
----
-54
-56
-96

skipif mysql # not compatible
query I rowsort label-6290
SELECT col0 / + col2 - cor0.col2 AS col2 FROM tab1 AS cor0
----
-54
-56
-96

query I rowsort
SELECT + + 53 + cor0.col1 AS col2 FROM tab2 AS cor0
----
112
70
84

onlyif mysql # use DIV operator for integer division
query I rowsort label-6292
SELECT DISTINCT - - col0 * - col1 + 7 DIV + ( - col2 ) col1 FROM tab0 AS cor0
----
-2064
-3402
-8099

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6292
SELECT DISTINCT - - col0 * - col1 + 7 / + ( - col2 ) col1 FROM tab0 AS cor0
----
-2064
-3402
-8099

query I rowsort
SELECT DISTINCT 59 FROM tab0 AS cor0
----
59

query I rowsort
SELECT DISTINCT 35 * + col0 AS col0 FROM tab2 AS cor0
----
245
2730
2765

query I rowsort
SELECT ALL - cor0.col0 + + col2 AS col1 FROM tab1 AS cor0
----
-7
16
51

query I rowsort
SELECT ALL + + col2 + col1 - col0 FROM tab0 AS cor0
----
63
84
95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 39 col0 FROM tab0 AS cor0
----
39

query I rowsort
SELECT - + col1 - - col0 * col2 AS col1 FROM tab2 AS cor0
----
158
1969
2985

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6299
SELECT ALL CAST( NULL AS SIGNED ) + col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6299
SELECT ALL CAST ( NULL AS INTEGER ) + col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT + 83 + + col2 FROM tab2
----
109
110
121

query I rowsort
SELECT - col2 + col1 + - col2 * col1 AS col1 FROM tab2
----
-1501
-667
-833

query I rowsort
SELECT + 70 + 10 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 878f012d707aab113cedaf56e6c52e94

onlyif mysql # use DIV operator for integer division
query I rowsort label-6303
SELECT DISTINCT + col2 DIV col2 + + 71 FROM tab0
----
72

skipif mysql # not compatible
query I rowsort label-6303
SELECT DISTINCT + col2 / col2 + + 71 FROM tab0
----
72

query I rowsort
SELECT DISTINCT + 33 * col1 + + col2 * - col1 FROM tab2 AS cor0
----
-85
186
413

query I rowsort
SELECT ALL - + 94 AS col0 FROM tab0 cor0
----
-94
-94
-94

query I rowsort
SELECT + - 34 + cor0.col0 AS col1 FROM tab2 AS cor0
----
-27
44
45

query I rowsort
SELECT DISTINCT col1 + - col0 + cor0.col0 AS col0 FROM tab2 AS cor0
----
17
31
59

query I rowsort
SELECT ALL - col0 + + cor0.col2 + + cor0.col2 AS col0 FROM tab1 AS cor0
----
105
112
50

query I rowsort
SELECT DISTINCT + - cor0.col0 * - col2 + col2 + col0 AS col0 FROM tab0 AS cor0
----
71
7469
849

query I rowsort
SELECT - col0 + col0 + - cor0.col0 AS col0 FROM tab2 AS cor0
----
-7
-78
-79

onlyif mysql # use DIV operator for integer division
query I rowsort label-6311
SELECT - tab1.col0 + tab1.col1 DIV - ( - col0 * - col0 + tab1.col1 * col0 ) FROM tab1
----
-3
-64
-80

skipif mysql # not compatible
query I rowsort label-6311
SELECT - tab1.col0 + tab1.col1 / - ( - col0 * - col0 + tab1.col1 * col0 ) FROM tab1
----
-3
-64
-80

query I rowsort
SELECT 47 AS col1 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 3f991632e9c7c5142e1d80857cd10a2d

query I rowsort
SELECT + + col0 * - cor0.col0 + col1 FROM tab2 AS cor0
----
-18
-6025
-6224

onlyif mysql # use DIV operator for integer division
query I rowsort label-6314
SELECT - cor0.col1 DIV CAST( cor0.col0 AS SIGNED ) + cor0.col2 * col0 * - col2 AS col1 FROM tab2 AS cor0
----
-114076
-5107
-52728

skipif mysql # not compatible
query I rowsort label-6314
SELECT - cor0.col1 / CAST ( cor0.col0 AS INTEGER ) + cor0.col2 * col0 * - col2 AS col1 FROM tab2 AS cor0
----
-114076
-5107
-52728

query I rowsort
SELECT ALL - 81 * - col2 * - ( ( col0 ) ) FROM tab2
----
-15309
-164268
-243162

query I rowsort
SELECT DISTINCT - 23 FROM tab1, tab0, tab2 AS cor0
----
-23

onlyif mysql # use DIV operator for integer division
query I rowsort label-6317
SELECT DISTINCT - + col1 + cor0.col2 - + ( + 62 + col1 ) DIV ( - cor0.col1 * col1 ) FROM tab1 AS cor0
----
28
47
83

skipif mysql # not compatible
query I rowsort label-6317
SELECT DISTINCT - + col1 + cor0.col2 - + ( + 62 + col1 ) / ( - cor0.col1 * col1 ) FROM tab1 AS cor0
----
28
47
83

query I rowsort
SELECT ALL + 63 AS col0 FROM tab0
----
63
63
63

query I rowsort
SELECT ALL - col0 * + ( col2 ) + + col2 * + col2 FROM tab1 AS cor0
----
-399
1536
2754

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6320
SELECT + + col1 * CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6320
SELECT + + col1 * CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col1 * - cor0.col2 + cor0.col1 FROM tab0 AS cor0
----
194
2924
7553

query I rowsort
SELECT col1 * ( col2 ) + - col1 FROM tab2 AS cor0
----
1475
629
806

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6323
SELECT cor0.col0 + CAST( + col2 * + col2 AS SIGNED ) col1 FROM tab0 AS cor0
----
1113
36
6813

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6323
SELECT cor0.col0 + CAST ( + col2 * + col2 AS INTEGER ) col1 FROM tab0 AS cor0
----
1113
36
6813

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6324
SELECT - - col2 / - CAST( NULL AS SIGNED ) - col0 * + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6324
SELECT - - col2 / - CAST ( NULL AS INTEGER ) - col0 * + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-6325
SELECT - col0 DIV - 28 + cor0.col2 col2 FROM tab2 cor0
----
27
28
40

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6325
SELECT - col0 / - 28 + cor0.col2 col2 FROM tab2 cor0
----
27
28
40

query I rowsort
SELECT 28 FROM tab2, tab0 AS cor0 CROSS JOIN tab0, tab2 AS cor1
----
81 values hashing to 423726553d33e100432ebde49ddd31b5

query I rowsort
SELECT ALL col2 * + 72 AS col1 FROM tab1
----
3888
4104
6912

query I rowsort
SELECT ALL ( - ( - col0 ) ) * - 40 FROM tab2
----
-280
-3120
-3160

query I rowsort
SELECT ALL 34 + + 87 * + col0 AS col2 FROM tab0 AS cor0
----
2122
3079
7777

query I rowsort
SELECT cor0.col0 + + 37 FROM tab2 cor0
----
115
116
44

query I rowsort
SELECT ALL + col1 * col2 - cor0.col2 AS col1 FROM tab1 AS cor0
----
1152
1350
513

query I rowsort
SELECT ALL + - col0 * + cor0.col0 AS col2 FROM tab2 AS cor0
----
-49
-6084
-6241

query I rowsort
SELECT DISTINCT + 1 FROM tab0 AS cor0
----
1

query I rowsort
SELECT + + 5 FROM tab2 AS cor0
----
5
5
5

query I rowsort
SELECT + 18 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to b95bafa733666df39c5d3f94760d010f

query I rowsort
SELECT + 43 + cor0.col0 * + col2 * col1 AS col0 FROM tab1 AS cor0
----
36523
4255
99883

query I rowsort
SELECT ALL 59 * + ( - col1 ) FROM tab2
----
-1003
-1829
-3481

query I rowsort
SELECT ALL + - col1 * + col0 + ( - 64 ) * col2 * ( col1 ) FROM tab2 cor0
----
-102778
-42687
-53785

query I rowsort
SELECT DISTINCT + + cor0.col2 + + col2 - + col2 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT DISTINCT + 44 AS col1 FROM tab2
----
44

query I rowsort
SELECT DISTINCT - col2 * ( col1 ) + col2 AS col1 FROM tab1
----
-1152
-1350
-513

query I rowsort
SELECT ALL + 17 + - col1 AS col2 FROM tab1
----
-9
4
7

onlyif mysql # use DIV operator for integer division
query I rowsort label-6343
SELECT ALL - col1 DIV - ( col0 ) + 72 AS col0 FROM tab0
----
73
74
75

skipif mysql # not compatible
query I rowsort label-6343
SELECT ALL - col1 / - ( col0 ) + 72 AS col0 FROM tab0
----
73
74
75

onlyif mysql # use DIV operator for integer division
query I rowsort label-6344
SELECT ALL col0 DIV col2 + + 19 + ( col2 ) FROM tab0 AS cor0
----
102
52
55

skipif mysql # not compatible
query I rowsort label-6344
SELECT ALL col0 / col2 + + 19 + ( col2 ) FROM tab0 AS cor0
----
102
52
55

query I rowsort
SELECT ALL 33 + - col2 AS col0 FROM tab2 cor0
----
-5
6
7

query I rowsort
SELECT + cor0.col1 * col2 AS col0 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT ALL col2 + + cor0.col1 * + 47 + col0 FROM tab1 AS cor0
----
1279
591
787

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + col0 * col1 col0 FROM tab0 AS cor0
----
2031
3394
8017

query I rowsort
SELECT ALL - 19 * col0 + - col2 AS col0 FROM tab0 AS cor0
----
-1773
-489
-666

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col0 col0 FROM tab1 AS cor0
----
-3
-64
-80

query I rowsort
SELECT 89 FROM tab2, tab2 AS cor0
----
9 values hashing to 5c8428e9f1e7de3d09cb0814b4cc1743

query I rowsort
SELECT col0 + + 75 * - 46 AS col2 FROM tab2 AS cor0
----
-3371
-3372
-3443

query I rowsort
SELECT col1 * 4 FROM tab1 AS cor0
----
104
40
52

query I rowsort
SELECT + - col0 * + col1 * + col2 - col0 FROM tab2 AS cor0
----
-119730
-51113
-5866

query I rowsort
SELECT + cor0.col1 * - ( + col2 ) FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT + col0 + 37 * - col1 AS col2 FROM tab2 AS cor0
----
-1140
-2105
-550

query I rowsort
SELECT + + col1 * + col2 AS col0 FROM tab1 cor0
----
1248
1404
570

onlyif mysql # use DIV operator for integer division
query I rowsort label-6358
SELECT - cor0.col0 DIV + 12 + - col1 FROM tab1 AS cor0
----
-15
-19
-26

skipif mysql # not compatible
query I rowsort label-6358
SELECT - cor0.col0 / + 12 + - col1 FROM tab1 AS cor0
----
-15
-19
-26

query I rowsort
SELECT + - 74 * ( - col2 ) + col2 + - cor0.col1 FROM tab0 cor0
----
-22
2389
6059

onlyif mysql # use DIV operator for integer division
query I rowsort label-6360
SELECT + 70 DIV cor0.col0 + col1 AS col0 FROM tab0 AS cor0
----
88
91
99

skipif mysql # not compatible
query I rowsort label-6360
SELECT + 70 / cor0.col0 + col1 AS col0 FROM tab0 AS cor0
----
88
91
99

query I rowsort
SELECT 38 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to afaddad0a4e3a1683a1c8cbe6eb522a7

query I rowsort
SELECT ALL + 53 * cor0.col1 FROM tab2 AS cor0
----
1643
3127
901

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + + cor0.col1 col0 FROM tab2 AS cor0
----
118
34
62

query I rowsort
SELECT ALL col2 * + 93 AS col0 FROM tab1 cor0
----
5022
5301
8928

query I rowsort
SELECT - + 58 + col1 FROM tab2 AS cor0
----
-27
-41
1

query I rowsort
SELECT DISTINCT - col2 * - col0 + col0 FROM tab2 AS cor0
----
196
2106
3081

query I rowsort
SELECT + ( cor0.col2 ) + + col1 + ( + 57 * - col2 ) FROM tab0 AS cor0
----
-1762
-4501
41

query I rowsort
SELECT + 5 + + cor0.col0 * + col1 AS col2 FROM tab2 AS cor0
----
1348
222
4607

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6369
SELECT DISTINCT + CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6369
SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col0 * col1 * - col1 + + col0 col0 FROM tab2 AS cor0
----
-22752
-271440
-6720

query I rowsort
SELECT ALL + 43 AS col1 FROM tab0 AS cor0
----
43
43
43

query I rowsort
SELECT - 5 + + col1 + col1 * + ( col2 * col1 ) FROM tab0 AS cor0
----
244149
679128
9501

query I rowsort
SELECT - cor0.col2 + + col0 * + col2 + + cor0.col2 AS col1 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT ALL - + col2 * 10 FROM tab2 AS cor0
----
-260
-270
-380

query I rowsort
SELECT DISTINCT 7 + col1 * col2 AS col0 FROM tab1 AS cor0
----
1255
1411
577

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6376
SELECT ALL + CAST( - col2 AS SIGNED ) * - col1 AS col0 FROM tab1 AS cor0
----
1248
1404
570

skipif mysql # not compatible
query I rowsort label-6376
SELECT ALL + CAST ( - col2 AS INTEGER ) * - col1 AS col0 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT + 97 * - col0 * + col1 AS col2 FROM tab1 cor0
----
-100880
-62080
-7566

query I rowsort
SELECT - + 8 + + cor0.col2 + - col1 FROM tab1 AS cor0
----
20
39
75

query I rowsort
SELECT DISTINCT - ( col0 ) FROM tab0 cor0
----
-24
-35
-89

query I rowsort
SELECT DISTINCT 61 * ( - col0 ) AS col1 FROM tab1 AS cor0
----
-183
-3904
-4880

query I rowsort
SELECT ALL - + col0 + + col1 FROM tab1 cor0
----
-54
-67
23

query I rowsort
SELECT - 11 + col0 FROM tab0 AS cor0
----
13
24
78

query I rowsort
SELECT DISTINCT - 26 * + ( + col2 ) AS col0 FROM tab2 AS cor0
----
-676
-702
-988

query I rowsort
SELECT - 20 * + col1 + - col2 * col1 + col1 AS col1 FROM tab1 AS cor0
----
-1495
-1898
-760

query I rowsort
SELECT ALL + col0 * 2 FROM tab0 cor0
----
178
48
70

query I rowsort
SELECT + col1 + col1 + 7 FROM tab0 AS cor0
----
179
189
201

query I rowsort
SELECT ALL - - cor0.col1 * - col0 FROM tab1 AS cor0
----
-1040
-640
-78

onlyif mysql # use DIV operator for integer division
query I rowsort label-6388
SELECT DISTINCT + - col0 * cor0.col1 DIV - 15 FROM tab2 AS cor0
----
14
306
89

skipif mysql # not compatible
query I rowsort label-6388
SELECT DISTINCT + - col0 * cor0.col1 / - 15 FROM tab2 AS cor0
----
14
306
89

query I rowsort
SELECT 76 + - col1 + + col2 AS col0 FROM tab2 AS cor0
----
43
72
97

query I rowsort
SELECT DISTINCT - col0 * col1 + tab0.col0 FROM tab0
----
-2040
-3360
-8010

query I rowsort
SELECT DISTINCT col0 + cor0.col2 FROM tab2 cor0
----
104
117
34

query I rowsort
SELECT ALL col2 * + col2 * + col2 AS col2 FROM tab0 AS cor0
----
1
35937
551368

query I rowsort
SELECT DISTINCT cor0.col1 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
10
13
26

query I rowsort
SELECT ALL + col1 + + 16 * col0 * - col2 FROM tab1 AS cor0
----
-122867
-2566
-58358

query I rowsort
SELECT col0 - + col2 FROM tab0 cor0
----
-9
34
7

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6396
SELECT DISTINCT + col0 + + CAST( col2 AS SIGNED ) * + col2 col2 FROM tab1 AS cor0
----
2919
3313
9296

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6396
SELECT DISTINCT + col0 + + CAST ( col2 AS INTEGER ) * + col2 col2 FROM tab1 AS cor0
----
2919
3313
9296

onlyif mysql # use DIV operator for integer division
query I rowsort label-6397
SELECT ALL + col2 DIV + col1 AS col2 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6397
SELECT ALL + col2 / + col1 AS col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT + - col1 + ( + col0 ) FROM tab1 AS cor0
----
-23
54
67

query I rowsort
SELECT - col0 + - col0 - - 93 AS col0 FROM tab1
----
-35
-67
87

query I rowsort
SELECT DISTINCT tab0.col0 * - 65 - tab0.col1 AS col1 FROM tab0
----
-1646
-2372
-5876

query I rowsort
SELECT DISTINCT col1 + + ( + col2 ) * + col2 * 88 AS col1 FROM tab2
----
127089
59547
64183

query I rowsort
SELECT col1 + 64 AS col1 FROM tab0
----
150
155
161

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6403
SELECT col2 * + CAST( NULL AS SIGNED ) + + tab1.col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6403
SELECT col2 * + CAST ( NULL AS INTEGER ) + + tab1.col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 7 FROM tab2, tab2 AS cor0
----
9 values hashing to 3362c0cb2b2c663037159d0699d46b76

query I rowsort
SELECT DISTINCT - col2 + + 5 * + col1 - + tab2.col2 FROM tab2
----
101
243
9

onlyif mysql # use DIV operator for integer division
query I rowsort label-6406
SELECT + col0 + col0 * col2 DIV col0 FROM tab1 AS cor0
----
121
176
57

skipif mysql # not compatible
query I rowsort label-6406
SELECT + col0 + col0 * col2 / col0 FROM tab1 AS cor0
----
121
176
57

query I rowsort
SELECT col0 * 44 FROM tab0 cor0
----
1056
1540
3916

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6408
SELECT ALL ( - cor0.col2 ) + - CAST( NULL AS SIGNED ) FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-6408
SELECT ALL ( - cor0.col2 ) + - CAST ( NULL AS INTEGER ) FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT DISTINCT 77 + col2 FROM tab1
----
131
134
173

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6410
SELECT ALL + col1 * col1 + + CAST( NULL AS SIGNED ) AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6410
SELECT ALL + col1 * col1 + + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( cor0.col0 ) + - ( 8 ) * col2 col1 FROM tab0 AS cor0
----
-240
-567
27

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 87 + col0 - cor0.col0 * - 26 * col2 col1 FROM tab2 AS cor0
----
4834
52719
78044

query I rowsort
SELECT col1 * + col0 - col1 AS col1 FROM tab2 AS cor0
----
1326
186
4543

query I rowsort
SELECT DISTINCT col2 * cor0.col1 * ( + 25 ) - + col0 AS col1 FROM tab0 AS cor0
----
186461
2390
70926

query I rowsort
SELECT + - ( - col2 ) + - col2 * - col2 * - col1 AS col1 FROM tab0 AS cor0
----
-611802
-93621
-96

query I rowsort
SELECT DISTINCT + col2 * + cor0.col2 - col2 AS col2 FROM tab2 AS cor0
----
1406
650
702

query I rowsort
SELECT cor1.col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to c61d27a0022e6d022371dc58819ab272

onlyif mysql # use DIV operator for integer division
query I rowsort label-6418
SELECT DISTINCT - col0 DIV - col1 AS col2 FROM tab2 AS cor0
----
0
1
4

skipif mysql # not compatible
query I rowsort label-6418
SELECT DISTINCT - col0 / - col1 AS col2 FROM tab2 AS cor0
----
0
1
4

query I rowsort
SELECT + col0 + col0 * + col0 FROM tab1 AS cor0
----
12
4160
6480

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6420
SELECT cor0.col1 * CAST( col1 AS SIGNED ) + col0 AS col2 FROM tab2 AS cor0
----
3559
368
968

skipif mysql # not compatible
query I rowsort label-6420
SELECT cor0.col1 * CAST ( col1 AS INTEGER ) + col0 AS col2 FROM tab2 AS cor0
----
3559
368
968

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - cor0.col2 + + col0 col1 FROM tab0 AS cor0
----
-7209
-768
0

query I rowsort
SELECT - ( col2 ) FROM tab2 cor0
----
-26
-27
-38

query I rowsort
SELECT DISTINCT - ( col2 ) + col1 FROM tab2 AS cor0
----
-21
33
4

query I rowsort
SELECT - 34 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 40442a74794ded4c78101eefe525a5bb

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * - col2 col0 FROM tab0
----
-2838
-7462
-97

query I rowsort
SELECT DISTINCT 9 AS col1 FROM tab1, tab0 cor0
----
9

query I rowsort
SELECT - 21 AS col1 FROM tab1 AS cor0
----
-21
-21
-21

onlyif mysql # use DIV operator for integer division
query I rowsort label-6428
SELECT col2 DIV cor0.col1 AS col0 FROM tab2 AS cor0
----
0
0
2

skipif mysql # not compatible
query I rowsort label-6428
SELECT col2 / cor0.col1 AS col0 FROM tab2 AS cor0
----
0
0
2

query I rowsort
SELECT DISTINCT col0 + - 19 FROM tab2 AS cor0
----
-12
59
60

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + col0 ) col2 FROM tab1 AS cor0
----
3
64
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 35 col2 FROM tab2 AS cor0
----
35

query I rowsort
SELECT col2 * cor0.col2 AS col1 FROM tab1 AS cor0
----
2916
3249
9216

query I rowsort
SELECT + col2 + + cor0.col2 * ( 71 ) FROM tab0 AS cor0
----
2376
5904
72

onlyif mysql # use DIV operator for integer division
query I rowsort label-6434
SELECT - + cor0.col0 DIV cor0.col1 FROM tab1 AS cor0
----
-6
-6
0

skipif mysql # not compatible
query I rowsort label-6434
SELECT - + cor0.col0 / cor0.col1 FROM tab1 AS cor0
----
-6
-6
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-6435
SELECT ALL - col1 DIV - col1 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6435
SELECT ALL - col1 / - col1 FROM tab0 AS cor0
----
1
1
1

query I rowsort
SELECT + ( - col1 ) - + 22 AS col0 FROM tab2 AS cor0
----
-39
-53
-81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col2 * + col2 + + 21 col2 FROM tab0 AS cor0
----
1110
22
6745

query I rowsort
SELECT DISTINCT - - col2 * col1 AS col1 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT ALL + 83 AS col2 FROM tab2 AS cor0
----
83
83
83

query I rowsort
SELECT - + 54 AS col1 FROM tab2 AS cor0
----
-54
-54
-54

query I rowsort
SELECT 89 * - col2 + - col0 * - tab2.col2 + col2 AS col1 FROM tab2
----
-2187
-260
-342

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + 23 * col0 col1 FROM tab2
----
1834
1853
192

onlyif mysql # use DIV operator for integer division
query I rowsort label-6443
SELECT DISTINCT col0 + 87 * col2 DIV - ( tab0.col1 ) - col0 * 1 FROM tab0
----
-33
-78
0

skipif mysql # not compatible
query I rowsort label-6443
SELECT DISTINCT col0 + 87 * col2 / - ( tab0.col1 ) - col0 * 1 FROM tab0
----
-33
-78
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + + col1 col1 FROM tab0
----
119
173
98

query I rowsort
SELECT DISTINCT + 37 + + col0 * + col2 FROM tab0
----
72
7335
829

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab1.col0 + col0 col1 FROM tab1
----
128
160
6

query I rowsort
SELECT 80 * 22 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 6ceb7044e360d2a7f5d8ebc465592a45

query IIIIIIIIIIII rowsort
SELECT * FROM tab2, tab1 AS cor0, tab1 cor1, tab2 AS cor2
----
972 values hashing to 01a5931cccc3dad8792a1bc6df09c614

query I rowsort
SELECT + 28 + cor0.col2 - + col2 FROM tab2 AS cor0
----
28
28
28

query I rowsort
SELECT - col1 * + col2 + + ( 68 ) FROM tab2 AS cor0
----
-1466
-578
-769

query I rowsort
SELECT ALL - 6 * - col1 AS col0 FROM tab1
----
156
60
78

query I rowsort
SELECT ALL - tab1.col2 AS col0 FROM tab1, tab2, tab2 AS cor0
----
27 values hashing to 44fdcd7cd603352d4d127811d164cc1e

onlyif mysql # use DIV operator for integer division
query I rowsort label-6453
SELECT ALL col1 DIV + col0 FROM tab2
----
0
0
4

skipif mysql # not compatible
query I rowsort label-6453
SELECT ALL col1 / + col0 FROM tab2
----
0
0
4

onlyif mysql # use DIV operator for integer division
query I rowsort label-6454
SELECT ALL col0 DIV + tab0.col1 AS col0 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6454
SELECT ALL col0 / + tab0.col1 AS col0 FROM tab0
----
0
0
0

query I rowsort
SELECT DISTINCT + tab2.col2 * col1 AS col0 FROM tab2
----
1534
646
837

query I rowsort
SELECT col1 - - 0 FROM tab1 AS cor0
----
10
13
26

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6457
SELECT DISTINCT - + cor0.col0 * - CAST( + col1 * col1 AS SIGNED ) FROM tab2 AS cor0
----
22831
271518
6727

skipif mysql # not compatible
query I rowsort label-6457
SELECT DISTINCT - + cor0.col0 * - CAST ( + col1 * col1 AS INTEGER ) FROM tab2 AS cor0
----
22831
271518
6727

query I rowsort
SELECT DISTINCT + - col2 * - 70 * - 4 AS col0 FROM tab1 AS cor0
----
-15120
-15960
-26880

query I rowsort
SELECT - col2 + + 66 FROM tab2 AS cor0
----
28
39
40

query I rowsort
SELECT ALL - col2 * - cor0.col2 FROM tab1 AS cor0
----
2916
3249
9216

query I rowsort
SELECT ALL - - cor0.col0 * col0 + + col2 AS col2 FROM tab2 AS cor0
----
6110
6279
76

query I rowsort
SELECT tab2.col2 * cor0.col1 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to ae9e2bb55fd656eb6c7fb22bc2bb0f90

query I rowsort
SELECT + tab1.col1 * col0 FROM tab1
----
1040
640
78

onlyif mysql # use DIV operator for integer division
query I rowsort label-6464
SELECT + 90 * col1 DIV - tab2.col1 AS col0 FROM tab2
----
-90
-90
-90

skipif mysql # not compatible
query I rowsort label-6464
SELECT + 90 * col1 / - tab2.col1 AS col0 FROM tab2
----
-90
-90
-90

query I rowsort
SELECT 65 * col0 FROM tab1
----
195
4160
5200

query I rowsort
SELECT DISTINCT - col0 * - col0 AS col2 FROM tab2
----
49
6084
6241

query I rowsort
SELECT DISTINCT + 38 * + tab1.col0 AS col2 FROM tab1, tab0, tab0 AS cor0
----
114
2432
3040

query I rowsort
SELECT 22 * 22 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 59fc990d7013bea2450e8bc70c6adee8

query I rowsort
SELECT + col1 + - col0 AS col0 FROM tab0
----
2
62
62

query I rowsort
SELECT - 38 AS col0 FROM tab2 AS cor0
----
-38
-38
-38

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6471
SELECT CAST( NULL AS SIGNED ) AS col2 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6471
SELECT CAST ( NULL AS INTEGER ) AS col2 FROM tab0 cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 45 col2 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 14cec871edc37b5056cda01c8331fdca

query I rowsort
SELECT - 22 AS col2 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 647e567609c5ada1d3454d2102819bfe

query I rowsort
SELECT DISTINCT + ( + tab1.col2 ) FROM tab1, tab2 AS cor0, tab2 cor1
----
54
57
96

query I rowsort
SELECT ALL + + cor0.col0 * 5 FROM tab1, tab0, tab1 cor0
----
27 values hashing to 8d94a97ae4d14d03ffcaa602d820bc90

query I rowsort
SELECT ( col1 + col2 * + ( 48 ) ) AS col1 FROM tab1
----
2618
2746
4621

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab2 cor0, tab1, tab0 AS cor1
----
972 values hashing to 67c5300bc5cba0be4f54a444dc6f05b9

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab2 cor0, tab0, tab0 cor1
----
972 values hashing to 3a31dab513390ca6bd05c71a3d9c50f0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6479
SELECT + + CAST( NULL AS SIGNED ) * - col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6479
SELECT + + CAST ( NULL AS INTEGER ) * - col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - + ( - col0 ) AS col2 FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT ALL - cor0.col2 + - cor0.col2 * col1 * + ( + ( - col2 ) * 10 + + col1 ) AS col2 FROM tab1 cor0
----
1181760
319143
721602

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6482
SELECT DISTINCT + - 87 * cor0.col2 - cor0.col1 * - ( col2 + + col1 ) * CAST( NULL AS SIGNED ) col2 FROM tab1 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6482
SELECT DISTINCT + - 87 * cor0.col2 - cor0.col1 * - ( col2 + + col1 ) * CAST ( NULL AS INTEGER ) col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT - ( 26 ) * + col0 AS col1 FROM tab2 AS cor0
----
-182
-2028
-2054

query I rowsort
SELECT DISTINCT 75 * ( col2 ) * + 18 FROM tab0 AS cor0
----
110700
1350
44550

query I rowsort
SELECT ALL + + col1 * - 56 + + col0 FROM tab2 cor0
----
-1729
-3226
-873

onlyif mysql # use DIV operator for integer division
query I rowsort label-6486
SELECT DISTINCT - col0 DIV CAST( col0 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-6486
SELECT DISTINCT - col0 / CAST ( col0 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-1

query I rowsort
SELECT ALL - cor0.col2 + + ( col1 * + col0 ) AS col2 FROM tab0 AS cor0
----
2031
3394
8017

query I rowsort
SELECT + col2 * - col0 + - 83 AS col2 FROM tab2 AS cor0
----
-2111
-272
-3085

query I rowsort
SELECT DISTINCT + col2 - - ( + col1 ) FROM tab0 AS cor0
----
119
173
98

query I rowsort
SELECT ALL - + col0 * - col0 + 82 FROM tab2 cor0
----
131
6166
6323

query I rowsort
SELECT - col0 + - cor0.col2 FROM tab1 AS cor0
----
-121
-176
-57

onlyif mysql # use DIV operator for integer division
query I rowsort label-6492
SELECT DISTINCT + col1 + + col0 DIV - cor0.col2 AS col2 FROM tab0 AS cor0
----
62
86
90

skipif mysql # not compatible
query I rowsort label-6492
SELECT DISTINCT + col1 + + col0 / - cor0.col2 AS col2 FROM tab0 AS cor0
----
62
86
90

query I rowsort
SELECT ALL col2 + - 72 FROM tab0 AS cor0
----
-39
-71
10

query I rowsort
SELECT col2 - + col2 * col2 FROM tab0
----
-1056
-6642
0

query I rowsort
SELECT 54 * + col0 AS col2 FROM tab2
----
378
4212
4266

query I rowsort
SELECT - ( col2 ) * - 39 FROM tab0
----
1287
3198
39

query I rowsort
SELECT ALL 11 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to f4d199584b44732f1a897e6691b4ea00

onlyif mysql # use DIV operator for integer division
query I rowsort label-6498
SELECT col0 DIV + col0 + tab0.col0 FROM tab0
----
25
36
90

skipif mysql # not compatible
query I rowsort label-6498
SELECT col0 / + col0 + tab0.col0 FROM tab0
----
25
36
90

query I rowsort
SELECT cor0.col1 * cor1.col2 * cor0.col2 - - 72 * cor1.col1 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 67c5843f65c3592d5e5dc9f01543bf4b

query I rowsort
SELECT DISTINCT col0 * - ( + 92 * col0 ) FROM tab1
----
-376832
-588800
-828

query I rowsort
SELECT + 4 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0, tab2 AS cor1
----
27 values hashing to 730dff78e83112374961ea711f98ebaa

query I rowsort
SELECT + col1 * col0 + col2 * cor0.col1 FROM tab1 AS cor0
----
1210
1482
2288

query I rowsort
SELECT col0 + ( col0 ) FROM tab0 AS cor0
----
178
48
70

query I rowsort
SELECT ALL col1 + col0 + col2 * + col1 FROM tab0
----
229
2948
7642

onlyif mysql # use DIV operator for integer division
query I rowsort label-6505
SELECT + col1 DIV 81 AS col2 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6505
SELECT + col1 / 81 AS col2 FROM tab2 cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-6506
SELECT - - col1 DIV cor0.col1 AS col1 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6506
SELECT - - col1 / cor0.col1 AS col1 FROM tab0 AS cor0
----
1
1
1

query I rowsort
SELECT DISTINCT - tab1.col2 * + col1 FROM tab1
----
-1248
-1404
-570

query I rowsort
SELECT tab1.col1 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 80 + - col0 col1 FROM tab2 AS cor0
----
1
2
73

query I rowsort
SELECT col2 * 74 AS col0 FROM tab1 cor0
----
3996
4218
7104

query I rowsort
SELECT 27 FROM tab1, tab1 AS cor0
----
9 values hashing to 701bf12d86392cb1585d9e4f3c72e9a8

query I rowsort
SELECT - - 26 * - cor0.col1 AS col2 FROM tab0 AS cor0
----
-2236
-2366
-2522

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6513
SELECT ALL + col0 + col0 * + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6513
SELECT ALL + col0 + col0 * + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - 89 * - col0 + ( 96 ) FROM tab0 AS cor0
----
2232
3211
8017

query I rowsort
SELECT ALL 3 FROM tab2 AS cor0
----
3
3
3

query I rowsort
SELECT DISTINCT col2 * + col0 * - col2 + col1 AS col1 FROM tab0 AS cor0
----
-26050
-598345
62

query I rowsort
SELECT DISTINCT 21 FROM tab0, tab2 AS cor0
----
21

query I rowsort
SELECT ALL col2 + + col0 AS col1 FROM tab2
----
104
117
34

query I rowsort
SELECT DISTINCT + 46 + + col2 * - col0 AS col2 FROM tab0
----
-7252
-746
11

query I rowsort
SELECT ALL 28 * col1 FROM tab0 AS cor0
----
2408
2548
2716

query I rowsort
SELECT ALL - 77 AS col0 FROM tab2 AS cor0
----
-77
-77
-77

query I rowsort
SELECT + - col0 * cor0.col2 + + ( col1 ) * + col1 - 93 * cor0.col0 FROM tab2 AS cor0
----
-10060
-5801
121

query I rowsort
SELECT ALL - 13 * col2 AS col0 FROM tab1 AS cor0
----
-1248
-702
-741

query I rowsort
SELECT DISTINCT - col0 * + col0 * - ( + col2 ) FROM tab0 AS cor0
----
1225
19008
649522

query I rowsort
SELECT + - col0 + + cor0.col0 - + col0 FROM tab1 AS cor0
----
-3
-64
-80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6526
SELECT DISTINCT + col1 + col1 * - CAST( + col0 AS SIGNED ) col0 FROM tab2 AS cor0
----
-1326
-186
-4543

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6526
SELECT DISTINCT + col1 + col1 * - CAST ( + col0 AS INTEGER ) col0 FROM tab2 AS cor0
----
-1326
-186
-4543

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + + col1 col2 FROM tab1 AS cor0
----
-54
-67
23

query I rowsort
SELECT DISTINCT + + col1 * cor0.col0 AS col1 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT col1 * cor0.col1 AS col1 FROM tab2 AS cor0
----
289
3481
961

query I rowsort
SELECT DISTINCT + col2 + + col2 * + col2 AS col0 FROM tab2 AS cor0
----
1482
702
756

query I rowsort
SELECT DISTINCT + + col1 * + col2 AS col2 FROM tab1 AS cor0
----
1248
1404
570

onlyif mysql # use DIV operator for integer division
query I rowsort label-6532
SELECT ALL - col2 DIV col1 col2 FROM tab2 cor0
----
-2
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6532
SELECT ALL - col2 / col1 col2 FROM tab2 cor0
----
-2
0
0

query I rowsort
SELECT + col0 * + col0 + - 89 * - cor0.col0 FROM tab2 AS cor0
----
13026
13272
672

query I rowsort
SELECT DISTINCT + + cor0.col1 + col0 * col0 FROM tab0 AS cor0
----
1322
662
8012

query I rowsort
SELECT DISTINCT cor0.col2 * col1 * col0 FROM tab2 AS cor0
----
119652
51034
5859

query I rowsort
SELECT DISTINCT col1 + - 86 * col1 * col2 AS col1 FROM tab1 AS cor0
----
-107315
-120718
-49010

query I rowsort
SELECT DISTINCT + col1 * - 93 * + col2 + col0 FROM tab2 cor0
----
-142584
-59999
-77834

query I rowsort
SELECT ALL ( col0 ) + cor0.col1 AS col0 FROM tab1 AS cor0
----
29
74
93

query I rowsort
SELECT DISTINCT - col0 * col0 + + col0 * cor0.col1 * + col0 AS col2 FROM tab0 AS cor0
----
117600
48960
712890

query I rowsort
SELECT DISTINCT 54 * - col0 AS col0 FROM tab0
----
-1296
-1890
-4806

onlyif mysql # use DIV operator for integer division
query I rowsort label-6541
SELECT - + col0 + col0 DIV col1 AS col1 FROM tab1 AS cor0
----
-3
-58
-74

skipif mysql # not compatible
query I rowsort label-6541
SELECT - + col0 + col0 / col1 AS col1 FROM tab1 AS cor0
----
-3
-58
-74

onlyif mysql # use DIV operator for integer division
query I rowsort label-6542
SELECT + 73 DIV + ( - cor0.col2 ) col1 FROM tab0 AS cor0
----
-2
-73
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6542
SELECT + 73 / + ( - cor0.col2 ) col1 FROM tab0 AS cor0
----
-2
-73
0

query I rowsort
SELECT + cor0.col2 * 81 AS col1 FROM tab0 AS cor0
----
2673
6642
81

query I rowsort
SELECT DISTINCT - 22 + - 88 FROM tab1 AS cor0
----
-110

query I rowsort
SELECT - col1 + + col0 * col2 * - col1 AS col1 FROM tab0 AS cor0
----
-3492
-664209
-68198

query I rowsort
SELECT DISTINCT cor0.col1 + - col1 * + col0 AS col0 FROM tab1 AS cor0
----
-1027
-52
-630

query I rowsort
SELECT DISTINCT 30 * col1 + + col1 AS col2 FROM tab0 AS cor0
----
2666
2821
3007

query I rowsort
SELECT ALL + tab1.col1 * + col0 * col1 FROM tab1
----
13520
2028
6400

query I rowsort
SELECT + + 69 * + col0 FROM tab2 AS cor0
----
483
5382
5451

query I rowsort
SELECT ALL - 19 + + col2 FROM tab1 AS cor0
----
35
38
77

query I rowsort
SELECT DISTINCT - col0 * col1 * col0 FROM tab2 cor0
----
-106097
-1519
-358956

query I rowsort
SELECT + cor0.col2 * + col1 FROM tab1 cor0
----
1248
1404
570

query I rowsort
SELECT DISTINCT + col2 * + col1 FROM tab0 cor0
----
2838
7462
97

query I rowsort
SELECT + - 66 FROM tab2 AS cor0
----
-66
-66
-66

query I rowsort
SELECT + ( + tab0.col1 ) - - col2 * - col1 FROM tab0
----
-2752
-7371
0

query I rowsort
SELECT + col2 * + col0 - col0 FROM tab0
----
0
7209
768

query I rowsort
SELECT 98 + col2 FROM tab2
----
124
125
136

query I rowsort
SELECT - col0 + + 47 FROM tab0
----
-42
12
23

query I rowsort
SELECT ALL col1 + ( col1 * + col2 ) FROM tab0
----
194
2924
7553

query I rowsort
SELECT + col1 * + cor0.col0 + col2 AS col1 FROM tab1 AS cor0
----
1136
132
697

query I rowsort
SELECT + - col1 * col2 + + cor0.col0 AS col2 FROM tab0 AS cor0
----
-2814
-62
-7373

query I rowsort
SELECT ALL col2 * + 91 FROM tab0
----
3003
7462
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - tab2.col0 col0 FROM tab2
----
1343
217
4602

query I rowsort
SELECT ALL 5 AS col2 FROM tab0
----
5
5
5

query I rowsort
SELECT tab2.col0 * + tab2.col1 AS col0 FROM tab2
----
1343
217
4602

query I rowsort
SELECT ALL + - 24 AS col2 FROM tab0 cor0
----
-24
-24
-24

query I rowsort
SELECT col0 + col0 * col1 AS col1 FROM tab1 AS cor0
----
1120
704
81

query I rowsort
SELECT DISTINCT - col2 * col1 AS col0 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT + - cor0.col2 * 32 FROM tab2 AS cor0
----
-1216
-832
-864

query I rowsort
SELECT ALL + 25 * - 19 * - col1 FROM tab1 AS cor0
----
12350
4750
6175

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6571
SELECT col0 * col0 + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6571
SELECT col0 * col0 + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 75 FROM tab1
----
75

query I rowsort
SELECT DISTINCT + ( - col0 ) - ( col1 ) * cor0.col0 AS col0 FROM tab2 cor0
----
-1422
-224
-4680

query I rowsort
SELECT 97 FROM tab1 AS cor0
----
97
97
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col1 col1 FROM tab1, tab0 AS cor0
----
-86
-91
-97

query I rowsort
SELECT DISTINCT + - 49 * col2 + - ( + ( col0 ) ) * col1 AS col1 FROM tab0 AS cor0
----
-12117
-3444
-3681

onlyif mysql # use DIV operator for integer division
query I rowsort label-6577
SELECT DISTINCT 3 * col0 DIV col1 AS col2 FROM tab1
----
0
18
19

skipif mysql # not compatible
query I rowsort label-6577
SELECT DISTINCT 3 * col0 / col1 AS col2 FROM tab1
----
0
18
19

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 39 * col2 + col1 col1 FROM tab2 AS cor0
----
1073
1084
1499

query I rowsort
SELECT ALL - col2 + - col0 * + col0 AS col2 FROM tab1 AS cor0
----
-4153
-63
-6496

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6580
SELECT DISTINCT - col0 * + CAST( - col2 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
35
7298
792

skipif mysql # not compatible
query I rowsort label-6580
SELECT DISTINCT - col0 * + CAST ( - col2 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT ALL cor0.col2 + - col0 FROM tab2 AS cor0
----
-41
-52
20

query I rowsort
SELECT ALL - - col0 * cor0.col0 AS col2 FROM tab0 AS cor0
----
1225
576
7921

query I rowsort
SELECT ALL - col2 * col2 + cor0.col0 AS col1 FROM tab0 AS cor0
----
-1065
-6635
34

query I rowsort
SELECT DISTINCT - col0 - col2 AS col0 FROM tab1 AS cor0
----
-121
-176
-57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col0 * ( col1 ) col1 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT ALL - + col1 * col1 + cor0.col0 AS col0 FROM tab2 cor0
----
-210
-3403
-954

query I rowsort
SELECT ALL - col0 * - ( + col2 * col0 ) AS col0 FROM tab2
----
1323
158184
237158

query I rowsort
SELECT DISTINCT + 71 FROM tab1, tab0 AS cor0
----
71

query I rowsort
SELECT ( + 96 ) FROM tab2, tab1 AS cor0
----
9 values hashing to 22c5141a629f0ef396738ee2c8be6303

query I rowsort
SELECT - ( - col1 ) FROM tab0 cor0
----
86
91
97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6591
SELECT - CAST( col1 AS SIGNED ) * cor0.col2 AS col1 FROM tab1 AS cor0
----
-1248
-1404
-570

skipif mysql # not compatible
query I rowsort label-6591
SELECT - CAST ( col1 AS INTEGER ) * cor0.col2 AS col1 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT 45 AS col0 FROM tab0 cor0
----
45
45
45

query I rowsort
SELECT + 46 * - 19 AS col2 FROM tab2 AS cor0
----
-874
-874
-874

query I rowsort
SELECT - cor0.col0 * - 96 AS col2 FROM tab2 AS cor0
----
672
7488
7584

query I rowsort
SELECT + col2 * 85 AS col0 FROM tab1 AS cor0
----
4590
4845
8160

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * col2 col1 FROM tab1
----
-1248
-1404
-570

query I rowsort
SELECT ALL cor1.col0 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f

query I rowsort
SELECT ALL - col2 * tab1.col0 AS col2 FROM tab1
----
-162
-3648
-7680

query I rowsort
SELECT ALL + 52 * 24 AS col1 FROM tab2 AS cor0
----
1248
1248
1248

query I rowsort
SELECT ALL + 44 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to ab2bc2b9f8baa300df7755e5980a319d

query I rowsort
SELECT + 17 FROM tab1 cor0
----
17
17
17

query I rowsort
SELECT - 14 + - col1 FROM tab1 AS cor0
----
-24
-27
-40

query I rowsort
SELECT 58 * col0 + + ( + cor0.col2 ) FROM tab0 AS cor0
----
1425
2031
5244

query I rowsort
SELECT - + col1 * col1 + + ( 92 ) FROM tab0 AS cor0
----
-7304
-8189
-9317

query I rowsort
SELECT DISTINCT + + 87 AS col1 FROM tab0 AS cor0
----
87

query I rowsort
SELECT col2 * col1 + ( 68 ) FROM tab1 AS cor0
----
1316
1472
638

query I rowsort
SELECT - 37 AS col1 FROM tab1 AS cor0
----
-37
-37
-37

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( col2 ) + col2 + + col1 * col1 col0 FROM tab1
----
100
169
676

query I rowsort
SELECT ALL - col0 * + col1 * - tab1.col0 + + 41 + + ( + col1 ) AS col2 FROM tab1
----
301
41011
83254

query I rowsort
SELECT ALL - col1 * col2 + - col2 + + ( col1 + - col2 ) * col0 AS col2 FROM tab0
----
-1599
-6743
3262

query I rowsort
SELECT DISTINCT col1 + col0 * col2 FROM tab2
----
2087
220
3019

query I rowsort
SELECT + 59 * col0 FROM tab1 AS cor0
----
177
3776
4720

query I rowsort
SELECT col1 * col1 + cor0.col1 * col0 + col2 * col1 * - col1 FROM tab1 cor0
----
-15015
-35750
-4960

query I rowsort
SELECT DISTINCT - 89 + col2 AS col2 FROM tab1 AS cor0
----
-32
-35
7

query I rowsort
SELECT col1 + + col0 * + 19 FROM tab0 AS cor0
----
1782
542
762

query I rowsort
SELECT DISTINCT cor0.col0 * 18 AS col2 FROM tab1, tab2 AS cor0
----
126
1404
1422

onlyif mysql # use DIV operator for integer division
query I rowsort label-6617
SELECT + - 54 + 46 DIV col0 AS col2 FROM tab0 AS cor0
----
-53
-53
-54

skipif mysql # not compatible
query I rowsort label-6617
SELECT + - 54 + 46 / col0 AS col2 FROM tab0 AS cor0
----
-53
-53
-54

query I rowsort
SELECT DISTINCT + col0 + 60 + + col0 FROM tab1
----
188
220
66

query I rowsort
SELECT ALL ( - col1 * col2 ) + - col0 FROM tab0
----
-132
-2862
-7551

onlyif mysql # use DIV operator for integer division
query I rowsort label-6620
SELECT ( - 98 ) - tab0.col0 DIV col0 AS col0 FROM tab0
----
-99
-99
-99

skipif mysql # not compatible
query I rowsort label-6620
SELECT ( - 98 ) - tab0.col0 / col0 AS col0 FROM tab0
----
-99
-99
-99

onlyif mysql # use DIV operator for integer division
query I rowsort label-6621
SELECT + 95 DIV 57 AS col1 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6621
SELECT + 95 / 57 AS col1 FROM tab1
----
1
1
1

query I rowsort
SELECT DISTINCT + 91 FROM tab1, tab0 AS cor0
----
91

query I rowsort
SELECT - col1 + - col0 * + col0 FROM tab0 AS cor0
----
-1322
-662
-8012

query I rowsort
SELECT ALL - - col2 * col2 AS col2 FROM tab2 AS cor0
----
1444
676
729

query I rowsort
SELECT - ( + 83 ) * col2 AS col0 FROM tab2 AS cor0
----
-2158
-2241
-3154

query I rowsort
SELECT DISTINCT + 49 AS col2 FROM tab1 AS cor0
----
49

query I rowsort
SELECT ALL + - 49 AS col2 FROM tab2 AS cor0
----
-49
-49
-49

onlyif mysql # use DIV operator for integer division
query I rowsort label-6628
SELECT CAST( + col1 AS SIGNED ) DIV + col0 FROM tab0 AS cor0
----
1
2
3

skipif mysql # not compatible
query I rowsort label-6628
SELECT CAST ( + col1 AS INTEGER ) / + col0 FROM tab0 AS cor0
----
1
2
3

query I rowsort
SELECT - + cor0.col2 + col1 * + 33 FROM tab1 AS cor0
----
273
333
804

onlyif mysql # use DIV operator for integer division
query I rowsort label-6630
SELECT DISTINCT col0 DIV + col2 AS col1 FROM tab0 AS cor0
----
0
1
35

skipif mysql # not compatible
query I rowsort label-6630
SELECT DISTINCT col0 / + col2 AS col1 FROM tab0 AS cor0
----
0
1
35

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 71 * col1 col2 FROM tab2 AS cor0
----
1207
2201
4189

query I rowsort
SELECT ALL - 21 * col0 FROM tab0 cor0
----
-1869
-504
-735

query I rowsort
SELECT + + 27 + + col0 + - ( - col2 * col2 ) AS col1 FROM tab0 AS cor0
----
1140
63
6840

query I rowsort
SELECT DISTINCT + 42 AS col1 FROM tab1
----
42

query I rowsort
SELECT ALL 88 * col1 + 57 + cor0.col2 FROM tab1 cor0
----
1297
2399
994

query I rowsort
SELECT + 9 * col0 + - cor0.col2 AS col1 FROM tab0 AS cor0
----
183
314
719

query I rowsort
SELECT DISTINCT - col0 - + col1 AS col2 FROM tab2 AS cor0
----
-137
-38
-96

query I rowsort
SELECT DISTINCT + + col0 * + col0 AS col1 FROM tab2 cor0
----
49
6084
6241

query I rowsort
SELECT + 36 + - col2 + 89 FROM tab2 AS cor0
----
87
98
99

query I rowsort
SELECT col1 + - cor0.col2 AS col0 FROM tab1 AS cor0
----
-28
-47
-83

query I rowsort
SELECT ALL + - col2 * + col1 AS col1 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT ALL ( + col0 ) + + col1 AS col0 FROM tab2 AS cor0
----
137
38
96

query I rowsort
SELECT - ( col0 ) - + col0 FROM tab2
----
-14
-156
-158

onlyif mysql # use DIV operator for integer division
query I rowsort label-6644
SELECT DISTINCT col0 DIV col2 + col2 * - col2 FROM tab1
----
-2916
-3248
-9216

skipif mysql # not compatible
query I rowsort label-6644
SELECT DISTINCT col0 / col2 + col2 * - col2 FROM tab1
----
-2916
-3248
-9216

query I rowsort
SELECT DISTINCT - col0 + + 19 AS col2 FROM tab2
----
-59
-60
12

onlyif mysql # use DIV operator for integer division
query I rowsort label-6646
SELECT - CAST( col1 AS SIGNED ) DIV col2 AS col0 FROM tab0
----
-1
-2
-97

skipif mysql # not compatible
query I rowsort label-6646
SELECT - CAST ( col1 AS INTEGER ) / col2 AS col0 FROM tab0
----
-1
-2
-97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6647
SELECT DISTINCT - 52 * tab1.col2 - col0 * - CAST( NULL AS SIGNED ) / - col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-6647
SELECT DISTINCT - 52 * tab1.col2 - col0 * - CAST ( NULL AS INTEGER ) / - col1 FROM tab1
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-6648
SELECT ALL + col2 + 67 DIV cor0.col0 AS col2 FROM tab2 AS cor0
----
26
36
38

skipif mysql # not compatible
query I rowsort label-6648
SELECT ALL + col2 + 67 / cor0.col0 AS col2 FROM tab2 AS cor0
----
26
36
38

query I rowsort
SELECT + - cor0.col2 * + 9 + - col1 FROM tab1 AS cor0
----
-512
-523
-877

query I rowsort
SELECT ALL col0 + + cor0.col1 * 94 AS col0 FROM tab1 AS cor0
----
1004
1302
2447

query I rowsort
SELECT DISTINCT + cor0.col0 + - ( ( - col1 ) ) AS col2 FROM tab2 AS cor0
----
137
38
96

query I rowsort
SELECT ALL + cor0.col1 * cor0.col1 + - col1 AS col0 FROM tab2 AS cor0
----
272
3422
930

onlyif mysql # use DIV operator for integer division
query I rowsort label-6653
SELECT col0 DIV - col0 col0 FROM tab2 AS cor0
----
-1
-1
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6653
SELECT col0 / - col0 col0 FROM tab2 AS cor0
----
-1
-1
-1

query I rowsort
SELECT - ( col2 * + col2 ) FROM tab2
----
-1444
-676
-729

query I rowsort
SELECT ALL - cor0.col0 + ( + col0 ) * col1 FROM tab1 AS cor0
----
576
75
960

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * - col1 col0 FROM tab1
----
-100
-169
-676

onlyif mysql # use DIV operator for integer division
query I rowsort label-6657
SELECT + col0 DIV - ( + cor0.col1 ) AS col0 FROM tab2 cor0
----
-1
-4
0

skipif mysql # not compatible
query I rowsort label-6657
SELECT + col0 / - ( + cor0.col1 ) AS col0 FROM tab2 cor0
----
-1
-4
0

query I rowsort
SELECT 2 + col2 AS col2 FROM tab1 AS cor0
----
56
59
98

query I rowsort
SELECT DISTINCT 16 + + 34 FROM tab2 AS cor0
----
50

query I rowsort
SELECT ALL + + col2 + col2 * + col2 FROM tab1 cor0
----
2970
3306
9312

query I rowsort
SELECT DISTINCT + col1 * - col0 * - col0 AS col2 FROM tab0
----
118825
49536
720811

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6662
SELECT ( col1 ) * + col1 + CAST( NULL AS SIGNED ) + - col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6662
SELECT ( col1 ) * + col1 + CAST ( NULL AS INTEGER ) + - col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + - col0 + - cor0.col0 * + cor0.col1 * col1 FROM tab0 AS cor0
----
-177528
-329350
-737098

query I rowsort
SELECT ALL + + col0 * col0 AS col1 FROM tab2 AS cor0
----
49
6084
6241

query I rowsort
SELECT ALL + col2 * col2 + - col1 FROM tab0 AS cor0
----
-96
1003
6633

query I rowsort
SELECT DISTINCT - - ( 13 ) * col1 FROM tab2 AS cor0
----
221
403
767

query I rowsort
SELECT - 31 + col1 FROM tab2 cor0
----
-14
0
28

query I rowsort
SELECT ALL + col0 * col1 + - col2 * 1 * 76 AS col1 FROM tab1 cor0
----
-3692
-4026
-6256

query I rowsort
SELECT DISTINCT + ( col0 ) * - col2 FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT DISTINCT - 57 * col0 + col1 FROM tab1 cor0
----
-145
-3638
-4547

query I rowsort
SELECT ALL 0 + col2 AS col2 FROM tab0 cor0
----
1
33
82

query I rowsort
SELECT ALL + cor0.col2 + - col0 * col1 AS col1 FROM tab2 AS cor0
----
-1305
-190
-4576

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6673
SELECT DISTINCT - CAST( cor0.col1 AS SIGNED ) FROM tab2 AS cor0
----
-17
-31
-59

skipif mysql # not compatible
query I rowsort label-6673
SELECT DISTINCT - CAST ( cor0.col1 AS INTEGER ) FROM tab2 AS cor0
----
-17
-31
-59

onlyif mysql # use DIV operator for integer division
query I rowsort label-6674
SELECT DISTINCT + + 18 DIV ( - col2 * - 99 + col0 * + cor0.col0 ) FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-6674
SELECT DISTINCT + + 18 / ( - col2 * - 99 + col0 * + cor0.col0 ) FROM tab2 cor0
----
0

query I rowsort
SELECT DISTINCT - 41 AS col1 FROM tab2 AS cor0
----
-41

query I rowsort
SELECT + + col2 * col0 + cor0.col1 AS col0 FROM tab1 AS cor0
----
188
3658
7693

query I rowsort
SELECT 39 * + ( + col0 ) FROM tab1 AS cor0
----
117
2496
3120

query I rowsort
SELECT + ( - tab0.col2 ) + - col2 AS col0 FROM tab0
----
-164
-2
-66

query I rowsort
SELECT ALL + - col2 + col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - - col1 + - col2 + + col0 AS col0 FROM tab0 AS cor0
----
131
77
98

query I rowsort
SELECT ALL col0 + + col0 FROM tab1 cor0
----
128
160
6

query I rowsort
SELECT ALL + - col1 * + col1 - + col0 FROM tab2 AS cor0
----
-3559
-368
-968

query I rowsort
SELECT + - 57 + cor0.col2 * + ( - 52 ) FROM tab1 AS cor0
----
-2865
-3021
-5049

query I rowsort
SELECT 88 AS col2 FROM tab0
----
88
88
88

query I rowsort
SELECT 48 * - col1 + col1 AS col0 FROM tab0 AS cor0
----
-4042
-4277
-4559

query I rowsort
SELECT ALL - col0 * 56 + + col1 - col1 * col2 FROM tab0 AS cor0
----
-12355
-1960
-4096

query I rowsort
SELECT ALL + col2 * + col0 - col0 FROM tab1 AS cor0
----
159
3584
7600

query I rowsort
SELECT ALL + cor0.col0 * + col2 + col1 AS col0 FROM tab1 cor0
----
188
3658
7693

query I rowsort
SELECT DISTINCT col2 + col1 - col1 AS col1 FROM tab2 AS cor0
----
26
27
38

query I rowsort
SELECT DISTINCT - col1 * cor0.col2 + + col2 AS col1 FROM tab0 AS cor0
----
-2805
-7380
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + col0 * + col2 * col1 col1 FROM tab1 cor0
----
36544
4215
99920

query I rowsort
SELECT DISTINCT - col1 + - ( col1 ) FROM tab0 AS cor0
----
-172
-182
-194

query I rowsort
SELECT + col0 * col2 AS col2 FROM tab2 cor0
----
189
2028
3002

query I rowsort
SELECT ALL + + col2 * col0 FROM tab1 cor0
----
162
3648
7680

query I rowsort
SELECT + + col1 * + col2 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT + - col0 + - col2 * + col1 AS col0 FROM tab0 AS cor0
----
-132
-2862
-7551

query I rowsort
SELECT DISTINCT + - 0 AS col1 FROM tab0 AS cor0
----
0

query I rowsort
SELECT ALL + cor0.col2 * col0 AS col1 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT + - col0 * + col1 FROM tab0 cor0
----
-2064
-3395
-8099

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - tab0.col0 * col1 col2 FROM tab0
----
-2064
-3395
-8099

query I rowsort
SELECT + cor0.col1 AS col0 FROM tab2 cor0
----
17
31
59

query I rowsort
SELECT - 25 AS col1 FROM tab0 AS cor0
----
-25
-25
-25

query I rowsort
SELECT + col2 * tab2.col2 + 11 AS col0 FROM tab2
----
1455
687
740

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6704
SELECT + - cor0.col0 + CAST( NULL AS DECIMAL ) * col1 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6704
SELECT + - cor0.col0 + CAST ( NULL AS REAL ) * col1 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 19 * col2 FROM tab1
----
-1026
-1083
-1824

query I rowsort
SELECT ALL 38 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to afaddad0a4e3a1683a1c8cbe6eb522a7

query I rowsort
SELECT 58 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 9ee363c6ac19cfdb8a50c7dfd5cc2b8a

query IIIIIIIIIIII rowsort
SELECT * FROM tab1, tab2 cor0, tab0 AS cor1, tab2 AS cor2
----
972 values hashing to 42e69ecdafb3c81046bc5cb4c98b1666

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6709
SELECT + 37 + - col0 * - col2 * CAST( 11 AS SIGNED ) FROM tab1
----
1819
40165
84517

skipif mysql # not compatible
query I rowsort label-6709
SELECT + 37 + - col0 * - col2 * CAST ( 11 AS INTEGER ) FROM tab1
----
1819
40165
84517

query I rowsort
SELECT - 11 * - 91 AS col1 FROM tab2
----
1001
1001
1001

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 44 + 37 col2 FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to 0a85639e0dddbffdab2cb16b027cb360

query I rowsort
SELECT DISTINCT + col0 * + 20 AS col0 FROM tab0
----
1780
480
700

query I rowsort
SELECT ALL - 23 AS col2 FROM tab1 AS cor0
----
-23
-23
-23

query I rowsort
SELECT DISTINCT 17 * 9 FROM tab2 cor0
----
153

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col1 col2 FROM tab1, tab0 AS cor0
----
-86
-91
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 46 col1 FROM tab2
----
46
46
46

query I rowsort
SELECT cor1.col0 AS col1 FROM tab2, tab0 AS cor0, tab1 AS cor1, tab0, tab0 AS cor2
----
243 values hashing to 63f734facb33901524f6f2c799118db4

onlyif mysql # use DIV operator for integer division
query I rowsort label-6718
SELECT DISTINCT + + ( col1 ) + - col0 DIV - col0 AS col0 FROM tab1 AS cor0
----
11
14
27

skipif mysql # not compatible
query I rowsort label-6718
SELECT DISTINCT + + ( col1 ) + - col0 / - col0 AS col0 FROM tab1 AS cor0
----
11
14
27

query I rowsort
SELECT ALL + col0 * + col1 + - col1 AS col1 FROM tab2 AS cor0
----
1326
186
4543

query I rowsort
SELECT - ( - col0 ) * cor0.col1 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT cor0.col1 * + col1 + col1 FROM tab1 AS cor0
----
110
182
702

query I rowsort
SELECT DISTINCT + 43 AS col2 FROM tab1, tab1 AS cor0, tab0 cor1
----
43

onlyif mysql # use DIV operator for integer division
query I rowsort label-6723
SELECT ALL + - 32 * + col1 + + col1 DIV + col2 FROM tab1 cor0
----
-320
-416
-832

skipif mysql # not compatible
query I rowsort label-6723
SELECT ALL + - 32 * + col1 + + col1 / + col2 FROM tab1 cor0
----
-320
-416
-832

query I rowsort
SELECT ALL + cor1.col0 * - 46 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 389525de351be0d16095cecadff18165

query I rowsort
SELECT + + col2 * col2 * col1 + col1 FROM tab1 AS cor0
----
119821
32500
75842

query I rowsort
SELECT col0 * col1 * 28 + - tab1.col2 FROM tab1
----
17863
2130
29024

query I rowsort
SELECT + cor0.col1 FROM tab1, tab2, tab1 AS cor0
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6728
SELECT + col1 * col1 / CAST( NULL AS DECIMAL ) + + 75 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6728
SELECT + col1 * col1 / CAST ( NULL AS REAL ) + + 75 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col0 * - col2 * col2 + 5 AS col0 FROM tab1 AS cor0
----
-207931
-737275
-8743

query I rowsort
SELECT ( + cor0.col2 ) AS col1 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT col1 * - col1 + ( + col0 ) FROM tab0 AS cor0
----
-7372
-8192
-9374

query I rowsort
SELECT 80 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 6dd5038be71dffa82f5ceba787caab91

query I rowsort
SELECT + col2 * 41 FROM tab2
----
1066
1107
1558

query I rowsort
SELECT - col0 * 45 AS col0 FROM tab1
----
-135
-2880
-3600

onlyif mysql # use DIV operator for integer division
query I rowsort label-6735
SELECT tab0.col2 * 15 DIV + col1 AS col1 FROM tab0
----
0
13
5

skipif mysql # not compatible
query I rowsort label-6735
SELECT tab0.col2 * 15 / + col1 AS col1 FROM tab0
----
0
13
5

query I rowsort
SELECT - - col1 - - 21 AS col1 FROM tab1 AS cor0
----
31
34
47

query I rowsort
SELECT 82 * + 5 AS col2 FROM tab0 AS cor0
----
410
410
410

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6738
SELECT - CAST( NULL AS SIGNED ) * + col0 + col0 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6738
SELECT - CAST ( NULL AS INTEGER ) * + col0 + col0 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 - + col0 FROM tab1 AS cor0
----
-54
-67
23

query I rowsort
SELECT - - col1 * 77 AS col0 FROM tab0 AS cor0
----
6622
7007
7469

query I rowsort
SELECT - col1 + col2 * col0 AS col0 FROM tab1 AS cor0
----
136
3638
7667

query I rowsort
SELECT + ( col0 ) * + cor0.col0 + 20 AS col1 FROM tab0 AS cor0
----
1245
596
7941

query I rowsort
SELECT ALL + col1 * 66 + col1 FROM tab1
----
1742
670
871

query I rowsort
SELECT ( - col1 ) + - col1 FROM tab1 AS cor0
----
-20
-26
-52

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6745
SELECT - CAST( NULL AS DECIMAL ) - - col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6745
SELECT - CAST ( NULL AS REAL ) - - col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort
SELECT ALL CAST ( cor0.col2 AS REAL ) * col2 FROM tab0 cor0
----
1
1089
6724

query I rowsort
SELECT - cor0.col1 + + cor0.col0 AS col0 FROM tab1 AS cor0
----
-23
54
67

query I rowsort
SELECT DISTINCT - col1 + col1 FROM tab2
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-6749
SELECT - col0 + - col0 DIV col0 + + col2 AS col0 FROM tab2
----
-42
-53
19

skipif mysql # not compatible
query I rowsort label-6749
SELECT - col0 + - col0 / col0 + + col2 AS col0 FROM tab2
----
-42
-53
19

query I rowsort
SELECT col2 * - col1 AS col1 FROM tab0
----
-2838
-7462
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-6751
SELECT col2 * + col0 + + col1 + col1 DIV col0 AS col0 FROM tab1
----
196
3658
7693

skipif mysql # not compatible
query I rowsort label-6751
SELECT col2 * + col0 + + col1 + col1 / col0 AS col0 FROM tab1
----
196
3658
7693

onlyif mysql # use DIV operator for integer division
query I rowsort label-6752
SELECT tab1.col2 DIV + col1 + tab1.col2 FROM tab1
----
103
56
62

skipif mysql # not compatible
query I rowsort label-6752
SELECT tab1.col2 / + col1 + tab1.col2 FROM tab1
----
103
56
62

query I rowsort
SELECT DISTINCT + col1 * + tab0.col1 FROM tab0
----
7396
8281
9409

query I rowsort
SELECT DISTINCT tab1.col2 * col1 AS col0 FROM tab1
----
1248
1404
570

query I rowsort
SELECT DISTINCT col1 * + col0 AS col1 FROM tab0
----
2064
3395
8099

query I rowsort
SELECT - col1 * - tab2.col1 AS col0 FROM tab2
----
289
3481
961

query I rowsort
SELECT - col1 * col1 AS col2 FROM tab1 WHERE NOT - col1 + - col2 NOT IN ( col2 )
----

query I rowsort
SELECT DISTINCT - col2 * - col2 AS col0 FROM tab2
----
1444
676
729

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * tab1.col2 col0 FROM tab1
----
1248
1404
570

query I rowsort
SELECT ALL + col2 * col2 * col1 FROM tab0
----
611884
93654
97

query III rowsort
SELECT * FROM tab1 WHERE NOT - col1 = - col1 + + col0
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL BETWEEN col2 AND NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-6763
SELECT col1 DIV - col1 + col0 * col1 FROM tab2
----
1342
216
4601

skipif mysql # not compatible
query I rowsort label-6763
SELECT col1 / - col1 + col0 * col1 FROM tab2
----
1342
216
4601

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col2 NOT BETWEEN + tab2.col0 AND NULL
----

query I rowsort
SELECT + + col1 + col1 * col1 FROM tab2 cor0
----
306
3540
992

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * col0 * col0 + col1 col0 FROM tab0 AS cor0
----
-1128
-18922
-649431

query I rowsort
SELECT DISTINCT cor0.col2 * - col0 FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT col0 * + col2 * + tab1.col0 AS col0 FROM tab1
----
233472
486
614400

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 + col0 col2 FROM tab1 AS cor0
----
121
176
57

query I rowsort
SELECT DISTINCT + cor0.col0 * cor0.col1 + - col2 FROM tab1 AS cor0
----
24
583
944

query I rowsort
SELECT - - col2 + cor0.col1 + col2 AS col1 FROM tab2 AS cor0
----
111
85
93

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col1 <> - col1 * + col1 + + col1 * col2
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-6773
SELECT ALL col1 DIV - cor0.col2 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6773
SELECT ALL col1 / - cor0.col2 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - tab1.col1 + tab1.col1 * col0 FROM tab1
----
1027
52
630

onlyif mysql # use DIV operator for integer division
query I rowsort label-6775
SELECT + col2 - col1 DIV - col2 FROM tab1
----
54
57
96

skipif mysql # not compatible
query I rowsort label-6775
SELECT + col2 - col1 / - col2 FROM tab1
----
54
57
96

query I rowsort
SELECT DISTINCT col1 + col1 AS col1 FROM tab2
----
118
34
62

query I rowsort
SELECT ALL cor0.col0 * col0 + col2 FROM tab1 AS cor0
----
4153
63
6496

query I rowsort
SELECT DISTINCT - - col2 + + ( col0 * col1 ) AS col2 FROM tab0 AS cor0
----
2097
3396
8181

query I rowsort
SELECT DISTINCT - + col1 * 72 FROM tab2 AS cor0
----
-1224
-2232
-4248

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6780
SELECT DISTINCT cor0.col0 * CAST( NULL AS SIGNED ) AS col2 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6780
SELECT DISTINCT cor0.col0 * CAST ( NULL AS INTEGER ) AS col2 FROM tab1 cor0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-6781
SELECT ALL - col0 DIV + col2 FROM tab1 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-6781
SELECT ALL - col0 / + col2 FROM tab1 AS cor0
----
-1
0
0

query I rowsort
SELECT ALL + cor0.col2 * - ( 36 ) + col2 FROM tab0 AS cor0
----
-1155
-2870
-35

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6783
SELECT - col2 * CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6783
SELECT - col2 * CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + + col2 * + col2 FROM tab1 AS cor0
----
2916
3249
9216

onlyif mysql # use DIV operator for integer division
query I rowsort label-6785
SELECT + - col1 DIV - col0 AS col2 FROM tab0 AS cor0
----
1
2
3

skipif mysql # not compatible
query I rowsort label-6785
SELECT + - col1 / - col0 AS col2 FROM tab0 AS cor0
----
1
2
3

onlyif mysql # use DIV operator for integer division
query I rowsort label-6786
SELECT + col1 DIV col1 col2 FROM tab1 AS cor0
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6786
SELECT + col1 / col1 col2 FROM tab1 AS cor0
----
1
1
1

query I rowsort
SELECT DISTINCT + cor0.col1 + col2 AS col2 FROM tab1 AS cor0
----
109
67
80

query I rowsort
SELECT - - col0 * col0 + col0 * col2 FROM tab1 AS cor0
----
14080
171
7744

query I rowsort
SELECT ALL - + col2 * 96 * - col0 + + col1 FROM tab0 AS cor0
----
3457
700699
76118

query I rowsort
SELECT + col0 + ( - col1 ) * - col2 AS col1 FROM tab2 cor0
----
1612
725
844

onlyif mysql # use DIV operator for integer division
query I rowsort label-6791
SELECT + col1 DIV - ( col0 ) + - col0 AS col0 FROM tab0
----
-27
-37
-90

skipif mysql # not compatible
query I rowsort label-6791
SELECT + col1 / - ( col0 ) + - col0 AS col0 FROM tab0
----
-27
-37
-90

query I rowsort
SELECT DISTINCT col1 * - ( col1 + col2 ) * - 3 AS col2 FROM tab0
----
28518
30702
47229

query I rowsort
SELECT ALL + cor1.col1 AS col1 FROM tab0, tab0 AS cor0, tab0 cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd

query I rowsort
SELECT - + col1 * + ( col1 + col0 ) * col1 FROM tab1 AS cor0
----
-15717
-19604
-7400

query I rowsort
SELECT DISTINCT cor1.col1 FROM tab2 AS cor0 CROSS JOIN tab2, tab2 AS cor1
----
17
31
59

onlyif mysql # use DIV operator for integer division
query I rowsort label-6796
SELECT ALL - + col1 DIV ( - 19 ) AS col1 FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-6796
SELECT ALL - + col1 / ( - 19 ) AS col1 FROM tab1 AS cor0
----
0
0
1

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab1, tab0 AS cor1, tab1 AS cor2, tab2 AS cor3
----
3645 values hashing to 57708840c4ff70ecdca82ffd05259432

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * col1 - + col2 col2 FROM tab0
----
-2871
-7544
-98

query I rowsort
SELECT DISTINCT col0 FROM tab0 WHERE NULL NOT IN ( col0 * col0 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-6800
SELECT col0 + - tab2.col1 * col0 DIV col0 FROM tab2
----
-24
19
62

skipif mysql # not compatible
query I rowsort label-6800
SELECT col0 + - tab2.col1 * col0 / col0 FROM tab2
----
-24
19
62

query I rowsort
SELECT - cor0.col2 * col0 + + col0 AS col2 FROM tab0 AS cor0
----
-7209
-768
0

query I rowsort
SELECT col0 * col2 + 16 FROM tab2 AS cor0
----
2044
205
3018

query I rowsort
SELECT DISTINCT 15 + + col2 * + 20 AS col0 FROM tab0 AS cor0
----
1655
35
675

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col2 * - cor0.col0 + 12 col0 FROM tab1 AS cor0
----
-150
-3636
-7668

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + - col2 col1 FROM tab2
----
-21
33
4

query I rowsort
SELECT - col1 * col0 + col1 + + tab2.col2 FROM tab2
----
-1288
-159
-4517

query I rowsort
SELECT - col2 AS col1 FROM tab0 WHERE NOT ( NULL ) NOT IN ( col1 + + col2 * + tab0.col0 )
----

query I rowsort
SELECT DISTINCT tab2.col0 * - col1 AS col2 FROM tab2
----
-1343
-217
-4602

query I rowsort
SELECT - tab1.col0 * - col0 * tab1.col0 FROM tab1
----
262144
27
512000

onlyif mysql # use DIV operator for integer division
query I rowsort label-6810
SELECT ALL - tab0.col1 DIV col0 FROM tab0
----
-1
-2
-3

skipif mysql # not compatible
query I rowsort label-6810
SELECT ALL - tab0.col1 / col0 FROM tab0
----
-1
-2
-3

query I rowsort
SELECT ALL + col1 * col2 + col1 - - col0 FROM tab2
----
1671
742
875

query I rowsort
SELECT col1 * + col2 * tab0.col2 FROM tab0
----
611884
93654
97

query I rowsort
SELECT - col0 + - col2 * - col1 AS col1 FROM tab1
----
1168
1401
506

query I rowsort
SELECT ALL - col0 * col0 AS col1 FROM tab1
----
-4096
-6400
-9

query I rowsort
SELECT DISTINCT tab0.col1 * + tab0.col1 AS col0 FROM tab0
----
7396
8281
9409

query I rowsort
SELECT ALL - + cor0.col1 * cor0.col1 * + 51 AS col0 FROM tab2 AS cor0
----
-14739
-177531
-49011

query I rowsort
SELECT ALL - + col1 AS col0 FROM tab2 cor0
----
-17
-31
-59

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6818
SELECT DISTINCT + col0 + - col0 / CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6818
SELECT DISTINCT + col0 + - col0 / CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-6819
SELECT - ( col1 ) DIV col0 + + col2 AS col0 FROM tab0 cor0
----
-1
30
81

skipif mysql # not compatible
query I rowsort label-6819
SELECT - ( col1 ) / col0 + + col2 AS col0 FROM tab0 cor0
----
-1
30
81

query I rowsort
SELECT DISTINCT - - 1 + + cor0.col2 AS col0 FROM tab0 AS cor0
----
2
34
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col1 + - col0 col1 FROM tab2 AS cor0
----
-137
-38
-96

query I rowsort
SELECT ALL - - 34 FROM tab2 AS cor0
----
34
34
34

query I rowsort
SELECT DISTINCT col2 * - ( - ( col0 ) ) AS col0 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT DISTINCT - col2 * cor0.col2 FROM tab0 cor0
----
-1
-1089
-6724

query I rowsort
SELECT - col2 + + ( + 34 ) AS col1 FROM tab0 AS cor0
----
-48
1
33

query I rowsort
SELECT + + cor0.col0 * - col1 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT DISTINCT + col0 * ( + 58 ) FROM tab1 cor0
----
174
3712
4640

query I rowsort
SELECT - cor0.col0 + + 85 * col1 AS col2 FROM tab0 AS cor0
----
7286
7646
8210

query I rowsort
SELECT DISTINCT - col1 + - col0 AS col0 FROM tab0 AS cor0
----
-110
-132
-180

query I rowsort
SELECT col2 * - cor0.col0 FROM tab2 cor0
----
-189
-2028
-3002

query I rowsort
SELECT DISTINCT - col1 + - col1 AS col1 FROM tab2 AS cor0
----
-118
-34
-62

query I rowsort
SELECT - - col0 + - 36 * cor0.col1 * cor0.col0 FROM tab1 AS cor0
----
-22976
-2805
-37360

onlyif mysql # use DIV operator for integer division
query I rowsort label-6833
SELECT DISTINCT 1 DIV cor0.col0 col0 FROM tab0, tab0 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6833
SELECT DISTINCT 1 / cor0.col0 col0 FROM tab0, tab0 AS cor0
----
0

query I rowsort
SELECT DISTINCT + cor0.col2 FROM tab0, tab0 cor0
----
1
33
82

query I rowsort
SELECT cor0.col2 * + 90 FROM tab0, tab1 AS cor0
----
9 values hashing to d7b5fad5288a7bcff71018a7f839fb52

query I rowsort
SELECT 78 FROM tab1, tab0 AS cor0
----
9 values hashing to 2aff42d3e015022a738905090a20dfd4

query IIIIIIIII rowsort
SELECT ALL * FROM tab0 cor0 CROSS JOIN tab1, tab1 AS cor1
----
243 values hashing to 7e12d99d8ab63d9fd10e95cef9d78998

query I rowsort
SELECT ALL - cor0.col2 * - col1 AS col2 FROM tab1 cor0
----
1248
1404
570

query I rowsort
SELECT - 25 * + col0 + + 57 FROM tab2 AS cor0
----
-118
-1893
-1918

query I rowsort
SELECT + 45 + + col2 AS col2 FROM tab0 AS cor0
----
127
46
78

query IIIIII rowsort
SELECT * FROM tab2, tab2 AS cor0 WHERE NULL >= NULL
----

query I rowsort
SELECT ALL + ( + col1 ) * cor0.col2 FROM tab1 cor0
----
1248
1404
570

query I rowsort
SELECT DISTINCT + - 19 * + col1 FROM tab2 cor0
----
-1121
-323
-589

query I rowsort
SELECT ALL 32 AS col1 FROM tab1, tab0 AS cor0, tab2, tab0 AS cor1
----
81 values hashing to 6bef041528d0147be26f7de162c66a5f

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 78 * - 36 col0 FROM tab0
----
-2808
-2808
-2808

query I rowsort
SELECT - 91 * + col2 + cor0.col2 FROM tab1 AS cor0
----
-4860
-5130
-8640

query I rowsort
SELECT ALL - tab1.col2 + col1 AS col1 FROM tab1
----
-28
-47
-83

query I rowsort
SELECT ALL 70 + col0 + col2 * + col1 FROM tab1
----
1398
1477
704

query I rowsort
SELECT ALL col1 + + col0 + tab2.col2 * col0 AS col0 FROM tab2
----
2165
227
3098

query I rowsort
SELECT ALL - col1 + - col0 * + tab2.col1 * tab2.col2 FROM tab2
----
-119711
-51051
-5890

query I rowsort
SELECT + cor0.col2 * cor0.col1 + 4 FROM tab2 AS cor0
----
1538
650
841

query I rowsort
SELECT + col1 * col2 + col2 AS col1 FROM tab0
----
2871
7544
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 99 col2 FROM tab1, tab0 AS cor0, tab2 cor1
----
27 values hashing to 761f5f1a166a00db99360141565a85da

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - ( + col0 ) col0 FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT 69 AS col2 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to 2810c3097fe4771e273cfff903357b40

query I rowsort
SELECT col2 * - col2 + 72 + col2 FROM tab1
----
-2790
-3120
-9048

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * col1 * col2 col0 FROM tab2
----
22599
24548
39884

onlyif mysql # use DIV operator for integer division
query I rowsort label-6858
SELECT - - cor0.col2 DIV col0 + col0 AS col1 FROM tab1 AS cor0
----
21
64
81

skipif mysql # not compatible
query I rowsort label-6858
SELECT - - cor0.col2 / col0 + col0 AS col1 FROM tab1 AS cor0
----
21
64
81

query I rowsort
SELECT DISTINCT - + col1 * - col1 + - col2 FROM tab1 AS cor0
----
43
622
73

query I rowsort
SELECT + cor0.col1 * - col2 * - col0 + + col2 AS col0 FROM tab1 AS cor0
----
36537
4266
99936

query I rowsort
SELECT - col0 * + col2 + - col2 + col1 AS col2 FROM tab0 AS cor0
----
-7289
-739
61

onlyif mysql # use DIV operator for integer division
query I rowsort label-6862
SELECT + 17 DIV + col0 AS col2 FROM tab1
----
0
0
5

skipif mysql # not compatible
query I rowsort label-6862
SELECT + 17 / + col0 AS col2 FROM tab1
----
0
0
5

onlyif mysql # use DIV operator for integer division
query I rowsort label-6863
SELECT 82 DIV - tab0.col2 FROM tab0
----
-1
-2
-82

skipif mysql # not compatible
query I rowsort label-6863
SELECT 82 / - tab0.col2 FROM tab0
----
-1
-2
-82

query I rowsort
SELECT DISTINCT col0 * + col0 * col1 AS col0 FROM tab0
----
118825
49536
720811

query I rowsort
SELECT + tab0.col2 * + tab0.col2 AS col0 FROM tab0
----
1
1089
6724

query I rowsort
SELECT + cor0.col0 * - col0 + col1 FROM tab1 AS cor0
----
-4086
-6387
17

query I rowsort
SELECT + col0 * - tab1.col1 * + col1 FROM tab1
----
-13520
-2028
-6400

query I rowsort
SELECT - 92 * col2 * + tab0.col2 + + col2 * col0 FROM tab0
----
-57
-611310
-99396

query I rowsort
SELECT 39 * + tab2.col1 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to ba63136490f6c2b50e0667853468ef5d

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 14 col0 FROM tab2 AS cor0
----
14
14
14

query I rowsort
SELECT ALL cor0.col0 * - col2 + col2 * - col1 FROM tab1 AS cor0
----
-1566
-4218
-8928

query I rowsort
SELECT DISTINCT col1 * - 81 FROM tab0
----
-6966
-7371
-7857

query I rowsort
SELECT ALL 74 FROM tab2, tab1 AS cor0
----
9 values hashing to 2ccf8ef3f477e1a1a3e30c8b8154ff31

query I rowsort
SELECT - col1 - - col0 AS col0 FROM tab0 AS cor0
----
-2
-62
-62

query I rowsort
SELECT + 42 - - col0 FROM tab1 AS cor0
----
106
122
45

query I rowsort
SELECT - col1 * - col0 + col1 FROM tab2 AS cor0
----
1360
248
4661

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 43 col2 FROM tab0 AS cor0
----
43
43
43

query I rowsort
SELECT col2 + col2 * col1 AS col2 FROM tab2 AS cor0
----
1560
684
864

query I rowsort
SELECT ALL + 59 * col1 + + cor0.col0 FROM tab0 AS cor0
----
5098
5458
5758

query I rowsort
SELECT ALL + + col1 + - col2 FROM tab2 AS cor0
----
-21
33
4

query I rowsort
SELECT 91 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 5748627ef5fd86a21cd559fd278d7277

query I rowsort
SELECT DISTINCT - - 6 * col1 AS col1 FROM tab2 AS cor0
----
102
186
354

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * - cor0.col1 + - ( - col2 ) col0 FROM tab0 AS cor0
----
2097
3396
8181

onlyif mysql # use DIV operator for integer division
query I rowsort label-6884
SELECT ALL + - 96 + + col0 DIV - cor0.col1 FROM tab2 AS cor0
----
-100
-96
-97

skipif mysql # not compatible
query I rowsort label-6884
SELECT ALL + - 96 + + col0 / - cor0.col1 FROM tab2 AS cor0
----
-100
-96
-97

query I rowsort
SELECT DISTINCT - 62 FROM tab0, tab0 AS cor0, tab1 AS cor1, tab2 AS cor2
----
-62

query I rowsort
SELECT ALL + 37 * col2 * + col2 AS col1 FROM tab2 AS cor0
----
25012
26973
53428

query I rowsort
SELECT DISTINCT + 55 FROM tab1, tab1 AS cor0
----
55

onlyif mysql # use DIV operator for integer division
query I rowsort label-6888
SELECT - col2 DIV + col2 + + col1 * - tab1.col2 AS col1 FROM tab1
----
-1249
-1405
-571

skipif mysql # not compatible
query I rowsort label-6888
SELECT - col2 / + col2 + + col1 * - tab1.col2 AS col1 FROM tab1
----
-1249
-1405
-571

query I rowsort
SELECT - 83 FROM tab1, tab0 AS cor0
----
9 values hashing to d55748f39f403ec273099c0d87b0bfbb

query I rowsort
SELECT DISTINCT - col2 * + col1 * tab0.col1 + 24 FROM tab0
----
-244044
-679018
-9385

query I rowsort
SELECT tab1.col0 + + col1 AS col1 FROM tab1
----
29
74
93

query I rowsort
SELECT - ( + col0 * col1 ) + + tab2.col2 FROM tab2
----
-1305
-190
-4576

query I rowsort
SELECT 31 - col2 AS col0 FROM tab0
----
-2
-51
30

onlyif mysql # use DIV operator for integer division
query I rowsort label-6894
SELECT DISTINCT - tab0.col0 * tab0.col1 DIV col2 FROM tab0
----
-3395
-62
-98

skipif mysql # not compatible
query I rowsort label-6894
SELECT DISTINCT - tab0.col0 * tab0.col1 / col2 FROM tab0
----
-3395
-62
-98

query I rowsort
SELECT - cor0.col0 AS col2 FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to c3ebf1695ca74567bdc173dbe15186a8

query I rowsort
SELECT ALL + ( - col1 ) * + col1 + - 43 FROM tab2 AS cor0
----
-1004
-332
-3524

query I rowsort
SELECT - 3 AS col0 FROM tab0 AS cor0
----
-3
-3
-3

query I rowsort
SELECT + ( + col1 ) AS col0 FROM tab0 AS cor0
----
86
91
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 77 * cor0.col2 col1 FROM tab2 AS cor0
----
2002
2079
2926

query I rowsort
SELECT DISTINCT - + cor0.col1 + + col0 FROM tab2 AS cor0
----
-24
19
62

query I rowsort
SELECT DISTINCT + + 37 * col0 FROM tab0 cor0
----
1295
3293
888

query I rowsort
SELECT + col2 + col2 * - 71 FROM tab0
----
-2310
-5740
-70

query I rowsort
SELECT DISTINCT + + col0 * col2 + 93 FROM tab0 AS cor0
----
128
7391
885

query I rowsort
SELECT - cor0.col2 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to b5a4102107e5ebd26e341538f4fede1e

query I rowsort
SELECT DISTINCT + col2 * - col1 + ( col0 ) + col2 AS col0 FROM tab2 AS cor0
----
-1430
-529
-803

query I rowsort
SELECT - col1 * tab0.col2 AS col1 FROM tab0
----
-2838
-7462
-97

query I rowsort
SELECT DISTINCT - col1 + + ( 74 ) AS col0 FROM tab2
----
15
43
57

query I rowsort
SELECT col0 + ( + 52 ) FROM tab1
----
116
132
55

query I rowsort
SELECT col2 * 76 FROM tab1
----
4104
4332
7296

query I rowsort
SELECT ALL tab0.col0 + 75 FROM tab0
----
110
164
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT ALL - col2 * - CAST ( + 43 AS REAL ) + col0 col0 FROM tab2
----
1168
1196
1713

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + ( col1 ) * col0 col1 FROM tab2 AS cor0
----
1343
217
4602

onlyif mysql # use DIV operator for integer division
query I rowsort label-6913
SELECT DISTINCT - col0 DIV - 36 FROM tab1 AS cor0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-6913
SELECT DISTINCT - col0 / - 36 FROM tab1 AS cor0
----
0
1
2

query I rowsort
SELECT DISTINCT + - cor0.col2 * - col2 - col0 FROM tab2 AS cor0
----
1365
598
722

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6915
SELECT - CAST( - 91 AS SIGNED ) col1 FROM tab2 AS cor0
----
91
91
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6915
SELECT - CAST ( - 91 AS INTEGER ) col1 FROM tab2 AS cor0
----
91
91
91

query I rowsort
SELECT DISTINCT - col2 + + col2 FROM tab1 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + ( col0 ) - + col1 col0 FROM tab1 AS cor0
----
-29
-74
-93

onlyif mysql # use DIV operator for integer division
query I rowsort label-6918
SELECT + 69 * + cor0.col2 + col1 DIV col0 FROM tab2 AS cor0
----
1794
1867
2622

skipif mysql # not compatible
query I rowsort label-6918
SELECT + 69 * + cor0.col2 + col1 / col0 FROM tab2 AS cor0
----
1794
1867
2622

query I rowsort
SELECT ALL - col1 + + col0 AS col0 FROM tab1 cor0
----
-23
54
67

query I rowsort
SELECT + + cor0.col1 + + col2 AS col0 FROM tab0 AS cor0
----
119
173
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col0 col2 FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT ALL - ( + col2 ) * cor0.col0 + + col0 FROM tab2 AS cor0
----
-182
-1950
-2923

query I rowsort
SELECT + 13 + col2 * col2 FROM tab2 AS cor0
----
1457
689
742

query I rowsort
SELECT ALL + - 94 * - 71 FROM tab1 AS cor0
----
6674
6674
6674

onlyif mysql # use DIV operator for integer division
query I rowsort label-6925
SELECT ALL col2 DIV cor0.col0 col1 FROM tab2 AS cor0
----
0
0
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6925
SELECT ALL col2 / cor0.col0 col1 FROM tab2 AS cor0
----
0
0
3

query I rowsort
SELECT + + col2 * col0 + cor0.col1 FROM tab1 cor0
----
188
3658
7693

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6927
SELECT + CAST( NULL AS SIGNED ) * - col1 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6927
SELECT + CAST ( NULL AS INTEGER ) * - col1 AS col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT + cor0.col0 AS col1 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f

query I rowsort
SELECT ALL col2 + col0 * - col1 AS col0 FROM tab1
----
-24
-583
-944

query I rowsort
SELECT DISTINCT + + col1 * - col2 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT ALL col2 + + col0 AS col0 FROM tab2 cor0
----
104
117
34

query I rowsort
SELECT col0 * - col2 + col1 * col1 FROM tab0 AS cor0
----
6604
9374
983

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6933
SELECT ALL + - CAST( NULL AS DECIMAL ) + col2 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6933
SELECT ALL + - CAST ( NULL AS REAL ) + col2 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col1 * cor0.col1 + + col1 AS col0 FROM tab1 AS cor0
----
110
182
702

query I rowsort
SELECT col1 * + cor0.col0 * + col2 AS col0 FROM tab0 AS cor0
----
3395
664118
68112

onlyif mysql # use DIV operator for integer division
query I rowsort label-6936
SELECT - ( cor0.col1 ) DIV + cor0.col2 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

skipif mysql # not compatible
query I rowsort label-6936
SELECT - ( cor0.col1 ) / + cor0.col2 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

onlyif mysql # use DIV operator for integer division
query I rowsort label-6937
SELECT ALL - - col0 * col1 DIV col2 AS col0 FROM tab1 AS cor0
----
1
10
11

skipif mysql # not compatible
query I rowsort label-6937
SELECT ALL - - col0 * col1 / col2 AS col0 FROM tab1 AS cor0
----
1
10
11

query I rowsort
SELECT DISTINCT + col0 + col0 AS col0 FROM tab2 AS cor0
----
14
156
158

query I rowsort
SELECT ALL - - col0 - col2 AS col2 FROM tab0 AS cor0
----
-9
34
7

query I rowsort
SELECT + - col0 + col1 FROM tab1 cor0
----
-54
-67
23

query I rowsort
SELECT ALL + + 95 FROM tab0 AS cor0
----
95
95
95

query I rowsort
SELECT - ( + col1 ) * col0 FROM tab1 cor0
----
-1040
-640
-78

query I rowsort
SELECT DISTINCT + 13 + col1 FROM tab1 cor0
----
23
26
39

query I rowsort
SELECT ALL - - col2 + + col2 * col0 * + 90 FROM tab1 AS cor0
----
14634
328377
691296

query I rowsort
SELECT DISTINCT - col1 * - cor0.col0 + - col1 FROM tab2 AS cor0
----
1326
186
4543

query I rowsort
SELECT DISTINCT + col2 - + col2 AS col2 FROM tab0 AS cor0
----
0

query I rowsort
SELECT col2 + cor0.col0 FROM tab1 AS cor0
----
121
176
57

query I rowsort
SELECT ALL col1 + col0 * 94 AS col2 FROM tab0 AS cor0
----
2342
3387
8457

query I rowsort
SELECT - cor0.col2 + col0 AS col1 FROM tab0 AS cor0
----
-9
34
7

query I rowsort
SELECT DISTINCT cor0.col1 * + col2 * - 8 + - cor0.col2 + + col1 FROM tab1 AS cor0
----
-10067
-11260
-4607

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 83 * - col2 col0 FROM tab1
----
4482
4731
7968

query I rowsort
SELECT ALL - col2 * + 30 + tab0.col0 AS col0 FROM tab0
----
-2371
-966
5

query I rowsort
SELECT DISTINCT 39 AS col1 FROM tab0, tab2 cor0
----
39

query I rowsort
SELECT + + col1 * col2 + + ( 88 + col2 ) * + cor0.col0 FROM tab1 AS cor0
----
15968
1830
9850

query I rowsort
SELECT ( + col0 * col2 ) AS col1 FROM tab1
----
162
3648
7680

query I rowsort
SELECT DISTINCT col2 + + col2 + col1 * tab2.col1 FROM tab2
----
1015
3533
365

query I rowsort
SELECT DISTINCT + col1 * col0 + ( col2 ) AS col2 FROM tab2 AS cor0
----
1381
244
4628

query I rowsort
SELECT DISTINCT - cor0.col0 * + 62 FROM tab2 AS cor0
----
-434
-4836
-4898

query I rowsort
SELECT ALL - col1 + col0 * 45 AS col2 FROM tab1 AS cor0
----
109
2870
3587

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6960
SELECT - col0 + CAST( NULL AS DECIMAL ) * cor0.col2 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6960
SELECT - col0 + CAST ( NULL AS REAL ) * cor0.col2 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col1 + + col1 AS col0 FROM tab1 AS cor0
----
20
26
52

query I rowsort
SELECT DISTINCT - + col1 * col1 * - col0 AS col0 FROM tab0 AS cor0
----
177504
329315
737009

query I rowsort
SELECT + col0 - - cor0.col2 FROM tab0 AS cor0
----
171
36
57

query I rowsort
SELECT ALL - - cor0.col1 + + col2 * - col0 AS col0 FROM tab2 AS cor0
----
-158
-1969
-2985

query I rowsort
SELECT - col1 + - col0 * - cor0.col2 AS col2 FROM tab1 AS cor0
----
136
3638
7667

onlyif mysql # use DIV operator for integer division
query I rowsort label-6966
SELECT + cor0.col1 DIV 15 - + col2 AS col0 FROM tab2 AS cor0
----
-23
-25
-37

skipif mysql # not compatible
query I rowsort label-6966
SELECT + cor0.col1 / 15 - + col2 AS col0 FROM tab2 AS cor0
----
-23
-25
-37

query I rowsort
SELECT ALL 90 AS col2 FROM tab2
----
90
90
90

query I rowsort
SELECT - ( - col1 ) - + col2 AS col2 FROM tab1
----
-28
-47
-83

onlyif mysql # use DIV operator for integer division
query I rowsort label-6969
SELECT DISTINCT + col1 * 49 * 37 + col2 * col1 + + col1 DIV col2 AS col1 FROM tab0 AS cor0
----
158758
172446
176055

skipif mysql # not compatible
query I rowsort label-6969
SELECT DISTINCT + col1 * 49 * 37 + col2 * col1 + + col1 / col2 AS col1 FROM tab0 AS cor0
----
158758
172446
176055

query I rowsort
SELECT DISTINCT - col0 * + col0 + - 9 AS col1 FROM tab2 AS cor0
----
-58
-6093
-6250

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + cor0.col1 col1 FROM tab1 AS cor0
----
-10
-13
-26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col0 + + 55 * + ( - col1 ) col0 FROM tab0 AS cor0
----
-4754
-5094
-5370

query I rowsort
SELECT ALL 5 FROM tab1 cor0 CROSS JOIN tab2, tab0 AS cor1, tab2 AS cor2
----
81 values hashing to 0da436460d6fcea5a1eb4b1d2219d7c9

query I rowsort
SELECT - tab2.col2 * col2 * col0 + tab2.col1 + - col2 AS col0 FROM tab2
----
-114097
-5099
-52695

query I rowsort
SELECT + - 38 + + col2 * col0 FROM tab0 AS cor0
----
-3
7260
754

query I rowsort
SELECT ALL col1 + ( col0 ) + col2 AS col1 FROM tab0
----
133
143
262

query I rowsort
SELECT ALL 14 AS col0 FROM tab2, tab1 cor0
----
9 values hashing to 83e5779d2487d12495e7d816c797264f

query I rowsort
SELECT ALL tab2.col0 * 34 FROM tab2, tab2 AS cor0
----
9 values hashing to 5b56eae1c3cd0c95f5cc27d11a48f9b8

query I rowsort
SELECT - + cor0.col0 + 56 * col1 * cor0.col2 FROM tab2 AS cor0
----
36097
46865
85826

query I rowsort
SELECT - ( col2 + col0 ) AS col1 FROM tab1
----
-121
-176
-57

query I rowsort
SELECT + cor1.col0 FROM tab2 AS cor0 CROSS JOIN tab2, tab1 AS cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f

query I rowsort
SELECT + - col0 + - col1 AS col0 FROM tab2 AS cor0
----
-137
-38
-96

query I rowsort
SELECT + 42 AS col0 FROM tab2, tab2 AS cor0, tab2 cor1
----
27 values hashing to 325aada2239b6fe1fe2d843515ae8c5e

query I rowsort
SELECT + col0 + 37 FROM tab2 AS cor0
----
115
116
44

query I rowsort
SELECT - - col0 + + col2 + + 22 FROM tab0 AS cor0
----
193
58
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + - ( col0 ) * + cor0.col0 col1 FROM tab1 AS cor0
----
-35
-4106
-6413

onlyif mysql # use DIV operator for integer division
query I rowsort label-6987
SELECT - col2 + col1 DIV + col1 col1 FROM tab2 AS cor0
----
-25
-26
-37

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6987
SELECT - col2 + col1 / + col1 col1 FROM tab2 AS cor0
----
-25
-26
-37

query I rowsort
SELECT DISTINCT ( - col2 * - col1 ) FROM tab0
----
2838
7462
97

query I rowsort
SELECT DISTINCT 39 AS col0 FROM tab0 AS cor0
----
39

query I rowsort
SELECT ALL - ( col2 ) + col1 * 74 AS col2 FROM tab2 AS cor0
----
1220
2267
4340

query I rowsort
SELECT DISTINCT - ( col1 ) * col2 + ( 5 * col1 ) AS col2 FROM tab0 AS cor0
----
-2408
-7007
388

query I rowsort
SELECT ALL col0 + col1 AS col1 FROM tab0 AS cor0
----
110
132
180

query I rowsort
SELECT ALL + - ( col0 ) FROM tab2 cor0
----
-7
-78
-79

query I rowsort
SELECT cor0.col0 * + 89 AS col1 FROM tab1 cor0
----
267
5696
7120

query I rowsort
SELECT DISTINCT + col0 * + 21 AS col1 FROM tab0 AS cor0
----
1869
504
735

query I rowsort
SELECT + 41 * - 33 AS col1 FROM tab2 AS cor0
----
-1353
-1353
-1353

query I rowsort
SELECT DISTINCT 36 + + col1 FROM tab1 AS cor0
----
46
49
62

query I rowsort
SELECT ALL + + 70 FROM tab1, tab1 AS cor0
----
9 values hashing to 9758da65ae4711e3e8c8def2fe026911

query I rowsort
SELECT + - 65 * + cor0.col0 AS col0 FROM tab2 AS cor0
----
-455
-5070
-5135

query I rowsort
SELECT ALL col2 + cor0.col0 AS col1 FROM tab2 AS cor0
----
104
117
34

query I rowsort
SELECT + - col0 + + cor0.col0 AS col1 FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - 89 FROM tab2, tab1 AS cor0
----
-89

query I rowsort
SELECT 43 + col2 AS col0 FROM tab2 AS cor0
----
69
70
81

onlyif mysql # use DIV operator for integer division
query I rowsort label-7004
SELECT + ( - col0 ) + col2 DIV + col0 FROM tab2 AS cor0
----
-4
-78
-79

skipif mysql # not compatible
query I rowsort label-7004
SELECT + ( - col0 ) + col2 / + col0 FROM tab2 AS cor0
----
-4
-78
-79

query I rowsort
SELECT + + ( + col2 ) AS col2 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT col1 + + col1 AS col1 FROM tab1 cor0
----
20
26
52

query I rowsort
SELECT 40 + col1 FROM tab0 AS cor0
----
126
131
137

query I rowsort
SELECT - 50 * - col2 AS col0 FROM tab2 AS cor0
----
1300
1350
1900

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * col2 col1 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT ALL - col2 * col1 * ( + col0 ) + col0 + + col1 * - cor0.col1 * + col0 AS col2 FROM tab0 AS cor0
----
-1401038
-245592
-332675

query I rowsort
SELECT DISTINCT + col2 - + col2 AS col0 FROM tab1 AS cor0
----
0

query I rowsort
SELECT - - col2 + cor0.col2 * col1 FROM tab0 AS cor0
----
2871
7544
98

query I rowsort
SELECT - cor0.col0 * cor0.col2 FROM tab0 AS cor0
----
-35
-7298
-792

onlyif mysql # use DIV operator for integer division
query I rowsort label-7014
SELECT + - cor0.col2 DIV + col1 FROM tab1 AS cor0
----
-2
-5
-7

skipif mysql # not compatible
query I rowsort label-7014
SELECT + - cor0.col2 / + col1 FROM tab1 AS cor0
----
-2
-5
-7

query I rowsort
SELECT ALL + col0 - + 1 FROM tab1 AS cor0
----
2
63
79

query I rowsort
SELECT + 89 + 78 FROM tab2, tab1 AS cor0
----
9 values hashing to 0b9c6a773e2a438d8a7e5ed3288ce87b

query I rowsort
SELECT + cor0.col2 + + ( col2 ) AS col1 FROM tab1 AS cor0
----
108
114
192

query I rowsort
SELECT DISTINCT - + col1 + col1 * - 82 AS col2 FROM tab1 AS cor0
----
-1079
-2158
-830

query I rowsort
SELECT DISTINCT + col1 * 53 AS col0 FROM tab2 AS cor0
----
1643
3127
901

query I rowsort
SELECT + col2 + - col0 AS col1 FROM tab0 AS cor0
----
-34
-7
9

onlyif mysql # use DIV operator for integer division
query I rowsort label-7021
SELECT - 55 * col2 DIV - ( 85 ) FROM tab1
----
34
36
62

skipif mysql # not compatible
query I rowsort label-7021
SELECT - 55 * col2 / - ( 85 ) FROM tab1
----
34
36
62

onlyif mysql # use DIV operator for integer division
query I rowsort label-7022
SELECT - + col0 + col2 * col0 + col2 DIV 44 AS col1 FROM tab1 cor0
----
160
3585
7602

skipif mysql # not compatible
query I rowsort label-7022
SELECT - + col0 + col2 * col0 + col2 / 44 AS col1 FROM tab1 cor0
----
160
3585
7602

query I rowsort
SELECT + 44 FROM tab1, tab0 AS cor0
----
9 values hashing to ab2bc2b9f8baa300df7755e5980a319d

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7024
SELECT ALL - CAST( NULL AS DECIMAL ) * col0 * + col0 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7024
SELECT ALL - CAST ( NULL AS REAL ) * col0 * + col0 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col0 + + cor0.col1 FROM tab2 AS cor0
----
137
38
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( col0 ) col0 FROM tab0
----
24
35
89

query I rowsort
SELECT DISTINCT + 16 AS col0 FROM tab1
----
16

query I rowsort
SELECT ALL tab2.col2 * col0 FROM tab2
----
189
2028
3002

query I rowsort
SELECT ALL + cor0.col2 + - col2 FROM tab0 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 96 * col1 col1 FROM tab2 cor0
----
-1632
-2976
-5664

query I rowsort
SELECT ALL - ( + col0 ) * col1 AS col2 FROM tab0
----
-2064
-3395
-8099

query I rowsort
SELECT + col2 + - ( + col1 ) * + cor0.col0 + - col1 FROM tab2 AS cor0
----
-1322
-221
-4635

query I rowsort
SELECT DISTINCT - + col1 * col0 + - cor0.col2 * col0 FROM tab2 AS cor0
----
-406
-4345
-6630

onlyif mysql # use DIV operator for integer division
query I rowsort label-7034
SELECT - col0 DIV col1 + - 90 + - col2 FROM tab0 AS cor0
----
-123
-172
-91

skipif mysql # not compatible
query I rowsort label-7034
SELECT - col0 / col1 + - 90 + - col2 FROM tab0 AS cor0
----
-123
-172
-91

query I rowsort
SELECT ALL - + col2 * + 2 FROM tab2 AS cor0
----
-52
-54
-76

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7036
SELECT ALL CAST( NULL AS SIGNED ) AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-7036
SELECT ALL CAST ( NULL AS INTEGER ) AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT col1 + col2 * + col0 FROM tab0 AS cor0
----
132
7389
878

query I rowsort
SELECT DISTINCT - col1 + - col2 * - 27 + + col2 FROM tab2 AS cor0
----
1047
669
725

query I rowsort
SELECT ALL col2 + + 29 FROM tab2
----
55
56
67

query I rowsort
SELECT ALL 24 FROM tab1, tab1 AS cor0
----
9 values hashing to b0d834ef9e4346801b6aaa0e74b2c8ef

onlyif mysql # use DIV operator for integer division
query I rowsort label-7041
SELECT ALL + col2 * 66 + col0 DIV tab0.col2 + + col0 FROM tab0
----
136
2202
5502

skipif mysql # not compatible
query I rowsort label-7041
SELECT ALL + col2 * 66 + col0 / tab0.col2 + + col0 FROM tab0
----
136
2202
5502

query I rowsort
SELECT ALL - + 44 + + 48 * col0 FROM tab0 AS cor0
----
1108
1636
4228

query I rowsort
SELECT 35 * - col2 FROM tab2 AS cor0
----
-1330
-910
-945

query I rowsort
SELECT - 12 FROM tab2 cor0
----
-12
-12
-12

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + tab2.col2 + + tab2.col0 col1 FROM tab2
----
104
117
34

query I rowsort
SELECT ALL + 4 * cor0.col0 FROM tab0, tab1 cor0, tab1 AS cor1
----
27 values hashing to acbf630bded388be0b588e0cce650e05

query I rowsort
SELECT 68 * + cor0.col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 62f4b061af2572801934deb01f0cbe37

onlyif mysql # use DIV operator for integer division
query I rowsort label-7048
SELECT - col1 DIV 6 col1 FROM tab2
----
-2
-5
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7048
SELECT - col1 / 6 col1 FROM tab2
----
-2
-5
-9

query I rowsort
SELECT DISTINCT - 42 FROM tab0, tab1 AS cor0
----
-42

onlyif mysql # use DIV operator for integer division
query I rowsort label-7050
SELECT ALL + col0 * col1 + col0 * cor0.col0 DIV + col0 AS col0 FROM tab2 AS cor0
----
1422
224
4680

skipif mysql # not compatible
query I rowsort label-7050
SELECT ALL + col0 * col1 + col0 * cor0.col0 / + col0 AS col0 FROM tab2 AS cor0
----
1422
224
4680

query I rowsort
SELECT DISTINCT - 92 FROM tab2 AS cor0
----
-92

query I rowsort
SELECT cor0.col1 * + col2 * - col2 AS col0 FROM tab1 AS cor0
----
-119808
-32490
-75816

query I rowsort
SELECT col2 - col0 * col0 AS col2 FROM tab2 cor0
----
-22
-6058
-6203

query I rowsort
SELECT ALL + col2 * - col1 * ( cor0.col1 ) FROM tab1 AS cor0
----
-16224
-36504
-5700

query I rowsort
SELECT + col2 - col1 * - ( 3 ) FROM tab1 AS cor0
----
132
135
87

query I rowsort
SELECT + 55 * col1 + ( cor0.col0 ) AS col0 FROM tab1 AS cor0
----
1433
614
795

query I rowsort
SELECT ALL + col2 + + col0 AS col1 FROM tab2 AS cor0
----
104
117
34

query I rowsort
SELECT ALL ( + tab1.col0 + col1 ) FROM tab1
----
29
74
93

query I rowsort
SELECT ALL - 42 * + col0 FROM tab1
----
-126
-2688
-3360

query I rowsort
SELECT DISTINCT + 16 + col1 AS col2 FROM tab0
----
102
107
113

query I rowsort
SELECT ALL - + cor0.col1 * cor0.col0 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 0cea1be551fb4bd88f4da0b7d676ee2f

query I rowsort
SELECT - col1 + col2 * - col2 + col1 * col0 FROM tab2 cor0
----
-118
-543
3867

query I rowsort
SELECT DISTINCT + + col0 * - col1 AS col0 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT ( - col2 ) * 36 * - col1 AS col0 FROM tab1 AS cor0
----
20520
44928
50544

query I rowsort
SELECT ALL - col0 * cor0.col2 + cor0.col2 AS col1 FROM tab2 AS cor0
----
-162
-2002
-2964

query I rowsort
SELECT - - 5 + + col1 * + 48 + 50 AS col2 FROM tab1 AS cor0
----
1303
535
679

query I rowsort
SELECT - + col2 * col2 + - col2 + + col0 FROM tab2 AS cor0
----
-1403
-624
-749

onlyif mysql # use DIV operator for integer division
query I rowsort label-7068
SELECT ( tab0.col0 ) DIV col0 + - ( col0 ) + - 4 DIV + col1 FROM tab0
----
-23
-34
-88

skipif mysql # not compatible
query I rowsort label-7068
SELECT ( tab0.col0 ) / col0 + - ( col0 ) + - 4 / + col1 FROM tab0
----
-23
-34
-88

query I rowsort
SELECT col0 + - col2 * - 40 + + col0 FROM tab1
----
2166
2408
4000

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + tab0.col0 col0 FROM tab0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-7071
SELECT col1 * col2 DIV col0 FROM tab2
----
119
19
8

skipif mysql # not compatible
query I rowsort label-7071
SELECT col1 * col2 / col0 FROM tab2
----
119
19
8

query I rowsort
SELECT DISTINCT - 58 + + col2 * - col0 FROM tab2
----
-2086
-247
-3060

query I rowsort
SELECT DISTINCT + 3 + col0 AS col1 FROM tab0 AS cor0
----
27
38
92

query I rowsort
SELECT ALL + col0 * - col0 + 3 AS col2 FROM tab0 AS cor0
----
-1222
-573
-7918

query I rowsort
SELECT ALL + col1 + + 41 FROM tab2 AS cor0
----
100
58
72

query I rowsort
SELECT DISTINCT + col0 + - col1 - col2 FROM tab2 AS cor0
----
-51
-7
24

query I rowsort
SELECT - col1 * 38 - - cor0.col0 FROM tab2 cor0
----
-1171
-2164
-567

query I rowsort
SELECT DISTINCT col2 + col0 * cor0.col2 * col1 FROM tab1 AS cor0
----
36537
4266
99936

query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab1, tab2 cor1
----
243 values hashing to 6506b295d3a7bcc5ed65956f5b4e38b0

query I rowsort
SELECT DISTINCT + 47 + cor0.col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
101
104
143

query I rowsort
SELECT + cor0.col1 + 21 FROM tab1 AS cor0
----
31
34
47

onlyif mysql # use DIV operator for integer division
query I rowsort label-7082
SELECT + col2 DIV ( col0 ) - - cor0.col1 * + col1 FROM tab0 AS cor0
----
7397
8281
9409

skipif mysql # not compatible
query I rowsort label-7082
SELECT + col2 / ( col0 ) - - cor0.col1 * + col1 FROM tab0 AS cor0
----
7397
8281
9409

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + + col0 * 66 * cor0.col0 col1 FROM tab2 cor0
----
3207
401518
411868

query I rowsort
SELECT + col1 + + ( ( + col0 ) * col2 ) AS col2 FROM tab1 AS cor0
----
188
3658
7693

onlyif mysql # use DIV operator for integer division
query I rowsort label-7085
SELECT ALL - col0 * cor0.col2 + + col2 DIV - col1 AS col2 FROM tab2 AS cor0
----
-189
-2028
-3004

skipif mysql # not compatible
query I rowsort label-7085
SELECT ALL - col0 * cor0.col2 + + col2 / - col1 AS col2 FROM tab2 AS cor0
----
-189
-2028
-3004

query I rowsort
SELECT DISTINCT + col1 - + 92 FROM tab2 AS cor0
----
-33
-61
-75

query I rowsort
SELECT - col2 * 96 + + col1 * col2 AS col2 FROM tab1 AS cor0
----
-3780
-4902
-7968

query I rowsort
SELECT - col0 + col0 AS col2 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT col0 + + ( col1 * + col0 ) FROM tab0 AS cor0
----
2088
3430
8188

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col2 * + col0 + col0 col0 FROM tab1 AS cor0
----
165
3712
7760

query I rowsort
SELECT DISTINCT - col2 * ( - col0 ) + col1 FROM tab1 AS cor0
----
188
3658
7693

query I rowsort
SELECT ALL + cor0.col0 + cor0.col1 - - col1 FROM tab1 AS cor0
----
106
55
84

query I rowsort
SELECT col1 - + col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT - ( col1 ) * + col0 * - 77 AS col0 FROM tab0 AS cor0
----
158928
261415
623623

query I rowsort
SELECT ALL + - cor0.col1 * - col2 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT ALL 89 + + cor0.col0 * col2 AS col2 FROM tab2 AS cor0
----
2117
278
3091

query I rowsort
SELECT DISTINCT + col2 * - 1 - - cor0.col1 FROM tab2 cor0
----
-21
33
4

onlyif mysql # use DIV operator for integer division
query I rowsort label-7098
SELECT ALL - 77 DIV - 21 AS col1 FROM tab0 AS cor0
----
3
3
3

skipif mysql # not compatible
query I rowsort label-7098
SELECT ALL - 77 / - 21 AS col1 FROM tab0 AS cor0
----
3
3
3

query I rowsort
SELECT DISTINCT + + ( 64 ) + - col0 FROM tab0 AS cor0
----
-25
29
40

query I rowsort
SELECT ALL - - cor0.col1 * + cor0.col0 FROM tab0 AS cor0
----
2064
3395
8099

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7101
SELECT - - CAST( + col1 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-7101
SELECT - - CAST ( + col1 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT ALL cor0.col0 * - col1 AS col2 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT cor0.col1 * - col2 * + col1 FROM tab0 AS cor0
----
-244068
-679042
-9409

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7104
SELECT - CAST( col2 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-26
-27
-38

skipif mysql # not compatible
query I rowsort label-7104
SELECT - CAST ( col2 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-26
-27
-38

query I rowsort
SELECT DISTINCT + cor0.col0 * col0 * + cor0.col1 AS col2 FROM tab0 AS cor0
----
118825
49536
720811

query I rowsort
SELECT DISTINCT + + 4 FROM tab2 AS cor0
----
4

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7107
SELECT ALL CAST( col1 AS SIGNED ) * + col1 FROM tab2 AS cor0
----
289
3481
961

skipif mysql # not compatible
query I rowsort label-7107
SELECT ALL CAST ( col1 AS INTEGER ) * + col1 FROM tab2 AS cor0
----
289
3481
961

query I rowsort
SELECT DISTINCT + - col0 * - cor0.col1 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT ALL col0 * col0 + - col0 AS col2 FROM tab0 AS cor0
----
1190
552
7832

query I rowsort
SELECT ALL col2 * col1 - ( col0 ) FROM tab0 AS cor0
----
2814
62
7373

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 0 col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - - col0 - col2 AS col0 FROM tab1 AS cor0
----
-16
-51
7

query I rowsort
SELECT 55 * + col0 FROM tab0 AS cor0
----
1320
1925
4895

query I rowsort
SELECT - col0 + col0 * - col2 AS col2 FROM tab0 AS cor0
----
-70
-7387
-816

query I rowsort
SELECT + ( col0 ) - col2 AS col2 FROM tab2 AS cor0
----
-20
41
52

query I rowsort
SELECT col2 * + col2 * col1 + - ( col2 + + col2 ) FROM tab0 AS cor0
----
611720
93588
95

onlyif mysql # use DIV operator for integer division
query I rowsort label-7117
SELECT DISTINCT col2 DIV + ( col0 * col1 ) col0 FROM tab0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7117
SELECT DISTINCT col2 / + ( col0 * col1 ) col0 FROM tab0
----
0

query I rowsort
SELECT 6 * 83 AS col1 FROM tab0, tab2 cor0
----
9 values hashing to f023dab28719be92c469759b881e887f

query I rowsort
SELECT + col0 * 78 + + 25 * col2 FROM tab0
----
2697
2755
8992

query I rowsort
SELECT + 37 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to a10b03e72860b949bdff53827700a9a8

query I rowsort
SELECT ( - col0 + col2 ) AS col2 FROM tab2
----
-41
-52
20

query I rowsort
SELECT + + col0 * col2 + - col0 * - 8 FROM tab2 AS cor0
----
245
2652
3634

query I rowsort
SELECT + 63 * col2 AS col2 FROM tab2 AS cor0
----
1638
1701
2394

query I rowsort
SELECT + - cor0.col2 * + col0 AS col1 FROM tab2 cor0
----
-189
-2028
-3002

query I rowsort
SELECT ALL + - col1 + - col0 * + col0 + col0 AS col0 FROM tab2 AS cor0
----
-6065
-6179
-73

query I rowsort
SELECT ALL cor0.col1 + - 3 FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to 588999bf9f80096f78961db3e0baf2b3

query I rowsort
SELECT 25 FROM tab2, tab1 AS cor0
----
9 values hashing to 525a55d5ed224a62da65df36731881a7

query I rowsort
SELECT ALL - + cor0.col1 + col1 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT ALL cor0.col2 * - 71 + col1 FROM tab1 AS cor0
----
-3808
-4037
-6803

query I rowsort
SELECT col2 + - ( - col0 ) FROM tab1 AS cor0
----
121
176
57

query I rowsort
SELECT - 93 AS col0 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to ea79c61f7a02d25805171f5e85229fba

query I rowsort
SELECT ALL + col2 + 56 * col1 + + cor0.col0 FROM tab0 cor0
----
4873
5267
5468

query I rowsort
SELECT + col1 + col2 * col1 * col2 FROM tab1 AS cor0
----
119821
32500
75842

query I rowsort
SELECT - ( 57 ) AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 520dc393896969e02a72ab6c5d92126b

query I rowsort
SELECT + - col1 * - col1 + - col1 AS col1 FROM tab1 AS cor0
----
156
650
90

query I rowsort
SELECT - cor0.col1 * 37 FROM tab1 AS cor0
----
-370
-481
-962

query I rowsort
SELECT - - col0 * - 20 + - 66 + col1 AS col2 FROM tab2 AS cor0
----
-1567
-1629
-175

query I rowsort
SELECT ALL + cor1.col0 AS col1 FROM tab1, tab0 cor0, tab2 AS cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83

query I rowsort
SELECT ALL cor1.col1 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d

onlyif mysql # use DIV operator for integer division
query I rowsort label-7140
SELECT - col1 - ( col2 ) DIV + col1 col0 FROM tab1
----
-15
-20
-28

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7140
SELECT - col1 - ( col2 ) / + col1 col0 FROM tab1
----
-15
-20
-28

query I rowsort
SELECT ALL col0 * + col2 * col2 FROM tab0 AS cor0
----
26136
35
598436

query I rowsort
SELECT DISTINCT + + col0 * - 28 FROM tab0 cor0
----
-2492
-672
-980

query I rowsort
SELECT + - 94 * col1 AS col2 FROM tab1 cor0
----
-1222
-2444
-940

query I rowsort
SELECT + cor0.col0 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83

query I rowsort
SELECT + ( - cor0.col0 ) + col1 AS col2 FROM tab0 AS cor0
----
2
62
62

query I rowsort
SELECT DISTINCT - 91 + + col2 * + col1 FROM tab1 AS cor0
----
1157
1313
479

query I rowsort
SELECT DISTINCT 61 AS col1 FROM tab2 AS cor0
----
61

query I rowsort
SELECT - cor0.col2 + col2 + + ( cor0.col2 ) * col1 FROM tab1 cor0
----
1248
1404
570

query I rowsort
SELECT ALL - ( - tab1.col1 ) FROM tab1, tab2, tab1 AS cor0
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892

query I rowsort
SELECT - 8 * col1 * 42 FROM tab2
----
-10416
-19824
-5712

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * + col0 col1 FROM tab0
----
-35
-7298
-792

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 81 col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 205b3ff2d7b1817c98d7980b8c17e6c1

query I rowsort
SELECT + + 53 * col1 FROM tab1 cor0
----
1378
530
689

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7154
SELECT CAST( 11 AS SIGNED ) AS col0 FROM tab0, tab2 cor0, tab1 AS cor1
----
27 values hashing to 69116737f3f57e2e3273f6dbb04d036c

skipif mysql # not compatible
query I rowsort label-7154
SELECT CAST ( 11 AS INTEGER ) AS col0 FROM tab0, tab2 cor0, tab1 AS cor1
----
27 values hashing to 69116737f3f57e2e3273f6dbb04d036c

query I rowsort
SELECT cor0.col0 * - col0 + + col0 + col1 * + col2 AS col1 FROM tab2 cor0
----
-4472
-5516
795

query I rowsort
SELECT DISTINCT - - col2 + col1 * col2 FROM tab0 AS cor0
----
2871
7544
98

query I rowsort
SELECT ALL col2 * ( + col0 ) FROM tab0 cor0
----
35
7298
792

query I rowsort
SELECT - col1 + - ( - cor0.col2 ) * col0 FROM tab0 AS cor0
----
-62
706
7207

query I rowsort
SELECT DISTINCT + col1 + col0 * - 30 * col2 FROM tab1 AS cor0
----
-109430
-230387
-4834

query I rowsort
SELECT DISTINCT col2 * tab1.col0 * - 62 FROM tab1
----
-10044
-226176
-476160

query I rowsort
SELECT + col1 + + 95 * col2 * - col0 FROM tab0 AS cor0
----
-3228
-693219
-75154

query I rowsort
SELECT 65 * - col2 FROM tab0
----
-2145
-5330
-65

query I rowsort
SELECT - ( tab1.col2 ) FROM tab1, tab2 cor0, tab1 AS cor1
----
27 values hashing to 44fdcd7cd603352d4d127811d164cc1e

query I rowsort
SELECT ALL 14 FROM tab0
----
14
14
14

query I rowsort
SELECT ALL + tab0.col2 + + tab0.col1 FROM tab0
----
119
173
98

query I rowsort
SELECT ALL + tab2.col1 + + col2 * + col2 FROM tab2
----
1461
735
760

query I rowsort
SELECT ALL + col2 + - col2 AS col0 FROM tab0
----
0
0
0

query I rowsort
SELECT + - col0 + cor0.col0 FROM tab0 cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-7169
SELECT - col0 * col2 DIV col0 - col0 AS col2 FROM tab0 AS cor0
----
-171
-36
-57

skipif mysql # not compatible
query I rowsort label-7169
SELECT - col0 * col2 / col0 - col0 AS col2 FROM tab0 AS cor0
----
-171
-36
-57

query I rowsort
SELECT DISTINCT + - col0 * col2 * + cor0.col2 + - col1 FROM tab2 AS cor0
----
-114093
-5134
-52787

query I rowsort
SELECT ALL + - cor0.col1 * - col0 + col0 FROM tab2 AS cor0
----
1422
224
4680

query I rowsort
SELECT DISTINCT tab0.col0 + - col2 * + col1 AS col1 FROM tab0
----
-2814
-62
-7373

query I rowsort
SELECT DISTINCT + col0 + - col0 - + col2 * - col0 * cor0.col1 FROM tab2 cor0
----
119652
51034
5859

query I rowsort
SELECT - col0 * cor0.col1 + - col0 AS col0 FROM tab0 AS cor0
----
-2088
-3430
-8188

query I rowsort
SELECT - cor0.col2 + col2 AS col0 FROM tab1 cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-7176
SELECT + col2 * cor0.col0 + - col1 DIV - col0 AS col1 FROM tab0 cor0
----
37
7299
795

skipif mysql # not compatible
query I rowsort label-7176
SELECT + col2 * cor0.col0 + - col1 / - col0 AS col1 FROM tab0 cor0
----
37
7299
795

query I rowsort
SELECT ALL col2 * + cor0.col0 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT DISTINCT col1 * col2 * - col1 - + col2 AS col2 FROM tab1
----
-16320
-36558
-5757

query I rowsort
SELECT ALL + col2 * - col2 - - col1 AS col2 FROM tab2
----
-1427
-617
-698

query I rowsort
SELECT DISTINCT col0 * - cor0.col2 - + col1 FROM tab2 AS cor0
----
-2087
-220
-3019

query I rowsort
SELECT ALL + col1 * col1 + col1 AS col2 FROM tab2 AS cor0
----
306
3540
992

query IIIIII rowsort
SELECT * FROM tab1, tab1 AS cor0 WHERE NOT NULL <> NULL
----

query I rowsort
SELECT DISTINCT + tab2.col1 * - col2 AS col0 FROM tab2
----
-1534
-646
-837

query I rowsort
SELECT - col1 - col0 AS col2 FROM tab1 AS cor0
----
-29
-74
-93

query I rowsort
SELECT DISTINCT + col1 * - cor0.col1 + - col0 FROM tab1 AS cor0
----
-164
-249
-679

query I rowsort
SELECT ALL - col0 * + col1 + - col1 + col1 * - col1 AS col1 FROM tab1 AS cor0
----
-1222
-750
-780

query I rowsort
SELECT ALL + cor0.col0 + + col2 FROM tab1 AS cor0
----
121
176
57

query I rowsort
SELECT ALL - cor0.col0 - - col2 FROM tab2 cor0
----
-41
-52
20

query I rowsort
SELECT DISTINCT cor0.col0 + col0 * col0 AS col1 FROM tab2 AS cor0
----
56
6162
6320

query I rowsort
SELECT ALL + col0 * - col1 + cor0.col1 * + col1 FROM tab1 AS cor0
----
-540
-871
598

query I rowsort
SELECT - col1 - - col1 * - tab0.col2 AS col2 FROM tab0
----
-194
-2924
-7553

query I rowsort
SELECT - tab1.col0 + - tab1.col1 * col2 FROM tab1
----
-1328
-1407
-634

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab1.col1 * - col2 col1 FROM tab1
----
-1248
-1404
-570

query I rowsort
SELECT - col2 * cor0.col1 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT ALL 70 + + cor0.col0 AS col2 FROM tab2 AS cor0
----
148
149
77

onlyif mysql # use DIV operator for integer division
query I rowsort label-7196
SELECT DISTINCT cor0.col1 + col1 DIV + col0 AS col1 FROM tab0 AS cor0
----
89
92
99

skipif mysql # not compatible
query I rowsort label-7196
SELECT DISTINCT cor0.col1 + col1 / + col0 AS col1 FROM tab0 AS cor0
----
89
92
99

query I rowsort
SELECT ALL 18 FROM tab2 AS cor0
----
18
18
18

query I rowsort
SELECT ALL col2 / col0 AS col1 FROM tab2 WHERE NOT NULL NOT IN ( + col2 )
----

query I rowsort
SELECT DISTINCT - col0 - tab0.col0 FROM tab0
----
-178
-48
-70

query I rowsort
SELECT ALL + col1 - col1 FROM tab1
----
0
0
0

query I rowsort
SELECT ALL - col0 + + col1 * tab1.col2 AS col1 FROM tab1 WHERE NOT NULL NOT IN ( col2 * + col1 )
----

query I rowsort
SELECT ALL - cor0.col1 * + cor0.col0 + cor0.col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 2f89eda69fa2cad4a45613ed49706fac

query I rowsort
SELECT col2 + - tab0.col0 AS col1 FROM tab0
----
-34
-7
9

query I rowsort
SELECT - col0 - - col0 AS col0 FROM tab2
----
0
0
0

query I rowsort
SELECT + tab0.col1 + 74 FROM tab0, tab1 AS cor0
----
9 values hashing to 67e38f415a9019f8ecc090ed1da704b2

onlyif mysql # use DIV operator for integer division
query I rowsort label-7206
SELECT + - col1 DIV + ( + col1 ) + + col2 AS col2 FROM tab2 AS cor0
----
25
26
37

skipif mysql # not compatible
query I rowsort label-7206
SELECT + - col1 / + ( + col1 ) + + col2 AS col2 FROM tab2 AS cor0
----
25
26
37

onlyif mysql # use DIV operator for integer division
query I rowsort label-7207
SELECT DISTINCT + col1 + col2 DIV ( + col2 * col1 + + ( + col1 ) * col0 ) AS col0 FROM tab1
----
10
13
26

skipif mysql # not compatible
query I rowsort label-7207
SELECT DISTINCT + col1 + col2 / ( + col2 * col1 + + ( + col1 ) * col0 ) AS col0 FROM tab1
----
10
13
26

query I rowsort
SELECT ( - col2 ) + + 70 + - tab0.col2 AS col0 FROM tab0
----
-94
4
68

query I rowsort
SELECT - 29 + - col1 FROM tab0
----
-115
-120
-126

query I rowsort
SELECT DISTINCT - ( + col1 ) + col0 AS col1 FROM tab0 AS cor0
----
-2
-62

query I rowsort
SELECT col0 + col0 * - col1 AS col0 FROM tab1
----
-576
-75
-960

query I rowsort
SELECT ALL 64 AS col1 FROM tab2
----
64
64
64

query I rowsort
SELECT - 14 FROM tab0
----
-14
-14
-14

onlyif mysql # use DIV operator for integer division
query I rowsort label-7214
SELECT ALL - col1 DIV col1 AS col1 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-7214
SELECT ALL - col1 / col1 AS col1 FROM tab2
----
-1
-1
-1

query I rowsort
SELECT tab1.col1 * tab1.col2 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 16ae0e1090cb09b93854a4788f17716b

query I rowsort
SELECT DISTINCT col0 * - col0 AS col2 FROM tab0
----
-1225
-576
-7921

onlyif mysql # use DIV operator for integer division
query I rowsort label-7217
SELECT col0 * col2 + + col1 * col2 DIV tab0.col1 + col2 FROM tab0
----
37
7462
858

skipif mysql # not compatible
query I rowsort label-7217
SELECT col0 * col2 + + col1 * col2 / tab0.col1 + col2 FROM tab0
----
37
7462
858

query I rowsort
SELECT ALL tab0.col1 * + col0 AS col0 FROM tab0
----
2064
3395
8099

query I rowsort
SELECT + col2 + col2 + tab0.col2 * + col2 FROM tab0 WHERE NOT NULL <= ( NULL )
----

query I rowsort
SELECT ALL + tab0.col1 * + col2 * + col2 AS col1 FROM tab0
----
611884
93654
97

query I rowsort
SELECT DISTINCT + col1 * + col1 * tab2.col1 AS col2 FROM tab2
----
205379
29791
4913

query I rowsort
SELECT col2 + + col1 + col2 FROM tab0
----
152
255
99

query I rowsort
SELECT DISTINCT + col2 * col2 + - col2 AS col0 FROM tab1
----
2862
3192
9120

query I rowsort
SELECT DISTINCT col1 FROM tab2 WHERE NOT col0 + col0 * col2 = NULL
----

query I rowsort
SELECT col0 * + col1 + col1 AS col1 FROM tab1
----
104
1053
650

query I rowsort
SELECT col0 * - col1 * tab1.col0 AS col1 FROM tab1
----
-234
-40960
-83200

query I rowsort
SELECT DISTINCT - col2 * + tab1.col0 FROM tab1
----
-162
-3648
-7680

query I rowsort
SELECT ALL - tab1.col2 + col1 * col1 AS col2 FROM tab1
----
43
622
73

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL BETWEEN NULL AND + col2
----

query III rowsort
SELECT * FROM tab2 WHERE NOT ( col0 ) NOT IN ( - col2 )
----

query I rowsort
SELECT - col2 + + col1 + + col2 * + col0 FROM tab2
----
193
2061
2981

query I rowsort
SELECT - col0 AS col2 FROM tab1 WHERE - col1 IN ( + col1 )
----

query I rowsort
SELECT col1 * tab1.col1 + + col0 FROM tab1
----
164
249
679

query I rowsort
SELECT ALL + col2 AS col0 FROM tab0 WHERE NULL <= + col0 * col1 + col0
----

query I rowsort
SELECT col1 * col0 - col0 FROM tab2
----
1264
210
4524

query I rowsort
SELECT 42 AS col1 FROM tab2 AS cor0
----
42
42
42

query I rowsort
SELECT - 81 AS col0 FROM tab0
----
-81
-81
-81

query I rowsort
SELECT ALL - cor0.col1 * - cor0.col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 16ae0e1090cb09b93854a4788f17716b

onlyif mysql # use DIV operator for integer division
query I rowsort label-7239
SELECT DISTINCT col0 * + ( + col0 ) - - col1 DIV col1 col1 FROM tab1 AS cor0
----
10
4097
6401

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7239
SELECT DISTINCT col0 * + ( + col0 ) - - col1 / col1 col1 FROM tab1 AS cor0
----
10
4097
6401

query I rowsort
SELECT + col0 + - col1 * - 14 FROM tab2 AS cor0
----
317
441
904

query I rowsort
SELECT - col2 + 56 AS col0 FROM tab1 AS cor0
----
-1
-40
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 16 col0 FROM tab1
----
16
16
16

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + - ( - ( col1 ) ) * - col0 col1 FROM tab2 AS cor0
----
-1264
-210
-4524

query I rowsort
SELECT ALL col0 - + 9 AS col1 FROM tab2 AS cor0
----
-2
69
70

query I rowsort
SELECT + col2 + 32 + col1 AS col1 FROM tab0 AS cor0
----
130
151
205

query I rowsort
SELECT - 47 * col1 FROM tab1 cor0
----
-1222
-470
-611

query I rowsort
SELECT DISTINCT + col0 + col1 * col2 * - 16 AS col2 FROM tab1 AS cor0
----
-19888
-22461
-9056

query I rowsort
SELECT ( + 94 ) + + col1 * 26 + cor0.col1 AS col2 FROM tab0 AS cor0
----
2416
2551
2713

query I rowsort
SELECT DISTINCT tab2.col2 + tab2.col0 * - tab2.col2 + - col1 * - col1 FROM tab2
----
-2675
1479
799

query I rowsort
SELECT ALL col2 + - 35 FROM tab0
----
-2
-34
47

onlyif mysql # use DIV operator for integer division
query I rowsort label-7251
SELECT - CAST( - col2 AS SIGNED ) * col1 + - 75 DIV col1 + + col2 AS col1 FROM tab0 cor0
----
2871
7544
98

skipif mysql # not compatible
query I rowsort label-7251
SELECT - CAST ( - col2 AS INTEGER ) * col1 + - 75 / col1 + + col2 AS col1 FROM tab0 cor0
----
2871
7544
98

query I rowsort
SELECT + col2 + col0 * cor0.col0 FROM tab1 AS cor0
----
4153
63
6496

query I rowsort
SELECT + ( 94 ) FROM tab0 AS cor0
----
94
94
94

query I rowsort
SELECT col2 + + col0 * + tab1.col1 AS col1 FROM tab1
----
1136
132
697

query I rowsort
SELECT - 27 * col1 AS col0 FROM tab1 AS cor0
----
-270
-351
-702

query I rowsort
SELECT DISTINCT + + cor1.col0 * 44 AS col0 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
132
2816
3520

query I rowsort
SELECT ALL - col0 * 60 FROM tab0
----
-1440
-2100
-5340

query I rowsort
SELECT DISTINCT ( 80 ) + col0 * + col2 * - 62 + - col2 FROM tab1 AS cor0
----
-10018
-226153
-476176

query I rowsort
SELECT DISTINCT 10 * tab2.col0 FROM tab2
----
70
780
790

query I rowsort
SELECT ALL - - col0 + - col0 AS col0 FROM tab2 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 10 col2 FROM tab0 cor0
----
10
10
10

query I rowsort
SELECT - 84 + col1 + col0 FROM tab2 AS cor0
----
-46
12
53

query I rowsort
SELECT - col2 * 98 * - col2 FROM tab0
----
106722
658952
98

query I rowsort
SELECT DISTINCT - - col2 * - col1 AS col2 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT ALL - - 10 + col1 * col0 FROM tab2 AS cor0
----
1353
227
4612

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-7267
SELECT - 15 DIV - cor0.col1 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7267
SELECT - 15 / - cor0.col1 FROM tab2 cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 col2 FROM tab1 cor0
----
-10
-13
-26

query I rowsort
SELECT tab2.col1 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7270
SELECT DISTINCT CAST( NULL AS SIGNED ) + col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7270
SELECT DISTINCT CAST ( NULL AS INTEGER ) + col0 FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT col1 * tab1.col1 + tab1.col0 AS col1 FROM tab1
----
164
249
679

query I rowsort
SELECT col0 * + 85 FROM tab0
----
2040
2975
7565

onlyif mysql # use DIV operator for integer division
query I rowsort label-7273
SELECT DISTINCT ( col2 ) * col2 DIV tab2.col0 + - col2 * + col1 AS col0 FROM tab2
----
-1526
-628
-733

skipif mysql # not compatible
query I rowsort label-7273
SELECT DISTINCT ( col2 ) * col2 / tab2.col0 + - col2 * + col1 AS col0 FROM tab2
----
-1526
-628
-733

query I rowsort
SELECT ALL col2 * col1 + - col1 * col2 FROM tab1
----
0
0
0

query I rowsort
SELECT col1 + - col1 * - tab1.col2 AS col2 FROM tab1
----
1261
1430
580

query I rowsort
SELECT - 78 * cor0.col1 AS col0 FROM tab1 AS cor0
----
-1014
-2028
-780

query I rowsort
SELECT - col1 * col0 + - col1 AS col1 FROM tab0 cor0
----
-2150
-3492
-8190

query I rowsort
SELECT - 74 + + col2 AS col1 FROM tab0 AS cor0
----
-41
-73
8

query I rowsort
SELECT - ( + col2 * - col2 ) FROM tab1
----
2916
3249
9216

onlyif mysql # use DIV operator for integer division
query I rowsort label-7280
SELECT + col2 DIV col1 AS col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7280
SELECT + col2 / col1 AS col1 FROM tab0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 14 col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 83e5779d2487d12495e7d816c797264f

query I rowsort
SELECT + col2 + - col1 AS col0 FROM tab2 AS cor0
----
-33
-4
21

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab1.col2 * + 22 col2 FROM tab1
----
1188
1254
2112

query I rowsort
SELECT + col0 + + col2 + col2 AS col1 FROM tab2
----
130
155
61

query I rowsort
SELECT DISTINCT + col0 + col2 AS col0 FROM tab2
----
104
117
34

query I rowsort
SELECT ALL 17 + 70 * + col1 AS col2 FROM tab1
----
1837
717
927

query I rowsort
SELECT DISTINCT 72 * 71 + - col1 + - col2 FROM tab1
----
5003
5032
5045

onlyif mysql # use DIV operator for integer division
query I rowsort label-7288
SELECT + col1 * + col0 + col2 DIV - col1 + + col0 * + tab2.col0 * - col0 AS col2 FROM tab2
----
-126
-469950
-491698

skipif mysql # not compatible
query I rowsort label-7288
SELECT + col1 * + col0 + col2 / - col1 + + col0 * + tab2.col0 * - col0 AS col2 FROM tab2
----
-126
-469950
-491698

query I rowsort
SELECT ALL col0 + - tab2.col0 FROM tab2
----
0
0
0

query I rowsort
SELECT ALL + - col1 * col1 + col0 FROM tab2 AS cor0
----
-210
-3403
-954

query I rowsort
SELECT DISTINCT col2 * 90 FROM tab0 AS cor0
----
2970
7380
90

query I rowsort
SELECT DISTINCT + col2 * 35 FROM tab0 AS cor0
----
1155
2870
35

onlyif mysql # use DIV operator for integer division
query I rowsort label-7293
SELECT ALL - col0 DIV + 15 FROM tab0 AS cor0
----
-1
-2
-5

skipif mysql # not compatible
query I rowsort label-7293
SELECT ALL - col0 / + 15 FROM tab0 AS cor0
----
-1
-2
-5

onlyif mysql # use DIV operator for integer division
query I rowsort label-7294
SELECT + - ( cor0.col2 ) DIV - col1 + - col0 + - col0 AS col2 FROM tab2 AS cor0
----
-14
-156
-156

skipif mysql # not compatible
query I rowsort label-7294
SELECT + - ( cor0.col2 ) / - col1 + - col0 + - col0 AS col2 FROM tab2 AS cor0
----
-14
-156
-156

query I rowsort
SELECT + col1 + 76 AS col0 FROM tab2 AS cor0
----
107
135
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 57 col2 FROM tab0 AS cor0
----
57
57
57

onlyif mysql # use DIV operator for integer division
query I rowsort label-7297
SELECT DISTINCT + + col0 DIV 71 col1 FROM tab1 AS cor0
----
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7297
SELECT DISTINCT + + col0 / 71 col1 FROM tab1 AS cor0
----
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( 96 ) col1 FROM tab1 AS cor0
----
96
96
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-7299
SELECT + + ( - col0 ) DIV + col0 AS col0 FROM tab2 cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-7299
SELECT + + ( - col0 ) / + col0 AS col0 FROM tab2 cor0
----
-1
-1
-1

onlyif mysql # use DIV operator for integer division
query I rowsort label-7300
SELECT DISTINCT + - col0 DIV col1 FROM tab1 cor0
----
-6
0

skipif mysql # not compatible
query I rowsort label-7300
SELECT DISTINCT + - col0 / col1 FROM tab1 cor0
----
-6
0

query I rowsort
SELECT - 26 FROM tab2, tab2 AS cor0
----
9 values hashing to 47d0574274146de273829785364ada39

query I rowsort
SELECT DISTINCT - 39 FROM tab1, tab1 cor0
----
-39

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col1 * cor0.col2 + col1 col1 FROM tab0 AS cor0
----
194
2924
7553

query I rowsort
SELECT ALL - cor0.col0 FROM tab0, tab1 cor0
----
9 values hashing to 4ec304b8ce935f2226e7548d72c2b2f0

query I rowsort
SELECT DISTINCT 71 FROM tab1, tab2 AS cor0
----
71

query I rowsort
SELECT ALL - col2 + - col1 + + col0 AS col2 FROM tab0
----
-63
-84
-95

query I rowsort
SELECT + 18 * tab2.col2 + - 82 FROM tab2, tab2 cor0
----
9 values hashing to 8b2bc46e3940752484b0ef64c7efdfad

query I rowsort
SELECT col2 * col1 + + col0 AS col0 FROM tab0 AS cor0
----
132
2862
7551

query I rowsort
SELECT DISTINCT + col1 * 97 FROM tab2 AS cor0
----
1649
3007
5723

onlyif mysql # use DIV operator for integer division
query I rowsort label-7310
SELECT - ( col0 ) DIV - col2 AS col1 FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-7310
SELECT - ( col0 ) / - col2 AS col1 FROM tab1 AS cor0
----
0
0
1

query I rowsort
SELECT ALL - 46 - 80 FROM tab2 cor0
----
-126
-126
-126

query I rowsort
SELECT DISTINCT ( col2 ) * + col1 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT DISTINCT - col2 * 22 AS col2 FROM tab1 AS cor0
----
-1188
-1254
-2112

query I rowsort
SELECT DISTINCT - + 21 * col2 FROM tab0 AS cor0
----
-1722
-21
-693

query I rowsort
SELECT ALL 40 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to e4d10f7d6c34a281f524e45e82ebd2a0

query I rowsort
SELECT - col1 - - col1 * + ( - tab1.col2 ) FROM tab1
----
-1261
-1430
-580

onlyif mysql # use DIV operator for integer division
query I rowsort label-7317
SELECT col1 - col0 DIV col2 AS col2 FROM tab0
----
62
86
90

skipif mysql # not compatible
query I rowsort label-7317
SELECT col1 - col0 / col2 AS col2 FROM tab0
----
62
86
90

onlyif mysql # use DIV operator for integer division
query I rowsort label-7318
SELECT + col2 DIV + col0 + - 39 FROM tab0
----
-38
-39
-39

skipif mysql # not compatible
query I rowsort label-7318
SELECT + col2 / + col0 + - 39 FROM tab0
----
-38
-39
-39

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + col1 col1 FROM tab1 AS cor0
----
109
67
80

query I rowsort
SELECT - - 33 + - col2 + ( + col2 * - cor0.col0 ) AS col0 FROM tab0 AS cor0
----
-3
-7347
-792

query I rowsort
SELECT ALL cor0.col1 + - cor0.col0 FROM tab1 AS cor0
----
-54
-67
23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * + col1 - + col0 col0 FROM tab1 AS cor0
----
-164
-249
-679

query I rowsort
SELECT + + 93 * + col0 * + 88 FROM tab1 AS cor0
----
24552
523776
654720

query I rowsort
SELECT DISTINCT + - cor0.col2 + - col2 FROM tab0 cor0
----
-164
-2
-66

query I rowsort
SELECT ALL + - col1 - 94 AS col0 FROM tab2 AS cor0
----
-111
-125
-153

query I rowsort
SELECT DISTINCT - cor0.col1 * - 44 * 98 + col0 * + ( cor0.col1 + + col0 ) * ( col0 ) FROM tab0 AS cor0
----
1818172
434192
579964

skipif mysql # not compatible
query I rowsort
SELECT + - col0 + + CAST ( - col2 AS REAL ) FROM tab2 AS cor0
----
-104
-117
-34

query I rowsort
SELECT ALL - col2 * cor0.col0 + + 90 AS col1 FROM tab1 AS cor0
----
-3558
-72
-7590

query I rowsort
SELECT ALL col1 + + col0 AS col2 FROM tab1 AS cor0
----
29
74
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * + cor0.col2 col0 FROM tab2 AS cor0
----
1444
676
729

query I rowsort
SELECT ALL col1 * 25 + col2 FROM tab1 AS cor0
----
307
421
704

query I rowsort
SELECT DISTINCT + col0 + + 25 - col1 FROM tab2 AS cor0
----
1
44
87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 38 col2 FROM tab2, tab1 AS cor0, tab2 cor1
----
27 values hashing to e8c064543bf0f2e57329db1bb0a411e3

query I rowsort
SELECT + col2 * tab2.col1 * + col1 FROM tab2
----
10982
25947
90506

onlyif mysql # use DIV operator for integer division
query I rowsort label-7335
SELECT DISTINCT + 81 * + col2 + 17 * tab0.col0 DIV col0 FROM tab0
----
2690
6659
98

skipif mysql # not compatible
query I rowsort label-7335
SELECT DISTINCT + 81 * + col2 + 17 * tab0.col0 / col0 FROM tab0
----
2690
6659
98

query I rowsort
SELECT ALL col1 + + col1 - 0 * - cor0.col0 AS col0 FROM tab1 AS cor0
----
20
26
52

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7337
SELECT - cor0.col1 + - CAST( NULL AS SIGNED ) AS col2 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7337
SELECT - cor0.col1 + - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col1 * + 32 - 62 AS col1 FROM tab2 AS cor0
----
1826
482
930

query I rowsort
SELECT DISTINCT ( col2 ) FROM tab2
----
26
27
38

query I rowsort
SELECT ALL + 73 * col0 AS col2 FROM tab0
----
1752
2555
6497

query I rowsort
SELECT ALL + col0 * col1 AS col2 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT DISTINCT 55 - cor0.col2 FROM tab2, tab0 AS cor0, tab1 cor1
----
-27
22
54

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7343
SELECT CAST( NULL AS SIGNED ) AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-7343
SELECT CAST ( NULL AS INTEGER ) AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # use DIV operator for integer division
query I rowsort label-7344
SELECT - - col0 + - col0 * 57 DIV cor0.col2 FROM tab0 AS cor0
----
-17
-1960
28

skipif mysql # not compatible
query I rowsort label-7344
SELECT - - col0 + - col0 * 57 / cor0.col2 FROM tab0 AS cor0
----
-17
-1960
28

query I rowsort
SELECT DISTINCT + - cor0.col1 * 46 AS col2 FROM tab1 AS cor0
----
-1196
-460
-598

onlyif mysql # use DIV operator for integer division
query I rowsort label-7346
SELECT ALL + col1 DIV col2 AS col2 FROM tab0 AS cor0
----
1
2
97

skipif mysql # not compatible
query I rowsort label-7346
SELECT ALL + col1 / col2 AS col2 FROM tab0 AS cor0
----
1
2
97

query I rowsort
SELECT - 78 * col2 FROM tab0 AS cor0
----
-2574
-6396
-78

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7348
SELECT DISTINCT + CAST( NULL AS SIGNED ) AS col0 FROM tab0, tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7348
SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col0 FROM tab0, tab1 cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + col2 col0 FROM tab2
----
52
54
76

query I rowsort
SELECT - col0 + ( + col0 * + col2 ) FROM tab0
----
0
7209
768

query I rowsort
SELECT + col0 * - col2 + col2 AS col2 FROM tab1
----
-108
-3591
-7584

query I rowsort
SELECT DISTINCT cor1.col0 FROM tab0, tab0 AS cor0, tab1 cor1
----
3
64
80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7353
SELECT col0 * col1 + + col1 * + tab0.col1 * - 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-7353
SELECT col0 * col1 + + col1 * + tab0.col1 * - CAST ( NULL AS INTEGER ) col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - + 50 AS col2 FROM tab1 AS cor0
----
-50
-50
-50

query I rowsort
SELECT - - col2 * col2 + 0 FROM tab1 AS cor0
----
2916
3249
9216

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7356
SELECT - cor0.col0 + - col0 + CAST( NULL AS DECIMAL ) / ( - col1 + - CAST( col1 AS SIGNED ) ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7356
SELECT - cor0.col0 + - col0 + CAST ( NULL AS REAL ) / ( - col1 + - CAST ( col1 AS INTEGER ) ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - - cor0.col1 * + col0 + + col2 AS col0 FROM tab2 AS cor0
----
1381
244
4628

query I rowsort
SELECT - - 99 + col2 * 50 FROM tab0 AS cor0
----
149
1749
4199

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col2 + + cor0.col1 * col0 * - col1 col2 FROM tab1 cor0
----
-13424
-1974
-6343

query I rowsort
SELECT DISTINCT 69 AS col0 FROM tab2 AS cor0
----
69

query I rowsort
SELECT DISTINCT + + 84 + col0 AS col1 FROM tab2 AS cor0
----
162
163
91

query I rowsort
SELECT - - col2 * + col0 + + ( + cor0.col1 ) FROM tab1 AS cor0
----
188
3658
7693

skipif mysql # not compatible
query I rowsort
SELECT ALL - col2 + - col1 + col1 * + CAST ( - col0 AS REAL ) FROM tab2
----
-1398
-275
-4687

query I rowsort
SELECT + col0 + col1 * - col0 * col2 FROM tab2
----
-119574
-50955
-5852

query I rowsort
SELECT col1 * ( + tab2.col0 ) FROM tab2
----
1343
217
4602

query I rowsort
SELECT + 32 + + col2 - tab2.col2 FROM tab2
----
32
32
32

skipif mysql # not compatible
query I rowsort
SELECT - CAST ( - col2 AS REAL ) * col0 + - col1 * - col2 AS col2 FROM tab2
----
1026
3562
3648

query I rowsort
SELECT ALL - 48 * col0 + 1 * + ( + col2 ) + 81 FROM tab2 AS cor0
----
-228
-3637
-3673

query I rowsort
SELECT + 11 + col1 + + 25 FROM tab0 AS cor0
----
122
127
133

query I rowsort
SELECT DISTINCT - col2 * - col2 * + cor0.col2 FROM tab2 AS cor0
----
17576
19683
54872

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 4 col2 FROM tab0 AS cor0
----
-4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + ( - col0 ) + - col0 col1 FROM tab2 cor0
----
-14
-156
-158

query I rowsort
SELECT DISTINCT - cor0.col1 * col1 FROM tab1 AS cor0
----
-100
-169
-676

query I rowsort
SELECT ALL + 86 AS col2 FROM tab2
----
86
86
86

query I rowsort
SELECT - 33 * - 73 AS col0 FROM tab2 AS cor0
----
2409
2409
2409

query I rowsort
SELECT 20 FROM tab1
----
20
20
20

query I rowsort
SELECT ALL - - col2 + - col1 AS col2 FROM tab1 AS cor0
----
28
47
83

query I rowsort
SELECT 78 + + col1 AS col2 FROM tab2 AS cor0
----
109
137
95

query I rowsort
SELECT + 51 AS col0 FROM tab1 AS cor0
----
51
51
51

query I rowsort
SELECT 36 * + cor0.col2 AS col1 FROM tab1 cor0
----
1944
2052
3456

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7381
SELECT DISTINCT - ( col2 ) * CAST( NULL AS SIGNED ) + col1 * col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7381
SELECT DISTINCT - ( col2 ) * CAST ( NULL AS INTEGER ) + col1 * col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT - cor0.col2 + col1 FROM tab0 cor0
----
53
9
96

query I rowsort
SELECT + + 63 AS col0 FROM tab2 AS cor0
----
63
63
63

query I rowsort
SELECT 90 + col0 * ( col1 ) FROM tab2 AS cor0
----
1433
307
4692

onlyif mysql # use DIV operator for integer division
query I rowsort label-7385
SELECT ALL - col0 * col2 * + col2 - + cor0.col1 DIV CAST( - col0 * col0 AS SIGNED ) FROM tab1 AS cor0
----
-207936
-737280
-8746

skipif mysql # not compatible
query I rowsort label-7385
SELECT ALL - col0 * col2 * + col2 - + cor0.col1 / CAST ( - col0 * col0 AS INTEGER ) FROM tab1 AS cor0
----
-207936
-737280
-8746

query I rowsort
SELECT + col1 * 39 AS col2 FROM tab1 AS cor0
----
1014
390
507

query I rowsort
SELECT + + col1 * - ( - col2 ) AS col2 FROM tab1 cor0
----
1248
1404
570

onlyif mysql # use DIV operator for integer division
query I rowsort label-7388
SELECT DISTINCT col1 DIV - col0 FROM tab1 AS cor0
----
-8
0

skipif mysql # not compatible
query I rowsort label-7388
SELECT DISTINCT col1 / - col0 FROM tab1 AS cor0
----
-8
0

query I rowsort
SELECT ALL ( + 41 ) AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 5b18986bb294412b3d9f07b7e6fc821e

query I rowsort
SELECT - col0 + col0 AS col2 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-7391
SELECT - col0 * - col1 - col1 DIV - col0 AS col1 FROM tab1 cor0
----
1040
640
86

skipif mysql # not compatible
query I rowsort label-7391
SELECT - col0 * - col1 - col1 / - col0 AS col1 FROM tab1 cor0
----
1040
640
86

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7392
SELECT col2 * - 21 + ( col2 ) - CAST( col1 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-1106
-1150
-1933

skipif mysql # not compatible
query I rowsort label-7392
SELECT col2 * - 21 + ( col2 ) - CAST ( col1 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-1106
-1150
-1933

query I rowsort
SELECT col1 + 40 * - col2 - + col2 FROM tab1 cor0
----
-2188
-2327
-3923

query I rowsort
SELECT + 79 + cor0.col2 AS col0 FROM tab2 AS cor0
----
105
106
117

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7395
SELECT - ( + col1 ) + col0 * CAST( col1 AS SIGNED ) * col0 AS col2 FROM tab1 cor0
----
208
40950
83187

skipif mysql # not compatible
query I rowsort label-7395
SELECT - ( + col1 ) + col0 * CAST ( col1 AS INTEGER ) * col0 AS col2 FROM tab1 cor0
----
208
40950
83187

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + 90 * + col1 * - col1 col2 FROM tab0
----
-665607
-745208
-846809

query I rowsort
SELECT - col0 + 68 AS col0 FROM tab1 cor0
----
-12
4
65

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7398
SELECT - CAST( col2 AS SIGNED ) * + col2 FROM tab0 AS cor0
----
-1
-1089
-6724

skipif mysql # not compatible
query I rowsort label-7398
SELECT - CAST ( col2 AS INTEGER ) * + col2 FROM tab0 AS cor0
----
-1
-1089
-6724

query I rowsort
SELECT + col0 + 10 FROM tab0 AS cor0
----
34
45
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col0 * - 64 * col2 col2 FROM tab0 AS cor0
----
2240
467072
50688

query I rowsort
SELECT - 45 + col0 FROM tab0 AS cor0
----
-10
-21
44

query I rowsort
SELECT + - 9 * col1 FROM tab0 AS cor0
----
-774
-819
-873

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7403
SELECT ( col1 ) - col1 * - CAST( NULL AS DECIMAL ) FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7403
SELECT ( col1 ) - col1 * - CAST ( NULL AS REAL ) FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 80 AS col1 FROM tab0, tab1 AS cor0
----
80

query I rowsort
SELECT + col0 + - col0 + - col2 FROM tab0 AS cor0
----
-1
-33
-82

query I rowsort
SELECT ALL + + ( col2 ) FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT ALL col0 * 21 AS col1 FROM tab2 AS cor0
----
147
1638
1659

query I rowsort
SELECT ALL - 78 * - col1 FROM tab1 AS cor0
----
1014
2028
780

query I rowsort
SELECT - 97 * ( col2 ) FROM tab0 AS cor0
----
-3201
-7954
-97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7410
SELECT DISTINCT - - CAST( ( - col0 ) AS SIGNED ) + - cor0.col2 AS col1 FROM tab0 AS cor0
----
-171
-36
-57

skipif mysql # not compatible
query I rowsort label-7410
SELECT DISTINCT - - CAST ( ( - col0 ) AS INTEGER ) + - cor0.col2 AS col1 FROM tab0 AS cor0
----
-171
-36
-57

query I rowsort
SELECT col2 * 90 * cor0.col2 - + 28 * col0 AS col0 FROM tab1 AS cor0
----
262356
290618
827200

query I rowsort
SELECT DISTINCT col2 + + 54 AS col1 FROM tab1 AS cor0
----
108
111
150

query I rowsort
SELECT ALL + cor0.col1 AS col1 FROM tab2, tab0 cor0
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc

query I rowsort
SELECT - - ( col0 ) + 57 FROM tab1 AS cor0
----
121
137
60

query I rowsort
SELECT ALL + col0 + - cor0.col1 FROM tab0 cor0
----
-2
-62
-62

query I rowsort
SELECT DISTINCT + + ( col0 ) * col2 AS col0 FROM tab0 AS cor0
----
35
7298
792

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 - col2 col0 FROM tab1 AS cor0
----
-28
-47
-83

query I rowsort
SELECT 17 + cor0.col2 FROM tab2 AS cor0
----
43
44
55

onlyif mysql # use DIV operator for integer division
query I rowsort label-7419
SELECT DISTINCT 13 * 5 DIV col0 + col2 * - col2 FROM tab1
----
-2895
-3248
-9216

skipif mysql # not compatible
query I rowsort label-7419
SELECT DISTINCT 13 * 5 / col0 + col2 * - col2 FROM tab1
----
-2895
-3248
-9216

query I rowsort
SELECT DISTINCT + tab1.col0 AS col2 FROM tab1, tab2 AS cor0, tab2, tab0 AS cor1
----
3
64
80

query I rowsort
SELECT DISTINCT - 52 + 89 FROM tab1
----
37

query I rowsort
SELECT ALL 85 AS col1 FROM tab0, tab1 cor0
----
9 values hashing to aafa8e5cfb9e02cea8717833e7581f7b

query I rowsort
SELECT - col0 + + col2 * col0 AS col0 FROM tab2 AS cor0
----
182
1950
2923

query I rowsort
SELECT ALL + + col2 AS col1 FROM tab0 cor0
----
1
33
82

query I rowsort
SELECT DISTINCT + col1 * + col0 * 90 AS col2 FROM tab1
----
57600
7020
93600

query I rowsort
SELECT ALL - 78 * cor0.col2 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 4504c9ef562931c1434e7dfbf2f73e33

query I rowsort
SELECT DISTINCT tab0.col2 * - 96 AS col0 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
-3168
-7872
-96

query I rowsort
SELECT + col0 * + col1 - + col1 FROM tab0
----
1978
3298
8008

query I rowsort
SELECT DISTINCT col2 - 8 AS col0 FROM tab1
----
46
49
88

query I rowsort
SELECT - col0 * - ( col1 ) FROM tab2
----
1343
217
4602

onlyif mysql # use DIV operator for integer division
query I rowsort label-7431
SELECT - - cor0.col2 DIV + col1 AS col0 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7431
SELECT - - cor0.col2 / + col1 AS col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT col1 - + col0 AS col1 FROM tab2
----
-19
-62
24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 + cor0.col1 col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT - 97 + + col1 * 93 FROM tab2 AS cor0
----
1484
2786
5390

query I rowsort
SELECT DISTINCT - col0 + col2 AS col1 FROM tab0 AS cor0
----
-34
-7
9

query I rowsort
SELECT DISTINCT + 92 AS col1 FROM tab2 AS cor0
----
92

query I rowsort
SELECT + ( + col1 ) * - col0 AS col1 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT ALL + 50 * - cor0.col0 AS col1 FROM tab1 AS cor0
----
-150
-3200
-4000

query I rowsort
SELECT - - col1 * col0 AS col2 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT ALL 77 AS col1 FROM tab1 cor0
----
77
77
77

query I rowsort
SELECT DISTINCT + col1 * - col1 + - col0 FROM tab2 AS cor0
----
-3559
-368
-968

query I rowsort
SELECT - col0 + col1 * - col0 FROM tab1 AS cor0
----
-1120
-704
-81

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7443
SELECT ALL + col1 + - cor0.col0 * + CAST( col1 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-1027
-52
-630

skipif mysql # not compatible
query I rowsort label-7443
SELECT ALL + col1 + - cor0.col0 * + CAST ( col1 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-1027
-52
-630

query I rowsort
SELECT - + 13 AS col1 FROM tab0 AS cor0
----
-13
-13
-13

query I rowsort
SELECT - - col2 * col1 AS col0 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT DISTINCT 52 * col1 AS col2 FROM tab2 AS cor0
----
1612
3068
884

query I rowsort
SELECT - 34 FROM tab1
----
-34
-34
-34

query I rowsort
SELECT DISTINCT - col0 * + cor0.col1 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT + 78 * col1 FROM tab1 AS cor0
----
1014
2028
780

query I rowsort
SELECT DISTINCT - 86 * 55 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-4730

query I rowsort
SELECT col0 + - col0 * - col1 FROM tab1 AS cor0
----
1120
704
81

onlyif mysql # use DIV operator for integer division
query I rowsort label-7452
SELECT + col0 DIV + col0 AS col2 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-7452
SELECT + col0 / + col0 AS col2 FROM tab1 AS cor0
----
1
1
1

query I rowsort
SELECT DISTINCT - 35 * - col1 + cor0.col2 FROM tab2 AS cor0
----
1112
2091
633

query I rowsort
SELECT DISTINCT 91 FROM tab2 AS cor0
----
91

query I rowsort
SELECT ALL - col2 - - ( col1 ) * - col0 AS col1 FROM tab0
----
-2097
-3396
-8181

query I rowsort
SELECT ALL 19 FROM tab2, tab1 cor0
----
9 values hashing to 3dac30dc82c9e5acbbd3a5c5d1aeee11

query I rowsort
SELECT ALL - - col2 * - cor0.col1 * col0 AS col1 FROM tab0 AS cor0
----
-3395
-664118
-68112

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + + col0 * col2 * + tab1.col0 col0 FROM tab1
----
233462
460
614387

onlyif mysql # use DIV operator for integer division
query I rowsort label-7459
SELECT col2 DIV - col0 AS col2 FROM tab2
----
-3
0
0

skipif mysql # not compatible
quer