hash-threshold 8

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

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

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

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

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

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

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

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

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

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

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

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

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

query I rowsort
SELECT - col2 + + ( 8 ) * - cor0.col1 AS col1 FROM tab1 AS cor0
----
-137
-200
-262

query I rowsort
SELECT cor0.col0 * + 84 FROM tab1 cor0
----
252
5376
6720

onlyif mysql # use DIV operator for integer division
query I rowsort label-3
SELECT + col2 * col2 DIV - 36 + + col0 AS col1 FROM tab2 AS cor0
----
-13
39
60

skipif mysql # not compatible
query I rowsort label-3
SELECT + col2 * col2 / - 36 + + col0 AS col1 FROM tab2 AS cor0
----
-13
39
60

query I rowsort
SELECT DISTINCT + col1 + col1 * 54 AS col1 FROM tab1
----
1430
550
715

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

skipif mysql # not compatible
query I rowsort label-5
SELECT DISTINCT - col0 + + ( col0 ) * col0 / ( col0 ) AS col2 FROM tab2
----
0

query I rowsort
SELECT ALL + col1 + 16 * col2 FROM tab2 cor0
----
463
475
625

query I rowsort
SELECT DISTINCT + - col0 + 24 FROM tab1 AS cor0
----
-40
-56
21

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

query I rowsort
SELECT - 96 AS col2 FROM tab0 AS cor0
----
-96
-96
-96

onlyif mysql # use DIV operator for integer division
query I rowsort label-10
SELECT DISTINCT CAST( + col1 AS SIGNED ) + col1 DIV ( col1 + cor0.col0 ) FROM tab0 AS cor0
----
86
91
97

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

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

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

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

query I rowsort
SELECT DISTINCT - 24 * 22 * + col0 FROM tab0 AS cor0
----
-12672
-18480
-46992

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

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

query I rowsort
SELECT ALL ( + ( col0 ) ) AS col1 FROM tab0 cor0
----
24
35
89

query I rowsort
SELECT DISTINCT - 79 + + col1 FROM tab0 AS cor0
----
12
18
7

query I rowsort
SELECT ALL + 82 - col0 FROM tab1 AS cor0
----
18
2
79

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

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

query I rowsort
SELECT + 71 + col0 * - col0 AS col0 FROM tab1 AS cor0
----
-4025
-6329
62

query I rowsort
SELECT ALL + 86 - col1 FROM tab0 AS cor0
----
-11
-5
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-21
SELECT + col2 DIV - col0 + + col0 AS col0 FROM tab1
----
-15
64
79

skipif mysql # not compatible
query I rowsort label-21
SELECT + col2 / - col0 + + col0 AS col0 FROM tab1
----
-15
64
79

query I rowsort
SELECT DISTINCT col1 + ( 55 ) + + tab2.col0 AS col1 FROM tab2
----
151
192
93

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab2.col1 col2 FROM tab2, tab0, tab2 cor0
----
27 values hashing to 7599b480125de521efed71b5b2413c7d

query I rowsort
SELECT DISTINCT 22 + + col1 FROM tab2 cor0
----
39
53
81

query I rowsort
SELECT ALL + 54 AS col0 FROM tab2 AS cor0
----
54
54
54

query I rowsort
SELECT - - col2 * col2 - 4 AS col0 FROM tab1 cor0
----
2912
3245
9212

onlyif mysql # use DIV operator for integer division
query I rowsort label-28
SELECT - col0 DIV cor0.col0 + ( - ( col0 ) * - col1 ) AS col2 FROM tab2 AS cor0
----
1342
216
4601

skipif mysql # not compatible
query I rowsort label-28
SELECT - col0 / cor0.col0 + ( - ( col0 ) * - col1 ) AS col2 FROM tab2 AS cor0
----
1342
216
4601

query I rowsort
SELECT ALL + - 33 AS col0 FROM tab1 AS cor0
----
-33
-33
-33

onlyif mysql # use DIV operator for integer division
query I rowsort label-30
SELECT 68 + + col1 DIV + ( col0 ) col2 FROM tab0 AS cor0
----
69
70
71

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-30
SELECT 68 + + col1 / + ( col0 ) col2 FROM tab0 AS cor0
----
69
70
71

query I rowsort
SELECT - + col1 + + col0 + col2 AS col0 FROM tab2 AS cor0
----
100
3
45

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

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

query I rowsort
SELECT DISTINCT 93 AS col2 FROM tab0
----
93

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

query I rowsort
SELECT + ( + 11 ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to f4d199584b44732f1a897e6691b4ea00

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-38
SELECT col1 + tab1.col2 DIV - col2 FROM tab1
----
12
25
9

skipif mysql # not compatible
query I rowsort label-38
SELECT col1 + tab1.col2 / - col2 FROM tab1
----
12
25
9

query I rowsort
SELECT DISTINCT 7 - col1 * col2 FROM tab2
----
-1527
-639
-830

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - CAST ( - 9 AS REAL ) + + col0 FROM tab2 AS cor0
----
16
87
88

query I rowsort
SELECT ALL col2 * 61 FROM tab2 cor0
----
1586
1647
2318

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

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

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

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

query I rowsort
SELECT 99 + col2 * cor0.col0 FROM tab0 AS cor0
----
134
7397
891

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-47
SELECT - - col2 DIV - ( col1 ) AS col1 FROM tab1 AS cor0
----
-2
-5
-7

skipif mysql # not compatible
query I rowsort label-47
SELECT - - col2 / - ( col1 ) AS col1 FROM tab1 AS cor0
----
-2
-5
-7

query I rowsort
SELECT ( col1 ) * + col1 AS col1 FROM tab2 cor0
----
289
3481
961

query I rowsort
SELECT col1 * - ( col1 ) * + 89 FROM tab2 AS cor0
----
-25721
-309809
-85529

query I rowsort
SELECT ALL - ( - col0 ) * col1 + 94 * 90 FROM tab1 AS cor0
----
8538
9100
9500

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

query I rowsort
SELECT + col1 * cor0.col2 + + 56 + col1 * + col2 FROM tab2 cor0
----
1348
1730
3124

query I rowsort
SELECT DISTINCT + + 46 + ( cor0.col2 ) AS col0 FROM tab2 AS cor0
----
72
73
84

query I rowsort
SELECT DISTINCT + + 93 * - ( col0 + 37 ) FROM tab0 AS cor0
----
-11718
-5673
-6696

query I rowsort
SELECT 84 + + 78 AS col1 FROM tab0
----
162
162
162

query I rowsort
SELECT DISTINCT - - 39 + - 36 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
3

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

query I rowsort
SELECT DISTINCT - col0 * col2 + 82 FROM tab1 AS cor0
----
-3566
-7598
-80

onlyif mysql # use DIV operator for integer division
query I rowsort label-59
SELECT ALL col1 DIV ( + col0 * col0 ) + col2 + cor0.col0 * - col0 AS col1 FROM tab2 cor0
----
-22
-6058
-6203

skipif mysql # not compatible
query I rowsort label-59
SELECT ALL col1 / ( + col0 * col0 ) + col2 + cor0.col0 * - col0 AS col1 FROM tab2 cor0
----
-22
-6058
-6203

query I rowsort
SELECT ALL - cor1.col2 + - 86 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 6fc4ea85445730ee8f628c61aaa0bf09

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * - 80 * col2 + cor0.col2 col0 FROM tab1 AS cor0
----
-112266
-45543
-99744

onlyif mysql # use DIV operator for integer division
query I rowsort label-62
SELECT DISTINCT - - cor0.col0 DIV + col2 + + 65 - col0 AS col0 FROM tab0 AS cor0
----
-23
41
65

skipif mysql # not compatible
query I rowsort label-62
SELECT DISTINCT - - cor0.col0 / + col2 + + 65 - col0 AS col0 FROM tab0 AS cor0
----
-23
41
65

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-63
SELECT - col2 * CAST( + col0 * - col1 AS SIGNED ) + col1 AS col2 FROM tab2 AS cor0
----
119711
51051
5890

skipif mysql # not compatible
query I rowsort label-63
SELECT - col2 * CAST ( + col0 * - col1 AS INTEGER ) + col1 AS col2 FROM tab2 AS cor0
----
119711
51051
5890

query I rowsort
SELECT col2 * + col2 * - 12 FROM tab1 AS cor0
----
-110592
-34992
-38988

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

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

skipif mysql # not compatible
query I rowsort label-66
SELECT ALL + - col2 + - ( 12 ) * col0 / - col1 FROM tab2 AS cor0
----
-11
-25
17

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-68
SELECT DISTINCT - col1 DIV cor0.col1 + col0 AS col2 FROM tab1 AS cor0
----
2
63
79

skipif mysql # not compatible
query I rowsort label-68
SELECT DISTINCT - col1 / cor0.col1 + col0 AS col2 FROM tab1 AS cor0
----
2
63
79

onlyif mysql # use DIV operator for integer division
query I rowsort label-69
SELECT DISTINCT cor0.col0 + col1 + 69 DIV - col2 FROM tab0 AS cor0
----
108
180
63

skipif mysql # not compatible
query I rowsort label-69
SELECT DISTINCT cor0.col0 + col1 + 69 / - col2 FROM tab0 AS cor0
----
108
180
63

query I rowsort
SELECT ALL - + col0 + col1 * - col1 * - col1 FROM tab1 AS cor0
----
17573
2117
936

query I rowsort
SELECT DISTINCT - ( col1 ) - col0 FROM tab2 cor0
----
-137
-38
-96

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

query I rowsort
SELECT ALL + ( col0 ) + + col1 AS col0 FROM tab0 AS cor0
----
110
132
180

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-74
SELECT - CAST ( + col0 AS INTEGER ) col1 FROM tab1
----
-3
-64
-80

query I rowsort
SELECT ALL + 73 * 8 + col0 * ( - col0 ) FROM tab0 AS cor0
----
-641
-7337
8

query I rowsort
SELECT - col2 * - 80 FROM tab1 AS cor0
----
4320
4560
7680

query I rowsort
SELECT - col1 * 50 + col2 AS col1 FROM tab2 AS cor0
----
-1523
-2924
-812

query I rowsort
SELECT - 14 + cor0.col0 AS col0 FROM tab1 cor0
----
-11
50
66

onlyif mysql # use DIV operator for integer division
query I rowsort label-79
SELECT + cor0.col0 DIV + cor1.col1 AS col0 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2

skipif mysql # not compatible
query I rowsort label-79
SELECT + cor0.col0 / + cor1.col1 AS col0 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2

query I rowsort
SELECT ALL - 16 AS col2 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 71c8b08964ab47ce12158975c0ee1fd9

onlyif mysql # use DIV operator for integer division
query I rowsort label-81
SELECT col1 DIV col2 - 96 FROM tab0 AS cor0
----
-94
-95
1

skipif mysql # not compatible
query I rowsort label-81
SELECT col1 / col2 - 96 FROM tab0 AS cor0
----
-94
-95
1

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

query I rowsort
SELECT ALL ( tab0.col0 ) * + col0 * tab0.col2 + col0 FROM tab0
----
1260
19032
649611

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

query I rowsort
SELECT + + col2 * + col0 + 52 * col2 + + col2 FROM tab1 AS cor0
----
12768
3024
6669

query I rowsort
SELECT + - col1 + - ( + col2 ) * col2 FROM tab1 cor0
----
-2942
-3259
-9229

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-87
SELECT ALL col0 - - CAST( col1 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
137
38
96

skipif mysql # not compatible
query I rowsort label-87
SELECT ALL col0 - - CAST ( col1 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
137
38
96

query I rowsort
SELECT DISTINCT + cor0.col1 + ( col0 + col2 ) AS col0 FROM tab1 AS cor0
----
131
189
83

onlyif mysql # use DIV operator for integer division
query I rowsort label-89
SELECT ALL + + col1 * 77 DIV col2 - - col2 AS col2 FROM tab0 AS cor0
----
167
233
7470

skipif mysql # not compatible
query I rowsort label-89
SELECT ALL + + col1 * 77 / col2 - - col2 AS col2 FROM tab0 AS cor0
----
167
233
7470

query I rowsort
SELECT DISTINCT 91 + col1 + - 43 FROM tab2
----
107
65
79

query I rowsort
SELECT DISTINCT - col0 * - col1 + + 2 FROM tab2
----
1345
219
4604

query I rowsort
SELECT DISTINCT tab1.col0 + + col1 + col2 FROM tab1
----
131
189
83

query I rowsort
SELECT - ( - col0 + ( 64 ) * - tab2.col2 ) AS col2 FROM tab2
----
1735
1742
2511

query I rowsort
SELECT - - 87 + col2 * 93 AS col0 FROM tab2 AS cor0
----
2505
2598
3621

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( 10 ) * col1 col0 FROM tab1
----
-100
-130
-260

query I rowsort
SELECT ALL - tab2.col2 * + cor0.col1 AS col0 FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to 29760b2f582ecfa8189eb18d08ead3fd

onlyif mysql # use DIV operator for integer division
query I rowsort label-98
SELECT ALL tab0.col2 * col1 DIV + tab0.col2 AS col0 FROM tab0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-98
SELECT ALL tab0.col2 * col1 / + tab0.col2 AS col0 FROM tab0
----
86
91
97

query I rowsort
SELECT DISTINCT + col1 * + col0 + - col2 * - 79 * + col0 FROM tab0
----
584641
6160
64632

query I rowsort
SELECT + 8 - col2 * - tab0.col2 AS col0 FROM tab0
----
1097
6732
9

query I rowsort
SELECT DISTINCT tab1.col2 + tab1.col1 AS col1 FROM tab1
----
109
67
80

query I rowsort
SELECT ALL + 41 + + col2 FROM tab2
----
67
68
79

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

skipif mysql # not compatible
query I rowsort label-103
SELECT col1 + 10 / col0 FROM tab0 AS cor0
----
86
91
97

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

query I rowsort
SELECT col2 * - ( + col2 ) FROM tab0
----
-1
-1089
-6724

query I rowsort
SELECT DISTINCT col2 * + 85 AS col0 FROM tab0
----
2805
6970
85

query I rowsort
SELECT ALL + col0 * + 62 AS col2 FROM tab2 AS cor0
----
434
4836
4898

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-108
SELECT DISTINCT + col2 * + CAST( 12 AS SIGNED ) FROM tab2
----
312
324
456

skipif mysql # not compatible
query I rowsort label-108
SELECT DISTINCT + col2 * + CAST ( 12 AS INTEGER ) FROM tab2
----
312
324
456

query I rowsort
SELECT cor0.col2 + + 59 FROM tab2 AS cor0
----
85
86
97

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

query I rowsort
SELECT - 52 + col2 * + col2 AS col0 FROM tab1 cor0
----
2864
3197
9164

query I rowsort
SELECT 91 * col1 - - cor0.col0 FROM tab2 AS cor0
----
1626
2828
5447

query I rowsort
SELECT + col1 + + col2 - + tab0.col1 FROM tab0
----
1
33
82

query I rowsort
SELECT ALL 17 * col1 - - col0 FROM tab1
----
234
301
445

query I rowsort
SELECT ALL + ( tab1.col0 ) - tab1.col1 FROM tab1
----
-23
54
67

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

skipif mysql # not compatible
query I rowsort label-116
SELECT - CAST ( NULL AS INTEGER ) - ( tab2.col1 * ( col2 ) ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT ( tab2.col1 ) + tab2.col0 FROM tab2
----
137
38
96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-118
SELECT CAST( - 66 AS SIGNED ) * + col1 * - col2 AS col1 FROM tab0 AS cor0
----
187308
492492
6402

skipif mysql # not compatible
query I rowsort label-118
SELECT CAST ( - 66 AS INTEGER ) * + col1 * - col2 AS col1 FROM tab0 AS cor0
----
187308
492492
6402

query I rowsort
SELECT DISTINCT col2 * col2 + 86 FROM tab2 AS cor0
----
1530
762
815

query I rowsort
SELECT - 81 * col1 + - cor0.col1 * col0 AS col0 FROM tab1 AS cor0
----
-1450
-2093
-2184

query I rowsort
SELECT ALL + col2 + col2 * ( ( col1 ) ) AS col0 FROM tab0 AS cor0
----
2871
7544
98

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-122
SELECT ALL - ( col1 ) * CAST( col0 AS SIGNED ) col1 FROM tab1 AS cor0
----
-1040
-640
-78

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-122
SELECT ALL - ( col1 ) * CAST ( col0 AS INTEGER ) col1 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT + col1 + col0 * + 39 AS col2 FROM tab0 AS cor0
----
1022
1462
3562

onlyif mysql # use DIV operator for integer division
query I rowsort label-124
SELECT DISTINCT - - 94 * + col0 + + col0 * cor0.col2 DIV + col0 + - ( cor0.col1 ) * col0 FROM tab2 AS cor0
----
2756
468
6121

skipif mysql # not compatible
query I rowsort label-124
SELECT DISTINCT - - 94 * + col0 + + col0 * cor0.col2 / + col0 + - ( cor0.col1 ) * col0 FROM tab2 AS cor0
----
2756
468
6121

query I rowsort
SELECT DISTINCT + col2 - col0 * + col1 AS col0 FROM tab1 AS cor0
----
-24
-583
-944

query I rowsort
SELECT - col1 * col2 + + col1 * cor0.col1 FROM tab1 AS cor0
----
-1079
-470
-728

query I rowsort
SELECT 27 + col1 FROM tab0 AS cor0
----
113
118
124

query I rowsort
SELECT + cor0.col0 * + col2 * + col2 + + col0 * col1 FROM tab1 AS cor0
----
208576
738320
8826

query I rowsort
SELECT - - 87 * + col2 + - col2 AS col0 FROM tab0 AS cor0
----
2838
7052
86

query I rowsort
SELECT - - 82 - + cor0.col2 AS col0 FROM tab0 cor0
----
0
49
81

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

query I rowsort
SELECT DISTINCT + - 79 FROM tab0 AS cor0
----
-79

query I rowsort
SELECT DISTINCT + 25 * col0 FROM tab1 AS cor0
----
1600
2000
75

query I rowsort
SELECT + 64 * + col2 AS col0 FROM tab0 AS cor0
----
2112
5248
64

query I rowsort
SELECT ALL - 28 * + col2 FROM tab0 cor0
----
-2296
-28
-924

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

skipif mysql # not compatible
query I rowsort label-136
SELECT + - col1 + col2 * CAST ( col1 AS INTEGER ) FROM tab1 AS cor0
----
1235
1378
560

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

skipif mysql # not compatible
query I rowsort label-137
SELECT ALL + 29 / col1 AS col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT - - col2 * 5 AS col2 FROM tab0 AS cor0
----
165
410
5

query I rowsort
SELECT - col0 * 60 FROM tab1 cor0
----
-180
-3840
-4800

query I rowsort
SELECT - col0 + 50 * col1 FROM tab0 AS cor0
----
4276
4461
4815

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

query I rowsort
SELECT + + col1 + + 14 FROM tab2 AS cor0
----
31
45
73

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + cor0.col1 * cor0.col1 + + 77 col0 FROM tab1 AS cor0
----
-23
-599
-92

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

query I rowsort
SELECT ALL + col1 + - ( col2 ) * + col2 AS col2 FROM tab1 AS cor0
----
-2890
-3239
-9203

query I rowsort
SELECT DISTINCT + col0 + 96 + 69 AS col1 FROM tab0 AS cor0
----
189
200
254

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 58 col2 FROM tab1, tab1 AS cor0
----
9 values hashing to ef6e63aeed2581a168f07646d258f666

query I rowsort
SELECT ALL + 28 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to aad32232c428b3ecb5ada63f7e9b0a97

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

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

query I rowsort
SELECT DISTINCT + 81 * - 47 FROM tab1 AS cor0
----
-3807

query I rowsort
SELECT col1 - 47 FROM tab2
----
-16
-30
12

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + col0 * - col1 col0 FROM tab2
----
-1264
-210
-4524

query I rowsort
SELECT col1 + col0 FROM tab2 WHERE NULL IN ( col1 )
----

query I rowsort
SELECT DISTINCT - col0 * - col2 + - col1 FROM tab2
----
158
1969
2985

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL = NULL
----

query I rowsort
SELECT + col2 + col1 + - col1 * col1 FROM tab1
----
-33
-596
-60

query I rowsort
SELECT tab1.col0 * - col1 * col2 FROM tab1 WHERE NOT col1 = - col2
----
-36480
-4212
-99840

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

query I rowsort
SELECT ALL col0 * col0 * col2 + - col2 AS col2 FROM tab2
----
1296
158158
237120

query I rowsort
SELECT - col0 + tab0.col1 * col2 FROM tab0
----
2814
62
7373

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 / col1 col2 FROM tab1 WHERE NULL NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab0 WHERE ( col1 ) BETWEEN col1 * + col2 AND NULL
----

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

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

query I rowsort
SELECT + cor0.col1 + col0 * cor0.col2 - - col1 AS col1 FROM tab1 AS cor0
----
214
3668
7706

query I rowsort
SELECT - col0 + + col1 + col1 * col1 FROM tab1 AS cor0
----
102
46
699

query I rowsort
SELECT ALL + col2 + - col2 * - col0 * - col1 FROM tab2 AS cor0
----
-119626
-50996
-5832

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + col1 * col2 col2 FROM tab1 AS cor0
----
1261
1430
580

query I rowsort
SELECT ALL + col1 + col1 + col0 * - cor0.col1 AS col1 FROM tab0 AS cor0
----
-1892
-3201
-7917

onlyif mysql # use DIV operator for integer division
query I rowsort label-173
SELECT DISTINCT - tab0.col1 * col1 - + tab0.col0 DIV + tab0.col1 FROM tab0
----
-7396
-8281
-9409

skipif mysql # not compatible
query I rowsort label-173
SELECT DISTINCT - tab0.col1 * col1 - + tab0.col0 / + tab0.col1 FROM tab0
----
-7396
-8281
-9409

query I rowsort
SELECT + + col0 * + col0 + - col2 FROM tab0 AS cor0
----
1224
543
7839

onlyif mysql # use DIV operator for integer division
query I rowsort label-175
SELECT + col1 DIV col0 + + col1 - - cor0.col0 AS col0 FROM tab0 AS cor0
----
113
134
181

skipif mysql # not compatible
query I rowsort label-175
SELECT + col1 / col0 + + col1 - - cor0.col0 AS col0 FROM tab0 AS cor0
----
113
134
181

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

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

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

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

query I rowsort
SELECT ALL + col1 + tab0.col1 + tab0.col2 * - tab0.col1 FROM tab0
----
-2666
-7280
97

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

query I rowsort
SELECT ALL - tab2.col1 + - tab2.col1 AS col1 FROM tab2
----
-118
-34
-62

query I rowsort
SELECT col2 * 23 AS col2 FROM tab0 AS cor0
----
1886
23
759

onlyif mysql # use DIV operator for integer division
query I rowsort label-184
SELECT col2 DIV + 98 FROM tab0 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-184
SELECT col2 / + 98 FROM tab0 cor0
----
0
0
0

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

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

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

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

query I rowsort
SELECT DISTINCT + 57 + + ( tab2.col0 ) FROM tab2, tab1 cor0
----
135
136
64

query I rowsort
SELECT ALL - 34 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 40442a74794ded4c78101eefe525a5bb

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

query I rowsort
SELECT ALL - + col1 + 14 * 20 FROM tab0 AS cor0
----
183
189
194

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-195
SELECT DISTINCT - col0 + - col1 DIV col2 col0 FROM tab0
----
-132
-26
-90

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-195
SELECT DISTINCT - col0 + - col1 / col2 col0 FROM tab0
----
-132
-26
-90

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

query I rowsort
SELECT + tab1.col1 + - col2 + col1 FROM tab1
----
-2
-37
-70

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL IN ( col1 + - tab2.col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 col1 FROM tab0 WHERE NOT NULL BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT + 11 * col1 - col2 * - col2 * - cor0.col1 AS col0 FROM tab2 AS cor0
----
-22258
-24361
-39235

query I rowsort
SELECT ALL + cor1.col1 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892

query I rowsort
SELECT cor0.col2 + + col2 FROM tab2 cor0
----
52
54
76

query I rowsort
SELECT + col0 + 16 FROM tab0 AS cor0
----
105
40
51

query I rowsort
SELECT col0 * 63 AS col2 FROM tab1 AS cor0
----
189
4032
5040

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

query I rowsort
SELECT col1 - ( - ( col1 ) + col0 ) FROM tab1 AS cor0
----
-44
-54
49

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-207
SELECT ALL - cor0.col2 / CAST( NULL AS DECIMAL ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-207
SELECT ALL - cor0.col2 / CAST ( NULL AS REAL ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col2 + ( - col2 ) * + col2 FROM tab1 AS cor0
----
-2970
-3306
-9312

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 89 * col0 + - col2 col1 FROM tab1 AS cor0
----
213
5639
7024

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-215
SELECT - tab0.col0 / + tab0.col2 AS col1 FROM tab0
----
-1
-35
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 69 * + 93 col2 FROM tab2 AS cor0
----
6417
6417
6417

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

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

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

query I rowsort
SELECT + 98 * + col0 AS col0 FROM tab2 AS cor0
----
686
7644
7742

query I rowsort
SELECT ALL + ( ( cor1.col0 ) ) FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f

query I rowsort
SELECT ALL cor0.col0 * 64 AS col1 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to d641fbcde55572c6ff241239802f517d

onlyif mysql # use DIV operator for integer division
query I rowsort label-222
SELECT + 64 DIV + col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-222
SELECT + 64 / + col1 FROM tab0
----
0
0
0

query I rowsort
SELECT + col0 * - 11 + col0 AS col2 FROM tab1 AS cor0
----
-30
-640
-800

query I rowsort
SELECT cor0.col0 - - col1 * 77 FROM tab1 AS cor0
----
1081
2005
834

onlyif mysql # use DIV operator for integer division
query I rowsort label-225
SELECT ALL 28 DIV - col0 FROM tab2
----
-4
0
0

skipif mysql # not compatible
query I rowsort label-225
SELECT ALL 28 / - col0 FROM tab2
----
-4
0
0

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

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

query I rowsort
SELECT DISTINCT cor0.col2 + col2 * cor0.col2 FROM tab1 cor0
----
2970
3306
9312

query I rowsort
SELECT - col2 + + cor0.col0 * cor0.col0 AS col0 FROM tab0 cor0
----
1224
543
7839

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

query I rowsort
SELECT - tab2.col0 + col0 * + col0 AS col1 FROM tab2
----
42
6006
6162

query I rowsort
SELECT col1 * + col0 * col1 - + tab2.col1 AS col0 FROM tab2
----
22814
271459
6696

query I rowsort
SELECT ALL col2 + col0 + col1 * tab0.col0 * - col2 AS col1 FROM tab0
----
-3359
-663947
-68055

query I rowsort
SELECT DISTINCT - col2 + + col0 * col1 FROM tab1
----
24
583
944

query I rowsort
SELECT - tab0.col2 * tab0.col2 + - col1 + - col0 FROM tab0
----
-1199
-133
-6904

onlyif mysql # use DIV operator for integer division
query I rowsort label-236
SELECT DISTINCT col2 DIV + tab2.col0 + - col2 * col2 + col1 AS col2 FROM tab2
----
-1427
-617
-695

skipif mysql # not compatible
query I rowsort label-236
SELECT DISTINCT col2 / + tab2.col0 + - col2 * col2 + col1 AS col2 FROM tab2
----
-1427
-617
-695

query I rowsort
SELECT ALL + col2 + - col0 - col2 AS col2 FROM tab1
----
-3
-64
-80

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

query I rowsort
SELECT col0 + col0 * - col1 AS col0 FROM tab0 AS cor0
----
-2040
-3360
-8010

query I rowsort
SELECT + col0 + col1 + col0 FROM tab2
----
175
215
45

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

query I rowsort
SELECT DISTINCT col1 * col0 + col1 AS col1 FROM tab1
----
104
1053
650

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

query I rowsort
SELECT DISTINCT + 37 + - tab1.col2 * + col0 FROM tab1
----
-125
-3611
-7643

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 92 + - tab1.col1 * + col0 col1 FROM tab1
----
-548
-948
14

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-247
SELECT + 12 - col2 DIV col2 FROM tab1
----
11
11
11

skipif mysql # not compatible
query I rowsort label-247
SELECT + 12 - col2 / col2 FROM tab1
----
11
11
11

query I rowsort
SELECT tab1.col1 FROM tab1, tab0, tab0 cor0
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892

query I rowsort
SELECT col1 + ( - col0 ) FROM tab2 cor0
----
-19
-62
24

query I rowsort
SELECT col2 * + 95 AS col1 FROM tab0
----
3135
7790
95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * col1 * - col2 + + col2 col1 FROM tab0
----
-3394
-664036
-68079

skipif mysql # not compatible
query I rowsort
SELECT + CAST ( - col2 AS REAL ) + col0 * - tab1.col1 FROM tab1
----
-1136
-132
-697

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 44 * - col0 + col1 col1 FROM tab1
----
-106
-2806
-3507

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

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

query I rowsort
SELECT - 15 + col0 AS col1 FROM tab0 cor0
----
20
74
9

query I rowsort
SELECT ALL 2 + col1 AS col0 FROM tab2 AS cor0
----
19
33
61

query I rowsort
SELECT ALL - col2 * cor0.col1 - - col2 * col2 * - col2 AS col1 FROM tab2 AS cor0
----
-19110
-20520
-55518

query I rowsort
SELECT + + cor0.col0 * - col0 AS col1 FROM tab2 cor0
----
-49
-6084
-6241

query I rowsort
SELECT ALL col1 * + col0 * col0 + col1 FROM tab1 AS cor0
----
260
40970
83213

query I rowsort
SELECT ALL + col2 * - col2 - col0 AS col2 FROM tab1 AS cor0
----
-2919
-3313
-9296

query I rowsort
SELECT ALL 61 * col0 AS col0 FROM tab0 AS cor0
----
1464
2135
5429

onlyif mysql # use DIV operator for integer division
query I rowsort label-263
SELECT DISTINCT - col2 + - col0 DIV + cor0.col0 AS col1 FROM tab0 cor0
----
-2
-34
-83

skipif mysql # not compatible
query I rowsort label-263
SELECT DISTINCT - col2 + - col0 / + cor0.col0 AS col1 FROM tab0 cor0
----
-2
-34
-83

query I rowsort
SELECT col1 * 29 FROM tab1
----
290
377
754

query I rowsort
SELECT + tab2.col2 * tab2.col1 * - col1 + - ( col0 * - col0 ) FROM tab2
----
-25898
-4741
-84422

query I rowsort
SELECT - + cor0.col2 + + col1 * ( col0 ) FROM tab1 AS cor0
----
24
583
944

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

query I rowsort
SELECT ALL - col0 + + 38 FROM tab0
----
-51
14
3

query I rowsort
SELECT + 23 * + col2 + - col2 AS col2 FROM tab2 AS cor0
----
572
594
836

query I rowsort
SELECT ALL + - col0 * - col0 - - col1 AS col1 FROM tab2 AS cor0
----
6143
6258
80

query I rowsort
SELECT DISTINCT - cor0.col0 * col1 + cor0.col0 * - 73 AS col1 FROM tab2 AS cor0
----
-10296
-7110
-728

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 84 + + col0 * col0 col2 FROM tab0 AS cor0
----
1141
492
7837

query I rowsort
SELECT 90 + + col1 FROM tab1 AS cor0
----
100
103
116

query I rowsort
SELECT cor0.col2 * cor0.col2 + - cor0.col0 AS col0 FROM tab0 AS cor0
----
-34
1065
6635

onlyif mysql # use DIV operator for integer division
query I rowsort label-275
SELECT ALL col1 + col1 + ( + 99 ) DIV + col1 AS col1 FROM tab0 AS cor0
----
173
183
195

skipif mysql # not compatible
query I rowsort label-275
SELECT ALL col1 + col1 + ( + 99 ) / + col1 AS col1 FROM tab0 AS cor0
----
173
183
195

query I rowsort
SELECT DISTINCT - - col0 + - col0 + - 22 * - col2 AS col1 FROM tab1 AS cor0
----
1188
1254
2112

query I rowsort
SELECT ALL - cor0.col2 + - ( ( col2 ) ) * + cor0.col1 * col1 AS col0 FROM tab0 AS cor0
----
-244101
-679124
-9410

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

skipif mysql # not compatible
query I rowsort label-278
SELECT col2 / + ( col2 ) FROM tab0
----
1
1
1

query I rowsort
SELECT + col1 + + ( - 65 ) * + cor0.col0 AS col0 FROM tab1 AS cor0
----
-169
-4150
-5187

query I rowsort
SELECT ALL cor0.col1 + + 80 AS col2 FROM tab0 AS cor0
----
166
171
177

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

skipif mysql # not compatible
query I rowsort label-281
SELECT + col0 / ( + cor0.col2 * - cor0.col2 ) AS col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + - col2 + - col1 AS col2 FROM tab2 AS cor0
----
-55
-58
-85

query I rowsort
SELECT ALL col2 + - 29 FROM tab1 AS cor0
----
25
28
67

query I rowsort
SELECT col1 * + 70 AS col0 FROM tab1 AS cor0
----
1820
700
910

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-285
SELECT - col2 * + CAST( 76 AS SIGNED ) FROM tab0 cor0
----
-2508
-6232
-76

skipif mysql # not compatible
query I rowsort label-285
SELECT - col2 * + CAST ( 76 AS INTEGER ) FROM tab0 cor0
----
-2508
-6232
-76

query I rowsort
SELECT DISTINCT - - col1 * + 66 FROM tab2 AS cor0
----
1122
2046
3894

query I rowsort
SELECT DISTINCT - ( + col0 ) * + cor0.col1 + - col1 FROM tab1 AS cor0
----
-104
-1053
-650

query I rowsort
SELECT 70 + col0 FROM tab0 cor0
----
105
159
94

query I rowsort
SELECT DISTINCT - 81 * col1 + - col2 * col2 FROM tab0 AS cor0
----
-14095
-7858
-8055

onlyif mysql # use DIV operator for integer division
query I rowsort label-290
SELECT - col0 + + 36 DIV col1 AS col1 FROM tab1 AS cor0
----
-2
-61
-78

skipif mysql # not compatible
query I rowsort label-290
SELECT - col0 + + 36 / col1 AS col1 FROM tab1 AS cor0
----
-2
-61
-78

query I rowsort
SELECT - - cor0.col0 + ( 49 ) FROM tab2, tab1 AS cor0
----
9 values hashing to a1522f87dd9ffdb2963602e616515136

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

query I rowsort
SELECT ALL - col0 * col2 * - col2 + - col0 AS col1 FROM tab2 AS cor0
----
113997
5096
52650

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

query I rowsort
SELECT ALL + 41 + ( + col1 ) * - ( 80 ) FROM tab1 AS cor0
----
-2039
-759
-999

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

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

query I rowsort
SELECT tab0.col2 * + 99 FROM tab0
----
3267
8118
99

query I rowsort
SELECT DISTINCT col1 + 26 * - col2 - - col0 * col0 * - col2 FROM tab2
----
-158801
-1994
-238129

query I rowsort
SELECT - - col2 * col2 AS col0 FROM tab0 cor0
----
1
1089
6724

query I rowsort
SELECT - col2 + + col2 + - tab0.col0 FROM tab0
----
-24
-35
-89

query I rowsort
SELECT ALL + ( - 65 ) AS col1 FROM tab2 AS cor0
----
-65
-65
-65

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * col0 - col2 col0 FROM tab2 AS cor0
----
-2054
-216
-3040

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-305
SELECT + cor0.col1 + col2 DIV - col2 AS col0 FROM tab0 cor0
----
85
90
96

skipif mysql # not compatible
query I rowsort label-305
SELECT + cor0.col1 + col2 / - col2 AS col0 FROM tab0 cor0
----
85
90
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + cor0.col0 col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a

query I rowsort
SELECT DISTINCT - 55 * - col0 FROM tab0 AS cor0
----
1320
1925
4895

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

query I rowsort
SELECT DISTINCT ( + col1 ) * col1 AS col0 FROM tab2 AS cor0
----
289
3481
961

query I rowsort
SELECT + - 30 + - col0 AS col1 FROM tab1 AS cor0
----
-110
-33
-94

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

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

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

skipif mysql # not compatible
query I rowsort label-312
SELECT + - 24 / col0 FROM tab2 AS cor0
----
-3
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-313
SELECT + 84 DIV col0 FROM tab0
----
0
2
3

skipif mysql # not compatible
query I rowsort label-313
SELECT + 84 / col0 FROM tab0
----
0
2
3

query I rowsort
SELECT 94 AS col1 FROM tab1, tab0 cor0 CROSS JOIN tab2, tab0 cor1
----
81 values hashing to d876bb0ae813b06a5ee497ecacf37ee6

query I rowsort
SELECT ALL col2 + - col2 * + col0 + ( col1 ) * - col0 * ( col2 ) FROM tab1
----
-107424
-40071
-4320

onlyif mysql # use DIV operator for integer division
query I rowsort label-316
SELECT col2 DIV + 73 AS col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-316
SELECT col2 / + 73 AS col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT + 62 FROM tab0, tab0 cor0
----
9 values hashing to 51dd2771d516ceb935483eded78a5fa0

query I rowsort
SELECT DISTINCT - col1 - 95 AS col1 FROM tab1 AS cor0
----
-105
-108
-121

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-319
SELECT DISTINCT - col2 / - 98 col1 FROM tab0
----
0

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-321
SELECT DISTINCT col2 DIV ( - col0 ) AS col2 FROM tab1
----
-1
-18
0

skipif mysql # not compatible
query I rowsort label-321
SELECT DISTINCT col2 / ( - col0 ) AS col2 FROM tab1
----
-1
-18
0

query I rowsort
SELECT ALL + cor0.col0 + 8 AS col1 FROM tab0 AS cor0
----
32
43
97

query I rowsort
SELECT DISTINCT + col0 * ( 46 ) + - col0 FROM tab2 AS cor0
----
315
3510
3555

query I rowsort
SELECT - 38 FROM tab1, tab2 AS cor0
----
9 values hashing to e571541ae40cb0ddaca16e11f4359507

query I rowsort
SELECT ALL + col0 + + 33 AS col1 FROM tab2 cor0
----
111
112
40

query I rowsort
SELECT DISTINCT col2 + 92 FROM tab2 AS cor0
----
118
119
130

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-328
SELECT + 83 * col1 * - CAST( col0 + cor0.col1 AS SIGNED ) FROM tab0 AS cor0
----
-1062732
-1359540
-785180

skipif mysql # not compatible
query I rowsort label-328
SELECT + 83 * col1 * - CAST ( col0 + cor0.col1 AS INTEGER ) FROM tab0 AS cor0
----
-1062732
-1359540
-785180

query I rowsort
SELECT DISTINCT - tab2.col1 * + col1 * col2 FROM tab2
----
-10982
-25947
-90506

query I rowsort
SELECT cor0.col2 * + 90 AS col1 FROM tab2 AS cor0
----
2340
2430
3420

query I rowsort
SELECT + col2 * - col1 + - col1 * + col0 AS col1 FROM tab1 AS cor0
----
-1210
-1482
-2288

query I rowsort
SELECT DISTINCT col1 + 59 * col0 FROM tab0
----
1502
2162
5342

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

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

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

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

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

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

query I rowsort
SELECT ALL + - col0 * 63 + - col0 * - col2 AS col2 FROM tab1 cor0
----
-27
-384
2640

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

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

query I rowsort
SELECT + 62 + 20 FROM tab1 AS cor0
----
82
82
82

query I rowsort
SELECT DISTINCT - + 62 + col1 * col1 FROM tab1 cor0
----
107
38
614

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col1 * - col1 col0 FROM tab0 AS cor0
----
-7396
-8281
-9409

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 49 * col0 col2 FROM tab0 cor0
----
1176
1715
4361

query I rowsort
SELECT + 9 AS col2 FROM tab1, tab0 AS cor0, tab0 AS cor1, tab2 AS cor2
----
81 values hashing to b7e6b25481699c3a4ee7381c7eae0817

query I rowsort
SELECT cor0.col0 * col0 AS col2 FROM tab0 cor0
----
1225
576
7921

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

query I rowsort
SELECT - + col2 * col2 AS col2 FROM tab0 cor0
----
-1
-1089
-6724

query I rowsort
SELECT ALL - col1 * col1 + 24 + - col0 * - cor0.col1 AS col0 FROM tab2 AS cor0
----
-720
1078
1145

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 30 + col0 col2 FROM tab0
----
119
54
65

query I rowsort
SELECT ALL tab2.col0 FROM tab2, tab0, tab2 AS cor0, tab1
----
81 values hashing to 05835f29dd9cd4fa16889de54dec3cb6

query I rowsort
SELECT + col1 * + col1 - col1 AS col0 FROM tab0
----
7310
8190
9312

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT col2 * + CAST ( - col0 AS REAL ) AS col1 FROM tab1 AS cor0
----
-162
-3648
-7680

onlyif mysql # use DIV operator for integer division
query I rowsort label-358
SELECT DISTINCT + col2 DIV - col1 AS col0 FROM tab2 AS cor0
----
-2
0

skipif mysql # not compatible
query I rowsort label-358
SELECT DISTINCT + col2 / - col1 AS col0 FROM tab2 AS cor0
----
-2
0

query I rowsort
SELECT DISTINCT - col0 + 14 * col2 FROM tab0 AS cor0
----
-21
1059
438

query I rowsort
SELECT + col1 * 59 AS col2 FROM tab1 AS cor0
----
1534
590
767

query I rowsort
SELECT ALL + 18 + col1 * col0 FROM tab2 AS cor0
----
1361
235
4620

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-362
SELECT col0 / + 94 + - col1 col0 FROM tab0 AS cor0
----
-86
-91
-97

query I rowsort
SELECT col1 * - 9 AS col0 FROM tab2
----
-153
-279
-531

query I rowsort
SELECT DISTINCT + - col1 * col2 + - col1 + col2 AS col2 FROM tab2 AS cor0
----
-1567
-625
-841

query I rowsort
SELECT ALL + ( + 8 ) FROM tab0 AS cor0
----
8
8
8

query I rowsort
SELECT - 85 + + col2 AS col2 FROM tab0 cor0
----
-3
-52
-84

query I rowsort
SELECT 25 + 7 FROM tab1 AS cor0
----
32
32
32

onlyif mysql # use DIV operator for integer division
query I rowsort label-368
SELECT + col1 * + cor0.col0 * cor0.col0 + - col0 DIV - col0 AS col2 FROM tab2 AS cor0
----
106098
1520
358957

skipif mysql # not compatible
query I rowsort label-368
SELECT + col1 * + cor0.col0 * cor0.col0 + - col0 / - col0 AS col2 FROM tab2 AS cor0
----
106098
1520
358957

query I rowsort
SELECT DISTINCT - 16 + - 7 FROM tab1 AS cor0
----
-23

query I rowsort
SELECT DISTINCT + + col1 + 40 AS col0 FROM tab0 AS cor0
----
126
131
137

query I rowsort
SELECT DISTINCT col2 - - tab0.col1 * col2 * col1 FROM tab0
----
244101
679124
9410

query I rowsort
SELECT ALL tab0.col2 * col1 - col0 * - tab0.col2 FROM tab0
----
132
14760
3630

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-373
SELECT ALL + col2 - + CAST( + col2 AS SIGNED ) * - col2 AS col2 FROM tab0
----
1122
2
6806

skipif mysql # not compatible
query I rowsort label-373
SELECT ALL + col2 - + CAST ( + col2 AS INTEGER ) * - col2 AS col2 FROM tab0
----
1122
2
6806

query I rowsort
SELECT ALL - col1 * - col1 * 36 - tab2.col2 FROM tab2
----
10366
125290
34569

query I rowsort
SELECT ALL 29 + + col2 FROM tab2
----
55
56
67

query I rowsort
SELECT - 62 * cor0.col2 * col2 + + cor0.col2 AS col0 FROM tab2 AS cor0
----
-41886
-45171
-89490

query I rowsort
SELECT - ( cor0.col0 ) + - col2 * col0 * + col2 FROM tab2 AS cor0
----
-114155
-5110
-52806

query I rowsort
SELECT DISTINCT - col1 + + col2 * col2 * 32 FROM tab2 cor0
----
21573
23297
46191

query I rowsort
SELECT + - col0 + + 26 FROM tab2 AS cor0
----
-52
-53
19

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

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

query I rowsort
SELECT DISTINCT col1 + col2 + + col0 FROM tab0 AS cor0
----
133
143
262

query I rowsort
SELECT DISTINCT + ( cor0.col0 ) * - col1 * ( col1 ) + - cor0.col0 * - cor0.col1 * col0 FROM tab0 cor0
----
-127968
-16198
-210490

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

query I rowsort
SELECT ALL - col0 + 20 FROM tab1 AS cor0
----
-44
-60
17

query I rowsort
SELECT - col2 - + cor0.col2 * - col0 AS col1 FROM tab0 AS cor0
----
34
7216
759

query I rowsort
SELECT cor0.col0 * + 6 FROM tab1 AS cor0
----
18
384
480

query I rowsort
SELECT DISTINCT + col2 + + col0 * - col0 AS col2 FROM tab2
----
-22
-6058
-6203

query I rowsort
SELECT col1 * 10 + col0 AS col0 FROM tab0
----
1005
884
999

query I rowsort
SELECT DISTINCT tab1.col2 * + ( - 62 ) * col1 + - 31 * 3 AS col0 FROM tab1
----
-35433
-77469
-87141

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

query I rowsort
SELECT - col0 * 43 AS col0 FROM tab0
----
-1032
-1505
-3827

onlyif mysql # use DIV operator for integer division
query I rowsort label-393
SELECT ALL + col0 DIV ( + col2 ) + + col0 AS col2 FROM tab1
----
3
65
80

skipif mysql # not compatible
query I rowsort label-393
SELECT ALL + col0 / ( + col2 ) + + col0 AS col2 FROM tab1
----
3
65
80

query I rowsort
SELECT - tab2.col2 * - col1 * col0 AS col0 FROM tab2
----
119652
51034
5859

query I rowsort
SELECT col2 * + col1 * - 40 AS col2 FROM tab1 cor0
----
-22800
-49920
-56160

query I rowsort
SELECT ALL 70 AS col1 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to c76157a7a7ec18de56823b2058b49f32

query I rowsort
SELECT ALL 33 FROM tab1, tab1 AS cor0
----
9 values hashing to 620d384286e82d1c6c8b1b2b109a7da5

query I rowsort
SELECT col0 * - 3 * + 15 FROM tab1
----
-135
-2880
-3600

query I rowsort
SELECT + 46 * cor0.col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 3cd21e5b80ecb33a8825b0374fd6afdc

query I rowsort
SELECT ALL + ( + 33 * col1 + - 32 ) AS col1 FROM tab2
----
1915
529
991

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 32 * col2 + col2 col1 FROM tab2
----
-1178
-806
-837

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

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

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

skipif mysql # not compatible
query I rowsort label-404
SELECT + CAST ( NULL AS REAL ) + + col1 * col1 / col0 AS col1 FROM tab0
----
NULL
NULL
NULL

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

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

query I rowsort
SELECT 27 * col0 AS col2 FROM tab0 AS cor0
----
2403
648
945

query I rowsort
SELECT + 92 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 516fa45c8b06f9f67d6e500bfd435c1a

query I rowsort
SELECT - 52 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to e8a5cb10c0973a78554f344d4f6e7e74

query I rowsort
SELECT ALL - col2 * col0 + + 24 * + col0 FROM tab1 AS cor0
----
-2112
-5760
-90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + - col0 col1 FROM tab0 AS cor0
----
-171
-36
-57

query I rowsort
SELECT ALL col0 * col1 + - col2 FROM tab1 AS cor0
----
24
583
944

query I rowsort
SELECT - + col0 + - col2 * - col2 AS col2 FROM tab0 AS cor0
----
-34
1065
6635

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

query I rowsort
SELECT ALL + 22 + col2 * col0 AS col0 FROM tab0 cor0
----
57
7320
814

query I rowsort
SELECT + - 48 * 6 - - cor0.col0 * - 79 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to c42c469a97ddb8881f71f5dc63c5dba6

query I rowsort
SELECT - 82 AS col2 FROM tab2
----
-82
-82
-82

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

query I rowsort
SELECT col1 * 82 AS col2 FROM tab2 cor0
----
1394
2542
4838

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

query I rowsort
SELECT ALL + col2 + - 10 FROM tab2 AS cor0
----
16
17
28

query I rowsort
SELECT - col0 * col1 + - 91 FROM tab0 AS cor0
----
-2155
-3486
-8190

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 + + cor0.col1 * col0 col2 FROM tab2 cor0
----
1381
244
4628

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

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

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

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

query I rowsort
SELECT - - cor0.col2 AS col0 FROM tab1, tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5

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

query I rowsort
SELECT + + col0 + + 69 + + col1 AS col2 FROM tab1 AS cor0
----
143
162
98

query I rowsort
SELECT ALL + 26 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to ede8226bb7e602e221f9d98345b4da37

query I rowsort
SELECT + 1 + - 18 AS col1 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 28cd5b4c959cb41fbc56389ab43d167e

query I rowsort
SELECT + - 54 * + col1 * - col0 + col1 * - col0 AS col0 FROM tab2 AS cor0
----
11501
243906
71179

query I rowsort
SELECT + + col2 * col2 + - col2 * + 36 FROM tab1 AS cor0
----
1197
5760
972

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col2 + 55 col2 FROM tab2, tab2 AS cor0
----
9 values hashing to b416ff30f643e03237700697c1c457a1

query I rowsort
SELECT ALL + - col2 + - col1 AS col2 FROM tab2 AS cor0
----
-55
-58
-85

query I rowsort
SELECT - 28 * - ( + cor0.col0 ) FROM tab1 AS cor0
----
1792
2240
84

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

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

query I rowsort
SELECT ALL - col0 * - col2 + + cor0.col1 * + col2 FROM tab2 AS cor0
----
1026
3562
3648

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col0 * + 73 + - col0 col1 FROM tab2 AS cor0
----
-518
-5772
-5846

query I rowsort
SELECT DISTINCT + 51 + cor0.col2 FROM tab0 AS cor0
----
133
52
84

query I rowsort
SELECT DISTINCT - 51 * col0 + col1 AS col2 FROM tab1 AS cor0
----
-127
-3254
-4067

query I rowsort
SELECT col0 * 69 AS col0 FROM tab2 AS cor0
----
483
5382
5451

query I rowsort
SELECT ALL - - col1 * + col2 * - col0 + ( cor0.col1 ) * + cor0.col1 - col0 FROM tab1 AS cor0
----
-3539
-36444
-99751

query I rowsort
SELECT - - ( col0 ) * col1 * col0 FROM tab2 AS cor0
----
106097
1519
358956

query I rowsort
SELECT DISTINCT + 7 * - col0 AS col1 FROM tab1 cor0
----
-21
-448
-560

query I rowsort
SELECT tab0.col0 + - 52 AS col0 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to 6e7d97b299c90e4d02218af99527c8ba

query I rowsort
SELECT DISTINCT - tab1.col2 + - col1 * - ( - col0 * - 33 ) FROM tab1
----
21063
2520
34224

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + col0 * - col0 col1 FROM tab0
----
-1322
-662
-8012

query I rowsort
SELECT + cor0.col2 FROM tab2, tab1 AS cor0, tab0, tab0 AS cor1
----
81 values hashing to 9d355f1f2edc347a359dad00d2d3f886

onlyif mysql # use DIV operator for integer division
query I rowsort label-451
SELECT - - CAST( + 70 AS SIGNED ) + - col2 DIV - col1 AS col1 FROM tab0 AS cor0
----
70
70
70

skipif mysql # not compatible
query I rowsort label-451
SELECT - - CAST ( + 70 AS INTEGER ) + - col2 / - col1 AS col1 FROM tab0 AS cor0
----
70
70
70

query I rowsort
SELECT - col1 + - 1 FROM tab0 AS cor0
----
-87
-92
-98

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

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

query I rowsort
SELECT DISTINCT + col0 - + col1 * col1 FROM tab0 AS cor0
----
-7372
-8192
-9374

query I rowsort
SELECT ALL 40 AS col1 FROM tab1
----
40
40
40

query I rowsort
SELECT + - 54 * - cor1.col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to fead6e319ba9b23c537dfbf264190f24

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

query I rowsort
SELECT ALL + + 50 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to dea2d1b74e0cdf67806af8c417324f52

query I rowsort
SELECT + - cor0.col0 * col1 * + col2 + col1 * - ( 78 ) + col0 * col0 FROM tab0 AS cor0
----
-663295
-74244
-9736

query I rowsort
SELECT + col0 * 77 AS col1 FROM tab0 AS cor0
----
1848
2695
6853

query I rowsort
SELECT DISTINCT col2 + - ( - tab1.col0 + + col0 * 48 ) AS col1 FROM tab1
----
-2951
-3664
-87

query I rowsort
SELECT ALL 19 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 86c53e8567a17c8d91fc5aff119e0498

query I rowsort
SELECT col0 * col0 * - col2 + col1 FROM tab1
----
-233462
-460
-614387

query I rowsort
SELECT DISTINCT - col2 + - 91 AS col0 FROM tab2
----
-117
-118
-129

query I rowsort
SELECT ALL - cor0.col2 + 18 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to b5f0c5a4618940b7c0b1c8484283a7c9

query I rowsort
SELECT col0 * 25 * - tab1.col0 + + col0 * ( + col1 ) FROM tab1
----
-101760
-147
-158960

query I rowsort
SELECT col1 + - cor0.col0 * 76 FROM tab1 cor0
----
-202
-4854
-6067

query I rowsort
SELECT DISTINCT + col2 * ( - col1 ) - col2 * - cor0.col2 FROM tab0 cor0
----
-1749
-738
-96

query I rowsort
SELECT DISTINCT + - col0 * col0 + + col2 * + cor0.col1 AS col0 FROM tab2 AS cor0
----
-4550
-5595
788

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * ( + col2 ) + col1 col1 FROM tab0 AS cor0
----
-2752
-7371
0

query I rowsort
SELECT + - col1 + cor0.col1 * - col0 AS col0 FROM tab1 cor0
----
-104
-1053
-650

query I rowsort
SELECT + 23 FROM tab1, tab1 cor0
----
9 values hashing to d94fadcc1c8cc4fc51b78b83e04795f2

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

query I rowsort
SELECT DISTINCT cor0.col0 * col0 AS col0 FROM tab2 AS cor0
----
49
6084
6241

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-475
SELECT DISTINCT cor0.col1 * - CAST( - 93 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
1581
2883
5487

skipif mysql # not compatible
query I rowsort label-475
SELECT DISTINCT cor0.col1 * - CAST ( - 93 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
1581
2883
5487

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

query I rowsort
SELECT ALL - cor0.col2 + - col2 AS col0 FROM tab2 AS cor0
----
-52
-54
-76

query I rowsort
SELECT ALL + col0 * col0 - - col0 FROM tab2 AS cor0
----
56
6162
6320

query I rowsort
SELECT - col2 + - cor0.col2 * col2 * - 30 FROM tab0 AS cor0
----
201638
29
32637

query I rowsort
SELECT DISTINCT 92 + - 6 + col0 * + 64 * + col1 FROM tab2 cor0
----
13974
294614
86038

query I rowsort
SELECT DISTINCT + + 36 * col1 + + col1 FROM tab0 AS cor0
----
3182
3367
3589

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

query I rowsort
SELECT DISTINCT + col1 + 39 AS col2 FROM tab2 AS cor0
----
56
70
98

onlyif mysql # use DIV operator for integer division
query I rowsort label-484
SELECT DISTINCT - col0 DIV col1 - - col1 FROM tab2 AS cor0
----
13
31
58

skipif mysql # not compatible
query I rowsort label-484
SELECT DISTINCT - col0 / col1 - - col1 FROM tab2 AS cor0
----
13
31
58

query I rowsort
SELECT + ( 48 ) + - col2 FROM tab2 AS cor0
----
10
21
22

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

skipif mysql # not compatible
query I rowsort label-486
SELECT DISTINCT - + CAST ( - cor0.col1 AS INTEGER ) + col1 FROM tab2 AS cor0
----
118
34
62

onlyif mysql # use DIV operator for integer division
query I rowsort label-487
SELECT ALL - 98 DIV - col1 - cor0.col2 FROM tab2 AS cor0
----
-24
-25
-33

skipif mysql # not compatible
query I rowsort label-487
SELECT ALL - 98 / - col1 - cor0.col2 FROM tab2 AS cor0
----
-24
-25
-33

query I rowsort
SELECT ALL + 20 + 75 * cor0.col2 + - 94 AS col2 FROM tab0 cor0
----
1
2401
6076

query I rowsort
SELECT ALL + 91 * - cor0.col1 FROM tab0 AS cor0
----
-7826
-8281
-8827

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

query I rowsort
SELECT - + 13 + col1 + - col0 * 21 * - col0 FROM tab2 AS cor0
----
1047
127810
131065

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + + col2 col1 FROM tab1 cor0
----
108
114
192

query I rowsort
SELECT 86 * + col0 FROM tab2
----
602
6708
6794

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-494
SELECT ALL 54 + col0 + CAST( - 4 AS SIGNED ) FROM tab0
----
139
74
85

skipif mysql # not compatible
query I rowsort label-494
SELECT ALL 54 + col0 + CAST ( - 4 AS INTEGER ) FROM tab0
----
139
74
85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col0 ) col1 FROM tab1
----
3
64
80

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

query I rowsort
SELECT DISTINCT col2 * + ( - cor0.col1 ) - - col1 * + col0 AS col1 FROM tab2 AS cor0
----
-620
3068
697

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

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

query I rowsort
SELECT + 15 AS col0 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to 71dda9a71fc978ea7b0ac5d8cd2ef1f0

query I rowsort
SELECT + col0 * col2 + + 55 + col2 * + 78 FROM tab1 AS cor0
----
15223
4429
8149

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

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

query I rowsort
SELECT DISTINCT - cor0.col0 * - cor0.col1 * 68 FROM tab0 AS cor0
----
140352
230860
550732

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

skipif mysql # not compatible
query I rowsort
SELECT ALL - col1 + - CAST ( 7 AS REAL ) + + col0 * + col2 FROM tab1 cor0
----
129
3631
7660

onlyif mysql # use DIV operator for integer division
query I rowsort label-505
SELECT 7 DIV + col0 AS col0 FROM tab1
----
0
0
2

skipif mysql # not compatible
query I rowsort label-505
SELECT 7 / + col0 AS col0 FROM tab1
----
0
0
2

query I rowsort
SELECT DISTINCT col1 * - tab0.col2 + 22 * - 89 + col1 FROM tab0
----
-1958
-4710
-9329

query I rowsort
SELECT tab2.col2 AS col1 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5

query I rowsort
SELECT ALL - col2 * col0 - - col0 AS col1 FROM tab0
----
-7209
-768
0

query I rowsort
SELECT ALL col0 - - col2 * - tab1.col1 AS col2 FROM tab1
----
-1168
-1401
-506

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

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

skipif mysql # not compatible
query I rowsort label-511
SELECT ALL ( + 75 ) / col0 AS col2 FROM tab0 AS cor0
----
0
2
3

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

query I rowsort
SELECT DISTINCT 46 + - 12 - col2 AS col0 FROM tab1 AS cor0
----
-20
-23
-62

query I rowsort
SELECT + - col0 * 18 FROM tab0 AS cor0
----
-1602
-432
-630

onlyif mysql # use DIV operator for integer division
query I rowsort label-515
SELECT col0 + col1 DIV + col0 AS col2 FROM tab1 AS cor0
----
11
64
80

skipif mysql # not compatible
query I rowsort label-515
SELECT col0 + col1 / + col0 AS col2 FROM tab1 AS cor0
----
11
64
80

query I rowsort
SELECT ALL + 62 FROM tab1 cor0
----
62
62
62

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

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

query I rowsort
SELECT + 31 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to c3c6f92f0ca72d71793339f88a57e336

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

query I rowsort
SELECT - + col2 * col0 + cor0.col0 AS col2 FROM tab1 AS cor0
----
-159
-3584
-7600

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-523
SELECT CAST( col0 * col0 AS SIGNED ) AS col0 FROM tab1
----
4096
6400
9

skipif mysql # not compatible
query I rowsort label-523
SELECT CAST ( col0 * col0 AS INTEGER ) AS col0 FROM tab1
----
4096
6400
9

query I rowsort
SELECT ALL + 59 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to a9b9966d749d1b2ce5955ed12394f9bc

query I rowsort
SELECT ALL - ( + tab1.col2 ) * + col2 FROM tab1
----
-2916
-3249
-9216

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-526
SELECT ALL - ( col2 ) * col1 / col1 col2 FROM tab2
----
-26
-27
-38

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-527
SELECT CAST( col2 AS SIGNED ) + col2 FROM tab1
----
108
114
192

skipif mysql # not compatible
query I rowsort label-527
SELECT CAST ( col2 AS INTEGER ) + col2 FROM tab1
----
108
114
192

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-529
SELECT DISTINCT + + col2 DIV 71 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-529
SELECT DISTINCT + + col2 / 71 FROM tab2 AS cor0
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-530
SELECT + cor0.col0 DIV + 99 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-530
SELECT + cor0.col0 / + 99 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT - col0 + - 50 AS col0 FROM tab0 AS cor0
----
-139
-74
-85

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

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

query I rowsort
SELECT cor0.col1 * + 74 * col1 AS col1 FROM tab1 AS cor0
----
12506
50024
7400

query I rowsort
SELECT 37 * tab0.col1 FROM tab0
----
3182
3367
3589

query I rowsort
SELECT + 6 + + tab0.col0 * 14 AS col2 FROM tab0
----
1252
342
496

query I rowsort
SELECT tab2.col0 * + 56 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 81c7a5c966807a2e33be12f1b5e88cb2

query I rowsort
SELECT ALL - 88 * col2 + + 90 * + col2 FROM tab0
----
164
2
66

query I rowsort
SELECT ALL + col1 * + col1 * col1 + - 15 * col0 FROM tab1
----
17531
40
997

onlyif mysql # use DIV operator for integer division
query I rowsort label-540
SELECT - col0 + 96 DIV - 16 FROM tab2
----
-13
-84
-85

skipif mysql # not compatible
query I rowsort label-540
SELECT - col0 + 96 / - 16 FROM tab2
----
-13
-84
-85

query I rowsort
SELECT + 28 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to aad32232c428b3ecb5ada63f7e9b0a97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col2 * 46 col2 FROM tab0 cor0
----
-1518
-3772
-46

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

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

query I rowsort
SELECT DISTINCT + col0 * + col1 + - col2 * + col1 + + 92 FROM tab1 AS cor0
----
-116
-1234
162

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

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

query I rowsort
SELECT col2 * + ( - ( + col2 ) ) + - col2 * - 22 AS col0 FROM tab1
----
-1728
-1995
-7104

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

query I rowsort
SELECT - 6 * 42 + col2 AS col1 FROM tab0 AS cor0
----
-170
-219
-251

query I rowsort
SELECT + 35 AS col0 FROM tab2 cor0
----
35
35
35

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-551
SELECT - - CAST( col2 AS SIGNED ) * + cor0.col1 + ( - col2 ) * - col1 + - col0 FROM tab2 AS cor0
----
1213
1667
2990

skipif mysql # not compatible
query I rowsort label-551
SELECT - - CAST ( col2 AS INTEGER ) * + cor0.col1 + ( - col2 ) * - col1 + - col0 FROM tab2 AS cor0
----
1213
1667
2990

onlyif mysql # use DIV operator for integer division
query I rowsort label-552
SELECT CAST( col1 AS SIGNED ) DIV + 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-552
SELECT CAST ( col1 AS INTEGER ) / + col1 col2 FROM tab0 AS cor0
----
1
1
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-553
SELECT ( 68 ) * col0 + 38 DIV - 13 AS col1 FROM tab0 AS cor0
----
1630
2378
6050

skipif mysql # not compatible
query I rowsort label-553
SELECT ( 68 ) * col0 + 38 / - 13 AS col1 FROM tab0 AS cor0
----
1630
2378
6050

query I rowsort
SELECT col2 + col0 * - cor0.col0 * + ( + col2 ) FROM tab2 AS cor0
----
-1296
-158158
-237120

query I rowsort
SELECT - cor0.col2 + - 42 FROM tab0 AS cor0
----
-124
-43
-75

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

query I rowsort
SELECT 40 * cor0.col2 FROM tab2 cor0
----
1040
1080
1520

query I rowsort
SELECT ALL col2 + col0 + + tab1.col0 FROM tab1
----
185
256
60

query I rowsort
SELECT 6 + - col0 AS col1 FROM tab1 AS cor0
----
-58
-74
3

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

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

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

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

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

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

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

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

query I rowsort
SELECT + col2 + + 92 FROM tab2 AS cor0
----
118
119
130

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 81 col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 7a8ea30c6803aeddc5fca5b5821d8267

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

skipif mysql # not compatible
query I rowsort label-569
SELECT col0 * col0 + - CAST ( - 56 AS INTEGER ) + - col0 AS col2 FROM tab2
----
6062
6218
98

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

query I rowsort
SELECT + + 57 + col0 * - col0 AS col0 FROM tab2 AS cor0
----
-6027
-6184
8

query I rowsort
SELECT 67 + col2 * ( col2 ) FROM tab0 cor0
----
1156
6791
68

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

query I rowsort
SELECT DISTINCT + 52 + - col2 AS col0 FROM tab0 AS cor0
----
-30
19
51

query I rowsort
SELECT ALL - - 91 * + col2 FROM tab0 cor0
----
3003
7462
91

query I rowsort
SELECT DISTINCT + + 55 * col0 FROM tab1 AS cor0
----
165
3520
4400

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-578
SELECT DISTINCT col1 DIV + col1 + ( - cor0.col1 ) FROM tab1 cor0
----
-12
-25
-9

skipif mysql # not compatible
query I rowsort label-578
SELECT DISTINCT col1 / + col1 + ( - cor0.col1 ) FROM tab1 cor0
----
-12
-25
-9

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

query I rowsort
SELECT ALL - 57 FROM tab1, tab1 AS cor0
----
9 values hashing to 520dc393896969e02a72ab6c5d92126b

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col0 - + 13 * 49 * col0 col1 FROM tab1 cor0
----
-1908
-40704
-50880

query I rowsort
SELECT DISTINCT - col1 * ( col1 + + col2 ) FROM tab1 AS cor0
----
-1417
-2080
-670

query I rowsort
SELECT ALL col2 + col2 + - col0 FROM tab2
----
-26
-3
47

query I rowsort
SELECT + ( - 16 ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to be22ac76b42c6f7212ecc0ba7c89eb34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 42 * ( + col0 ) col1 FROM tab2 AS cor0
----
294
3276
3318

query I rowsort
SELECT ALL + col0 * ( col2 * ( cor0.col2 ) ) AS col1 FROM tab0 AS cor0
----
26136
35
598436

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-587
SELECT ALL 85 * cor0.col0 + col2 + CAST( ( + col2 ) AS SIGNED ) AS col1 FROM tab0 AS cor0
----
2106
2977
7729

skipif mysql # not compatible
query I rowsort label-587
SELECT ALL 85 * cor0.col0 + col2 + CAST ( ( + col2 ) AS INTEGER ) AS col1 FROM tab0 AS cor0
----
2106
2977
7729

query I rowsort
SELECT + col2 * - 12 FROM tab1
----
-1152
-648
-684

onlyif mysql # use DIV operator for integer division
query I rowsort label-589
SELECT - cor0.col2 + col1 DIV - col0 FROM tab1 AS cor0
----
-57
-62
-96

skipif mysql # not compatible
query I rowsort label-589
SELECT - cor0.col2 + col1 / - col0 FROM tab1 AS cor0
----
-57
-62
-96

query I rowsort
SELECT + - 55 * + col2 FROM tab0 AS cor0
----
-1815
-4510
-55

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

skipif mysql # not compatible
query I rowsort label-591
SELECT ALL + ( - 11 + col2 ) * - CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT col0 - + 22 FROM tab2
----
-15
56
57

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

query I rowsort
SELECT ALL col0 * 23 FROM tab2
----
161
1794
1817

query I rowsort
SELECT col2 * - 14 FROM tab1 AS cor0
----
-1344
-756
-798

query I rowsort
SELECT ALL + 80 + 80 * + col2 FROM tab1
----
4400
4640
7760

query I rowsort
SELECT col2 + - col1 + tab0.col2 FROM tab0
----
-20
-95
73

onlyif mysql # use DIV operator for integer division
query I rowsort label-598
SELECT + + ( + 45 ) * + col2 + col0 * cor0.col1 - cor0.col1 DIV - col0 FROM tab0 AS cor0
----
11790
3442
3552

skipif mysql # not compatible
query I rowsort label-598
SELECT + + ( + 45 ) * + col2 + col0 * cor0.col1 - cor0.col1 / - col0 FROM tab0 AS cor0
----
11790
3442
3552

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

query IIIIIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab0 AS cor0 CROSS JOIN tab2, tab1, tab0 AS cor1, tab0 AS cor2
----
13122 values hashing to dcb93999832caf5ae7c9faa247e64171

query I rowsort
SELECT - ( - ( + col0 ) ) + + tab2.col2 + 72 AS col2 FROM tab2
----
106
176
189

query I rowsort
SELECT DISTINCT + 43 + + 62 AS col0 FROM tab2
----
105

query I rowsort
SELECT + cor0.col1 + 67 FROM tab0 AS cor0
----
153
158
164

query I rowsort
SELECT ALL - 17 * - col2 FROM tab0 cor0
----
1394
17
561

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

skipif mysql # not compatible
query I rowsort label-605
SELECT CAST ( + col2 AS INTEGER ) + - col1 FROM tab2 AS cor0
----
-33
-4
21

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-608
SELECT - ( col0 ) DIV col1 AS col2 FROM tab1 AS cor0
----
-6
-6
0

skipif mysql # not compatible
query I rowsort label-608
SELECT - ( col0 ) / col1 AS col2 FROM tab1 AS cor0
----
-6
-6
0

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

skipif mysql # not compatible
query I rowsort label-609
SELECT ALL col1 + col1 * + CAST ( 69 AS INTEGER ) FROM tab0 AS cor0
----
6020
6370
6790

query I rowsort
SELECT DISTINCT - 79 * + col0 + + ( + 10 + + tab1.col0 ) AS col2 FROM tab1
----
-224
-4982
-6230

onlyif mysql # use DIV operator for integer division
query I rowsort label-611
SELECT ALL + col1 + col2 DIV - col1 AS col1 FROM tab2
----
15
31
59

skipif mysql # not compatible
query I rowsort label-611
SELECT ALL + col1 + col2 / - col1 AS col1 FROM tab2
----
15
31
59

query I rowsort
SELECT - 47 * - col1 AS col2 FROM tab1
----
1222
470
611

query I rowsort
SELECT DISTINCT 51 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
51

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

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

query I rowsort
SELECT + 40 * - col0 + col0 FROM tab2 AS cor0
----
-273
-3042
-3081

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-619
SELECT - + 13 / col1 + - ( 68 ) col0 FROM tab0 AS cor0
----
-68
-68
-68

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

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

query I rowsort
SELECT ALL col2 * 64 AS col1 FROM tab2 AS cor0
----
1664
1728
2432

query I rowsort
SELECT - + col0 * - 50 FROM tab2 AS cor0
----
350
3900
3950

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

skipif mysql # not compatible
query I rowsort label-624
SELECT DISTINCT - + CAST ( + col1 AS INTEGER ) + col0 FROM tab1 AS cor0
----
-23
54
67

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

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

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

skipif mysql # not compatible
query I rowsort label-627
SELECT ALL + ( + col2 ) + col2 + CAST ( col1 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
124
134
205

query I rowsort
SELECT ALL + 19 * - cor0.col0 - - col1 FROM tab1 cor0
----
-1206
-1507
-31

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + - col1 col0 FROM tab2 AS cor0
----
-33
-4
21

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

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

query I rowsort
SELECT DISTINCT - col1 * - 43 * col2 FROM tab0
----
122034
320866
4171

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

query I rowsort
SELECT DISTINCT - 86 - col1 AS col0 FROM tab2 AS cor0
----
-103
-117
-145

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

query I rowsort
SELECT 64 FROM tab2 cor0
----
64
64
64

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

skipif mysql # not compatible
query I rowsort label-636
SELECT DISTINCT CAST ( NULL AS REAL ) + 38 * + col1 * 97 - 30 AS col2 FROM tab1 cor0
----
NULL

query I rowsort
SELECT ALL + col1 * col0 + col0 * col0 AS col2 FROM tab1 AS cor0
----
4736
7440
87

onlyif mysql # use DIV operator for integer division
query I rowsort label-638
SELECT DISTINCT cor0.col0 - 84 DIV - 41 FROM tab1 AS cor0
----
5
66
82

skipif mysql # not compatible
query I rowsort label-638
SELECT DISTINCT cor0.col0 - 84 / - 41 FROM tab1 AS cor0
----
5
66
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + 44 + col0 col1 FROM tab0 AS cor0
----
1080
1575
4005

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

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

query I rowsort
SELECT ALL - col0 * + col0 + - ( col1 ) FROM tab0 cor0
----
-1322
-662
-8012

query I rowsort
SELECT DISTINCT cor0.col2 + 8 FROM tab0 AS cor0
----
41
9
90

query I rowsort
SELECT DISTINCT col0 + + col0 * - 40 - + col2 AS col1 FROM tab1 AS cor0
----
-171
-2553
-3216

query I rowsort
SELECT ALL - 47 FROM tab0 cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 6942a0d9558277afd0d00408d65cf5aa

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

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

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

query I rowsort
SELECT col1 * + cor0.col1 * col1 AS col2 FROM tab1 cor0
----
1000
17576
2197

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

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

query I rowsort
SELECT DISTINCT - ( 36 * col2 ) FROM tab0
----
-1188
-2952
-36

query I rowsort
SELECT ALL - col2 + + 96 * col0 AS col0 FROM tab1 AS cor0
----
234
6087
7584

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

query I rowsort
SELECT + - 52 * - 63 AS col2 FROM tab0 AS cor0
----
3276
3276
3276

query I rowsort
SELECT + col2 + 53 FROM tab1 cor0
----
107
110
149

query I rowsort
SELECT ( + 39 ) * col2 FROM tab0 AS cor0
----
1287
3198
39

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-657
SELECT + col0 DIV - col2 + 18 AS col0 FROM tab1 AS cor0
----
17
18
18

skipif mysql # not compatible
query I rowsort label-657
SELECT + col0 / - col2 + 18 AS col0 FROM tab1 AS cor0
----
17
18
18

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

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

query I rowsort
SELECT ALL - 31 FROM tab2 cor0
----
-31
-31
-31

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 + cor0.col0 * 1 col0 FROM tab2 AS cor0
----
-24
19
62

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

query I rowsort
SELECT DISTINCT - col0 * - col2 * cor0.col2 + - col0 * + ( 46 ) FROM tab0 AS cor0
----
-1575
25032
594342

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

query I rowsort
SELECT DISTINCT + cor0.col0 - col1 * 78 AS col2 FROM tab0 AS cor0
----
-6684
-7009
-7531

onlyif mysql # use DIV operator for integer division
query I rowsort label-666
SELECT - col0 DIV 64 + col2 AS col1 FROM tab0 AS cor0
----
1
33
81

skipif mysql # not compatible
query I rowsort label-666
SELECT - col0 / 64 + col2 AS col1 FROM tab0 AS cor0
----
1
33
81

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

query I rowsort
SELECT ( col0 ) * col0 * col1 + col2 FROM tab0
----
118826
49569
720893

query I rowsort
SELECT DISTINCT col1 + tab0.col2 * col2 FROM tab0
----
1175
6815
98

query I rowsort
SELECT + 73 * col2 * + ( + col1 * + col0 ) AS col1 FROM tab0
----
247835
48480614
4972176

query I rowsort
SELECT - cor0.col2 + - col1 * 90 FROM tab2 AS cor0
----
-1568
-2817
-5336

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

query I rowsort
SELECT DISTINCT + + 84 + - 86 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-2

query I rowsort
SELECT col2 + ( col0 ) + col1 FROM tab2 cor0
----
134
163
65

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

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

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

query I rowsort
SELECT - - col1 * col2 * - cor0.col0 + 35 * + 14 + - col2 FROM tab2 AS cor0
----
-119188
-50582
-5396

onlyif mysql # use DIV operator for integer division
query I rowsort label-678
SELECT ALL - ( + cor0.col2 ) DIV + col1 AS col1 FROM tab2 AS cor0
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-678
SELECT ALL - ( + cor0.col2 ) / + col1 AS col1 FROM tab2 AS cor0
----
-2
0
0

query I rowsort
SELECT 26 + + col2 AS col0 FROM tab0 cor0
----
108
27
59

query I rowsort
SELECT + 49 + - col0 + - col1 FROM tab2 AS cor0
----
-47
-88
11

query I rowsort
SELECT col1 * 48 FROM tab1
----
1248
480
624

onlyif mysql # use DIV operator for integer division
query I rowsort label-682
SELECT ALL + col2 DIV ( - col1 ) + col1 - 95 FROM tab1
----
-71
-89
-90

skipif mysql # not compatible
query I rowsort label-682
SELECT ALL + col2 / ( - col1 ) + col1 - 95 FROM tab1
----
-71
-89
-90

query I rowsort
SELECT ALL col0 * + col1 * - col1 FROM tab0
----
-177504
-329315
-737009

query I rowsort
SELECT ALL - 3 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 95b6b9b4aae5cc2d9545db9f8940b2dc

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

query I rowsort
SELECT - - 95 + col2 FROM tab2 AS cor0
----
121
122
133

query I rowsort
SELECT + + 50 + col0 * 12 AS col1 FROM tab0 AS cor0
----
1118
338
470

query I rowsort
SELECT - ( cor0.col1 ) AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to ccaa5dd3388d9ee0fea676fa35299fe5

query I rowsort
SELECT col1 * col0 + - col2 * + tab1.col1 AS col0 FROM tab1
----
-1326
-208
70

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

query I rowsort
SELECT col0 + 10 AS col1 FROM tab0
----
34
45
99

onlyif mysql # use DIV operator for integer division
query I rowsort label-692
SELECT ALL + col1 - col1 DIV col0 FROM tab2
----
17
27
59

skipif mysql # not compatible
query I rowsort label-692
SELECT ALL + col1 - col1 / col0 FROM tab2
----
17
27
59

onlyif mysql # use DIV operator for integer division
query I rowsort label-693
SELECT ALL - ( - col0 ) - - col1 DIV ( - 78 ) AS col1 FROM tab0
----
23
34
88

skipif mysql # not compatible
query I rowsort label-693
SELECT ALL - ( - col0 ) - - col1 / ( - 78 ) AS col1 FROM tab0
----
23
34
88

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-694
SELECT ALL + CAST( cor0.col0 AS SIGNED ) * cor0.col0 * ( + col2 ) AS col2 FROM tab2 AS cor0
----
1323
158184
237158

skipif mysql # not compatible
query I rowsort label-694
SELECT ALL + CAST ( cor0.col0 AS INTEGER ) * cor0.col0 * ( + col2 ) AS col2 FROM tab2 AS cor0
----
1323
158184
237158

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

query I rowsort
SELECT ALL + 19 + col1 * + 93 FROM tab0 AS cor0
----
8017
8482
9040

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

query I rowsort
SELECT ALL + col2 * col0 + 72 AS col1 FROM tab0 cor0
----
107
7370
864

query I rowsort
SELECT ALL + 72 * col0 FROM tab0 AS cor0
----
1728
2520
6408

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col2 + + col2 col0 FROM tab1 AS cor0
----
108
114
192

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-703
SELECT ALL + - col0 + col2 DIV + ( ( col2 ) ) + + ( 99 ) AS col2 FROM tab1 AS cor0
----
20
36
97

skipif mysql # not compatible
query I rowsort label-703
SELECT ALL + - col0 + col2 / + ( ( col2 ) ) + + ( 99 ) AS col2 FROM tab1 AS cor0
----
20
36
97

query I rowsort
SELECT ALL + - col0 - col2 * + col1 * - ( col2 ) FROM tab1 cor0
----
119728
32426
75813

query I rowsort
SELECT - + col1 - - col2 * + 6 FROM tab2 AS cor0
----
131
211
97

query I rowsort
SELECT - + col2 * col2 + + col2 FROM tab0 AS cor0
----
-1056
-6642
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-707
SELECT ALL CAST( col0 AS SIGNED ) AS col1 FROM tab2
----
7
78
79

skipif mysql # not compatible
query I rowsort label-707
SELECT ALL CAST ( col0 AS INTEGER ) AS col1 FROM tab2
----
7
78
79

query I rowsort
SELECT ALL + col0 * - cor0.col2 * col0 + - col0 FROM tab1 AS cor0
----
-233536
-489
-614480

query I rowsort
SELECT DISTINCT - 80 * col2 + - col0 FROM tab0 AS cor0
----
-115
-2664
-6649

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-711
SELECT ALL 13 + cor0.col1 DIV col1 FROM tab0 AS cor0
----
14
14
14

skipif mysql # not compatible
query I rowsort label-711
SELECT ALL 13 + cor0.col1 / col1 FROM tab0 AS cor0
----
14
14
14

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

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

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

query I rowsort
SELECT ( - 61 ) AS col2 FROM tab1, tab2 AS cor0, tab2, tab1 AS cor1
----
81 values hashing to 80442609e72d8c1c7f1c6175b1d2eac8

query I rowsort
SELECT DISTINCT + col0 * col2 * + 7 AS col1 FROM tab2 AS cor0
----
1323
14196
21014

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

skipif mysql # not compatible
query I rowsort label-717
SELECT + col2 * CAST ( col1 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
1534
646
837

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

query I rowsort
SELECT - + col2 * - 64 + col2 * + col2 FROM tab1 AS cor0
----
15360
6372
6897

query I rowsort
SELECT - col2 + - 83 * ( col1 * - cor0.col0 ) FROM tab2 AS cor0
----
111431
17984
381940

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

query I rowsort
SELECT DISTINCT - 45 AS col1 FROM tab1 cor0
----
-45

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + - CAST ( 0 AS REAL ) * col2 + cor0.col1 FROM tab2 AS cor0
----
17
31
59

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

skipif mysql # not compatible
query I rowsort label-724
SELECT + CAST ( 0 AS INTEGER ) * col0 AS col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT + col1 * - 52 + + col2 AS col0 FROM tab0 cor0
----
-4439
-4650
-5043

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

query I rowsort
SELECT + 98 * col1 AS col2 FROM tab2 AS cor0
----
1666
3038
5782

query I rowsort
SELECT ALL + col1 * 57 FROM tab1 AS cor0
----
1482
570
741

query I rowsort
SELECT DISTINCT - 18 AS col0 FROM tab0 cor0
----
-18

query I rowsort
SELECT DISTINCT + col1 * 0 FROM tab1 AS cor0
----
0

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

query I rowsort
SELECT DISTINCT + 60 * cor0.col2 AS col0 FROM tab2 cor0
----
1560
1620
2280

query I rowsort
SELECT ALL ( 82 ) * col1 + col1 AS col2 FROM tab2 AS cor0
----
1411
2573
4897

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

query I rowsort
SELECT - 88 * - ( col2 + col2 ) * cor0.col2 FROM tab1 cor0
----
1622016
513216
571824

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

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

query I rowsort
SELECT DISTINCT 38 + - 28 * col2 - 65 FROM tab0
----
-2323
-55
-951

query I rowsort
SELECT ALL - 19 FROM tab2, tab1 AS cor0
----
9 values hashing to 339c9d62143bf2f7566b89a1b56eeeb4

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

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

query I rowsort
SELECT ALL + - col0 * - 67 + col1 AS col1 FROM tab1 AS cor0
----
227
4298
5373

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

query I rowsort
SELECT - 98 + col2 AS col0 FROM tab1
----
-2
-41
-44

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

query I rowsort
SELECT ALL col0 * 71 AS col1 FROM tab2
----
497
5538
5609

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

query I rowsort
SELECT ALL + col1 + + cor0.col1 + - col0 AS col1 FROM tab0 AS cor0
----
148
159
93

query I rowsort
SELECT - + cor0.col1 + + col2 * + 44 FROM tab1 AS cor0
----
2350
2498
4211

query I rowsort
SELECT ALL + col2 + col0 * + col1 FROM tab2 cor0
----
1381
244
4628

query I rowsort
SELECT DISTINCT + col1 * - ( + 51 ) + col0 + col2 FROM tab1 AS cor0
----
-1269
-389
-487

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-752
SELECT col0 * col0 + cor0.col0 DIV 91 AS col2 FROM tab1 AS cor0
----
4096
6400
9

skipif mysql # not compatible
query I rowsort label-752
SELECT col0 * col0 + cor0.col0 / 91 AS col2 FROM tab1 AS cor0
----
4096
6400
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - cor1.col1 col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to b234798d4706314ba14eaad539d0aa88

query I rowsort
SELECT ALL + 84 AS col1 FROM tab2
----
84
84
84

onlyif mysql # use DIV operator for integer division
query I rowsort label-755
SELECT + - cor0.col0 + col1 DIV col1 FROM tab1 AS cor0
----
-2
-63
-79

skipif mysql # not compatible
query I rowsort label-755
SELECT + - cor0.col0 + col1 / col1 FROM tab1 AS cor0
----
-2
-63
-79

onlyif mysql # use DIV operator for integer division
query I rowsort label-756
SELECT - 31 + col0 DIV col0 AS col0 FROM tab0 AS cor0
----
-30
-30
-30

skipif mysql # not compatible
query I rowsort label-756
SELECT - 31 + col0 / col0 AS col0 FROM tab0 AS cor0
----
-30
-30
-30

query I rowsort
SELECT ALL + 23 * + col1 FROM tab0 AS cor0
----
1978
2093
2231

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

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-760
SELECT col0 * + CAST( + col1 AS SIGNED ) FROM tab2 AS cor0
----
1343
217
4602

skipif mysql # not compatible
query I rowsort label-760
SELECT col0 * + CAST ( + col1 AS INTEGER ) FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT DISTINCT - - col0 * col0 + col1 - + col0 AS col0 FROM tab0 AS cor0
----
1287
638
7923

query I rowsort
SELECT + col0 + 44 * + col2 AS col0 FROM tab0 AS cor0
----
1476
3697
79

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-763
SELECT DISTINCT + cor0.col1 / - col2 col0 FROM tab1 AS cor0
----
0

query I rowsort
SELECT ALL - + col0 * + cor0.col1 + col2 FROM tab0 cor0
----
-2031
-3394
-8017

query I rowsort
SELECT DISTINCT - + col1 + + col1 * - col0 FROM tab1 AS cor0
----
-104
-1053
-650

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-766
SELECT DISTINCT CAST( col1 AS SIGNED ) + col1 FROM tab0 AS cor0
----
172
182
194

skipif mysql # not compatible
query I rowsort label-766
SELECT DISTINCT CAST ( col1 AS INTEGER ) + col1 FROM tab0 AS cor0
----
172
182
194

query I rowsort
SELECT - 71 - col1 FROM tab2 AS cor0
----
-102
-130
-88

query I rowsort
SELECT DISTINCT + - 45 + 81 - cor0.col0 FROM tab0 cor0
----
-53
1
12

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 0 col1 FROM tab0 AS cor0
----
0

query I rowsort
SELECT - + col1 - + 45 AS col2 FROM tab0 AS cor0
----
-131
-136
-142

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-771
SELECT - CAST( - col0 AS SIGNED ) + col1 AS col2 FROM tab0 AS cor0
----
110
132
180

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

query I rowsort
SELECT DISTINCT + 99 AS col1 FROM tab2, tab0 AS cor0
----
99

query I rowsort
SELECT ALL - - 2 AS col1 FROM tab1 cor0
----
2
2
2

query I rowsort
SELECT 82 + cor0.col2 AS col0 FROM tab0 AS cor0
----
115
164
83

query I rowsort
SELECT ALL - cor0.col2 + - 76 FROM tab2 AS cor0
----
-102
-103
-114

query I rowsort
SELECT col1 * - col0 - cor0.col2 * 75 AS col0 FROM tab1 AS cor0
----
-4128
-4915
-8240

onlyif mysql # use DIV operator for integer division
query I rowsort label-777
SELECT - ( 7 ) * - col1 - - col2 DIV - 16 FROM tab0 AS cor0
----
600
632
679

skipif mysql # not compatible
query I rowsort label-777
SELECT - ( 7 ) * - col1 - - col2 / - 16 FROM tab0 AS cor0
----
600
632
679

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 56 col0 FROM tab1, tab1 cor0
----
9 values hashing to 3d3dab400eef93c098acbbba3fc9bdc6

query I rowsort
SELECT + col0 + 32 * + col2 * cor0.col2 FROM tab0 AS cor0
----
215257
34872
67

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

query I rowsort
SELECT DISTINCT 93 * col2 AS col2 FROM tab0
----
3069
7626
93

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

query I rowsort
SELECT ALL 8 AS col0 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to 33069adc3c1142d31511ec88fcfa40af

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

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab2 cor0, tab2 AS cor1, tab1 cor2
----
972 values hashing to 263f0eb7d5dfd4076c74918bc141bd9b

query I rowsort
SELECT + 64 * 6 FROM tab0 AS cor0
----
384
384
384

query I rowsort
SELECT - ( - col0 ) * col0 * - 44 + col1 FROM tab0 AS cor0
----
-25258
-348433
-53803

query I rowsort
SELECT + 88 * col2 * + col2 FROM tab2 AS cor0
----
127072
59488
64152

onlyif mysql # use DIV operator for integer division
query I rowsort label-790
SELECT + col0 * col2 * 13 - col1 DIV - cor0.col0 AS col0 FROM tab2 AS cor0
----
2461
26364
39026

skipif mysql # not compatible
query I rowsort label-790
SELECT + col0 * col2 * 13 - col1 / - cor0.col0 AS col0 FROM tab2 AS cor0
----
2461
26364
39026

onlyif mysql # use DIV operator for integer division
query I rowsort label-791
SELECT + + 88 + col2 * + CAST( col2 AS SIGNED ) + - col2 DIV 15 FROM tab0 AS cor0
----
1175
6807
89

skipif mysql # not compatible
query I rowsort label-791
SELECT + + 88 + col2 * + CAST ( col2 AS INTEGER ) + - col2 / 15 FROM tab0 AS cor0
----
1175
6807
89

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-793
SELECT - ( - 80 ) DIV col2 FROM tab0
----
0
2
80

skipif mysql # not compatible
query I rowsort label-793
SELECT - ( - 80 ) / col2 FROM tab0
----
0
2
80

query I rowsort
SELECT ALL 70 * - tab2.col1 AS col0 FROM tab2
----
-1190
-2170
-4130

query I rowsort
SELECT ALL 74 * + col1 + col1 * 52 AS col1 FROM tab0 AS cor0
----
10836
11466
12222

onlyif mysql # use DIV operator for integer division
query I rowsort label-796
SELECT ALL + + cor0.col2 DIV cor0.col0 - 35 FROM tab0 cor0
----
-34
-35
-35

skipif mysql # not compatible
query I rowsort label-796
SELECT ALL + + cor0.col2 / cor0.col0 - 35 FROM tab0 cor0
----
-34
-35
-35

query I rowsort
SELECT + ( 32 ) * col2 FROM tab2
----
1216
832
864

query I rowsort
SELECT + cor0.col2 * - 23 FROM tab2 cor0
----
-598
-621
-874

query I rowsort
SELECT + col2 * 74 FROM tab1 AS cor0
----
3996
4218
7104

query I rowsort
SELECT - cor0.col2 * 36 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to fe81505d4a4368f83e2c162edba6f6ab

query I rowsort
SELECT + 68 * tab2.col1 + + col2 * - tab2.col0 AS col1 FROM tab2
----
-1846
1919
1984

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-804
SELECT cor0.col2 * - col0 DIV - col0 AS col0 FROM tab0 AS cor0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-804
SELECT cor0.col2 * - col0 / - col0 AS col0 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT 74 AS col0 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to dc22979e6d261795bd3ce2990fdbbf82

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

query I rowsort
SELECT ( col0 ) * + col0 AS col1 FROM tab1 AS cor0
----
4096
6400
9

query I rowsort
SELECT col1 * col1 + + tab2.col2 * col1 AS col2 FROM tab2
----
1798
5015
935

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

query I rowsort
SELECT ALL cor0.col1 + + col2 + col0 AS col0 FROM tab1 AS cor0
----
131
189
83

query I rowsort
SELECT DISTINCT + col2 * + ( + ( - col1 ) ) - 37 FROM tab1 AS cor0
----
-1285
-1441
-607

query I rowsort
SELECT ALL col2 + cor0.col1 AS col1 FROM tab1 AS cor0
----
109
67
80

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + ( + 20 * col2 ) col0 FROM tab0 AS cor0
----
117
1731
746

query I rowsort
SELECT col0 + - col2 - - cor0.col1 * col2 FROM tab1 AS cor0
----
1232
1353
577

query I rowsort
SELECT + col2 + - 72 FROM tab0
----
-39
-71
10

query I rowsort
SELECT tab2.col2 - - 55 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to b416ff30f643e03237700697c1c457a1

query I rowsort
SELECT DISTINCT - tab0.col1 + + 70 AS col2 FROM tab0
----
-16
-21
-27

onlyif mysql # use DIV operator for integer division
query I rowsort label-819
SELECT DISTINCT - col1 DIV - 92 + + col1 FROM tab2
----
17
31
59

skipif mysql # not compatible
query I rowsort label-819
SELECT DISTINCT - col1 / - 92 + + col1 FROM tab2
----
17
31
59

query I rowsort
SELECT DISTINCT col0 * col1 + - col1 + - col1 AS col1 FROM tab2 AS cor0
----
1309
155
4484

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * ( - col0 ) + - col0 col1 FROM tab0 AS cor0
----
2040
3360
8010

onlyif mysql # use DIV operator for integer division
query I rowsort label-825
SELECT + col0 DIV 12 + + col1 + cor0.col0 FROM tab0 AS cor0
----
112
134
187

skipif mysql # not compatible
query I rowsort label-825
SELECT + col0 / 12 + + col1 + cor0.col0 FROM tab0 AS cor0
----
112
134
187

query I rowsort
SELECT + cor0.col2 - + 25 AS col1 FROM tab0 AS cor0
----
-24
57
8

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col2 * col2 col1 FROM tab0 AS cor0
----
1
1089
6724

query I rowsort
SELECT DISTINCT 79 * cor0.col1 + ( col2 ) * col1 FROM tab2 AS cor0
----
1989
3286
6195

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 92 * + col1 col1 FROM tab0 cor0
----
7912
8372
8924

query I rowsort
SELECT DISTINCT 93 AS col1 FROM tab1, tab0 AS cor0 CROSS JOIN tab0
----
93

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-835
SELECT DISTINCT + - 89 DIV - col1 FROM tab2 AS cor0
----
1
2
5

skipif mysql # not compatible
query I rowsort label-835
SELECT DISTINCT + - 89 / - col1 FROM tab2 AS cor0
----
1
2
5

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

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

query I rowsort
SELECT 67 + col0 FROM tab0 AS cor0
----
102
156
91

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

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

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

query I rowsort
SELECT DISTINCT - + col1 * + cor0.col0 * cor0.col2 AS col2 FROM tab2 AS cor0
----
-119652
-51034
-5859

query I rowsort
SELECT ALL - 51 * cor0.col0 AS col0 FROM tab0 AS cor0
----
-1224
-1785
-4539

query I rowsort
SELECT DISTINCT + 55 * + col2 AS col0 FROM tab2 AS cor0
----
1430
1485
2090

query I rowsort
SELECT + 83 AS col2 FROM tab2
----
83
83
83

query I rowsort
SELECT 93 * col2 * 71 + + col1 AS col1 FROM tab1
----
356588
376381
633901

query I rowsort
SELECT ALL cor0.col0 AS col0 FROM tab2, tab2 cor0, tab2 cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83

query I rowsort
SELECT DISTINCT cor1.col1 + 88 * + 0 FROM tab0, tab0 cor0, tab0 AS cor1
----
86
91
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-848
SELECT col1 + - ( + col0 ) - + tab0.col0 DIV col1 AS col1 FROM tab0
----
2
62
62

skipif mysql # not compatible
query I rowsort label-848
SELECT col1 + - ( + col0 ) - + tab0.col0 / col1 AS col1 FROM tab0
----
2
62
62

query I rowsort
SELECT DISTINCT + col1 + - ( tab1.col1 ) - - col2 FROM tab1
----
54
57
96

query I rowsort
SELECT - col0 + + cor0.col1 * col0 + - 36 FROM tab1 AS cor0
----
39
540
924

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

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-852
SELECT CAST( + col1 AS SIGNED ) * + col1 + col0 AS col1 FROM tab2 AS cor0
----
3559
368
968

skipif mysql # not compatible
query I rowsort label-852
SELECT CAST ( + col1 AS INTEGER ) * + col1 + col0 AS col1 FROM tab2 AS cor0
----
3559
368
968

query I rowsort
SELECT + tab0.col0 * - 80 AS col0 FROM tab0
----
-1920
-2800
-7120

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

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

skipif mysql # not compatible
query I rowsort label-855
SELECT - col2 + + col1 / - ( cor0.col1 ) FROM tab2 AS cor0
----
-27
-28
-39

query I rowsort
SELECT DISTINCT col0 + - col1 * col2 FROM tab0
----
-2814
-62
-7373

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

query I rowsort
SELECT DISTINCT 61 + 31 AS col1 FROM tab1
----
92

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

skipif mysql # not compatible
query I rowsort label-859
SELECT ALL + col0 / - col1 + + tab0.col2 + + tab0.col0 FROM tab0
----
171
36
57

onlyif mysql # use DIV operator for integer division
query I rowsort label-860
SELECT col2 DIV 22 + col0 DIV col2 AS col0 FROM tab1
----
2
3
4

skipif mysql # not compatible
query I rowsort label-860
SELECT col2 / 22 + col0 / col2 AS col0 FROM tab1
----
2
3
4

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-862
SELECT - col2 + ( col1 ) DIV col0 col0 FROM tab1 AS cor0
----
-46
-57
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-862
SELECT - col2 + ( col1 ) / col0 col0 FROM tab1 AS cor0
----
-46
-57
-96

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

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

query I rowsort
SELECT DISTINCT - + col0 * ( 61 ) AS col2 FROM tab1 cor0
----
-183
-3904
-4880

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

query I rowsort
SELECT - col0 * 86 + + ( col1 ) * col0 + - 52 AS col1 FROM tab0
----
-52
333
393

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

query I rowsort
SELECT + cor1.col2 FROM tab1, tab1 AS cor0, tab0 cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475

query I rowsort
SELECT 20 * + ( - col0 ) + col0 * cor0.col1 * col2 AS col0 FROM tab0 cor0
----
2695
662338
67632

onlyif mysql # use DIV operator for integer division
query I rowsort label-870
SELECT - col0 DIV col0 + + col0 + + 71 * 33 AS col2 FROM tab0 cor0
----
2366
2377
2431

skipif mysql # not compatible
query I rowsort label-870
SELECT - col0 / col0 + + col0 + + 71 * 33 AS col2 FROM tab0 cor0
----
2366
2377
2431

query I rowsort
SELECT DISTINCT 96 + 24 FROM tab2, tab2 AS cor0
----
120

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

query I rowsort
SELECT 41 * col1 + col0 AS col0 FROM tab1
----
1069
474
613

query I rowsort
SELECT 71 FROM tab1, tab2 AS cor0 CROSS JOIN tab2, tab2 AS cor1
----
81 values hashing to 39b7515708f32e28b7b5a1bfec0df356

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * col2 * col2 col2 FROM tab1
----
119808
32490
75816

query I rowsort
SELECT ALL 66 * col1 FROM tab0
----
5676
6006
6402

query I rowsort
SELECT 87 AS col0 FROM tab1, tab2, tab1 AS cor0
----
27 values hashing to 8661ffbd1a72897c495405c53b816e50

query I rowsort
SELECT + 12 AS col0 FROM tab1
----
12
12
12

query I rowsort
SELECT DISTINCT - 7 * col0 AS col1 FROM tab1
----
-21
-448
-560

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-882
SELECT + - col2 * col2 DIV + 62 AS col2 FROM tab0 cor0
----
-108
-17
0

skipif mysql # not compatible
query I rowsort label-882
SELECT + - col2 * col2 / + 62 AS col2 FROM tab0 cor0
----
-108
-17
0

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

query I rowsort
SELECT DISTINCT + 16 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
16

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

query I rowsort
SELECT + cor0.col1 * + 70 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to f768aa8467156c86f2503935ffbf2688

query I rowsort
SELECT DISTINCT + 61 + + 65 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
126

query I rowsort
SELECT ALL - cor0.col1 * + 24 - - 79 * + cor0.col0 FROM tab1 AS cor0
----
-387
4816
6008

query I rowsort
SELECT ALL + - 2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to ec11209ab257030053484fc13a1f6d17

query I rowsort
SELECT DISTINCT 73 * + tab1.col0 FROM tab1
----
219
4672
5840

query I rowsort
SELECT cor1.col0 AS col1 FROM tab2, tab2 AS cor0, tab1 AS cor1, tab2 AS cor2
----
81 values hashing to e28bf7f922650ca423ade3642ce0285b

query I rowsort
SELECT - col2 * + col1 + col0 FROM tab0
----
-2814
-62
-7373

onlyif mysql # use DIV operator for integer division
query I rowsort label-893
SELECT ALL + col1 DIV - ( + col1 * - col1 ) AS col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-893
SELECT ALL + col1 / - ( + col1 * - col1 ) AS col1 FROM tab2
----
0
0
0

query I rowsort
SELECT tab2.col2 - col1 * - 52 AS col2 FROM tab2
----
1639
3094
922

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + - 30 col0 FROM tab0
----
-119
-54
-65

query I rowsort
SELECT col2 + ( - col1 ) * col2 * - cor0.col2 AS col0 FROM tab2 AS cor0
----
22626
24586
39910

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 28 * - cor0.col2 col0 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 9b45cde768e9edba11191f66b0ab550c

onlyif mysql # use DIV operator for integer division
query I rowsort label-898
SELECT + col1 DIV 38 AS col2 FROM tab0 AS cor0
----
2
2
2

skipif mysql # not compatible
query I rowsort label-898
SELECT + col1 / 38 AS col2 FROM tab0 AS cor0
----
2
2
2

query I rowsort
SELECT 93 FROM tab1, tab2, tab1 AS cor0
----
27 values hashing to 85ef191bf1b307f300b3fd49992fcae7

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

skipif mysql # not compatible
query I rowsort label-900
SELECT CAST ( col0 AS INTEGER ) * col2 * + ( - col0 ) FROM tab2
----
-1323
-158184
-237158

query I rowsort
SELECT ( - col1 + + col0 ) FROM tab1
----
-23
54
67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * ( col2 * 48 ) col2 FROM tab1
----
-175104
-368640
-7776

onlyif mysql # use DIV operator for integer division
query I rowsort label-903
SELECT + - ( - cor0.col2 ) + + col2 DIV - ( col2 * + col0 ) FROM tab1 cor0
----
54
57
96

skipif mysql # not compatible
query I rowsort label-903
SELECT + - ( - cor0.col2 ) + + col2 / - ( col2 * + col0 ) FROM tab1 cor0
----
54
57
96

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

query I rowsort
SELECT ( cor0.col0 ) * 70 FROM tab2 AS cor0
----
490
5460
5530

query I rowsort
SELECT - col1 * - 19 FROM tab0
----
1634
1729
1843

query I rowsort
SELECT DISTINCT - 10 FROM tab2
----
-10

query I rowsort
SELECT + - 62 AS col0 FROM tab1 cor0
----
-62
-62
-62

query I rowsort
SELECT ALL - ( - col2 ) * col2 + - col1 * - col2 FROM tab0 AS cor0
----
14186
3927
98

query I rowsort
SELECT ALL + col1 + - 13 * - col2 + ( + 19 ) FROM tab2 AS cor0
----
401
416
530

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

query I rowsort
SELECT - 36 + - cor0.col0 * + col2 FROM tab0 AS cor0
----
-71
-7334
-828

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

query I rowsort
SELECT ALL - 9 * - col0 FROM tab0 AS cor0
----
216
315
801

query I rowsort
SELECT - 63 + 69 AS col2 FROM tab2 AS cor0
----
6
6
6

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

query I rowsort
SELECT ALL 82 * + col0 FROM tab1 cor0
----
246
5248
6560

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

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

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

query I rowsort
SELECT DISTINCT - ( - col0 ) * - col0 AS col0 FROM tab1
----
-4096
-6400
-9

query I rowsort
SELECT + cor1.col0 AS col2 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f

query I rowsort
SELECT ALL - 33 * tab1.col2 AS col1 FROM tab1
----
-1782
-1881
-3168

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-923
SELECT DISTINCT - col2 + CAST( 35 AS SIGNED ) FROM tab2 AS cor0
----
-3
8
9

skipif mysql # not compatible
query I rowsort label-923
SELECT DISTINCT - col2 + CAST ( 35 AS INTEGER ) FROM tab2 AS cor0
----
-3
8
9

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

query I rowsort
SELECT ALL + + cor0.col2 + - 51 FROM tab2 AS cor0
----
-13
-24
-25

onlyif mysql # use DIV operator for integer division
query I rowsort label-926
SELECT col1 DIV - CAST( - col0 AS SIGNED ) FROM tab2 AS cor0
----
0
0
4

skipif mysql # not compatible
query I rowsort label-926
SELECT col1 / - CAST ( - col0 AS INTEGER ) FROM tab2 AS cor0
----
0
0
4

query I rowsort
SELECT ALL col2 * col0 * 42 + - cor0.col0 * + col0 AS col1 FROM tab1 AS cor0
----
149120
316160
6795

onlyif mysql # use DIV operator for integer division
query I rowsort label-928
SELECT cor0.col2 DIV 27 + col0 FROM tab0 cor0
----
25
35
92

skipif mysql # not compatible
query I rowsort label-928
SELECT cor0.col2 / 27 + col0 FROM tab0 cor0
----
25
35
92

onlyif mysql # use DIV operator for integer division
query I rowsort label-929
SELECT DISTINCT + col0 + 76 DIV - 13 AS col1 FROM tab0 AS cor0
----
19
30
84

skipif mysql # not compatible
query I rowsort label-929
SELECT DISTINCT + col0 + 76 / - 13 AS col1 FROM tab0 AS cor0
----
19
30
84

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

skipif mysql # not compatible
query I rowsort label-930
SELECT ALL - col0 / - ( - cor0.col0 * + col1 ) AS col2 FROM tab0 AS cor0
----
0
0
0

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

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

query I rowsort
SELECT ALL 57 + col1 FROM tab2
----
116
74
88

onlyif mysql # use DIV operator for integer division
query I rowsort label-933
SELECT DISTINCT tab0.col0 DIV col2 + 22 - - 14 * + col0 * ( - col0 ) AS col0 FROM tab0
----
-110871
-17093
-8042

skipif mysql # not compatible
query I rowsort label-933
SELECT DISTINCT tab0.col0 / col2 + 22 - - 14 * + col0 * ( - col0 ) AS col0 FROM tab0
----
-110871
-17093
-8042

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

skipif mysql # not compatible
query I rowsort label-934
SELECT - - cor0.col1 + CAST ( NULL AS REAL ) * + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

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

query I rowsort
SELECT + col2 + 14 * + cor0.col1 AS col0 FROM tab0 AS cor0
----
1237
1356
1359

query I rowsort
SELECT ALL - col0 * col1 * col1 + col2 AS col2 FROM tab1
----
-13424
-1974
-6343

query I rowsort
SELECT + col0 - col1 * 12 AS col2 FROM tab1
----
-309
-56
-76

query I rowsort
SELECT ALL - col2 * + 39 + - ( + col1 + + col2 ) AS col2 FROM tab2
----
-1099
-1111
-1537

query I rowsort
SELECT DISTINCT - col0 + 1 FROM tab0
----
-23
-34
-88

query I rowsort
SELECT ALL - + col1 * + 7 FROM tab0 AS cor0
----
-602
-637
-679

query I rowsort
SELECT ALL + - col0 + - 70 * + col2 + cor0.col1 FROM tab2 AS cor0
----
-1839
-1866
-2722

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

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

query I rowsort
SELECT DISTINCT - - 14 * cor0.col2 + + col2 FROM tab1 AS cor0
----
1440
810
855

query I rowsort
SELECT DISTINCT - cor0.col2 * - 47 AS col2 FROM tab0 AS cor0
----
1551
3854
47

query I rowsort
SELECT + 12 + + col0 * col1 FROM tab2 AS cor0
----
1355
229
4614

query I rowsort
SELECT + col0 * + col0 + cor0.col2 * col2 AS col2 FROM tab2 AS cor0
----
6760
7685
778

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

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

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

query I rowsort
SELECT 78 * col2 AS col1 FROM tab2 AS cor0
----
2028
2106
2964

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

query I rowsort
SELECT ALL - 86 * ( - col2 ) FROM tab2 AS cor0
----
2236
2322
3268

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

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

query I rowsort
SELECT ALL + - col2 * - cor0.col1 + ( col1 ) FROM tab0 AS cor0
----
194
2924
7553

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

query I rowsort
SELECT DISTINCT - col1 + col1 * col1 + - cor0.col1 FROM tab2 AS cor0
----
255
3363
899

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + - col0 - + col1 * - 40 col1 FROM tab2 AS cor0
----
1206
2256
563

query I rowsort
SELECT DISTINCT 60 * col1 + col0 * col1 * + col2 AS col0 FROM tab2 AS cor0
----
123192
52054
7719

query I rowsort
SELECT ALL - col0 * + 94 * - ( col1 ) + - ( col1 ) FROM tab1 AS cor0
----
60150
7306
97747

query I rowsort
SELECT + col2 * ( col2 ) * col0 + + col2 AS col1 FROM tab0 AS cor0
----
26169
36
598518

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

query I rowsort
SELECT DISTINCT 46 AS col2 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
46

query I rowsort
SELECT col0 * + col1 + + 97 + - col0 FROM tab1
----
1057
172
673

onlyif mysql # use DIV operator for integer division
query I rowsort label-968
SELECT + col2 * col1 DIV - ( - ( + tab2.col1 ) * - 74 ) FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-968
SELECT + col2 * col1 / - ( - ( + tab2.col1 ) * - 74 ) FROM tab2
----
0
0
0

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

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

query I rowsort
SELECT DISTINCT tab2.col1 * col2 * - tab2.col2 AS col0 FROM tab2
----
-22599
-24548
-39884

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

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

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

skipif mysql # not compatible
query I rowsort label-974
SELECT ALL + cor0.col2 * col1 + - cor0.col1 * cor0.col2 + cor0.col0 / col2 FROM tab1 AS cor0
----
0
0
1

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

query I rowsort
SELECT - cor0.col1 + cor0.col0 * + col0 * + col2 AS col1 FROM tab0 AS cor0
----
1128
18922
649431

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

query I rowsort
SELECT col1 * - col2 + + col2 AS col1 FROM tab0
----
-2805
-7380
-96

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

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT NULL IN ( - col1 )
----

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-982
SELECT ALL col2 + + col1 * col0 + + col0 DIV + col0 FROM tab1
----
1137
133
698

skipif mysql # not compatible
query I rowsort label-982
SELECT ALL col2 + + col1 * col0 + + col0 / + col0 FROM tab1
----
1137
133
698

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

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

query I rowsort
SELECT col1 * + col0 + col2 AS col2 FROM tab2
----
1381
244
4628

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

query I rowsort
SELECT col0 + - col0 * + col1 * col2 FROM tab2
----
-119574
-50955
-5852

query I rowsort
SELECT - col0 + col0 * - tab1.col0 * + col1 AS col2 FROM tab1
----
-237
-41024
-83280

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NULL ) IN ( col1 ) AND ( col0 + col1 - col1 ) IN ( + col0 )
----

query I rowsort
SELECT tab1.col1 + - col0 * - col0 AS col0 FROM tab1
----
35
4106
6413

query I rowsort
SELECT - 22 * col1 + - 41 FROM tab2 AS cor0
----
-1339
-415
-723

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

query I rowsort
SELECT DISTINCT col2 * + col1 + col1 FROM tab1
----
1261
1430
580

query I rowsort
SELECT col0 * - col0 + col1 FROM tab2
----
-18
-6025
-6224

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( + col1 / col0 ) NOT BETWEEN - col1 AND NULL
----

query I rowsort
SELECT col2 + - col2 * - col0 * col0 AS col0 FROM tab0
----
1226
19041
649604

query I rowsort
SELECT ALL col1 * - col2 + + col1 * - col2 AS col2 FROM tab1
----
-1140
-2496
-2808

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col0 col1 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 85 col0 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to e4cf94cf0cc632acff30ad1dac617cb7

onlyif mysql # use DIV operator for integer division
query I rowsort label-1000
SELECT + 83 DIV + col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1000
SELECT + 83 / + col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort
SELECT 85 + col0 / + CAST ( - col0 AS REAL ) AS col0 FROM tab2 AS cor0
----
84
84
84

query I rowsort
SELECT col0 * col0 + - col1 * + col2 FROM tab2
----
-788
4550
5595

query I rowsort
SELECT DISTINCT + col1 * - col2 + col2 FROM tab1
----
-1152
-1350
-513

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1005
SELECT + col2 * - col2 DIV col2 + - col0 FROM tab1
----
-121
-176
-57

skipif mysql # not compatible
query I rowsort label-1005
SELECT + col2 * - col2 / col2 + - col0 FROM tab1
----
-121
-176
-57

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1007
SELECT tab2.col2 * - col0 DIV col0 - col2 * + tab2.col1 FROM tab2
----
-1560
-684
-864

skipif mysql # not compatible
query I rowsort label-1007
SELECT tab2.col2 * - col0 / col0 - col2 * + tab2.col1 FROM tab2
----
-1560
-684
-864

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col2 > NULL
----

query I rowsort
SELECT cor0.col2 + cor0.col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 5484e660e65aa37f29a1eca3fc30f5cc

query I rowsort
SELECT DISTINCT - col1 * tab1.col1 + - col0 AS col2 FROM tab1
----
-164
-249
-679

query I rowsort
SELECT DISTINCT col0 FROM tab1 WHERE NULL >= ( + col2 / - col2 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-1012
SELECT col2 * + col2 + - col0 DIV - tab1.col2 - - tab1.col1 AS col0 FROM tab1
----
2942
3260
9229

skipif mysql # not compatible
query I rowsort label-1012
SELECT col2 * + col2 + - col0 / - tab1.col2 - - tab1.col1 AS col0 FROM tab1
----
2942
3260
9229

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL NOT IN ( + col1 * + col1 * - col2 )
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + - tab2.col2 * tab2.col2 + + col0 * + col1 col1 FROM tab2
----
-118
-543
3867

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

query I rowsort
SELECT ALL col2 + col0 AS col2 FROM tab1 WHERE NOT - col0 + - col1 IN ( - tab1.col1 / col0 )
----
121
176
57

onlyif mysql # use DIV operator for integer division
query I rowsort label-1019
SELECT DISTINCT - col1 * col0 + tab0.col1 DIV - tab0.col0 AS col2 FROM tab0
----
-2067
-3397
-8100

skipif mysql # not compatible
query I rowsort label-1019
SELECT DISTINCT - col1 * col0 + tab0.col1 / - tab0.col0 AS col2 FROM tab0
----
-2067
-3397
-8100

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

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

query III rowsort
SELECT * FROM tab1 WHERE - col1 * col0 + - col0 + + col0 / col0 BETWEEN col1 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab0.col0 + - col0 col1 FROM tab0 WHERE NOT NULL = ( NULL )
----

query I rowsort
SELECT ALL + col0 + col1 + col2 * + col1 AS col2 FROM tab0
----
229
2948
7642

query I rowsort
SELECT ALL + col0 * col1 + col2 + + col0 * col0 FROM tab2
----
10712
293
7622

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + + col0 * + col0 * + col0 col1 FROM tab2
----
336
474474
492960

query I rowsort
SELECT - ( col2 ) + - col1 FROM tab0
----
-119
-173
-98

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

query I rowsort
SELECT - col1 * cor0.col1 * - col0 FROM tab1 AS cor0
----
13520
2028
6400

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

query I rowsort
SELECT col1 - - col0 * - col0 AS col0 FROM tab2
----
-18
-6025
-6224

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

query I rowsort
SELECT ALL + - col2 * + col2 AS col0 FROM tab0 AS cor0
----
-1
-1089
-6724

onlyif mysql # use DIV operator for integer division
query I rowsort label-1034
SELECT ALL + - col2 + - col2 * col0 DIV + 64 AS col0 FROM tab2 AS cor0
----
-29
-57
-84

skipif mysql # not compatible
query I rowsort label-1034
SELECT ALL + - col2 + - col2 * col0 / + 64 AS col0 FROM tab2 AS cor0
----
-29
-57
-84

query I rowsort
SELECT - + col2 * col0 * - ( col1 ) + col1 + cor0.col1 FROM tab1 AS cor0
----
36500
4264
99866

onlyif mysql # use DIV operator for integer division
query I rowsort label-1036
SELECT DISTINCT col2 + col0 DIV - 29 AS col2 FROM tab0 cor0
----
0
33
79

skipif mysql # not compatible
query I rowsort label-1036
SELECT DISTINCT col2 + col0 / - 29 AS col2 FROM tab0 cor0
----
0
33
79

onlyif mysql # use DIV operator for integer division
query I rowsort label-1037
SELECT DISTINCT + col1 + - col0 DIV ( + 65 ) AS col1 FROM tab1 AS cor0
----
10
12
26

skipif mysql # not compatible
query I rowsort label-1037
SELECT DISTINCT + col1 + - col0 / ( + 65 ) AS col1 FROM tab1 AS cor0
----
10
12
26

query I rowsort
SELECT DISTINCT + cor0.col2 * 52 FROM tab2 AS cor0
----
1352
1404
1976

query I rowsort
SELECT ALL + cor0.col1 * - col1 AS col2 FROM tab1 cor0
----
-100
-169
-676

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

query I rowsort
SELECT DISTINCT - + col1 + 78 FROM tab1 AS cor0
----
52
65
68

query I rowsort
SELECT DISTINCT - cor0.col2 * + col1 + + 79 FROM tab0 cor0
----
-18
-2759
-7383

query I rowsort
SELECT DISTINCT + col2 - col0 * col2 AS col2 FROM tab0 AS cor0
----
-34
-7216
-759

query I rowsort
SELECT DISTINCT - col0 * ( - col1 + col0 ) FROM tab2 AS cor0
----
-1482
-4898
168

query I rowsort
SELECT ALL + cor0.col1 * + col0 + + 77 FROM tab1 cor0
----
1117
155
717

query I rowsort
SELECT col1 * 65 + cor0.col1 FROM tab1 AS cor0
----
1716
660
858

query I rowsort
SELECT ALL + col0 * 43 AS col1 FROM tab0 AS cor0
----
1032
1505
3827

query I rowsort
SELECT tab2.col1 * + cor0.col2 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to ae9e2bb55fd656eb6c7fb22bc2bb0f90

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

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

query I rowsort
SELECT - col1 + - col2 * + ( + 74 ) FROM tab0
----
-171
-2528
-6159

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1051
SELECT CAST( - col0 AS SIGNED ) + col0 + + 58 FROM tab2 AS cor0
----
58
58
58

skipif mysql # not compatible
query I rowsort label-1051
SELECT CAST ( - col0 AS INTEGER ) + col0 + + 58 FROM tab2 AS cor0
----
58
58
58

query I rowsort
SELECT DISTINCT 56 * col2 AS col0 FROM tab2 AS cor0
----
1456
1512
2128

query I rowsort
SELECT ALL - col2 * + 3 AS col1 FROM tab2 cor0
----
-114
-78
-81

query I rowsort
SELECT + ( cor0.col0 ) + + col0 + ( col0 ) FROM tab2 AS cor0
----
21
234
237

query I rowsort
SELECT 96 - + 34 AS col0 FROM tab2 AS cor0
----
62
62
62

query I rowsort
SELECT ALL 67 * col2 AS col0 FROM tab0 AS cor0
----
2211
5494
67

onlyif mysql # use DIV operator for integer division
query I rowsort label-1057
SELECT 61 + col0 + + col2 DIV - ( + col2 ) FROM tab0 AS cor0
----
149
84
95

skipif mysql # not compatible
query I rowsort label-1057
SELECT 61 + col0 + + col2 / - ( + col2 ) FROM tab0 AS cor0
----
149
84
95

query I rowsort
SELECT DISTINCT + 11 + + col2 FROM tab2 cor0
----
37
38
49

query I rowsort
SELECT cor1.col0 + - 48 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 61aeaadabaf967f1abb15887f69ab6e6

query I rowsort
SELECT ALL ( - 21 ) - col2 FROM tab1
----
-117
-75
-78

query I rowsort
SELECT DISTINCT 11 * + col2 AS col2 FROM tab2 AS cor0
----
286
297
418

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

query I rowsort
SELECT + col2 * cor0.col2 + + cor0.col0 * cor0.col1 AS col0 FROM tab1 AS cor0
----
10256
2994
3889

query I rowsort
SELECT DISTINCT 70 * + col0 - col0 FROM tab1
----
207
4416
5520

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1065
SELECT CAST( - col1 AS SIGNED ) * - tab2.col1 + - col2 FROM tab2
----
251
3455
934

skipif mysql # not compatible
query I rowsort label-1065
SELECT CAST ( - col1 AS INTEGER ) * - tab2.col1 + - col2 FROM tab2
----
251
3455
934

onlyif mysql # use DIV operator for integer division
query I rowsort label-1066
SELECT DISTINCT - - col1 DIV col0 + - col2 FROM tab1 AS cor0
----
-46
-57
-96

skipif mysql # not compatible
query I rowsort label-1066
SELECT DISTINCT - - col1 / col0 + - col2 FROM tab1 AS cor0
----
-46
-57
-96

query I rowsort
SELECT DISTINCT + col2 + - cor0.col1 * col0 * - col0 AS col1 FROM tab2 AS cor0
----
106135
1546
358982

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

query I rowsort
SELECT + + 79 * - col1 + col2 AS col2 FROM tab2 AS cor0
----
-1305
-2422
-4635

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

query I rowsort
SELECT ALL + col0 + - 53 + + col2 * - col0 AS col0 FROM tab1
----
-212
-3637
-7653

onlyif mysql # use DIV operator for integer division
query I rowsort label-1072
SELECT col2 * col2 DIV col0 FROM tab0
----
0
45
75

skipif mysql # not compatible
query I rowsort label-1072
SELECT col2 * col2 / col0 FROM tab0
----
0
45
75

query I rowsort
SELECT 42 + + 92 * - col0 + + col0 FROM tab2
----
-595
-7056
-7147

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

query I rowsort
SELECT ALL col2 + col2 * col2 * tab2.col2 AS col0 FROM tab2
----
17602
19710
54910

query I rowsort
SELECT ALL + col1 + col1 * col0 AS col2 FROM tab2 AS cor0
----
1360
248
4661

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

query I rowsort
SELECT ALL - ( cor0.col2 ) * col2 FROM tab0 AS cor0
----
-1
-1089
-6724

query I rowsort
SELECT + + ( col0 ) + col2 * cor0.col0 - - col0 AS col2 FROM tab1 AS cor0
----
168
3776
7840

query I rowsort
SELECT ALL - - 37 * - col1 + col1 + col2 * col0 FROM tab2 AS cor0
----
-927
-96
2390

query I rowsort
SELECT + col0 * - col1 + col0 + cor0.col0 AS col0 FROM tab1 cor0
----
-512
-72
-880

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + col1 * - col2 col2 FROM tab2 AS cor0
----
-1475
-629
-806

query I rowsort
SELECT DISTINCT + + col0 * ( 24 ) FROM tab1 AS cor0
----
1536
1920
72

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

skipif mysql # not compatible
query I rowsort label-1085
SELECT ALL + col1 * - CAST ( col1 AS INTEGER ) + - col0 AS col2 FROM tab1 AS cor0
----
-164
-249
-679

query I rowsort
SELECT ALL - col2 * 8 * col2 + - col0 FROM tab0 cor0
----
-43
-53881
-8736

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

query I rowsort
SELECT + col1 * ( + col0 ) + - cor0.col2 AS col2 FROM tab0 AS cor0
----
2031
3394
8017

query I rowsort
SELECT ALL cor0.col0 + - cor0.col0 * + cor0.col2 FROM tab1 cor0
----
-159
-3584
-7600

query I rowsort
SELECT - - ( col2 ) * - col2 AS col2 FROM tab1 AS cor0
----
-2916
-3249
-9216

query I rowsort
SELECT DISTINCT + 77 + ( + col0 ) FROM tab1 AS cor0
----
141
157
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 76 + - col0 col1 FROM tab1 AS cor0
----
-4
12
73

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

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

query I rowsort
SELECT ALL - ( - 64 ) + - col0 * cor0.col1 FROM tab2 cor0
----
-1279
-153
-4538

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1096
SELECT DISTINCT CAST( - 36 AS SIGNED ) * - col1 + + col0 * col2 AS col0 FROM tab2 AS cor0
----
1305
3614
4152

skipif mysql # not compatible
query I rowsort label-1096
SELECT DISTINCT CAST ( - 36 AS INTEGER ) * - col1 + + col0 * col2 AS col0 FROM tab2 AS cor0
----
1305
3614
4152

query I rowsort
SELECT ALL - 82 + - col0 * - col1 AS col2 FROM tab1 AS cor0
----
-4
558
958

query I rowsort
SELECT + 39 + cor0.col0 AS col2 FROM tab1 AS cor0
----
103
119
42

query I rowsort
SELECT - col1 + + 26 AS col2 FROM tab2
----
-33
-5
9

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

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

query I rowsort
SELECT DISTINCT - tab2.col0 AS col1 FROM tab2, tab2 AS cor0, tab0 cor1
----
-7
-78
-79

query I rowsort
SELECT 23 FROM tab1, tab0 cor0
----
9 values hashing to d94fadcc1c8cc4fc51b78b83e04795f2

query I rowsort
SELECT ALL tab2.col2 * 90 FROM tab2
----
2340
2430
3420

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

skipif mysql # not compatible
query I rowsort label-1105
SELECT ALL + CAST ( NULL AS INTEGER ) / + cor0.col1 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT ALL 71 * + ( - col2 + col0 ) FROM tab0
----
-639
2414
497

query I rowsort
SELECT DISTINCT 79 + - tab0.col1 AS col1 FROM tab0, tab1 AS cor0
----
-12
-18
-7

query I rowsort
SELECT ALL - 13 * - col1 FROM tab2
----
221
403
767

onlyif mysql # use DIV operator for integer division
query I rowsort label-1109
SELECT DISTINCT 53 DIV tab2.col1 AS col0 FROM tab2
----
0
1
3

skipif mysql # not compatible
query I rowsort label-1109
SELECT DISTINCT 53 / tab2.col1 AS col0 FROM tab2
----
0
1
3

query I rowsort
SELECT - - col1 + - cor0.col2 * col1 FROM tab0 AS cor0
----
-2752
-7371
0

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

query I rowsort
SELECT + - col0 * 44 AS col2 FROM tab0 AS cor0
----
-1056
-1540
-3916

query I rowsort
SELECT ( 30 ) AS col2 FROM tab1 AS cor0
----
30
30
30

query I rowsort
SELECT DISTINCT 18 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
18

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

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

query I rowsort
SELECT + col2 * - cor0.col2 + + cor0.col0 AS col1 FROM tab2 cor0
----
-1365
-598
-722

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

skipif mysql # not compatible
query I rowsort label-1118
SELECT col2 / - col1 + cor0.col2 AS col1 FROM tab0 cor0
----
1
33
82

query I rowsort
SELECT + ( - col0 ) + col0 * + col2 AS col1 FROM tab1 AS cor0
----
159
3584
7600

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

skipif mysql # not compatible
query I rowsort label-1120
SELECT + col0 + - col1 * + col1 / col1 FROM tab2 AS cor0
----
-24
19
62

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

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

query I rowsort
SELECT + col2 * 64 + - col0 FROM tab2 AS cor0
----
1586
1721
2353

query I rowsort
SELECT + col1 * 42 AS col0 FROM tab1
----
1092
420
546

query I rowsort
SELECT DISTINCT - + col0 + + col1 * - col2 FROM tab1 AS cor0
----
-1328
-1407
-634

onlyif mysql # use DIV operator for integer division
query I rowsort label-1125
SELECT - col0 + + col2 DIV - col0 AS col2 FROM tab1 cor0
----
-21
-64
-81

skipif mysql # not compatible
query I rowsort label-1125
SELECT - col0 + + col2 / - col0 AS col2 FROM tab1 cor0
----
-21
-64
-81

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

query I rowsort
SELECT + col2 * col2 + + col2 FROM tab1 AS cor0
----
2970
3306
9312

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

query I rowsort
SELECT - + col1 * 48 FROM tab0 AS cor0
----
-4128
-4368
-4656

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

query I rowsort
SELECT + col0 - 89 AS col2 FROM tab1 AS cor0
----
-25
-86
-9

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

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

query I rowsort
SELECT DISTINCT - col2 * - col0 + - 43 FROM tab1 AS cor0
----
119
3605
7637

query I rowsort
SELECT ALL + + cor0.col0 - - 52 * - col0 AS col1 FROM tab1 AS cor0
----
-153
-3264
-4080

query I rowsort
SELECT + - cor0.col0 - + 95 FROM tab1 AS cor0
----
-159
-175
-98

query I rowsort
SELECT ALL 6 + + 52 AS col2 FROM tab2, tab2 AS cor0, tab1 AS cor1, tab0 AS cor2
----
81 values hashing to 793ce5fda3f22b0a251dca7e8a07baed

query I rowsort
SELECT 69 * + cor0.col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 61be8b4ccea4cb1cc4add000bd70def7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col1 * ( col0 ) + 3 col2 FROM tab0 AS cor0
----
2067
3398
8102

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

query I rowsort
SELECT DISTINCT ( - 72 ) + cor0.col2 FROM tab2 AS cor0
----
-34
-45
-46

query I rowsort
SELECT col0 * + 13 AS col1 FROM tab2 AS cor0
----
1014
1027
91

query I rowsort
SELECT ALL - 8 * - 32 - col1 AS col2 FROM tab0 cor0
----
159
165
170

onlyif mysql # use DIV operator for integer division
query I rowsort label-1144
SELECT + 58 + col0 DIV + cor0.col0 AS col2 FROM tab0 cor0
----
59
59
59

skipif mysql # not compatible
query I rowsort label-1144
SELECT + 58 + col0 / + cor0.col0 AS col2 FROM tab0 cor0
----
59
59
59

query I rowsort
SELECT + 26 * + col2 FROM tab1 AS cor0
----
1404
1482
2496

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

query I rowsort
SELECT DISTINCT + 46 * col2 FROM tab2
----
1196
1242
1748

query I rowsort
SELECT 36 * + col1 AS col2 FROM tab0
----
3096
3276
3492

query I rowsort
SELECT - + cor0.col2 AS col1 FROM tab0, tab2, tab2 AS cor0
----
27 values hashing to f9d4bb8677db7b98c7ed89d06e6e8cd6

onlyif mysql # use DIV operator for integer division
query I rowsort label-1150
SELECT 43 DIV col1 AS col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1150
SELECT 43 / col1 AS col1 FROM tab0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-1151
SELECT DISTINCT 90 DIV + 84 - - col0 FROM tab1
----
4
65
81

skipif mysql # not compatible
query I rowsort label-1151
SELECT DISTINCT 90 / + 84 - - col0 FROM tab1
----
4
65
81

onlyif mysql # use DIV operator for integer division
query I rowsort label-1152
SELECT ALL ( - col2 ) + + cor0.col2 DIV col1 + + col0 FROM tab2 AS cor0
----
-20
43
52

skipif mysql # not compatible
query I rowsort label-1152
SELECT ALL ( - col2 ) + + cor0.col2 / col1 + + col0 FROM tab2 AS cor0
----
-20
43
52

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

query I rowsort
SELECT ALL + + col1 * col2 + col2 * col0 + + 12 AS col1 FROM tab2 AS cor0
----
1038
3574
3660

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

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

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

query I rowsort
SELECT DISTINCT + col0 + 99 * col0 FROM tab2
----
700
7800
7900

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

query I rowsort
SELECT cor0.col2 * - ( - cor0.col2 ) FROM tab1, tab0 AS cor0
----
9 values hashing to 50c4b0a13fc95d13442dcf4b04857ce8

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1160
SELECT - 47 * col2 + + CAST( col0 AS SIGNED ) col2 FROM tab0 AS cor0
----
-12
-1527
-3765

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1160
SELECT - 47 * col2 + + CAST ( col0 AS INTEGER ) col2 FROM tab0 AS cor0
----
-12
-1527
-3765

query I rowsort
SELECT 68 + - cor0.col0 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 6ab25e20896e053ca3410f435d1bf280

query I rowsort
SELECT DISTINCT - col1 + + col1 * col2 * 9 AS col1 FROM tab2
----
13747
5797
7502

query I rowsort
SELECT DISTINCT - col0 + + col0 * + ( col0 ) + + col1 AS col2 FROM tab1
----
32
4042
6333

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

query I rowsort
SELECT + 49 + ( cor0.col1 ) * - ( - cor1.col1 ) FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to f6a47d26ad2e0bbcd47cfdb80649d7dc

query I rowsort
SELECT ALL + cor0.col1 * col1 AS col0 FROM tab0 AS cor0
----
7396
8281
9409

query I rowsort
SELECT + + 33 + + col1 FROM tab2 AS cor0
----
50
64
92

query I rowsort
SELECT col0 + + col2 * + 6 AS col1 FROM tab2 AS cor0
----
169
234
307

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

query I rowsort
SELECT col1 * col0 + tab1.col1 FROM tab1
----
104
1053
650

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

query I rowsort
SELECT ALL col2 * + cor0.col1 * - cor0.col1 + + col0 AS col1 FROM tab2 AS cor0
----
-10903
-25940
-90428

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

query I rowsort
SELECT ALL + 83 * - col1 AS col1 FROM tab2 AS cor0
----
-1411
-2573
-4897

query I rowsort
SELECT DISTINCT - 83 + + 42 FROM tab2 AS cor0
----
-41

query I rowsort
SELECT + - 34 + 4 FROM tab1 AS cor0
----
-30
-30
-30

query I rowsort
SELECT DISTINCT - col2 * col2 + col0 + ( - 56 ) AS col2 FROM tab2 AS cor0
----
-1421
-654
-778

query I rowsort
SELECT 26 + + 44 AS col0 FROM tab1 AS cor0
----
70
70
70

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

query I rowsort
SELECT ALL + - 20 + - cor0.col2 FROM tab0 AS cor0
----
-102
-21
-53

query I rowsort
SELECT DISTINCT + - ( col2 ) FROM tab1 cor0
----
-54
-57
-96

query I rowsort
SELECT ALL - 77 + - 44 FROM tab2 AS cor0
----
-121
-121
-121

query I rowsort
SELECT + 83 * - ( col1 ) + col0 AS col1 FROM tab2 cor0
----
-1332
-2566
-4819

query I rowsort
SELECT ALL - + 13 * col0 AS col1 FROM tab1 AS cor0
----
-1040
-39
-832

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1185
SELECT DISTINCT + CAST( col0 AS SIGNED ) * - col1 + - 56 + 82 FROM tab0 cor0
----
-2038
-3369
-8073

skipif mysql # not compatible
query I rowsort label-1185
SELECT DISTINCT + CAST ( col0 AS INTEGER ) * - col1 + - 56 + 82 FROM tab0 cor0
----
-2038
-3369
-8073

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

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

query I rowsort
SELECT ALL - col0 * - col1 * col0 AS col1 FROM tab2 AS cor0
----
106097
1519
358956

query I rowsort
SELECT DISTINCT - 83 * 14 + + col2 FROM tab1 AS cor0
----
-1066
-1105
-1108

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1190
SELECT DISTINCT - col2 + ( + cor0.col0 ) DIV 84 col2 FROM tab2 AS cor0
----
-26
-27
-38

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1190
SELECT DISTINCT - col2 + ( + cor0.col0 ) / 84 col2 FROM tab2 AS cor0
----
-26
-27
-38

query I rowsort
SELECT - 56 * - cor0.col1 FROM tab1 AS cor0
----
1456
560
728

query I rowsort
SELECT + 0 AS col0 FROM tab1 AS cor0
----
0
0
0

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

query I rowsort
SELECT 29 - col1 FROM tab1 AS cor0
----
16
19
3

query I rowsort
SELECT 66 + ( col1 * + col0 ) + tab2.col1 * + col0 * 7 AS col0 FROM tab2
----
10810
1802
36882

onlyif mysql # use DIV operator for integer division
query I rowsort label-1196
SELECT - col1 DIV col0 - + col1 FROM tab0 AS cor0
----
-89
-92
-99

skipif mysql # not compatible
query I rowsort label-1196
SELECT - col1 / col0 - + col1 FROM tab0 AS cor0
----
-89
-92
-99

query I rowsort
SELECT + ( col0 ) + tab1.col2 AS col0 FROM tab1
----
121
176
57

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

query I rowsort
SELECT ALL - + col0 + - ( - col2 ) * col2 AS col1 FROM tab0 AS cor0
----
-34
1065
6635

query I rowsort
SELECT DISTINCT - col1 * - cor0.col1 * 91 AS col0 FROM tab2 AS cor0
----
26299
316771
87451

query I rowsort
SELECT - col0 * + ( + col2 ) AS col0 FROM tab0 AS cor0
----
-35
-7298
-792

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

query I rowsort
SELECT ALL + + cor0.col0 * - 7 FROM tab1 AS cor0
----
-21
-448
-560

onlyif mysql # use DIV operator for integer division
query I rowsort label-1204
SELECT DISTINCT 16 + - tab1.col0 DIV col1 + ( col2 ) FROM tab1
----
106
67
70

skipif mysql # not compatible
query I rowsort label-1204
SELECT DISTINCT 16 + - tab1.col0 / col1 + ( col2 ) FROM tab1
----
106
67
70

query I rowsort
SELECT DISTINCT - 47 * + col2 + - col2 * col1 AS col1 FROM tab2
----
-2106
-2432
-2756

query I rowsort
SELECT DISTINCT + 20 + - col0 * + 84 FROM tab2
----
-568
-6532
-6616

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

query I rowsort
SELECT + 55 + - col1 AS col2 FROM tab2
----
-4
24
38

query I rowsort
SELECT cor0.col1 FROM tab1, tab0, tab1 AS cor0, tab2 cor1
----
81 values hashing to d7d3fabcafbed14f0d6ffd37195c971c

query I rowsort
SELECT + 25 + + 8 FROM tab0 AS cor0 CROSS JOIN tab2, tab0 AS cor1
----
27 values hashing to 76da8bc7cae18ecf856438f872430c80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col2 * 48 col2 FROM tab0 AS cor0
----
1584
3936
48

query I rowsort
SELECT ALL - + col1 + + col0 * col0 * + col0 AS col0 FROM tab0 AS cor0
----
13738
42778
704878

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

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

query I rowsort
SELECT ALL cor0.col1 * - 6 + - col0 FROM tab0 AS cor0
----
-540
-617
-635

onlyif mysql # use DIV operator for integer division
query I rowsort label-1215
SELECT - + col2 * - col1 * + col1 + - col0 + - col2 DIV 18 FROM tab0 AS cor0
----
244043
678949
9374

skipif mysql # not compatible
query I rowsort label-1215
SELECT - + col2 * - col1 * + col1 + - col0 + - col2 / 18 FROM tab0 AS cor0
----
244043
678949
9374

onlyif mysql # use DIV operator for integer division
query I rowsort label-1216
SELECT - 16 + - col2 * ( - col2 ) DIV - col0 FROM tab2 cor0
----
-120
-24
-34

skipif mysql # not compatible
query I rowsort label-1216
SELECT - 16 + - col2 * ( - col2 ) / - col0 FROM tab2 cor0
----
-120
-24
-34

query I rowsort
SELECT - col0 + - col2 * 49 AS col2 FROM tab2 AS cor0
----
-1330
-1352
-1941

onlyif mysql # use DIV operator for integer division
query I rowsort label-1218
SELECT - + ( - col1 ) + col0 DIV col1 FROM tab2 AS cor0
----
21
31
60

skipif mysql # not compatible
query I rowsort label-1218
SELECT - + ( - col1 ) + col0 / col1 FROM tab2 AS cor0
----
21
31
60

query I rowsort
SELECT cor0.col2 + + col0 * col1 + col2 AS col0 FROM tab0 AS cor0
----
2130
3397
8263

query I rowsort
SELECT - cor0.col0 + col2 * - ( col2 ) FROM tab2 AS cor0
----
-1523
-736
-754

skipif mysql # not compatible
query I rowsort
SELECT CAST ( - 3 + col0 AS REAL ) * - 43 FROM tab0
----
-1376
-3698
-903

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * 59 * col1 col1 FROM tab0
----
-436364
-488579
-555131

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 18 col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to b95bafa733666df39c5d3f94760d010f

query I rowsort
SELECT col0 * + col1 + - 85 + - col0 AS col0 FROM tab0 AS cor0
----
1955
3275
7925

query I rowsort
SELECT ( cor1.col0 ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63

query I rowsort
SELECT col2 + 44 AS col0 FROM tab2
----
70
71
82

query I rowsort
SELECT 94 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to a4d239626cf0546ac1b2f57bb8407089

query I rowsort
SELECT DISTINCT col2 * + 14 AS col0 FROM tab2
----
364
378
532

onlyif mysql # use DIV operator for integer division
query I rowsort label-1230
SELECT DISTINCT - tab0.col0 DIV col2 col1 FROM tab0
----
-1
-35
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1230
SELECT DISTINCT - tab0.col0 / col2 col1 FROM tab0
----
-1
-35
0

query I rowsort
SELECT 4 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 6fec965b60b9885c4af73e85422cfd9b

query I rowsort
SELECT + 25 + 86 + - cor0.col0 FROM tab2 AS cor0
----
104
32
33

query I rowsort
SELECT ALL 19 FROM tab2 cor0
----
19
19
19

query I rowsort
SELECT ALL col2 * + 62 FROM tab1
----
3348
3534
5952

onlyif mysql # use DIV operator for integer division
query I rowsort label-1235
SELECT DISTINCT col0 DIV + 47 AS col0 FROM tab0
----
0
1

skipif mysql # not compatible
query I rowsort label-1235
SELECT DISTINCT col0 / + 47 AS col0 FROM tab0
----
0
1

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

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

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

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

query I rowsort
SELECT ALL - + 59 * col1 FROM tab1 AS cor0
----
-1534
-590
-767

query I rowsort
SELECT 20 AS col2 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 0a35fe98f3e7d5fc8ff2ae815bd20ef4

query I rowsort
SELECT + col1 + col2 * - col0 + - 49 FROM tab2 AS cor0
----
-2018
-207
-3034

onlyif mysql # use DIV operator for integer division
query I rowsort label-1242
SELECT col1 DIV cor0.col0 + col1 col0 FROM tab0 AS cor0
----
89
92
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1242
SELECT col1 / cor0.col0 + col1 col0 FROM tab0 AS cor0
----
89
92
99

query I rowsort
SELECT ALL cor0.col0 + + ( tab1.col0 ) * 93 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 4fd31933a81055fe93d988d9c8971dba

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

skipif mysql # not compatible
query I rowsort label-1244
SELECT col2 - + CAST ( + col2 AS INTEGER ) AS col2 FROM tab0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + ( - col2 ) col2 FROM tab0 AS cor0
----
-164
-2
-66

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

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-1248
SELECT ALL - CAST( NULL AS SIGNED ) + + col1 * col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

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

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

query I rowsort
SELECT DISTINCT - - 75 AS col2 FROM tab1 AS cor0
----
75

query I rowsort
SELECT ALL - 88 FROM tab2, tab1 AS cor0
----
9 values hashing to 467301f887614eb7beda22c561b0fad2

query I rowsort
SELECT DISTINCT - col0 * 27 AS col2 FROM tab0 AS cor0
----
-2403
-648
-945

query I rowsort
SELECT ALL col0 + col0 * - col0 FROM tab0 AS cor0
----
-1190
-552
-7832

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 85 + + col0 * col2 col2 FROM tab1
----
247
3733
7765

query I rowsort
SELECT ALL col0 + + col0 + ( + col0 ) * 93 AS col1 FROM tab1
----
285
6080
7600

query I rowsort
SELECT ALL + col1 * - col2 * - ( + col1 ) - col1 FROM tab1
----
16211
36478
5690

query I rowsort
SELECT ALL tab2.col1 + + col2 + col2 FROM tab2
----
111
85
93

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1258
SELECT col1 * CAST( 32 AS SIGNED ) FROM tab1 AS cor0
----
320
416
832

skipif mysql # not compatible
query I rowsort label-1258
SELECT col1 * CAST ( 32 AS INTEGER ) FROM tab1 AS cor0
----
320
416
832

query I rowsort
SELECT DISTINCT + col1 * - 95 AS col2 FROM tab0 AS cor0
----
-8170
-8645
-9215

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

query I rowsort
SELECT + + col1 + + 24 * - 69 FROM tab2 AS cor0
----
-1597
-1625
-1639

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

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

query I rowsort
SELECT DISTINCT - - col2 + 63 FROM tab2 cor0
----
101
89
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab2.col1 col1 FROM tab2, tab0 AS cor0
----
9 values hashing to c61d27a0022e6d022371dc58819ab272

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( 48 ) - - col0 * col0 col2 FROM tab1
----
4144
57
6448

query I rowsort
SELECT tab2.col2 + + 18 FROM tab2
----
44
45
56

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

skipif mysql # not compatible
query I rowsort label-1268
SELECT DISTINCT CAST ( NULL AS REAL ) + + 61 AS col2 FROM tab2
----
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1269
SELECT DISTINCT CAST( col0 AS SIGNED ) + col0 * + ( col0 ) FROM tab2
----
56
6162
6320

skipif mysql # not compatible
query I rowsort label-1269
SELECT DISTINCT CAST ( col0 AS INTEGER ) + col0 * + ( col0 ) FROM tab2
----
56
6162
6320

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1270
SELECT - CAST( - 4 AS SIGNED ) * col0 FROM tab2
----
28
312
316

skipif mysql # not compatible
query I rowsort label-1270
SELECT - CAST ( - 4 AS INTEGER ) * col0 FROM tab2
----
28
312
316

query I rowsort
SELECT ALL + - col1 + - col0 * - 24 FROM tab2 AS cor0
----
137
1813
1879

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

query I rowsort
SELECT DISTINCT - - ( + col2 ) * + 52 FROM tab0 AS cor0
----
1716
4264
52

query I rowsort
SELECT DISTINCT - 41 + + col2 + + col0 FROM tab2 AS cor0
----
-7
63
76

onlyif mysql # use DIV operator for integer division
query I rowsort label-1275
SELECT ALL + 84 + + cor0.col1 DIV + ( cor0.col0 ) AS col2 FROM tab2 cor0
----
84
84
88

skipif mysql # not compatible
query I rowsort label-1275
SELECT ALL + 84 + + cor0.col1 / + ( cor0.col0 ) AS col2 FROM tab2 cor0
----
84
84
88

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

skipif mysql # not compatible
query I rowsort label-1276
SELECT + col1 + col2 / 90 AS col0 FROM tab1 AS cor0
----
10
14
26

query I rowsort
SELECT DISTINCT + + 13 * col1 AS col1 FROM tab2 AS cor0
----
221
403
767

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

skipif mysql # not compatible
query I rowsort label-1278
SELECT - - col0 / col0 AS col2 FROM tab2 AS cor0
----
1
1
1

query I rowsort
SELECT ALL - col0 * - col0 + col2 AS col2 FROM tab0 AS cor0
----
1226
609
8003

query I rowsort
SELECT DISTINCT + col0 * + col2 - - col1 * col0 FROM tab1 cor0
----
240
4288
8720

query I rowsort
SELECT ALL + + cor0.col0 * - cor0.col1 + + col1 * col0 AS col1 FROM tab1 AS cor0
----
0
0
0

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

query I rowsort
SELECT DISTINCT - 41 + + col0 FROM tab2 AS cor0
----
-34
37
38

onlyif mysql # use DIV operator for integer division
query I rowsort label-1284
SELECT DISTINCT + col2 + + col0 * 78 DIV 80 FROM tab2 AS cor0
----
102
115
33

skipif mysql # not compatible
query I rowsort label-1284
SELECT DISTINCT + col2 + + col0 * 78 / 80 FROM tab2 AS cor0
----
102
115
33

onlyif mysql # use DIV operator for integer division
query I rowsort label-1285
SELECT ALL - col0 * + 93 - 42 DIV - col0 FROM tab1 cor0
----
-265
-5952
-7440

skipif mysql # not compatible
query I rowsort label-1285
SELECT ALL - col0 * + 93 - 42 / - col0 FROM tab1 cor0
----
-265
-5952
-7440

query I rowsort
SELECT DISTINCT - col1 - - 84 * 63 FROM tab1 cor0
----
5266
5279
5282

query I rowsort
SELECT ALL - + col1 * 60 FROM tab1 AS cor0
----
-1560
-600
-780

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

skipif mysql # not compatible
query I rowsort label-1288
SELECT ALL - cor0.col1 / + col0 AS col2 FROM tab2 AS cor0
----
-4
0
0

query I rowsort
SELECT - 38 + col1 FROM tab2
----
-21
-7
21

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

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

query I rowsort
SELECT ALL + ( col2 * - 83 ) FROM tab1
----
-4482
-4731
-7968

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

query I rowsort
SELECT - - col0 + col0 + + col0 FROM tab2 AS cor0
----
21
234
237

query I rowsort
SELECT ALL - - 33 AS col1 FROM tab2 AS cor0
----
33
33
33

query I rowsort
SELECT DISTINCT - - 21 + - col1 AS col0 FROM tab1 AS cor0
----
-5
11
8

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

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

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

query I rowsort
SELECT DISTINCT - - col2 * + 2 - + col2 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT DISTINCT + - col1 + + col2 * cor0.col2 FROM tab1 AS cor0
----
2890
3239
9203

query I rowsort
SELECT ALL + ( - col0 ) AS col1 FROM tab2 cor0
----
-7
-78
-79

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

query I rowsort
SELECT DISTINCT col1 + + 69 * - cor0.col2 FROM tab0 AS cor0
----
-2191
-5567
28

query I rowsort
SELECT 22 + col2 AS col1 FROM tab0 cor0
----
104
23
55

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

query I rowsort
SELECT ALL col1 + - col1 + + col2 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT DISTINCT col2 * tab0.col2 + col0 + - col0 FROM tab0
----
1
1089
6724

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - tab0.col0 * cor0.col1 col1 FROM tab0, tab1 AS cor0, tab1, tab2 AS cor1
----
81 values hashing to e1af51c76c1fc66dfd314c6c2de67d07

query I rowsort
SELECT - cor0.col0 * + col1 + 36 FROM tab2 cor0
----
-1307
-181
-4566

query I rowsort
SELECT DISTINCT col0 + col2 - + col1 FROM tab1 AS cor0
----
111
163
31

query I rowsort
SELECT - cor0.col0 * - col0 + 26 AS col0 FROM tab1 AS cor0
----
35
4122
6426

query I rowsort
SELECT + col1 + col1 * col0 * + tab1.col2 AS col2 FROM tab1
----
36490
4238
99853

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

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

query I rowsort
SELECT col1 + col1 + col0 AS col2 FROM tab2
----
113
196
69

onlyif mysql # use DIV operator for integer division
query I rowsort label-1315
SELECT col0 DIV col0 + col1 + col0 AS col2 FROM tab2
----
138
39
97

skipif mysql # not compatible
query I rowsort label-1315
SELECT col0 / col0 + col1 + col0 AS col2 FROM tab2
----
138
39
97

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

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

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

query I rowsort
SELECT col0 + col2 * col2 AS col1 FROM tab2 AS cor0
----
1523
736
754

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col1 - - col2 col0 FROM tab0 AS cor0
----
119
173
98

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

query I rowsort
SELECT ALL - + col2 * - col0 + - col0 * - col1 AS col2 FROM tab0 cor0
----
15397
2856
3430

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

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

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + - col1 * col1 * col2 col2 FROM tab2 AS cor0
----
-10965
-25916
-90447

query I rowsort
SELECT DISTINCT col2 + col1 * col2 AS col0 FROM tab1
----
1344
1458
627

query I rowsort
SELECT col2 + + tab0.col2 * tab0.col0 AS col0 FROM tab0
----
36
7380
825

query I rowsort
SELECT ALL col0 + tab2.col0 AS col0 FROM tab2
----
14
156
158

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

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL NOT IN ( + col0 / + col0 + col0 )
----

query I rowsort
SELECT + col1 + - col1 * col2 FROM tab2
----
-1475
-629
-806

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

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL = - col0 * - col0
----

query I rowsort
SELECT col1 + + col1 * + tab1.col0 AS col0 FROM tab1
----
104
1053
650

query I rowsort
SELECT ALL - col2 * col0 FROM tab2 WHERE ( col2 ) >= ( NULL )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-1340
SELECT col2 + col0 DIV col0 AS col2 FROM tab0
----
2
34
83

skipif mysql # not compatible
query I rowsort label-1340
SELECT col2 + col0 / col0 AS col2 FROM tab0
----
2
34
83

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( + col1 * col1 ) NOT IN ( + col2 * col0 )
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45

query I rowsort
SELECT col2 + - col1 - + col2 AS col0 FROM tab0
----
-86
-91
-97

query I rowsort
SELECT ALL tab0.col2 FROM tab0 WHERE NOT col0 IN ( col2 )
----
1
33
82

onlyif mysql # use DIV operator for integer division
query I rowsort label-1344
SELECT ALL + col1 DIV + col1 + + col0 col1 FROM tab0
----
25
36
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1344
SELECT ALL + col1 / + col1 + + col0 col1 FROM tab0
----
25
36
90

query I rowsort
SELECT ALL col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) BETWEEN NULL AND col2 + - col0 OR NULL IN ( col1 - + col0 * - col0 )
----

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

query I rowsort
SELECT ALL + col1 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN col1 * col1 AND col0
----

query I rowsort
SELECT cor0.col0 * - cor0.col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 9b23e5e74ef3405a4dbf05cceb18c8a8

query I rowsort
SELECT DISTINCT + col0 + - tab2.col2 AS col0 FROM tab2
----
-20
41
52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * + col1 col0 FROM tab0
----
-7396
-8281
-9409

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1352
SELECT tab0.col1 DIV - col0 col1 FROM tab0
----
-1
-2
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1352
SELECT tab0.col1 / - col0 col1 FROM tab0
----
-1
-2
-3

query I rowsort
SELECT DISTINCT col0 AS col2 FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( - col2 )
----

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

skipif mysql # not compatible
query I rowsort label-1354
SELECT DISTINCT - CAST ( NULL AS REAL ) + 23 FROM tab1 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 79 * ( col0 ) col1 FROM tab2 AS cor0
----
-553
-6162
-6241

query I rowsort
SELECT - ( 91 ) * + col2 * col1 FROM tab0 AS cor0
----
-258258
-679042
-8827

query I rowsort
SELECT ALL 96 * 81 FROM tab0 AS cor0
----
7776
7776
7776

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

query I rowsort
SELECT DISTINCT + col0 * + 55 + + col2 FROM tab2 AS cor0
----
412
4316
4383

query I rowsort
SELECT DISTINCT + - cor0.col0 * + col2 * - col0 AS col1 FROM tab2 AS cor0
----
1323
158184
237158

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1362
SELECT DISTINCT col0 DIV ( + col2 * - col1 ) - col0 FROM tab1 AS cor0
----
-3
-64
-80

skipif mysql # not compatible
query I rowsort label-1362
SELECT DISTINCT col0 / ( + col2 * - col1 ) - col0 FROM tab1 AS cor0
----
-3
-64
-80

query I rowsort
SELECT DISTINCT + - cor0.col0 - + col0 FROM tab2 AS cor0
----
-14
-156
-158

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

query I rowsort
SELECT 4 * 77 * + col1 FROM tab2 AS cor0
----
18172
5236
9548

onlyif mysql # use DIV operator for integer division
query I rowsort label-1366
SELECT ALL col0 * + 1 + + cor0.col2 DIV + 89 FROM tab1 AS cor0
----
3
64
81

skipif mysql # not compatible
query I rowsort label-1366
SELECT ALL col0 * + 1 + + cor0.col2 / + 89 FROM tab1 AS cor0
----
3
64
81

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

query I rowsort
SELECT - + cor0.col0 + col2 * - col1 AS col0 FROM tab1 AS cor0
----
-1328
-1407
-634

query I rowsort
SELECT ALL + col0 + cor0.col0 * + col0 AS col2 FROM tab0 cor0
----
1260
600
8010

query I rowsort
SELECT ALL - col0 * 99 AS col1 FROM tab1 AS cor0
----
-297
-6336
-7920

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

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

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

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

query I rowsort
SELECT ALL + col0 + - 86 AS col2 FROM tab0
----
-51
-62
3

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

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

query I rowsort
SELECT DISTINCT - col1 + - tab2.col1 * - col1 AS col1 FROM tab2
----
272
3422
930

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

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

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

query I rowsort
SELECT tab1.col2 * - ( + col2 * + col1 ) - - tab1.col2 * col2 AS col2 FROM tab1
----
-110592
-29241
-72900

onlyif mysql # use DIV operator for integer division
query I rowsort label-1379
SELECT col2 + 25 DIV - 29 FROM tab1
----
54
57
96

skipif mysql # not compatible
query I rowsort label-1379
SELECT col2 + 25 / - 29 FROM tab1
----
54
57
96

query I rowsort
SELECT col1 * ( + col1 + col1 ) * + col2 FROM tab2
----
181012
21964
51894

query I rowsort
SELECT ALL + - col1 * - ( ( col2 ) ) + + col0 * col0 FROM tab2 AS cor0
----
6887
7618
886

onlyif mysql # use DIV operator for integer division
query I rowsort label-1382
SELECT - col0 DIV 4 + - col1 + - col2 FROM tab1
----
-129
-80
-83

skipif mysql # not compatible
query I rowsort label-1382
SELECT - col0 / 4 + - col1 + - col2 FROM tab1
----
-129
-80
-83

onlyif mysql # use DIV operator for integer division
query I rowsort label-1383
SELECT DISTINCT + col0 DIV col1 + - col0 AS col0 FROM tab1
----
-3
-58
-74

skipif mysql # not compatible
query I rowsort label-1383
SELECT DISTINCT + col0 / col1 + - col0 AS col0 FROM tab1
----
-3
-58
-74

query I rowsort
SELECT ALL 74 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 2ccf8ef3f477e1a1a3e30c8b8154ff31

onlyif mysql # use DIV operator for integer division
query I rowsort label-1385
SELECT + col2 * col0 + + col0 DIV col0 FROM tab1 cor0
----
163
3649
7681

skipif mysql # not compatible
query I rowsort label-1385
SELECT + col2 * col0 + + col0 / col0 FROM tab1 cor0
----
163
3649
7681

query I rowsort
SELECT - 47 + + 21 + col2 AS col2 FROM tab1 AS cor0
----
28
31
70

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

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

query I rowsort
SELECT ALL + 94 * - col2 AS col1 FROM tab1
----
-5076
-5358
-9024

query I rowsort
SELECT DISTINCT + ( - col0 ) * + col0 FROM tab0
----
-1225
-576
-7921

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

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

query I rowsort
SELECT ALL - - 26 + + ( col2 ) * + cor0.col2 FROM tab0 AS cor0
----
1115
27
6750

query I rowsort
SELECT ALL 18 * col0 + col0 AS col2 FROM tab2
----
133
1482
1501

query I rowsort
SELECT - - 63 FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to 38764a6e696d1a6b5095e29ef84959c0

onlyif mysql # use DIV operator for integer division
query I rowsort label-1396
SELECT ALL + col2 + col1 DIV + col0 AS col2 FROM tab0
----
3
36
83

skipif mysql # not compatible
query I rowsort label-1396
SELECT ALL + col2 + col1 / + col0 AS col2 FROM tab0
----
3
36
83

query I rowsort
SELECT ALL - + 94 + col2 FROM tab1 AS cor0
----
-37
-40
2

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

query I rowsort
SELECT cor0.col1 + + col2 FROM tab2 cor0
----
55
58
85

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

query I rowsort
SELECT DISTINCT - col2 + + col1 * + col0 * 70 AS col1 FROM tab2 AS cor0
----
15163
322114
93972

query I rowsort
SELECT DISTINCT + + col1 * ( col1 ) + + cor0.col0 FROM tab1 AS cor0
----
164
249
679

query I rowsort
SELECT ALL cor0.col1 + 12 * + cor0.col1 FROM tab1 AS cor0
----
130
169
338

query I rowsort
SELECT + col2 - 19 AS col2 FROM tab0 AS cor0
----
-18
14
63

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col1 + cor0.col1 + + col0 col0 FROM tab0 AS cor0
----
196
229
271

query I rowsort
SELECT + col2 + - 18 FROM tab2 AS cor0
----
20
8
9

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

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

query I rowsort
SELECT ALL - cor0.col0 + 19 AS col1 FROM tab2 AS cor0
----
-59
-60
12

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

query I rowsort
SELECT + col2 * + 4 + col2 AS col1 FROM tab1 AS cor0
----
270
285
480

onlyif mysql # use DIV operator for integer division
query I rowsort label-1411
SELECT ALL col2 + - col1 - 95 DIV + col1 AS col0 FROM tab0
----
-10
-54
-96

skipif mysql # not compatible
query I rowsort label-1411
SELECT ALL col2 + - col1 - 95 / + col1 AS col0 FROM tab0
----
-10
-54
-96

query I rowsort
SELECT + + col1 + + col0 + 30 FROM tab0 AS cor0
----
140
162
210

query I rowsort
SELECT + ( col2 ) * - col2 + col1 - + col0 AS col2 FROM tab0
----
-1027
-6722
61

query I rowsort
SELECT + col1 + - 29 AS col0 FROM tab2 AS cor0
----
-12
2
30

onlyif mysql # use DIV operator for integer division
query I rowsort label-1415
SELECT - col2 DIV - 93 + 93 FROM tab1 AS cor0
----
93
93
94

skipif mysql # not compatible
query I rowsort label-1415
SELECT - col2 / - 93 + 93 FROM tab1 AS cor0
----
93
93
94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 * 16 + + col1 - + cor0.col0 col0 FROM tab2 AS cor0
----
1202
1229
136

query I rowsort
SELECT col1 * col1 + - 16 + + col2 FROM tab0 cor0
----
7413
8347
9394

query I rowsort
SELECT ALL ( col0 + col2 ) AS col1 FROM tab0
----
171
36
57

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

query I rowsort
SELECT - col0 * + 70 AS col2 FROM tab0 AS cor0
----
-1680
-2450
-6230

query I rowsort
SELECT + col0 * ( 67 ) FROM tab0 AS cor0
----
1608
2345
5963

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1422
SELECT + col2 / + ( col1 + col2 ) col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + col0 * 49 + cor0.col1 FROM tab0 AS cor0
----
1262
1812
4452

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

query I rowsort
SELECT ALL cor0.col2 + - col0 * + col0 FROM tab2 AS cor0
----
-22
-6058
-6203

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

skipif mysql # not compatible
query I rowsort label-1426
SELECT - col0 / 42 AS col0 FROM tab2 AS cor0
----
-1
-1
0

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

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

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

query I rowsort
SELECT + 38 + 58 * - col1 AS col2 FROM tab2 cor0
----
-1760
-3384
-948

query I rowsort
SELECT - col1 + 19 * col1 AS col0 FROM tab2 AS cor0
----
1062
306
558

query I rowsort
SELECT + + 84 FROM tab2 cor0
----
84
84
84

query I rowsort
SELECT cor0.col1 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc

query I rowsort
SELECT + col0 * - col2 * + col0 + + cor0.col0 AS col2 FROM tab0 cor0
----
-1190
-18984
-649433

query I rowsort
SELECT DISTINCT + - 8 * col1 FROM tab1 AS cor0
----
-104
-208
-80

query I rowsort
SELECT ALL + col2 * + col0 * - col2 FROM tab1 AS cor0
----
-207936
-737280
-8748

query I rowsort
SELECT - + col2 * - col0 + - 64 * 37 FROM tab0 AS cor0
----
-1576
-2333
4930

query I rowsort
SELECT DISTINCT + - cor0.col0 * - col0 + col2 FROM tab0 AS cor0
----
1226
609
8003

onlyif mysql # use DIV operator for integer division
query I rowsort label-1439
SELECT ALL - + ( + col0 ) DIV col0 + + col0 * - col0 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-1439
SELECT ALL - + ( + col0 ) / col0 + + col0 * - col0 col1 FROM tab1 AS cor0
----
-10
-4097
-6401

query I rowsort
SELECT DISTINCT col1 * col2 * col0 - + col2 FROM tab1 cor0
----
36423
4158
99744

query I rowsort
SELECT DISTINCT col2 * + col0 + - ( ( col0 ) ) AS col0 FROM tab0 AS cor0
----
0
7209
768

query I rowsort
SELECT ALL + cor0.col0 * col2 + - 8 - 77 AS col0 FROM tab0 AS cor0
----
-50
707
7213

onlyif mysql # use DIV operator for integer division
query I rowsort label-1443
SELECT + col0 + col1 DIV + col1 AS col0 FROM tab2 cor0
----
79
8
80

skipif mysql # not compatible
query I rowsort label-1443
SELECT + col0 + col1 / + col1 AS col0 FROM tab2 cor0
----
79
8
80

query I rowsort
SELECT cor0.col1 * col2 + 77 FROM tab1 AS cor0
----
1325
1481
647

query I rowsort
SELECT ALL + 42 * + 36 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to f1e8bfeb2aff54d5ac1eb1f724cda9e1

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

query I rowsort
SELECT ALL + ( cor0.col1 ) * 86 AS col1 FROM tab1, tab1 cor0, tab0 AS cor1, tab2, tab2 AS cor2
----
243 values hashing to f5ef0eb7fabf8b7730f7de8822e7ed2b

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

query I rowsort
SELECT DISTINCT - 24 + - tab1.col2 FROM tab1
----
-120
-78
-81

onlyif mysql # use DIV operator for integer division
query I rowsort label-1450
SELECT col0 * - 75 + + col0 DIV - ( - col1 ) + cor0.col1 AS col2 FROM tab1 cor0
----
-199
-4784
-5981

skipif mysql # not compatible
query I rowsort label-1450
SELECT col0 * - 75 + + col0 / - ( - col1 ) + cor0.col1 AS col2 FROM tab1 cor0
----
-199
-4784
-5981

query I rowsort
SELECT - col0 + + 95 + cor0.col1 * + ( + ( - col1 ) ) AS col2 FROM tab1 AS cor0
----
-154
-584
-69

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

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

query I rowsort
SELECT DISTINCT + - 46 * col0 + cor0.col0 FROM tab2 AS cor0
----
-315
-3510
-3555

query I rowsort
SELECT + 19 * + col2 + + col0 + - col2 FROM tab0 AS cor0
----
1565
53
618

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

query I rowsort
SELECT ALL - col0 + + 96 AS col2 FROM tab0
----
61
7
72

query I rowsort
SELECT + 62 * 69 + cor0.col2 AS col2 FROM tab2 AS cor0
----
4304
4305
4316

query I rowsort
SELECT - ( + 37 ) * - col1 FROM tab1 AS cor0
----
370
481
962

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + + col0 col2 FROM tab2
----
104
117
34

query I rowsort
SELECT DISTINCT col0 + col0 AS col1 FROM tab0 cor0
----
178
48
70

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

query I rowsort
SELECT DISTINCT - + col0 + + col1 * + 18 FROM tab2 AS cor0
----
227
551
984

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

skipif mysql # not compatible
query I rowsort label-1463
SELECT DISTINCT + col2 + CAST ( col1 AS INTEGER ) * + col2 FROM tab2 AS cor0
----
1560
684
864

onlyif mysql # use DIV operator for integer division
query I rowsort label-1464
SELECT cor0.col1 DIV + ( col1 ) + col1 FROM tab1 AS cor0
----
11
14
27

skipif mysql # not compatible
query I rowsort label-1464
SELECT cor0.col1 / + ( col1 ) + col1 FROM tab1 AS cor0
----
11
14
27

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

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

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

query I rowsort
SELECT DISTINCT + col2 + - 69 AS col0 FROM tab1 cor0
----
-12
-15
27

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

skipif mysql # not compatible
query I rowsort label-1468
SELECT + cor0.col0 * CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 58 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to ef6e63aeed2581a168f07646d258f666

query I rowsort
SELECT ALL - ( 94 ) + col0 + col2 FROM tab0 AS cor0
----
-37
-58
77

query I rowsort
SELECT ALL - + col0 + - col0 * col1 FROM tab2 AS cor0
----
-1422
-224
-4680

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

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

query I rowsort
SELECT - 8 * col1 + col2 FROM tab0 AS cor0
----
-646
-655
-775

query I rowsort
SELECT - col2 * 10 + - col1 FROM tab2 cor0
----
-301
-319
-397

onlyif mysql # use DIV operator for integer division
query I rowsort label-1475
SELECT DISTINCT - col0 * - col0 * + col2 + 74 DIV - col0 AS col1 FROM tab0 cor0
----
1223
19005
649522

skipif mysql # not compatible
query I rowsort label-1475
SELECT DISTINCT - col0 * - col0 * + col2 + 74 / - col0 AS col1 FROM tab0 cor0
----
1223
19005
649522

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

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1479
SELECT ALL - col2 DIV 10 AS col1 FROM tab2 AS cor0
----
-2
-2
-3

skipif mysql # not compatible
query I rowsort label-1479
SELECT ALL - col2 / 10 AS col1 FROM tab2 AS cor0
----
-2
-2
-3

query I rowsort
SELECT + 0 + + col2 AS col0 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT 91 + + col2 * col2 FROM tab2 AS cor0
----
1535
767
820

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1484
SELECT DISTINCT + cor0.col1 / cor0.col0 + 0 * 4 * + col2 col1 FROM tab1 AS cor0
----
0
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col2 * col0 + - 51 col2 FROM tab0 AS cor0
----
-7349
-843
-86

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1487
SELECT ALL + + col1 / - col0 col1 FROM tab2 AS cor0
----
-4
0
0

query I rowsort
SELECT ALL - col2 + + cor0.col1 + + col2 AS col1 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT ALL - + col0 * + 31 - + cor0.col2 AS col1 FROM tab1 AS cor0
----
-147
-2041
-2576

query I rowsort
SELECT + 40 + - col1 + + 7 FROM tab0
----
-39
-44
-50

query I rowsort
SELECT - - col1 + ( - 65 ) AS col1 FROM tab0 AS cor0
----
21
26
32

onlyif mysql # use DIV operator for integer division
query I rowsort label-1492
SELECT DISTINCT col2 DIV 89 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1492
SELECT DISTINCT col2 / 89 FROM tab2 AS cor0
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-1493
SELECT col1 * col1 * col2 + col1 DIV + ( - ( col0 ) ) FROM tab2 AS cor0
----
10982
25943
90506

skipif mysql # not compatible
query I rowsort label-1493
SELECT col1 * col1 * col2 + col1 / + ( - ( col0 ) ) FROM tab2 AS cor0
----
10982
25943
90506

query I rowsort
SELECT DISTINCT + col1 * + 83 + - col1 FROM tab0 AS cor0
----
7052
7462
7954

query I rowsort
SELECT - - col1 + cor0.col2 FROM tab2 cor0
----
55
58
85

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

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

query I rowsort
SELECT ALL + 97 + - col0 AS col2 FROM tab2
----
18
19
90

query I rowsort
SELECT ALL + - cor0.col2 * 83 FROM tab1 AS cor0
----
-4482
-4731
-7968

query I rowsort
SELECT cor0.col2 + + ( - 7 ) * col2 AS col1 FROM tab2 AS cor0
----
-156
-162
-228

onlyif mysql # use DIV operator for integer division
query I rowsort label-1500
SELECT + col0 + + 41 DIV 82 + cor0.col0 AS col0 FROM tab0 AS cor0
----
178
48
70

skipif mysql # not compatible
query I rowsort label-1500
SELECT + col0 + + 41 / 82 + cor0.col0 AS col0 FROM tab0 AS cor0
----
178
48
70

query I rowsort
SELECT + cor0.col1 * cor0.col2 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to f5605ce6cbd6ecc79a4a887488bb6947

query I rowsort
SELECT ALL 98 + + col1 AS col1 FROM tab1
----
108
111
124

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1504
SELECT DISTINCT - col1 DIV 79 + + col2 AS col0 FROM tab2
----
26
27
38

skipif mysql # not compatible
query I rowsort label-1504
SELECT DISTINCT - col1 / 79 + + col2 AS col0 FROM tab2
----
26
27
38

query I rowsort
SELECT DISTINCT col0 * ( + col0 ) + col0 + col2 * + col0 FROM tab1
----
14160
174
7808

query I rowsort
SELECT DISTINCT col2 + + ( - col0 ) * - col2 FROM tab0
----
36
7380
825

onlyif mysql # use DIV operator for integer division
query I rowsort label-1507
SELECT ALL + 41 DIV + 46 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

skipif mysql # not compatible
query I rowsort label-1507
SELECT ALL + 41 / + 46 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query I rowsort
SELECT ( + ( - cor0.col1 ) ) + + col0 * col0 FROM tab1 AS cor0
----
-17
4086
6387

query I rowsort
SELECT + tab0.col2 * ( tab0.col1 ) * - col1 + - col1 + + col0 AS col0 FROM tab0
----
-244130
-679044
-9471

query I rowsort
SELECT ALL - - col2 * - col0 * 28 FROM tab0 AS cor0
----
-204344
-22176
-980

query I rowsort
SELECT + tab2.col2 + - 73 + - 47 * col0 FROM tab2
----
-3713
-3748
-375

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

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

query I rowsort
SELECT ALL - 94 * - tab0.col2 FROM tab0
----
3102
7708
94

query I rowsort
SELECT ALL + 15 AS col2 FROM tab0
----
15
15
15

query I rowsort
SELECT 22 * col2 + + tab0.col1 AS col1 FROM tab0
----
119
1895
812

query I rowsort
SELECT ( 36 + col1 ) AS col1 FROM tab2
----
53
67
95

query I rowsort
SELECT - ( tab1.col1 * - col0 ) + + tab1.col1 * - 18 AS col1 FROM tab1
----
-390
460
806

query I rowsort
SELECT ALL + + 12 FROM tab2 cor0
----
12
12
12

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

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

query I rowsort
SELECT ALL - 81 * - col2 + ( - col2 ) FROM tab0 AS cor0
----
2640
6560
80

query I rowsort
SELECT ALL + + 56 + col2 * + ( - col2 ) * + col1 AS col0 FROM tab0 AS cor0
----
-41
-611828
-93598

query I rowsort
SELECT + 64 * col0 FROM tab0 cor0
----
1536
2240
5696

query I rowsort
SELECT - 27 + col2 * - col1 FROM tab2 AS cor0
----
-1561
-673
-864

query I rowsort
SELECT DISTINCT col0 * - col0 + - 59 AS col1 FROM tab1 AS cor0
----
-4155
-6459
-68

query I rowsort
SELECT DISTINCT - 41 * col2 * + col1 FROM tab1 AS cor0
----
-23370
-51168
-57564

query I rowsort
SELECT - - 78 AS col2 FROM tab2 AS cor0
----
78
78
78

query I rowsort
SELECT - - col0 + - col1 * - col2 * col1 AS col2 FROM tab1 AS cor0
----
16304
36507
5764

query I rowsort
SELECT ALL - ( - col2 * col2 + + tab2.col1 * - tab2.col2 ) FROM tab2
----
1566
2090
2210

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1530
SELECT DISTINCT + CAST( + 13 AS SIGNED ) * - col1 FROM tab2
----
-221
-403
-767

skipif mysql # not compatible
query I rowsort label-1530
SELECT DISTINCT + CAST ( + 13 AS INTEGER ) * - col1 FROM tab2
----
-221
-403
-767

query I rowsort
SELECT col1 * 25 AS col1 FROM tab2 AS cor0
----
1475
425
775

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 85 * col0 col0 FROM tab2
----
595
6630
6715

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 81 + + col0 col0 FROM tab1
----
145
161
84

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col0 * - 85 col0 FROM tab1 AS cor0
----
-255
-5440
-6800

query I rowsort
SELECT + + col1 + 88 * - 69 * + col0 + + col0 FROM tab0 AS cor0
----
-145618
-212388
-540228

query I rowsort
SELECT col1 * - tab2.col1 * 47 AS col2 FROM tab2
----
-13583
-163607
-45167

query I rowsort
SELECT DISTINCT col0 * tab0.col2 * col2 AS col1 FROM tab0
----
26136
35
598436

query I rowsort
SELECT col2 + + 72 * 38 FROM tab2
----
2762
2763
2774

onlyif mysql # use DIV operator for integer division
query I rowsort label-1540
SELECT + + col0 DIV + 98 + 73 * + col2 * ( - col2 * + col1 ) AS col0 FROM tab1 cor0
----
-2371770
-5534568
-8745984

skipif mysql # not compatible
query I rowsort label-1540
SELECT + + col0 / + 98 + 73 * + col2 * ( - col2 * + col1 ) AS col0 FROM tab1 cor0
----
-2371770
-5534568
-8745984

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

query I rowsort
SELECT DISTINCT tab2.col0 + + 99 FROM tab2
----
106
177
178

query I rowsort
SELECT - col0 * 36 * 43 + - col0 AS col2 FROM tab1 AS cor0
----
-123920
-4647
-99136

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - col2 + cor0.col2 * - col1 col0 FROM tab2 AS cor0
----
-648
2356
494

query I rowsort
SELECT ALL col2 * 15 + col0 * + col1 FROM tab1
----
1495
2480
888

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

query I rowsort
SELECT col1 + col1 - col2 FROM tab0
----
100
139
193

query I rowsort
SELECT ALL col2 + col2 * + 15 FROM tab0
----
1312
16
528

query I rowsort
SELECT - col1 * 54 AS col0 FROM tab2 AS cor0
----
-1674
-3186
-918

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 + - col0 col0 FROM tab0 AS cor0
----
-110
-132
-180

onlyif mysql # use DIV operator for integer division
query I rowsort label-1551
SELECT DISTINCT 15 DIV + col1 + - col0 FROM tab0 AS cor0
----
-24
-35
-89

skipif mysql # not compatible
query I rowsort label-1551
SELECT DISTINCT 15 / + col1 + - col0 FROM tab0 AS cor0
----
-24
-35
-89

query I rowsort
SELECT 48 + - cor0.col0 FROM tab0 AS cor0
----
-41
13
24

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1554
SELECT 68 DIV col0 FROM tab1 cor0
----
0
1
22

skipif mysql # not compatible
query I rowsort label-1554
SELECT 68 / col0 FROM tab1 cor0
----
0
1
22

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col1 * + col1 * - col2 col2 FROM tab0 AS cor0
----
-244068
-679042
-9409

query I rowsort
SELECT + col1 * col1 * + cor0.col1 + + 33 AS col0 FROM tab2 AS cor0
----
205412
29824
4946

onlyif mysql # use DIV operator for integer division
query I rowsort label-1559
SELECT + + 36 * col2 + cor0.col1 DIV - cor0.col0 FROM tab1 AS cor0
----
1936
2052
3456

skipif mysql # not compatible
query I rowsort label-1559
SELECT + + 36 * col2 + cor0.col1 / - cor0.col0 FROM tab1 AS cor0
----
1936
2052
3456

query I rowsort
SELECT ALL + - 25 * - 35 FROM tab0 AS cor0
----
875
875
875

onlyif mysql # use DIV operator for integer division
query I rowsort label-1561
SELECT DISTINCT + + 55 * 48 + + col2 DIV - col2 AS col2 FROM tab0 AS cor0
----
2639

skipif mysql # not compatible
query I rowsort label-1561
SELECT DISTINCT + + 55 * 48 + + col2 / - col2 AS col2 FROM tab0 AS cor0
----
2639

skipif mysql # not compatible
query I rowsort
SELECT CAST ( - 32 AS REAL ) + + col1 AS col2 FROM tab0 AS cor0
----
54
59
65

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

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

query I rowsort
SELECT 53 AS col1 FROM tab2 AS cor0
----
53
53
53

query I rowsort
SELECT ALL + 21 + - col0 * + col2 FROM tab1 AS cor0
----
-141
-3627
-7659

query I rowsort
SELECT ALL - col0 * col1 * col0 + ( col1 ) AS col0 FROM tab2 AS cor0
----
-106080
-1488
-358897

query I rowsort
SELECT ALL - 37 + cor0.col0 FROM tab1 AS cor0
----
-34
27
43

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 54 + ( col1 ) * + ( - 16 ) col2 FROM tab2 AS cor0
----
-218
-442
-890

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

query I rowsort
SELECT - 21 * + cor0.col2 AS col1 FROM tab2 AS cor0
----
-546
-567
-798

query I rowsort
SELECT + - 14 + col0 * col1 AS col2 FROM tab0 AS cor0
----
2050
3381
8085

query I rowsort
SELECT + - cor0.col0 + + col1 * - 52 AS col0 FROM tab2 AS cor0
----
-1619
-3146
-963

query I rowsort
SELECT - col1 * cor0.col1 + col0 AS col1 FROM tab0 AS cor0
----
-7372
-8192
-9374

query I rowsort
SELECT DISTINCT col1 + cor0.col1 AS col2 FROM tab0 cor0
----
172
182
194

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

query I rowsort
SELECT ALL col0 * col0 - col0 AS col2 FROM tab2 AS cor0
----
42
6006
6162

query I rowsort
SELECT DISTINCT - 3 + col1 * col2 FROM tab2 AS cor0
----
1531
643
834

query I rowsort
SELECT col0 * col2 * + 2 FROM tab2 AS cor0
----
378
4056
6004

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

query I rowsort
SELECT DISTINCT - ( col1 ) * + col1 + 43 * col0 AS col2 FROM tab2 AS cor0
----
-127
-660
3108

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

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

query I rowsort
SELECT DISTINCT col0 + + 68 FROM tab0 AS cor0
----
103
157
92

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

query I rowsort
SELECT + 56 + - col1 * col1 FROM tab2 AS cor0
----
-233
-3425
-905

query I rowsort
SELECT + - 42 * col0 FROM tab1 AS cor0
----
-126
-2688
-3360

onlyif mysql # use DIV operator for integer division
query I rowsort label-1587
SELECT DISTINCT + CAST( col2 AS SIGNED ) * - col0 + col0 - + ( col0 ) DIV + col1 FROM tab0
----
-7209
-768
0

skipif mysql # not compatible
query I rowsort label-1587
SELECT DISTINCT + CAST ( col2 AS INTEGER ) * - col0 + col0 - + ( col0 ) / + col1 FROM tab0
----
-7209
-768
0

query I rowsort
SELECT 84 + + cor0.col0 FROM tab1 cor0
----
148
164
87

onlyif mysql # use DIV operator for integer division
query I rowsort label-1589
SELECT DISTINCT - + ( - cor0.col0 ) DIV ( col0 ) col0 FROM tab1 AS cor0
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1589
SELECT DISTINCT - + ( - cor0.col0 ) / ( col0 ) col0 FROM tab1 AS cor0
----
1

query I rowsort
SELECT - col2 * col0 + + cor0.col0 + + ( + col2 ) FROM tab2 AS cor0
----
-155
-1924
-2885

query I rowsort
SELECT ALL - 99 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 64d06513850a26495bc6c2fddeb254b7

query I rowsort
SELECT DISTINCT 95 + 9 + - col0 AS col2 FROM tab2
----
25
26
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-1593
SELECT col0 DIV + 36 FROM tab1
----
0
1
2

skipif mysql # not compatible
query I rowsort label-1593
SELECT col0 / + 36 FROM tab1
----
0
1
2

query I rowsort
SELECT ALL col1 + - ( tab2.col1 ) * 17 AS col1 FROM tab2
----
-272
-496
-944

query I rowsort
SELECT ( 98 ) AS col0 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to c758e8afbdfa6aae279045b0e9cbacc2

query I rowsort
SELECT ALL - 85 * - cor1.col2 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 5794029ab2d9569a19ae5660245e3746

onlyif mysql # use DIV operator for integer division
query I rowsort label-1597
SELECT ALL col0 - col1 DIV - 16 AS col2 FROM tab1 AS cor0
----
4
64
80

skipif mysql # not compatible
query I rowsort label-1597
SELECT ALL col0 - col1 / - 16 AS col2 FROM tab1 AS cor0
----
4
64
80

query I rowsort
SELECT ALL - col0 * + col2 + + col1 * col1 + + col0 FROM tab2 AS cor0
----
-2634
1531
779

query I rowsort
SELECT ALL - col0 * - col0 + - 68 - - col2 * + col1 FROM tab2 AS cor0
----
6819
7550
818

query I rowsort
SELECT + + col0 - col1 * ( + col1 ) * - cor0.col1 FROM tab0 AS cor0
----
636080
753660
912708

query I rowsort
SELECT col1 * cor0.col2 - + 66 FROM tab2 AS cor0
----
1468
580
771

query I rowsort
SELECT + 65 + col2 FROM tab2 AS cor0
----
103
91
92

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1605
SELECT DISTINCT - col0 DIV col0 + col1 AS col0 FROM tab2 cor0
----
16
30
58

skipif mysql # not compatible
query I rowsort label-1605
SELECT DISTINCT - col0 / col0 + col1 AS col0 FROM tab2 cor0
----
16
30
58

query I rowsort
SELECT ALL + - col2 + - cor0.col0 AS col1 FROM tab0 AS cor0
----
-171
-36
-57

query I rowsort
SELECT + col1 * ( 86 ) FROM tab0 AS cor0
----
7396
7826
8342

query I rowsort
SELECT ALL - cor1.col1 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to c7890469eabb2c6fc81454b35d2333b6

query I rowsort
SELECT 77 AS col0 FROM tab0, tab0 AS cor0, tab0 AS cor1, tab0 cor2
----
81 values hashing to 38f487c2147ee2fe05527e38c5e0503b

query I rowsort
SELECT - 16 * 29 FROM tab2 AS cor0
----
-464
-464
-464

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1611
SELECT ALL - CAST( 54 AS SIGNED ) + + cor0.col2 AS col2 FROM tab1 AS cor0
----
0
3
42

skipif mysql # not compatible
query I rowsort label-1611
SELECT ALL - CAST ( 54 AS INTEGER ) + + cor0.col2 AS col2 FROM tab1 AS cor0
----
0
3
42

query I rowsort
SELECT DISTINCT cor1.col1 * - 72 FROM tab2, tab0 AS cor0, tab2 cor1
----
-1224
-2232
-4248

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

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

query I rowsort
SELECT ALL + 2 + - col0 FROM tab2
----
-5
-76
-77

query I rowsort
SELECT ALL - 73 + col2 FROM tab1 AS cor0
----
-16
-19
23

query I rowsort
SELECT + 66 FROM tab1, tab0 AS cor0, tab0 AS cor1, tab2 AS cor2
----
81 values hashing to dc112f70fecc29a6e605a39541192f43

query I rowsort
SELECT DISTINCT 40 + col0 * + col0 AS col1 FROM tab1 AS cor0
----
4136
49
6440

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

skipif mysql # not compatible
query I rowsort label-1618
SELECT ALL + ( - cor0.col2 ) / col0 AS col1 FROM tab1 AS cor0
----
-1
-18
0

query I rowsort
SELECT ALL + + col2 * - col0 - cor0.col0 * + 55 AS col2 FROM tab1 AS cor0
----
-12080
-327
-7168

query I rowsort
SELECT DISTINCT - ( cor0.col2 ) * - col1 * 64 AS col1 FROM tab1 AS cor0
----
36480
79872
89856

onlyif mysql # use DIV operator for integer division
query I rowsort label-1621
SELECT ALL + + cor0.col2 DIV + 51 + cor0.col0 + col0 FROM tab0 AS cor0
----
179
48
70

skipif mysql # not compatible
query I rowsort label-1621
SELECT ALL + + cor0.col2 / + 51 + cor0.col0 + col0 FROM tab0 AS cor0
----
179
48
70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( col1 ) * ( + 41 ) col1 FROM tab0 AS cor0
----
3526
3731
3977

query I rowsort
SELECT ALL + col0 * 11 AS col1 FROM tab1
----
33
704
880

query I rowsort
SELECT DISTINCT - - col2 * + 28 + col1 AS col2 FROM tab0 AS cor0
----
1010
125
2387

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1627
SELECT - cor0.col2 DIV + cor0.col2 col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 60fdd6924bb763d6aca00ba74935ef4b

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1627
SELECT - cor0.col2 / + cor0.col2 col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 60fdd6924bb763d6aca00ba74935ef4b

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

skipif mysql # not compatible
query I rowsort label-1628
SELECT col2 + cor0.col2 / 65 AS col1 FROM tab2 AS cor0
----
26
27
38

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

query I rowsort
SELECT + tab2.col2 + 22 * - ( - col2 ) AS col1 FROM tab2
----
598
621
874

query I rowsort
SELECT ALL 72 FROM tab0, tab2 AS cor0
----
9 values hashing to 906b63c9adb7d9ac7355cab71a25fc49

query I rowsort
SELECT - ( 98 * cor0.col1 ) AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 58eea4e1d9c1e92723c4c0cbf337ba2a

query I rowsort
SELECT 72 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 92cc3d5daa550304e96c1542787691c7

query I rowsort
SELECT DISTINCT 23 + + col2 AS col1 FROM tab2
----
49
50
61

onlyif mysql # use DIV operator for integer division
query I rowsort label-1635
SELECT - - col1 * + col0 + - col2 DIV + col1 AS col2 FROM tab0 AS cor0
----
2064
3395
8099

skipif mysql # not compatible
query I rowsort label-1635
SELECT - - col1 * + col0 + - col2 / + col1 AS col2 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT ALL + + 63 + col1 * + col0 AS col2 FROM tab2 AS cor0
----
1406
280
4665

query I rowsort
SELECT DISTINCT + col1 + col2 * col2 * col0 FROM tab1 AS cor0
----
207946
737293
8774

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

skipif mysql # not compatible
query I rowsort label-1638
SELECT + - cor1.col1 * + CAST ( NULL AS INTEGER ) - + cor1.col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # use DIV operator for integer division
query I rowsort label-1639
SELECT 44 DIV col2 AS col2 FROM tab0
----
0
1
44

skipif mysql # not compatible
query I rowsort label-1639
SELECT 44 / col2 AS col2 FROM tab0
----
0
1
44

query I rowsort
SELECT 43 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to ee5108f6248be48c54e069545f81c5d9

query I rowsort
SELECT ALL col2 + + col1 * + col1 * - col0 - ( ( - cor0.col0 ) ) * ( col2 ) FROM tab0 cor0
----
-176679
-329279
-729629

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

query I rowsort
SELECT + ( tab0.col1 + - col0 ) * col0 AS col0 FROM tab0
----
1488
178
2170

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

query I rowsort
SELECT - 16 * + col2 * ( + col2 * tab0.col1 + - 9 ) FROM tab0
----
-1408
-1493712
-9778336

query I rowsort
SELECT - 17 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to 28cd5b4c959cb41fbc56389ab43d167e

query I rowsort
SELECT ALL + - col2 * - 43 FROM tab2 AS cor0
----
1118
1161
1634

query I rowsort
SELECT col2 + - 21 FROM tab1 AS cor0
----
33
36
75

query I rowsort
SELECT - + col0 * + col0 * + col1 + col1 FROM tab2 AS cor0
----
-106080
-1488
-358897

query I rowsort
SELECT DISTINCT - col1 + - 0 FROM tab2 AS cor0
----
-17
-31
-59

query I rowsort
SELECT ALL col0 * col1 + 50 FROM tab0
----
2114
3445
8149

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

query I rowsort
SELECT ALL + 41 * - col0 FROM tab2
----
-287
-3198
-3239

query I rowsort
SELECT 63 * col2 AS col1 FROM tab2 AS cor0
----
1638
1701
2394

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

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

query I rowsort
SELECT + 28 + + 81 * - col0 AS col1 FROM tab1 AS cor0
----
-215
-5156
-6452

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

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1658
SELECT ALL - col1 * + CAST( + col0 AS SIGNED ) FROM tab2
----
-1343
-217
-4602

skipif mysql # not compatible
query I rowsort label-1658
SELECT ALL - col1 * + CAST ( + col0 AS INTEGER ) FROM tab2
----
-1343
-217
-4602

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 95 + col0 * + col2 col0 FROM tab0 AS cor0
----
130
7393
887

onlyif mysql # use DIV operator for integer division
query I rowsort label-1660
SELECT ALL col2 * tab0.col2 DIV + col1 AS col1 FROM tab0
----
0
12
73

skipif mysql # not compatible
query I rowsort label-1660
SELECT ALL col2 * tab0.col2 / + col1 AS col1 FROM tab0
----
0
12
73

query I rowsort
SELECT cor0.col1 * tab0.col0 + + 25 AS col0 FROM tab0, tab0 cor0
----
9 values hashing to 4bddfdabbdc7102042a7fa70b98a9879

query I rowsort
SELECT - col2 - ( + col0 * + 71 ) AS col0 FROM tab2 cor0
----
-524
-5564
-5647

query I rowsort
SELECT - 49 + + cor0.col0 * - col0 AS col0 FROM tab2 AS cor0
----
-6133
-6290
-98

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

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

query I rowsort
SELECT col1 - col2 * col0 * + ( 12 ) FROM tab2
----
-2237
-24277
-36007

query I rowsort
SELECT DISTINCT - 63 FROM tab0 cor0
----
-63

query I rowsort
SELECT ALL - - cor0.col0 * cor0.col0 AS col2 FROM tab0 AS cor0
----
1225
576
7921

query I rowsort
SELECT - 94 - col1 FROM tab2 AS cor0
----
-111
-125
-153

query I rowsort
SELECT ALL + 80 + col1 FROM tab1 AS cor0
----
106
90
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + col1 col2 FROM tab0 AS cor0
----
110
132
180

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

query I rowsort
SELECT ALL + ( col0 ) * + tab2.col0 FROM tab2
----
49
6084
6241

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

query I rowsort
SELECT ( - tab0.col1 ) * tab0.col1 + col1 FROM tab0
----
-7310
-8190
-9312

query I rowsort
SELECT 76 - + col2 AS col2 FROM tab0
----
-6
43
75

onlyif mysql # use DIV operator for integer division
query I rowsort label-1677
SELECT col0 * + col2 + + col0 DIV 96 FROM tab1
----
162
3648
7680

skipif mysql # not compatible
query I rowsort label-1677
SELECT col0 * + col2 + + col0 / 96 FROM tab1
----
162
3648
7680

query I rowsort
SELECT - ( - cor0.col1 ) * ( col1 ) * + col1 + cor0.col1 + col1 AS col0 FROM tab1 AS cor0
----
1020
17628
2223

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

query I rowsort
SELECT DISTINCT - + col0 * col2 + - ( + 96 ) AS col0 FROM tab1 AS cor0
----
-258
-3744
-7776

query I rowsort
SELECT DISTINCT - col2 + + col2 * + col0 AS col0 FROM tab0 AS cor0
----
34
7216
759

query I rowsort
SELECT ALL + ( col1 ) * - ( 0 ) AS col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT 59 - col1 AS col1 FROM tab0 AS cor0
----
-27
-32
-38

query I rowsort
SELECT - - 61 + + col0 AS col1 FROM tab1 AS cor0
----
125
141
64

query I rowsort
SELECT ALL + col1 + - col1 * + 91 AS col1 FROM tab0 AS cor0
----
-7740
-8190
-8730

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

query I rowsort
SELECT - col0 + 82 AS col1 FROM tab2 AS cor0
----
3
4
75

query I rowsort
SELECT + cor0.col2 + + col2 * col0 * col0 AS col1 FROM tab2 AS cor0
----
1350
158210
237196

query I rowsort
SELECT col2 * - 41 AS col1 FROM tab0 AS cor0
----
-1353
-3362
-41

query I rowsort
SELECT cor0.col2 AS col0 FROM tab0, tab2 cor0
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3

skipif mysql # not compatible
query I rowsort
SELECT ALL - CAST ( col1 AS REAL ) * col1 AS col0 FROM tab0 AS cor0
----
-7396
-8281
-9409

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1693
SELECT CAST( col2 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-1693
SELECT CAST ( col2 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT 67 AS col2 FROM tab0, tab2 AS cor0, tab2 AS cor1, tab2 AS cor2
----
81 values hashing to 09fa7af42010457bb3c6ffd0dfea3bc8

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

query I rowsort
SELECT col1 + 47 AS col2 FROM tab0 AS cor0
----
133
138
144

query I rowsort
SELECT DISTINCT + 83 FROM tab0, tab0 AS cor0
----
83

query I rowsort
SELECT DISTINCT - col2 * + 36 AS col0 FROM tab2 cor0
----
-1368
-936
-972

query I rowsort
SELECT + - 86 + col0 AS col1 FROM tab0 AS cor0
----
-51
-62
3

query I rowsort
SELECT DISTINCT + col1 * 89 FROM tab1 AS cor0
----
1157
2314
890

query I rowsort
SELECT DISTINCT 25 + + 46 FROM tab2 AS cor0
----
71

onlyif mysql # use DIV operator for integer division
query I rowsort label-1702
SELECT - CAST( - col2 AS SIGNED ) + + col1 DIV col1 FROM tab0 AS cor0
----
2
34
83

skipif mysql # not compatible
query I rowsort label-1702
SELECT - CAST ( - col2 AS INTEGER ) + + col1 / col1 FROM tab0 AS cor0
----
2
34
83

query I rowsort
SELECT + col1 + - col1 * col2 AS col2 FROM tab1 cor0
----
-1235
-1378
-560

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

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

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

query I rowsort
SELECT + cor0.col1 * - 38 AS col0 FROM tab1 cor0
----
-380
-494
-988

onlyif mysql # use DIV operator for integer division
query I rowsort label-1708
SELECT ALL - col0 + + 36 DIV + col1 - cor0.col1 col1 FROM tab0 AS cor0
----
-110
-132
-180

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1708
SELECT ALL - col0 + + 36 / + col1 - cor0.col1 col1 FROM tab0 AS cor0
----
-110
-132
-180

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

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

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

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

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1714
SELECT ( col1 ) DIV + col0 + col0 * col0 FROM tab2
----
53
6084
6241

skipif mysql # not compatible
query I rowsort label-1714
SELECT ( col1 ) / + col0 + col0 * col0 FROM tab2
----
53
6084
6241

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col2 + - 5 col1 FROM tab2 AS cor0
----
-31
-32
-43

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1718
SELECT DISTINCT + + CAST( NULL AS SIGNED ) + 91 FROM tab2, tab1 AS cor0, tab1, tab1 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-1718
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) + 91 FROM tab2, tab1 AS cor0, tab1, tab1 AS cor1
----
NULL

query I rowsort
SELECT + col0 * - 21 + + col0 + - col2 AS col0 FROM tab0
----
-1862
-513
-701

query I rowsort
SELECT ALL col1 * col0 + col0 FROM tab0
----
2088
3430
8188

query I rowsort
SELECT + col2 + + 8 FROM tab1
----
104
62
65

query I rowsort
SELECT ALL cor0.col2 + + cor0.col2 AS col1 FROM tab2 AS cor0
----
52
54
76

query I rowsort
SELECT ALL + 72 AS col2 FROM tab1, tab2 cor0 CROSS JOIN tab2, tab0 AS cor1
----
81 values hashing to e1618abfe12be6a950cc575d695639b7

query I rowsort
SELECT DISTINCT - ( col1 ) * col2 + + col1 AS col0 FROM tab1
----
-1235
-1378
-560

onlyif mysql # use DIV operator for integer division
query I rowsort label-1725
SELECT + tab0.col0 + col0 DIV col1 FROM tab0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-1725
SELECT + tab0.col0 + col0 / col1 FROM tab0
----
24
35
89

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1726
SELECT DISTINCT + col1 * + col0 * CAST( - col1 AS SIGNED ) FROM tab0
----
-177504
-329315
-737009

skipif mysql # not compatible
query I rowsort label-1726
SELECT DISTINCT + col1 * + col0 * CAST ( - col1 AS INTEGER ) FROM tab0
----
-177504
-329315
-737009

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1728
SELECT - col2 + + tab1.col0 DIV + 47 AS col1 FROM tab1
----
-54
-56
-95

skipif mysql # not compatible
query I rowsort label-1728
SELECT - col2 + + tab1.col0 / + 47 AS col1 FROM tab1
----
-54
-56
-95

onlyif mysql # use DIV operator for integer division
query I rowsort label-1729
SELECT DISTINCT - 72 + + col0 DIV - col0 AS col1 FROM tab0 AS cor0
----
-73

skipif mysql # not compatible
query I rowsort label-1729
SELECT DISTINCT - 72 + + col0 / - col0 AS col1 FROM tab0 AS cor0
----
-73

query I rowsort
SELECT 18 AS col2 FROM tab0, tab1 AS cor0, tab0 AS cor1, tab1 AS cor2
----
81 values hashing to a13db73ec93475d2821cb4a6d0eff298

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1731
SELECT - CAST ( NULL AS INTEGER ) col0 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

onlyif mysql # use DIV operator for integer division
query I rowsort label-1732
SELECT + + 73 + + col0 * col2 DIV - ( col0 ) FROM tab1 AS cor0
----
-23
16
19

skipif mysql # not compatible
query I rowsort label-1732
SELECT + + 73 + + col0 * col2 / - ( col0 ) FROM tab1 AS cor0
----
-23
16
19

query I rowsort
SELECT DISTINCT - + 20 - col0 FROM tab0 AS cor0
----
-109
-44
-55

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

query I rowsort
SELECT ALL - - col1 + - col2 * - 31 FROM tab0 AS cor0
----
1109
128
2633

query I rowsort
SELECT col2 + + cor0.col0 + - col0 AS col1 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT col2 * - col2 + col2 + + col0 * - col0 AS col2 FROM tab2 AS cor0
----
-6734
-751
-7647

query I rowsort
SELECT DISTINCT col1 * col0 + + 84 + + col1 * cor0.col0 FROM tab0 AS cor0
----
16282
4212
6874

onlyif mysql # use DIV operator for integer division
query I rowsort label-1739
SELECT ALL - col0 DIV cor0.col1 + 72 + + col0 AS col1 FROM tab1 AS cor0
----
130
146
75

skipif mysql # not compatible
query I rowsort label-1739
SELECT ALL - col0 / cor0.col1 + 72 + + col0 AS col1 FROM tab1 AS cor0
----
130
146
75

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

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

query I rowsort
SELECT ( ( cor0.col0 ) ) AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a

query I rowsort
SELECT DISTINCT tab1.col0 * 15 FROM tab1
----
1200
45
960

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1743
SELECT ALL + col1 * CAST( - col0 + - col2 AS SIGNED ) AS col0 FROM tab2
----
-1054
-1989
-6136

skipif mysql # not compatible
query I rowsort label-1743
SELECT ALL + col1 * CAST ( - col0 + - col2 AS INTEGER ) AS col0 FROM tab2
----
-1054
-1989
-6136

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

query I rowsort
SELECT - - col1 * 46 AS col2 FROM tab1 AS cor0
----
1196
460
598

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1748
SELECT ALL ( col2 ) + col1 + + col2 DIV + col2 AS col1 FROM tab0 AS cor0
----
120
174
99

skipif mysql # not compatible
query I rowsort label-1748
SELECT ALL ( col2 ) + col1 + + col2 / + col2 AS col1 FROM tab0 AS cor0
----
120
174
99

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

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

skipif mysql # not compatible
query I rowsort label-1750
SELECT - 43 * col1 + + tab2.col0 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT 9 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 03b93b53107e36cf7d524e48c509b17b

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 + + 67 col0 FROM tab2 cor0
----
145
146
74

query I rowsort
SELECT DISTINCT - 59 * + 78 * - col0 + col2 FROM tab2 AS cor0
----
32241
358982
363596

query I rowsort
SELECT ALL - 55 * 4 FROM tab0 AS cor0
----
-220
-220
-220

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

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

query I rowsort
SELECT ALL - + ( cor0.col2 ) * - col0 + col0 AS col2 FROM tab2 AS cor0
----
196
2106
3081

query I rowsort
SELECT ALL + ( + 85 ) + col2 * col1 FROM tab0
----
182
2923
7547

query I rowsort
SELECT ALL - 40 + tab1.col1 + + 27 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 72460c5efe0e356c96c5df6a35732067

query I rowsort
SELECT DISTINCT col0 * col2 + + col2 + col0 FROM tab1
----
219
3769
7856

onlyif mysql # use DIV operator for integer division
query I rowsort label-1760
SELECT ALL + 82 DIV - col0 FROM tab2
----
-1
-1
-11

skipif mysql # not compatible
query I rowsort label-1760
SELECT ALL + 82 / - col0 FROM tab2
----
-1
-1
-11

query I rowsort
SELECT DISTINCT - ( - col1 + - col0 ) * - 50 FROM tab0
----
-5500
-6600
-9000

query I rowsort
SELECT + - col2 + 52 * - col2 AS col0 FROM tab1 AS cor0
----
-2862
-3021
-5088

query I rowsort
SELECT - + cor0.col0 * + 8 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 37adeb86c25a09c1cb1ab4304ae07bfd

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

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

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

query I rowsort
SELECT ALL + - cor0.col1 * col2 * 89 AS col0 FROM tab2 AS cor0
----
-136526
-57494
-74493

query I rowsort
SELECT ALL cor0.col1 * + col1 AS col0 FROM tab1 cor0
----
100
169
676

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

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

query I rowsort
SELECT ALL cor1.col0 FROM tab0, tab0 cor0, tab2 cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83

query I rowsort
SELECT ALL - 46 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 5a5d45989dcc6a06d9ee5a08945518f9

query I rowsort
SELECT col1 + - tab0.col2 * col2 FROM tab0
----
-1003
-6633
96

query I rowsort
SELECT - col2 - col2 * - col2 AS col0 FROM tab0
----
0
1056
6642

query I rowsort
SELECT - cor0.col2 * col2 + + cor0.col2 AS col1 FROM tab0 AS cor0
----
-1056
-6642
0

query I rowsort
SELECT DISTINCT - + cor0.col1 * + col0 + cor0.col2 FROM tab0 AS cor0
----
-2031
-3394
-8017

query I rowsort
SELECT - 84 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 975e2ef2a3bf1ee2622362f4e435752f

query I rowsort
SELECT + cor0.col0 + 11 FROM tab1 AS cor0
----
14
75
91

query I rowsort
SELECT ALL - + 45 * - col2 * + col0 + 1 FROM tab1 AS cor0
----
164161
345601
7291

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

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

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

skipif mysql # not compatible
query I rowsort label-1782
SELECT + - CAST ( NULL AS REAL ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 37 * cor0.col1 col2 FROM tab2 AS cor0
----
-1147
-2183
-629

query I rowsort
SELECT ALL 70 * - 47 + col1 * - col2 FROM tab0 AS cor0
----
-10752
-3387
-6128

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

query I rowsort
SELECT DISTINCT + col0 + - 25 * - col1 AS col1 FROM tab1 AS cor0
----
314
405
653

onlyif mysql # use DIV operator for integer division
query I rowsort label-1787
SELECT DISTINCT + 40 DIV - col2 FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-1787
SELECT DISTINCT + 40 / - col2 FROM tab1 cor0
----
0

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

query I rowsort
SELECT DISTINCT + ( col0 ) + + col0 AS col2 FROM tab0 AS cor0
----
178
48
70

onlyif mysql # use DIV operator for integer division
query I rowsort label-1790
SELECT ALL col0 DIV - CAST( + col0 AS SIGNED ) FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-1790
SELECT ALL col0 / - CAST ( + col0 AS INTEGER ) FROM tab2
----
-1
-1
-1

onlyif mysql # use DIV operator for integer division
query I rowsort label-1791
SELECT DISTINCT col0 - - col0 DIV + col2 AS col2 FROM tab0 AS cor0
----
24
70
90

skipif mysql # not compatible
query I rowsort label-1791
SELECT DISTINCT col0 - - col0 / + col2 AS col2 FROM tab0 AS cor0
----
24
70
90

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

query I rowsort
SELECT DISTINCT - cor0.col1 - + col2 AS col0 FROM tab1 AS cor0
----
-109
-67
-80

query I rowsort
SELECT ALL - cor0.col2 + + 43 * col1 AS col2 FROM tab2 AS cor0
----
1306
2511
693

query I rowsort
SELECT DISTINCT + col0 * - 42 - col2 * col2 FROM tab1 cor0
----
-12576
-3042
-5937

query I rowsort
SELECT DISTINCT + col1 * - 81 * - col0 FROM tab2 AS cor0
----
108783
17577
372762

query I rowsort
SELECT DISTINCT - + cor0.col2 * col2 AS col1 FROM tab0 cor0
----
-1
-1089
-6724

skipif mysql # not compatible
query I rowsort
SELECT CAST ( + col1 AS REAL ) + col1 * + 88 AS col0 FROM tab2 AS cor0
----
1513
2759
5251

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

query I rowsort
SELECT ALL + 92 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 516fa45c8b06f9f67d6e500bfd435c1a

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1802
SELECT - cor0.col1 DIV + 57 AS col2 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 84da757b1b7b0069ce25607f39bc08d9

skipif mysql # not compatible
query I rowsort label-1802
SELECT - cor0.col1 / + 57 AS col2 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 84da757b1b7b0069ce25607f39bc08d9

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 45 * + 60 col1 FROM tab0
----
2700

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

query I rowsort
SELECT ALL 25 FROM tab2, tab0, tab1 AS cor0
----
27 values hashing to 2c77240b60ac01c717a5ed5d0165f450

onlyif mysql # use DIV operator for integer division
query I rowsort label-1807
SELECT DISTINCT + + col1 * CAST( + 36 + + col2 AS SIGNED ) DIV col1 AS col1 FROM tab2 AS cor0
----
62
63
74

skipif mysql # not compatible
query I rowsort label-1807
SELECT DISTINCT + + col1 * CAST ( + 36 + + col2 AS INTEGER ) / col1 AS col1 FROM tab2 AS cor0
----
62
63
74

query I rowsort
SELECT + col1 * 69 AS col0 FROM tab1 AS cor0
----
1794
690
897

query I rowsort
SELECT col0 + 38 AS col2 FROM tab2 AS cor0
----
116
117
45

query I rowsort
SELECT ALL col1 * - col0 + 36 AS col1 FROM tab1 AS cor0
----
-1004
-42
-604

query I rowsort
SELECT DISTINCT - 83 FROM tab2, tab2 AS cor0, tab2 cor1
----
-83

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

query I rowsort
SELECT ALL + ( + cor0.col1 ) AS col1 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to 7599b480125de521efed71b5b2413c7d

query I rowsort
SELECT ALL - col2 * tab1.col2 + col0 + - col2 AS col1 FROM tab1
----
-2967
-3242
-9232

onlyif mysql # use DIV operator for integer division
query I rowsort label-1815
SELECT DISTINCT col1 + tab1.col1 DIV 43 AS col0 FROM tab1
----
10
13
26

skipif mysql # not compatible
query I rowsort label-1815
SELECT DISTINCT col1 + tab1.col1 / 43 AS col0 FROM tab1
----
10
13
26

query I rowsort
SELECT col0 * 58 - 45 FROM tab2
----
361
4479
4537

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col0 + col2 * - col1 col2 FROM tab2 AS cor0
----
-1612
-725
-844

onlyif mysql # use DIV operator for integer division
query I rowsort label-1820
SELECT ALL - col1 + - cor0.col0 * 88 DIV - cor0.col1 FROM tab0 AS cor0
----
-5
-62
-66

skipif mysql # not compatible
query I rowsort label-1820
SELECT ALL - col1 + - cor0.col0 * 88 / - cor0.col1 FROM tab0 AS cor0
----
-5
-62
-66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * 6 col0 FROM tab0 AS cor0
----
516
546
582

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1822
SELECT ALL - col1 * + CAST( + col1 AS SIGNED ) + col1 FROM tab1 AS cor0
----
-156
-650
-90

skipif mysql # not compatible
query I rowsort label-1822
SELECT ALL - col1 * + CAST ( + col1 AS INTEGER ) + col1 FROM tab1 AS cor0
----
-156
-650
-90

query I rowsort
SELECT - col2 * - 26 AS col1 FROM tab1 AS cor0
----
1404
1482
2496

query I rowsort
SELECT - - col0 * - ( + 22 ) AS col0 FROM tab1 AS cor0
----
-1408
-1760
-66

query I rowsort
SELECT - cor0.col0 + 77 AS col0 FROM tab1 AS cor0
----
-3
13
74

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + - col2 * + col1 col0 FROM tab2
----
-1475
-629
-806

onlyif mysql # use DIV operator for integer division
query I rowsort label-1827
SELECT col0 DIV col2 + col1 FROM tab1
----
11
13
26

skipif mysql # not compatible
query I rowsort label-1827
SELECT col0 / col2 + col1 FROM tab1
----
11
13
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 37 * + tab1.col2 col0 FROM tab1
----
1998
2109
3552

query I rowsort
SELECT ALL - col0 + cor0.col0 - - 12 FROM tab1 AS cor0
----
12
12
12

query I rowsort
SELECT ALL + ( - cor0.col2 ) + tab2.col0 AS col2 FROM tab2, tab1 AS cor0, tab2 cor1
----
27 values hashing to 9f76c248bed799eecbe38e7275add06f

query I rowsort
SELECT DISTINCT + ( - col1 ) + + col0 * 75 FROM tab0 AS cor0
----
1714
2528
6584

onlyif mysql # use DIV operator for integer division
query I rowsort label-1832
SELECT 74 DIV 3 FROM tab1, tab0 AS cor0, tab0 cor1
----
27 values hashing to aeeac431d22528188e8a5a2a60d2d080

skipif mysql # not compatible
query I rowsort label-1832
SELECT 74 / 3 FROM tab1, tab0 AS cor0, tab0 cor1
----
27 values hashing to aeeac431d22528188e8a5a2a60d2d080

query I rowsort
SELECT DISTINCT - + col1 + - 78 FROM tab2 AS cor0
----
-109
-137
-95

query I rowsort
SELECT + col2 * + ( col2 ) FROM tab0 cor0
----
1
1089
6724

query I rowsort
SELECT col2 + - col2 * + col1 AS col0 FROM tab0
----
-2805
-7380
-96

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

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

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

query I rowsort
SELECT col1 FROM tab1 WHERE NOT col1 < ( NULL )
----

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

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

query I rowsort
SELECT DISTINCT - col1 - tab2.col0 FROM tab2 WHERE ( NULL ) NOT BETWEEN NULL AND ( NULL )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col2 NOT BETWEEN ( + col2 + + col1 ) AND col0 + col1
----

query I rowsort
SELECT DISTINCT col0 + col1 + col1 AS col2 FROM tab2
----
113
196
69

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

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

query I rowsort
SELECT - tab1.col0 FROM tab1 WHERE ( NULL ) <= - col1 * - col0
----

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

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

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

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

query I rowsort
SELECT ALL tab0.col0 * col0 + + tab0.col1 AS col0 FROM tab0
----
1322
662
8012

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

query I rowsort
SELECT DISTINCT tab0.col2 AS col1 FROM tab0 WHERE NOT + col0 + col2 >= NULL
----

query I rowsort
SELECT + tab2.col1 + + tab2.col1 - col1 * col1 AS col0 FROM tab2
----
-255
-3363
-899

skipif mysql # not compatible
query I rowsort
SELECT + col1 * col2 + + CAST ( col0 + - col0 AS REAL ) * col2 AS col0 FROM tab2 AS cor0
----
1534
646
837

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT BETWEEN + col2 * + col0 AND NULL
----

query I rowsort
SELECT + tab1.col1 FROM tab1 WHERE NOT NULL BETWEEN NULL AND NULL
----

query I rowsort
SELECT col2 * tab0.col2 + + col2 * - col1 FROM tab0
----
-1749
-738
-96

onlyif mysql # use DIV operator for integer division
query I rowsort label-1859
SELECT - col2 DIV col2 + col0 + + col2 FROM tab1
----
120
175
56

skipif mysql # not compatible
query I rowsort label-1859
SELECT - col2 / col2 + col0 + + col2 FROM tab1
----
120
175
56

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - tab2.col2 * - col0 - - col2 col0 FROM tab2
----
2054
216
3040

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

query I rowsort
SELECT - col1 * col1 - + col2 AS col0 FROM tab0
----
-7429
-8363
-9410

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1863
SELECT col1 * + cor0.col1 * CAST( - 36 AS SIGNED ) + + col2 FROM tab2 AS cor0
----
-10366
-125290
-34569

skipif mysql # not compatible
query I rowsort label-1863
SELECT col1 * + cor0.col1 * CAST ( - 36 AS INTEGER ) + + col2 FROM tab2 AS cor0
----
-10366
-125290
-34569

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1864
SELECT - CAST( + col1 + col2 AS SIGNED ) FROM tab2
----
-55
-58
-85

skipif mysql # not compatible
query I rowsort label-1864
SELECT - CAST ( + col1 + col2 AS INTEGER ) FROM tab2
----
-55
-58
-85

query I rowsort
SELECT - cor0.col2 * - col0 + + 3 AS col1 FROM tab0 AS cor0
----
38
7301
795

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

query I rowsort
SELECT + col0 * cor0.col1 + 27 AS col0 FROM tab2 AS cor0
----
1370
244
4629

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - col2 + + col0 col1 FROM tab0 AS cor0
----
-2814
-62
-7373

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1869
SELECT DISTINCT col1 * CAST( - col1 AS SIGNED ) FROM tab1
----
-100
-169
-676

skipif mysql # not compatible
query I rowsort label-1869
SELECT DISTINCT col1 * CAST ( - col1 AS INTEGER ) FROM tab1
----
-100
-169
-676

query I rowsort
SELECT col0 * + cor0.col2 + - col2 * + cor0.col1 AS col1 FROM tab2 AS cor0
----
-648
2356
494

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

query I rowsort
SELECT col0 + - ( 10 ) + + col0 FROM tab1
----
-4
118
150

onlyif mysql # use DIV operator for integer division
query I rowsort label-1873
SELECT DISTINCT - tab2.col2 DIV + col1 FROM tab2
----
-2
0

skipif mysql # not compatible
query I rowsort label-1873
SELECT DISTINCT - tab2.col2 / + col1 FROM tab2
----
-2
0

query I rowsort
SELECT DISTINCT - 82 * 78 FROM tab1 AS cor0
----
-6396

query I rowsort
SELECT ( 68 ) * col0 FROM tab0
----
1632
2380
6052

query I rowsort
SELECT 92 * - 51 FROM tab2
----
-4692
-4692
-4692

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1877
SELECT - CAST( + col0 AS SIGNED ) * - col2 FROM tab0
----
35
7298
792

skipif mysql # not compatible
query I rowsort label-1877
SELECT - CAST ( + col0 AS INTEGER ) * - col2 FROM tab0
----
35
7298
792

query I rowsort
SELECT + 86 * - col0 * + col1 AS col2 FROM tab2 AS cor0
----
-115498
-18662
-395772

query I rowsort
SELECT DISTINCT + cor0.col0 + - col2 * + col0 AS col1 FROM tab0 AS cor0
----
-7209
-768
0

query I rowsort
SELECT - - 22 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to c55ee7433d8d39a59b1de2aadd9538c9

query I rowsort
SELECT - col2 * - col2 + + 46 FROM tab2
----
1490
722
775

query I rowsort
SELECT 22 + tab1.col1 FROM tab1, tab1 AS cor0
----
9 values hashing to d0e35ae2ac07312d0622441556551cbe

query I rowsort
SELECT col0 - 8 FROM tab0
----
16
27
81

query I rowsort
SELECT - col0 + ( + 26 ) * - col2 * col0 AS col2 FROM tab2
----
-4921
-52806
-78131

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

query I rowsort
SELECT - 67 + - cor1.col1 AS col2 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to e7d28eca7fe5850b1defd51ad148831d

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

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

query I rowsort
SELECT + + col1 * + col1 * col2 + - col1 FROM tab1 AS cor0
----
16211
36478
5690

query I rowsort
SELECT 12 * col2 + cor0.col2 FROM tab0 cor0
----
1066
13
429

query I rowsort
SELECT - - 19 AS col1 FROM tab1 AS cor0
----
19
19
19

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

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

skipif mysql # not compatible
query I rowsort
SELECT - col2 + + col1 * + CAST ( cor0.col1 AS REAL ) FROM tab2 AS cor0
----
251
3455
934

query I rowsort
SELECT DISTINCT + + 62 * col1 + col2 + col0 AS col2 FROM tab2 AS cor0
----
1171
1956
3762

query I rowsort
SELECT ALL 56 * col0 + - col0 FROM tab1 cor0
----
165
3520
4400

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1897
SELECT - 36 + - col0 * col2 DIV col1 AS col1 FROM tab1
----
-400
-42
-626

skipif mysql # not compatible
query I rowsort label-1897
SELECT - 36 + - col0 * col2 / col1 AS col1 FROM tab1
----
-400
-42
-626

query I rowsort
SELECT + cor0.col2 + cor0.col1 AS col2 FROM tab2, tab1 cor0
----
9 values hashing to 71bdffb602517a95c6721e05f7b4b3dd

query I rowsort
SELECT 19 * - col2 * 95 + - col1 FROM tab0
----
-148101
-1902
-59651

onlyif mysql # use DIV operator for integer division
query I rowsort label-1900
SELECT - col1 - col2 DIV + 31 FROM tab1
----
-11
-16
-27

skipif mysql # not compatible
query I rowsort label-1900
SELECT - col1 - col2 / + 31 FROM tab1
----
-11
-16
-27

onlyif mysql # use DIV operator for integer division
query I rowsort label-1901
SELECT 54 DIV col0 + - ( + ( + col1 ) * + 43 + - 40 ) FROM tab0 AS cor0
----
-3656
-3873
-4130

skipif mysql # not compatible
query I rowsort label-1901
SELECT 54 / col0 + - ( + ( + col1 ) * + 43 + - 40 ) FROM tab0 AS cor0
----
-3656
-3873
-4130

query I rowsort
SELECT ALL + col0 + + col1 * 79 FROM tab2 AS cor0
----
1422
2456
4739

query I rowsort
SELECT 15 + col0 AS col1 FROM tab1 AS cor0
----
18
79
95

query I rowsort
SELECT ALL - col0 * - cor0.col2 + + 71 * col2 * - col1 AS col1 FROM tab0 AS cor0
----
-200706
-522504
-6852

query I rowsort
SELECT - 3 + - col0 AS col1 FROM tab0 AS cor0
----
-27
-38
-92

query I rowsort
SELECT DISTINCT 89 + col1 AS col1 FROM tab0 AS cor0
----
175
180
186

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

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

query I rowsort
SELECT ALL + col1 * ( + 47 ) + cor0.col2 FROM tab1 AS cor0
----
1276
527
707

query I rowsort
SELECT DISTINCT - + col2 * + 87 AS col0 FROM tab1 AS cor0
----
-4698
-4959
-8352

query I rowsort
SELECT ALL - col0 + 44 + ( cor0.col0 * ( 14 ) ) AS col1 FROM tab0 AS cor0
----
1201
356
499

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col1 * col1 + col1 col2 FROM tab1 AS cor0
----
110
182
702

query I rowsort
SELECT DISTINCT - cor0.col1 * col2 + 92 AS col0 FROM tab2 cor0
----
-1442
-554
-745

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

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

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

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

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

query I rowsort
SELECT ALL - col0 + - col1 + col2 FROM tab1
----
-17
25
3

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

query I rowsort
SELECT - cor0.col2 * - col0 + - col0 AS col1 FROM tab0 AS cor0
----
0
7209
768

onlyif mysql # use DIV operator for integer division
query I rowsort label-1921
SELECT ALL - 50 * col2 DIV - 62 + 76 AS col1 FROM tab1
----
119
121
153

skipif mysql # not compatible
query I rowsort label-1921
SELECT ALL - 50 * col2 / - 62 + 76 AS col1 FROM tab1
----
119
121
153

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + col0 * col2 col2 FROM tab0
----
70
7387
816

onlyif mysql # use DIV operator for integer division
query I rowsort label-1923
SELECT + 53 DIV col2 + col0 + - ( ( + col2 ) + + col1 ) * col0 FROM tab1 AS cor0
----
-237
-4224
-8640

skipif mysql # not compatible
query I rowsort label-1923
SELECT + 53 / col2 + col0 + - ( ( + col2 ) + + col1 ) * col0 FROM tab1 AS cor0
----
-237
-4224
-8640

query I rowsort
SELECT DISTINCT ( col2 ) * + col1 AS col1 FROM tab0 AS cor0
----
2838
7462
97

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

query I rowsort
SELECT - - col2 * 95 * + col0 FROM tab1 AS cor0
----
15390
346560
729600

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

query I rowsort
SELECT 71 - + cor0.col2 * col2 AS col2 FROM tab0 AS cor0
----
-1018
-6653
70

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

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

query I rowsort
SELECT DISTINCT - + ( col2 ) * + col1 + 33 * - col2 + col0 FROM tab2 AS cor0
----
-1721
-1821
-2314

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab0.col1 * ( col2 + col2 ) col0 FROM tab0
----
-14924
-194
-5676

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

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

query I rowsort
SELECT - 41 * col0 + + col1 * - cor0.col0 AS col1 FROM tab2 AS cor0
----
-4582
-504
-7800

query I rowsort
SELECT DISTINCT 31 - - col0 * + col2 AS col2 FROM tab0
----
66
7329
823

query I rowsort
SELECT col0 * col2 + - cor0.col2 * + 51 * col2 FROM tab0 AS cor0
----
-16
-335626
-54747

query I rowsort
SELECT ALL ( col1 + + col1 ) AS col0 FROM tab2
----
118
34
62

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

query I rowsort
SELECT + 98 + 35 * col0 FROM tab2 AS cor0
----
2828
2863
343

query I rowsort
SELECT + col2 + + col1 AS col1 FROM tab2
----
55
58
85

query I rowsort
SELECT - 84 FROM tab2, tab2 cor0
----
9 values hashing to 975e2ef2a3bf1ee2622362f4e435752f

query I rowsort
SELECT col2 + + col2 + tab0.col2 FROM tab0
----
246
3
99

onlyif mysql # use DIV operator for integer division
query I rowsort label-1944
SELECT tab0.col2 DIV + col2 + 15 DIV tab0.col0 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-1944
SELECT tab0.col2 / + col2 + 15 / tab0.col0 FROM tab0
----
1
1
1

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

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

query I rowsort
SELECT col0 * + 10 AS col1 FROM tab0
----
240
350
890

onlyif mysql # use DIV operator for integer division
query I rowsort label-1947
SELECT col2 DIV ( + col2 ) AS col2 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-1947
SELECT 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-1948
SELECT + col1 * - CAST( col2 AS SIGNED ) + - col2 * col0 col2 FROM tab2
----
-1026
-3562
-3648

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

query I rowsort
SELECT col0 * 89 * + col2 + - col1 FROM tab1
----
14392
324662
683507

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

query I rowsort
SELECT DISTINCT ( - 95 ) * col1 AS col0 FROM tab2 AS cor0
----
-1615
-2945
-5605

query I rowsort
SELECT - 67 + cor0.col2 FROM tab1 cor0
----
-10
-13
29

query I rowsort
SELECT DISTINCT - 78 + - cor0.col1 FROM tab2 AS cor0
----
-109
-137
-95

onlyif mysql # use DIV operator for integer division
query I rowsort label-1954
SELECT col1 DIV col1 + + 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-1954
SELECT col1 / col1 + + col0 col2 FROM tab2 AS cor0
----
79
8
80

query I rowsort
SELECT DISTINCT - ( 74 ) * - col2 * col0 AS col2 FROM tab1 AS cor0
----
11988
269952
568320

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col1 * 54 col0 FROM tab2 AS cor0
----
-1674
-3186
-918

query I rowsort
SELECT - 54 * + 98 FROM tab2 AS cor0
----
-5292
-5292
-5292

query I rowsort
SELECT - 94 + col0 * col0 AS col1 FROM tab2 AS cor0
----
-45
5990
6147

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1960
SELECT DISTINCT + CAST( 72 AS SIGNED ) + - col1 AS col0 FROM tab2 AS cor0
----
13
41
55

skipif mysql # not compatible
query I rowsort label-1960
SELECT DISTINCT + CAST ( 72 AS INTEGER ) + - col1 AS col0 FROM tab2 AS cor0
----
13
41
55

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1962
SELECT ( 29 ) DIV - col2 AS col1 FROM tab0 AS cor0
----
-29
0
0

skipif mysql # not compatible
query I rowsort label-1962
SELECT ( 29 ) / - col2 AS col1 FROM tab0 AS cor0
----
-29
0
0

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

query I rowsort
SELECT ALL + ( + col0 ) + cor0.col1 FROM tab2 AS cor0
----
137
38
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * col2 + col2 * 72 col1 FROM tab1 cor0
----
14592
4050
7752

query I rowsort
SELECT col0 * col1 + - col0 AS col2 FROM tab0 AS cor0
----
2040
3360
8010

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1968
SELECT ALL - col2 DIV + col1 + - 10 * col0 FROM tab0 AS cor0
----
-240
-350
-890

skipif mysql # not compatible
query I rowsort label-1968
SELECT ALL - col2 / + col1 + - 10 * col0 FROM tab0 AS cor0
----
-240
-350
-890

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

query I rowsort
SELECT ALL + + col2 * + col0 + + 10 + col0 FROM tab0 AS cor0
----
7397
80
826

query I rowsort
SELECT ALL 99 - col2 AS col2 FROM tab2 AS cor0
----
61
72
73

query I rowsort
SELECT ALL - - col2 + + col0 + ( cor0.col2 + col2 ) FROM tab1 cor0
----
165
235
368

query I rowsort
SELECT DISTINCT + - col0 * cor0.col0 * ( cor0.col1 ) + col2 AS col0 FROM tab0 AS cor0
----
-118824
-49503
-720729

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col2 * - col0 - cor0.col1 col2 FROM tab0 AS cor0
----
-132
-7389
-878

query I rowsort
SELECT - col2 * + ( + col1 ) + col0 * ( cor0.col0 * col0 ) FROM tab2 AS cor0
----
-494
473018
492393

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1977
SELECT - col2 DIV CAST( col2 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-1977
SELECT - col2 / CAST ( col2 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-1
-1
-1

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

skipif mysql # not compatible
query I rowsort label-1978
SELECT DISTINCT col2 / ( + col0 ) FROM tab1 AS cor0
----
0
1
18

query I rowsort
SELECT DISTINCT col2 + + 48 * + col2 * - col2 AS col2 FROM tab2 AS cor0
----
-32422
-34965
-69274

query I rowsort
SELECT col1 * - col1 + ( col1 * + col1 ) - - ( col0 * col0 + col0 ) FROM tab1
----
12
4160
6480

onlyif mysql # use DIV operator for integer division
query I rowsort label-1981
SELECT DISTINCT + tab1.col2 DIV + col2 + CAST( - col2 * col0 AS SIGNED ) + col0 * col0 FROM tab1
----
-1279
-152
449

skipif mysql # not compatible
query I rowsort label-1981
SELECT DISTINCT + tab1.col2 / + col2 + CAST ( - col2 * col0 AS INTEGER ) + col0 * col0 FROM tab1
----
-1279
-152
449

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 * + col0 + + col1 col1 FROM tab1 AS cor0
----
35
4106
6413

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + - 64 col0 FROM tab0 AS cor0
----
-31
-63
18

query I rowsort
SELECT + col2 - - col0 * cor0.col1 * col0 AS col2 FROM tab0 AS cor0
----
118826
49569
720893

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

skipif mysql # not compatible
query I rowsort label-1985
SELECT DISTINCT col0 / - col0 AS col2 FROM tab0 AS cor0
----
-1

query I rowsort
SELECT ALL + - col1 * + col0 + col2 AS col2 FROM tab0 AS cor0
----
-2031
-3394
-8017

query I rowsort
SELECT cor0.col2 - ( col2 ) FROM tab2 cor0
----
0
0
0

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

query I rowsort
SELECT + col2 - col0 * + col0 AS col2 FROM tab0 AS cor0
----
-1224
-543
-7839

query I rowsort
SELECT + cor0.col0 * + 75 + 9 FROM tab2 AS cor0
----
534
5859
5934

query I rowsort
SELECT col1 * + col1 - 22 AS col2 FROM tab0 AS cor0
----
7374
8259
9387

query I rowsort
SELECT col2 + - 84 FROM tab2 AS cor0
----
-46
-57
-58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 89 * col0 + col2 col2 FROM tab0 AS cor0
----
-2103
-3114
-7839

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

query I rowsort
SELECT - 49 * col1 + - col1 FROM tab1 AS cor0
----
-1300
-500
-650

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 67 col2 FROM tab2, tab2 AS cor0
----
9 values hashing to b56f8a4f1fcebc9802481256df61e97c

query I rowsort
SELECT DISTINCT 6 AS col1 FROM tab0, tab2 AS cor0, tab1, tab0 AS cor1
----
6

query I rowsort
SELECT DISTINCT - 66 * 84 FROM tab1, tab2 AS cor0, tab0, tab0 AS cor1
----
-5544

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

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

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

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

query I rowsort
SELECT DISTINCT + 74 - col1 FROM tab2 cor0
----
15
43
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 24 col0 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to aeeac431d22528188e8a5a2a60d2d080

query I rowsort
SELECT ALL - 73 + + col0 FROM tab1 AS cor0
----
-70
-9
7

onlyif mysql # use DIV operator for integer division
query I rowsort label-2005
SELECT ALL - cor0.col0 - - col2 * col2 DIV + cor0.col2 col0 FROM tab1 AS cor0
----
-7
16
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2005
SELECT ALL - cor0.col0 - - col2 * col2 / + cor0.col2 col0 FROM tab1 AS cor0
----
-7
16
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - ( col2 ) col2 FROM tab0 AS cor0
----
-1
-33
-82

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

query I rowsort
SELECT + 82 + - col0 FROM tab1 AS cor0
----
18
2
79

query I rowsort
SELECT ALL - cor0.col0 * col2 + - col1 - + 40 * + col0 AS col2 FROM tab0 AS cor0
----
-10949
-1532
-1838

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

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-2012
SELECT ( 7 ) + col0 DIV - col2 FROM tab1 AS cor0
----
6
7
7

skipif mysql # not compatible
query I rowsort label-2012
SELECT ( 7 ) + col0 / - col2 FROM tab1 AS cor0
----
6
7
7

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

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

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

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

skipif mysql # not compatible
query I rowsort label-2016
SELECT col1 / col0 + + col2 FROM tab2 AS cor0
----
26
31
38

query I rowsort
SELECT DISTINCT - - col0 * col1 - col0 AS col1 FROM tab0 AS cor0
----
2040
3360
8010

query I rowsort
SELECT DISTINCT col1 + 24 FROM tab0 cor0
----
110
115
121

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

query I rowsort
SELECT - + ( - col1 ) + cor0.col2 * col2 FROM tab2 cor0
----
1461
735
760

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 8 + cor0.col0 col2 FROM tab1 AS cor0
----
-5
56
72

query I rowsort
SELECT DISTINCT + col1 + + col2 - - col2 * - col1 AS col0 FROM tab1 AS cor0
----
-1139
-1324
-503

query I rowsort
SELECT - cor1.col2 AS col0 FROM tab2, tab2 AS cor0 CROSS JOIN tab1, tab2 AS cor1
----
81 values hashing to c569638e8a09ff819458d62ddbde994c

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-2025
SELECT DISTINCT - cor0.col2 DIV - 21 col1 FROM tab0 AS cor0
----
0
1
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2025
SELECT DISTINCT - cor0.col2 / - 21 col1 FROM tab0 AS cor0
----
0
1
3

query I rowsort
SELECT - col0 + 56 * + 65 * cor0.col1 AS col1 FROM tab1 AS cor0
----
36336
47240
94637

query I rowsort
SELECT - col1 + 50 * col1 AS col0 FROM tab0 AS cor0
----
4214
4459
4753

query I rowsort
SELECT + - col0 + col0 * - 15 * col1 FROM tab1 AS cor0
----
-1173
-15680
-9664

query I rowsort
SELECT ALL - 16 - col0 FROM tab1
----
-19
-80
-96

query I rowsort
SELECT ALL col2 + col2 * + tab0.col2 * col2 AS col2 FROM tab0
----
2
35970
551450

query I rowsort
SELECT ALL col1 + col2 * - col1 FROM tab1
----
-1235
-1378
-560

query I rowsort
SELECT ALL - col1 + - 67 FROM tab2
----
-126
-84
-98

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

skipif mysql # not compatible
query I rowsort label-2033
SELECT - CAST ( NULL AS INTEGER ) * cor0.col2 FROM tab0, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

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

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

query I rowsort
SELECT + + col2 + + 47 + 83 AS col2 FROM tab0 AS cor0
----
131
163
212

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

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

query I rowsort
SELECT ALL tab2.col0 + ( - col2 ) + tab2.col0 FROM tab2
----
-13
120
130

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

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab2 cor0, tab0, tab2 cor1
----
972 values hashing to e486ce227b61d9db6f8414f9d6361094

query I rowsort
SELECT 36 * 74 + tab0.col2 FROM tab0
----
2665
2697
2746

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

query I rowsort
SELECT + 89 * col1 AS col1 FROM tab0 AS cor0
----
7654
8099
8633

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

query I rowsort
SELECT - - col1 + - col2 + + col1 AS col0 FROM tab0 AS cor0
----
100
139
193

query I rowsort
SELECT ALL + - 88 + + col1 * col0 FROM tab0 AS cor0
----
1976
3307
8011

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

query I rowsort
SELECT ALL - 81 * 73 FROM tab0 AS cor0
----
-5913
-5913
-5913

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

query I rowsort
SELECT ALL + 21 FROM tab1, tab0, tab0 AS cor0
----
27 values hashing to 312c166f4dc412730c43555105b1f44b

query I rowsort
SELECT - - 7 FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to 4e72e9e33dacac757f48d0ce46094607

query I rowsort
SELECT - 28 + col0 * - ( col0 ) * - col1 FROM tab1
----
206
40932
83172

query I rowsort
SELECT DISTINCT - 40 + + col0 * col0 * col2 AS col2 FROM tab1 AS cor0
----
233432
446
614360

query I rowsort
SELECT - col1 * - col1 + 12 AS col0 FROM tab1 AS cor0
----
112
181
688

query I rowsort
SELECT DISTINCT ( - cor2.col1 ) AS col0 FROM tab1, tab1 AS cor0, tab2 AS cor1, tab1 AS cor2
----
-10
-13
-26

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

query I rowsort
SELECT DISTINCT + col2 + ( + 18 ) * col2 FROM tab0 AS cor0
----
1558
19
627

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

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

query I rowsort
SELECT - - col2 + col1 - + col0 * col1 FROM tab1 AS cor0
----
-573
-931
2

query I rowsort
SELECT + - col1 * + 42 - 15 FROM tab2 AS cor0
----
-1317
-2493
-729

query I rowsort
SELECT cor0.col1 - 17 FROM tab0 AS cor0
----
69
74
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + - 52 * col0 + col0 col0 FROM tab1 AS cor0
----
-127
-3254
-4067

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - col1 ) col0 FROM tab0
----
-86
-91
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-2065
SELECT 25 DIV col2 + + tab1.col1 * + col0 FROM tab1
----
1040
640
78

skipif mysql # not compatible
query I rowsort label-2065
SELECT 25 / col2 + + tab1.col1 * + col0 FROM tab1
----
1040
640
78

onlyif mysql # use DIV operator for integer division
query I rowsort label-2066
SELECT - col0 DIV 6 - + cor0.col1 AS col2 FROM tab0 AS cor0
----
-102
-105
-90

skipif mysql # not compatible
query I rowsort label-2066
SELECT - col0 / 6 - + cor0.col1 AS col2 FROM tab0 AS cor0
----
-102
-105
-90

query I rowsort
SELECT col2 + - 14 FROM tab1 AS cor0
----
40
43
82

query I rowsort
SELECT DISTINCT col1 * + ( 18 ) + cor0.col1 FROM tab2 AS cor0
----
1121
323
589

query I rowsort
SELECT DISTINCT + + col0 + + 39 FROM tab2 AS cor0
----
117
118
46

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-2071
SELECT + col1 DIV col0 + CAST( col0 AS SIGNED ) * - col0 FROM tab0 AS cor0
----
-1223
-573
-7920

skipif mysql # not compatible
query I rowsort label-2071
SELECT + col1 / col0 + CAST ( col0 AS INTEGER ) * - col0 FROM tab0 AS cor0
----
-1223
-573
-7920

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

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

query I rowsort
SELECT + col2 * col2 + 31 AS col1 FROM tab1 AS cor0
----
2947
3280
9247

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

query I rowsort
SELECT + col0 * + ( col0 ) + col2 FROM tab0 AS cor0
----
1226
609
8003

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

query I rowsort
SELECT 98 AS col0 FROM tab2, tab0, tab1 AS cor0
----
27 values hashing to c758e8afbdfa6aae279045b0e9cbacc2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + 53 col0 FROM tab0
----
-36
18
29

query I rowsort
SELECT - col2 * - col0 + tab2.col0 * + col0 * + 49 FROM tab2
----
2590
300144
308811

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-2082
SELECT ALL col1 DIV 24 FROM tab0
----
3
3
4

skipif mysql # not compatible
query I rowsort label-2082
SELECT ALL col1 / 24 FROM tab0
----
3
3
4

query I rowsort
SELECT - col2 + col1 * - 33 FROM tab0
----
-2871
-3085
-3202

query I rowsort
SELECT - 30 FROM tab1, tab0 cor0
----
9 values hashing to 56fa25f9fb8040460fe3c894000ea8fb

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2085
SELECT DISTINCT + CAST( ( + col2 ) AS SIGNED ) FROM tab0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-2085
SELECT DISTINCT + CAST ( ( + col2 ) AS INTEGER ) FROM tab0
----
1
33
82

onlyif mysql # use DIV operator for integer division
query I rowsort label-2086
SELECT ( - tab1.col1 ) DIV - col1 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2086
SELECT ( - tab1.col1 ) / - col1 FROM tab1
----
1
1
1

query I rowsort
SELECT - - 47 AS col2 FROM tab0 AS cor0
----
47
47
47

query I rowsort
SELECT DISTINCT 37 + col1 FROM tab0 AS cor0
----
123
128
134

query I rowsort
SELECT - + col1 * - ( cor0.col1 ) FROM tab1 AS cor0
----
100
169
676

query I rowsort
SELECT ALL 4 FROM tab0 cor0
----
4
4
4

query I rowsort
SELECT DISTINCT 56 * + 61 FROM tab1 AS cor0
----
3416

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

skipif mysql # not compatible
query I rowsort label-2092
SELECT + CAST ( - 57 AS INTEGER ) FROM tab0 AS cor0
----
-57
-57
-57

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

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

query I rowsort
SELECT ALL col0 * 30 FROM tab2
----
210
2340
2370

query I rowsort
SELECT 21 * tab2.col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 2354fbaf46e1fc99dfe1a3f3636dca29

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

skipif mysql # not compatible
query I rowsort label-2097
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * 6 AS col1 FROM tab2
----
NULL

query I rowsort
SELECT 89 FROM tab1, tab1 AS cor0
----
9 values hashing to 5c8428e9f1e7de3d09cb0814b4cc1743

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

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

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

query I rowsort
SELECT + + col2 + col0 * - 35 FROM tab0 AS cor0
----
-1224
-3033
-807

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

skipif mysql # not compatible
query I rowsort label-2103
SELECT - ( cor0.col0 ) + col2 / col2 + col1 FROM tab0 AS cor0
----
3
63
63

query I rowsort
SELECT - ( col2 ) * 96 FROM tab0 AS cor0
----
-3168
-7872
-96

query I rowsort
SELECT DISTINCT - 32 AS col1 FROM tab1 AS cor0
----
-32

query I rowsort
SELECT ALL - ( + col2 ) * + 76 + - col0 AS col2 FROM tab0 AS cor0
----
-111
-2532
-6321

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

skipif mysql # not compatible
query I rowsort label-2107
SELECT ALL 50 / col1 AS col0 FROM tab0 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 51 * col0 col2 FROM tab0 AS cor0
----
1224
1785
4539

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

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

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

query I rowsort
SELECT + col2 * ( col2 ) + col0 FROM tab1 AS cor0
----
2919
3313
9296

query I rowsort
SELECT - col0 + 51 AS col1 FROM tab1 AS cor0
----
-13
-29
48

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

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

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

query I rowsort
SELECT - col2 * + 59 + + 71 FROM tab2 AS cor0
----
-1463
-1522
-2171

query I rowsort
SELECT col2 + - 33 FROM tab1 AS cor0
----
21
24
63

query I rowsort
SELECT + 16 + + col2 FROM tab1 AS cor0
----
112
70
73

onlyif mysql # use DIV operator for integer division
query I rowsort label-2118
SELECT + col1 * col2 + cor0.col2 DIV col0 AS col0 FROM tab2 AS cor0
----
1534
646
840

skipif mysql # not compatible
query I rowsort label-2118
SELECT + col1 * col2 + cor0.col2 / col0 AS col0 FROM tab2 AS cor0
----
1534
646
840

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

query I rowsort
SELECT - 33 * col0 + + col1 FROM tab2
----
-200
-2515
-2590

query I rowsort
SELECT + + ( col2 ) * col0 * - col1 FROM tab2 AS cor0
----
-119652
-51034
-5859

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 22 * col1 + + col0 col1 FROM tab2 AS cor0
----
1376
453
689

query I rowsort
SELECT + ( + col1 ) * - cor0.col1 AS col1 FROM tab1 AS cor0
----
-100
-169
-676

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-2125
SELECT - - cor0.col2 DIV + col2 + col2 AS col2 FROM tab0 cor0
----
2
34
83

skipif mysql # not compatible
query I rowsort label-2125
SELECT - - cor0.col2 / + col2 + col2 AS col2 FROM tab0 cor0
----
2
34
83

query I rowsort
SELECT ALL + + 96 * col0 + + col1 FROM tab0 AS cor0
----
2390
3457
8635

query I rowsort
SELECT + - cor0.col0 * - col1 * + col2 + col2 AS col2 FROM tab1 AS cor0
----
36537
4266
99936

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

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

query I rowsort
SELECT + col1 * col2 + + col2 + - col0 * + col1 AS col1 FROM tab1 cor0
----
-13
1380
304

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

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

query I rowsort
SELECT DISTINCT + cor0.col2 + 64 AS col2 FROM tab2, tab2 cor0
----
102
90
91

query I rowsort
SELECT DISTINCT - 8 * - 24 AS col0 FROM tab2 AS cor0
----
192

query I rowsort
SELECT ALL - ( + col1 ) * - col2 + + col0 FROM tab1 AS cor0
----
1328
1407
634

query I rowsort
SELECT 99 + col0 FROM tab0 cor0
----
123
134
188

query I rowsort
SELECT ALL + 15 + - col1 + col0 * + cor0.col2 AS col1 FROM tab1 AS cor0
----
151
3653
7682

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2138
SELECT col1 + cor0.col2 / + col0 col0 FROM tab2 AS cor0
----
17
34
59

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-2141
SELECT ALL - - col2 DIV - col2 + - col1 AS col0 FROM tab0 AS cor0
----
-87
-92
-98

skipif mysql # not compatible
query I rowsort label-2141
SELECT ALL - - col2 / - col2 + - col1 AS col0 FROM tab0 AS cor0
----
-87
-92
-98

onlyif mysql # use DIV operator for integer division
query I rowsort label-2142
SELECT 62 DIV + tab0.col2 AS col2 FROM tab0
----
0
1
62

skipif mysql # not compatible
query I rowsort label-2142
SELECT 62 / + tab0.col2 AS col2 FROM tab0
----
0
1
62

query I rowsort
SELECT - 52 * col0 FROM tab1
----
-156
-3328
-4160

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-2145
SELECT - col0 DIV - col2 col1 FROM tab0
----
0
1
35

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-2146
SELECT DISTINCT 85 DIV 75 - - col0 AS col2 FROM tab0
----
25
36
90

skipif mysql # not compatible
query I rowsort label-2146
SELECT DISTINCT 85 / 75 - - col0 AS col2 FROM tab0
----
25
36
90

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-2148
SELECT tab1.col0 * - col2 DIV + col2 FROM tab1
----
-3
-64
-80

skipif mysql # not compatible
query I rowsort label-2148
SELECT tab1.col0 * - col2 / + col2 FROM tab1
----
-3
-64
-80

query I rowsort
SELECT ALL - col1 * tab1.col1 - + col1 FROM tab1
----
-110
-182
-702

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2150
SELECT DISTINCT CAST( + 3 AS SIGNED ) - + col1 FROM tab2
----
-14
-28
-56

skipif mysql # not compatible
query I rowsort label-2150
SELECT DISTINCT CAST ( + 3 AS INTEGER ) - + col1 FROM tab2
----
-14
-28
-56

query I rowsort
SELECT - 18 * + col1 AS col2 FROM tab0
----
-1548
-1638
-1746

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

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

query I rowsort
SELECT DISTINCT tab2.col2 * - col1 * col1 + col1 * col1 * tab2.col1 + + col1 AS col2 FROM tab2
----
-6052
114932
3875

query I rowsort
SELECT tab0.col1 * + col2 * + col1 AS col0 FROM tab0
----
244068
679042
9409

onlyif mysql # use DIV operator for integer division
query I rowsort label-2156
SELECT col0 * col0 + col0 DIV + col0 AS col0 FROM tab1
----
10
4097
6401

skipif mysql # not compatible
query I rowsort label-2156
SELECT col0 * col0 + col0 / + col0 AS col0 FROM tab1
----
10
4097
6401

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

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

query I rowsort
SELECT DISTINCT - tab2.col2 + + col0 + + col2 AS col2 FROM tab2
----
7
78
79

query I rowsort
SELECT ALL - tab0.col2 * col2 + - tab0.col1 * + col2 + - tab0.col0 * - col0 AS col2 FROM tab0
----
-3351
-6265
1127

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

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

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

query I rowsort
SELECT DISTINCT col2 FROM tab1 WHERE NOT - col1 + - col2 = - col2 * col1
----
54
57
96

query I rowsort
SELECT ALL + col0 * + col1 * - col2 AS col1 FROM tab2
----
-119652
-51034
-5859

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

skipif mysql # not compatible
query I rowsort label-2165
SELECT col1 * col1 / - cor0.col1 AS col2 FROM tab2 AS cor0
----
-17
-31
-59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 / col0 col0 FROM tab1 AS cor0 WHERE NOT ( - col1 * col1 + + col1 ) NOT IN ( col2 * col2 * - col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * cor0.col1 col2 FROM tab2 AS cor0
----
289
3481
961

query I rowsort
SELECT + col1 * + col1 AS col0 FROM tab0
----
7396
8281
9409

query I rowsort
SELECT DISTINCT - col0 + col2 * col2 AS col0 FROM tab1
----
2913
3185
9136

query I rowsort
SELECT col1 + - col2 * tab1.col2 FROM tab1
----
-2890
-3239
-9203

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

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

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

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

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

query I rowsort
SELECT DISTINCT + col2 * + col0 * tab1.col2 AS col1 FROM tab1
----
207936
737280
8748

query I rowsort
SELECT cor0.col1 FROM tab1 cor0 CROSS JOIN tab1
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775

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

query I rowsort
SELECT ALL + col1 * + col0 + col1 + - cor0.col2 FROM tab2 AS cor0
----
1322
221
4635

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

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

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

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

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

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

query I rowsort
SELECT ALL cor0.col1 * 97 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 2b09d307c7546cb3d4041d6634f6d651

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

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

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

query I rowsort
SELECT cor0.col2 * 52 - col2 FROM tab1 AS cor0
----
2754
2907
4896

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

skipif mysql # not compatible
query I rowsort label-2189
SELECT + ( col2 ) / col2 + + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col2 * + cor0.col0 + + cor0.col0 FROM tab2 AS cor0
----
196
2106
3081

query I rowsort
SELECT col2 + ( - col2 ) * + col2 AS col2 FROM tab1
----
-2862
-3192
-9120

query I rowsort
SELECT - + 22 * col2 + col0 - + col2 AS col2 FROM tab0 cor0
----
-1797
-735
12

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2194
SELECT - ( - ( - cor0.col2 ) * + CAST( 28 AS SIGNED ) ) AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 04d1b095c4d70a07da0afafdac5e9099

skipif mysql # not compatible
query I rowsort label-2194
SELECT - ( - ( - cor0.col2 ) * + CAST ( 28 AS INTEGER ) ) AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 04d1b095c4d70a07da0afafdac5e9099

onlyif mysql # use DIV operator for integer division
query I rowsort label-2195
SELECT ALL col1 DIV ( 83 ) + - col1 FROM tab0
----
-85
-90
-96

skipif mysql # not compatible
query I rowsort label-2195
SELECT ALL col1 / ( 83 ) + - col1 FROM tab0
----
-85
-90
-96

query I rowsort
SELECT DISTINCT - 58 * cor0.col2 - ( col0 * - col0 ) AS col1 FROM tab1 cor0
----
-3123
790
832

onlyif mysql # use DIV operator for integer division
query I rowsort label-2197
SELECT ALL - 80 DIV col1 FROM tab1 AS cor0
----
-3
-6
-8

skipif mysql # not compatible
query I rowsort label-2197
SELECT ALL - 80 / col1 FROM tab1 AS cor0
----
-3
-6
-8

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

query I rowsort
SELECT + col1 * - col2 * 25 + cor0.col1 FROM tab1 AS cor0
----
-14240
-31187
-35074

query I rowsort
SELECT ALL - 71 + - col0 * col0 AS col0 FROM tab0 AS cor0
----
-1296
-647
-7992

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

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

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

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

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

query I rowsort
SELECT ALL + col1 * col2 + + ( - col1 ) FROM tab0 AS cor0
----
0
2752
7371

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2207
SELECT DISTINCT - CAST( col0 AS SIGNED ) + - col1 * + 76 AS col1 FROM tab1
----
-1068
-1979
-824

skipif mysql # not compatible
query I rowsort label-2207
SELECT DISTINCT - CAST ( col0 AS INTEGER ) + - col1 * + 76 AS col1 FROM tab1
----
-1068
-1979
-824

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

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

query I rowsort
SELECT - 60 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 067a4b5daf8747042e3b07ca8459859f

query I rowsort
SELECT ALL + col0 * - col2 * col0 AS col1 FROM tab0 cor0
----
-1225
-19008
-649522

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 54 + + col2 * - cor0.col0 col1 FROM tab2 AS cor0
----
-2082
-243
-3056

query I rowsort
SELECT ALL + col2 * + col2 - ( + col0 ) AS col2 FROM tab2 AS cor0
----
1365
598
722

query I rowsort
SELECT ALL + 45 * col2 + + col0 FROM tab1 AS cor0
----
2433
2629
4400

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

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

query I rowsort
SELECT ALL + tab1.col2 FROM tab1, tab2 cor0
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17

query I rowsort
SELECT DISTINCT 29 + 64 FROM tab0, tab0 AS cor0
----
93

query I rowsort
SELECT DISTINCT 55 AS col2 FROM tab2, tab0 cor0
----
55

query I rowsort
SELECT DISTINCT + col1 * - 34 AS col1 FROM tab2
----
-1054
-2006
-578

query I rowsort
SELECT col2 * 50 + - 6 AS col0 FROM tab1
----
2694
2844
4794

query I rowsort
SELECT - 47 + - cor1.col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 662c178d119d98bbf628b7a83938bb65

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

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

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

query I rowsort
SELECT col1 * col2 * - col2 AS col2 FROM tab1 AS cor0
----
-119808
-32490
-75816

query I rowsort
SELECT + col0 + - 41 * cor0.col0 FROM tab1 AS cor0
----
-120
-2560
-3200

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab1.col0 col1 FROM tab2, tab1 cor0 CROSS JOIN tab1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab2.col0 col0 FROM tab1, tab1 AS cor0 CROSS JOIN tab2
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83

query I rowsort
SELECT ALL + - col1 + + col1 AS col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + + col2 + - 18 - + col2 * + col0 AS col1 FROM tab1 cor0
----
-126
-3609
-7602

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

query I rowsort
SELECT + + col1 * col1 + 76 AS col0 FROM tab1 AS cor0
----
176
245
752

onlyif mysql # use DIV operator for integer division
query I rowsort label-2232
SELECT + + 20 + col0 DIV - col1 col1 FROM tab2 AS cor0
----
16
19
20

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2232
SELECT + + 20 + col0 / - col1 col1 FROM tab2 AS cor0
----
16
19
20

onlyif mysql # use DIV operator for integer division
query I rowsort label-2233
SELECT tab0.col2 DIV - tab0.col2 FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2233
SELECT tab0.col2 / - tab0.col2 FROM tab0
----
-1
-1
-1

query I rowsort
SELECT 30 + ( - col2 ) FROM tab0
----
-3
-52
29

query I rowsort
SELECT + + col1 * - col0 + 66 * col1 FROM tab0 AS cor0
----
-2093
3007
3612

query I rowsort
SELECT ALL + + 31 * + cor0.col0 * - 50 - 48 * + col2 * - col0 AS col0 FROM tab0 AS cor0
----
-52570
212354
816

query I rowsort
SELECT DISTINCT + + cor0.col0 - cor0.col0 * 54 FROM tab1 AS cor0
----
-159
-3392
-4240

query I rowsort
SELECT + cor0.col1 + + col2 * - col2 AS col1 FROM tab0 AS cor0
----
-1003
-6633
96

query I rowsort
SELECT - col0 + + col2 * + col0 FROM tab1
----
159
3584
7600

query I rowsort
SELECT ALL ( - col2 ) * 33 + col0 FROM tab1
----
-1779
-1817
-3088

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

query I rowsort
SELECT DISTINCT - col1 + col0 * col1 FROM tab2
----
1326
186
4543

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

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

query I rowsort
SELECT + col0 + col0 + + col2 * col1 FROM tab2 AS cor0
----
1690
804
851

query I rowsort
SELECT ALL 47 * - col0 FROM tab1 AS cor0
----
-141
-3008
-3760

query I rowsort
SELECT col0 + - cor0.col2 * + 35 AS col1 FROM tab1 cor0
----
-1887
-1931
-3280

query I rowsort
SELECT ALL - + col0 * col2 * 75 AS col1 FROM tab0 AS cor0
----
-2625
-547350
-59400

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

query I rowsort
SELECT DISTINCT - col2 - - ( 72 * col1 ) FROM tab2 cor0
----
1186
2205
4222

query I rowsort
SELECT - + 83 + + 10 FROM tab0 AS cor0
----
-73
-73
-73

query I rowsort
SELECT DISTINCT - - ( 28 ) + col0 * - 67 FROM tab1 AS cor0
----
-173
-4260
-5332

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor1.col2 * 93 col0 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
3069
7626
93

query I rowsort
SELECT - cor1.col2 AS col0 FROM tab2, tab1 AS cor0, tab2 cor1
----
27 values hashing to f9d4bb8677db7b98c7ed89d06e6e8cd6

query I rowsort
SELECT ALL + - 40 * + cor0.col0 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to fffb87eee33dd74a0f54228d6860212e

query I rowsort
SELECT ALL + 80 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 878f012d707aab113cedaf56e6c52e94

query I rowsort
SELECT DISTINCT 97 * + col1 + col2 + 81 FROM tab0 AS cor0
----
8456
8990
9491

query I rowsort
SELECT DISTINCT - ( + cor0.col0 ) FROM tab0 AS cor0
----
-24
-35
-89

query I rowsort
SELECT DISTINCT - + col2 * col2 + - col2 FROM tab0 AS cor0
----
-1122
-2
-6806

query I rowsort
SELECT ALL + col2 * - col0 + col1 * + col1 FROM tab0 cor0
----
6604
9374
983

query I rowsort
SELECT DISTINCT tab1.col1 * ( col1 ) AS col0 FROM tab1
----
100
169
676

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

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

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-2265
SELECT ALL + col1 + - col2 - - col1 DIV - col2 FROM tab1 AS cor0
----
-28
-47
-83

skipif mysql # not compatible
query I rowsort label-2265
SELECT ALL + col1 + - col2 - - col1 / - col2 FROM tab1 AS cor0
----
-28
-47
-83

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

query I rowsort
SELECT DISTINCT + 17 + col0 FROM tab0 AS cor0
----
106
41
52

query I rowsort
SELECT + - ( + 74 ) AS col1 FROM tab1 AS cor0
----
-74
-74
-74

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * 75 col2 FROM tab1 AS cor0
----
1950
750
975

query I rowsort
SELECT ALL + col0 * col0 + - col0 FROM tab2 AS cor0
----
42
6006
6162

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-2273
SELECT 61 * col2 DIV 88 FROM tab0 AS cor0
----
0
22
56

skipif mysql # not compatible
query I rowsort label-2273
SELECT 61 * col2 / 88 FROM tab0 AS cor0
----
0
22
56

query I rowsort
SELECT + + col0 * + cor0.col0 AS col2 FROM tab2 cor0
----
49
6084
6241

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

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

query I rowsort
SELECT ALL - col1 + col2 * ( - 42 * + col2 ) FROM tab2 AS cor0
----
-28451
-30649
-60665

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

query I rowsort
SELECT - cor1.col0 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 09d8a912de1b8ab762e5ffbe028ce99e

query I rowsort
SELECT + 79 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 40a2261caa2c5cdbfd80965d7df1231f

query I rowsort
SELECT DISTINCT - cor0.col2 + + 82 + + col0 FROM tab1 cor0
----
31
66
89

query I rowsort
SELECT ALL + col0 + ( - 89 ) FROM tab0 AS cor0
----
-54
-65
0

query I rowsort
SELECT ALL col1 * - 60 - - cor0.col0 FROM tab2 AS cor0
----
-1853
-3462
-941

query I rowsort
SELECT ALL + + col2 * - col0 * cor0.col1 + + col2 - - 18 FROM tab2 AS cor0
----
-119608
-50978
-5814

query I rowsort
SELECT col0 * - 57 + - ( col0 ) FROM tab2 AS cor0
----
-406
-4524
-4582

query I rowsort
SELECT - col2 + cor0.col0 * col1 FROM tab1 AS cor0
----
24
583
944

query I rowsort
SELECT 45 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 60b9f935ee8e404d155a2f5e9515c050

query I rowsort
SELECT + col2 + - 59 AS col2 FROM tab1 AS cor0
----
-2
-5
37

onlyif mysql # use DIV operator for integer division
query I rowsort label-2288
SELECT ALL col0 DIV 99 + - 73 FROM tab1 AS cor0
----
-73
-73
-73

skipif mysql # not compatible
query I rowsort label-2288
SELECT ALL col0 / 99 + - 73 FROM tab1 AS cor0
----
-73
-73
-73

query I rowsort
SELECT DISTINCT + cor0.col2 * col2 - + col0 AS col1 FROM tab1 AS cor0
----
2913
3185
9136

query I rowsort
SELECT DISTINCT 92 - - col0 FROM tab0
----
116
127
181

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab2.col0 + + 45 col0 FROM tab2
----
123
124
52

query I rowsort
SELECT DISTINCT col2 + + 28 AS col1 FROM tab0
----
110
29
61

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-2294
SELECT DISTINCT - tab2.col2 DIV col0 + - col2 FROM tab2
----
-26
-30
-38

skipif mysql # not compatible
query I rowsort label-2294
SELECT DISTINCT - tab2.col2 / col0 + - col2 FROM tab2
----
-26
-30
-38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * ( + 2 ) col1 FROM tab2
----
118
34
62

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

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

query I rowsort
SELECT col2 * 39 AS col1 FROM tab2
----
1014
1053
1482

query I rowsort
SELECT ALL + col1 * + ( 60 ) AS col1 FROM tab2 AS cor0
----
1020
1860
3540

query I rowsort
SELECT tab1.col0 + 42 FROM tab1
----
106
122
45

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

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

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

query I rowsort
SELECT ALL - 50 * col2 FROM tab0 cor0
----
-1650
-4100
-50

query I rowsort
SELECT DISTINCT 67 * + cor0.col2 + 80 AS col1 FROM tab1 AS cor0
----
3698
3899
6512

query I rowsort
SELECT + 31 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to d1ebd1cea4a9773069af34fbf8ea3540

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

query I rowsort
SELECT + + col0 + - 65 * ( col1 ) * + 19 AS col2 FROM tab0 AS cor0
----
-106186
-112296
-119760

query I rowsort
SELECT cor0.col2 * 9 AS col1 FROM tab1 AS cor0
----
486
513
864

query I rowsort
SELECT DISTINCT 91 + 70 AS col1 FROM tab0, tab2 cor0
----
161

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

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

query I rowsort
SELECT ALL col0 * + col0 + + col1 FROM tab2 AS cor0
----
6143
6258
80

query I rowsort
SELECT DISTINCT + col2 * 64 FROM tab0 cor0
----
2112
5248
64

query I rowsort
SELECT + ( + 84 ) FROM tab0
----
84
84
84

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

query I rowsort
SELECT + col2 + 30 FROM tab0 AS cor0
----
112
31
63

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

query I rowsort
SELECT + + ( 15 ) * col1 + ( + 42 ) AS col0 FROM tab0 AS cor0
----
1332
1407
1497

query I rowsort
SELECT + 17 * + col0 FROM tab0 AS cor0
----
1513
408
595

query I rowsort
SELECT + col2 * + col1 + col0 * col1 * col2 FROM tab0 AS cor0
----
3492
671580
70950

query I rowsort
SELECT DISTINCT - cor0.col2 + col0 * ( 56 ) AS col0 FROM tab1 AS cor0
----
114
3527
4384

query I rowsort
SELECT ALL - 0 * col0 + col0 FROM tab2 cor0
----
7
78
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 94 + - cor0.col2 * col0 col2 FROM tab0 AS cor0
----
-129
-7392
-886

query I rowsort
SELECT ( 1 ) AS col1 FROM tab0
----
1
1
1

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

query I rowsort
SELECT ALL - cor1.col1 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to c7890469eabb2c6fc81454b35d2333b6

query I rowsort
SELECT tab2.col2 * 87 AS col1 FROM tab2
----
2262
2349
3306

query I rowsort
SELECT ALL tab0.col0 + - col2 + col0 FROM tab0
----
15
69
96

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

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

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

query I rowsort
SELECT ALL + 78 + col0 * col2 AS col1 FROM tab2
----
2106
267
3080

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-2332
SELECT - 77 * col1 DIV cor0.col1 + + col1 FROM tab1 AS cor0
----
-51
-64
-67

skipif mysql # not compatible
query I rowsort label-2332
SELECT - 77 * col1 / cor0.col1 + + col1 FROM tab1 AS cor0
----
-51
-64
-67

query I rowsort
SELECT - col2 * col2 + col1 * col0 FROM tab1 cor0
----
-2609
-2838
-8176

query I rowsort
SELECT + col1 + 63 AS col0 FROM tab2 AS cor0
----
122
80
94

query I rowsort
SELECT - col0 * cor0.col2 * col2 AS col1 FROM tab2 cor0
----
-114076
-5103
-52728

query I rowsort
SELECT DISTINCT - col0 * + col1 + col1 * col2 AS col1 FROM tab0 AS cor0
----
-3298
-637
774

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

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

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2340
SELECT col0 + CAST( col1 AS SIGNED ) * col2 AS col2 FROM tab2 AS cor0
----
1612
725
844

skipif mysql # not compatible
query I rowsort label-2340
SELECT col0 + CAST ( col1 AS INTEGER ) * col2 AS col2 FROM tab2 AS cor0
----
1612
725
844

query I rowsort
SELECT ALL cor0.col2 * + 13 + - col1 AS col0 FROM tab0 AS cor0
----
-84
343
975

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 13 col1 FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to a90d0f37cec603ae1bc0a60dc7fbaeed

query I rowsort
SELECT DISTINCT cor0.col2 * col2 - + col1 FROM tab2 AS cor0
----
1427
617
698

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

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

query I rowsort
SELECT - + cor0.col0 * cor0.col2 + + col0 FROM tab1 AS cor0
----
-159
-3584
-7600

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

query I rowsort
SELECT DISTINCT + col1 * 2 FROM tab1
----
20
26
52

query I rowsort
SELECT col2 * 91 * col1 + + col1 AS col0 FROM tab1
----
113581
127790
51880

query I rowsort
SELECT - cor0.col1 * - col2 * col1 + - col0 AS col0 FROM tab2 AS cor0
----
10903
25940
90428

query I rowsort
SELECT - 34 * col0 FROM tab1 cor0
----
-102
-2176
-2720

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

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

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

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

query I rowsort
SELECT DISTINCT - col0 * col0 + col2 * col1 - ( + 60 ) AS col1 FROM tab1 cor0
----
-3586
-5212
1335

query I rowsort
SELECT DISTINCT + col0 * 37 * - col0 + col1 FROM tab1 AS cor0
----
-151542
-236787
-307

query I rowsort
SELECT ALL col2 * 47 - + col0 * col2 AS col1 FROM tab1 AS cor0
----
-3168
-969
2376

query I rowsort
SELECT DISTINCT - col2 * + col2 + col1 AS col2 FROM tab0 AS cor0
----
-1003
-6633
96

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

query I rowsort
SELECT ALL - col2 * ( col1 * + col1 ) + col2 AS col0 FROM tab0 AS cor0
----
-244035
-678960
-9408

query I rowsort
SELECT - col2 * - col0 - col1 * + col0 AS col1 FROM tab2
----
-2574
-28
1659

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

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

query I rowsort
SELECT ALL 28 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2, tab1 AS cor1, tab1 AS cor2
----
81 values hashing to 423726553d33e100432ebde49ddd31b5

query I rowsort
SELECT 43 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 199105619049271147956de52e7f5ed4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col1 + cor0.col0 + col2 col2 FROM tab0 AS cor0
----
133
143
262

query I rowsort
SELECT + 44 AS col2 FROM tab0
----
44
44
44

query I rowsort
SELECT 24 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to b0d834ef9e4346801b6aaa0e74b2c8ef

query I rowsort
SELECT - col1 + 16 FROM tab1 AS cor0
----
-10
3
6

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

query I rowsort
SELECT - 35 AS col1 FROM tab2 cor0
----
-35
-35
-35

query I rowsort
SELECT col2 * + col0 + + col2 * - 70 AS col2 FROM tab1 AS cor0
----
-342
-3618
960

onlyif mysql # use DIV operator for integer division
query I rowsort label-2376
SELECT - col0 + + col1 DIV - col0 FROM tab1
----
-11
-64
-80

skipif mysql # not compatible
query I rowsort label-2376
SELECT - col0 + + col1 / - col0 FROM tab1
----
-11
-64
-80

query I rowsort
SELECT + 1 + col2 FROM tab1 cor0
----
55
58
97

query I rowsort
SELECT - - 26 * + col0 AS col0 FROM tab0 AS cor0
----
2314
624
910

query I rowsort
SELECT DISTINCT - - 73 * - cor0.col2 AS col0 FROM tab2 AS cor0
----
-1898
-1971
-2774

query I rowsort
SELECT ALL ( + 19 ) AS col0 FROM tab2, tab1 cor0, tab2 AS cor1
----
27 values hashing to 86c53e8567a17c8d91fc5aff119e0498

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2381
SELECT ALL - col0 * - col0 * CAST( + 91 AS SIGNED ) + + tab2.col2 * - col2 FROM tab2
----
3730
552968
566487

skipif mysql # not compatible
query I rowsort label-2381
SELECT ALL - col0 * - col0 * CAST ( + 91 AS INTEGER ) + + tab2.col2 * - col2 FROM tab2
----
3730
552968
566487

onlyif mysql # use DIV operator for integer division
query I rowsort label-2382
SELECT DISTINCT + - 15 DIV col0 FROM tab1 AS cor0
----
-5
0

skipif mysql # not compatible
query I rowsort label-2382
SELECT DISTINCT + - 15 / col0 FROM tab1 AS cor0
----
-5
0

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-2384
SELECT DISTINCT + - 25 - + col2 DIV col2 FROM tab0 AS cor0
----
-26

skipif mysql # not compatible
query I rowsort label-2384
SELECT DISTINCT + - 25 - + col2 / col2 FROM tab0 AS cor0
----
-26

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

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

query I rowsort
SELECT ALL + + cor0.col2 + col1 * - col2 * + col0 AS col1 FROM tab2 AS cor0
----
-119626
-50996
-5832

query I rowsort
SELECT DISTINCT + col0 * cor0.col1 * - 19 FROM tab2 AS cor0
----
-25517
-4123
-87438

query I rowsort
SELECT - 94 AS col2 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 7eeab220fc6bbc2fb3fa4aef8600159f

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

skipif mysql # not compatible
query I rowsort label-2390
SELECT col2 + col2 / - col1 FROM tab2 AS cor0
----
26
27
36

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

skipif mysql # not compatible
query I rowsort label-2391
SELECT ALL + col1 / 62 AS col1 FROM tab0 AS cor0
----
1
1
1

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

skipif mysql # not compatible
query I rowsort label-2392
SELECT + col2 / ( + col0 + col1 ) FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT + - col2 * + ( col0 ) * + col0 FROM tab0 AS cor0
----
-1225
-19008
-649522

query I rowsort
SELECT ALL + - col0 * 79 AS col1 FROM tab2 AS cor0
----
-553
-6162
-6241

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * col0 + + tab2.col0 col2 FROM tab2
----
196
2106
3081

query I rowsort
SELECT DISTINCT - 13 + 87 AS col2 FROM tab2 AS cor0
----
74

query I rowsort
SELECT - - ( col0 ) AS col2 FROM tab2 cor0
----
7
78
79

query I rowsort
SELECT DISTINCT + col0 + + ( + col2 + col1 ) FROM tab2 AS cor0
----
134
163
65

onlyif mysql # use DIV operator for integer division
query I rowsort label-2399
SELECT - col0 DIV + col1 + - cor0.col1 * col0 * col0 AS col2 FROM tab1 AS cor0
----
-234
-40966
-83206

skipif mysql # not compatible
query I rowsort label-2399
SELECT - col0 / + col1 + - cor0.col1 * col0 * col0 AS col2 FROM tab1 AS cor0
----
-234
-40966
-83206

query I rowsort
SELECT DISTINCT ( col2 ) * - col1 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT + - col1 * col2 * col1 + - 85 AS col2 FROM tab0 AS cor0
----
-244153
-679127
-9494

query I rowsort
SELECT + + cor0.col1 * + col1 * 81 AS col0 FROM tab1 AS cor0
----
13689
54756
8100

query I rowsort
SELECT DISTINCT - 9 * col1 FROM tab2 AS cor0
----
-153
-279
-531

query I rowsort
SELECT ALL 96 FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to f1d978c2d5bfc6f26e0907ac777be83e

query I rowsort
SELECT col2 + - 65 FROM tab0
----
-32
-64
17

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2406
SELECT + CAST( + 16 AS SIGNED ) AS col0 FROM tab2
----
16
16
16

skipif mysql # not compatible
query I rowsort label-2406
SELECT + CAST ( + 16 AS INTEGER ) AS col0 FROM tab2
----
16
16
16

query I rowsort
SELECT DISTINCT + ( + col0 ) * ( - 64 ) FROM tab2 AS cor0
----
-448
-4992
-5056

onlyif mysql # use DIV operator for integer division
query I rowsort label-2408
SELECT - col0 + - col2 DIV col0 FROM tab2 AS cor0
----
-10
-78
-79

skipif mysql # not compatible
query I rowsort label-2408
SELECT - col0 + - col2 / col0 FROM tab2 AS cor0
----
-10
-78
-79

onlyif mysql # use DIV operator for integer division
query I rowsort label-2409
SELECT ALL + col0 * - 91 + + col2 DIV 21 FROM tab1
----
-271
-5822
-7276

skipif mysql # not compatible
query I rowsort label-2409
SELECT ALL + col0 * - 91 + + col2 / 21 FROM tab1
----
-271
-5822
-7276

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 79 + + col2 col0 FROM tab1 AS cor0
----
-22
-25
17

query I rowsort
SELECT ( ( col1 ) ) + - col0 * col2 FROM tab0 AS cor0
----
-706
-7207
62

query I rowsort
SELECT + col0 * col1 + cor0.col2 AS col0 FROM tab0 AS cor0
----
2097
3396
8181

query I rowsort
SELECT 14 + 55 FROM tab2 AS cor0
----
69
69
69

query I rowsort
SELECT DISTINCT tab2.col0 * 55 + - 50 + - col2 FROM tab2
----
308
4214
4257

query I rowsort
SELECT - cor1.col0 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 4ec304b8ce935f2226e7548d72c2b2f0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 94 col0 FROM tab2
----
-94
-94
-94

query I rowsort
SELECT ALL + ( 31 ) * col0 FROM tab1 AS cor0
----
1984
2480
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + + col2 * col1 * 65 + col0 col2 FROM tab2
----
41990
54405
99710

query I rowsort
SELECT ALL 55 + col2 FROM tab0
----
137
56
88

query I rowsort
SELECT ALL ( 40 ) AS col0 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to e4d10f7d6c34a281f524e45e82ebd2a0

query I rowsort
SELECT ALL + 56 * + col1 + col1 AS col2 FROM tab2
----
1767
3363
969

query I rowsort
SELECT - 42 + col0 AS col0 FROM tab0
----
-18
-7
47

query I rowsort
SELECT DISTINCT + + 3 + col2 FROM tab0 cor0
----
36
4
85

query I rowsort
SELECT ALL - - col0 * - cor0.col1 AS col1 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT ALL + col0 * - col2 + + cor0.col2 AS col1 FROM tab2 AS cor0
----
-162
-2002
-2964

query I rowsort
SELECT DISTINCT - - 13 * col1 FROM tab0 AS cor0
----
1118
1183
1261

query I rowsort
SELECT - 90 * + tab2.col0 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to 92499346bf17ce9ddec7523b44c6ffc5

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2428
SELECT col2 + CAST( col1 + - col0 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-24
51
7

skipif mysql # not compatible
query I rowsort label-2428
SELECT col2 + CAST ( col1 + - col0 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-24
51
7

query I rowsort
SELECT ALL col1 * - 24 FROM tab0 cor0
----
-2064
-2184
-2328

query I rowsort
SELECT DISTINCT - - 60 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
60

query I rowsort
SELECT DISTINCT + col1 + - ( + col2 ) * col2 FROM tab1 AS cor0
----
-2890
-3239
-9203

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 + ( - 33 ) col0 FROM tab0 cor0
----
53
58
64

query I rowsort
SELECT col0 * ( + col2 ) AS col1 FROM tab1 cor0
----
162
3648
7680

query I rowsort
SELECT + col0 + + col2 + + col2 AS col1 FROM tab1 AS cor0
----
111
178
272

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2435
SELECT + col2 * - 40 + col0 + - cor0.col2 * - CAST( 76 AS SIGNED ) * + cor0.col0 FROM tab0 AS cor0
----
2655
551457
58896

skipif mysql # not compatible
query I rowsort label-2435
SELECT + col2 * - 40 + col0 + - cor0.col2 * - CAST ( 76 AS INTEGER ) * + cor0.col0 FROM tab0 AS cor0
----
2655
551457
58896

query I rowsort
SELECT + col1 + col1 * 68 FROM tab0 AS cor0
----
5934
6279
6693

query I rowsort
SELECT col1 * ( ( col0 ) ) - col1 FROM tab0 AS cor0
----
1978
3298
8008

query I rowsort
SELECT DISTINCT col1 * + ( + 78 ) FROM tab0
----
6708
7098
7566

query I rowsort
SELECT col2 + - 45 FROM tab2 AS cor0
----
-18
-19
-7

query I rowsort
SELECT + - cor0.col1 + + 85 FROM tab0 AS cor0
----
-1
-12
-6

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2441
SELECT ALL CAST( + col1 AS SIGNED ) + - col2 FROM tab2 AS cor0
----
-21
33
4

skipif mysql # not compatible
query I rowsort label-2441
SELECT ALL CAST ( + col1 AS INTEGER ) + - col2 FROM tab2 AS cor0
----
-21
33
4

query I rowsort
SELECT + 0 * col2 + - col2 FROM tab0 AS cor0
----
-1
-33
-82

query I rowsort
SELECT + 66 + - 39 * - col1 * col1 + + col0 AS col2 FROM tab2 AS cor0
----
11416
135903
37552

onlyif mysql # use DIV operator for integer division
query I rowsort label-2444
SELECT - tab2.col1 DIV - ( - col0 * col1 ) AS col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2444
SELECT - tab2.col1 / - ( - col0 * col1 ) AS col1 FROM tab2
----
0
0
0

query I rowsort
SELECT - cor0.col2 + ( - col0 ) FROM tab2 AS cor0
----
-104
-117
-34

query I rowsort
SELECT ALL 67 * + col1 + + col1 + + col0 AS col0 FROM tab0 cor0
----
5872
6277
6631

query I rowsort
SELECT ALL + - ( + col2 ) + - cor0.col1 + - 61 * cor0.col2 FROM tab2 AS cor0
----
-1671
-1705
-2373

query I rowsort
SELECT 94 AS col0 FROM tab2 cor0
----
94
94
94

query I rowsort
SELECT DISTINCT 21 FROM tab2, tab1, tab2 AS cor0
----
21

query I rowsort
SELECT DISTINCT + 69 FROM tab2, tab0 AS cor0
----
69

query I rowsort
SELECT ALL + + col2 * cor0.col2 + col2 * col2 AS col0 FROM tab1 AS cor0
----
18432
5832
6498

query I rowsort
SELECT + 54 AS col2 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 81150d59d6c3fc48b4ef5a4a5495bc7a

query I rowsort
SELECT + + cor0.col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c61d27a0022e6d022371dc58819ab272

query I rowsort
SELECT ( + 78 ) AS col1 FROM tab0
----
78
78
78

query I rowsort
SELECT DISTINCT - 94 * tab2.col1 AS col0 FROM tab2
----
-1598
-2914
-5546

query I rowsort
SELECT ALL ( - 60 ) AS col1 FROM tab0 cor0
----
-60
-60
-60

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 69 + 61 * col1 * - col0 + cor0.col1 * col2 col1 FROM tab2 AS cor0
----
-12469
-279257
-81346

query I rowsort
SELECT DISTINCT - 45 * col1 FROM tab1
----
-1170
-450
-585

query I rowsort
SELECT DISTINCT 8 * - col0 FROM tab1
----
-24
-512
-640

query I rowsort
SELECT ALL - 4 + + col0 AS col0 FROM tab0 AS cor0
----
20
31
85

query I rowsort
SELECT ALL - col2 + cor0.col0 AS col0 FROM tab2 AS cor0
----
-20
41
52

onlyif mysql # use DIV operator for integer division
query I rowsort label-2462
SELECT + cor0.col0 DIV col1 + + col1 AS col1 FROM tab1 AS cor0
----
16
19
26

skipif mysql # not compatible
query I rowsort label-2462
SELECT + cor0.col0 / col1 + + col1 AS col1 FROM tab1 AS cor0
----
16
19
26

query I rowsort
SELECT ALL - - col1 * + cor0.col2 + col1 AS col2 FROM tab0 AS cor0
----
194
2924
7553

query I rowsort
SELECT DISTINCT + 95 AS col2 FROM tab2, tab0 AS cor0
----
95

query I rowsort
SELECT + - 46 + + 89 AS col0 FROM tab0 AS cor0
----
43
43
43

query I rowsort
SELECT DISTINCT - + 21 + + cor0.col2 FROM tab1 AS cor0
----
33
36
75

onlyif mysql # use DIV operator for integer division
query I rowsort label-2467
SELECT DISTINCT cor0.col1 DIV cor0.col1 AS col2 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-2467
SELECT DISTINCT cor0.col1 / cor0.col1 AS col2 FROM tab0 AS cor0
----
1

query I rowsort
SELECT DISTINCT - 98 + - col1 * col0 FROM tab0 AS cor0
----
-2162
-3493
-8197

query I rowsort
SELECT DISTINCT cor0.col2 * col2 + + cor0.col1 FROM tab1 AS cor0
----
2942
3259
9229

query I rowsort
SELECT 52 * + 28 + col0 * col0 FROM tab0 AS cor0
----
2032
2681
9377

onlyif mysql # use DIV operator for integer division
query I rowsort label-2471
SELECT - cor0.col2 DIV col0 FROM tab1 cor0
----
-1
-18
0

skipif mysql # not compatible
query I rowsort label-2471
SELECT - cor0.col2 / col0 FROM tab1 cor0
----
-1
-18
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 12 col2 FROM tab1 AS cor0
----
-12
-12
-12

onlyif mysql # use DIV operator for integer division
query I rowsort label-2473
SELECT ALL + cor0.col0 DIV col2 col1 FROM tab0 AS cor0
----
0
1
35

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2473
SELECT ALL + cor0.col0 / col2 col1 FROM tab0 AS cor0
----
0
1
35

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 1 col1 FROM tab1 AS cor0
----
1
1
1

query I rowsort
SELECT ALL - + 52 AS col0 FROM tab1 AS cor0
----
-52
-52
-52

query I rowsort
SELECT ( col1 ) - + col1 * - col2 FROM tab2
----
1593
663
868

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2477
SELECT ALL CAST( - col2 AS SIGNED ) + col1 FROM tab0
----
53
9
96

skipif mysql # not compatible
query I rowsort label-2477
SELECT ALL CAST ( - col2 AS INTEGER ) + col1 FROM tab0
----
53
9
96

query I rowsort
SELECT ALL - col1 * + 21 + col1 * tab0.col1 + - col0 * tab0.col2 FROM tab0
----
-928
4798
7337

query I rowsort
SELECT DISTINCT - + cor0.col2 * - col0 + + cor0.col1 AS col1 FROM tab0 AS cor0
----
132
7389
878

query I rowsort
SELECT - + col1 * col1 - 10 * + col1 FROM tab2 AS cor0
----
-1271
-4071
-459

query I rowsort
SELECT DISTINCT col1 * + col2 + col1 * col2 FROM tab2 AS cor0
----
1292
1674
3068

query I rowsort
SELECT DISTINCT + col0 * 31 + + cor0.col1 - + col0 * + col1 AS col0 FROM tab2 AS cor0
----
-2125
1123
31

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2483
SELECT col0 + + CAST( NULL AS SIGNED ) * col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2483
SELECT col0 + + CAST ( NULL AS INTEGER ) * col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + - col2 - - col1 * - col0 * - col0 FROM tab1 AS cor0
----
180
40903
83104

query I rowsort
SELECT - col1 + - 12 FROM tab1 cor0
----
-22
-25
-38

query I rowsort
SELECT DISTINCT - col0 * - 98 FROM tab0 AS cor0
----
2352
3430
8722

onlyif mysql # use DIV operator for integer division
query I rowsort label-2487
SELECT DISTINCT + + col1 + 66 DIV ( col0 ) AS col1 FROM tab0 cor0
----
88
91
98

skipif mysql # not compatible
query I rowsort label-2487
SELECT DISTINCT + + col1 + 66 / ( col0 ) AS col1 FROM tab0 cor0
----
88
91
98

onlyif mysql # use DIV operator for integer division
query I rowsort label-2488
SELECT ALL + + col1 * - ( 30 ) + + cor0.col2 DIV col1 col0 FROM tab1 AS cor0
----
-295
-383
-778

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2488
SELECT ALL + + col1 * - ( 30 ) + + cor0.col2 / col1 col0 FROM tab1 AS cor0
----
-295
-383
-778

onlyif mysql # use DIV operator for integer division
query I rowsort label-2489
SELECT DISTINCT - col1 + - col1 DIV + col0 AS col1 FROM tab0 AS cor0
----
-89
-92
-99

skipif mysql # not compatible
query I rowsort label-2489
SELECT DISTINCT - col1 + - col1 / + col0 AS col1 FROM tab0 AS cor0
----
-89
-92
-99

query I rowsort
SELECT ALL + col0 * 93 FROM tab2 AS cor0
----
651
7254
7347

query I rowsort
SELECT - ( - col1 ) + col2 AS col1 FROM tab0 cor0
----
119
173
98

query I rowsort
SELECT - ( 69 ) + col1 AS col0 FROM tab0 cor0
----
17
22
28

onlyif mysql # use DIV operator for integer division
query I rowsort label-2493
SELECT ALL col1 DIV - ( 56 ) FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2493
SELECT ALL col1 / - ( 56 ) FROM tab0
----
-1
-1
-1

query I rowsort
SELECT DISTINCT - col1 + + 7 FROM tab2
----
-10
-24
-52

query I rowsort
SELECT DISTINCT - tab1.col1 + + col0 FROM tab1
----
-23
54
67

query I rowsort
SELECT col1 * col2 * col2 AS col0 FROM tab2 AS cor0
----
22599
24548
39884

query I rowsort
SELECT + col0 * - col1 + cor0.col1 AS col2 FROM tab2 cor0
----
-1326
-186
-4543

query I rowsort
SELECT DISTINCT col1 * - col0 + col1 FROM tab0
----
-1978
-3298
-8008

query I rowsort
SELECT col2 * col1 * - col1 AS col1 FROM tab1
----
-16224
-36504
-5700

query I rowsort
SELECT ALL tab2.col0 + + col2 AS col1 FROM tab2
----
104
117
34

query I rowsort
SELECT ALL col0 + col0 * - col1 AS col0 FROM tab1
----
-576
-75
-960

query I rowsort
SELECT + col0 / + tab2.col2 AS col2 FROM tab2 WHERE NULL > NULL
----

query I rowsort
SELECT ALL - col0 FROM tab1 WHERE NULL > NULL
----

query I rowsort
SELECT DISTINCT col0 * - col2 + + cor0.col2 * + col1 AS col1 FROM tab2 cor0
----
-2356
-494
648

query I rowsort
SELECT ALL + - col0 + + col2 * col2 AS col0 FROM tab0 AS cor0
----
-34
1065
6635

query I rowsort
SELECT DISTINCT col1 * - col2 - + col0 * col1 AS col2 FROM tab2 AS cor0
----
-1054
-1989
-6136

onlyif mysql # use DIV operator for integer division
query I rowsort label-2507
SELECT DISTINCT + - cor0.col1 DIV col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2507
SELECT DISTINCT + - cor0.col1 / col2 FROM tab1 AS cor0
----
0

query I rowsort
SELECT DISTINCT 53 * + col0 AS col2 FROM tab2
----
371
4134
4187

query I rowsort
SELECT - 51 * col0 + col1 * + col2 AS col0 FROM tab1
----
-2694
-2832
1251

query I rowsort
SELECT DISTINCT + + ( cor0.col0 ) AS col0 FROM tab1 AS cor0
----
3
64
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-2511
SELECT col2 DIV - col1 AS col2 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2511
SELECT col2 / - col1 AS col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + - col0 * + col0 AS col0 FROM tab1 cor0
----
-4096
-6400
-9

query I rowsort
SELECT - col2 * cor0.col2 * - col0 AS col2 FROM tab1 AS cor0
----
207936
737280
8748

query I rowsort
SELECT DISTINCT - col2 + - col2 * col2 AS col2 FROM tab1 AS cor0
----
-2970
-3306
-9312

query I rowsort
SELECT ALL tab2.col2 * tab2.col0 + col1 FROM tab2
----
2087
220
3019

onlyif mysql # use DIV operator for integer division
query I rowsort label-2516
SELECT ALL col2 DIV + col1 + - col2 FROM tab2
----
-26
-27
-36

skipif mysql # not compatible
query I rowsort label-2516
SELECT ALL col2 / + col1 + - col2 FROM tab2
----
-26
-27
-36

query I rowsort
SELECT + col2 * - col2 * - col2 AS col1 FROM tab1 cor0
----
157464
185193
884736

query I rowsort
SELECT ALL - + cor0.col0 * col2 AS col2 FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT col2 + col2 + + cor0.col2 AS col1 FROM tab0 AS cor0
----
246
3
99

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2520
SELECT + col0 + - col2 * CAST( NULL AS SIGNED ) - ( - col2 * col1 ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2520
SELECT + col0 + - col2 * CAST ( NULL AS INTEGER ) - ( - col2 * col1 ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - cor0.col1 * + col2 + - col1 AS col2 FROM tab2 AS cor0
----
-1593
-663
-868

query I rowsort
SELECT - col0 * col0 + - 20 * + col0 AS col2 FROM tab0 AS cor0
----
-1056
-1925
-9701

query I rowsort
SELECT 66 - col1 FROM tab0 AS cor0
----
-20
-25
-31

query I rowsort
SELECT 46 * col2 + ( + col1 ) FROM tab2 AS cor0
----
1255
1273
1765

query I rowsort
SELECT + col2 * + col1 - ( col2 ) * col2 * - ( col0 ) AS col1 FROM tab1 AS cor0
----
10152
208506
738528

query I rowsort
SELECT - ( col1 ) + 40 FROM tab0 cor0
----
-46
-51
-57

query I rowsort
SELECT DISTINCT - - col2 * ( 50 ) FROM tab1 AS cor0
----
2700
2850
4800

query I rowsort
SELECT + - col0 + 35 * 7 AS col1 FROM tab0 AS cor0
----
156
210
221

query I rowsort
SELECT + col1 * col2 + col1 * col1 FROM tab0 AS cor0
----
10234
15743
9506

onlyif mysql # use DIV operator for integer division
query I rowsort label-2530
SELECT - 89 * col1 DIV + col1 FROM tab1
----
-89
-89
-89

skipif mysql # not compatible
query I rowsort label-2530
SELECT - 89 * col1 / + col1 FROM tab1
----
-89
-89
-89

query I rowsort
SELECT ALL - col1 * 74 FROM tab2
----
-1258
-2294
-4366

query I rowsort
SELECT ALL - cor0.col1 FROM tab2 AS cor0 CROSS JOIN tab1, tab0 AS cor1
----
27 values hashing to 6e0b7d583bc2c53842166d3e6ba2d6d2

query I rowsort
SELECT ALL 34 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 1146d159f0b9b4378a8b738b963f7039

query I rowsort
SELECT ALL + 27 * col0 + col0 FROM tab0
----
2492
672
980

query I rowsort
SELECT ALL + col0 + + col0 + + col2 AS col1 FROM tab2 AS cor0
----
182
196
41

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2536
SELECT DISTINCT + CAST( NULL AS SIGNED ) * col0 - + cor0.col2 AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2536
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * col0 - + cor0.col2 AS col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT + + 59 AS col2 FROM tab0 cor0
----
59
59
59

query I rowsort
SELECT ALL ( + cor0.col2 ) FROM tab2, tab0, tab0 AS cor0
----
27 values hashing to 7786718bd8042022537378d40ec87475

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 79 col2 FROM tab0
----
79
79
79

query I rowsort
SELECT DISTINCT - 36 * 49 AS col2 FROM tab2, tab0, tab0 AS cor0
----
-1764

query I rowsort
SELECT + 76 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 7b2b08dd3f1adef028d3f40ef7c716da

onlyif mysql # use DIV operator for integer division
query I rowsort label-2542
SELECT ALL - 96 DIV + col0 AS col0 FROM tab2
----
-1
-1
-13

skipif mysql # not compatible
query I rowsort label-2542
SELECT ALL - 96 / + col0 AS col0 FROM tab2
----
-1
-1
-13

query I rowsort
SELECT col2 + col0 + 64 * col1 AS col1 FROM tab0
----
5561
5995
6244

query I rowsort
SELECT DISTINCT + 17 - - col2 AS col2 FROM tab1
----
113
71
74

query I rowsort
SELECT DISTINCT + col1 - - tab1.col2 AS col2 FROM tab1
----
109
67
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * + tab2.col2 - 97 col1 FROM tab2
----
1437
549
740

query I rowsort
SELECT + col1 * + col1 + + 96 + - col2 AS col1 FROM tab1
----
139
169
718

query I rowsort
SELECT + col2 * 69 FROM tab2
----
1794
1863
2622

onlyif mysql # use DIV operator for integer division
query I rowsort label-2549
SELECT CAST( + 8 AS SIGNED ) DIV cor0.col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2549
SELECT CAST ( + 8 AS INTEGER ) / cor0.col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + col2 * - col2 * col1 FROM tab1 AS cor0
----
-119808
-32490
-75816

query I rowsort
SELECT - 23 AS col1 FROM tab0, tab1 cor0, tab0 AS cor1
----
27 values hashing to 9bd721f99d79dce21b1de2860fd51ed5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( cor0.col2 ) col2 FROM tab1 AS cor0
----
-54
-57
-96

query I rowsort
SELECT - + 77 * col2 FROM tab0 AS cor0
----
-2541
-6314
-77

query I rowsort
SELECT - + ( 46 ) * - col0 FROM tab2 AS cor0
----
322
3588
3634

query I rowsort
SELECT + col1 + 61 * + col0 FROM tab1 AS cor0
----
209
3914
4893

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 50 col1 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 314aace40e704c20a6be06204a329f80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2557
SELECT ALL - col1 + + CAST( NULL AS DECIMAL ) + ( - col1 ) AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2557
SELECT ALL - col1 + + CAST ( NULL AS REAL ) + ( - col1 ) AS col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-2558
SELECT col0 + col1 DIV 97 + - tab2.col2 FROM tab2
----
-20
41
52

skipif mysql # not compatible
query I rowsort label-2558
SELECT col0 + col1 / 97 + - tab2.col2 FROM tab2
----
-20
41
52

onlyif mysql # use DIV operator for integer division
query I rowsort label-2559
SELECT + col1 * - col2 + col1 DIV col2 AS col1 FROM tab0
----
-2836
-7461
0

skipif mysql # not compatible
query I rowsort label-2559
SELECT + col1 * - col2 + col1 / col2 AS col1 FROM tab0
----
-2836
-7461
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + tab1.col1 + + 4 col2 FROM tab1
----
14
17
30

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2561
SELECT col2 + + CAST( NULL AS DECIMAL ) * col2 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2561
SELECT col2 + + CAST ( NULL AS REAL ) * col2 AS col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 73 FROM tab1, tab1 AS cor0
----
73

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2563
SELECT ALL col2 + CAST( 70 AS SIGNED ) + tab1.col0 FROM tab1
----
127
191
246

skipif mysql # not compatible
query I rowsort label-2563
SELECT ALL col2 + CAST ( 70 AS INTEGER ) + tab1.col0 FROM tab1
----
127
191
246

query I rowsort
SELECT 83 * tab1.col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 7cfac30b9a8f0efdf067d08fb36c850d

query I rowsort
SELECT ALL col1 + 82 * - 1 FROM tab0
----
15
4
9

onlyif mysql # use DIV operator for integer division
query I rowsort label-2566
SELECT + cor0.col2 DIV ( col1 ) AS col2 FROM tab2 AS cor0
----
0
0
2

skipif mysql # not compatible
query I rowsort label-2566
SELECT + cor0.col2 / ( col1 ) AS col2 FROM tab2 AS cor0
----
0
0
2

onlyif mysql # use DIV operator for integer division
query I rowsort label-2567
SELECT ALL - ( col2 ) DIV + col0 AS col0 FROM tab1 AS cor0
----
-1
-18
0

skipif mysql # not compatible
query I rowsort label-2567
SELECT ALL - ( col2 ) / + col0 AS col0 FROM tab1 AS cor0
----
-1
-18
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-2568
SELECT cor0.col2 DIV + col1 + + col2 FROM tab1 AS cor0
----
103
56
62

skipif mysql # not compatible
query I rowsort label-2568
SELECT cor0.col2 / + col1 + + col2 FROM tab1 AS cor0
----
103
56
62

onlyif mysql # use DIV operator for integer division
query I rowsort label-2569
SELECT col2 + - 7 DIV + col0 FROM tab0 AS cor0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-2569
SELECT col2 + - 7 / + col0 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT DISTINCT - col2 * col0 * - col0 AS col0 FROM tab1 AS cor0
----
233472
486
614400

query I rowsort
SELECT ALL + col0 * - 9 AS col2 FROM tab1 AS cor0
----
-27
-576
-720

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 40 * - col2 - + col1 col2 FROM tab1 cor0
----
2134
2270
3827

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col2 * - cor0.col1 + + col2 col2 FROM tab1 AS cor0
----
1344
1458
627

query I rowsort
SELECT - cor0.col0 * 54 * col0 FROM tab0 AS cor0
----
-31104
-427734
-66150

query I rowsort
SELECT - 68 + + col0 FROM tab1 cor0
----
-4
-65
12

onlyif mysql # use DIV operator for integer division
query I rowsort label-2576
SELECT DISTINCT + col1 * 25 - col1 DIV col0 AS col2 FROM tab2 AS cor0
----
1475
425
771

skipif mysql # not compatible
query I rowsort label-2576
SELECT DISTINCT + col1 * 25 - col1 / col0 AS col2 FROM tab2 AS cor0
----
1475
425
771

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + + col2 * col1 col1 FROM tab0 AS cor0
----
2871
7544
98

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2578
SELECT + 1 * col0 + col2 * - col0 + ( + col2 + CAST( NULL AS SIGNED ) ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2578
SELECT + 1 * col0 + col2 * - col0 + ( + col2 + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT ( 13 ) * col1 + cor0.col1 + 7 FROM tab1 AS cor0
----
147
189
371

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2580
SELECT col2 / CAST( NULL AS SIGNED ) - col0 / col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2580
SELECT col2 / CAST ( NULL AS INTEGER ) - col0 / col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col1 * + 51 FROM tab2 cor0
----
1581
3009
867

query I rowsort
SELECT ALL - + 41 * col0 AS col1 FROM tab2 AS cor0
----
-287
-3198
-3239

query I rowsort
SELECT ALL - ( + ( + col0 ) ) FROM tab1 AS cor0
----
-3
-64
-80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2584
SELECT CAST( NULL AS SIGNED ) / + 59 col0 FROM tab1 cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2584
SELECT CAST ( NULL AS INTEGER ) / + 59 col0 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col1 * + ( - col1 ) AS col1 FROM tab0 AS cor0
----
-7396
-8281
-9409

query I rowsort
SELECT ALL - - 72 * - col1 * cor0.col1 FROM tab0 AS cor0
----
-532512
-596232
-677448

query I rowsort
SELECT DISTINCT + ( - col1 ) + 6 AS col1 FROM tab1 AS cor0
----
-20
-4
-7

query I rowsort
SELECT DISTINCT + ( - col1 ) + + 62 * - col1 AS col0 FROM tab1 AS cor0
----
-1638
-630
-819

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * col1 * - col0 col2 FROM tab2 cor0
----
22831
271518
6727

query I rowsort
SELECT DISTINCT + col1 + - col0 + 75 FROM tab2 AS cor0
----
13
56
99

query I rowsort
SELECT ALL + col0 - + col0 * 96 AS col0 FROM tab0 AS cor0
----
-2280
-3325
-8455

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 75 * col0 + + ( 43 ) + + cor0.col1 col0 FROM tab0 AS cor0
----
-1671
-2485
-6541

query I rowsort
SELECT ALL ( col0 ) + + ( ( col2 ) ) FROM tab2 cor0
----
104
117
34

query I rowsort
SELECT DISTINCT - col0 + - col2 * - 19 FROM tab1 AS cor0
----
1019
1023
1744

onlyif mysql # use DIV operator for integer division
query I rowsort label-2595
SELECT + - col0 DIV 28 + 92 + - col0 AS col1 FROM tab1 AS cor0
----
10
26
89

skipif mysql # not compatible
query I rowsort label-2595
SELECT + - col0 / 28 + 92 + - col0 AS col1 FROM tab1 AS cor0
----
10
26
89

query I rowsort
SELECT DISTINCT + col0 + - ( col0 ) * + col2 FROM tab0 AS cor0
----
-7209
-768
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-2597
SELECT ALL - col2 + ( + col2 ) DIV + col1 AS col2 FROM tab2 AS cor0
----
-26
-27
-36

skipif mysql # not compatible
query I rowsort label-2597
SELECT ALL - col2 + ( + col2 ) / + col1 AS col2 FROM tab2 AS cor0
----
-26
-27
-36

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2598
SELECT + col0 + + CAST( - 81 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-46
-57
8

skipif mysql # not compatible
query I rowsort label-2598
SELECT + col0 + + CAST ( - 81 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-46
-57
8

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2599
SELECT col2 * - CAST( - ( col0 ) AS SIGNED ) + CAST( + col0 AS SIGNED ) - col2 FROM tab0 AS cor0
----
69
7305
783

skipif mysql # not compatible
query I rowsort label-2599
SELECT col2 * - CAST ( - ( col0 ) AS INTEGER ) + CAST ( + col0 AS INTEGER ) - col2 FROM tab0 AS cor0
----
69
7305
783

query I rowsort
SELECT + ( 67 ) AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to b56f8a4f1fcebc9802481256df61e97c

query I rowsort
SELECT ALL + cor0.col0 * + ( + 97 ) AS col0 FROM tab0 cor0
----
2328
3395
8633

query I rowsort
SELECT + 87 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 8661ffbd1a72897c495405c53b816e50

onlyif mysql # use DIV operator for integer division
query I rowsort label-2603
SELECT DISTINCT - col2 + col0 DIV - col1 FROM tab2 AS cor0
----
-27
-42

skipif mysql # not compatible
query I rowsort label-2603
SELECT DISTINCT - col2 + col0 / - col1 FROM tab2 AS cor0
----
-27
-42

query I rowsort
SELECT DISTINCT + + col1 + - 30 * col0 + col2 FROM tab1 AS cor0
----
-10
-1853
-2291

query I rowsort
SELECT ALL + col2 * col0 + col2 FROM tab0 AS cor0
----
36
7380
825

query I rowsort
SELECT DISTINCT - col2 + col1 * ( + col0 ) + + col1 AS col1 FROM tab2 AS cor0
----
1322
221
4635

onlyif mysql # use DIV operator for integer division
query I rowsort label-2607
SELECT ALL + + col0 * 31 + - col1 + + cor0.col2 DIV cor0.col0 FROM tab2 AS cor0
----
189
2359
2432

skipif mysql # not compatible
query I rowsort label-2607
SELECT ALL + + col0 * 31 + - col1 + + cor0.col2 / cor0.col0 FROM tab2 AS cor0
----
189
2359
2432

query I rowsort
SELECT ALL + cor0.col1 * - ( col2 * + col2 + col1 ) AS col2 FROM tab0 cor0
----
-101050
-620165
-9506

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + - 9 col2 FROM tab1 AS cor0
----
-12
-73
-89

query I rowsort
SELECT DISTINCT 97 AS col2 FROM tab1, tab1 cor0, tab2 AS cor1
----
97

query I rowsort
SELECT ALL - 27 * + col1 FROM tab2
----
-1593
-459
-837

query I rowsort
SELECT 7 AS col2 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to 4e72e9e33dacac757f48d0ce46094607

query I rowsort
SELECT + col2 - + col0 * 74 FROM tab1
----
-168
-4679
-5824

query I rowsort
SELECT DISTINCT + col2 + 26 AS col0 FROM tab0
----
108
27
59

query I rowsort
SELECT col1 - - ( ( - cor0.col1 ) + - col2 * + 35 ) FROM tab2 AS cor0
----
-1330
-910
-945

query I rowsort
SELECT ALL + col2 + 84 * + col1 * col1 FROM tab1 AS cor0
----
14292
56838
8457

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2617
SELECT tab0.col0 / + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2617
SELECT tab0.col0 / + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col2 * + ( - col0 ) + - 98 AS col0 FROM tab0
----
-133
-7396
-890

query I rowsort
SELECT col0 - 62 * + col1 * ( col1 + + col1 ) FROM tab0
----
-1026755
-1166681
-917080

onlyif mysql # use DIV operator for integer division
query I rowsort label-2620
SELECT - 39 + + cor0.col0 DIV 57 AS col2 FROM tab1 AS cor0
----
-38
-38
-39

skipif mysql # not compatible
query I rowsort label-2620
SELECT - 39 + + cor0.col0 / 57 AS col2 FROM tab1 AS cor0
----
-38
-38
-39

query I rowsort
SELECT 45 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 14cec871edc37b5056cda01c8331fdca

onlyif mysql # use DIV operator for integer division
query I rowsort label-2622
SELECT 3 + col2 DIV - 36 FROM tab1
----
1
2
2

skipif mysql # not compatible
query I rowsort label-2622
SELECT 3 + col2 / - 36 FROM tab1
----
1
2
2

query I rowsort
SELECT cor0.col2 AS col1 FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79

query I rowsort
SELECT - col0 + - tab2.col0 * + ( 40 * tab2.col1 ) FROM tab2
----
-184158
-53799
-8687

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + - col2 * + ( + col1 ) col0 FROM tab2
----
-1508
-608
-810

query I rowsort
SELECT ALL + col2 + + col1 * 3 FROM tab1 AS cor0
----
132
135
87

query I rowsort
SELECT DISTINCT 46 * cor0.col2 + ( + col2 ) AS col0 FROM tab1 cor0
----
2538
2679
4512

query I rowsort
SELECT ALL + + col0 * - col0 - 53 AS col1 FROM tab2 cor0
----
-102
-6137
-6294

query I rowsort
SELECT col2 + tab2.col1 * - col2 AS col2 FROM tab2
----
-1508
-608
-810

query I rowsort
SELECT DISTINCT col1 + - col2 * - tab1.col1 * + col1 AS col0 FROM tab1
----
16237
36530
5710

query I rowsort
SELECT col2 + col2 * - col1 * col2 FROM tab1
----
-119712
-32433
-75762

query I rowsort
SELECT ALL tab0.col0 FROM tab0 WHERE NOT - col0 <= NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL NOT IN ( col1 )
----

query I rowsort
SELECT col2 + col1 - - col0 * + col0 AS col2 FROM tab1
----
4163
6509
89

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL NOT IN ( + col0 * col1 )
----

query I rowsort
SELECT col1 + + tab2.col0 * - col2 - - tab2.col0 FROM tab2
----
-151
-1891
-2906

query I rowsort
SELECT col1 + tab0.col2 + - col0 * col1 AS col1 FROM tab0 WHERE - col0 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT + - cor0.col1 * + col2 + + col0 * - col2 * col2 + - 13 * + 44 FROM tab0 AS cor0
----
-29546
-606470
-704

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + col0 - - ( - ( + col2 ) ) col1 FROM tab0 AS cor0
----
1224
543
7839

query I rowsort
SELECT tab1.col2 + + col2 AS col0 FROM tab1
----
108
114
192

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL NOT IN ( - col2 + - col0 * col2 )
----

query I rowsort
SELECT + col0 * col2 * col2 + + col2 * - col1 FROM tab0 AS cor0
----
-62
23298
590974

query I rowsort
SELECT ALL - col0 + cor0.col2 * + col2 * col1 + col1 * cor0.col2 AS col1 FROM tab2 AS cor0
----
23429
25115
41340

query I rowsort
SELECT DISTINCT col2 + col2 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT + col1 * col1 * - col2 + - col1 AS col0 FROM tab2 AS cor0
----
-10999
-25978
-90565

query I rowsort
SELECT - col1 + - col1 * col0 FROM tab2 AS cor0
----
-1360
-248
-4661

query III rowsort
SELECT ALL * FROM tab1 WHERE ( - col0 * col1 ) NOT BETWEEN + col1 AND - col0
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d

query I rowsort
SELECT DISTINCT col2 + tab2.col1 * col1 AS col0 FROM tab2
----
327
3507
988

query I rowsort
SELECT col0 + col1 AS col0 FROM tab2 WHERE NULL < NULL
----

query I rowsort
SELECT tab2.col1 + + tab2.col0 AS col1 FROM tab2
----
137
38
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + - tab0.col0 col2 FROM tab0
----
2
62
62

onlyif mysql # use DIV operator for integer division
query I rowsort label-2652
SELECT + col2 DIV + col0 + col1 + tab1.col1 FROM tab1
----
20
27
70

skipif mysql # not compatible
query I rowsort label-2652
SELECT + col2 / + col0 + col1 + tab1.col1 FROM tab1
----
20
27
70

query I rowsort
SELECT col1 + col0 * - col2 AS col0 FROM tab1
----
-136
-3638
-7667

query I rowsort
SELECT DISTINCT col0 + tab0.col2 * col1 AS col1 FROM tab0
----
132
2862
7551

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - col0 NOT IN ( - col1 * col1 )
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2656
SELECT DISTINCT - col0 + + ( col0 + CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2656
SELECT DISTINCT - col0 + + ( col0 + CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL - ( - col1 ) - + cor0.col2 * - col0 FROM tab1 AS cor0
----
188
3658
7693

onlyif mysql # use DIV operator for integer division
query I rowsort label-2658
SELECT - col0 * 14 DIV col0 + col1 AS col2 FROM tab0 AS cor0
----
72
77
83

skipif mysql # not compatible
query I rowsort label-2658
SELECT - col0 * 14 / col0 + col1 AS col2 FROM tab0 AS cor0
----
72
77
83

onlyif mysql # use DIV operator for integer division
query I rowsort label-2659
SELECT - col2 + + 34 DIV col0 FROM tab2 AS cor0
----
-23
-26
-38

skipif mysql # not compatible
query I rowsort label-2659
SELECT - col2 + + 34 / col0 FROM tab2 AS cor0
----
-23
-26
-38

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2660
SELECT - + CAST( + 61 AS SIGNED ) col0 FROM tab2 AS cor0
----
-61
-61
-61

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2660
SELECT - + CAST ( + 61 AS INTEGER ) col0 FROM tab2 AS cor0
----
-61
-61
-61

query I rowsort
SELECT col2 - col2 * col2 * - tab2.col2 AS col0 FROM tab2
----
17602
19710
54910

query I rowsort
SELECT col2 * - 88 + col1 * + 44 FROM tab1
----
-3608
-4576
-7876

query I rowsort
SELECT + ( - cor0.col1 ) + col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT + cor0.col2 AS col0 FROM tab1, tab2 cor0
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3

query I rowsort
SELECT - ( col2 * - col0 ) AS col2 FROM tab1
----
162
3648
7680

query I rowsort
SELECT ALL - 29 * + col2 FROM tab2
----
-1102
-754
-783

query I rowsort
SELECT + col1 * + 27 FROM tab0 cor0
----
2322
2457
2619

query I rowsort
SELECT DISTINCT col1 + + col0 - + col2 AS col1 FROM tab1 AS cor0
----
-25
-3
17

query I rowsort
SELECT + + cor0.col2 + - 72 FROM tab0 AS cor0
----
-39
-71
10

query I rowsort
SELECT 5 FROM tab2, tab1, tab2 cor0
----
27 values hashing to 6797d40099023779b89feb627d94a3e7

query I rowsort
SELECT + + cor0.col1 + - col1 * 49 AS col1 FROM tab0 AS cor0
----
-4128
-4368
-4656

query I rowsort
SELECT DISTINCT ( + col2 ) * col0 * - 4 AS col1 FROM tab1
----
-14592
-30720
-648

onlyif mysql # use DIV operator for integer division
query I rowsort label-2673
SELECT + 10 DIV col1 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-2673
SELECT + 10 / col1 FROM tab1
----
0
0
1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2674
SELECT col2 * CAST( NULL AS SIGNED ) + col0 * - col1 AS col0 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2674
SELECT col2 * CAST ( NULL AS INTEGER ) + col0 * - col1 AS col0 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col2 * 51 + col2 + col1 * + ( + col2 ) FROM tab1 cor0
----
3534
4212
6240

query I rowsort
SELECT col1 + + col2 + + 55 * col1 AS col2 FROM tab2 AS cor0
----
1763
3330
990

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + ( 5 ) + - col1 + - 92 col1 FROM tab1 cor0
----
-103
218
295

onlyif mysql # use DIV operator for integer division
query I rowsort label-2678
SELECT col0 + - 51 DIV - 59 AS col2 FROM tab0 AS cor0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-2678
SELECT col0 + - 51 / - 59 AS col2 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT col0 + + col2 * - col1 AS col0 FROM tab2 AS cor0
----
-1456
-567
-830

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 68 * col2 col1 FROM tab1 AS cor0
----
3672
3876
6528

query I rowsort
SELECT ALL - - cor0.col0 * + col2 + 7 FROM tab2 cor0
----
196
2035
3009

onlyif mysql # use DIV operator for integer division
query I rowsort label-2682
SELECT ALL + + col1 * col2 + - col0 DIV col0 FROM tab2 AS cor0
----
1533
645
836

skipif mysql # not compatible
query I rowsort label-2682
SELECT ALL + + col1 * col2 + - col0 / col0 FROM tab2 AS cor0
----
1533
645
836

query I rowsort
SELECT ALL + col1 + - tab2.col1 AS col1 FROM tab2
----
0
0
0

query I rowsort
SELECT ALL col2 * - col1 + 19 AS col0 FROM tab2
----
-1515
-627
-818

query I rowsort
SELECT - col2 + + col1 + - ( ( tab0.col1 ) ) FROM tab0
----
-1
-33
-82

query I rowsort
SELECT ALL col1 * - col1 - + 77 FROM tab1 AS cor0
----
-177
-246
-753

query I rowsort
SELECT - tab2.col2 * - col2 + - 53 FROM tab2
----
1391
623
676

query I rowsort
SELECT ALL - 24 + ( + col2 ) * - cor0.col0 FROM tab2 AS cor0
----
-2052
-213
-3026

query I rowsort
SELECT - col2 + - ( 55 ) FROM tab2
----
-81
-82
-93

query I rowsort
SELECT + + 69 * col2 AS col1 FROM tab0 cor0
----
2277
5658
69

onlyif mysql # use DIV operator for integer division
query I rowsort label-2691
SELECT DISTINCT col0 + col1 DIV col0 - - col0 AS col2 FROM tab0 AS cor0
----
179
51
72

skipif mysql # not compatible
query I rowsort label-2691
SELECT DISTINCT col0 + col1 / col0 - - col0 AS col2 FROM tab0 AS cor0
----
179
51
72

query I rowsort
SELECT ALL - + col2 * - ( - col0 ) * col2 + + col0 AS col1 FROM tab0 AS cor0
----
-26112
-598347
0

query I rowsort
SELECT ALL + 94 * - col1 * col2 FROM tab2 cor0
----
-144196
-60724
-78678

query I rowsort
SELECT DISTINCT - col1 * col2 + col2 * ( - 54 + cor0.col0 ) FROM tab2 AS cor0
----
-2106
-910
304

query I rowsort
SELECT ALL - - cor1.col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870

query I rowsort
SELECT ALL - 35 * - col1 AS col1 FROM tab0 AS cor0
----
3010
3185
3395

query I rowsort
SELECT + col0 + ( col2 ) * - 52 AS col1 FROM tab2 AS cor0
----
-1274
-1397
-1897

query I rowsort
SELECT ALL + - 53 * cor0.col2 FROM tab0 AS cor0
----
-1749
-4346
-53

query I rowsort
SELECT ALL + - col0 - - ( col1 ) AS col1 FROM tab2 cor0
----
-19
-62
24

query I rowsort
SELECT + col2 * col1 * + col1 AS col1 FROM tab2 AS cor0
----
10982
25947
90506

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * 64 + + col1 col2 FROM tab0 AS cor0
----
161
2198
5339

query I rowsort
SELECT DISTINCT col0 * col1 - col1 AS col0 FROM tab0 AS cor0
----
1978
3298
8008

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col0 + col2 col0 FROM tab2 AS cor0
----
-41
-52
20

onlyif mysql # use DIV operator for integer division
query I rowsort label-2704
SELECT ALL + + 77 DIV col0 FROM tab2 AS cor0
----
0
0
11

skipif mysql # not compatible
query I rowsort label-2704
SELECT ALL + + 77 / col0 FROM tab2 AS cor0
----
0
0
11

query I rowsort
SELECT ALL + cor0.col2 * + col1 + col1 * - col1 AS col0 FROM tab2 AS cor0
----
-124
-1947
357

query I rowsort
SELECT ALL + 98 * 8 * col1 AS col1 FROM tab2
----
13328
24304
46256

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * + 52 col0 FROM tab0
----
4472
4732
5044

query I rowsort
SELECT ALL + - cor0.col1 * col1 + + col1 FROM tab1 cor0
----
-156
-650
-90

query I rowsort
SELECT ALL 56 * + 69 * col2 AS col2 FROM tab0
----
127512
316848
3864

query I rowsort
SELECT + col2 + - col1 * col1 FROM tab1 AS cor0
----
-43
-622
-73

query I rowsort
SELECT 49 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to cb40783c0fff72e8802cdf0682e7cb55

query I rowsort
SELECT DISTINCT - - cor0.col1 * - 31 FROM tab2 AS cor0
----
-1829
-527
-961

query I rowsort
SELECT DISTINCT - col1 * - 32 AS col1 FROM tab1 AS cor0
----
320
416
832

query I rowsort
SELECT - 99 * - col1 AS col0 FROM tab0 AS cor0
----
8514
9009
9603

query I rowsort
SELECT - 20 AS col0 FROM tab2 AS cor0
----
-20
-20
-20

query I rowsort
SELECT - - col1 + + col0 * cor0.col1 AS col1 FROM tab0 AS cor0
----
2150
3492
8190

query I rowsort
SELECT ALL - + 30 + col1 AS col2 FROM tab1 AS cor0
----
-17
-20
-4

query I rowsort
SELECT ALL + 0 + cor0.col0 AS col2 FROM tab0 AS cor0
----
24
35
89

skipif mysql # not compatible
query I rowsort
SELECT - ( col0 ) * - col0 + - CAST ( col1 * col1 AS REAL ) AS col0 FROM tab2
----
-912
2603
5952

query I rowsort
SELECT + 1 * + cor0.col1 AS col1 FROM tab2 AS cor0
----
17
31
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * 59 col2 FROM tab1 AS cor0
----
1534
590
767

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 + - col1 * - col2 col0 FROM tab1 AS cor0
----
1168
1401
506

query I rowsort
SELECT DISTINCT - - col1 + - col1 * col1 FROM tab2 cor0
----
-272
-3422
-930

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2724
SELECT + col0 * - CAST( NULL AS DECIMAL ) + col1 AS col2 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2724
SELECT + col0 * - CAST ( NULL AS REAL ) + col1 AS col2 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col1 + 28 AS col1 FROM tab1 AS cor0
----
15
18
2

query I rowsort
SELECT + col1 - - 54 AS col2 FROM tab2 AS cor0
----
113
71
85

query I rowsort
SELECT - col0 * ( col0 ) + cor0.col1 AS col1 FROM tab1 AS cor0
----
-4086
-6387
17

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col0 + - col2 col0 FROM tab1 AS cor0
----
-16
-51
7

query I rowsort
SELECT + col1 + + ( 26 * - col1 ) AS col0 FROM tab0 cor0
----
-2150
-2275
-2425

query I rowsort
SELECT + ( col0 ) + + col1 FROM tab0 AS cor0
----
110
132
180

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2731
SELECT + CAST( NULL AS SIGNED ) * + col2 + - col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2731
SELECT + CAST ( NULL AS INTEGER ) * + col2 + - col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - + col2 * col0 + - col2 FROM tab1 AS cor0
----
-216
-3705
-7776

query I rowsort
SELECT + + 52 FROM tab0, tab2 AS cor0, tab2, tab1 AS cor1
----
81 values hashing to 7b4a664e9c62b46b517569587d5a621d

onlyif mysql # use DIV operator for integer division
query I rowsort label-2734
SELECT ALL - - col0 * ( + 35 ) DIV col1 AS col2 FROM tab2 AS cor0
----
162
46
7

skipif mysql # not compatible
query I rowsort label-2734
SELECT ALL - - col0 * ( + 35 ) / col1 AS col2 FROM tab2 AS cor0
----
162
46
7

query I rowsort
SELECT ( + 83 ) FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 002a717a3d902d97220759065fb107c3

query I rowsort
SELECT - col0 * ( col1 ) AS col0 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT col2 + 58 AS col2 FROM tab2 AS cor0
----
84
85
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-2738
SELECT DISTINCT - - col0 * 19 DIV - 1 + col0 FROM tab0 AS cor0
----
-1602
-432
-630

skipif mysql # not compatible
query I rowsort label-2738
SELECT DISTINCT - - col0 * 19 / - 1 + col0 FROM tab0 AS cor0
----
-1602
-432
-630

onlyif mysql # use DIV operator for integer division
query I rowsort label-2739
SELECT DISTINCT - cor0.col0 DIV - 30 FROM tab1, tab2 cor0
----
0
2

skipif mysql # not compatible
query I rowsort label-2739
SELECT DISTINCT - cor0.col0 / - 30 FROM tab1, tab2 cor0
----
0
2

query I rowsort
SELECT DISTINCT - cor0.col1 + tab1.col2 AS col1 FROM tab1, tab0, tab1 cor0
----
28
31
41
44
47
70
83
86

query I rowsort
SELECT + 74 + - 35 AS col1 FROM tab2, tab2 cor0, tab2 AS cor1
----
27 values hashing to ed2ebd9def3e2c38aa46cb3af60fe229

query I rowsort
SELECT DISTINCT - cor1.col0 FROM tab2 AS cor0 CROSS JOIN tab1, tab0 AS cor1
----
-24
-35
-89

query I rowsort
SELECT DISTINCT col0 * ( 27 ) AS col0 FROM tab1
----
1728
2160
81

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2744
SELECT ALL - col2 * - CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2744
SELECT ALL - col2 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * - cor0.col1 + col2 col0 FROM tab0 cor0
----
2871
7544
98

query I rowsort
SELECT + - cor0.col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 58ed467a9a332e4d7bfaa9abdbbd063f

onlyif mysql # use DIV operator for integer division
query I rowsort label-2747
SELECT 53 + + col1 DIV - col0 AS col0 FROM tab2
----
49
53
53

skipif mysql # not compatible
query I rowsort label-2747
SELECT 53 + + col1 / - col0 AS col0 FROM tab2
----
49
53
53

query I rowsort
SELECT + ( col1 ) + col1 * - col0 + - col1 * col1 * cor0.col0 FROM tab1 AS cor0
----
-14547
-2080
-7030

query I rowsort
SELECT + tab1.col0 AS col0 FROM tab1, tab0 cor0
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + + col1 col1 FROM tab2 AS cor0
----
118
34
62

onlyif mysql # use DIV operator for integer division
query I rowsort label-2751
SELECT DISTINCT + ( + col0 ) DIV col1 AS col0 FROM tab1 cor0
----
0
6

skipif mysql # not compatible
query I rowsort label-2751
SELECT DISTINCT + ( + col0 ) / col1 AS col0 FROM tab1 cor0
----
0
6

query I rowsort
SELECT - - 55 * cor0.col2 AS col0 FROM tab1 AS cor0
----
2970
3135
5280

query I rowsort
SELECT ALL + ( - 58 ) AS col2 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to a38440572743ed8a3d8af7b49a5388c9

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2754
SELECT - - 79 * col2 + CAST( cor0.col2 AS SIGNED ) AS col2 FROM tab0 cor0
----
2640
6560
80

skipif mysql # not compatible
query I rowsort label-2754
SELECT - - 79 * col2 + CAST ( cor0.col2 AS INTEGER ) AS col2 FROM tab0 cor0
----
2640
6560
80

query I rowsort
SELECT DISTINCT - - 62 + col2 FROM tab0 AS cor0
----
144
63
95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col2 + - cor0.col0 + col0 col1 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT ALL + + 74 AS col0 FROM tab0 AS cor0
----
74
74
74

query I rowsort
SELECT 18 * - cor0.col0 * col0 + + col1 AS col2 FROM tab1 AS cor0
----
-115187
-136
-73718

query I rowsort
SELECT + col1 + - ( - 94 ) AS col1 FROM tab1 AS cor0
----
104
107
120

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col2 * col1 col0 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT ALL + cor0.col1 * + col0 + col2 * col1 AS col2 FROM tab2 AS cor0
----
1054
1989
6136

query I rowsort
SELECT ALL cor1.col1 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775

query I rowsort
SELECT ALL tab1.col1 * tab1.col0 + - 33 FROM tab1
----
1007
45
607

query I rowsort
SELECT ALL + col2 * + ( + 20 ) FROM tab1 AS cor0
----
1080
1140
1920

query I rowsort
SELECT cor0.col2 FROM tab1, tab1 AS cor0, tab1 AS cor1, tab1 AS cor2
----
81 values hashing to 9d355f1f2edc347a359dad00d2d3f886

query I rowsort
SELECT + + 8 AS col2 FROM tab1 AS cor0
----
8
8
8

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + CAST ( col2 AS REAL ) FROM tab2 AS cor0
----
26
27
38

onlyif mysql # use DIV operator for integer division
query I rowsort label-2768
SELECT ALL + ( cor1.col0 ) DIV cor0.col0 AS col1 FROM tab0, tab0 AS cor0, tab2, tab1 AS cor1
----
81 values hashing to 4e542d3109de6fcd51b1f00cf1d8cf36

skipif mysql # not compatible
query I rowsort label-2768
SELECT ALL + ( cor1.col0 ) / cor0.col0 AS col1 FROM tab0, tab0 AS cor0, tab2, tab1 AS cor1
----
81 values hashing to 4e542d3109de6fcd51b1f00cf1d8cf36

query I rowsort
SELECT ALL - ( - col1 ) + col2 + - col0 AS col2 FROM tab0 AS cor0
----
63
84
95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + cor0.col1 col1 FROM tab1 AS cor0
----
20
26
52

query I rowsort
SELECT DISTINCT + - col0 + col1 + col2 * - col0 AS col0 FROM tab0 AS cor0
----
-7296
-730
27

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2772
SELECT CAST( NULL AS SIGNED ) + ( + col1 ) * col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2772
SELECT CAST ( NULL AS INTEGER ) + ( + col1 ) * col0 FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * col1 * col2 - 2 col1 FROM tab1
----
119806
32488
75814

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2774
SELECT DISTINCT CAST( col1 AS SIGNED ) - - col2 * + col1 FROM tab2
----
1593
663
868

skipif mysql # not compatible
query I rowsort label-2774
SELECT DISTINCT CAST ( col1 AS INTEGER ) - - col2 * + col1 FROM tab2
----
1593
663
868

query I rowsort
SELECT + 67 + col1 + col2 AS col0 FROM tab1
----
134
147
176

onlyif mysql # use DIV operator for integer division
query I rowsort label-2776
SELECT DISTINCT - col0 DIV - col1 + cor0.col1 FROM tab2 AS cor0
----
21
31
60

skipif mysql # not compatible
query I rowsort label-2776
SELECT DISTINCT - col0 / - col1 + cor0.col1 FROM tab2 AS cor0
----
21
31
60

onlyif mysql # use DIV operator for integer division
query I rowsort label-2777
SELECT ALL col1 - + cor0.col2 DIV col2 FROM tab0 AS cor0
----
85
90
96

skipif mysql # not compatible
query I rowsort label-2777
SELECT ALL col1 - + cor0.col2 / col2 FROM tab0 AS cor0
----
85
90
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-2778
SELECT ALL - col1 DIV - ( 63 ) + col0 * + cor0.col2 AS col2 FROM tab1 cor0
----
162
3648
7680

skipif mysql # not compatible
query I rowsort label-2778
SELECT ALL - col1 / - ( 63 ) + col0 * + cor0.col2 AS col2 FROM tab1 cor0
----
162
3648
7680

query I rowsort
SELECT DISTINCT + 52 AS col1 FROM tab1
----
52

query I rowsort
SELECT DISTINCT + cor0.col0 * col0 AS col0 FROM tab1 AS cor0
----
4096
6400
9

query I rowsort
SELECT DISTINCT - col2 * ( + col0 ) + - col2 FROM tab2 cor0
----
-2054
-216
-3040

query I rowsort
SELECT col0 + ( + 31 ) * cor0.col2 FROM tab1 AS cor0
----
1677
1831
3056

query I rowsort
SELECT col0 * col0 - col1 AS col0 FROM tab0
----
1128
490
7830

query I rowsort
SELECT - 76 * cor0.col2 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to fbaf2b0c9ba1e39ead998418883bcc85

query I rowsort
SELECT DISTINCT - tab1.col0 * - col1 * col0 AS col1 FROM tab1
----
234
40960
83200

onlyif mysql # use DIV operator for integer division
query I rowsort label-2786
SELECT DISTINCT col0 DIV + 16 FROM tab2
----
0
4

skipif mysql # not compatible
query I rowsort label-2786
SELECT DISTINCT col0 / + 16 FROM tab2
----
0
4

onlyif mysql # use DIV operator for integer division
query I rowsort label-2787
SELECT col2 * tab1.col1 + col1 DIV + tab1.col1 AS col0 FROM tab1
----
1249
1405
571

skipif mysql # not compatible
query I rowsort label-2787
SELECT col2 * tab1.col1 + col1 / + tab1.col1 AS col0 FROM tab1
----
1249
1405
571

query I rowsort
SELECT ALL - - col1 * 52 + - cor0.col2 FROM tab1 AS cor0
----
1298
463
580

onlyif mysql # use DIV operator for integer division
query I rowsort label-2789
SELECT + col2 + - 74 DIV + tab1.col1 FROM tab1
----
50
52
91

skipif mysql # not compatible
query I rowsort label-2789
SELECT + col2 + - 74 / + tab1.col1 FROM tab1
----
50
52
91

onlyif mysql # use DIV operator for integer division
query I rowsort label-2790
SELECT ALL - - col1 + - cor0.col1 + + col2 DIV + col2 AS col0 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2790
SELECT ALL - - col1 + - cor0.col1 + + col2 / + col2 AS col0 FROM tab0 AS cor0
----
1
1
1

query I rowsort
SELECT DISTINCT col1 * + col1 + + 68 * col1 AS col2 FROM tab2 AS cor0
----
1445
3069
7493

query I rowsort
SELECT ALL + col2 * + col2 - + 58 AS col1 FROM tab2 AS cor0
----
1386
618
671

query I rowsort
SELECT DISTINCT + ( + tab1.col1 ) FROM tab1
----
10
13
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 + - col2 col2 FROM tab1 cor0
----
-16
-51
7

query I rowsort
SELECT ALL + ( + tab2.col2 ) + col0 * ( col1 ) FROM tab2
----
1381
244
4628

query I rowsort
SELECT - - 96 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to f1d978c2d5bfc6f26e0907ac777be83e

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2797
SELECT ALL ( col2 * - tab2.col1 ) + CAST( - col1 + col1 AS SIGNED ) AS col1 FROM tab2
----
-1534
-646
-837

skipif mysql # not compatible
query I rowsort label-2797
SELECT ALL ( col2 * - tab2.col1 ) + CAST ( - col1 + col1 AS INTEGER ) AS col1 FROM tab2
----
-1534
-646
-837

onlyif mysql # use DIV operator for integer division
query I rowsort label-2798
SELECT ALL + col2 DIV col0 + col0 AS col1 FROM tab2
----
10
78
79

skipif mysql # not compatible
query I rowsort label-2798
SELECT ALL + col2 / col0 + col0 AS col1 FROM tab2
----
10
78
79

query I rowsort
SELECT - col2 * col0 * + col0 AS col1 FROM tab0
----
-1225
-19008
-649522

query I rowsort
SELECT DISTINCT 80 + - col1 FROM tab0
----
-11
-17
-6

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2801
SELECT - col0 + - tab0.col1 - + col1 * CAST( - 6 * col1 AS SIGNED ) col1 FROM tab0
----
44266
49506
56322

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2801
SELECT - col0 + - tab0.col1 - + col1 * CAST ( - 6 * col1 AS INTEGER ) col1 FROM tab0
----
44266
49506
56322

query I rowsort
SELECT col1 + - col0 * + col1 AS col2 FROM tab1
----
-1027
-52
-630

query I rowsort
SELECT DISTINCT + 62 - - col1 FROM tab2 AS cor0
----
121
79
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 42 col1 FROM tab2 cor0
----
-42
-42
-42

query I rowsort
SELECT ALL - + cor0.col2 * col0 AS col0 FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT col1 * col1 + + ( - 41 ) FROM tab1
----
128
59
635

query I rowsort
SELECT ALL 47 * - tab2.col2 AS col0 FROM tab2
----
-1222
-1269
-1786

query I rowsort
SELECT col2 * + col2 * 92 AS col2 FROM tab1
----
268272
298908
847872

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 - 75 col1 FROM tab2 AS cor0
----
-68
3
4

query I rowsort
SELECT - col1 * + col0 + + col2 AS col1 FROM tab0 AS cor0
----
-2031
-3394
-8017

query I rowsort
SELECT ALL col2 * ( + ( - col2 ) ) FROM tab2 cor0
----
-1444
-676
-729

query I rowsort
SELECT DISTINCT + - cor0.col2 * - col2 + col2 FROM tab2 AS cor0
----
1482
702
756

query I rowsort
SELECT + cor0.col1 + - col2 * + col2 FROM tab2 AS cor0
----
-1427
-617
-698

onlyif mysql # use DIV operator for integer division
query I rowsort label-2814
SELECT ALL + col0 DIV col2 - - col2 FROM tab0 AS cor0
----
33
36
83

skipif mysql # not compatible
query I rowsort label-2814
SELECT ALL + col0 / col2 - - col2 FROM tab0 AS cor0
----
33
36
83

onlyif mysql # use DIV operator for integer division
query I rowsort label-2815
SELECT DISTINCT col1 DIV + col0 AS col0 FROM tab1 AS cor0
----
0
8

skipif mysql # not compatible
query I rowsort label-2815
SELECT DISTINCT col1 / + col0 AS col0 FROM tab1 AS cor0
----
0
8

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1 cor0 CROSS JOIN tab2, tab1 AS cor1, tab0 cor2
----
972 values hashing to 9b91cf9fcc064ee1c13074a678b72ac7

query I rowsort
SELECT - col2 * + ( + ( + col1 ) ) AS col2 FROM tab2 cor0
----
-1534
-646
-837

query I rowsort
SELECT col1 * - col1 * 42 FROM tab0 AS cor0
----
-310632
-347802
-395178

query I rowsort
SELECT DISTINCT + + col2 + ( - 75 ) AS col1 FROM tab2 AS cor0
----
-37
-48
-49

query I rowsort
SELECT ALL + - col2 * + 89 - col2 AS col2 FROM tab2 AS cor0
----
-2340
-2430
-3420

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * + ( col1 ) col0 FROM tab1 AS cor0
----
-100
-169
-676

query I rowsort
SELECT col2 * - 45 AS col2 FROM tab0 AS cor0
----
-1485
-3690
-45

query I rowsort
SELECT DISTINCT 20 + 57 FROM tab2
----
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 18 - + col1 * + col2 col2 FROM tab1 AS cor0
----
-1230
-1386
-552

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2825
SELECT - ( col0 ) * + cor0.col2 + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2825
SELECT - ( col0 ) * + cor0.col2 + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2826
SELECT DISTINCT + + CAST( - col2 AS SIGNED ) * + col1 FROM tab1 AS cor0
----
-1248
-1404
-570

skipif mysql # not compatible
query I rowsort label-2826
SELECT DISTINCT + + CAST ( - col2 AS INTEGER ) * + col1 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT 49 * 63 - + cor0.col0 FROM tab1 AS cor0
----
3007
3023
3084

query I rowsort
SELECT col0 + ( col0 ) * col0 AS col1 FROM tab1 AS cor0
----
12
4160
6480

query I rowsort
SELECT DISTINCT - 2 * + col2 FROM tab1 AS cor0
----
-108
-114
-192

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2830
SELECT - CAST( - col2 AS SIGNED ) FROM tab0 cor0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-2830
SELECT - CAST ( - col2 AS INTEGER ) FROM tab0 cor0
----
1
33
82

query I rowsort
SELECT ALL - 3 + - col2 AS col0 FROM tab1 AS cor0
----
-57
-60
-99

query I rowsort
SELECT ALL 63 * col2 FROM tab2 AS cor0
----
1638
1701
2394

query I rowsort
SELECT 79 + cor0.col0 AS col0 FROM tab1 cor0
----
143
159
82

query I rowsort
SELECT DISTINCT cor2.col0 + - cor2.col0 FROM tab2, tab0 AS cor0, tab0 AS cor1, tab0 cor2
----
0

query I rowsort
SELECT DISTINCT + - col2 * + col2 + ( 26 ) FROM tab1 cor0
----
-2890
-3223
-9190

query I rowsort
SELECT - col0 * - col2 + col2 * - cor0.col1 AS col1 FROM tab2 AS cor0
----
-648
2356
494

query I rowsort
SELECT DISTINCT - col0 + - 75 * col2 * 85 AS col1 FROM tab0
----
-210399
-522839
-6410

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2838
SELECT DISTINCT CAST( + col1 AS SIGNED ) * col1 + 71 + 80 FROM tab2
----
1112
3632
440

skipif mysql # not compatible
query I rowsort label-2838
SELECT DISTINCT CAST ( + col1 AS INTEGER ) * col1 + 71 + 80 FROM tab2
----
1112
3632
440

onlyif mysql # use DIV operator for integer division
query I rowsort label-2839
SELECT 46 * + col2 DIV + col2 FROM tab0
----
46
46
46

skipif mysql # not compatible
query I rowsort label-2839
SELECT 46 * + col2 / + col2 FROM tab0
----
46
46
46

query I rowsort
SELECT ALL - - cor0.col2 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17

query I rowsort
SELECT - ( - cor0.col2 ) AS col0 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT - + col2 * - 37 + - col0 AS col2 FROM tab1 AS cor0
----
1995
2045
3472

query I rowsort
SELECT + 48 * col2 * col2 + col0 AS col0 FROM tab0 AS cor0
----
322841
52296
83

query I rowsort
SELECT + - cor0.col1 * col1 AS col0 FROM tab0 AS cor0
----
-7396
-8281
-9409

query I rowsort
SELECT ALL 23 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to d94fadcc1c8cc4fc51b78b83e04795f2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col0 * 59 col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to ca19995164cdbe4cfde6e35419dd6c14

query I rowsort
SELECT + - col1 + - cor0.col1 FROM tab2 AS cor0
----
-118
-34
-62

onlyif mysql # use DIV operator for integer division
query I rowsort label-2848
SELECT ALL + col0 DIV + cor0.col0 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2848
SELECT ALL + col0 / + cor0.col0 FROM tab0 AS cor0
----
1
1
1

query I rowsort
SELECT + cor0.col2 AS col1 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475

query I rowsort
SELECT - col0 * ( 12 ) * col0 AS col2 FROM tab2 cor0
----
-588
-73008
-74892

query I rowsort
SELECT ALL + col0 + + tab2.col0 - + tab2.col0 * col2 FROM tab2
----
-175
-1872
-2844

onlyif mysql # use DIV operator for integer division
query I rowsort label-2852
SELECT + col2 DIV + ( col0 ) AS col2 FROM tab2
----
0
0
3

skipif mysql # not compatible
query I rowsort label-2852
SELECT + col2 / + ( col0 ) AS col2 FROM tab2
----
0
0
3

query I rowsort
SELECT 8 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to ffc5b4c98b57ae546521175995c49c57

query I rowsort
SELECT 76 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 30b8941a700cffd5b983116383bd42d5

onlyif mysql # use DIV operator for integer division
query I rowsort label-2855
SELECT + col2 DIV 84 AS col1 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2855
SELECT + col2 / 84 AS col1 FROM tab2 cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-2856
SELECT - - cor0.col1 DIV - 79 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2856
SELECT - - cor0.col1 / - 79 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - col0 - + col1 * col2 AS col0 FROM tab1
----
-1328
-1407
-634

query I rowsort
SELECT - col2 * + 8 FROM tab0 cor0
----
-264
-656
-8

onlyif mysql # use DIV operator for integer division
query I rowsort label-2859
SELECT + + CAST( + 16 AS SIGNED ) + - cor0.col0 DIV 2 AS col1 FROM tab2 AS cor0
----
-23
-23
13

skipif mysql # not compatible
query I rowsort label-2859
SELECT + + CAST ( + 16 AS INTEGER ) + - cor0.col0 / 2 AS col1 FROM tab2 AS cor0
----
-23
-23
13

query I rowsort
SELECT ALL + tab1.col1 + - 5 AS col1 FROM tab1
----
21
5
8

onlyif mysql # use DIV operator for integer division
query I rowsort label-2861
SELECT - - 3 DIV 35 AS col2 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2

skipif mysql # not compatible
query I rowsort label-2861
SELECT - - 3 / 35 AS col2 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2862
SELECT - + col2 * col2 + - cor0.col1 * CAST( col0 AS SIGNED ) * col1 + - col2 FROM tab2 AS cor0
----
-24313
-272220
-7483

skipif mysql # not compatible
query I rowsort label-2862
SELECT - + col2 * col2 + - cor0.col1 * CAST ( col0 AS INTEGER ) * col1 + - col2 FROM tab2 AS cor0
----
-24313
-272220
-7483

query I rowsort
SELECT + + 61 + 57 + - col0 FROM tab1 cor0
----
115
38
54

query IIIIII rowsort
SELECT * FROM tab1, tab2 AS cor0 WHERE NOT NULL < NULL
----

query I rowsort
SELECT DISTINCT + col0 * 77 FROM tab2 AS cor0
----
539
6006
6083

query I rowsort
SELECT ALL 72 + 87 * col2 FROM tab0 AS cor0
----
159
2943
7206

query I rowsort
SELECT ALL + 32 * + col1 FROM tab0 AS cor0
----
2752
2912
3104

query I rowsort
SELECT 18 + 84 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to ee94a7029b1f2955f26d8b1cdd1a4587

query I rowsort
SELECT col1 + col0 * 98 AS col1 FROM tab1
----
320
6282
7853

query I rowsort
SELECT + 58 * - col2 * - ( - col2 ) + col1 * ( - 19 ) AS col1 FROM tab1
----
-169622
-188632
-534775

query I rowsort
SELECT + 81 FROM tab2, tab0 AS cor0, tab0 AS cor1, tab0 AS cor2
----
81 values hashing to 50d500b1082f81e0b02096b2afac91cd

query I rowsort
SELECT ALL + 99 + + col1 FROM tab1 cor0
----
109
112
125

onlyif mysql # use DIV operator for integer division
query I rowsort label-2873
SELECT + - col1 + + col1 DIV cor0.col0 FROM tab1 AS cor0
----
-10
-13
-18

skipif mysql # not compatible
query I rowsort label-2873
SELECT + - col1 + + col1 / cor0.col0 FROM tab1 AS cor0
----
-10
-13
-18

query I rowsort
SELECT ALL + + col2 + 27 FROM tab1 AS cor0
----
123
81
84

query I rowsort
SELECT - col2 * ( + col0 ) AS col2 FROM tab0 AS cor0
----
-35
-7298
-792

onlyif mysql # use DIV operator for integer division
query I rowsort label-2876
SELECT DISTINCT - col1 + col0 DIV + col2 col2 FROM tab1 AS cor0
----
-13
-26
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2876
SELECT DISTINCT - col1 + col0 / + col2 col2 FROM tab1 AS cor0
----
-13
-26
-9

query I rowsort
SELECT - - col2 * col0 + + col2 FROM tab2 cor0
----
2054
216
3040

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2878
SELECT DISTINCT + + cor0.col2 + CAST( - col0 AS SIGNED ) FROM tab1 AS cor0
----
-7
16
51

skipif mysql # not compatible
query I rowsort label-2878
SELECT DISTINCT + + cor0.col2 + CAST ( - col0 AS INTEGER ) FROM tab1 AS cor0
----
-7
16
51

query I rowsort
SELECT ALL 7 * col2 FROM tab2 AS cor0
----
182
189
266

query I rowsort
SELECT DISTINCT + col2 + + col1 * col1 AS col1 FROM tab2 AS cor0
----
327
3507
988

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 4 * + cor0.col0 col1 FROM tab1 AS cor0
----
-12
-256
-320

query I rowsort
SELECT + col1 * col2 + - col1 AS col2 FROM tab2 AS cor0
----
1475
629
806

query I rowsort
SELECT ALL - ( col2 ) AS col2 FROM tab0 cor0
----
-1
-33
-82

query I rowsort
SELECT DISTINCT ( cor0.col0 ) + ( - cor0.col1 ) * + col0 AS col1 FROM tab1 AS cor0
----
-576
-75
-960

query I rowsort
SELECT - 8 * col0 + col0 FROM tab0 AS cor0
----
-168
-245
-623

query I rowsort
SELECT + 74 AS col0 FROM tab2, tab1 cor0
----
9 values hashing to 2ccf8ef3f477e1a1a3e30c8b8154ff31

query I rowsort
SELECT DISTINCT + - cor0.col1 - - 39 * - col0 AS col2 FROM tab2 AS cor0
----
-304
-3098
-3101

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col1 col2 FROM tab0 cor0
----
86
91
97

query I rowsort
SELECT - col0 * 76 AS col0 FROM tab2 cor0
----
-532
-5928
-6004

onlyif mysql # use DIV operator for integer division
query I rowsort label-2890
SELECT col2 * col0 DIV col0 AS col1 FROM tab1 cor0
----
54
57
96

skipif mysql # not compatible
query I rowsort label-2890
SELECT col2 * col0 / col0 AS col1 FROM tab1 cor0
----
54
57
96

query I rowsort
SELECT col1 * + ( - col0 * col0 + col1 ) AS col0 FROM tab0 AS cor0
----
-109416
-42140
-712530

query I rowsort
SELECT - 49 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 01b1fa22fee872a7ba64f90d6046ffae

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab2 AS cor0, tab2 AS cor1, tab2 cor2
----
972 values hashing to 163d7732097d78f1cda7f65c2cea5a08

query I rowsort
SELECT ALL - ( - 57 ) AS col2 FROM tab1 AS cor0
----
57
57
57

query I rowsort
SELECT - ( cor0.col0 ) + col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL 4 * + 73 FROM tab0 AS cor0
----
292
292
292

onlyif mysql # use DIV operator for integer division
query I rowsort label-2897
SELECT DISTINCT + + col1 * - col2 + + col1 DIV - CAST( + col1 AS SIGNED ) FROM tab1 AS cor0
----
-1249
-1405
-571

skipif mysql # not compatible
query I rowsort label-2897
SELECT DISTINCT + + col1 * - col2 + + col1 / - CAST ( + col1 AS INTEGER ) FROM tab1 AS cor0
----
-1249
-1405
-571

query I rowsort
SELECT DISTINCT + ( - 59 ) + col2 AS col0 FROM tab2 AS cor0
----
-21
-32
-33

query I rowsort
SELECT - col1 + col2 * col1 FROM tab2 cor0
----
1475
629
806

query I rowsort
SELECT DISTINCT ( 33 ) * col1 * col0 FROM tab1 cor0
----
21120
2574
34320

query I rowsort
SELECT ALL + - ( - col0 ) + + col2 AS col0 FROM tab0 AS cor0
----
171
36
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * - cor0.col1 col0 FROM tab2 AS cor0
----
-1534
-646
-837

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2903
SELECT CAST( NULL AS DECIMAL ) / col2 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2903
SELECT CAST ( NULL AS REAL ) / col2 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + col2 * + col2 col0 FROM tab1 AS cor0
----
2970
3306
9312

query I rowsort
SELECT ALL + - col0 * col2 + - ( + col1 ) AS col2 FROM tab1 AS cor0
----
-188
-3658
-7693

query I rowsort
SELECT DISTINCT + - col1 * - col2 + col2 * + 17 FROM tab0 AS cor0
----
114
3399
8856

query I rowsort
SELECT DISTINCT ( + col1 ) * 8 FROM tab2 AS cor0
----
136
248
472

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2908
SELECT DISTINCT + CAST( NULL AS SIGNED ) + col0 / + col0 AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2908
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + col0 / + col0 AS col2 FROM tab0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + col2 + - tab1.col1 * col2 * + 76 col0 FROM tab1
----
-106624
-43253
-94739

query I rowsort
SELECT ALL tab2.col0 + + col0 AS col2 FROM tab2
----
14
156
158

query I rowsort
SELECT ( 79 ) - - tab1.col0 AS col0 FROM tab1
----
143
159
82

query I rowsort
SELECT DISTINCT - col0 + + tab0.col2 FROM tab0
----
-34
-7
9

query I rowsort
SELECT ALL + ( col0 ) + - col1 * - ( ( col1 ) ) + ( - tab1.col0 ) * col0 AS col1 FROM tab1
----
-3932
-6151
670

onlyif mysql # use DIV operator for integer division
query I rowsort label-2914
SELECT + col2 DIV - col2 + - ( col2 ) AS col1 FROM tab1 AS cor0
----
-55
-58
-97

skipif mysql # not compatible
query I rowsort label-2914
SELECT + col2 / - col2 + - ( col2 ) AS col1 FROM tab1 AS cor0
----
-55
-58
-97

query I rowsort
SELECT DISTINCT 97 AS col0 FROM tab2, tab1 AS cor0
----
97

query I rowsort
SELECT - 46 + + cor0.col1 AS col1 FROM tab1 AS cor0
----
-20
-33
-36

query I rowsort
SELECT - 97 + + col2 * ( + col1 ) + col1 FROM tab0
----
2827
7456
97

query I rowsort
SELECT + col2 + - 88 AS col2 FROM tab1 AS cor0
----
-31
-34
8

onlyif mysql # use DIV operator for integer division
query I rowsort label-2919
SELECT - cor0.col0 * - ( - col1 ) + + col0 DIV - col1 FROM tab2 AS cor0
----
-1347
-217
-4603

skipif mysql # not compatible
query I rowsort label-2919
SELECT - cor0.col0 * - ( - col1 ) + + col0 / - col1 FROM tab2 AS cor0
----
-1347
-217
-4603

query I rowsort
SELECT - 22 + + col0 FROM tab1
----
-19
42
58

query I rowsort
SELECT 91 * + col2 AS col2 FROM tab0
----
3003
7462
91

onlyif mysql # use DIV operator for integer division
query I rowsort label-2922
SELECT ALL + 65 DIV + tab2.col1 AS col0 FROM tab2
----
1
2
3

skipif mysql # not compatible
query I rowsort label-2922
SELECT ALL + 65 / + tab2.col1 AS col0 FROM tab2
----
1
2
3

query I rowsort
SELECT + col2 + + col2 * col0 FROM tab0
----
36
7380
825

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2924
SELECT CAST( NULL AS SIGNED ) * col2 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2924
SELECT CAST ( NULL AS INTEGER ) * col2 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + cor0.col0 + col0 * cor0.col0 FROM tab0 AS cor0
----
1260
600
8010

query I rowsort
SELECT + 37 FROM tab1, tab2 AS cor0
----
9 values hashing to a10b03e72860b949bdff53827700a9a8

query I rowsort
SELECT ALL ( + tab2.col0 ) FROM tab2, tab1 AS cor0
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a

query I rowsort
SELECT ALL + 14 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 83e5779d2487d12495e7d816c797264f

query I rowsort
SELECT ALL 43 * - col0 * - col0 AS col1 FROM tab2 AS cor0
----
2107
261612
268363

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2930
SELECT CAST( NULL AS SIGNED ) * col1 / - tab2.col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2930
SELECT CAST ( NULL AS INTEGER ) * col1 / - tab2.col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col2 + 81 AS col1 FROM tab0 AS cor0
----
-1
48
80

query I rowsort
SELECT ALL - - 58 * - col1 + col0 + + col1 FROM tab1 AS cor0
----
-1479
-506
-661

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2933
SELECT + CAST( NULL AS DECIMAL ) * - col0 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2933
SELECT + CAST ( NULL AS REAL ) * - col0 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 80 AS col2 FROM tab0 AS cor0
----
80

query I rowsort
SELECT + 54 + - ( - col1 ) * - cor0.col0 AS col2 FROM tab0 AS cor0
----
-2010
-3341
-8045

query I rowsort
SELECT ALL + col1 + + cor0.col2 + - col2 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT ALL + - 9 * 98 FROM tab0 AS cor0
----
-882
-882
-882

onlyif mysql # use DIV operator for integer division
query I rowsort label-2938
SELECT DISTINCT - - col0 DIV 22 + + col0 + col1 * col0 col0 FROM tab1 AS cor0
----
1123
706
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2938
SELECT DISTINCT - - col0 / 22 + + col0 + col1 * col0 col0 FROM tab1 AS cor0
----
1123
706
81

query I rowsort
SELECT - col0 + col0 - + col2 AS col1 FROM tab2
----
-26
-27
-38

onlyif mysql # use DIV operator for integer division
query I rowsort label-2940
SELECT tab1.col0 DIV - tab1.col2 + - col2 + col2 FROM tab1
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-2940
SELECT tab1.col0 / - tab1.col2 + - col2 + col2 FROM tab1
----
-1
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-2941
SELECT ALL + col0 DIV tab0.col0 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2941
SELECT ALL + col0 / tab0.col0 FROM tab0
----
1
1
1

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col1 - col1 IN ( col2 * - col1 )
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d

onlyif mysql # use DIV operator for integer division
query I rowsort label-2943
SELECT + col2 * col0 DIV - col1 AS col0 FROM tab1
----
-364
-590
-6

skipif mysql # not compatible
query I rowsort label-2943
SELECT + col2 * col0 / - col1 AS col0 FROM tab1
----
-364
-590
-6

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL > col1
----

query I rowsort
SELECT DISTINCT col1 * col0 * + col1 + + tab2.col2 FROM tab2
----
22869
271544
6754

query I rowsort
SELECT ALL - col1 + col0 * col0 AS col0 FROM tab0
----
1128
490
7830

query I rowsort
SELECT DISTINCT col1 + + col0 + col1 AS col0 FROM tab2
----
113
196
69

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT ( NULL ) NOT IN ( - col2 + + col2 )
----

query I rowsort
SELECT DISTINCT + tab0.col1 * tab0.col2 + col0 AS col0 FROM tab0
----
132
2862
7551

query I rowsort
SELECT ALL - col2 AS col0 FROM tab0 WHERE col2 + col1 IN ( + col1 )
----

query I rowsort
SELECT - col0 + + tab0.col2 AS col2 FROM tab0
----
-34
-7
9

query III rowsort
SELECT * FROM tab1 WHERE NOT col2 * col0 / col2 + col2 BETWEEN ( NULL ) AND ( NULL )
----

query I rowsort
SELECT ALL - col1 * col1 + + col1 FROM tab0
----
-7310
-8190
-9312

query I rowsort
SELECT col0 * + col1 * - col1 AS col2 FROM tab2
----
-22831
-271518
-6727

query I rowsort
SELECT - col2 * + col1 * - col2 + tab1.col2 FROM tab1
----
119904
32547
75870

query I rowsort
SELECT + col1 * - col1 + col0 + col1 AS col1 FROM tab0 WHERE NULL NOT IN ( col1 )
----

query I rowsort
SELECT ALL - col1 * - tab0.col2 + + col1 FROM tab0
----
194
2924
7553

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 / - col1 + col2 col0 FROM tab1 WHERE NOT NULL IN ( col2 + + col0 * col0 / + col2 )
----

query I rowsort
SELECT + col1 + col1 + + col1 AS col0 FROM tab0
----
258
273
291

query I rowsort
SELECT col2 - + tab2.col0 FROM tab2
----
-41
-52
20

query I rowsort
SELECT - col0 * - col0 + + col2 FROM tab0
----
1226
609
8003

query I rowsort
SELECT DISTINCT - col0 * + col1 - + col1 * col0 AS col1 FROM tab0 WHERE NOT ( - col2 * + col1 ) >= NULL
----

query I rowsort
SELECT - tab0.col2 + col2 / col1 AS col1 FROM tab0 WHERE NOT - col2 * col2 * + col0 NOT IN ( - tab0.col2 + col1 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-2964
SELECT + cor0.col2 DIV + cor0.col0 AS col1 FROM tab2 AS cor0
----
0
0
3

skipif mysql # not compatible
query I rowsort label-2964
SELECT + cor0.col2 / + cor0.col0 AS col1 FROM tab2 AS cor0
----
0
0
3

query I rowsort
SELECT + col0 + + col1 * - col0 FROM tab2 cor0
----
-1264
-210
-4524

query I rowsort
SELECT - - col0 + - cor0.col0 AS col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT + col1 + + col0 * - col0 FROM tab1
----
-4086
-6387
17

query I rowsort
SELECT - + col0 * col2 * + col0 AS col0 FROM tab0 AS cor0
----
-1225
-19008
-649522

onlyif mysql # use DIV operator for integer division
query I rowsort label-2969
SELECT + + cor0.col0 DIV - col2 FROM tab1 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-2969
SELECT + + cor0.col0 / - col2 FROM tab1 AS cor0
----
-1
0
0

query I rowsort
SELECT ALL + cor0.col1 FROM tab2 AS cor0 CROSS JOIN tab1
----
9 values hashing to c61d27a0022e6d022371dc58819ab272

query I rowsort
SELECT - col2 + col0 + col1 AS col0 FROM tab1 AS cor0
----
-25
-3
17

query I rowsort
SELECT ALL + col1 * + col0 * col1 AS col0 FROM tab2 AS cor0
----
22831
271518
6727

query III rowsort
SELECT * FROM tab2 WHERE NOT ( + col1 + col0 * col2 ) NOT BETWEEN col1 + - col1 AND - col0
----

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2974
SELECT ALL col2 - CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2974
SELECT ALL col2 - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - - col0 * + col1 FROM tab0 cor0
----
2064
3395
8099

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2976
SELECT - col2 / CAST( NULL AS SIGNED ) col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2976
SELECT - col2 / CAST ( NULL AS INTEGER ) col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2977
SELECT DISTINCT - - col0 * CAST( NULL AS SIGNED ) + col1 * + col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2977
SELECT DISTINCT - - col0 * CAST ( NULL AS INTEGER ) + col1 * + col0 FROM tab1 AS cor0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-2978
SELECT + cor0.col2 + 24 DIV - col1 AS col0 FROM tab0 AS cor0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-2978
SELECT + cor0.col2 + 24 / - col1 AS col0 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT ALL + col1 + 1 AS col2 FROM tab1 AS cor0
----
11
14
27

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2980
SELECT ALL - + col0 * - CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2980
SELECT ALL - + col0 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + - col2 * cor0.col1 + + 82 * + cor0.col2 + + col2 AS col0 FROM tab1 AS cor0
----
3078
4161
6720

query I rowsort
SELECT DISTINCT + + col0 * 6 - - col0 FROM tab1 AS cor0
----
21
448
560

query I rowsort
SELECT ALL + col0 * cor0.col2 - - 24 FROM tab2 AS cor0
----
2052
213
3026

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2984
SELECT + col1 * - CAST( NULL AS DECIMAL ) AS col0 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2984
SELECT + col1 * - CAST ( NULL AS REAL ) AS col0 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col0 + 80 FROM tab1 AS cor0
----
144
160
83

query I rowsort
SELECT ALL + cor0.col1 * 44 + + col1 FROM tab1 AS cor0
----
1170
450
585

query I rowsort
SELECT ALL + col2 + - 57 FROM tab1 AS cor0
----
-3
0
39

query I rowsort
SELECT ALL - ( + col0 * ( tab2.col1 ) ) FROM tab2
----
-1343
-217
-4602

query I rowsort
SELECT ALL 65 + - 59 AS col0 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to f1e8f0199f3714ee8fcc24ce0cc3ea04

query I rowsort
SELECT + cor1.col1 + + ( 18 + + cor1.col0 ) * - cor1.col0 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0, tab2 AS cor1
----
27 values hashing to 9943645638d935781bcd7fe2feaff37c

query I rowsort
SELECT col1 + col1 + col1 * col2 AS col1 FROM tab2 WHERE ( col2 ) = + col1 * col0
----

query I rowsort
SELECT col2 + + col1 + - tab2.col1 AS col1 FROM tab2
----
26
27
38

query I rowsort
SELECT DISTINCT + col2 FROM tab1 WHERE NULL NOT IN ( + tab1.col0 * - tab1.col1 + - col0 )
----

query I rowsort
SELECT + tab1.col2 * + col2 * - col0 AS col2 FROM tab1
----
-207936
-737280
-8748

query I rowsort
SELECT - col1 + + col2 * - 34 * col2 FROM tab0
----
-131
-228707
-37112

query I rowsort
SELECT DISTINCT + 72 AS col2 FROM tab2, tab1, tab0 AS cor0
----
72

query I rowsort
SELECT DISTINCT 54 * col0 AS col0 FROM tab2
----
378
4212
4266

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col2 + + col2 col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - col2 - col1 * - ( cor0.col0 ) FROM tab2 AS cor0
----
1305
190
4576

onlyif mysql # use DIV operator for integer division
query I rowsort label-3000
SELECT ALL - col2 DIV col1 AS col0 FROM tab1 cor0
----
-2
-5
-7

skipif mysql # not compatible
query I rowsort label-3000
SELECT ALL - col2 / col1 AS col0 FROM tab1 cor0
----
-2
-5
-7

query I rowsort
SELECT - - 54 * + col1 + ( 70 ) * - cor0.col1 FROM tab0 AS cor0
----
-1376
-1456
-1552

query I rowsort
SELECT DISTINCT - - cor0.col2 * + col2 - col1 AS col1 FROM tab0 AS cor0
----
-96
1003
6633

query I rowsort
SELECT ALL + tab0.col2 + + col1 FROM tab0
----
119
173
98

query I rowsort
SELECT DISTINCT cor0.col1 * tab0.col1 AS col0 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
9 values hashing to 23253cfee4cea5e1d4f993bec937f9fe

query I rowsort
SELECT col2 * col2 + col1 AS col0 FROM tab0 AS cor0
----
1175
6815
98

query I rowsort
SELECT + col2 + - ( + col1 ) + + col1 FROM tab1
----
54
57
96

query I rowsort
SELECT ALL + - col1 * 4 AS col1 FROM tab2 AS cor0
----
-124
-236
-68

query I rowsort
SELECT + + col1 * - cor0.col1 * col1 FROM tab0 AS cor0
----
-636056
-753571
-912673

query I rowsort
SELECT col2 * col1 * 74 + + col1 AS col0 FROM tab0
----
210098
552279
7275

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab0.col1 + - col2 * + tab0.col2 col2 FROM tab0
----
-1003
-6633
96

query I rowsort
SELECT DISTINCT col1 + 70 FROM tab1
----
80
83
96

query I rowsort
SELECT ALL + 77 + + cor0.col2 + - col2 FROM tab0 AS cor0
----
77
77
77

query I rowsort
SELECT DISTINCT + 21 * tab0.col0 AS col1 FROM tab0
----
1869
504
735

query I rowsort
SELECT ALL 1 FROM tab2, tab1 cor0
----
9 values hashing to 001554c2952f1a80506b182ee04686f5

query I rowsort
SELECT - + 90 + col2 * cor0.col0 FROM tab0 AS cor0
----
-55
702
7208

query I rowsort
SELECT DISTINCT - - col2 * 83 - col0 * ( ( col2 ) ) AS col2 FROM tab1 AS cor0
----
1083
288
4320

onlyif mysql # use DIV operator for integer division
query I rowsort label-3017
SELECT ALL + - 41 DIV - col1 AS col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3017
SELECT ALL + - 41 / - col1 AS col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - 7 * + col2 * col0 AS col1 FROM tab1 AS cor0
----
-1134
-25536
-53760

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 95 * 11 + cor0.col2 col1 FROM tab0 AS cor0
----
1046
1078
1127

query I rowsort
SELECT ALL + - col2 * 32 + col1 AS col1 FROM tab2 cor0
----
-1199
-773
-833

query I rowsort
SELECT ALL col1 + 70 + col0 FROM tab2 AS cor0
----
108
166
207

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + + tab1.col2 col2 FROM tab1
----
109
67
80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3023
SELECT col0 * col0 + CAST( NULL AS SIGNED ) / + tab1.col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3023
SELECT col0 * col0 + CAST ( NULL AS INTEGER ) / + tab1.col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT - col1 - - tab2.col2 * - col1 FROM tab2
----
-1593
-663
-868

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col2 col2 FROM tab0, tab1, tab2 cor0
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5

query I rowsort
SELECT 16 FROM tab2, tab1 cor0, tab0 cor1
----
27 values hashing to ee5bde9f68ee828e8cd86b0d590090bc

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - cor0.col0 + + col1 col0 FROM tab0 AS cor0
----
110
132
180

query I rowsort
SELECT + - cor0.col2 + + col0 * col1 FROM tab1 AS cor0
----
24
583
944

query I rowsort
SELECT col0 + + col0 * ( + col0 ) * col1 AS col1 FROM tab1 AS cor0
----
237
41024
83280

query I rowsort
SELECT - ( + col2 ) * 32 AS col1 FROM tab2 cor0
----
-1216
-832
-864

query I rowsort
SELECT ALL + + ( cor0.col2 ) * + col2 AS col1 FROM tab2 AS cor0
----
1444
676
729

query I rowsort
SELECT ALL - - col0 + 5 * col2 * col1 FROM tab0 AS cor0
----
14214
37399
520

onlyif mysql # use DIV operator for integer division
query I rowsort label-3033
SELECT DISTINCT - col0 * cor0.col0 * + ( + col2 ) + 62 DIV - col2 FROM tab0 AS cor0
----
-1287
-19009
-649522

skipif mysql # not compatible
query I rowsort label-3033
SELECT DISTINCT - col0 * cor0.col0 * + ( + col2 ) + 62 / - col2 FROM tab0 AS cor0
----
-1287
-19009
-649522

query I rowsort
SELECT ALL - cor0.col1 * - cor0.col2 - col1 * - col0 FROM tab1 AS cor0
----
1210
1482
2288

query I rowsort
SELECT + + col0 * 93 AS col2 FROM tab2 cor0
----
651
7254
7347

query I rowsort
SELECT ALL - - col1 * - 22 + - col0 FROM tab0 cor0
----
-1916
-2091
-2169

onlyif mysql # use DIV operator for integer division
query I rowsort label-3037
SELECT + col0 DIV + 64 + col2 * - col1 * 30 + + cor0.col1 * col1 * - 72 AS col2 FROM tab2 AS cor0
----
-296651
-40187
-94302

skipif mysql # not compatible
query I rowsort label-3037
SELECT + col0 / + 64 + col2 * - col1 * 30 + + cor0.col1 * col1 * - 72 AS col2 FROM tab2 AS cor0
----
-296651
-40187
-94302

query I rowsort
SELECT - col2 * - 35 FROM tab0 AS cor0
----
1155
2870
35

query I rowsort
SELECT - 12 + + tab1.col2 * 63 - - col2 * - col1 * - col1 AS col1 FROM tab1
----
22260
39894
9279

query I rowsort
SELECT 56 AS col1 FROM tab0, tab2, tab0 cor0
----
27 values hashing to b5ba4b44e3deadce1edb30e76df61200

query I rowsort
SELECT 86 * - col2 * ( - col1 * col0 ) + 20 FROM tab1
----
3137300
362252
8586260

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3042
SELECT DISTINCT - - col0 * CAST( + col2 AS SIGNED ) * + col1 AS col0 FROM tab2 AS cor0
----
119652
51034
5859

skipif mysql # not compatible
query I rowsort label-3042
SELECT DISTINCT - - col0 * CAST ( + col2 AS INTEGER ) * + col1 AS col0 FROM tab2 AS cor0
----
119652
51034
5859

query I rowsort
SELECT ALL + col2 + 4 * 27 FROM tab1 AS cor0
----
162
165
204

query I rowsort
SELECT ALL col1 * - 80 FROM tab1 AS cor0
----
-1040
-2080
-800

query I rowsort
SELECT - - col1 * ( - col1 ) FROM tab1 AS cor0
----
-100
-169
-676

query I rowsort
SELECT ALL + col1 * 1 + + 51 FROM tab0 AS cor0
----
137
142
148

onlyif mysql # use DIV operator for integer division
query I rowsort label-3047
SELECT - col0 DIV - ( col1 * col0 ) FROM tab0 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3047
SELECT - col0 / - ( col1 * col0 ) FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT + col0 + + ( cor0.col1 ) * - col0 FROM tab2 AS cor0
----
-1264
-210
-4524

query I rowsort
SELECT col0 + 4 FROM tab2 AS cor0
----
11
82
83

query I rowsort
SELECT 39 * 46 + + col1 * - col1 + - col0 FROM tab1 AS cor0
----
1115
1545
1630

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3051
SELECT CAST( - 44 AS SIGNED ) * cor0.col2 + col1 * ( - col0 * 52 ) + 50 * col0 FROM tab2 cor0
----
-12122
-236548
-67558

skipif mysql # not compatible
query I rowsort label-3051
SELECT CAST ( - 44 AS INTEGER ) * cor0.col2 + col1 * ( - col0 * 52 ) + 50 * col0 FROM tab2 cor0
----
-12122
-236548
-67558

query I rowsort
SELECT col1 + - 48 * - col2 + + col2 FROM tab1 AS cor0
----
2672
2803
4717

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3053
SELECT + + CAST( + col2 AS SIGNED ) * + col0 AS col0 FROM tab1 AS cor0
----
162
3648
7680

skipif mysql # not compatible
query I rowsort label-3053
SELECT + + CAST ( + col2 AS INTEGER ) * + col0 AS col0 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT 0 FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT ALL col0 + - col0 * + col0 * col0 FROM tab0
----
-13800
-42840
-704880

query I rowsort
SELECT - cor0.col0 * + cor1.col1 FROM tab0, tab2 cor0, tab2 cor1
----
27 values hashing to b1d1c8abbc483ff4a42f7a4fd637cd89

query I rowsort
SELECT ALL + col0 + 99 * + col1 AS col0 FROM tab1
----
1054
1367
2577

query I rowsort
SELECT + + 27 FROM tab0 cor0
----
27
27
27

query I rowsort
SELECT ALL + col2 - - col2 * ( col1 ) AS col2 FROM tab0 AS cor0
----
2871
7544
98

query I rowsort
SELECT + + col1 + + col1 * ( + ( col0 ) ) AS col1 FROM tab0 cor0
----
2150
3492
8190

onlyif mysql # use DIV operator for integer division
query I rowsort label-3061
SELECT ALL - col1 DIV - col0 + - col1 col1 FROM tab0 AS cor0
----
-83
-90
-95

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3061
SELECT ALL - col1 / - col0 + - col1 col1 FROM tab0 AS cor0
----
-83
-90
-95

query I rowsort
SELECT - col2 * col1 * - col2 FROM tab1 AS cor0
----
119808
32490
75816

query I rowsort
SELECT ALL - 48 * + col1 - + col0 * col0 FROM tab0 AS cor0
----
-12289
-4704
-5881

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * col0 col2 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT DISTINCT - col2 * - col1 + - tab1.col0 AS col1 FROM tab1
----
1168
1401
506

query I rowsort
SELECT ALL - col2 + - ( + col1 ) AS col1 FROM tab0
----
-119
-173
-98

query I rowsort
SELECT ALL col1 + + 6 * + tab0.col0 FROM tab0
----
230
307
625

query I rowsort
SELECT tab0.col0 FROM tab0, tab0 AS cor0, tab2, tab0 AS cor1
----
81 values hashing to 2304fcc140e955eb2d1ee28ab1eea994

query I rowsort
SELECT 39 + col1 FROM tab1
----
49
52
65

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3070
SELECT + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-3070
SELECT + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT ALL - 68 + + col2 AS col0 FROM tab0 AS cor0
----
-35
-67
14

onlyif mysql # use DIV operator for integer division
query I rowsort label-3072
SELECT ALL - col2 * col2 + col1 DIV + col2 FROM tab1 AS cor0
----
-2916
-3249
-9216

skipif mysql # not compatible
query I rowsort label-3072
SELECT ALL - col2 * col2 + col1 / + col2 FROM tab1 AS cor0
----
-2916
-3249
-9216

query I rowsort
SELECT ALL - + 95 * + col2 AS col1 FROM tab2 AS cor0
----
-2470
-2565
-3610

query I rowsort
SELECT DISTINCT + 70 + + col1 AS col0 FROM tab1 AS cor0
----
80
83
96

query I rowsort
SELECT DISTINCT 39 * + cor0.col0 + + cor0.col0 FROM tab0 AS cor0
----
1400
3560
960

query I rowsort
SELECT cor0.col0 AS col2 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab0 AS cor0, tab2 cor1, tab1, tab2 AS cor2
----
3645 values hashing to 6193516da5556fc054f35e0d2f4e5372

onlyif mysql # use DIV operator for integer division
query I rowsort label-3078
SELECT - col0 * - col2 - col0 DIV ( + tab2.col0 ) AS col1 FROM tab2
----
188
2027
3001

skipif mysql # not compatible
query I rowsort label-3078
SELECT - col0 * - col2 - col0 / ( + tab2.col0 ) AS col1 FROM tab2
----
188
2027
3001

query I rowsort
SELECT - 96 - col1 FROM tab1 AS cor0
----
-106
-109
-122

query I rowsort
SELECT 12 - + col0 FROM tab0 AS cor0
----
-12
-23
-77

onlyif mysql # use DIV operator for integer division
query I rowsort label-3081
SELECT ALL - 41 DIV - col0 - tab0.col1 AS col1 FROM tab0
----
-85
-91
-96

skipif mysql # not compatible
query I rowsort label-3081
SELECT ALL - 41 / - col0 - tab0.col1 AS col1 FROM tab0
----
-85
-91
-96

query I rowsort
SELECT ALL + ( - col0 ) * ( + col1 + - col2 ) FROM tab0 AS cor0
----
-1272
-3360
-801

onlyif mysql # use DIV operator for integer division
query I rowsort label-3083
SELECT DISTINCT + 31 DIV cor0.col1 AS col2 FROM tab2 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-3083
SELECT DISTINCT + 31 / cor0.col1 AS col2 FROM tab2 AS cor0
----
0
1

query I rowsort
SELECT col1 * - cor0.col1 - - col1 AS col1 FROM tab2 AS cor0
----
-272
-3422
-930

query I rowsort
SELECT 59 * col1 AS col0 FROM tab2 cor0
----
1003
1829
3481

onlyif mysql # use DIV operator for integer division
query I rowsort label-3086
SELECT + col1 DIV - 64 AS col0 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-3086
SELECT + col1 / - 64 AS col0 FROM tab0 AS cor0
----
-1
-1
-1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3087
SELECT col0 * + CAST( col1 * + col2 AS SIGNED ) FROM tab0 AS cor0
----
3395
664118
68112

skipif mysql # not compatible
query I rowsort label-3087
SELECT col0 * + CAST ( col1 * + col2 AS INTEGER ) FROM tab0 AS cor0
----
3395
664118
68112

onlyif mysql # use DIV operator for integer division
query I rowsort label-3088
SELECT - col0 DIV - CAST( + col2 + - col0 AS SIGNED ) FROM tab0 AS cor0
----
-1
-12
2

skipif mysql # not compatible
query I rowsort label-3088
SELECT - col0 / - CAST ( + col2 + - col0 AS INTEGER ) FROM tab0 AS cor0
----
-1
-12
2

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3089
SELECT + - col1 * - ( col0 + + CAST( 25 AS SIGNED ) ) col2 FROM tab2 AS cor0
----
1768
6077
992

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3089
SELECT + - col1 * - ( col0 + + CAST ( 25 AS INTEGER ) ) col2 FROM tab2 AS cor0
----
1768
6077
992

skipif mysql # not compatible
query I rowsort
SELECT + CAST ( + ( col1 ) AS REAL ) * CAST ( col1 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
289
3481
961

onlyif mysql # use DIV operator for integer division
query I rowsort label-3091
SELECT - - col2 DIV 92 AS col1 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3091
SELECT - - col2 / 92 AS col1 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort
SELECT ALL + CAST ( + 13 AS REAL ) FROM tab0, tab1 cor0
----
9 values hashing to 184e52d7aa5aa66591291e39c67a3dfb

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 - col2 * 91 FROM tab1 AS cor0
----
-4914
-5187
-8736

query I rowsort
SELECT ALL + 81 + - 40 * col2 FROM tab1 AS cor0
----
-2079
-2199
-3759

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3096
SELECT - CAST( 93 AS SIGNED ) * - col0 * 18 + - col1 AS col1 FROM tab0 cor0
----
148895
40090
58493

skipif mysql # not compatible
query I rowsort label-3096
SELECT - CAST ( 93 AS INTEGER ) * - col0 * 18 + - col1 AS col1 FROM tab0 cor0
----
148895
40090
58493

query I rowsort
SELECT ALL + cor0.col1 + col1 + col0 FROM tab0 AS cor0
----
196
229
271

query I rowsort
SELECT + col1 + cor0.col2 AS col0 FROM tab1 AS cor0
----
109
67
80

query I rowsort
SELECT DISTINCT 86 + col1 * + col1 * + col2 + col1 AS col2 FROM tab1 AS cor0
----
16323
36616
5796

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3100
SELECT ALL - + CAST( - col2 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
54
57
96

skipif mysql # not compatible
query I rowsort label-3100
SELECT ALL - + CAST ( - col2 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT DISTINCT - col0 + 11 * col2 FROM tab0 AS cor0
----
-24
339
813

query I rowsort
SELECT - ( cor0.col1 ) + col0 FROM tab1 AS cor0
----
-23
54
67

query I rowsort
SELECT col0 + 98 AS col2 FROM tab1 AS cor0
----
101
162
178

query I rowsort
SELECT DISTINCT - ( 28 ) + col2 * ( - col0 + col1 ) FROM tab2 AS cor0
----
-2384
-522
620

query I rowsort
SELECT ALL + ( 61 ) AS col1 FROM tab1 cor0
----
61
61
61

query I rowsort
SELECT DISTINCT + 42 * - col0 + col0 AS col1 FROM tab1 AS cor0
----
-123
-2624
-3280

query I rowsort
SELECT + - 46 AS col0 FROM tab1 AS cor0
----
-46
-46
-46

query I rowsort
SELECT DISTINCT + + cor0.col2 * col2 AS col2 FROM tab1 cor0
----
2916
3249
9216

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 51 col1 FROM tab0 AS cor0
----
-51
-51
-51

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3110
SELECT cor1.col1 * - CAST( NULL AS SIGNED ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-3110
SELECT cor1.col1 * - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT - - col0 - + col2 AS col1 FROM tab2 AS cor0
----
-20
41
52

query I rowsort
SELECT ALL - col0 + col0 * + 94 AS col2 FROM tab0 AS cor0
----
2232
3255
8277

query I rowsort
SELECT DISTINCT + - col1 * + ( col0 * col1 ) + - col1 AS col1 FROM tab0 AS cor0
----
-177590
-329412
-737100

onlyif mysql # use DIV operator for integer division
query I rowsort label-3114
SELECT col2 DIV col1 col2 FROM tab0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3114
SELECT col2 / col1 col2 FROM tab0
----
0
0
0

query I rowsort
SELECT ALL col0 + - ( + col1 * col0 ) FROM tab0 cor0
----
-2040
-3360
-8010

query I rowsort
SELECT col0 + ( 18 ) * col1 FROM tab0 AS cor0
----
1572
1727
1781

query I rowsort
SELECT - 43 + - 58 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 8a1d971b6cef4360abe46fba666b2086

query I rowsort
SELECT ALL - col2 * + col2 + ( tab0.col0 ) + + 50 * - col0 AS col2 FROM tab0
----
-11085
-1716
-2265

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3119
SELECT + CAST( NULL AS SIGNED ) FROM tab1, tab0, tab1 AS cor0, tab2
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c

skipif mysql # not compatible
query I rowsort label-3119
SELECT + CAST ( NULL AS INTEGER ) FROM tab1, tab0, tab1 AS cor0, tab2
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c

query I rowsort
SELECT tab2.col2 * + 65 AS col1 FROM tab2
----
1690
1755
2470

query I rowsort
SELECT ALL + + col1 * col1 + - col2 * + col1 AS col2 FROM tab2 cor0
----
-357
124
1947

query I rowsort
SELECT ALL - cor0.col2 * col2 + col1 FROM tab0 AS cor0
----
-1003
-6633
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-3123
SELECT ALL - col0 + + col2 DIV - ( col0 ) FROM tab0 AS cor0
----
-25
-35
-89

skipif mysql # not compatible
query I rowsort label-3123
SELECT ALL - col0 + + col2 / - ( col0 ) FROM tab0 AS cor0
----
-25
-35
-89

query I rowsort
SELECT col0 * - col1 + col2 FROM tab0 AS cor0
----
-2031
-3394
-8017

onlyif mysql # use DIV operator for integer division
query I rowsort label-3125
SELECT ALL - ( col2 ) DIV col2 + 8 + col0 * col1 col1 FROM tab0 cor0
----
2071
3402
8106

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3125
SELECT ALL - ( col2 ) / col2 + 8 + col0 * col1 col1 FROM tab0 cor0
----
2071
3402
8106

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3126
SELECT DISTINCT + - col2 * - col0 + - CAST( col0 AS SIGNED ) + cor0.col0 AS col2 FROM tab1 AS cor0
----
162
3648
7680

skipif mysql # not compatible
query I rowsort label-3126
SELECT DISTINCT + - col2 * - col0 + - CAST ( col0 AS INTEGER ) + cor0.col0 AS col2 FROM tab1 AS cor0
----
162
3648
7680

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3127
SELECT CAST( NULL AS SIGNED ) * col2 - - col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3127
SELECT CAST ( NULL AS INTEGER ) * col2 - - col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT - 17 * + col0 FROM tab2 cor0
----
-119
-1326
-1343

query I rowsort
SELECT + 37 + + col2 * col0 * + cor0.col0 FROM tab1 AS cor0
----
233509
523
614437

onlyif mysql # use DIV operator for integer division
query I rowsort label-3130
SELECT DISTINCT col0 + col1 DIV col1 AS col0 FROM tab0
----
25
36
90

skipif mysql # not compatible
query I rowsort label-3130
SELECT DISTINCT col0 + col1 / col1 AS col0 FROM tab0
----
25
36
90

query I rowsort
SELECT col2 + col2 + + 31 FROM tab0 AS cor0
----
195
33
97

query I rowsort
SELECT DISTINCT + 98 AS col2 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
98

query I rowsort
SELECT ( - col0 ) * col2 AS col2 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT ( 32 ) FROM tab1 AS cor0
----
32
32
32

query I rowsort
SELECT ALL - 24 * + col0 - col0 FROM tab0 AS cor0
----
-2225
-600
-875

query I rowsort
SELECT ALL - col2 * col2 * col1 AS col0 FROM tab1 AS cor0
----
-119808
-32490
-75816

query IIIIIIIIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0, tab1 cor1, tab0 AS cor2
----
972 values hashing to 5e655b1287771868a8f868574a94d749

query I rowsort
SELECT DISTINCT ( col0 + + col1 * col0 ) FROM tab1
----
1120
704
81

query I rowsort
SELECT ALL - 31 AS col2 FROM tab0
----
-31
-31
-31

query I rowsort
SELECT ALL + 39 FROM tab0, tab1 AS cor0
----
9 values hashing to 5ecc4d3de68ae828a2d522dff8571cbf

query I rowsort
SELECT ( 63 ) * - tab2.col1 + + 50 * col0 AS col2 FROM tab2
----
-1603
183
2879

query I rowsort
SELECT + 67 * - col0 FROM tab1 AS cor0
----
-201
-4288
-5360

query I rowsort
SELECT DISTINCT + - cor0.col0 + col2 * + cor0.col1 FROM tab1 AS cor0
----
1168
1401
506

query I rowsort
SELECT DISTINCT - 25 + - ( cor0.col0 ) * col0 AS col2 FROM tab2 AS cor0
----
-6109
-6266
-74

skipif mysql # not compatible
query I rowsort
SELECT CAST ( + col2 AS REAL ) + - col0 FROM tab1
----
-7
16
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - col1 ) col2 FROM tab0 AS cor0
----
-86
-91
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-3147
SELECT - 43 DIV - col0 + - col2 * - col0 FROM tab2 cor0
----
195
2028
3002

skipif mysql # not compatible
query I rowsort label-3147
SELECT - 43 / - col0 + - col2 * - col0 FROM tab2 cor0
----
195
2028
3002

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 79 col0 FROM tab1 AS cor0
----
79
79
79

query I rowsort
SELECT + cor0.col2 + cor0.col2 * col1 FROM tab1 cor0
----
1344
1458
627

query I rowsort
SELECT - 34 + col1 FROM tab1 AS cor0
----
-21
-24
-8

query I rowsort
SELECT + tab1.col2 * 99 FROM tab1
----
5346
5643
9504

query I rowsort
SELECT DISTINCT + col0 * 24 AS col0 FROM tab1
----
1536
1920
72

onlyif mysql # use DIV operator for integer division
query I rowsort label-3153
SELECT 89 DIV 24 FROM tab0, tab2 cor0
----
9 values hashing to 3cf1e377a943589897b8d431a834f1ba

skipif mysql # not compatible
query I rowsort label-3153
SELECT 89 / 24 FROM tab0, tab2 cor0
----
9 values hashing to 3cf1e377a943589897b8d431a834f1ba

query I rowsort
SELECT - cor0.col0 * + ( cor0.col0 ) + - cor0.col1 AS col1 FROM tab2 AS cor0
----
-6143
-6258
-80

onlyif mysql # use DIV operator for integer division
query I rowsort label-3155
SELECT col0 + ( + 63 ) DIV + col1 + + col1 AS col1 FROM tab0 AS cor0
----
110
132
180

skipif mysql # not compatible
query I rowsort label-3155
SELECT col0 + ( + 63 ) / + col1 + + col1 AS col1 FROM tab0 AS cor0
----
110
132
180

query I rowsort
SELECT - - col1 * col1 + - col1 FROM tab1 AS cor0
----
156
650
90

query I rowsort
SELECT DISTINCT + cor0.col2 * + cor0.col0 AS col0 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT ALL - col0 * - cor0.col0 + cor0.col2 AS col1 FROM tab2 AS cor0
----
6110
6279
76

query I rowsort
SELECT - ( 8 ) + col1 * + ( col2 ) AS col2 FROM tab1 AS cor0
----
1240
1396
562

query I rowsort
SELECT 62 + col2 FROM tab0 AS cor0
----
144
63
95

query I rowsort
SELECT 33 AS col1 FROM tab2 cor0
----
33
33
33

onlyif mysql # use DIV operator for integer division
query I rowsort label-3162
SELECT - 35 DIV - col0 FROM tab0 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-3162
SELECT - 35 / - col0 FROM tab0 AS cor0
----
0
1
1

query I rowsort
SELECT ALL + ( 97 ) + tab0.col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 64b28c86e19477c17cfc8ee358d1395b

query I rowsort
SELECT ALL - col2 * - 40 FROM tab2
----
1040
1080
1520

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3165
SELECT - CAST( - 53 AS SIGNED ) FROM tab0, tab1 AS cor0
----
9 values hashing to fede6033dee346dbd272085c05724fda

skipif mysql # not compatible
query I rowsort label-3165
SELECT - CAST ( - 53 AS INTEGER ) FROM tab0, tab1 AS cor0
----
9 values hashing to fede6033dee346dbd272085c05724fda

query I rowsort
SELECT DISTINCT + - cor0.col0 - col2 AS col1 FROM tab2 cor0
----
-104
-117
-34

onlyif mysql # use DIV operator for integer division
query I rowsort label-3167
SELECT + col1 DIV 31 + col2 AS col2 FROM tab2 AS cor0
----
27
28
38

skipif mysql # not compatible
query I rowsort label-3167
SELECT + col1 / 31 + col2 AS col2 FROM tab2 AS cor0
----
27
28
38

query I rowsort
SELECT ALL - 89 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 924a74d31360fa4301c953b423a4710e

query I rowsort
SELECT DISTINCT + - 91 * - col0 FROM tab1 AS cor0
----
273
5824
7280

query I rowsort
SELECT DISTINCT - 7 AS col0 FROM tab0 cor0
----
-7

onlyif mysql # use DIV operator for integer division
query I rowsort label-3171
SELECT - col0 DIV - cor0.col0 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3171
SELECT - col0 / - cor0.col0 FROM tab2 AS cor0
----
1
1
1

query I rowsort
SELECT ALL - 28 * col1 + col1 FROM tab0 AS cor0
----
-2322
-2457
-2619

query I rowsort
SELECT - cor0.col1 FROM tab2, tab0 cor0, tab1 AS cor1
----
27 values hashing to d4c673b7444eb9927ec63175b43c6b84

query I rowsort
SELECT ALL + 93 FROM tab2, tab1 cor0
----
9 values hashing to e64105dfaa9fbd201adbb1f3f6968bde

onlyif mysql # use DIV operator for integer division
query I rowsort label-3175
SELECT ALL col1 * + col0 * col0 - - cor0.col0 DIV + col0 FROM tab1 AS cor0
----
235
40961
83201

skipif mysql # not compatible
query I rowsort label-3175
SELECT ALL col1 * + col0 * col0 - - cor0.col0 / + col0 FROM tab1 AS cor0
----
235
40961
83201

query I rowsort
SELECT DISTINCT - col1 + + col0 * col1 AS col1 FROM tab1 AS cor0
----
1027
52
630

query I rowsort
SELECT ALL - - col0 + col0 AS col0 FROM tab1 AS cor0
----
128
160
6

query I rowsort
SELECT ALL 18 * - col2 AS col0 FROM tab1
----
-1026
-1728
-972

query I rowsort
SELECT 10 + col2 + col0 AS col1 FROM tab1
----
131
186
67

query I rowsort
SELECT ALL col2 * col2 * - col0 - 47 * 12 * + tab0.col2 AS col2 FROM tab0
----
-44748
-599
-644684

query I rowsort
SELECT 24 + - 19 * col0 - 1 FROM tab1
----
-1193
-1497
-34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 17 * + cor0.col2 col1 FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to d8f5773057974bf48520932c250097ad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( col0 ) * col2 col1 FROM tab1
----
162
3648
7680

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3184
SELECT DISTINCT - CAST( NULL AS SIGNED ) col1 FROM tab0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3184
SELECT DISTINCT - CAST ( NULL AS INTEGER ) col1 FROM tab0
----
NULL

query I rowsort
SELECT - ( + 13 ) * - col2 * + col2 AS col2 FROM tab1
----
119808
37908
42237

query I rowsort
SELECT ( + col2 ) * 45 + + col2 AS col1 FROM tab1
----
2484
2622
4416

query I rowsort
SELECT ALL - col2 + + tab1.col0 AS col1 FROM tab1
----
-16
-51
7

query I rowsort
SELECT 89 + + col2 AS col2 FROM tab1 AS cor0
----
143
146
185

query I rowsort
SELECT - ( + col0 ) + - col1 * - col2 AS col0 FROM tab2 AS cor0
----
1456
567
830

query I rowsort
SELECT ALL + + 61 FROM tab2 cor0
----
61
61
61

query I rowsort
SELECT DISTINCT - - col1 * - col1 + + ( cor0.col2 ) * + col0 FROM tab2 AS cor0
----
-1453
-772
2713

query I rowsort
SELECT + col0 + col1 * + 55 AS col1 FROM tab2 AS cor0
----
1014
1712
3323

query I rowsort
SELECT - col2 * cor0.col2 + col1 * - col0 AS col2 FROM tab1 AS cor0
----
-10256
-2994
-3889

query I rowsort
SELECT + - 52 * + col2 + + 87 * + col1 FROM tab2 AS cor0
----
-497
1293
3781

query I rowsort
SELECT ( - col1 ) * - col2 + col1 + col2 AS col2 FROM tab1
----
1357
1484
637

query I rowsort
SELECT ALL col2 + - col0 * 80 * col1 FROM tab1
----
-51143
-6186
-83104

query I rowsort
SELECT col0 * - col1 * - col2 + col1 FROM tab2
----
119711
51051
5890

query I rowsort
SELECT ( col0 ) + ( col0 ) FROM tab0
----
178
48
70

query I rowsort
SELECT ALL 56 + - col2 AS col0 FROM tab0
----
-26
23
55

query I rowsort
SELECT - + 38 + + col1 AS col0 FROM tab0 AS cor0
----
48
53
59

query I rowsort
SELECT DISTINCT - + col2 + col2 * - col2 AS col0 FROM tab0 AS cor0
----
-1122
-2
-6806

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3202
SELECT + 53 + col0 * + 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-3202
SELECT + 53 + col0 * + 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 DISTINCT - 18 + col0 * + 41 * col1 col0 FROM tab0
----
139177
332041
84606

onlyif mysql # use DIV operator for integer division
query I rowsort label-3204
SELECT 11 DIV col1 AS col0 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3204
SELECT 11 / col1 AS col0 FROM tab0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3205
SELECT cor0.col0 + CAST( 66 AS SIGNED ) * + col0 FROM tab0 AS cor0
----
1608
2345
5963

skipif mysql # not compatible
query I rowsort label-3205
SELECT cor0.col0 + CAST ( 66 AS INTEGER ) * + col0 FROM tab0 AS cor0
----
1608
2345
5963

query I rowsort
SELECT ALL + col2 * ( col0 ) * + col1 FROM tab1 AS cor0
----
36480
4212
99840

onlyif mysql # use DIV operator for integer division
query I rowsort label-3207
SELECT DISTINCT + col1 DIV - 84 FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-3207
SELECT DISTINCT + col1 / - 84 FROM tab2 cor0
----
0

query I rowsort
SELECT DISTINCT col2 + + cor0.col2 * - col0 FROM tab2 AS cor0
----
-162
-2002
-2964

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3209
SELECT + - col2 * CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3209
SELECT + - col2 * CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col0 - + col1 col1 FROM tab0 AS cor0
----
-110
-132
-180

query I rowsort
SELECT + - col1 + - cor0.col2 AS col1 FROM tab1 AS cor0
----
-109
-67
-80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3212
SELECT ALL - col2 * CAST( NULL AS SIGNED ) + + 76 AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3212
SELECT ALL - col2 * CAST ( NULL AS INTEGER ) + + 76 AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col2 + 9 AS col1 FROM tab1 AS cor0
----
105
63
66

onlyif mysql # use DIV operator for integer division
query I rowsort label-3214
SELECT DISTINCT + col1 DIV cor0.col2 - + col2 AS col0 FROM tab1 AS cor0
----
-54
-57
-96

skipif mysql # not compatible
query I rowsort label-3214
SELECT DISTINCT + col1 / cor0.col2 - + col2 AS col0 FROM tab1 AS cor0
----
-54
-57
-96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3215
SELECT - col0 + - CAST( col2 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-171
-36
-57

skipif mysql # not compatible
query I rowsort label-3215
SELECT - col0 + - CAST ( col2 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-171
-36
-57

query I rowsort
SELECT - cor1.col0 AS col1 FROM tab0, tab2, tab2 AS cor0, tab2 AS cor1
----
81 values hashing to adaea38eae032c1639715f21831dd376

query I rowsort
SELECT + 78 * - col0 * + col2 + + 67 + - col2 FROM tab0
----
-2664
-569259
-61742

query I rowsort
SELECT ALL + - col2 + + 73 * col0 FROM tab1 AS cor0
----
165
4615
5744

query I rowsort
SELECT ALL - + col0 - - cor0.col1 FROM tab1 AS cor0
----
-54
-67
23

query I rowsort
SELECT DISTINCT + cor0.col2 + - col0 * col1 * + col1 FROM tab0 AS cor0
----
-177471
-329314
-736927

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3221
SELECT DISTINCT - + col2 + - CAST( NULL AS SIGNED ) - col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3221
SELECT DISTINCT - + col2 + - CAST ( NULL AS INTEGER ) - col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT - 86 * 24 + col0 AS col1 FROM tab0 AS cor0
----
-1975
-2029
-2040

query I rowsort
SELECT DISTINCT + - col2 * - cor0.col1 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT ALL + 57 * - cor0.col1 FROM tab2 AS cor0
----
-1767
-3363
-969

query I rowsort
SELECT DISTINCT - 59 * - col0 FROM tab0 cor0
----
1416
2065
5251

query I rowsort
SELECT + ( + 29 ) + - col1 * col2 AS col0 FROM tab2 AS cor0
----
-1505
-617
-808

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( + col1 ) * + col1 + - col2 * col1 col0 FROM tab2 AS cor0
----
-357
124
1947

query I rowsort
SELECT ALL - 63 * col2 AS col0 FROM tab2 AS cor0
----
-1638
-1701
-2394

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3229
SELECT CAST( + cor0.col1 AS SIGNED ) * + col0 FROM tab2 cor0
----
1343
217
4602

skipif mysql # not compatible
query I rowsort label-3229
SELECT CAST ( + cor0.col1 AS INTEGER ) * + col0 FROM tab2 cor0
----
1343
217
4602

query I rowsort
SELECT + 69 * col2 FROM tab1 AS cor0
----
3726
3933
6624

query I rowsort
SELECT DISTINCT - + 22 + 93 AS col0 FROM tab2 AS cor0
----
71

query I rowsort
SELECT DISTINCT + col1 * + 34 FROM tab0 cor0
----
2924
3094
3298

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 54 col0 FROM tab0 AS cor0
----
-54
-54
-54

query I rowsort
SELECT 23 * col2 FROM tab2 cor0
----
598
621
874

query I rowsort
SELECT + + col2 * - col1 + col1 * + col0 * cor0.col1 + + col0 AS col2 FROM tab0 AS cor0
----
174690
329253
729636

query I rowsort
SELECT ALL col1 - col2 * - col1 FROM tab1 AS cor0
----
1261
1430
580

query I rowsort
SELECT + 80 + + col1 FROM tab0 AS cor0
----
166
171
177

query I rowsort
SELECT - col1 + col2 * - 41 AS col2 FROM tab2 AS cor0
----
-1125
-1138
-1575

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col0 + - col0 * + ( col1 ) col1 FROM tab1 AS cor0
----
-1120
-704
-81

query I rowsort
SELECT - ( col2 + tab1.col1 ) * + 91 FROM tab1
----
-6097
-7280
-9919

query I rowsort
SELECT ALL + col2 + col2 - tab2.col0 FROM tab2
----
-26
-3
47

query I rowsort
SELECT ALL - cor0.col1 + - ( + col0 ) * col1 FROM tab0 AS cor0
----
-2150
-3492
-8190

query I rowsort
SELECT col1 + - 6 * - col1 FROM tab1 AS cor0
----
182
70
91

query I rowsort
SELECT DISTINCT col1 + + col2 * 47 AS col0 FROM tab2 AS cor0
----
1281
1300
1803

query I rowsort
SELECT DISTINCT - cor0.col1 * 40 FROM tab2 AS cor0
----
-1240
-2360
-680

query I rowsort
SELECT ALL + col1 + col1 + 42 * col1 AS col1 FROM tab2 AS cor0
----
1364
2596
748

query I rowsort
SELECT cor0.col2 * + col0 AS col2 FROM tab1 AS cor0
----
162
3648
7680

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3248
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-3248
SELECT ALL - col2 * - CAST ( NULL AS INTEGER ) col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-3249
SELECT DISTINCT cor0.col0 DIV - 8 AS col0 FROM tab1 AS cor0
----
-10
-8
0

skipif mysql # not compatible
query I rowsort label-3249
SELECT DISTINCT cor0.col0 / - 8 AS col0 FROM tab1 AS cor0
----
-10
-8
0

query I rowsort
SELECT + col0 * 52 FROM tab2 AS cor0
----
364
4056
4108

query I rowsort
SELECT ALL + col0 + 28 FROM tab2 AS cor0
----
106
107
35

onlyif mysql # use DIV operator for integer division
query I rowsort label-3252
SELECT col2 + - 19 DIV col1 FROM tab0 AS cor0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-3252
SELECT col2 + - 19 / col1 FROM tab0 AS cor0
----
1
33
82

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3253
SELECT ALL col2 * CAST( + ( col1 ) AS SIGNED ) FROM tab1 cor0
----
1248
1404
570

skipif mysql # not compatible
query I rowsort label-3253
SELECT ALL col2 * CAST ( + ( col1 ) AS INTEGER ) FROM tab1 cor0
----
1248
1404
570

query I rowsort
SELECT DISTINCT + cor0.col0 * + col0 * col1 FROM tab1 AS cor0
----
234
40960
83200

query I rowsort
SELECT + 3 * + col0 AS col2 FROM tab0 AS cor0
----
105
267
72

query I rowsort
SELECT DISTINCT + 11 * col0 AS col1 FROM tab0 AS cor0
----
264
385
979

query I rowsort
SELECT + ( + col2 ) * - col1 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT 63 FROM tab1, tab1 cor0
----
9 values hashing to c3eea92c46f2c49716f386a58b575025

onlyif mysql # use DIV operator for integer division
query I rowsort label-3259
SELECT DISTINCT + col2 * + col0 DIV cor0.col0 - col0 FROM tab0 cor0
----
-34
-7
9

skipif mysql # not compatible
query I rowsort label-3259
SELECT DISTINCT + col2 * + col0 / cor0.col0 - col0 FROM tab0 cor0
----
-34
-7
9

query I rowsort
SELECT ALL - - 95 * col0 * + cor0.col2 AS col2 FROM tab2 AS cor0
----
17955
192660
285190

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * col1 + 60 * col2 * col0 col0 FROM tab2 AS cor0
----
10379
118199
179831

query I rowsort
SELECT ALL + + 1 + - col0 + + col2 FROM tab1 AS cor0
----
-6
17
52

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3263
SELECT ALL ( col0 ) + + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3263
SELECT ALL ( col0 ) + + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ( + col2 ) + + 80 FROM tab2 AS cor0
----
106
107
118

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + + cor0.col0 col0 FROM tab1 AS cor0
----
29
74
93

query I rowsort
SELECT - col1 * 43 - col2 AS col1 FROM tab1
----
-1172
-487
-655

onlyif mysql # use DIV operator for integer division
query I rowsort label-3267
SELECT + col1 DIV col2 + - col2 * 8 FROM tab1 AS cor0
----
-432
-456
-768

skipif mysql # not compatible
query I rowsort label-3267
SELECT + col1 / col2 + - col2 * 8 FROM tab1 AS cor0
----
-432
-456
-768

query I rowsort
SELECT - - ( col2 ) + 21 FROM tab2 AS cor0
----
47
48
59

query I rowsort
SELECT ALL - col0 + - 43 FROM tab1
----
-107
-123
-46

query IIIIIIIII rowsort
SELECT * FROM tab1, tab2, tab0 AS cor0 WHERE NOT ( NULL ) >= ( NULL )
----

query I rowsort
SELECT ( col2 ) + - col0 FROM tab0
----
-34
-7
9

query I rowsort
SELECT DISTINCT - col1 * col1 * + col0 FROM tab2 AS cor0
----
-22831
-271518
-6727

query I rowsort
SELECT DISTINCT + 39 * col2 * 32 FROM tab2
----
32448
33696
47424

query I rowsort
SELECT + 35 + tab1.col0 AS col0 FROM tab1
----
115
38
99

query I rowsort
SELECT + - cor0.col1 * col0 + col1 * - col1 FROM tab0 AS cor0
----
-12804
-16380
-9460

query I rowsort
SELECT DISTINCT - tab1.col1 * - col1 * col2 AS col1 FROM tab1
----
16224
36504
5700

onlyif mysql # use DIV operator for integer division
query I rowsort label-3277
SELECT ALL tab1.col0 * tab1.col2 DIV col0 FROM tab1
----
54
57
96

skipif mysql # not compatible
query I rowsort label-3277
SELECT ALL tab1.col0 * tab1.col2 / col0 FROM tab1
----
54
57
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + cor0.col2 col2 FROM tab1 AS cor0
----
109
67
80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3279
SELECT ALL - CAST( NULL AS SIGNED ) + - col0 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3279
SELECT ALL - CAST ( NULL AS INTEGER ) + - col0 AS col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT col1 + + col2 + - col0 AS col2 FROM tab0
----
63
84
95

query I rowsort
SELECT ALL col2 * col0 + col0 AS col2 FROM tab2
----
196
2106
3081

query I rowsort
SELECT 51 + ( + col1 ) * col1 + + col1 AS col2 FROM tab1
----
161
233
753

query I rowsort
SELECT ALL col2 + col0 * + tab2.col1 + col2 FROM tab2
----
1419
271
4654

onlyif mysql # use DIV operator for integer division
query I rowsort label-3284
SELECT DISTINCT + col0 DIV - 26 + col0 col2 FROM tab1
----
3
62
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3284
SELECT DISTINCT + col0 / - 26 + col0 col2 FROM tab1
----
3
62
77

query I rowsort
SELECT ALL + 58 * 14 + - tab2.col0 + col0 * col1 AS col0 FROM tab2
----
1022
2076
5336

query I rowsort
SELECT ALL 4 + + 23 * - tab2.col1 * col2 FROM tab2
----
-14854
-19247
-35278

query I rowsort
SELECT ALL - + 97 AS col0 FROM tab0 AS cor0
----
-97
-97
-97

query I rowsort
SELECT - + ( - col0 ) + - col2 * - col0 FROM tab0 AS cor0
----
70
7387
816

query I rowsort
SELECT ( 43 ) AS col2 FROM tab0
----
43
43
43

query I rowsort
SELECT DISTINCT - ( col2 ) * + col1 - + cor0.col0 AS col2 FROM tab2 cor0
----
-1612
-725
-844

query I rowsort
SELECT ALL - + col1 + - col2 + col1 * + col1 AS col2 FROM tab1 AS cor0
----
33
596
60

query I rowsort
SELECT + 63 + - col0 * - col1 + cor0.col0 AS col2 FROM tab1 AS cor0
----
1183
144
767

query I rowsort
SELECT + - 64 + + cor0.col1 AS col0 FROM tab1 cor0
----
-38
-51
-54

query I rowsort
SELECT 6 + col0 FROM tab0 AS cor0
----
30
41
95

onlyif mysql # use DIV operator for integer division
query I rowsort label-3295
SELECT - ( col2 ) DIV + col0 FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-3295
SELECT - ( col2 ) / + col0 FROM tab0
----
-1
0
0

query I rowsort
SELECT + col2 + - col2 * + cor0.col1 AS col1 FROM tab0 cor0
----
-2805
-7380
-96

query I rowsort
SELECT + + ( cor0.col0 ) + + col0 AS col1 FROM tab0 AS cor0
----
178
48
70

onlyif mysql # use DIV operator for integer division
query I rowsort label-3298
SELECT + col1 - + col0 DIV col0 FROM tab1 AS cor0
----
12
25
9

skipif mysql # not compatible
query I rowsort label-3298
SELECT + col1 - + col0 / col0 FROM tab1 AS cor0
----
12
25
9

query I rowsort
SELECT - + 60 + - col0 FROM tab0 AS cor0
----
-149
-84
-95

query I rowsort
SELECT - ( 39 ) AS col2 FROM tab0 AS cor0
----
-39
-39
-39

query I rowsort
SELECT - + col0 + 84 FROM tab2 AS cor0
----
5
6
77

onlyif mysql # use DIV operator for integer division
query I rowsort label-3302
SELECT ALL - + col0 * 38 + - col2 DIV - col0 FROM tab1 AS cor0
----
-2432
-3039
-96

skipif mysql # not compatible
query I rowsort label-3302
SELECT ALL - + col0 * 38 + - col2 / - col0 FROM tab1 AS cor0
----
-2432
-3039
-96

query I rowsort
SELECT DISTINCT + 66 FROM tab0, tab0 AS cor0, tab1 cor1
----
66

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3304
SELECT - - CAST( + cor0.col1 AS SIGNED ) + + col0 FROM tab2 AS cor0
----
137
38
96

skipif mysql # not compatible
query I rowsort label-3304
SELECT - - CAST ( + cor0.col1 AS INTEGER ) + + col0 FROM tab2 AS cor0
----
137
38
96

query I rowsort
SELECT + + ( - col2 ) * + col0 + + cor0.col0 FROM tab0 AS cor0
----
-7209
-768
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * col0 + col0 col1 FROM tab2 AS cor0
----
-42
-6006
-6162

query I rowsort
SELECT ALL + col0 * cor0.col1 + col1 AS col1 FROM tab0 AS cor0
----
2150
3492
8190

query I rowsort
SELECT DISTINCT + col1 * + 6 FROM tab2
----
102
186
354

skipif mysql # not compatible
query I rowsort
SELECT + CAST ( - col0 AS REAL ) FROM tab1
----
-3
-64
-80

onlyif mysql # use DIV operator for integer division
query I rowsort label-3310
SELECT + - col0 + col0 DIV col2 FROM tab0 AS cor0
----
-24
-88
0

skipif mysql # not compatible
query I rowsort label-3310
SELECT + - col0 + col0 / col2 FROM tab0 AS cor0
----
-24
-88
0

query I rowsort
SELECT + col2 + col0 * - 28 AS col2 FROM tab0 AS cor0
----
-2410
-639
-979

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 50 col0 FROM tab2
----
50
50
50

query I rowsort
SELECT DISTINCT - ( col2 * col2 ) + - ( col2 ) + - col2 FROM tab2
----
-1520
-728
-783

query I rowsort
SELECT ALL col1 + - col0 * col2 + ( col2 ) * col0 * + 97 FROM tab0
----
3457
700699
76118

query I rowsort
SELECT - col2 * - 29 FROM tab2
----
1102
754
783

query I rowsort
SELECT - tab0.col0 + - cor0.col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 625e99802c37f1b6e261b243e04b6cd7

query I rowsort
SELECT DISTINCT 54 * + 25 AS col2 FROM tab0
----
1350

query I rowsort
SELECT - 28 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to c3e7fa3d059fc708f03c60e9cef0c115

query I rowsort
SELECT - col2 * + col0 + 12 AS col2 FROM tab0 AS cor0
----
-23
-7286
-780

query I rowsort
SELECT DISTINCT - - col0 * 93 AS col1 FROM tab1 AS cor0
----
279
5952
7440

query I rowsort
SELECT DISTINCT col0 * col2 + col1 + - col2 AS col0 FROM tab1 AS cor0
----
134
3601
7597

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * 99 + + cor0.col1 + col1 col0 FROM tab2 AS cor0
----
1717
3131
5959

onlyif mysql # use DIV operator for integer division
query I rowsort label-3323
SELECT + cor0.col2 DIV - col2 + + ( col1 ) * + col0 - col1 AS col2 FROM tab0 cor0
----
1977
3297
8007

skipif mysql # not compatible
query I rowsort label-3323
SELECT + cor0.col2 / - col2 + + ( col1 ) * + col0 - col1 AS col2 FROM tab0 cor0
----
1977
3297
8007

query I rowsort
SELECT + + col2 * col2 + - col2 FROM tab1 cor0
----
2862
3192
9120

query I rowsort
SELECT col0 - - col1 * - cor0.col1 AS col0 FROM tab1 AS cor0
----
-36
-673
-89

onlyif mysql # use DIV operator for integer division
query I rowsort label-3326
SELECT + col0 DIV 30 AS col0 FROM tab2
----
0
2
2

skipif mysql # not compatible
query I rowsort label-3326
SELECT + col0 / 30 AS col0 FROM tab2
----
0
2
2

query I rowsort
SELECT ALL - col0 - + col1 * col1 AS col1 FROM tab1
----
-164
-249
-679

query I rowsort
SELECT ALL + col0 - - ( + col1 ) AS col2 FROM tab0
----
110
132
180

query I rowsort
SELECT DISTINCT + 43 AS col1 FROM tab1, tab2 AS cor0
----
43

query I rowsort
SELECT - + 57 * - col1 * + col1 AS col0 FROM tab1 cor0
----
38532
5700
9633

query I rowsort
SELECT ALL + col2 + + 55 FROM tab2 AS cor0
----
81
82
93

query I rowsort
SELECT ALL + 41 * - col0 + col0 FROM tab1 AS cor0
----
-120
-2560
-3200

query I rowsort
SELECT 0 - + col2 * - col2 FROM tab2 cor0
----
1444
676
729

query I rowsort
SELECT ALL + ( - 55 ) + col1 FROM tab2 AS cor0
----
-24
-38
4

query I rowsort
SELECT ALL 62 * 47 AS col2 FROM tab2 AS cor0
----
2914
2914
2914

query I rowsort
SELECT ALL + 32 * - 3 + tab2.col0 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 5a13f87c91df3ecf3337a1c978f9b2ca

query I rowsort
SELECT + col1 + col0 - col0 AS col0 FROM tab1
----
10
13
26

query I rowsort
SELECT col1 + + col1 + - col1 * col0 FROM tab0
----
-1892
-3201
-7917

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col1 col0 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to d4c673b7444eb9927ec63175b43c6b84

query I rowsort
SELECT col0 * - col2 - col0 AS col0 FROM tab0 AS cor0
----
-70
-7387
-816

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3341
SELECT CAST( - col0 * col0 AS SIGNED ) + col2 AS col1 FROM tab2
----
-22
-6058
-6203

skipif mysql # not compatible
query I rowsort label-3341
SELECT CAST ( - col0 * col0 AS INTEGER ) + col2 AS col1 FROM tab2
----
-22
-6058
-6203

query I rowsort
SELECT DISTINCT 20 + - col0 FROM tab1 AS cor0
----
-44
-60
17

onlyif mysql # use DIV operator for integer division
query I rowsort label-3343
SELECT ALL + - col1 * + 9 - + col0 DIV - col0 FROM tab1 AS cor0
----
-116
-233
-89

skipif mysql # not compatible
query I rowsort label-3343
SELECT ALL + - col1 * + 9 - + col0 / - col0 FROM tab1 AS cor0
----
-116
-233
-89

query I rowsort
SELECT ALL - + col1 + 17 FROM tab2 AS cor0
----
-14
-42
0

query I rowsort
SELECT col2 * + col0 + - col0 FROM tab1 AS cor0
----
159
3584
7600

query I rowsort
SELECT ALL + + col1 * - col0 AS col1 FROM tab0 cor0
----
-2064
-3395
-8099

onlyif mysql # use DIV operator for integer division
query I rowsort label-3347
SELECT DISTINCT + col2 DIV + col1 col0 FROM tab0 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3347
SELECT DISTINCT + col2 / + col1 col0 FROM tab0 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - ( col0 ) col2 FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT ALL col2 - - col2 * + cor0.col0 FROM tab1 AS cor0
----
216
3705
7776

query I rowsort
SELECT 5 - + 20 FROM tab1 AS cor0
----
-15
-15
-15

query I rowsort
SELECT DISTINCT cor0.col2 * + col0 + + col0 AS col1 FROM tab2 AS cor0
----
196
2106
3081

onlyif mysql # use DIV operator for integer division
query I rowsort label-3352
SELECT - col1 DIV - 25 + col1 FROM tab1 AS cor0
----
10
13
27

skipif mysql # not compatible
query I rowsort label-3352
SELECT - col1 / - 25 + col1 FROM tab1 AS cor0
----
10
13
27

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + col0 * col0 col1 FROM tab0 AS cor0
----
1260
600
8010

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * + cor0.col2 col2 FROM tab1 AS cor0
----
-1248
-1404
-570

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3355
SELECT - CAST( col0 AS SIGNED ) * + col2 + - 48 col0 FROM tab0 AS cor0
----
-7346
-83
-840

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3355
SELECT - CAST ( col0 AS INTEGER ) * + col2 + - 48 col0 FROM tab0 AS cor0
----
-7346
-83
-840

onlyif mysql # use DIV operator for integer division
query I rowsort label-3356
SELECT ALL + col2 + + col2 DIV col1 FROM tab1 AS cor0
----
103
56
62

skipif mysql # not compatible
query I rowsort label-3356
SELECT ALL + col2 + + col2 / col1 FROM tab1 AS cor0
----
103
56
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col0 + + col0 col2 FROM tab1 AS cor0
----
0

query I rowsort
SELECT DISTINCT - - 42 * col2 + + col1 FROM tab2 AS cor0
----
1151
1165
1613

query I rowsort
SELECT 74 * - 70 + col2 * + ( 85 ) AS col1 FROM tab1 AS cor0
----
-335
-590
2980

query I rowsort
SELECT + col0 + + col1 * + col0 FROM tab0 AS cor0
----
2088
3430
8188

query I rowsort
SELECT + - col1 + cor0.col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + - ( col1 ) * col2 AS col2 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT + col1 * - col0 AS col0 FROM tab0 cor0
----
-2064
-3395
-8099

onlyif mysql # use DIV operator for integer division
query I rowsort label-3364
SELECT ALL + - col2 * - col2 DIV col2 AS col1 FROM tab0 AS cor0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-3364
SELECT ALL + - col2 * - col2 / col2 AS col1 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT + col0 + + col2 * col0 AS col2 FROM tab0 AS cor0
----
70
7387
816

query I rowsort
SELECT - - cor0.col2 * + 20 AS col1 FROM tab0 AS cor0
----
1640
20
660

query I rowsort
SELECT - + col1 + - col0 * cor0.col2 * - col1 AS col2 FROM tab2 AS cor0
----
119593
51017
5828

query I rowsort
SELECT DISTINCT col0 * ( cor0.col0 * col2 ) + + col2 FROM tab0 AS cor0
----
1226
19041
649604

query I rowsort
SELECT ALL col0 + + ( col0 ) FROM tab1 AS cor0
----
128
160
6

query I rowsort
SELECT DISTINCT + cor0.col0 + - 23 * col0 AS col1 FROM tab2 AS cor0
----
-154
-1716
-1738

query I rowsort
SELECT ( col0 * 79 ) AS col2 FROM tab1
----
237
5056
6320

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col1 * col1 col0 FROM tab1 AS cor0
----
-100
-169
-676

query I rowsort
SELECT 43 * cor0.col2 + - col2 AS col1 FROM tab1 cor0
----
2268
2394
4032

query I rowsort
SELECT DISTINCT + + col0 - - 58 FROM tab2 AS cor0
----
136
137
65

query I rowsort
SELECT - col2 + 2 FROM tab2 AS cor0
----
-24
-25
-36

query I rowsort
SELECT DISTINCT col0 + + 10 FROM tab1 AS cor0
----
13
74
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col0 * + ( col0 ) * col0 col0 FROM tab2 AS cor0
----
343
474552
493039

query I rowsort
SELECT DISTINCT + col2 - - cor0.col1 * + col1 FROM tab1 AS cor0
----
157
265
730

query I rowsort
SELECT + 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-3380
SELECT + + col2 + + CAST( ( - col1 ) AS SIGNED ) col1 FROM tab2 cor0
----
-33
-4
21

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3380
SELECT + + col2 + + CAST ( ( - col1 ) AS INTEGER ) col1 FROM tab2 cor0
----
-33
-4
21

onlyif mysql # use DIV operator for integer division
query I rowsort label-3381
SELECT DISTINCT - col0 DIV 74 FROM tab2 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-3381
SELECT DISTINCT - col0 / 74 FROM tab2 AS cor0
----
-1
0

query I rowsort
SELECT + col0 + ( - 24 ) AS col2 FROM tab1 AS cor0
----
-21
40
56

query I rowsort
SELECT ALL - col0 * - cor0.col0 * cor0.col1 + + col1 AS col0 FROM tab2 AS cor0
----
106114
1550
359015

query I rowsort
SELECT - 54 + - col1 + col2 AS col2 FROM tab0 AS cor0
----
-107
-150
-63

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3385
SELECT ALL + + CAST( - col0 AS SIGNED ) col2 FROM tab1 AS cor0
----
-3
-64
-80

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3385
SELECT ALL + + CAST ( - col0 AS INTEGER ) col2 FROM tab1 AS cor0
----
-3
-64
-80

query I rowsort
SELECT + 3 * col1 + + col2 + - 8 FROM tab1 AS cor0
----
124
127
79

query I rowsort
SELECT - col0 + + col1 * + cor0.col1 + - ( - 49 ) FROM tab1 AS cor0
----
138
722
85

query I rowsort
SELECT DISTINCT - + ( + col1 ) AS col2 FROM tab2 AS cor0
----
-17
-31
-59

query I rowsort
SELECT DISTINCT - cor0.col2 - + col0 * col1 * - col2 FROM tab1 AS cor0
----
36423
4158
99744

query I rowsort
SELECT - + col2 - ( col2 ) FROM tab0 cor0
----
-164
-2
-66

query I rowsort
SELECT + + col1 - + 33 FROM tab0 AS cor0
----
53
58
64

query I rowsort
SELECT ALL + col2 * col1 * - col0 + cor0.col1 FROM tab1 AS cor0
----
-36470
-4186
-99827

query I rowsort
SELECT ALL ( + 37 ) + - col0 FROM tab0 AS cor0
----
-52
13
2

query I rowsort
SELECT DISTINCT + - 64 * 80 FROM tab2 AS cor0
----
-5120

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * - col2 col2 FROM tab1 AS cor0
----
-162
-3648
-7680

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col0 * col1 * - col1 col0 FROM tab2 AS cor0
----
22831
271518
6727

query I rowsort
SELECT - + ( col0 ) * + 7 + 60 + col0 AS col2 FROM tab1 AS cor0
----
-324
-420
42

query I rowsort
SELECT DISTINCT 21 + col0 AS col0 FROM tab2 cor0
----
100
28
99

query I rowsort
SELECT - ( col1 ) + + 3 FROM tab1 AS cor0
----
-10
-23
-7

query I rowsort
SELECT DISTINCT - 32 AS col0 FROM tab1 cor0
----
-32

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3401
SELECT DISTINCT CAST( - col2 AS SIGNED ) + - col1 FROM tab2
----
-55
-58
-85

skipif mysql # not compatible
query I rowsort label-3401
SELECT DISTINCT CAST ( - col2 AS INTEGER ) + - col1 FROM tab2
----
-55
-58
-85

query I rowsort
SELECT DISTINCT 46 + + col1 AS col1 FROM tab1
----
56
59
72

query I rowsort
SELECT ALL 54 + col0 FROM tab1
----
118
134
57

query I rowsort
SELECT col0 + - col0 + ( - col1 ) AS col2 FROM tab0 AS cor0
----
-86
-91
-97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3405
SELECT + + col1 + col0 - - CAST( NULL AS DECIMAL ) * + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3405
SELECT + + col1 + col0 - - CAST ( NULL AS REAL ) * + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-3406
SELECT + 23 DIV - col0 + cor0.col2 DIV col2 - col1 FROM tab0 AS cor0
----
-85
-90
-96

skipif mysql # not compatible
query I rowsort label-3406
SELECT + 23 / - col0 + cor0.col2 / col2 - col1 FROM tab0 AS cor0
----
-85
-90
-96

query I rowsort
SELECT - 0 * - col0 AS col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL cor0.col2 * ( cor0.col1 ) AS col1 FROM tab2 cor0
----
1534
646
837

onlyif mysql # use DIV operator for integer division
query I rowsort label-3409
SELECT + - col1 DIV ( - col0 + + col1 ) FROM tab2 AS cor0
----
-1
0
3

skipif mysql # not compatible
query I rowsort label-3409
SELECT + - col1 / ( - col0 + + col1 ) FROM tab2 AS cor0
----
-1
0
3

query I rowsort
SELECT DISTINCT - 7 AS col0 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
-7

query I rowsort
SELECT DISTINCT - cor0.col2 * - 96 AS col2 FROM tab0 AS cor0
----
3168
7872
96

query I rowsort
SELECT - col2 + col0 * col1 AS col0 FROM tab1 AS cor0
----
24
583
944

query I rowsort
SELECT + col1 + - ( cor0.col2 * + cor0.col0 ) AS col2 FROM tab0 AS cor0
----
-706
-7207
62

query I rowsort
SELECT + - ( + cor0.col0 ) + - cor0.col1 AS col2 FROM tab0 AS cor0
----
-110
-132
-180

query I rowsort
SELECT DISTINCT 11 FROM tab1, tab2 cor0
----
11

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + 81 + tab1.col2 * col1 col2 FROM tab1
----
1233
1431
594

query I rowsort
SELECT ( col1 ) + - col0 + - col0 * 99 * - col2 AS col2 FROM tab1
----
16061
361098
760253

query I rowsort
SELECT ALL + 76 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 30b8941a700cffd5b983116383bd42d5

query I rowsort
SELECT tab1.col1 + 49 AS col0 FROM tab1, tab0 cor0, tab1 AS cor1
----
27 values hashing to 03325b23bdd40586e3b5cb1d2ea677da

query I rowsort
SELECT DISTINCT - 31 * - 94 FROM tab1 AS cor0
----
2914

query I rowsort
SELECT DISTINCT col2 + + cor0.col0 * - cor0.col1 FROM tab2 cor0
----
-1305
-190
-4576

query I rowsort
SELECT + ( tab2.col0 ) + + 28 FROM tab2, tab0 AS cor0
----
9 values hashing to 5f02c5f0d1af2b7a6176cabe2833a775

skipif mysql # not compatible
query I rowsort
SELECT ALL CAST ( + col0 AS REAL ) * tab2.col0 * 0 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT + 8 * col0 AS col1 FROM tab1
----
24
512
640

query I rowsort
SELECT ALL + col1 + ( + col2 ) * col1 - 11 FROM tab1
----
1250
1419
569

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3426
SELECT col2 / CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3426
SELECT col2 / CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - col1 - 31 AS col0 FROM tab0 AS cor0
----
-117
-122
-128

onlyif mysql # use DIV operator for integer division
query I rowsort label-3428
SELECT + col2 + + 53 DIV - col0 AS col2 FROM tab1 AS cor0
----
37
57
96

skipif mysql # not compatible
query I rowsort label-3428
SELECT + col2 + + 53 / - col0 AS col2 FROM tab1 AS cor0
----
37
57
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-3429
SELECT ( ( col2 ) ) + col2 DIV col0 FROM tab0 AS cor0
----
1
34
82

skipif mysql # not compatible
query I rowsort label-3429
SELECT ( ( col2 ) ) + col2 / col0 FROM tab0 AS cor0
----
1
34
82

onlyif mysql # use DIV operator for integer division
query I rowsort label-3430
SELECT - + 89 DIV - col0 + cor0.col0 FROM tab2 AS cor0
----
19
79
80

skipif mysql # not compatible
query I rowsort label-3430
SELECT - + 89 / - col0 + cor0.col0 FROM tab2 AS cor0
----
19
79
80

query I rowsort
SELECT DISTINCT - 28 * col0 AS col2 FROM tab2 AS cor0
----
-196
-2184
-2212

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + + col2 col2 FROM tab1 AS cor0
----
121
176
57

onlyif mysql # use DIV operator for integer division
query I rowsort label-3433
SELECT - col2 DIV - col0 + - col0 AS col1 FROM tab2 AS cor0
----
-4
-78
-79

skipif mysql # not compatible
query I rowsort label-3433
SELECT - col2 / - col0 + - col0 AS col1 FROM tab2 AS cor0
----
-4
-78
-79

query I rowsort
SELECT 71 + + 64 AS col1 FROM tab1 cor0
----
135
135
135

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3435
SELECT ALL + - CAST( NULL AS SIGNED ) * cor0.col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3435
SELECT ALL + - CAST ( NULL AS INTEGER ) * cor0.col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - ( + ( col0 ) ) + 12 FROM tab2 AS cor0
----
-66
-67
5

query I rowsort
SELECT DISTINCT 10 + - cor0.col1 * - col1 AS col2 FROM tab1 AS cor0
----
110
179
686

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3438
SELECT DISTINCT - + CAST( NULL AS SIGNED ) + col0 AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3438
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) + col0 AS col2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT col1 * - col2 + col0 * 94 AS col1 FROM tab1 cor0
----
-1122
5446
6272

query I rowsort
SELECT DISTINCT - + ( 96 ) * col0 + - 89 * + col1 AS col0 FROM tab2 cor0
----
-12739
-3431
-9097

query I rowsort
SELECT DISTINCT + tab2.col0 * - col0 * - col0 AS col2 FROM tab2
----
343
474552
493039

query I rowsort
SELECT ALL 25 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 2c77240b60ac01c717a5ed5d0165f450

query I rowsort
SELECT ALL + ( + 8 ) AS col1 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 33069adc3c1142d31511ec88fcfa40af

query I rowsort
SELECT DISTINCT - + col0 * - col0 + ( col0 ) FROM tab0 AS cor0
----
1260
600
8010

query I rowsort
SELECT - 51 * - col1 AS col0 FROM tab1 cor0
----
1326
510
663

query I rowsort
SELECT - col2 + + col2 * col1 AS col2 FROM tab2 AS cor0
----
1508
608
810

query I rowsort
SELECT DISTINCT + - cor0.col0 AS col2 FROM tab1 cor0
----
-3
-64
-80

query I rowsort
SELECT - - cor0.col2 + + cor0.col2 * - 96 FROM tab1 AS cor0
----
-5130
-5415
-9120

query I rowsort
SELECT ALL cor0.col0 * 35 AS col1 FROM tab1 AS cor0
----
105
2240
2800

onlyif mysql # use DIV operator for integer division
query I rowsort label-3450
SELECT ALL - + col2 + col1 DIV - 29 FROM tab0 AS cor0
----
-35
-4
-85

skipif mysql # not compatible
query I rowsort label-3450
SELECT ALL - + col2 + col1 / - 29 FROM tab0 AS cor0
----
-35
-4
-85

query I rowsort
SELECT + + cor0.col0 + + cor0.col2 * + col1 AS col1 FROM tab2 AS cor0
----
1612
725
844

onlyif mysql # use DIV operator for integer division
query I rowsort label-3452
SELECT DISTINCT - + col1 + - col0 DIV col2 FROM tab1 AS cor0
----
-11
-13
-26

skipif mysql # not compatible
query I rowsort label-3452
SELECT DISTINCT - + col1 + - col0 / col2 FROM tab1 AS cor0
----
-11
-13
-26

query I rowsort
SELECT DISTINCT - col2 * col2 + col1 AS col1 FROM tab0 AS cor0
----
-1003
-6633
96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3454
SELECT - - col0 + CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3454
SELECT - - col0 + CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + cor0.col1 + - col2 FROM tab1 cor0
----
-28
-47
-83

onlyif mysql # use DIV operator for integer division
query I rowsort label-3456
SELECT DISTINCT col2 DIV col1 AS col1 FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-3456
SELECT DISTINCT col2 / col1 AS col1 FROM tab0 cor0
----
0

query I rowsort
SELECT tab0.col0 + col2 * col1 AS col0 FROM tab0
----
132
2862
7551

query I rowsort
SELECT col1 - 85 FROM tab0
----
1
12
6

query I rowsort
SELECT ALL + ( 98 ) + col2 * + col1 AS col1 FROM tab0 cor0
----
195
2936
7560

query I rowsort
SELECT - col1 * ( + col1 ) AS col1 FROM tab2 AS cor0
----
-289
-3481
-961

query I rowsort
SELECT - col0 * - col0 + - col0 + 15 * col0 AS col2 FROM tab0 AS cor0
----
1715
912
9167

query I rowsort
SELECT - col0 * + col2 * col2 + - col0 AS col1 FROM tab2
----
-114155
-5110
-52806

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3463
SELECT DISTINCT col1 * - CAST( col0 * col0 AS SIGNED ) FROM tab0
----
-118825
-49536
-720811

skipif mysql # not compatible
query I rowsort label-3463
SELECT DISTINCT col1 * - CAST ( col0 * col0 AS INTEGER ) FROM tab0
----
-118825
-49536
-720811

onlyif mysql # use DIV operator for integer division
query I rowsort label-3464
SELECT ALL - col0 DIV 11 FROM tab1
----
-5
-7
0

skipif mysql # not compatible
query I rowsort label-3464
SELECT ALL - col0 / 11 FROM tab1
----
-5
-7
0

query I rowsort
SELECT ALL col2 * + ( - ( - tab0.col2 ) + col2 ) FROM tab0
----
13448
2
2178

query I rowsort
SELECT - tab0.col2 + col0 * - col1 FROM tab0
----
-2097
-3396
-8181

query I rowsort
SELECT DISTINCT 41 * - 65 FROM tab0, tab1 cor0
----
-2665

query I rowsort
SELECT col1 + + 43 FROM tab2
----
102
60
74

query I rowsort
SELECT DISTINCT col1 * col2 + - col0 + + 45 AS col0 FROM tab1 AS cor0
----
1213
1446
551

query I rowsort
SELECT DISTINCT - 29 + - col1 + 4 * col0 FROM tab2 AS cor0
----
-32
224
270

onlyif mysql # use DIV operator for integer division
query I rowsort label-3471
SELECT ALL col1 DIV - col1 + - 0 + col1 FROM tab0 AS cor0
----
85
90
96

skipif mysql # not compatible
query I rowsort label-3471
SELECT ALL col1 / - col1 + - 0 + col1 FROM tab0 AS cor0
----
85
90
96

query I rowsort
SELECT + 69 * + col1 AS col1 FROM tab2 AS cor0
----
1173
2139
4071

query I rowsort
SELECT DISTINCT - col2 * col2 + col2 FROM tab1 AS cor0
----
-2862
-3192
-9120

query I rowsort
SELECT ALL - - col0 + col0 AS col0 FROM tab2 AS cor0
----
14
156
158

query I rowsort
SELECT ALL - 63 AS col1 FROM tab2 cor0
----
-63
-63
-63

query I rowsort
SELECT ALL col0 + + cor0.col2 AS col2 FROM tab0 AS cor0
----
171
36
57

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3477
SELECT - col0 + + col0 + + col0 * - CAST( col0 AS SIGNED ) FROM tab0
----
-1225
-576
-7921

skipif mysql # not compatible
query I rowsort label-3477
SELECT - col0 + + col0 + + col0 * - CAST ( col0 AS INTEGER ) FROM tab0
----
-1225
-576
-7921

query I rowsort
SELECT DISTINCT - 69 + - 46 * - col0 FROM tab0
----
1035
1541
4025

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3479
SELECT CAST( NULL AS SIGNED ) + + ( col2 ) - - ( + 57 ) * col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3479
SELECT CAST ( NULL AS INTEGER ) + + ( col2 ) - - ( + 57 ) * col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT 72 * + 46 * - col2 - + ( - 56 ) FROM tab0
----
-109240
-271528
-3256

query I rowsort
SELECT DISTINCT + 36 + ( - col0 ) FROM tab0
----
-53
1
12

query I rowsort
SELECT 75 + - col2 * - col2 AS col2 FROM tab0
----
1164
6799
76

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3483
SELECT 85 - - col1 * + CAST( + ( - col1 ) AS SIGNED ) * + col0 FROM tab1
----
-13435
-1943
-6315

skipif mysql # not compatible
query I rowsort label-3483
SELECT 85 - - col1 * + CAST ( + ( - col1 ) AS INTEGER ) * + col0 FROM tab1
----
-13435
-1943
-6315

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + ( + col1 ) * col0 col2 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT DISTINCT - - col2 * + cor0.col0 * + 26 AS col1 FROM tab2 cor0
----
4914
52728
78052

query I rowsort
SELECT ALL - col2 + col1 * - 14 + + ( + col1 + col0 ) FROM tab2 AS cor0
----
-180
-423
-715

onlyif mysql # use DIV operator for integer division
query I rowsort label-3487
SELECT ALL + col0 + - col2 + - 12 DIV 63 AS col1 FROM tab2 AS cor0
----
-20
41
52

skipif mysql # not compatible
query I rowsort label-3487
SELECT ALL + col0 + - col2 + - 12 / 63 AS col1 FROM tab2 AS cor0
----
-20
41
52

query I rowsort
SELECT DISTINCT - 24 * col1 FROM tab2 AS cor0
----
-1416
-408
-744

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + col1 + ( - col1 ) col0 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT - - col2 + - col1 * + col0 AS col1 FROM tab2 AS cor0
----
-1305
-190
-4576

query I rowsort
SELECT cor0.col1 * + col1 + ( + col1 ) * - col0 + col1 FROM tab2 AS cor0
----
-1037
-1062
775

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3492
SELECT ALL + col2 + + CAST( col1 AS SIGNED ) * + col1 AS col2 FROM tab1
----
157
265
730

skipif mysql # not compatible
query I rowsort label-3492
SELECT ALL + col2 + + CAST ( col1 AS INTEGER ) * + col1 AS col2 FROM tab1
----
157
265
730

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3493
SELECT - CAST( + 96 AS SIGNED ) + + col0 FROM tab2 AS cor0
----
-17
-18
-89

skipif mysql # not compatible
query I rowsort label-3493
SELECT - CAST ( + 96 AS INTEGER ) + + col0 FROM tab2 AS cor0
----
-17
-18
-89

query I rowsort
SELECT cor0.col2 * - col0 + + col2 FROM tab2 AS cor0
----
-162
-2002
-2964

query I rowsort
SELECT DISTINCT + tab1.col2 * cor0.col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 844087611670bb7fd62286733e4f81ac

query I rowsort
SELECT - - cor0.col1 + + ( + cor0.col1 ) AS col0 FROM tab0 AS cor0
----
172
182
194

query I rowsort
SELECT ALL + + col1 + + ( - col0 ) * + 90 FROM tab2 AS cor0
----
-599
-6961
-7093

query I rowsort
SELECT ALL - - 95 * col2 + - col2 AS col2 FROM tab1 AS cor0
----
5076
5358
9024

query I rowsort
SELECT DISTINCT - + col2 + - 29 FROM tab2 AS cor0
----
-55
-56
-67

query I rowsort
SELECT ALL + col0 + col1 - col2 FROM tab1 AS cor0
----
-25
-3
17

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3501
SELECT ALL 40 * + col0 + - CAST( - 68 AS SIGNED ) * col0 AS col0 FROM tab1 AS cor0
----
324
6912
8640

skipif mysql # not compatible
query I rowsort label-3501
SELECT ALL 40 * + col0 + - CAST ( - 68 AS INTEGER ) * col0 AS col0 FROM tab1 AS cor0
----
324
6912
8640

query I rowsort
SELECT DISTINCT + 92 * col0 AS col2 FROM tab0 AS cor0
----
2208
3220
8188

query I rowsort
SELECT + ( + col2 ) AS col2 FROM tab1 cor0
----
54
57
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + tab2.col2 col1 FROM tab2
----
0
0
0

query I rowsort
SELECT ALL + col0 * - 17 + - tab2.col1 FROM tab2
----
-1360
-1385
-150

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 46 col0 FROM tab1, tab2 AS cor0
----
46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - cor0.col1 col0 FROM tab1 cor0
----
1040
640
78

query I rowsort
SELECT col1 + + col2 * cor0.col1 AS col2 FROM tab2 AS cor0
----
1593
663
868

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3509
SELECT ALL + cor0.col0 * - CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3509
SELECT ALL + cor0.col0 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + ( col1 ) col1 FROM tab1 AS cor0
----
29
74
93

query I rowsort
SELECT DISTINCT - col2 * - 49 AS col1 FROM tab2
----
1274
1323
1862

query I rowsort
SELECT + ( + col1 ) + - col2 AS col0 FROM tab1 AS cor0
----
-28
-47
-83

query I rowsort
SELECT + ( + col1 ) + col1 * + ( + col2 ) * cor0.col1 FROM tab0 AS cor0
----
244154
679133
9506

query I rowsort
SELECT 30 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to da5de0c411a2c0f445400f1b63ea9f89

query I rowsort
SELECT - col2 + - tab2.col0 * 47 FROM tab2
----
-356
-3692
-3751

query I rowsort
SELECT - ( 71 ) + col0 AS col2 FROM tab0 AS cor0
----
-36
-47
18

query I rowsort
SELECT ALL 19 + + 99 + cor0.col0 FROM tab2 AS cor0
----
125
196
197

query I rowsort
SELECT ALL + + col0 * col0 + ( - col2 ) * col2 AS col1 FROM tab2 AS cor0
----
-680
4797
5408

query I rowsort
SELECT cor0.col0 + col0 AS col1 FROM tab0 cor0
----
178
48
70

onlyif mysql # use DIV operator for integer division
query I rowsort label-3520
SELECT DISTINCT - 21 DIV cor0.col1 + col2 AS col0 FROM tab2 cor0
----
26
27
37

skipif mysql # not compatible
query I rowsort label-3520
SELECT DISTINCT - 21 / cor0.col1 + col2 AS col0 FROM tab2 cor0
----
26
27
37

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + col2 ) * + col2 + + col1 col0 FROM tab2 AS cor0
----
-1427
-617
-698

query I rowsort
SELECT DISTINCT + + 15 * - cor0.col2 + + col0 FROM tab2 AS cor0
----
-312
-398
-491

onlyif mysql # use DIV operator for integer division
query I rowsort label-3523
SELECT + - ( + col0 ) + col0 DIV col2 FROM tab1 AS cor0
----
-3
-63
-80

skipif mysql # not compatible
query I rowsort label-3523
SELECT + - ( + col0 ) + col0 / col2 FROM tab1 AS cor0
----
-3
-63
-80

query I rowsort
SELECT DISTINCT + 99 + col0 + - ( col2 ) * col1 * col1 AS col1 FROM tab0 AS cor0
----
-243945
-678854
-9275

query I rowsort
SELECT col1 + 45 AS col1 FROM tab1
----
55
58
71

query I rowsort
SELECT col2 + - col0 * ( - 69 ) FROM tab1 AS cor0
----
261
4473
5616

query I rowsort
SELECT cor0.col1 + + col0 + 65 * col2 AS col1 FROM tab2 AS cor0
----
1793
1827
2566

onlyif mysql # use DIV operator for integer division
query I rowsort label-3528
SELECT DISTINCT col0 * col2 DIV 24 FROM tab1
----
152
320
6

skipif mysql # not compatible
query I rowsort label-3528
SELECT DISTINCT col0 * col2 / 24 FROM tab1
----
152
320
6

query I rowsort
SELECT col2 + 20 * col1 AS col1 FROM tab1 AS cor0
----
257
356
574

query I rowsort
SELECT DISTINCT col2 * - col0 * - col1 + col2 AS col0 FROM tab0 AS cor0
----
3396
664200
68145

query I rowsort
SELECT ALL - - col0 + - col1 AS col1 FROM tab1 AS cor0
----
-23
54
67

query I rowsort
SELECT DISTINCT + tab2.col1 * col1 - col0 FROM tab2
----
210
3403
954

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 62 * col2 + col2 * - col2 + + col1 * 53 col2 FROM tab2
----
1813
2588
4063

query I rowsort
SELECT DISTINCT + col2 * + col0 - + col0 AS col2 FROM tab0
----
0
7209
768

onlyif mysql # use DIV operator for integer division
query I rowsort label-3535
SELECT DISTINCT + 54 - tab1.col0 DIV ( col1 * + col2 + + col1 ) FROM tab1
----
54

skipif mysql # not compatible
query I rowsort label-3535
SELECT DISTINCT + 54 - tab1.col0 / ( col1 * + col2 + + col1 ) FROM tab1
----
54

query I rowsort
SELECT ALL + + cor0.col2 + + col0 AS col0 FROM tab1 AS cor0
----
121
176
57

query I rowsort
SELECT DISTINCT + ( 91 ) AS col0 FROM tab0, tab1 AS cor0
----
91

query I rowsort
SELECT DISTINCT col1 + - 65 FROM tab2
----
-34
-48
-6

query I rowsort
SELECT ALL col0 * - tab1.col0 + col0 AS col2 FROM tab1
----
-4032
-6
-6320

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 67 col1 FROM tab2 AS cor0
----
-67
-67
-67

query I rowsort
SELECT - + 13 + + 93 * - cor0.col2 * col1 FROM tab1 cor0
----
-116077
-130585
-53023

query I rowsort
SELECT + ( - cor0.col0 ) * - col2 * - col0 FROM tab2 AS cor0
----
-1323
-158184
-237158

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3543
SELECT DISTINCT + CAST( NULL AS SIGNED ) / - cor0.col2 - col1 col1 FROM tab1 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3543
SELECT DISTINCT + CAST ( NULL AS INTEGER ) / - cor0.col2 - col1 col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT - ( - col2 ) + - col1 * + cor0.col1 AS col2 FROM tab0 AS cor0
----
-7363
-8199
-9408

onlyif mysql # use DIV operator for integer division
query I rowsort label-3545
SELECT ALL 69 + col2 * col2 DIV - col0 AS col0 FROM tab1 AS cor0
----
-46
-903
19

skipif mysql # not compatible
query I rowsort label-3545
SELECT ALL 69 + col2 * col2 / - col0 AS col0 FROM tab1 AS cor0
----
-46
-903
19

query I rowsort
SELECT DISTINCT col2 * 44 AS col0 FROM tab0
----
1452
3608
44

query I rowsort
SELECT + + ( 45 ) AS col2 FROM tab1 AS cor0
----
45
45
45

query I rowsort
SELECT - ( 83 ) * col2 AS col2 FROM tab1 AS cor0
----
-4482
-4731
-7968

onlyif mysql # use DIV operator for integer division
query I rowsort label-3549
SELECT ALL 24 * col2 + col0 DIV col0 FROM tab1 AS cor0
----
1297
1369
2305

skipif mysql # not compatible
query I rowsort label-3549
SELECT ALL 24 * col2 + col0 / col0 FROM tab1 AS cor0
----
1297
1369
2305

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3550
SELECT ALL + + CAST( NULL AS SIGNED ) + col0 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3550
SELECT ALL + + CAST ( NULL AS INTEGER ) + col0 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT ( - 97 ) * - col1 FROM tab1 AS cor0
----
1261
2522
970

onlyif mysql # use DIV operator for integer division
query I rowsort label-3552
SELECT ALL - 73 DIV - col0 + + col0 + + col2 AS col0 FROM tab0 cor0
----
171
38
60

skipif mysql # not compatible
query I rowsort label-3552
SELECT ALL - 73 / - col0 + + col0 + + col2 AS col0 FROM tab0 cor0
----
171
38
60

query I rowsort
SELECT ALL - 96 + 78 FROM tab0 AS cor0
----
-18
-18
-18

query I rowsort
SELECT ALL + - 79 + ( + col0 ) + cor0.col0 AS col2 FROM tab0 AS cor0
----
-31
-9
99

query I rowsort
SELECT - + 40 + + 28 * - col2 FROM tab2 AS cor0
----
-1104
-768
-796

query I rowsort
SELECT - col2 + + 89 AS col2 FROM tab0
----
56
7
88

query I rowsort
SELECT ALL - ( col2 ) * + col0 AS col0 FROM tab0
----
-35
-7298
-792

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + ( col0 ) col0 FROM tab0 AS cor0
----
110
132
180

query I rowsort
SELECT - col0 * col2 + - col1 AS col1 FROM tab0 AS cor0
----
-132
-7389
-878

query I rowsort
SELECT 13 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 184e52d7aa5aa66591291e39c67a3dfb

query I rowsort
SELECT + - 16 + + col0 FROM tab1 AS cor0
----
-13
48
64

onlyif mysql # use DIV operator for integer division
query I rowsort label-3562
SELECT - 20 + + col1 DIV col1 AS col1 FROM tab2 AS cor0
----
-19
-19
-19

skipif mysql # not compatible
query I rowsort label-3562
SELECT - 20 + + col1 / col1 AS col1 FROM tab2 AS cor0
----
-19
-19
-19

query I rowsort
SELECT DISTINCT + + ( 46 ) FROM tab1 AS cor0
----
46

query I rowsort
SELECT ALL 5 + col1 FROM tab2 AS cor0
----
22
36
64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col1 col0 FROM tab2, tab1 cor0, tab1 AS cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 66 * - cor0.col1 col1 FROM tab2 AS cor0
----
1122
2046
3894

query I rowsort
SELECT ALL + 67 AS col0 FROM tab2 AS cor0
----
67
67
67

query I rowsort
SELECT - cor0.col1 + col0 * - col2 FROM tab1 AS cor0
----
-188
-3658
-7693

query I rowsort
SELECT DISTINCT - col0 * col0 * 71 FROM tab0 AS cor0
----
-40896
-562391
-86975

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + cor0.col0 * + col2 * - 86 col2 FROM tab0 AS cor0
----
-3010
-627628
-68112

onlyif mysql # use DIV operator for integer division
query I rowsort label-3571
SELECT DISTINCT cor0.col0 DIV - cor0.col2 FROM tab0 AS cor0
----
-1
-35
0

skipif mysql # not compatible
query I rowsort label-3571
SELECT DISTINCT cor0.col0 / - cor0.col2 FROM tab0 AS cor0
----
-1
-35
0

query I rowsort
SELECT DISTINCT + col1 + + cor0.col1 AS col0 FROM tab1 AS cor0
----
20
26
52

query I rowsort
SELECT ALL ( col0 + col2 ) FROM tab1
----
121
176
57

query I rowsort
SELECT 12 * - tab2.col2 - - col1 FROM tab2
----
-253
-293
-439

query I rowsort
SELECT 39 FROM tab1, tab2 AS cor0
----
9 values hashing to 5ecc4d3de68ae828a2d522dff8571cbf

query I rowsort
SELECT ALL + tab0.col0 * + col2 AS col0 FROM tab0
----
35
7298
792

query I rowsort
SELECT ALL - + cor0.col2 * + 57 + - col1 AS col1 FROM tab2 cor0
----
-1541
-1570
-2183

query I rowsort
SELECT + col2 * ( + col1 ) FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT col0 + 60 + col0 * + col0 AS col2 FROM tab0 AS cor0
----
1320
660
8070

query I rowsort
SELECT ALL + col1 * - ( + col2 ) AS col1 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT DISTINCT - + col0 * col2 + col2 AS col0 FROM tab0 AS cor0
----
-34
-7216
-759

query I rowsort
SELECT ALL - + col0 * ( col2 ) + + col0 FROM tab2 cor0
----
-182
-1950
-2923

onlyif mysql # use DIV operator for integer division
query I rowsort label-3583
SELECT DISTINCT - tab0.col2 DIV + CAST( 59 AS SIGNED ) AS col2 FROM tab2, tab1, tab2 AS cor0, tab0
----
-1
0

skipif mysql # not compatible
query I rowsort label-3583
SELECT DISTINCT - tab0.col2 / + CAST ( 59 AS INTEGER ) AS col2 FROM tab2, tab1, tab2 AS cor0, tab0
----
-1
0

query I rowsort
SELECT + + cor0.col1 * col0 + + 83 * col0 FROM tab1 AS cor0
----
327
5952
7680

query I rowsort
SELECT ALL - - col1 * col1 * col2 FROM tab0 AS cor0
----
244068
679042
9409

query I rowsort
SELECT ALL col1 * + 14 + cor0.col2 + + col0 * col2 FROM tab2 AS cor0
----
2880
3278
650

query I rowsort
SELECT + col0 + col1 * + col2 AS col2 FROM tab1 AS cor0
----
1328
1407
634

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * col1 + + col0 col1 FROM tab0 AS cor0
----
132
2862
7551

onlyif mysql # use DIV operator for integer division
query I rowsort label-3589
SELECT + col0 DIV - cor0.col0 AS col1 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-3589
SELECT + col0 / - cor0.col0 AS col1 FROM tab2 AS cor0
----
-1
-1
-1

query I rowsort
SELECT + + col2 + 9 FROM tab1 AS cor0
----
105
63
66

onlyif mysql # use DIV operator for integer division
query I rowsort label-3591
SELECT ALL 72 DIV - tab0.col0 FROM tab0
----
-2
-3
0

skipif mysql # not compatible
query I rowsort label-3591
SELECT ALL 72 / - tab0.col0 FROM tab0
----
-2
-3
0

query I rowsort
SELECT + - 90 + col1 * 72 FROM tab1 AS cor0
----
1782
630
846

query I rowsort
SELECT - col0 * 95 AS col2 FROM tab0 AS cor0
----
-2280
-3325
-8455

query I rowsort
SELECT - + col1 * col0 + 37 FROM tab2 AS cor0
----
-1306
-180
-4565

query I rowsort
SELECT ALL tab0.col0 * + tab0.col2 + col2 AS col2 FROM tab0
----
36
7380
825

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3596
SELECT + col1 * col2 * CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3596
SELECT + col1 * col2 * CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 39 * tab1.col2 + 58 AS col0 FROM tab1
----
2164
2281
3802

query I rowsort
SELECT DISTINCT - 2 + col1 FROM tab1
----
11
24
8

query I rowsort
SELECT - cor0.col0 + col1 AS col0 FROM tab0 AS cor0
----
2
62
62

query I rowsort
SELECT + + ( 83 ) FROM tab1 AS cor0
----
83
83
83

query I rowsort
SELECT DISTINCT + col2 * col2 + - col2 * - ( - col2 ) FROM tab0 AS cor0
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-3602
SELECT ( - 10 ) + + col2 DIV col2 FROM tab1 AS cor0
----
-9
-9
-9

skipif mysql # not compatible
query I rowsort label-3602
SELECT ( - 10 ) + + col2 / col2 FROM tab1 AS cor0
----
-9
-9
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * col1 col0 FROM tab1 cor0
----
100
169
676

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3604
SELECT + CAST( col1 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-3604
SELECT + CAST ( col1 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT ALL - - cor0.col2 + - 84 AS col2 FROM tab1 cor0
----
-27
-30
12

query I rowsort
SELECT ALL 67 * col1 FROM tab0 AS cor0
----
5762
6097
6499

query I rowsort
SELECT DISTINCT - + cor0.col0 * + col2 AS col1 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT ALL col0 * ( tab0.col2 ) FROM tab0
----
35
7298
792

query I rowsort
SELECT DISTINCT + col0 * + 60 AS col2 FROM tab2
----
420
4680
4740

onlyif mysql # use DIV operator for integer division
query I rowsort label-3610
SELECT - col2 DIV 62 + + 85 FROM tab0
----
84
85
85

skipif mysql # not compatible
query I rowsort label-3610
SELECT - col2 / 62 + + 85 FROM tab0
----
84
85
85

query I rowsort
SELECT DISTINCT + - tab1.col1 + ( + 26 ) AS col0 FROM tab1, tab0, tab2 AS cor0
----
0
13
16

query I rowsort
SELECT 91 * col2 FROM tab0 AS cor0
----
3003
7462
91

query I rowsort
SELECT ALL cor0.col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a

query I rowsort
SELECT ALL + + col0 * + cor0.col0 FROM tab0 AS cor0
----
1225
576
7921

query I rowsort
SELECT ALL - ( col2 + - col1 ) AS col0 FROM tab0
----
53
9
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-3616
SELECT ALL - col0 DIV + cor0.col0 + + col2 * col2 AS col2 FROM tab0 AS cor0
----
0
1088
6723

skipif mysql # not compatible
query I rowsort label-3616
SELECT ALL - col0 / + cor0.col0 + + col2 * col2 AS col2 FROM tab0 AS cor0
----
0
1088
6723

onlyif mysql # use DIV operator for integer division
query I rowsort label-3617
SELECT DISTINCT ( ( - col0 ) ) DIV - col2 AS col1 FROM tab0
----
0
1
35

skipif mysql # not compatible
query I rowsort label-3617
SELECT DISTINCT ( ( - col0 ) ) / - col2 AS col1 FROM tab0
----
0
1
35

query I rowsort
SELECT + ( ( col1 ) ) * col2 FROM tab2
----
1534
646
837

query I rowsort
SELECT - 88 * - col0 AS col1 FROM tab0 cor0
----
2112
3080
7832

query I rowsort
SELECT + - 58 * col2 FROM tab2 AS cor0
----
-1508
-1566
-2204

query I rowsort
SELECT + col0 + col0 * col0 AS col2 FROM tab0 AS cor0
----
1260
600
8010

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 99 + 18 col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 205b3ff2d7b1817c98d7980b8c17e6c1

query I rowsort
SELECT ALL + col2 * ( + col2 ) AS col2 FROM tab0 AS cor0
----
1
1089
6724

query I rowsort
SELECT - col0 * col1 + col1 * - col1 * - col2 AS col0 FROM tab2 AS cor0
----
25730
85904
9639

query I rowsort
SELECT + - cor0.col2 FROM tab1, tab1 cor0
----
9 values hashing to 0dc9bbe392d52df93d2a115d7f622dba

query I rowsort
SELECT DISTINCT - cor0.col2 AS col2 FROM tab1, tab2, tab1 AS cor0
----
-54
-57
-96

query I rowsort
SELECT - - col2 * 63 + cor0.col1 FROM tab1 AS cor0
----
3428
3601
6061

query I rowsort
SELECT + col0 + 34 FROM tab2 AS cor0
----
112
113
41

query I rowsort
SELECT - ( + 33 ) AS col0 FROM tab1 AS cor0
----
-33
-33
-33

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3630
SELECT - - cor0.col1 + + CAST( col2 AS SIGNED ) * + col2 AS col0 FROM tab1 AS cor0
----
2942
3259
9229

skipif mysql # not compatible
query I rowsort label-3630
SELECT - - cor0.col1 + + CAST ( col2 AS INTEGER ) * + col2 AS col0 FROM tab1 AS cor0
----
2942
3259
9229

onlyif mysql # use DIV operator for integer division
query I rowsort label-3631
SELECT DISTINCT - col2 DIV - 60 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3631
SELECT DISTINCT - col2 / - 60 FROM tab2 AS cor0
----
0

query I rowsort
SELECT col0 * ( col1 + cor0.col0 ) AS col1 FROM tab1 AS cor0
----
4736
7440
87

onlyif mysql # use DIV operator for integer division
query I rowsort label-3633
SELECT ALL col2 DIV col2 AS col2 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3633
SELECT ALL col2 / col2 AS col2 FROM tab1
----
1
1
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-3634
SELECT - cor0.col1 DIV - col0 col2 FROM tab2 cor0
----
0
0
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3634
SELECT - cor0.col1 / - col0 col2 FROM tab2 cor0
----
0
0
4

query I rowsort
SELECT col0 + - cor0.col0 * + 95 AS col1 FROM tab1 AS cor0
----
-282
-6016
-7520

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + - cor0.col1 col2 FROM tab1 AS cor0
----
28
47
83

query I rowsort
SELECT - + col0 * - ( - col1 ) FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT - col1 + + cor0.col2 AS col0 FROM tab1 cor0
----
28
47
83

query I rowsort
SELECT cor0.col0 * + col1 * col1 FROM tab1 AS cor0
----
13520
2028
6400

query I rowsort
SELECT - col0 + col1 * + col1 FROM tab0 cor0
----
7372
8192
9374

query I rowsort
SELECT DISTINCT 85 AS col0 FROM tab0, tab0 AS cor0
----
85

query I rowsort
SELECT + col2 * 90 + - ( + col1 ) FROM tab1
----
4834
5120
8627

query I rowsort
SELECT DISTINCT tab2.col1 * 56 FROM tab2
----
1736
3304
952

query I rowsort
SELECT - col1 * col2 - col2 * + col1 FROM tab0
----
-14924
-194
-5676

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3645
SELECT col2 * + CAST( NULL AS SIGNED ) - - 8 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3645
SELECT col2 * + CAST ( NULL AS INTEGER ) - - 8 AS col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 25 + - col0 AS col0 FROM tab2 cor0
----
-103
-104
-32

query I rowsort
SELECT + ( col0 ) + - col2 FROM tab0 AS cor0
----
-9
34
7

query I rowsort
SELECT col1 * col0 + - col0 * + col0 FROM tab1 AS cor0
----
-3456
-5360
69

query I rowsort
SELECT ALL - col1 * col0 - col2 * col2 AS col2 FROM tab1 AS cor0
----
-10256
-2994
-3889

onlyif mysql # use DIV operator for integer division
query I rowsort label-3650
SELECT + 4 * col1 + col0 DIV cor0.col0 AS col2 FROM tab1 AS cor0
----
105
41
53

skipif mysql # not compatible
query I rowsort label-3650
SELECT + 4 * col1 + col0 / cor0.col0 AS col2 FROM tab1 AS cor0
----
105
41
53

onlyif mysql # use DIV operator for integer division
query I rowsort label-3651
SELECT + cor0.col1 DIV col1 + cor0.col0 FROM tab1 AS cor0
----
4
65
81

skipif mysql # not compatible
query I rowsort label-3651
SELECT + cor0.col1 / col1 + cor0.col0 FROM tab1 AS cor0
----
4
65
81

query I rowsort
SELECT DISTINCT ( cor0.col2 ) + col0 FROM tab0 AS cor0
----
171
36
57

query I rowsort
SELECT + ( - ( col0 ) ) FROM tab0
----
-24
-35
-89

onlyif mysql # use DIV operator for integer division
query I rowsort label-3654
SELECT + col1 DIV col1 + col1 * 56 * col2 FROM tab2
----
36177
46873
85905

skipif mysql # not compatible
query I rowsort label-3654
SELECT + col1 / col1 + col1 * 56 * col2 FROM tab2
----
36177
46873
85905

query I rowsort
SELECT DISTINCT - col1 + - col2 + col1 AS col1 FROM tab2
----
-26
-27
-38

onlyif mysql # use DIV operator for integer division
query I rowsort label-3656
SELECT ALL col2 DIV + col0 + - ( 58 * + col1 + ( - col2 ) ) FROM tab0
----
-4954
-5196
-5625

skipif mysql # not compatible
query I rowsort label-3656
SELECT ALL col2 / + col0 + - ( 58 * + col1 + ( - col2 ) ) FROM tab0
----
-4954
-5196
-5625

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * tab2.col1 col1 FROM tab2
----
1343
217
4602

onlyif mysql # use DIV operator for integer division
query I rowsort label-3658
SELECT - - cor0.col1 + col2 DIV cor0.col1 AS col1 FROM tab0 cor0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-3658
SELECT - - cor0.col1 + col2 / cor0.col1 AS col1 FROM tab0 cor0
----
86
91
97

query I rowsort
SELECT ALL ( col0 ) + + tab1.col0 * - col0 FROM tab1
----
-4032
-6
-6320

query I rowsort
SELECT col1 + - ( - col2 ) FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT DISTINCT + 59 + col1 FROM tab2
----
118
76
90

query I rowsort
SELECT + 14 + tab2.col1 FROM tab2
----
31
45
73

query I rowsort
SELECT col2 * - 12 FROM tab0 AS cor0
----
-12
-396
-984

query I rowsort
SELECT DISTINCT + col1 + 35 + 99 FROM tab2 AS cor0
----
151
165
193

query I rowsort
SELECT + col0 + + col0 * + col0 * col2 FROM tab2
----
1330
158262
237237

query I rowsort
SELECT - tab1.col2 * 83 FROM tab1, tab1 AS cor0
----
9 values hashing to 6231127a54de1243630aeefa3da8c99e

query I rowsort
SELECT col1 + 42 * col0 FROM tab2
----
325
3335
3335

query I rowsort
SELECT DISTINCT + + col0 * - col2 + col0 + - col1 * cor0.col2 AS col2 FROM tab0 AS cor0
----
-14671
-3606
-97

query I rowsort
SELECT + col1 + + 55 * - col2 FROM tab2 AS cor0
----
-1371
-1454
-2073

query I rowsort
SELECT ALL col1 * ( + cor0.col0 ) + col2 AS col0 FROM tab2 cor0
----
1381
244
4628

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col2 + + col2 col1 FROM tab0 AS cor0
----
164
2
66

onlyif mysql # use DIV operator for integer division
query I rowsort label-3672
SELECT - 92 DIV - 85 FROM tab2, tab1 AS cor0
----
9 values hashing to 001554c2952f1a80506b182ee04686f5

skipif mysql # not compatible
query I rowsort label-3672
SELECT - 92 / - 85 FROM tab2, tab1 AS cor0
----
9 values hashing to 001554c2952f1a80506b182ee04686f5

query I rowsort
SELECT - col2 * col2 + + col2 * - col1 + col2 AS col2 FROM tab0 AS cor0
----
-14104
-3894
-97

query I rowsort
SELECT DISTINCT cor0.col0 + + 33 FROM tab1 AS cor0
----
113
36
97

query I rowsort
SELECT + 16 + + col2 AS col0 FROM tab2
----
42
43
54

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 23 col1 FROM tab0
----
23
23
23

query I rowsort
SELECT DISTINCT + - ( + ( col1 ) ) FROM tab1 AS cor0
----
-10
-13
-26

onlyif mysql # use DIV operator for integer division
query I rowsort label-3678
SELECT DISTINCT ( - col1 ) + - col1 - col2 DIV - 46 FROM tab2 cor0
----
-118
-34
-62

skipif mysql # not compatible
query I rowsort label-3678
SELECT DISTINCT ( - col1 ) + - col1 - col2 / - 46 FROM tab2 cor0
----
-118
-34
-62

query I rowsort
SELECT - cor0.col2 AS col0 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 6a43e7f15194af73fe1c83385e6ebebc

onlyif mysql # use DIV operator for integer division
query I rowsort label-3680
SELECT ALL + col2 * - col2 + col1 * + col0 - + col1 DIV - col0 FROM tab0 AS cor0
----
1376
3396
978

skipif mysql # not compatible
query I rowsort label-3680
SELECT ALL + col2 * - col2 + col1 * + col0 - + col1 / - col0 FROM tab0 AS cor0
----
1376
3396
978

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3681
SELECT DISTINCT + 96 - - col1 * + CAST( 17 AS SIGNED ) * col1 AS col1 FROM tab0 AS cor0
----
125828
140873
160049

skipif mysql # not compatible
query I rowsort label-3681
SELECT DISTINCT + 96 - - col1 * + CAST ( 17 AS INTEGER ) * col1 AS col1 FROM tab0 AS cor0
----
125828
140873
160049

query I rowsort
SELECT ALL col1 * - cor0.col0 AS col0 FROM tab1 cor0
----
-1040
-640
-78

query I rowsort
SELECT - 88 + col0 * 26 FROM tab2 AS cor0
----
1940
1966
94

query I rowsort
SELECT ALL + - col2 * col1 * ( + col2 ) + col2 + col2 FROM tab0 AS cor0
----
-611720
-93588
-95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 59 * col1 - - col1 * - cor0.col2 col2 FROM tab0 AS cor0
----
-2093
2236
5626

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3686
SELECT DISTINCT - ( col2 ) * ( + 16 ) + + col2 * + CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3686
SELECT DISTINCT - ( col2 ) * ( + 16 ) + + col2 * + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT col1 + cor0.col2 * - col1 FROM tab1 AS cor0
----
-1235
-1378
-560

onlyif mysql # use DIV operator for integer division
query I rowsort label-3688
SELECT - - col2 DIV + col1 + col1 * + col1 AS col0 FROM tab2 AS cor0
----
291
3481
961

skipif mysql # not compatible
query I rowsort label-3688
SELECT - - col2 / + col1 + col1 * + col1 AS col0 FROM tab2 AS cor0
----
291
3481
961

query I rowsort
SELECT ALL + + cor0.col1 * col1 + + col0 FROM tab2 AS cor0
----
3559
368
968

query I rowsort
SELECT ALL + 7 * - col1 * col0 + + col1 FROM tab0 AS cor0
----
-14362
-23668
-56602

query I rowsort
SELECT + + 75 AS col0 FROM tab2 AS cor0
----
75
75
75

onlyif mysql # use DIV operator for integer division
query I rowsort label-3692
SELECT DISTINCT - - 13 - + cor0.col2 DIV 19 FROM tab0 AS cor0
----
12
13
9

skipif mysql # not compatible
query I rowsort label-3692
SELECT DISTINCT - - 13 - + cor0.col2 / 19 FROM tab0 AS cor0
----
12
13
9

query I rowsort
SELECT - col2 * col0 - ( - ( col2 ) ) FROM tab0 AS cor0
----
-34
-7216
-759

query I rowsort
SELECT DISTINCT + ( col2 ) + - 34 AS col0 FROM tab1 cor0
----
20
23
62

query I rowsort
SELECT ALL - + col1 + + col1 * 68 FROM tab2 AS cor0
----
1139
2077
3953

query I rowsort
SELECT ALL col2 * + col0 + - 94 AS col0 FROM tab2 AS cor0
----
1934
2908
95

query I rowsort
SELECT 6 * - 18 - + col1 FROM tab1
----
-118
-121
-134

query I rowsort
SELECT 9 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 03b93b53107e36cf7d524e48c509b17b

query I rowsort
SELECT DISTINCT + - col1 + - col0 * - col2 AS col2 FROM tab2 AS cor0
----
158
1969
2985

query I rowsort
SELECT col0 + + col2 + - col1 AS col1 FROM tab1 AS cor0
----
111
163
31

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3701
SELECT DISTINCT CAST( NULL AS SIGNED ) * - 67 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3701
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - 67 FROM tab2
----
NULL

query I rowsort
SELECT + cor0.col1 FROM tab2, tab1, tab0 cor0
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd

onlyif mysql # use DIV operator for integer division
query I rowsort label-3703
SELECT col0 DIV + ( tab2.col0 * + col0 ) + col0 AS col0 FROM tab2
----
7
78
79

skipif mysql # not compatible
query I rowsort label-3703
SELECT col0 / + ( tab2.col0 * + col0 ) + col0 AS col0 FROM tab2
----
7
78
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab2.col2 col2 FROM tab2, tab2 AS cor0, tab1 cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5

onlyif mysql # use DIV operator for integer division
query I rowsort label-3705
SELECT DISTINCT + 77 DIV ( + col0 * + 7 ) - + col1 col0 FROM tab0 AS cor0
----
-86
-91
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3705
SELECT DISTINCT + 77 / ( + col0 * + 7 ) - + col1 col0 FROM tab0 AS cor0
----
-86
-91
-97

query I rowsort
SELECT ALL + 66 * + col1 AS col1 FROM tab1 AS cor0
----
1716
660
858

query I rowsort
SELECT - col0 + col2 * cor0.col1 AS col1 FROM tab1 AS cor0
----
1168
1401
506

query I rowsort
SELECT ALL + col1 + ( col2 ) * col2 + 65 FROM tab2 AS cor0
----
1526
800
825

query I rowsort
SELECT - col1 * - col1 + - ( + col1 ) FROM tab2 AS cor0
----
272
3422
930

query I rowsort
SELECT ALL col2 + + col0 + - 8 AS col2 FROM tab2 AS cor0
----
109
26
96

query I rowsort
SELECT ALL + + col1 + - col0 * - cor0.col0 FROM tab1 AS cor0
----
35
4106
6413

query I rowsort
SELECT - ( + cor0.col0 ) AS col1 FROM tab2 AS cor0
----
-7
-78
-79

onlyif mysql # use DIV operator for integer division
query I rowsort label-3713
SELECT - col1 + + 31 DIV - ( col1 ) FROM tab1 AS cor0
----
-13
-15
-27

skipif mysql # not compatible
query I rowsort label-3713
SELECT - col1 + + 31 / - ( col1 ) FROM tab1 AS cor0
----
-13
-15
-27

query I rowsort
SELECT ALL col2 + cor0.col1 * - col0 AS col2 FROM tab0 AS cor0
----
-2031
-3394
-8017

query I rowsort
SELECT DISTINCT + - col1 * 76 FROM tab1 cor0
----
-1976
-760
-988

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3716
SELECT ALL col2 + CAST( NULL AS SIGNED ) * col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3716
SELECT ALL col2 + CAST ( NULL AS INTEGER ) * col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - + col2 + - cor0.col0 AS col2 FROM tab0 AS cor0
----
-171
-36
-57

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3718
SELECT col2 * + CAST( NULL AS SIGNED ) + cor0.col2 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3718
SELECT col2 * + CAST ( NULL AS INTEGER ) + cor0.col2 FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-3719
SELECT col2 DIV 32 FROM tab0 AS cor0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-3719
SELECT col2 / 32 FROM tab0 AS cor0
----
0
1
2

query I rowsort
SELECT DISTINCT col2 * col0 + + col1 + - col2 AS col0 FROM tab2
----
193
2061
2981

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + col2 * + tab2.col0 col0 FROM tab2
----
2054
216
3040

query I rowsort
SELECT - col1 + col0 * ( + col1 ) FROM tab1 AS cor0
----
1027
52
630

query I rowsort
SELECT - col1 + 15 AS col1 FROM tab0 AS cor0
----
-71
-76
-82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 45 * col1 * col1 col0 FROM tab1 AS cor0
----
-30420
-4500
-7605

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 64 + col2 col1 FROM tab2 AS cor0
----
-26
-37
-38

query I rowsort
SELECT - - cor0.col1 * - cor0.col0 + col2 AS col1 FROM tab2 AS cor0
----
-1305
-190
-4576

query I rowsort
SELECT + 32 + 78 AS col2 FROM tab2 AS cor0
----
110
110
110

query I rowsort
SELECT + - col2 * 49 AS col1 FROM tab0 cor0
----
-1617
-4018
-49

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3729
SELECT - CAST( NULL AS SIGNED ) * col2 + - col0 * - col2 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3729
SELECT - CAST ( NULL AS INTEGER ) * col2 + - col0 * - col2 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col1 + col0 * col1 AS col0 FROM tab1 AS cor0
----
104
1053
650

query I rowsort
SELECT col2 + 98 * + col0 AS col0 FROM tab0 cor0
----
2385
3431
8804

query I rowsort
SELECT ALL - + cor0.col1 * - cor0.col2 AS col0 FROM tab0, tab1, tab1 cor0
----
27 values hashing to f8894e3f33962cda5901e1c2ce65d5b0

query I rowsort
SELECT + col1 * 55 FROM tab1
----
1430
550
715

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 12 * + 28 col2 FROM tab1 AS cor0
----
336
336
336

query I rowsort
SELECT + cor0.col1 + - 1 AS col0 FROM tab0 AS cor0
----
85
90
96

query IIIIIIIIIIII rowsort
SELECT * FROM tab1, tab1 cor0 CROSS JOIN tab0, tab2 AS cor1
----
972 values hashing to 591a9a93560839231c038a1e10bd240a

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 76 col0 FROM tab0 AS cor0
----
76
76
76

query I rowsort
SELECT + - 87 * 46 FROM tab1 AS cor0
----
-4002
-4002
-4002

query I rowsort
SELECT - - col1 * - cor0.col2 - col2 * col0 AS col1 FROM tab0 AS cor0
----
-132
-14760
-3630

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor1.col0 col1 FROM tab1, tab1 AS cor0, tab2 cor1
----
7
78
79

query I rowsort
SELECT ALL 97 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 5e0d31ac41981bcdf6a665538a71a09c

query I rowsort
SELECT - col1 * - 51 AS col0 FROM tab0
----
4386
4641
4947

onlyif mysql # use DIV operator for integer division
query I rowsort label-3743
SELECT + + col0 + + col0 DIV col1 + - col1 AS col1 FROM tab0 cor0
----
-2
-62
-62

skipif mysql # not compatible
query I rowsort label-3743
SELECT + + col0 + + col0 / col1 + - col1 AS col1 FROM tab0 cor0
----
-2
-62
-62

query I rowsort
SELECT col0 * - col2 - col0 FROM tab1
----
-165
-3712
-7760

query I rowsort
SELECT DISTINCT + - cor0.col2 * + col2 + col0 * col1 FROM tab0 AS cor0
----
1375
3394
975

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + col2 * + col2 col2 FROM tab2 AS cor0
----
1523
736
754

onlyif mysql # use DIV operator for integer division
query I rowsort label-3747
SELECT ALL - col2 * - col1 DIV - col1 FROM tab0 AS cor0
----
-1
-33
-82

skipif mysql # not compatible
query I rowsort label-3747
SELECT ALL - col2 * - col1 / - col1 FROM tab0 AS cor0
----
-1
-33
-82

query I rowsort
SELECT cor0.col1 + col2 * cor0.col0 FROM tab1 AS cor0
----
188
3658
7693

query I rowsort
SELECT + col1 + - col0 - col0 FROM tab1 AS cor0
----
-118
-147
20

query I rowsort
SELECT - col1 + + col2 + col0 AS col0 FROM tab1 AS cor0
----
111
163
31

query I rowsort
SELECT DISTINCT - col0 * + cor0.col0 AS col1 FROM tab0 AS cor0
----
-1225
-576
-7921

query I rowsort
SELECT + col0 / - col2 AS col1 FROM tab2 cor0 WHERE NOT + col0 + cor0.col0 * col2 * col0 = NULL
----

query I rowsort
SELECT DISTINCT col2 - col0 * + col1 FROM tab2 AS cor0
----
-1305
-190
-4576

query III rowsort
SELECT * FROM tab1 WHERE col0 = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + - col2 * col2 col0 FROM tab0
----
-1056
-6642
0

query I rowsort
SELECT DISTINCT tab2.col2 + tab2.col1 * col0 AS col0 FROM tab2
----
1381
244
4628

query I rowsort
SELECT - col2 + col2 * + col1 FROM tab1 AS cor0
----
1152
1350
513

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 65 * - col2 * col2 col2 FROM tab2
----
-43940
-47385
-93860

onlyif mysql # use DIV operator for integer division
query I rowsort label-3759
SELECT ALL - col1 DIV - col2 AS col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3759
SELECT ALL - col1 / - col2 AS col0 FROM tab1
----
0
0
0

query I rowsort
SELECT col2 * + tab1.col2 + - col1 AS col0 FROM tab1
----
2890
3239
9203

query I rowsort
SELECT DISTINCT + col2 + - col0 - + tab2.col2 FROM tab2
----
-7
-78
-79

query I rowsort
SELECT col2 + col2 + col0 FROM tab1
----
111
178
272

query I rowsort
SELECT DISTINCT - tab0.col0 - + col0 FROM tab0
----
-178
-48
-70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + tab2.col1 + tab2.col2 * + col1 - col1 col2 FROM tab2
----
1534
646
837

query I rowsort
SELECT DISTINCT tab2.col1 - + col0 AS col1 FROM tab2
----
-19
-62
24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 - - col2 * tab2.col0 col2 FROM tab2
----
182
1950
2923

onlyif mysql # use DIV operator for integer division
query I rowsort label-3767
SELECT + col1 + col2 - col0 DIV col0 AS col2 FROM tab0
----
118
172
97

skipif mysql # not compatible
query I rowsort label-3767
SELECT + col1 + col2 - col0 / col0 AS col2 FROM tab0
----
118
172
97

query I rowsort
SELECT DISTINCT + col0 - + col0 AS col0 FROM tab0
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-3769
SELECT ALL cor0.col2 * - col1 + col2 + + cor0.col0 DIV + col2 col0 FROM tab1 AS cor0
----
-1152
-1350
-512

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3769
SELECT ALL cor0.col2 * - col1 + col2 + + cor0.col0 / + col2 col0 FROM tab1 AS cor0
----
-1152
-1350
-512

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab2 cor0, tab0 AS cor1, tab1, tab0 AS cor2
----
3645 values hashing to 2566f3fa788816c8bfc482e730aaed74

query I rowsort
SELECT + 51 + col1 FROM tab0 AS cor0
----
137
142
148

query I rowsort
SELECT col2 * cor0.col1 + - col0 FROM tab2 AS cor0
----
1456
567
830

query I rowsort
SELECT DISTINCT 18 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
18

query I rowsort
SELECT - col0 * col1 + + 48 FROM tab0 AS cor0
----
-2016
-3347
-8051

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL > col1 * - col2
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col0 >= NULL
----

query I rowsort
SELECT + col1 + + col2 + - col1 FROM tab1
----
54
57
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-3778
SELECT ALL - col0 DIV + col2 col2 FROM tab1
----
-1
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3778
SELECT ALL - col0 / + col2 col2 FROM tab1
----
-1
0
0

query III rowsort
SELECT * FROM tab2 WHERE NOT col1 IN ( - col2 * + tab2.col0 + - col1 )
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45

query III rowsort
SELECT * FROM tab0 WHERE + col0 * - col1 BETWEEN NULL AND col1 * col1
----

query I rowsort
SELECT + col0 + col2 * + ( - col1 ) FROM tab0
----
-2814
-62
-7373

query I rowsort
SELECT 40 * cor0.col2 AS col0 FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to 2f77c14067b7ec227ab6748fd9ebb31b

query I rowsort
SELECT col0 * + col2 + + ( col1 ) + col1 * + col1 FROM tab0
----
15670
8274
9541

query I rowsort
SELECT ALL + 98 AS col1 FROM tab2 cor0
----
98
98
98

query I rowsort
SELECT ALL 82 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 99920d9f7cd9cdccef99cfa459ae6944

query I rowsort
SELECT col2 * col1 + - tab0.col2 + - tab0.col2 * - col2 FROM tab0
----
14104
3894
97

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL = col2
----

query I rowsort
SELECT - col0 * - tab1.col0 + - col1 - - col2 FROM tab1
----
37
4143
6483

query I rowsort
SELECT col0 + - col2 + col2 FROM tab0
----
24
35
89

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL BETWEEN + col2 AND NULL
----

query I rowsort
SELECT DISTINCT - col1 + + col0 * + tab1.col0 FROM tab1
----
-17
4086
6387

onlyif mysql # use DIV operator for integer division
query I rowsort label-3792
SELECT ALL col2 DIV + col1 + col1 * col0 AS col0 FROM tab2
----
1345
217
4602

skipif mysql # not compatible
query I rowsort label-3792
SELECT ALL col2 / + col1 + col1 * col0 AS col0 FROM tab2
----
1345
217
4602

query I rowsort
SELECT DISTINCT col1 * + col1 + + col1 AS col1 FROM tab0
----
7482
8372
9506

query III rowsort
SELECT * FROM tab0 WHERE + col1 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT col1 FROM tab1 WHERE NOT NULL IN ( tab1.col1 * col2 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL <= NULL
----

query I rowsort
SELECT - col0 * - cor0.col2 + + col0 AS col0 FROM tab2 AS cor0
----
196
2106
3081

query I rowsort
SELECT ALL col1 * - col2 + - col2 - - col1 FROM tab2 WHERE NOT ( - col0 ) < - col0
----
-1501
-667
-833

query I rowsort
SELECT + col0 + col1 * col2 AS col2 FROM tab2 WHERE NULL NOT IN ( col0 )
----

query I rowsort
SELECT tab2.col1 + + tab2.col2 AS col1 FROM tab2
----
55
58
85

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( NULL ) = + col1
----

query I rowsort
SELECT - tab2.col2 * tab2.col0 AS col2 FROM tab2
----
-189
-2028
-3002

query I rowsort
SELECT + col2 AS col2 FROM tab2 WHERE + col2 NOT IN ( + col1 )
----
26
27
38

onlyif mysql # use DIV operator for integer division
query I rowsort label-3804
SELECT - tab1.col1 * - col2 + col2 + col0 DIV + tab1.col2 FROM tab1
----
1344
1458
628

skipif mysql # not compatible
query I rowsort label-3804
SELECT - tab1.col1 * - col2 + col2 + col0 / + tab1.col2 FROM tab1
----
1344
1458
628

query I rowsort
SELECT ALL col2 * col2 + tab0.col2 FROM tab0
----
1122
2
6806

query I rowsort
SELECT DISTINCT col0 AS col1 FROM tab2 WHERE NOT + col2 > col1
----
7
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * tab0.col2 + - col0 col0 FROM tab0
----
0
7209
768

query I rowsort
SELECT ALL + col0 FROM tab1 WHERE ( NULL ) > NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 col2 FROM tab2 WHERE ( - col2 ) NOT IN ( - col1 )
----
-17
-31
-59

query III rowsort
SELECT ALL * FROM tab0 WHERE + col2 > ( tab0.col2 / - col2 )
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab1.col0 * col0 + col1 col1 FROM tab1
----
35
4106
6413

query I rowsort
SELECT ALL col0 * ( - 29 ) FROM tab1
----
-1856
-2320
-87

query I rowsort
SELECT + - ( + 0 ) FROM tab1, tab2, tab1 cor0, tab0
----
81 values hashing to 1f117f467f45d8c6b7553e2e3c842942

query I rowsort
SELECT ALL - 92 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 1af709a79a3e56281ffdce4d931d5965

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3815
SELECT + CAST( + col0 AS SIGNED ) + col0 + 53 FROM tab1
----
181
213
59

skipif mysql # not compatible
query I rowsort label-3815
SELECT + CAST ( + col0 AS INTEGER ) + col0 + 53 FROM tab1
----
181
213
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 77 col2 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to d7b027bca5d37c67e29013904def8125

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3817
SELECT + col0 * - ( - col1 ) + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3817
SELECT + col0 * - ( - col1 ) + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT + ( + cor0.col1 ) + + col2 * col2 FROM tab0 AS cor0
----
1175
6815
98

onlyif mysql # use DIV operator for integer division
query I rowsort label-3819
SELECT DISTINCT + + 81 DIV col0 FROM tab0 AS cor0
----
0
2
3

skipif mysql # not compatible
query I rowsort label-3819
SELECT DISTINCT + + 81 / col0 FROM tab0 AS cor0
----
0
2
3

query I rowsort
SELECT ALL - col0 + cor0.col1 * col2 + 99 FROM tab0 AS cor0
----
161
2913
7472

onlyif mysql # use DIV operator for integer division
query I rowsort label-3821
SELECT + - col0 * col2 + + col2 DIV col1 AS col1 FROM tab0 AS cor0
----
-35
-7298
-792

skipif mysql # not compatible
query I rowsort label-3821
SELECT + - col0 * col2 + + col2 / col1 AS col1 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT ALL col0 * - col0 * col0 AS col1 FROM tab1
----
-262144
-27
-512000

onlyif mysql # use DIV operator for integer division
query I rowsort label-3823
SELECT ( - 49 ) DIV - col0 FROM tab0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-3823
SELECT ( - 49 ) / - col0 FROM tab0
----
0
1
2

query I rowsort
SELECT DISTINCT + - cor0.col1 * cor0.col1 + - 81 * col0 FROM tab1 AS cor0
----
-5284
-6649
-919

query I rowsort
SELECT 36 + col1 AS col2 FROM tab0 AS cor0
----
122
127
133

query I rowsort
SELECT + cor0.col2 * - col0 + + 3 * - 90 * col2 FROM tab0 AS cor0
----
-29438
-305
-9702

query I rowsort
SELECT 20 + + col0 * col2 * - col1 - + col1 FROM tab2
----
-119691
-51031
-5870

query I rowsort
SELECT col1 * col2 + ( + tab2.col0 ) AS col1 FROM tab2
----
1612
725
844

query I rowsort
SELECT DISTINCT - tab1.col1 * - col0 - col2 AS col0 FROM tab1
----
24
583
944

query I rowsort
SELECT col1 * col2 - - ( - 62 ) * col2 FROM tab2
----
-1710
-78
-837

onlyif mysql # use DIV operator for integer division
query I rowsort label-3831
SELECT + col2 + col2 DIV col1 AS col2 FROM tab2 cor0
----
26
27
40

skipif mysql # not compatible
query I rowsort label-3831
SELECT + col2 + col2 / col1 AS col2 FROM tab2 cor0
----
26
27
40

query I rowsort
SELECT + ( cor0.col1 ) * + col0 AS col1 FROM tab2 cor0
----
1343
217
4602

query I rowsort
SELECT ( col1 ) + + ( + cor0.col1 * + col0 ) + 71 * - 51 AS col1 FROM tab0 AS cor0
----
-129
-1471
4569

query I rowsort
SELECT DISTINCT - col0 + cor0.col2 * + 78 + + col1 * col0 AS col2 FROM tab2 AS cor0
----
2316
4228
6552

query I rowsort
SELECT ALL + col2 * - col0 * ( col1 + 60 ) AS col1 FROM tab2 AS cor0
----
-17199
-231154
-241332

onlyif mysql # use DIV operator for integer division
query I rowsort label-3836
SELECT - - col2 DIV ( - ( col0 ) ) + - cor0.col0 AS col2 FROM tab2 cor0
----
-10
-78
-79

skipif mysql # not compatible
query I rowsort label-3836
SELECT - - col2 / ( - ( col0 ) ) + - cor0.col0 AS col2 FROM tab2 cor0
----
-10
-78
-79

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3837
SELECT ALL + + col2 * - CAST( NULL AS DECIMAL ) + - 53 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-3837
SELECT ALL + + col2 * - CAST ( NULL AS REAL ) + - 53 col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col0 * ( + 33 ) - - col0 FROM tab0 AS cor0
----
-1120
-2848
-768

query I rowsort
SELECT + + col1 * + 43 + cor0.col1 FROM tab0 AS cor0
----
3784
4004
4268

query I rowsort
SELECT - - col0 + ( col2 ) * col0 * col0 AS col0 FROM tab2 AS cor0
----
1330
158262
237237

query I rowsort
SELECT ALL - 94 AS col1 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 7eeab220fc6bbc2fb3fa4aef8600159f

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3842
SELECT CAST( NULL AS DECIMAL ) * - col0 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3842
SELECT CAST ( NULL AS REAL ) * - col0 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-3843
SELECT - col0 * - cor0.col0 DIV col0 FROM tab2 AS cor0
----
7
78
79

skipif mysql # not compatible
query I rowsort label-3843
SELECT - col0 * - cor0.col0 / col0 FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT - + col2 * 13 AS col0 FROM tab2 AS cor0
----
-338
-351
-494

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3845
SELECT + CAST( 75 AS SIGNED ) + + col0 * CAST( NULL AS DECIMAL ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3845
SELECT + CAST ( 75 AS INTEGER ) + + col0 * CAST ( NULL AS REAL ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - cor0.col0 * col0 col1 FROM tab1 AS cor0
----
4096
6400
9

query I rowsort
SELECT - col1 + + tab0.col0 AS col2 FROM tab0
----
-2
-62
-62

query I rowsort
SELECT + 71 * + col0 FROM tab1 AS cor0
----
213
4544
5680

query I rowsort
SELECT - + col2 + 36 FROM tab1 AS cor0
----
-18
-21
-60

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col2 * - cor0.col2 col2 FROM tab0 AS cor0
----
-1
-1089
-6724

query I rowsort
SELECT ALL - + cor0.col0 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 09d8a912de1b8ab762e5ffbe028ce99e

query I rowsort
SELECT - col1 * 92 + + col1 - + col1 AS col0 FROM tab0
----
-7912
-8372
-8924

query I rowsort
SELECT ALL + col0 * col0 - col2 AS col1 FROM tab1
----
-45
4039
6304

query I rowsort
SELECT DISTINCT - 68 * 5 + - col1 * col2 * 51 FROM tab1 AS cor0
----
-29410
-63988
-71944

query I rowsort
SELECT DISTINCT - col1 * cor0.col1 + + col1 + col0 FROM tab0 AS cor0
----
-7286
-8101
-9277

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * col0 + - col1 col1 FROM tab1 AS cor0
----
136
3638
7667

query I rowsort
SELECT + - col1 * col2 - - col1 AS col1 FROM tab1 AS cor0
----
-1235
-1378
-560

query I rowsort
SELECT 41 + col0 FROM tab0 AS cor0
----
130
65
76

onlyif mysql # use DIV operator for integer division
query I rowsort label-3859
SELECT col1 DIV col1 + - col1 + + col2 FROM tab1
----
29
48
84

skipif mysql # not compatible
query I rowsort label-3859
SELECT col1 / col1 + - col1 + + col2 FROM tab1
----
29
48
84

query I rowsort
SELECT DISTINCT 64 + cor0.col1 FROM tab0, tab0 AS cor0
----
150
155
161

onlyif mysql # use DIV operator for integer division
query I rowsort label-3861
SELECT col0 + ( + col2 ) * - tab1.col1 - - col1 * 45 DIV + col2 AS col1 FROM tab1
----
-1162
-1380
-499

skipif mysql # not compatible
query I rowsort label-3861
SELECT col0 + ( + col2 ) * - tab1.col1 - - col1 * 45 / + col2 AS col1 FROM tab1
----
-1162
-1380
-499

query I rowsort
SELECT DISTINCT - 32 AS col1 FROM tab0, tab2 AS cor0
----
-32

query I rowsort
SELECT DISTINCT + ( - col1 ) FROM tab2 cor0
----
-17
-31
-59

query I rowsort
SELECT ALL cor0.col1 * cor0.col1 * + col0 + cor0.col2 AS col0 FROM tab0 AS cor0
----
177537
329316
737091

query I rowsort
SELECT DISTINCT - ( tab0.col1 ) AS col0 FROM tab0, tab1 cor0
----
-86
-91
-97

query I rowsort
SELECT DISTINCT - - ( - col1 ) FROM tab1 AS cor0
----
-10
-13
-26

query I rowsort
SELECT col0 + col2 * cor0.col0 - col0 AS col2 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT ALL - + col1 * 43 * + col0 FROM tab1 cor0
----
-27520
-3354
-44720

onlyif mysql # use DIV operator for integer division
query I rowsort label-3869
SELECT DISTINCT + cor0.col0 DIV - 47 col1 FROM tab1 AS cor0
----
-1
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3869
SELECT DISTINCT + cor0.col0 / - 47 col1 FROM tab1 AS cor0
----
-1
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-3870
SELECT - 43 + col0 DIV col0 FROM tab1 AS cor0
----
-42
-42
-42

skipif mysql # not compatible
query I rowsort label-3870
SELECT - 43 + col0 / col0 FROM tab1 AS cor0
----
-42
-42
-42

query I rowsort
SELECT ALL - 86 + - 23 FROM tab0 AS cor0
----
-109
-109
-109

onlyif mysql # use DIV operator for integer division
query I rowsort label-3872
SELECT - + cor0.col1 + + 72 - col0 DIV col1 col1 FROM tab2 AS cor0
----
12
41
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3872
SELECT - + cor0.col1 + + 72 - col0 / col1 col1 FROM tab2 AS cor0
----
12
41
51

query I rowsort
SELECT DISTINCT - + col0 + cor0.col1 FROM tab0 cor0
----
2
62

query I rowsort
SELECT ALL - col1 + ( col2 ) AS col1 FROM tab1 AS cor0
----
28
47
83

query I rowsort
SELECT ALL + - col2 + col2 * col1 FROM tab0 AS cor0
----
2805
7380
96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3876
SELECT + CAST( 51 AS SIGNED ) FROM tab1 AS cor0
----
51
51
51

skipif mysql # not compatible
query I rowsort label-3876
SELECT + CAST ( 51 AS INTEGER ) FROM tab1 AS cor0
----
51
51
51

query I rowsort
SELECT DISTINCT - + 6 * 65 FROM tab2 cor0
----
-390

query I rowsort
SELECT + ( + col2 ) * cor0.col1 + - col2 AS col1 FROM tab1 cor0
----
1152
1350
513

onlyif mysql # use DIV operator for integer division
query I rowsort label-3879
SELECT - + 91 + + ( col1 ) DIV col0 AS col1 FROM tab1 AS cor0
----
-83
-91
-91

skipif mysql # not compatible
query I rowsort label-3879
SELECT - + 91 + + ( col1 ) / col0 AS col1 FROM tab1 AS cor0
----
-83
-91
-91

query I rowsort
SELECT ( col1 + + ( + col0 ) * col1 ) FROM tab1
----
104
1053
650

query I rowsort
SELECT ALL col1 * col2 + ( + col0 ) * col1 + + 97 * 50 FROM tab2 AS cor0
----
10986
5904
6839

query I rowsort
SELECT DISTINCT - 45 - + col2 * - col0 FROM tab0 cor0
----
-10
7253
747

onlyif mysql # use DIV operator for integer division
query I rowsort label-3883
SELECT + ( - col2 ) DIV 40 + col1 * col0 FROM tab2 cor0
----
1343
217
4602

skipif mysql # not compatible
query I rowsort label-3883
SELECT + ( - col2 ) / 40 + col1 * col0 FROM tab2 cor0
----
1343
217
4602

query I rowsort
SELECT + - 3 AS col2 FROM tab0 AS cor0
----
-3
-3
-3

query I rowsort
SELECT DISTINCT + cor0.col0 * ( 92 ) AS col0 FROM tab1 AS cor0
----
276
5888
7360

query I rowsort
SELECT DISTINCT col1 + + ( col0 ) FROM tab0 AS cor0
----
110
132
180

onlyif mysql # use DIV operator for integer division
query I rowsort label-3887
SELECT ALL + + col1 + 96 - - 9 DIV col1 FROM tab0 cor0
----
182
187
193

skipif mysql # not compatible
query I rowsort label-3887
SELECT ALL + + col1 + 96 - - 9 / col1 FROM tab0 cor0
----
182
187
193

query I rowsort
SELECT - cor0.col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 58ed467a9a332e4d7bfaa9abdbbd063f

query I rowsort
SELECT ALL - col0 + + 80 FROM tab0 cor0
----
-9
45
56

query I rowsort
SELECT DISTINCT - 62 + 9 AS col0 FROM tab2, tab0 cor0
----
-53

query I rowsort
SELECT - + 79 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 1b7b0b34fe3431fb409719624d12791f

query I rowsort
SELECT - - cor0.col1 + - cor0.col2 * col0 AS col2 FROM tab2 AS cor0
----
-158
-1969
-2985

query I rowsort
SELECT DISTINCT col2 + ( 98 ) FROM tab2 AS cor0
----
124
125
136

query I rowsort
SELECT ALL + col2 - 27 FROM tab1 AS cor0
----
27
30
69

query I rowsort
SELECT DISTINCT + - cor0.col2 * cor0.col1 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT ALL + col0 + ( 91 ) * + cor0.col0 FROM tab1 cor0
----
276
5888
7360

query I rowsort
SELECT DISTINCT cor0.col1 * cor0.col1 AS col2 FROM tab2 AS cor0
----
289
3481
961

query I rowsort
SELECT DISTINCT - cor0.col2 + 45 FROM tab2 AS cor0
----
18
19
7

query I rowsort
SELECT DISTINCT - + ( + 12 ) * + cor0.col2 FROM tab0 AS cor0
----
-12
-396
-984

query I rowsort
SELECT DISTINCT - - 66 * col1 + col0 FROM tab2 AS cor0
----
1201
2053
3972

query I rowsort
SELECT DISTINCT - 35 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
-35

query I rowsort
SELECT ALL + col0 + col1 * cor0.col0 AS col0 FROM tab1 AS cor0
----
1120
704
81

query I rowsort
SELECT - ( cor0.col2 ) * - ( + 1 * - col1 ) AS col1 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT DISTINCT - 62 FROM tab1 cor0
----
-62

query I rowsort
SELECT 66 + cor0.col1 FROM tab1 AS cor0
----
76
79
92

query I rowsort
SELECT ALL - - col2 + cor0.col0 * + ( + col2 * cor0.col0 ) FROM tab0 AS cor0
----
1226
19041
649604

onlyif mysql # use DIV operator for integer division
query I rowsort label-3907
SELECT + col2 DIV cor0.col0 + 31 FROM tab2 AS cor0
----
31
31
34

skipif mysql # not compatible
query I rowsort label-3907
SELECT + col2 / cor0.col0 + 31 FROM tab2 AS cor0
----
31
31
34

query I rowsort
SELECT - - col1 + col0 * - col1 AS col2 FROM tab0 AS cor0
----
-1978
-3298
-8008

query I rowsort
SELECT ALL - 14 * cor0.col1 FROM tab1 AS cor0
----
-140
-182
-364

query I rowsort
SELECT 0 FROM tab0, tab1 AS cor0, tab0 AS cor1, tab1 AS cor2
----
81 values hashing to 1f117f467f45d8c6b7553e2e3c842942

query I rowsort
SELECT ALL ( + col0 ) * col0 AS col2 FROM tab1
----
4096
6400
9

query I rowsort
SELECT - 26 * + tab2.col0 FROM tab2
----
-182
-2028
-2054

query I rowsort
SELECT - - 90 + 25 * + col0 FROM tab2 AS cor0
----
2040
2065
265

query I rowsort
SELECT ALL - col2 * - 8 * - 55 + col2 * ( - col2 ) * col2 + tab1.col2 FROM tab1
----
-181170
-210216
-926880

query I rowsort
SELECT ALL col1 + ( ( col0 ) * col1 ) + col1 * col2 FROM tab0
----
15652
3589
4988

query I rowsort
SELECT DISTINCT tab0.col0 * + ( - ( col1 ) ) + + col2 + col2 AS col2 FROM tab0
----
-1998
-3393
-7935

onlyif mysql # use DIV operator for integer division
query I rowsort label-3917
SELECT col0 DIV col2 + + col1 * - ( col2 ) FROM tab1 AS cor0
----
-1248
-1404
-569

skipif mysql # not compatible
query I rowsort label-3917
SELECT col0 / col2 + + col1 * - ( col2 ) FROM tab1 AS cor0
----
-1248
-1404
-569

query I rowsort
SELECT ALL - 42 * - col0 FROM tab1
----
126
2688
3360

query I rowsort
SELECT ALL + ( + col2 + col1 ) AS col2 FROM tab2
----
55
58
85

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3920
SELECT - 54 + - col2 * - CAST( + col1 + - col2 AS SIGNED ) FROM tab0 AS cor0
----
1695
42
684

skipif mysql # not compatible
query I rowsort label-3920
SELECT - 54 + - col2 * - CAST ( + col1 + - col2 AS INTEGER ) FROM tab0 AS cor0
----
1695
42
684

query I rowsort
SELECT col0 * ( - tab2.col0 ) FROM tab2
----
-49
-6084
-6241

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 32 * col2 col1 FROM tab0
----
1056
2624
32

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 50 * + col0 col1 FROM tab2
----
350
3900
3950

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT CAST ( 80 AS REAL ) * cor0.col1 FROM tab0, tab0 AS cor0, tab2 cor1
----
6880
7280
7760

query I rowsort
SELECT - ( col1 ) + ( - 36 * + col1 ) FROM tab0
----
-3182
-3367
-3589

query I rowsort
SELECT col0 + col2 * 89 AS col0 FROM tab2
----
2392
2410
3461

query I rowsort
SELECT + - 73 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 84ab9db5468b4a1781bd8d5c8e0e77fc

onlyif mysql # use DIV operator for integer division
query I rowsort label-3928
SELECT ALL + cor0.col1 + 88 DIV + 77 AS col2 FROM tab0 AS cor0
----
87
92
98

skipif mysql # not compatible
query I rowsort label-3928
SELECT ALL + cor0.col1 + 88 / + 77 AS col2 FROM tab0 AS cor0
----
87
92
98

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3929
SELECT DISTINCT cor0.col0 * CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3929
SELECT DISTINCT cor0.col0 * CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-3930
SELECT + col1 + + col2 * 76 DIV cor0.col2 AS col0 FROM tab1 AS cor0
----
102
86
89

skipif mysql # not compatible
query I rowsort label-3930
SELECT + col1 + + col2 * 76 / cor0.col2 AS col0 FROM tab1 AS cor0
----
102
86
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col0 col1 FROM tab0 cor0
----
-24
-35
-89

query I rowsort
SELECT - col2 * + ( - col1 ) - col2 * - col0 FROM tab1 AS cor0
----
1566
4218
8928

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3933
SELECT DISTINCT - - col1 + - CAST( NULL AS DECIMAL ) * + 17 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3933
SELECT DISTINCT - - col1 + - CAST ( NULL AS REAL ) * + 17 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT col2 * - col2 + col1 * + cor0.col2 + + col2 AS col2 FROM tab1 AS cor0
----
-1458
-2622
-7872

onlyif mysql # use DIV operator for integer division
query I rowsort label-3935
SELECT col2 - col0 DIV + col0 AS col0 FROM tab0 AS cor0
----
0
32
81

skipif mysql # not compatible
query I rowsort label-3935
SELECT col2 - col0 / + col0 AS col0 FROM tab0 AS cor0
----
0
32
81

query I rowsort
SELECT DISTINCT + + col1 + col2 AS col0 FROM tab1 AS cor0
----
109
67
80

query I rowsort
SELECT ALL - - col2 * - ( col2 ) FROM tab1 cor0
----
-2916
-3249
-9216

query I rowsort
SELECT + 48 * 94 AS col0 FROM tab0 AS cor0
----
4512
4512
4512

query I rowsort
SELECT - col2 - - col0 * tab2.col1 FROM tab2
----
1305
190
4576

query I rowsort
SELECT - - 61 + + col1 AS col2 FROM tab1 AS cor0
----
71
74
87

query I rowsort
SELECT + + 78 * ( + col0 ) + - 88 FROM tab2 AS cor0
----
458
5996
6074

query I rowsort
SELECT DISTINCT + + 1 + col1 + col1 AS col2 FROM tab2 cor0
----
119
35
63

query I rowsort
SELECT ALL - + ( + col0 ) + col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT - ( ( + col2 ) ) AS col1 FROM tab2 AS cor0
----
-26
-27
-38

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3945
SELECT ALL + CAST( NULL AS SIGNED ) * 35 + col2 * + 30 + + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3945
SELECT ALL + CAST ( NULL AS INTEGER ) * 35 + col2 * + 30 + + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + - 62 AS col0 FROM tab0 AS cor0
----
-62

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3947
SELECT CAST( - 98 AS SIGNED ) * + cor0.col0 - + col1 * cor0.col2 col2 FROM tab0 AS cor0
----
-16184
-3527
-5190

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3947
SELECT CAST ( - 98 AS INTEGER ) * + cor0.col0 - + col1 * cor0.col2 col2 FROM tab0 AS cor0
----
-16184
-3527
-5190

query I rowsort
SELECT ( - col0 ) * col0 + col2 FROM tab0 cor0
----
-1224
-543
-7839

query I rowsort
SELECT - col2 * cor0.col0 * ( 71 ) FROM tab1 AS cor0
----
-11502
-259008
-545280

query I rowsort
SELECT + ( - cor0.col0 ) * - cor0.col0 AS col1 FROM tab2 AS cor0
----
49
6084
6241

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + cor0.col0 * col2 col1 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT col2 + - col0 * - 75 * 97 FROM tab1 AS cor0
----
21879
465657
582096

query I rowsort
SELECT - - col1 + - 63 * 48 FROM tab2 AS cor0
----
-2965
-2993
-3007

query I rowsort
SELECT + col2 + col2 * 88 AS col1 FROM tab0 AS cor0
----
2937
7298
89

query I rowsort
SELECT DISTINCT + col1 * cor0.col1 * + ( col0 + col1 ) FROM tab1 AS cor0
----
15717
19604
7400

query I rowsort
SELECT DISTINCT col0 + col2 * ( col1 ) AS col0 FROM tab0 AS cor0
----
132
2862
7551

query I rowsort
SELECT DISTINCT + 32 + cor0.col2 FROM tab1 AS cor0
----
128
86
89

onlyif mysql # use DIV operator for integer division
query I rowsort label-3958
SELECT - - col0 + + col0 DIV col1 AS col0 FROM tab1 AS cor0
----
3
70
86

skipif mysql # not compatible
query I rowsort label-3958
SELECT - - col0 + + col0 / col1 AS col0 FROM tab1 AS cor0
----
3
70
86

query I rowsort
SELECT DISTINCT + ( col0 ) * - col2 AS col2 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT tab0.col0 + - 96 * col0 FROM tab0
----
-2280
-3325
-8455

onlyif mysql # use DIV operator for integer division
query I rowsort label-3961
SELECT ALL + 35 DIV + cor0.col1 AS col0 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3961
SELECT ALL + 35 / + cor0.col1 AS col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT + + 86 + - cor0.col1 FROM tab2 AS cor0
----
27
55
69

query I rowsort
SELECT DISTINCT - 35 + col1 * col1 FROM tab0 AS cor0
----
7361
8246
9374

query I rowsort
SELECT - 71 + col0 FROM tab1 AS cor0
----
-68
-7
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * col0 col0 FROM tab1 cor0
----
4096
6400
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( 61 ) col0 FROM tab1 AS cor0
----
-61
-61
-61

query I rowsort
SELECT ALL + col1 * + col2 + - col1 * col1 + col2 FROM tab0 AS cor0
----
-4525
-737
-9311

query I rowsort
SELECT col0 + 77 FROM tab0
----
101
112
166

query I rowsort
SELECT col1 * - col0 + - tab0.col0 FROM tab0
----
-2088
-3430
-8188

query I rowsort
SELECT 61 + 82 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 750c11171f0669c2fa0d412d84db5fa1

query I rowsort
SELECT - + 35 + col2 * col2 + - ( col1 ) AS col1 FROM tab1 AS cor0
----
2855
3204
9168

query I rowsort
SELECT DISTINCT + ( col0 ) + - col1 + col0 AS col0 FROM tab1 cor0
----
-20
118
147

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 24 + col2 col1 FROM tab0 AS cor0
----
-23
58
9

query I rowsort
SELECT ALL cor0.col1 + col1 * + col0 * + col1 AS col2 FROM tab1 AS cor0
----
13533
2054
6410

query I rowsort
SELECT - 77 FROM tab2, tab1 AS cor0
----
9 values hashing to 3a24155cb91ceff1e67bb51c07b72107

query I rowsort
SELECT ALL + cor0.col1 * 69 + col1 AS col0 FROM tab0 AS cor0
----
6020
6370
6790

query I rowsort
SELECT ALL + 12 + + 81 * + col0 AS col1 FROM tab0 cor0
----
1956
2847
7221

query I rowsort
SELECT ALL + 20 * 31 + col2 FROM tab2 AS cor0
----
646
647
658

query I rowsort
SELECT DISTINCT + - ( - col0 ) + col0 FROM tab2 AS cor0
----
14
156
158

query I rowsort
SELECT - ( - ( - col0 ) ) + - 4 * - col1 AS col0 FROM tab2 AS cor0
----
-11
117
158

query I rowsort
SELECT DISTINCT - ( - 92 ) * col0 + cor0.col2 FROM tab2 cor0
----
671
7202
7306

query I rowsort
SELECT + - col0 * col0 + + col1 FROM tab1 AS cor0
----
-4086
-6387
17

query I rowsort
SELECT ALL + + 63 AS col1 FROM tab0, tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
27 values hashing to 38764a6e696d1a6b5095e29ef84959c0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3984
SELECT ALL - - CAST( NULL AS SIGNED ) * 66 + - col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3984
SELECT ALL - - CAST ( NULL AS INTEGER ) * 66 + - col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col0 * col0 - - col1 col0 FROM tab0 cor0
----
1322
662
8012

query I rowsort
SELECT ALL + col1 * + col1 - col0 AS col0 FROM tab1 cor0
----
36
673
89

query I rowsort
SELECT ALL col0 - - col2 AS col0 FROM tab0 cor0
----
171
36
57

query I rowsort
SELECT ALL - + ( + col2 ) + ( col0 ) AS col0 FROM tab2 AS cor0
----
-20
41
52

query I rowsort
SELECT ( col0 ) - + col2 FROM tab2
----
-20
41
52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - col1 ) col1 FROM tab1 AS cor0
----
-10
-13
-26

query I rowsort
SELECT ALL - col1 + + ( 56 + col0 ) AS col1 FROM tab2
----
118
32
75

onlyif mysql # use DIV operator for integer division
query I rowsort label-3992
SELECT DISTINCT - col2 DIV - 56 AS col1 FROM tab1 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-3992
SELECT DISTINCT - col2 / - 56 AS col1 FROM tab1 AS cor0
----
0
1

query I rowsort
SELECT DISTINCT col1 * + 66 AS col1 FROM tab2 AS cor0
----
1122
2046
3894

query I rowsort
SELECT + col2 * col1 * cor0.col0 + + col2 * 35 AS col2 FROM tab1 AS cor0
----
103200
38475
6102

query I rowsort
SELECT DISTINCT + col1 * - col2 AS col0 FROM tab1 cor0
----
-1248
-1404
-570

query I rowsort
SELECT + col0 + col0 + + col1 FROM tab2 AS cor0
----
175
215
45

query I rowsort
SELECT + col0 + + 29 * 58 + + col1 AS col1 FROM tab0 AS cor0
----
1792
1814
1862

query I rowsort
SELECT ALL - col0 * + 71 FROM tab1 AS cor0
----
-213
-4544
-5680

query I rowsort
SELECT DISTINCT - + col1 * col2 * - col2 FROM tab2 AS cor0
----
22599
24548
39884

query I rowsort
SELECT ALL - + cor0.col0 * - cor0.col2 * cor0.col1 + - cor0.col1 FROM tab0 AS cor0
----
3298
664027
68026

query I rowsort
SELECT - - 22 + + col0 AS col0 FROM tab2 AS cor0
----
100
101
29

query I rowsort
SELECT + col0 * - col1 * col0 AS col2 FROM tab0
----
-118825
-49536
-720811

query I rowsort
SELECT - - 23 AS col0 FROM tab2 AS cor0
----
23
23
23

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4004
SELECT ALL - CAST( NULL AS SIGNED ) + + ( cor0.col0 ) * col0 * + col1 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4004
SELECT ALL - CAST ( NULL AS INTEGER ) + + ( cor0.col0 ) * col0 * + col1 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-4005
SELECT - ( - col2 ) * col2 DIV - 12 + - 71 AS col0 FROM tab2 AS cor0
----
-127
-131
-191

skipif mysql # not compatible
query I rowsort label-4005
SELECT - ( - col2 ) * col2 / - 12 + - 71 AS col0 FROM tab2 AS cor0
----
-127
-131
-191

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * 92 * col2 + col0 col2 FROM tab0 AS cor0
----
100212
127
618697

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4007
SELECT - CAST( - col0 AS SIGNED ) FROM tab1 AS cor0
----
3
64
80

skipif mysql # not compatible
query I rowsort label-4007
SELECT - CAST ( - col0 AS INTEGER ) FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT ALL - col2 * - col0 + - cor0.col1 * 44 - col0 FROM tab2 AS cor0
----
-1182
-646
2175

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4009
SELECT ALL - + CAST( col2 AS SIGNED ) col2 FROM tab1 AS cor0
----
-54
-57
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4009
SELECT ALL - + CAST ( col2 AS INTEGER ) col2 FROM tab1 AS cor0
----
-54
-57
-96

query I rowsort
SELECT - 86 * 73 AS col2 FROM tab2 AS cor0
----
-6278
-6278
-6278

query I rowsort
SELECT col0 * - col0 + 9 * col0 FROM tab0
----
-360
-7120
-910

query I rowsort
SELECT 43 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 199105619049271147956de52e7f5ed4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + col2 col1 FROM tab1
----
109
67
80

query I rowsort
SELECT + col2 * 91 FROM tab0 cor0
----
3003
7462
91

query I rowsort
SELECT cor0.col2 * - 50 AS col2 FROM tab2 AS cor0
----
-1300
-1350
-1900

query I rowsort
SELECT + col2 + ( cor0.col1 ) AS col0 FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT col1 * - col1 + - col1 AS col1 FROM tab1 cor0
----
-110
-182
-702

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4018
SELECT - cor0.col1 / col1 + col0 * CAST( NULL AS SIGNED ) * + col0 col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4018
SELECT - cor0.col1 / col1 + col0 * CAST ( NULL AS INTEGER ) * + col0 col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + + 32 + - col2 AS col1 FROM tab1 cor0
----
-22
-25
-64

query I rowsort
SELECT ALL 90 FROM tab2, tab0 cor0, tab0 AS cor1, tab1 AS cor2
----
81 values hashing to 3b4644ef0734ed220952cae7e0648c4b

onlyif mysql # use DIV operator for integer division
query I rowsort label-4021
SELECT 54 + - col2 DIV + col0 AS col1 FROM tab2 AS cor0
----
51
54
54

skipif mysql # not compatible
query I rowsort label-4021
SELECT 54 + - col2 / + col0 AS col1 FROM tab2 AS cor0
----
51
54
54

query I rowsort
SELECT ( - cor0.col1 ) * col1 FROM tab2 cor0
----
-289
-3481
-961

query I rowsort
SELECT + cor0.col2 * - col2 + + ( - col1 + - col1 ) * - ( col1 ) FROM tab2 AS cor0
----
-866
1193
6286

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab1.col2 col1 FROM tab1 WHERE NOT ( NULL ) NOT BETWEEN + col2 AND col0
----

query I rowsort
SELECT - col2 + col2 + - col1 AS col2 FROM tab0
----
-86
-91
-97

query I rowsort
SELECT - col0 + ( - ( col0 ) ) * - col0 FROM tab1 AS cor0
----
4032
6
6320

query I rowsort
SELECT + 13 AS col1 FROM tab2
----
13
13
13

query IIIIIIIII rowsort
SELECT * FROM tab1, tab0, tab0 AS cor0 WHERE NOT NULL >= - cor0.col1 * cor0.col0
----

query I rowsort
SELECT DISTINCT 40 * col0 * - ( + 30 ) FROM tab1
----
-3600
-76800
-96000

query I rowsort
SELECT DISTINCT - 12 * col2 FROM tab2
----
-312
-324
-456

onlyif mysql # use DIV operator for integer division
query I rowsort label-4031
SELECT + + cor0.col0 DIV ( col2 + col2 ) AS col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4031
SELECT + + cor0.col0 / ( col2 + col2 ) AS col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + - col2 * ( + cor0.col2 ) + col1 + ( - col0 ) FROM tab1 AS cor0
----
-2893
-3303
-9283

query I rowsort
SELECT - col0 * + cor0.col0 FROM tab1 cor0
----
-4096
-6400
-9

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4034
SELECT + col0 / + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4034
SELECT + col0 / + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 61 * - col1 AS col1 FROM tab1
----
1586
610
793

query I rowsort
SELECT DISTINCT + col0 * 86 AS col2 FROM tab1 AS cor0
----
258
5504
6880

query I rowsort
SELECT - cor0.col1 * cor0.col2 AS col0 FROM tab2 cor0
----
-1534
-646
-837

query I rowsort
SELECT ALL 22 + - 50 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to c3e7fa3d059fc708f03c60e9cef0c115

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4039
SELECT ALL + col2 * CAST( NULL AS SIGNED ) col2 FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4039
SELECT ALL + col2 * CAST ( NULL AS INTEGER ) col2 FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor1.col2 + + 86 col1 FROM tab0, tab0 AS cor0, tab0 cor1, tab1 AS cor2
----
81 values hashing to 83152efa0cd46c3cf6d35b06193e1750

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * ( - 87 * col0 ) col1 FROM tab1
----
55680
6786
90480

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4042
SELECT ALL - tab0.col2 * + CAST( NULL AS SIGNED ) / - ( col1 ) AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4042
SELECT ALL - tab0.col2 * + CAST ( NULL AS INTEGER ) / - ( col1 ) AS col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT - 90 + - col1 AS col2 FROM tab1 AS cor0
----
-100
-103
-116

query I rowsort
SELECT DISTINCT + + 43 + col1 FROM tab1 AS cor0
----
53
56
69

onlyif mysql # use DIV operator for integer division
query I rowsort label-4045
SELECT - + col0 * col2 + cor0.col1 DIV + col0 AS col1 FROM tab0 AS cor0
----
-33
-7297
-789

skipif mysql # not compatible
query I rowsort label-4045
SELECT - + col0 * col2 + cor0.col1 / + col0 AS col1 FROM tab0 AS cor0
----
-33
-7297
-789

query I rowsort
SELECT - 10 FROM tab2, tab2 AS cor0
----
9 values hashing to f68f33032846e21ee6b2c668fc10355e

onlyif mysql # use DIV operator for integer division
query I rowsort label-4047
SELECT ( 59 ) DIV col2 + 67 + + tab0.col2 col2 FROM tab0
----
101
127
149

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4047
SELECT ( 59 ) / col2 + 67 + + tab0.col2 col2 FROM tab0
----
101
127
149

query I rowsort
SELECT + tab1.col2 + + 31 AS col0 FROM tab1
----
127
85
88

query I rowsort
SELECT + 74 * - col2 AS col2 FROM tab0
----
-2442
-6068
-74

query I rowsort
SELECT DISTINCT - 92 + + col1 * - tab2.col0 + + col0 FROM tab2
----
-1356
-302
-4616

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + - col1 col0 FROM tab2
----
-55
-58
-85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + cor0.col1 * + col1 col2 FROM tab0 AS cor0
----
636056
753571
912673

query I rowsort
SELECT + 3 * + cor0.col2 FROM tab2 AS cor0
----
114
78
81

query I rowsort
SELECT - + ( cor0.col2 ) AS col0 FROM tab2 AS cor0
----
-26
-27
-38

query IIIIII rowsort
SELECT ALL * FROM tab2, tab1 AS cor0 WHERE ( NULL ) >= NULL
----

query I rowsort
SELECT DISTINCT - col1 * - col1 + - col2 AS col1 FROM tab0 AS cor0
----
7363
8199
9408

query I rowsort
SELECT DISTINCT - col1 - - col1 AS col2 FROM tab0 cor0
----
0

query I rowsort
SELECT + cor0.col1 + + cor0.col2 FROM tab1 cor0
----
109
67
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-4059
SELECT DISTINCT + col2 + col1 * col2 - col1 DIV + col2 FROM tab1 AS cor0
----
1344
1458
627

skipif mysql # not compatible
query I rowsort label-4059
SELECT DISTINCT + col2 + col1 * col2 - col1 / + col2 FROM tab1 AS cor0
----
1344
1458
627

query I rowsort
SELECT col0 + col2 * col1 FROM tab0 AS cor0
----
132
2862
7551

query I rowsort
SELECT - col1 * cor0.col2 + col2 AS col1 FROM tab2 AS cor0
----
-1508
-608
-810

query I rowsort
SELECT ALL col2 * cor0.col0 + col0 * col0 FROM tab2 AS cor0
----
238
8112
9243

query I rowsort
SELECT DISTINCT + col2 + + col1 + col1 AS col2 FROM tab0 AS cor0
----
195
205
264

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col2 FROM tab2 AS cor0 WHERE NOT col2 NOT IN ( col1 ) OR NOT NULL BETWEEN col0 AND col2 + col1 + col2
----

query I rowsort
SELECT ALL + - col2 - col0 * col2 AS col0 FROM tab1 AS cor0
----
-216
-3705
-7776

query I rowsort
SELECT DISTINCT + col2 + + col0 * - cor0.col0 FROM tab1 AS cor0
----
-4039
-6304
45

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + - col0 col1 FROM tab0 AS cor0
----
-178
-48
-70

query I rowsort
SELECT ALL + + cor0.col0 * + col0 + cor0.col2 AS col0 FROM tab2 AS cor0
----
6110
6279
76

onlyif mysql # use DIV operator for integer division
query I rowsort label-4069
SELECT ALL - cor0.col0 DIV - col0 - - col0 * col2 AS col1 FROM tab1 AS cor0
----
163
3649
7681

skipif mysql # not compatible
query I rowsort label-4069
SELECT ALL - cor0.col0 / - col0 - - col0 * col2 AS col1 FROM tab1 AS cor0
----
163
3649
7681

query I rowsort
SELECT + tab1.col1 - col2 FROM tab1
----
-28
-47
-83

query I rowsort
SELECT ALL + 17 * - col2 FROM tab2 AS cor0
----
-442
-459
-646

query I rowsort
SELECT - ( cor0.col0 ) FROM tab0 cor0
----
-24
-35
-89

query I rowsort
SELECT cor0.col1 + - cor0.col2 * cor0.col2 AS col0 FROM tab0 AS cor0
----
-1003
-6633
96

query I rowsort
SELECT - col2 + + col1 - cor0.col1 FROM tab2 AS cor0
----
-26
-27
-38

query I rowsort
SELECT - - col2 + - col1 AS col1 FROM tab0 cor0
----
-53
-9
-96

query I rowsort
SELECT DISTINCT 76 AS col2 FROM tab2 AS cor0
----
76

onlyif mysql # use DIV operator for integer division
query I rowsort label-4077
SELECT DISTINCT + - cor0.col0 DIV + col0 AS col0 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-4077
SELECT DISTINCT + - cor0.col0 / + col0 AS col0 FROM tab2 AS cor0
----
-1

query I rowsort
SELECT ALL - - ( col1 ) FROM tab2 cor0
----
17
31
59

onlyif mysql # use DIV operator for integer division
query I rowsort label-4079
SELECT cor0.col2 DIV - col1 + + col2 AS col2 FROM tab2 AS cor0
----
26
27
36

skipif mysql # not compatible
query I rowsort label-4079
SELECT cor0.col2 / - col1 + + col2 AS col2 FROM tab2 AS cor0
----
26
27
36

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + - col1 * col1 col1 FROM tab0 AS cor0
----
-7429
-8363
-9410

onlyif mysql # use DIV operator for integer division
query I rowsort label-4081
SELECT ALL + col0 + col2 DIV col0 FROM tab2 AS cor0
----
10
78
79

skipif mysql # not compatible
query I rowsort label-4081
SELECT ALL + col0 + col2 / col0 FROM tab2 AS cor0
----
10
78
79

query I rowsort
SELECT DISTINCT - - col2 + - cor0.col0 AS col1 FROM tab0 AS cor0
----
-34
-7
9

query I rowsort
SELECT + col1 * 54 AS col0 FROM tab1
----
1404
540
702

query I rowsort
SELECT ALL - col0 + tab2.col0 - - col2 * - col2 * + col2 FROM tab2
----
-17576
-19683
-54872

query I rowsort
SELECT - + col0 * + col2 + + col1 + col0 AS col2 FROM tab2 AS cor0
----
-151
-1891
-2906

query I rowsort
SELECT DISTINCT + 30 * col1 + + cor0.col2 + cor0.col0 FROM tab2 cor0
----
1874
627
964

onlyif mysql # use DIV operator for integer division
query I rowsort label-4087
SELECT + cor0.col2 DIV col0 + col2 + + col2 FROM tab0 AS cor0
----
164
2
67

skipif mysql # not compatible
query I rowsort label-4087
SELECT + cor0.col2 / col0 + col2 + + col2 FROM tab0 AS cor0
----
164
2
67

query I rowsort
SELECT ( + col1 ) * - col1 * col2 + - col1 + col1 AS col2 FROM tab2 AS cor0
----
-10982
-25947
-90506

query I rowsort
SELECT + + col0 + - col0 AS col1 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT ALL col0 * + tab2.col2 + - col2 + col2 FROM tab2
----
189
2028
3002

query I rowsort
SELECT DISTINCT - col2 + - tab0.col1 * - col2 AS col2 FROM tab0 WHERE NOT ( NOT NULL IN ( + col2 ) ) AND ( NULL ) NOT IN ( - col0 + col0 )
----

query I rowsort
SELECT + col0 - + col2 AS col0 FROM tab2
----
-20
41
52

query I rowsort
SELECT ALL col1 * col1 * col1 AS col2 FROM tab1
----
1000
17576
2197

query I rowsort
SELECT DISTINCT col0 * - col0 * col0 AS col0 FROM tab2
----
-343
-474552
-493039

query I rowsort
SELECT ALL - col0 + col0 + col2 FROM tab1
----
54
57
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-4096
SELECT - col0 * col1 + col1 DIV - tab2.col0 + tab2.col1 * + col2 FROM tab2
----
-3068
-697
616

skipif mysql # not compatible
query I rowsort label-4096
SELECT - col0 * col1 + col1 / - tab2.col0 + tab2.col1 * + col2 FROM tab2
----
-3068
-697
616

query I rowsort
SELECT + col0 * - col2 + col0 * col2 AS col0 FROM tab0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab0.col1 * - col2 * col2 col0 FROM tab0
----
-611884
-93654
-97

query I rowsort
SELECT ALL + col0 * + col0 * tab1.col1 AS col2 FROM tab1
----
234
40960
83200

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( col0 * + col2 + + col2 ) >= NULL
----

query I rowsort
SELECT DISTINCT + col0 + - col2 * + col1 + col0 AS col2 FROM tab1
----
-1088
-1398
-442

query I rowsort
SELECT DISTINCT + col0 * + col2 AS col1 FROM tab0 WHERE NOT ( NULL ) NOT BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT DISTINCT col2 * + col1 * - col2 FROM tab2
----
-22599
-24548
-39884

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + tab1.col1 + + col1 col2 FROM tab1
----
-44
-54
49

query I rowsort
SELECT + col0 + - col2 AS col2 FROM tab1 WHERE NOT NULL BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT col2 * - col0 * + col1 FROM tab1
----
-36480
-4212
-99840

query I rowsort
SELECT DISTINCT col2 * - col2 * col0 FROM tab0
----
-26136
-35
-598436

query I rowsort
SELECT + col0 * col2 * col0 + col1 + col2 * + col0 * col0 FROM tab2 WHERE NULL NOT BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT + col0 + + tab1.col2 AS col2 FROM tab1 WHERE NULL NOT IN ( + col1 )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL IN ( col2 * + col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * col0 + - tab2.col1 col0 FROM tab2
----
-6143
-6258
-80

query I rowsort
SELECT col0 + + col2 * - col1 AS col0 FROM tab0
----
-2814
-62
-7373

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * col2 col2 FROM tab2 WHERE NOT NULL NOT IN ( col1 )
----

query I rowsort
SELECT col0 * + col1 + - col0 * col1 + col0 * col2 FROM tab0 WHERE NOT ( - col0 * col1 ) >= col2
----
35
7298
792

query I rowsort
SELECT + col1 - + col0 AS col0 FROM tab1
----
-54
-67
23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + + tab1.col1 col0 FROM tab1
----
0
0
0

query I rowsort
SELECT col2 + col1 * + col2 AS col1 FROM tab2
----
1560
684
864

onlyif mysql # use DIV operator for integer division
query I rowsort label-4118
SELECT ALL + col2 + - col2 DIV col1 FROM tab1
----
52
52
89

skipif mysql # not compatible
query I rowsort label-4118
SELECT ALL + col2 + - col2 / col1 FROM tab1
----
52
52
89

query I rowsort
SELECT - col1 * - col1 + - col0 * tab2.col1 FROM tab2
----
-1054
-1121
744

query I rowsort
SELECT ALL - col2 + cor0.col1 AS col0 FROM tab1 AS cor0
----
-28
-47
-83

query I rowsort
SELECT DISTINCT - - col0 * col1 + col2 + - col1 AS col1 FROM tab0 AS cor0
----
2011
3299
8090

query I rowsort
SELECT DISTINCT col1 * + cor0.col1 AS col1 FROM tab2 AS cor0
----
289
3481
961

query I rowsort
SELECT ALL + col1 AS col2 FROM tab0 WHERE NOT ( NULL ) = + col2 * + col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * + col1 * - col1 col0 FROM tab0
----
-636056
-753571
-912673

onlyif mysql # use DIV operator for integer division
query I rowsort label-4125
SELECT DISTINCT + col2 * + col1 + col1 DIV - col0 AS col1 FROM tab0
----
2835
7461
95

skipif mysql # not compatible
query I rowsort label-4125
SELECT DISTINCT + col2 * + col1 + col1 / - col0 AS col1 FROM tab0
----
2835
7461
95

query I rowsort
SELECT ALL + cor0.col0 AS col1 FROM tab1, tab2 cor0
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a

query I rowsort
SELECT + col2 * + col1 + + col0 AS col0 FROM tab1 AS cor0
----
1328
1407
634

onlyif mysql # use DIV operator for integer division
query I rowsort label-4128
SELECT ALL cor0.col2 + col0 DIV col2 FROM tab1 AS cor0
----
54
58
96

skipif mysql # not compatible
query I rowsort label-4128
SELECT ALL cor0.col2 + col0 / col2 FROM tab1 AS cor0
----
54
58
96

query I rowsort
SELECT col1 * + col1 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IN ( - col2 * - col2 )
----

query I rowsort
SELECT ALL - 93 AS col2 FROM tab0
----
-93
-93
-93

query I rowsort
SELECT ALL ( col1 + tab2.col1 ) AS col2 FROM tab2
----
118
34
62

query I rowsort
SELECT DISTINCT - 59 + + 10 FROM tab1 AS cor0
----
-49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 72 col2 FROM tab2 AS cor0
----
72
72
72

query I rowsort
SELECT + 19 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 3dac30dc82c9e5acbbd3a5c5d1aeee11

query I rowsort
SELECT - 7 FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to 82db7c0390abae7ccf4512b1302a6466

query I rowsort
SELECT + - 52 + col1 AS col1 FROM tab0 AS cor0
----
34
39
45

query I rowsort
SELECT ALL - ( tab1.col1 ) * - 35 * + 68 AS col1 FROM tab1
----
23800
30940
61880

query I rowsort
SELECT - - 36 AS col1 FROM tab1 cor0
----
36
36
36

query I rowsort
SELECT + 60 + 23 FROM tab1, tab1 cor0
----
9 values hashing to 18f405c31a0fb47ce3cc9f7effa8855c

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * col2 col0 FROM tab0
----
-1
-1089
-6724

query I rowsort
SELECT + cor0.col1 + + 76 FROM tab2 AS cor0
----
107
135
93

query I rowsort
SELECT + col1 + 48 FROM tab2 AS cor0
----
107
65
79

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4143
SELECT ALL + col2 + CAST( NULL AS SIGNED ) * - col1 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4143
SELECT ALL + col2 + CAST ( NULL AS INTEGER ) * - col1 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-4144
SELECT col2 * 99 * col0 + col1 + ( cor0.col0 ) * col0 DIV - 22 FROM tab1 AS cor0
----
16064
360976
760043

skipif mysql # not compatible
query I rowsort label-4144
SELECT col2 * 99 * col0 + col1 + ( cor0.col0 ) * col0 / - 22 FROM tab1 AS cor0
----
16064
360976
760043

query I rowsort
SELECT - col1 * col2 + col2 FROM tab1 cor0
----
-1152
-1350
-513

query I rowsort
SELECT - 79 * ( col1 ) * 56 AS col0 FROM tab0 AS cor0
----
-380464
-402584
-429128

query I rowsort
SELECT ( 15 ) FROM tab2 cor0
----
15
15
15

query I rowsort
SELECT tab0.col2 AS col1 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475

query I rowsort
SELECT - 94 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to a95bfa539191d3f72f6548147d7efb9e

query I rowsort
SELECT - 50 + col2 FROM tab1 cor0
----
4
46
7

query I rowsort
SELECT + col2 * col0 + col1 * - col2 AS col1 FROM tab0 AS cor0
----
-164
-2046
-62

query I rowsort
SELECT ALL + 10 FROM tab1, tab0 cor0
----
9 values hashing to a47194429f3e0358a3aebffd5f050113

query I rowsort
SELECT - + col0 * + col0 + - col2 AS col2 FROM tab0 AS cor0
----
-1226
-609
-8003

onlyif mysql # use DIV operator for integer division
query I rowsort label-4154
SELECT DISTINCT - + col0 DIV col1 AS col0 FROM tab2 AS cor0
----
-1
-4
0

skipif mysql # not compatible
query I rowsort label-4154
SELECT DISTINCT - + col0 / col1 AS col0 FROM tab2 AS cor0
----
-1
-4
0

query I rowsort
SELECT + 30 * col1 + cor0.col0 FROM tab2 AS cor0
----
1848
589
937

query I rowsort
SELECT DISTINCT + col1 * - ( col2 ) FROM tab0
----
-2838
-7462
-97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4157
SELECT - cor0.col1 + + col2 + col0 * - CAST( col2 AS SIGNED ) FROM tab2 AS cor0
----
-193
-2061
-2981

skipif mysql # not compatible
query I rowsort label-4157
SELECT - cor0.col1 + + col2 + col0 * - CAST ( col2 AS INTEGER ) FROM tab2 AS cor0
----
-193
-2061
-2981

query I rowsort
SELECT ALL col1 * col2 + + col2 AS col1 FROM tab2 AS cor0
----
1560
684
864

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4159
SELECT - - CAST( NULL AS SIGNED ) + + col1 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4159
SELECT - - CAST ( NULL AS INTEGER ) + + col1 FROM tab1 cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 32 col0 FROM tab2 AS cor0
----
-32

query I rowsort
SELECT DISTINCT - 32 + col0 * - col1 AS col1 FROM tab1 AS cor0
----
-1072
-110
-672

query I rowsort
SELECT - 17 * col2 AS col1 FROM tab2 cor0
----
-442
-459
-646

query I rowsort
SELECT + 83 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 18f405c31a0fb47ce3cc9f7effa8855c

query I rowsort
SELECT DISTINCT - 1 AS col1 FROM tab1
----
-1

query I rowsort
SELECT DISTINCT + col2 * col2 + 78 FROM tab1 cor0
----
2994
3327
9294

query I rowsort
SELECT ALL - col0 * + cor0.col2 + 56 * col2 AS col2 FROM tab2 AS cor0
----
-572
-874
1323

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 90 + col1 + ( + cor0.col0 ) col1 FROM tab1 cor0
----
119
164
183

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4168
SELECT + CAST( NULL AS SIGNED ) * - col2 - col2 * col1 / + tab2.col1 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4168
SELECT + CAST ( NULL AS INTEGER ) * - col2 - col2 * col1 / + tab2.col1 AS col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 22 * tab2.col2 + col2 AS col1 FROM tab2
----
598
621
874

query I rowsort
SELECT DISTINCT + col2 * + 16 AS col1 FROM tab0
----
1312
16
528

skipif mysql # not compatible
query I rowsort
SELECT ALL - col0 + CAST ( - ( + col2 ) AS REAL ) * col1 * col0 FROM tab0 AS cor0
----
-3430
-664207
-68136

onlyif mysql # use DIV operator for integer division
query I rowsort label-4172
SELECT + cor0.col2 DIV - ( + 28 ) - col2 * - cor0.col1 AS col1 FROM tab2 AS cor0
----
1534
645
837

skipif mysql # not compatible
query I rowsort label-4172
SELECT + cor0.col2 / - ( + 28 ) - col2 * - cor0.col1 AS col1 FROM tab2 AS cor0
----
1534
645
837

query I rowsort
SELECT + - col1 - 7 AS col2 FROM tab1 AS cor0
----
-17
-20
-33

onlyif mysql # use DIV operator for integer division
query I rowsort label-4174
SELECT ALL col1 DIV + col0 + + 76 + col0 * col1 AS col0 FROM tab0 cor0
----
2143
3473
8176

skipif mysql # not compatible
query I rowsort label-4174
SELECT ALL col1 / + col0 + + 76 + col0 * col1 AS col0 FROM tab0 cor0
----
2143
3473
8176

query I rowsort
SELECT DISTINCT - - col2 + ( col0 ) * col0 FROM tab2 AS cor0
----
6110
6279
76

query I rowsort
SELECT - + col0 * - 76 + - col1 - col0 AS col2 FROM tab2 AS cor0
----
494
5791
5908

query I rowsort
SELECT + + col1 * ( - col2 * col2 ) FROM tab0 AS cor0
----
-611884
-93654
-97

query I rowsort
SELECT ALL - 5 + col2 AS col0 FROM tab0
----
-4
28
77

query I rowsort
SELECT - + col1 + - ( col1 ) FROM tab1 AS cor0
----
-20
-26
-52

query I rowsort
SELECT + cor0.col2 + - ( + col0 ) - - col2 FROM tab2 AS cor0
----
-26
-3
47

query I rowsort
SELECT ALL + tab2.col0 - col2 * - col2 * + col0 FROM tab2
----
114155
5110
52806

query I rowsort
SELECT ALL 48 + + col2 * 79 FROM tab0
----
127
2655
6526

query I rowsort
SELECT ALL + 90 AS col0 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to 5d25a546acf3ae171e731e50adc0112e

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4184
SELECT col0 * - tab0.col1 + CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4184
SELECT col0 * - tab0.col1 + CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab0.col0 * col1 col0 FROM tab0
----
2064
3395
8099

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col0 + col2 * 98 col2 FROM tab2 AS cor0
----
2626
2653
3803

query I rowsort
SELECT DISTINCT cor0.col1 + - col0 + 58 FROM tab1 cor0
----
-9
4
81

query I rowsort
SELECT cor0.col0 * col1 + col1 AS col0 FROM tab0 AS cor0
----
2150
3492
8190

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4189
SELECT + 87 + - col2 * + CAST( - col1 AS SIGNED ) FROM tab2 AS cor0
----
1621
733
924

skipif mysql # not compatible
query I rowsort label-4189
SELECT + 87 + - col2 * + CAST ( - col1 AS INTEGER ) FROM tab2 AS cor0
----
1621
733
924

query I rowsort
SELECT 9 * - col1 AS col0 FROM tab1
----
-117
-234
-90

query I rowsort
SELECT - col1 * - col1 + - cor0.col2 * col2 FROM tab0 AS cor0
----
1557
6307
9408

query I rowsort
SELECT - col1 * 24 + 23 FROM tab0 AS cor0
----
-2041
-2161
-2305

query I rowsort
SELECT - col1 + cor0.col0 FROM tab1 cor0
----
-23
54
67

query I rowsort
SELECT ALL col1 + - col1 + + col2 AS col0 FROM tab0 cor0
----
1
33
82

query I rowsort
SELECT DISTINCT + col1 + + 61 * - col0 + cor0.col1 FROM tab2 AS cor0
----
-365
-4640
-4785

query I rowsort
SELECT ALL + col2 + col0 + cor0.col1 * col1 FROM tab0 AS cor0
----
7453
8452
9445

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4197
SELECT - col2 * - CAST( col2 * col2 AS SIGNED ) + col0 + + col1 AS col1 FROM tab1 AS cor0
----
157493
185267
884829

skipif mysql # not compatible
query I rowsort label-4197
SELECT - col2 * - CAST ( col2 * col2 AS INTEGER ) + col0 + + col1 AS col1 FROM tab1 AS cor0
----
157493
185267
884829

query I rowsort
SELECT DISTINCT + col0 + + col1 * ( - col2 + + col2 * + col1 ) AS col0 FROM tab0 AS cor0
----
241254
671669
9347

query I rowsort
SELECT DISTINCT - + cor0.col1 + cor0.col2 + + col0 FROM tab1 AS cor0
----
111
163
31

query I rowsort
SELECT col2 * + 55 + - cor0.col1 FROM tab1 AS cor0
----
2944
3125
5267

query I rowsort
SELECT DISTINCT - col0 + ( 90 ) FROM tab1 AS cor0
----
10
26
87

query I rowsort
SELECT ALL + col1 * 70 - + col2 FROM tab1 AS cor0
----
1766
643
814

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4203
SELECT + CAST( NULL AS DECIMAL ) * col0 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4203
SELECT + CAST ( NULL AS REAL ) * col0 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + + ( - cor0.col2 ) * + col1 AS col1 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT DISTINCT - + col0 * col2 * col1 + 89 * col2 * cor0.col0 FROM tab2 AS cor0
----
10962
216144
60840

query I rowsort
SELECT ALL + col1 * - cor0.col1 + cor0.col2 FROM tab2 AS cor0
----
-251
-3455
-934

query I rowsort
SELECT DISTINCT + - col1 * col2 AS col1 FROM tab0 cor0
----
-2838
-7462
-97

query I rowsort
SELECT DISTINCT ( - col0 ) + + col2 * - col2 AS col0 FROM tab0 cor0
----
-1113
-36
-6813

query I rowsort
SELECT + 18 * - col2 * + cor0.col0 FROM tab2 cor0
----
-3402
-36504
-54036

query I rowsort
SELECT ALL + col0 - + col2 * col1 FROM tab0 AS cor0
----
-2814
-62
-7373

query I rowsort
SELECT + cor0.col2 * - 5 AS col2 FROM tab2 AS cor0
----
-130
-135
-190

query I rowsort
SELECT ALL - ( ( col0 ) ) + col2 AS col0 FROM tab2 AS cor0
----
-41
-52
20

query I rowsort
SELECT ALL col1 + - col2 - col1 AS col0 FROM tab2 AS cor0
----
-26
-27
-38

query I rowsort
SELECT DISTINCT - - ( - 26 ) + - col1 FROM tab2 AS cor0
----
-43
-57
-85

onlyif mysql # use DIV operator for integer division
query I rowsort label-4215
SELECT + - 7 DIV - col0 FROM tab2 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-4215
SELECT + - 7 / - col0 FROM tab2 AS cor0
----
0
0
1

query I rowsort
SELECT cor0.col2 * - 85 AS col2 FROM tab0 AS cor0
----
-2805
-6970
-85

query I rowsort
SELECT DISTINCT + + 23 AS col0 FROM tab2 AS cor0
----
23

query I rowsort
SELECT ALL 89 FROM tab0, tab0 cor0, tab1 AS cor1
----
27 values hashing to 860d55eb6785972467218a9c3badb5ad

query I rowsort
SELECT DISTINCT + 90 AS col1 FROM tab2 AS cor0
----
90

query I rowsort
SELECT + 98 - col0 AS col0 FROM tab0 AS cor0
----
63
74
9

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4221
SELECT col2 + col1 + CAST( cor0.col1 AS SIGNED ) FROM tab1 AS cor0
----
106
122
77

skipif mysql # not compatible
query I rowsort label-4221
SELECT col2 + col1 + CAST ( cor0.col1 AS INTEGER ) FROM tab1 AS cor0
----
106
122
77

query I rowsort
SELECT DISTINCT + col1 + - col1 * + 59 AS col1 FROM tab1 AS cor0
----
-1508
-580
-754

onlyif mysql # use DIV operator for integer division
query I rowsort label-4223
SELECT ALL + col2 DIV - col0 + + ( + col1 ) * col0 AS col1 FROM tab2 AS cor0
----
1343
214
4602

skipif mysql # not compatible
query I rowsort label-4223
SELECT ALL + col2 / - col0 + + ( + col1 ) * col0 AS col1 FROM tab2 AS cor0
----
1343
214
4602

onlyif mysql # use DIV operator for integer division
query I rowsort label-4224
SELECT ALL + ( + col2 ) * col2 + + col1 DIV col1 + + col1 AS col2 FROM tab0 cor0
----
1176
6816
99

skipif mysql # not compatible
query I rowsort label-4224
SELECT ALL + ( + col2 ) * col2 + + col1 / col1 + + col1 AS col2 FROM tab0 cor0
----
1176
6816
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col2 * - col1 col2 FROM tab2 cor0
----
1534
646
837

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col1 + + col0 col2 FROM tab2 AS cor0
----
-24
19
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 5 - col2 * 57 col0 FROM tab2 AS cor0
----
-1477
-1534
-2161

query I rowsort
SELECT ALL - - cor0.col1 * col2 AS col0 FROM tab0 cor0
----
2838
7462
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col1 + - col1 col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT - 61 + + col0 + col2 AS col1 FROM tab0 AS cor0
----
-25
-4
110

query I rowsort
SELECT DISTINCT ( col1 ) * - col1 AS col0 FROM tab2 AS cor0
----
-289
-3481
-961

query I rowsort
SELECT cor0.col1 + col2 * - col2 FROM tab2 cor0
----
-1427
-617
-698

query I rowsort
SELECT ALL + 80 AS col2 FROM tab1, tab2, tab1 cor0
----
27 values hashing to 6dd5038be71dffa82f5ceba787caab91

query I rowsort
SELECT col2 + col2 * + col0 * col0 AS col2 FROM tab1
----
233529
540
614496

query I rowsort
SELECT - ( tab1.col2 * + col2 + - 61 ) AS col0 FROM tab1
----
-2855
-3188
-9155

query I rowsort
SELECT - 94 * - col0 + col2 FROM tab1
----
336
6073
7616

query I rowsort
SELECT + 70 * cor0.col1 + - 69 * - cor0.col1 + - col0 FROM tab1 AS cor0
----
1326
1727
3611

query I rowsort
SELECT ALL + col1 + + 56 * col0 AS col2 FROM tab2 AS cor0
----
423
4427
4441

onlyif mysql # use DIV operator for integer division
query I rowsort label-4239
SELECT col2 * col0 DIV + col0 AS col2 FROM tab0 AS cor0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-4239
SELECT col2 * col0 / + col0 AS col2 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT col2 + 14 AS col0 FROM tab1
----
110
68
71

query I rowsort
SELECT DISTINCT col0 * 90 AS col1 FROM tab1
----
270
5760
7200

onlyif mysql # use DIV operator for integer division
query I rowsort label-4242
SELECT 30 DIV + col1 + - col1 col2 FROM tab1
----
-11
-25
-7

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4242
SELECT 30 / + col1 + - col1 col2 FROM tab1
----
-11
-25
-7

query I rowsort
SELECT DISTINCT 36 AS col1 FROM tab2, tab2 AS cor0
----
36

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4244
SELECT DISTINCT CAST( NULL AS SIGNED ) / ( + col0 ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4244
SELECT DISTINCT CAST ( NULL AS INTEGER ) / ( + col0 ) FROM tab2
----
NULL

query I rowsort
SELECT + 44 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to ab2bc2b9f8baa300df7755e5980a319d

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( tab1.col1 ) col1 FROM tab1, tab2 cor0
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775

query I rowsort
SELECT + ( + ( + tab1.col1 ) ) AS col0 FROM tab1
----
10
13
26

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4248
SELECT DISTINCT CAST( - 8 AS SIGNED ) * tab0.col2 AS col2 FROM tab0
----
-264
-656
-8

skipif mysql # not compatible
query I rowsort label-4248
SELECT DISTINCT CAST ( - 8 AS INTEGER ) * tab0.col2 AS col2 FROM tab0
----
-264
-656
-8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 65 col0 FROM tab1 AS cor0
----
-65
-65
-65

query I rowsort
SELECT DISTINCT + cor1.col0 AS col1 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
7
78
79

query I rowsort
SELECT - 81 FROM tab0, tab1 AS cor0
----
9 values hashing to 205b3ff2d7b1817c98d7980b8c17e6c1

onlyif mysql # use DIV operator for integer division
query I rowsort label-4252
SELECT DISTINCT - 90 DIV col2 FROM tab1 cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-4252
SELECT DISTINCT - 90 / col2 FROM tab1 cor0
----
-1
0

query I rowsort
SELECT - cor0.col2 * + col0 + col2 AS col1 FROM tab1 AS cor0
----
-108
-3591
-7584

query I rowsort
SELECT col1 + 16 FROM tab0 AS cor0
----
102
107
113

query I rowsort
SELECT col1 * 69 FROM tab2 AS cor0
----
1173
2139
4071

query I rowsort
SELECT - col0 * - cor0.col1 AS col2 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT ALL + col2 * ( - 21 ) FROM tab1 AS cor0
----
-1134
-1197
-2016

query I rowsort
SELECT ALL + 51 * col0 AS col1 FROM tab2
----
357
3978
4029

query I rowsort
SELECT ALL - 3 AS col1 FROM tab0, tab2 AS cor0, tab1, tab2 AS cor1
----
81 values hashing to 0982dc7d0db8187bbb77550a76766104

query I rowsort
SELECT ALL col0 + + 92 AS col2 FROM tab0 AS cor0
----
116
127
181

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4261
SELECT ALL + tab1.col2 / + CAST( NULL AS SIGNED ) + col2 + col1 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4261
SELECT ALL + tab1.col2 / + CAST ( NULL AS INTEGER ) + col2 + col1 AS col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT - col1 + + ( + col0 ) AS col1 FROM tab2 AS cor0
----
-24
19
62

query I rowsort
SELECT + col2 + col2 + + col1 AS col0 FROM tab2 AS cor0
----
111
85
93

query I rowsort
SELECT DISTINCT - 93 FROM tab2, tab0 AS cor0
----
-93

onlyif mysql # use DIV operator for integer division
query I rowsort label-4265
SELECT - + cor0.col2 DIV + col2 + 8 AS col2 FROM tab0 AS cor0
----
7
7
7

skipif mysql # not compatible
query I rowsort label-4265
SELECT - + cor0.col2 / + col2 + 8 AS col2 FROM tab0 AS cor0
----
7
7
7

onlyif mysql # use DIV operator for integer division
query I rowsort label-4266
SELECT tab1.col2 DIV ( tab1.col2 * tab1.col2 ) FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4266
SELECT tab1.col2 / ( tab1.col2 * tab1.col2 ) FROM tab1
----
0
0
0

query I rowsort
SELECT col0 * - col0 - + col2 AS col0 FROM tab0
----
-1226
-609
-8003

query I rowsort
SELECT DISTINCT - 23 AS col1 FROM tab2, tab0, tab2 AS cor0
----
-23

onlyif mysql # use DIV operator for integer division
query I rowsort label-4269
SELECT col2 + cor0.col0 DIV 94 AS col2 FROM tab0 AS cor0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-4269
SELECT col2 + cor0.col0 / 94 AS col2 FROM tab0 AS cor0
----
1
33
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 75 col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 22042bfd4d787415457a42bb93d48eea

query I rowsort
SELECT + 25 + + cor0.col2 FROM tab2 AS cor0
----
51
52
63

query I rowsort
SELECT - 68 - col1 * + col1 FROM tab2 AS cor0
----
-1029
-3549
-357

query I rowsort
SELECT DISTINCT tab1.col1 + col2 * + col2 + col0 FROM tab1
----
2945
3323
9309

query I rowsort
SELECT ALL + 92 * cor0.col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 822671b9c28ae237357f6c982eb2e14e

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + tab2.col0 * tab2.col0 + col1 col2 FROM tab2
----
6143
6258
80

query I rowsort
SELECT ALL col0 + col1 * + 4 + tab1.col0 AS col0 FROM tab1
----
110
168
212

query I rowsort
SELECT + - col2 * - col1 + col2 FROM tab2 AS cor0
----
1560
684
864

query I rowsort
SELECT col2 * col2 - col2 AS col0 FROM tab2 cor0
----
1406
650
702

query I rowsort
SELECT ALL - col2 * - 81 + - 32 FROM tab1 AS cor0
----
4342
4585
7744

onlyif mysql # use DIV operator for integer division
query I rowsort label-4280
SELECT + - col1 DIV - col1 + - 19 FROM tab1 AS cor0
----
-18
-18
-18

skipif mysql # not compatible
query I rowsort label-4280
SELECT + - col1 / - col1 + - 19 FROM tab1 AS cor0
----
-18
-18
-18

query I rowsort
SELECT ALL - - col0 * 61 * 19 + col2 AS col0 FROM tab2 AS cor0
----
8140
90428
91599

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4282
SELECT ALL - col1 * - CAST( NULL AS SIGNED ) * + col2 + + cor0.col2 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4282
SELECT ALL - col1 * - CAST ( NULL AS INTEGER ) * + col2 + + cor0.col2 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - + col1 + - col1 * cor0.col1 FROM tab1 cor0
----
-110
-182
-702

query I rowsort
SELECT ALL - col0 * + col2 + - col2 FROM tab2 AS cor0
----
-2054
-216
-3040

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4285
SELECT CAST( 79 + + col2 AS SIGNED ) AS col2 FROM tab0
----
112
161
80

skipif mysql # not compatible
query I rowsort label-4285
SELECT CAST ( 79 + + col2 AS INTEGER ) AS col2 FROM tab0
----
112
161
80

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab1 cor0, tab2 AS cor1, tab1, tab1 AS cor2
----
3645 values hashing to ca91d1f523a87017f672304548e91a77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col0 col1 FROM tab0, tab1 AS cor0, tab0 cor1, tab0 cor2
----
81 values hashing to e28bf7f922650ca423ade3642ce0285b

query I rowsort
SELECT DISTINCT + cor0.col2 * - col1 * + col0 FROM tab1 AS cor0
----
-36480
-4212
-99840

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 99 col0 FROM tab1 AS cor0
----
-99
-99
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - ( + col0 ) + - col1 - col0 * + col2 col1 FROM tab0 AS cor0
----
-7300
-854
-97

query I rowsort
SELECT ALL - - 14 FROM tab2 AS cor0
----
14
14
14

onlyif mysql # use DIV operator for integer division
query I rowsort label-4292
SELECT ALL - - 92 DIV col0 + col0 + + col2 * col0 AS col0 FROM tab1 AS cor0
----
195
3713
7761

skipif mysql # not compatible
query I rowsort label-4292
SELECT ALL - - 92 / col0 + col0 + + col2 * col0 AS col0 FROM tab1 AS cor0
----
195
3713
7761

query I rowsort
SELECT DISTINCT + + col0 * - col1 + ( col1 ) * cor0.col1 AS col0 FROM tab2 AS cor0
----
-1054
-1121
744

query I rowsort
SELECT ALL - col1 - col0 AS col1 FROM tab0 AS cor0
----
-110
-132
-180

query I rowsort
SELECT DISTINCT 44 * col0 AS col1 FROM tab0 cor0
----
1056
1540
3916

onlyif mysql # use DIV operator for integer division
query I rowsort label-4296
SELECT - + col1 * col2 - + ( col2 ) DIV - cor0.col0 FROM tab2 AS cor0
----
-1534
-646
-834

skipif mysql # not compatible
query I rowsort label-4296
SELECT - + col1 * col2 - + ( col2 ) / - cor0.col0 FROM tab2 AS cor0
----
-1534
-646
-834

query I rowsort
SELECT ALL + - col2 * col2 + - col2 AS col0 FROM tab1 AS cor0
----
-2970
-3306
-9312

query I rowsort
SELECT DISTINCT + ( + cor0.col2 ) + - cor0.col0 * col0 FROM tab1 AS cor0
----
-4039
-6304
45

query I rowsort
SELECT + 99 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 4b77467dd5f346109d29f6364a7bb8db

query I rowsort
SELECT ALL + 56 + cor0.col1 * - 64 AS col2 FROM tab1 AS cor0
----
-1608
-584
-776

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 35 col1 FROM tab0
----
-35

query I rowsort
SELECT ALL + ( + col1 ) * + cor0.col2 AS col2 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT - col2 * - col1 + col2 - - col2 * col1 FROM tab1 AS cor0
----
1197
2592
2862

query I rowsort
SELECT + 54 + + 18 AS col1 FROM tab0 AS cor0
----
72
72
72

query I rowsort
SELECT DISTINCT + 82 * + col0 FROM tab1 AS cor0
----
246
5248
6560

query I rowsort
SELECT + + col0 * 46 + col1 AS col1 FROM tab0 cor0
----
1190
1707
4185

query I rowsort
SELECT DISTINCT col1 - col2 * + tab2.col2 AS col2 FROM tab2
----
-1427
-617
-698

query I rowsort
SELECT cor0.col2 + - 33 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 1dfe9c8080b8e16f1f07257507f1361a

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4309
SELECT CAST( - 57 AS SIGNED ) FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to 0b74bbd7631afe9b2eeb9f18b9dc6505

skipif mysql # not compatible
query I rowsort label-4309
SELECT CAST ( - 57 AS INTEGER ) FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to 0b74bbd7631afe9b2eeb9f18b9dc6505

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4310
SELECT DISTINCT CAST( NULL AS SIGNED ) + col1 * - tab2.col0 AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4310
SELECT DISTINCT CAST ( NULL AS INTEGER ) + col1 * - tab2.col0 AS col1 FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT 58 AS col2 FROM tab1, tab0 AS cor0
----
58

query I rowsort
SELECT - cor0.col2 + + cor0.col1 AS col0 FROM tab2 AS cor0
----
-21
33
4

query I rowsort
SELECT + col2 + 38 AS col1 FROM tab2 AS cor0
----
64
65
76

query I rowsort
SELECT ALL tab0.col2 + + 60 AS col0 FROM tab0
----
142
61
93

onlyif mysql # use DIV operator for integer division
query I rowsort label-4315
SELECT ALL + col2 * ( col1 ) DIV ( - col0 ) FROM tab1
----
-15
-468
-8

skipif mysql # not compatible
query I rowsort label-4315
SELECT ALL + col2 * ( col1 ) / ( - col0 ) FROM tab1
----
-15
-468
-8

query I rowsort
SELECT DISTINCT 53 AS col0 FROM tab1, tab1 AS cor0
----
53

query I rowsort
SELECT DISTINCT + + col2 * + col2 * - ( - cor0.col1 ) AS col2 FROM tab1 AS cor0
----
119808
32490
75816

query I rowsort
SELECT DISTINCT 79 * + col1 * col0 FROM tab1
----
50560
6162
82160

onlyif mysql # use DIV operator for integer division
query I rowsort label-4319
SELECT ALL ( col0 ) DIV 95 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4319
SELECT ALL ( col0 ) / 95 FROM tab2
----
0
0
0

query I rowsort
SELECT ALL - 16 AS col0 FROM tab0
----
-16
-16
-16

query I rowsort
SELECT ALL + col2 * col0 * 53 FROM tab0 AS cor0
----
1855
386794
41976

query I rowsort
SELECT ALL + 14 AS col2 FROM tab1, tab0, tab0 AS cor0
----
27 values hashing to 409c1790b702540dd9dc067c1965b7c0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 3 col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 95b6b9b4aae5cc2d9545db9f8940b2dc

query I rowsort
SELECT DISTINCT + + cor0.col1 AS col0 FROM tab2 cor0
----
17
31
59

query I rowsort
SELECT ALL + col2 * + 61 AS col0 FROM tab1 cor0
----
3294
3477
5856

query I rowsort
SELECT + col2 * 82 AS col1 FROM tab0 cor0
----
2706
6724
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * col2 + - col0 col0 FROM tab0 AS cor0
----
-1113
-36
-6813

query I rowsort
SELECT + + col0 * + col2 AS col2 FROM tab0 cor0
----
35
7298
792

query I rowsort
SELECT ALL - cor0.col0 + col2 * + col0 AS col1 FROM tab1 AS cor0
----
159
3584
7600

query I rowsort
SELECT DISTINCT + - col2 + 98 FROM tab0 AS cor0
----
16
65
97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4331
SELECT DISTINCT - col1 + CAST( NULL AS SIGNED ) * - col2 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4331
SELECT DISTINCT - col1 + CAST ( NULL AS INTEGER ) * - col2 FROM tab2 cor0
----
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4332
SELECT ALL + cor0.col0 + - CAST( NULL AS DECIMAL ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4332
SELECT ALL + cor0.col0 + - CAST ( NULL AS REAL ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col1 * col1 * - cor0.col0 + col1 + - 88 * + col0 col0 FROM tab0 cor0
----
-179530
-332298
-744750

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4334
SELECT DISTINCT + col0 + + CAST( col2 AS SIGNED ) * - cor0.col0 AS col0 FROM tab2 AS cor0
----
-182
-1950
-2923

skipif mysql # not compatible
query I rowsort label-4334
SELECT DISTINCT + col0 + + CAST ( col2 AS INTEGER ) * - cor0.col0 AS col0 FROM tab2 AS cor0
----
-182
-1950
-2923

onlyif mysql # use DIV operator for integer division
query I rowsort label-4335
SELECT DISTINCT + + cor0.col0 DIV col0 + col0 AS col2 FROM tab0 AS cor0
----
25
36
90

skipif mysql # not compatible
query I rowsort label-4335
SELECT DISTINCT + + cor0.col0 / col0 + col0 AS col2 FROM tab0 AS cor0
----
25
36
90

query I rowsort
SELECT ALL cor0.col1 + col2 * col1 AS col0 FROM tab0 AS cor0
----
194
2924
7553

query I rowsort
SELECT ALL - col1 * + ( + 73 ) + col0 AS col1 FROM tab2 AS cor0
----
-1162
-2256
-4229

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4338
SELECT ALL cor0.col2 * CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4338
SELECT ALL cor0.col2 * CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - ( + 40 ) AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to f02f17e9bc17e514af018c6f245ed7a9

query I rowsort
SELECT 69 * + tab2.col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 61be8b4ccea4cb1cc4add000bd70def7

onlyif mysql # use DIV operator for integer division
query I rowsort label-4341
SELECT ALL - col2 DIV 21 - - ( + col2 ) FROM tab2 AS cor0
----
25
26
37

skipif mysql # not compatible
query I rowsort label-4341
SELECT ALL - col2 / 21 - - ( + col2 ) FROM tab2 AS cor0
----
25
26
37

query I rowsort
SELECT DISTINCT - col2 - 69 FROM tab1 AS cor0
----
-123
-126
-165

query I rowsort
SELECT - col1 + ( - col2 ) FROM tab2 cor0
----
-55
-58
-85

query I rowsort
SELECT + + 15 + + 84 FROM tab2 AS cor0
----
99
99
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 72 + col1 col0 FROM tab1 AS cor0
----
-46
-59
-62

onlyif mysql # use DIV operator for integer division
query I rowsort label-4346
SELECT CAST( - col2 AS SIGNED ) DIV - col0 FROM tab2 AS cor0
----
0
0
3

skipif mysql # not compatible
query I rowsort label-4346
SELECT CAST ( - col2 AS INTEGER ) / - col0 FROM tab2 AS cor0
----
0
0
3

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4347
SELECT ALL + CAST( + 43 AS SIGNED ) + + cor0.col2 FROM tab2 cor0
----
69
70
81

skipif mysql # not compatible
query I rowsort label-4347
SELECT ALL + CAST ( + 43 AS INTEGER ) + + cor0.col2 FROM tab2 cor0
----
69
70
81

onlyif mysql # use DIV operator for integer division
query I rowsort label-4348
SELECT - col2 + 60 DIV - col0 FROM tab0 cor0
----
-2
-35
-82

skipif mysql # not compatible
query I rowsort label-4348
SELECT - col2 + 60 / - col0 FROM tab0 cor0
----
-2
-35
-82

query I rowsort
SELECT DISTINCT 64 + 15 * + col2 FROM tab2 cor0
----
454
469
634

query I rowsort
SELECT col0 * + 50 FROM tab2 AS cor0
----
350
3900
3950

query I rowsort
SELECT ALL 85 FROM tab0, tab1 AS cor0
----
9 values hashing to aafa8e5cfb9e02cea8717833e7581f7b

query I rowsort
SELECT DISTINCT - ( col2 ) * col2 FROM tab1 AS cor0
----
-2916
-3249
-9216

query I rowsort
SELECT ALL + - col0 * cor0.col1 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT + + 75 + - col0 FROM tab0 cor0
----
-14
40
51

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4355
SELECT ( + col1 ) + CAST( NULL AS SIGNED ) * - 7 * + col0 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4355
SELECT ( + col1 ) + CAST ( NULL AS INTEGER ) * - 7 * + col0 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - - 0 + col2 * col1 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT ALL col2 - cor0.col1 FROM tab0 cor0
----
-53
-9
-96

query I rowsort
SELECT + col1 * col0 * - col0 + - col2 * ( col1 ) * col0 FROM tab0
----
-117648
-122220
-1384929

query I rowsort
SELECT DISTINCT + 30 * - col1 AS col2 FROM tab0 AS cor0
----
-2580
-2730
-2910

query I rowsort
SELECT + ( col1 ) + 47 AS col0 FROM tab1 AS cor0
----
57
60
73

query I rowsort
SELECT + 20 + - 58 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to e571541ae40cb0ddaca16e11f4359507

query I rowsort
SELECT - 41 AS col0 FROM tab2, tab2 AS cor0, tab2 cor1
----
27 values hashing to 47b9ef972839428f4f71d9f5b0944edf

query I rowsort
SELECT - cor0.col1 * 35 FROM tab1, tab0 AS cor0
----
9 values hashing to 30d03caa7c82297bd8e37fdfc8fa43e4

query I rowsort
SELECT + - 83 * + cor0.col0 + + cor0.col0 + - col2 * col0 AS col0 FROM tab0 AS cor0
----
-14596
-2760
-2905

onlyif mysql # use DIV operator for integer division
query I rowsort label-4365
SELECT - 96 DIV + 26 - + col0 * - col2 AS col2 FROM tab2 AS cor0
----
186
2025
2999

skipif mysql # not compatible
query I rowsort label-4365
SELECT - 96 / + 26 - + col0 * - col2 AS col2 FROM tab2 AS cor0
----
186
2025
2999

query I rowsort
SELECT + + ( - 10 ) * col1 FROM tab1 AS cor0
----
-100
-130
-260

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4367
SELECT - CAST( NULL AS SIGNED ) * cor0.col0 AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4367
SELECT - CAST ( NULL AS INTEGER ) * cor0.col0 AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4368
SELECT + CAST( NULL AS SIGNED ) + 82 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4368
SELECT + CAST ( NULL AS INTEGER ) + 82 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - + 55 - + cor0.col2 AS col0 FROM tab0 AS cor0
----
-137
-56
-88

query I rowsort
SELECT + col0 * col0 + + col2 + - col0 AS col1 FROM tab0 cor0
----
1191
585
7914

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4371
SELECT + CAST( NULL AS SIGNED ) * + ( - cor0.col2 ) * col2 + col0 * + col0 / + col0 + + col2 * col0 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4371
SELECT + CAST ( NULL AS INTEGER ) * + ( - cor0.col2 ) * col2 + col0 * + col0 / + col0 + + col2 * col0 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - cor0.col0 + col1 + - col0 FROM tab0 cor0
----
-87
27
38

query I rowsort
SELECT - - cor0.col1 + col1 AS col2 FROM tab2 AS cor0
----
118
34
62

onlyif mysql # use DIV operator for integer division
query I rowsort label-4374
SELECT DISTINCT + 75 DIV col1 - ( - 74 * col0 ) AS col0 FROM tab0 AS cor0
----
1776
2590
6586

skipif mysql # not compatible
query I rowsort label-4374
SELECT DISTINCT + 75 / col1 - ( - 74 * col0 ) AS col0 FROM tab0 AS cor0
----
1776
2590
6586

query I rowsort
SELECT DISTINCT - - col0 + + col0 - - col0 * col0 FROM tab1 AS cor0
----
15
4224
6560

query I rowsort
SELECT - - 1 * cor0.col0 AS col0 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT DISTINCT + 52 - col1 AS col2 FROM tab0 AS cor0
----
-34
-39
-45

query I rowsort
SELECT + + col2 + col0 * + ( + col0 ) FROM tab2 AS cor0
----
6110
6279
76

query I rowsort
SELECT + cor0.col0 AS col2 FROM tab1, tab1 AS cor0, tab0 AS cor1, tab2 AS cor2
----
81 values hashing to e28bf7f922650ca423ade3642ce0285b

query I rowsort
SELECT - col1 + ( col0 ) * cor0.col2 FROM tab2 AS cor0
----
158
1969
2985

query I rowsort
SELECT ALL + 56 + + ( + cor0.col1 ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to aa5936e49475a1032ac11cdad95f2765

query I rowsort
SELECT + cor0.col0 AS col2 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * col1 * + 85 col0 FROM tab1
----
-54400
-6630
-88400

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4384
SELECT ALL - col1 / CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4384
SELECT ALL - col1 / CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-4385
SELECT - col2 DIV + 91 FROM tab1
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-4385
SELECT - col2 / + 91 FROM tab1
----
-1
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4386
SELECT ALL ( - col2 ) * - col2 * CAST( + col1 AS SIGNED ) - - col1 AS col0 FROM tab0 cor0
----
194
611975
93740

skipif mysql # not compatible
query I rowsort label-4386
SELECT ALL ( - col2 ) * - col2 * CAST ( + col1 AS INTEGER ) - - col1 AS col0 FROM tab0 cor0
----
194
611975
93740

query I rowsort
SELECT col0 + + 94 + + col2 * + tab0.col2 FROM tab0
----
1207
130
6907

query I rowsort
SELECT ALL - col2 + - tab0.col2 * - col1 FROM tab0
----
2805
7380
96

query I rowsort
SELECT DISTINCT - col1 * 71 + 97 AS col1 FROM tab1
----
-1749
-613
-826

onlyif mysql # use DIV operator for integer division
query I rowsort label-4390
SELECT DISTINCT - col1 DIV + CAST( col0 AS SIGNED ) AS col1 FROM tab0
----
-1
-2
-3

skipif mysql # not compatible
query I rowsort label-4390
SELECT DISTINCT - col1 / + CAST ( col0 AS INTEGER ) AS col1 FROM tab0
----
-1
-2
-3

query I rowsort
SELECT ALL 61 AS col2 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 8d4dfe649433a599fc4b10830cc7ce55

onlyif mysql # use DIV operator for integer division
query I rowsort label-4392
SELECT ALL - ( + cor0.col0 ) + + col0 DIV col1 AS col1 FROM tab1 AS cor0
----
-3
-58
-74

skipif mysql # not compatible
query I rowsort label-4392
SELECT ALL - ( + cor0.col0 ) + + col0 / col1 AS col1 FROM tab1 AS cor0
----
-3
-58
-74

onlyif mysql # use DIV operator for integer division
query I rowsort label-4393
SELECT DISTINCT + - 26 DIV - col0 FROM tab2 AS cor0
----
0
3

skipif mysql # not compatible
query I rowsort label-4393
SELECT DISTINCT + - 26 / - col0 FROM tab2 AS cor0
----
0
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 45 col0 FROM tab0 AS cor0
----
45

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( cor0.col2 ) col2 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT - - ( 24 ) * - col2 AS col2 FROM tab1 AS cor0
----
-1296
-1368
-2304

query I rowsort
SELECT ( + 93 ) AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to e64105dfaa9fbd201adbb1f3f6968bde

query I rowsort
SELECT col0 - - ( 17 ) FROM tab2
----
24
95
96

query I rowsort
SELECT - 81 + - col0 + + col0 AS col2 FROM tab2
----
-81
-81
-81

query I rowsort
SELECT DISTINCT 90 + - 65 - col2 AS col0 FROM tab0
----
-57
-8
24

query I rowsort
SELECT cor0.col0 * tab2.col2 AS col1 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to 5a783d04f27f5464428a0aa6e48e0e25

query I rowsort
SELECT DISTINCT + ( - tab1.col0 ) - col1 * col2 FROM tab1
----
-1328
-1407
-634

query I rowsort
SELECT ( col0 * col2 ) + + col1 AS col0 FROM tab2
----
2087
220
3019

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * 37 + col2 + + col2 col2 FROM tab0
----
-1155
-2870
-35

query I rowsort
SELECT DISTINCT col1 + + col2 * + col2 - tab0.col1 AS col2 FROM tab0
----
1
1089
6724

query I rowsort
SELECT ALL + ( cor0.col1 ) AS col1 FROM tab0 AS cor0
----
86
91
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 6 col1 FROM tab1 cor0
----
-6
-6
-6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + + col1 col0 FROM tab0
----
172
182
194

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - col1 col0 FROM tab2
----
1343
217
4602

query I rowsort
SELECT DISTINCT + col0 * col1 + + tab2.col0 AS col2 FROM tab2
----
1422
224
4680

query I rowsort
SELECT + - col0 + col2 * 25 FROM tab0 AS cor0
----
-10
1961
801

onlyif mysql # use DIV operator for integer division
query I rowsort label-4412
SELECT ALL - col1 * - col1 + col1 DIV + col2 - + col0 * - col0 * col2 FROM tab1 cor0
----
1162
233572
614569

skipif mysql # not compatible
query I rowsort label-4412
SELECT ALL - col1 * - col1 + col1 / + col2 - + col0 * - col0 * col2 FROM tab1 cor0
----
1162
233572
614569

query I rowsort
SELECT DISTINCT - col1 + - col2 * ( col0 ) * - cor0.col2 AS col0 FROM tab1 AS cor0
----
207926
737267
8722

query I rowsort
SELECT + 59 FROM tab0, tab2, tab1 cor0
----
27 values hashing to e29fef8cdec1ee45a71d213f16d2f1d3

query I rowsort
SELECT col1 * - ( + col1 ) + col2 * + col1 AS col1 FROM tab1 AS cor0
----
1079
470
728

query I rowsort
SELECT ALL - col1 * + 76 * cor0.col2 FROM tab0 AS cor0
----
-215688
-567112
-7372

query I rowsort
SELECT ALL - - col2 + 64 FROM tab0 AS cor0
----
146
65
97

query I rowsort
SELECT + - 69 * col1 FROM tab0 cor0
----
-5934
-6279
-6693

query I rowsort
SELECT ALL ( - tab2.col2 ) * + col0 AS col2 FROM tab2
----
-189
-2028
-3002

onlyif mysql # use DIV operator for integer division
query I rowsort label-4420
SELECT DISTINCT col2 DIV cor0.col2 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-4420
SELECT DISTINCT col2 / cor0.col2 FROM tab1 AS cor0
----
1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4421
SELECT - col2 * col2 * + CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4421
SELECT - col2 * col2 * + CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col0 * - 89 FROM tab1
----
267
5696
7120

onlyif mysql # use DIV operator for integer division
query I rowsort label-4423
SELECT col0 + - col0 DIV - 90 col0 FROM tab1 AS cor0
----
3
64
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4423
SELECT col0 + - col0 / - 90 col0 FROM tab1 AS cor0
----
3
64
80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4424
SELECT ALL - col1 * - col2 - CAST( + ( + col1 ) AS SIGNED ) AS col0 FROM tab0
----
0
2752
7371

skipif mysql # not compatible
query I rowsort label-4424
SELECT ALL - col1 * - col2 - CAST ( + ( + col1 ) AS INTEGER ) AS col0 FROM tab0
----
0
2752
7371

query I rowsort
SELECT - col0 - + 4 * - col0 AS col1 FROM tab0 AS cor0
----
105
267
72

query I rowsort
SELECT - - cor0.col1 + 99 AS col2 FROM tab1 AS cor0
----
109
112
125

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 56 col1 FROM tab1
----
56
56
56

query I rowsort
SELECT ALL - - ( 11 ) FROM tab0 AS cor0
----
11
11
11

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + - col1 col2 FROM tab2 AS cor0
----
-118
-34
-62

query I rowsort
SELECT DISTINCT ( + 14 ) FROM tab1 AS cor0
----
14

onlyif mysql # use DIV operator for integer division
query I rowsort label-4431
SELECT ALL + col2 DIV col0 + - col2 FROM tab2 AS cor0
----
-24
-26
-38

skipif mysql # not compatible
query I rowsort label-4431
SELECT ALL + col2 / col0 + - col2 FROM tab2 AS cor0
----
-24
-26
-38

onlyif mysql # use DIV operator for integer division
query I rowsort label-4432
SELECT - 48 * col0 DIV cor0.col2 FROM tab0 cor0
----
-1680
-34
-52

skipif mysql # not compatible
query I rowsort label-4432
SELECT - 48 * col0 / cor0.col2 FROM tab0 cor0
----
-1680
-34
-52

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4433
SELECT DISTINCT + - CAST( NULL AS SIGNED ) * 69 col1 FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4433
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) * 69 col1 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT 5 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
5

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - CAST ( col1 AS REAL ) * + col2 + - 2 FROM tab0 AS cor0
----
-2840
-7464
-99

query I rowsort
SELECT ALL + - 41 + col0 AS col1 FROM tab0 AS cor0
----
-17
-6
48

query I rowsort
SELECT DISTINCT - + ( - col0 ) * col0 FROM tab1 AS cor0
----
4096
6400
9

query I rowsort
SELECT ALL - col0 * + 70 AS col0 FROM tab2 AS cor0
----
-490
-5460
-5530

query I rowsort
SELECT DISTINCT - tab2.col0 + + ( - col2 ) AS col2 FROM tab2
----
-104
-117
-34

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4440
SELECT + col1 * CAST( NULL AS DECIMAL ) + + 97 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4440
SELECT + col1 * CAST ( NULL AS REAL ) + + 97 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col0 * + 48 FROM tab0
----
1152
1680
4272

query I rowsort
SELECT DISTINCT - col2 + ( col0 ) + col0 FROM tab0
----
15
69
96

query I rowsort
SELECT - col2 + ( + col1 + col0 ) * 73 AS col0 FROM tab1
----
2063
5345
6693

query I rowsort
SELECT - col2 * + col2 + + ( + col1 ) FROM tab2
----
-1427
-617
-698

query I rowsort
SELECT ( + cor0.col0 ) AS col2 FROM tab0, tab1 cor0, tab0 AS cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f

query I rowsort
SELECT col0 + - col1 - + col2 AS col1 FROM tab0
----
-63
-84
-95

query I rowsort
SELECT - tab2.col1 - + 89 * 84 * + col0 FROM tab2
----
-52363
-583187
-590621

query I rowsort
SELECT ALL 55 FROM tab1, tab2 cor0
----
9 values hashing to 1626bd3008abd9f18cc88cdecf7b64d0

query I rowsort
SELECT ALL col0 * - 41 AS col0 FROM tab2 AS cor0
----
-287
-3198
-3239

query I rowsort
SELECT DISTINCT + - cor0.col2 * col2 + - col2 + + col2 AS col0 FROM tab0 AS cor0
----
-1
-1089
-6724

query I rowsort
SELECT 49 * + 55 FROM tab2 AS cor0
----
2695
2695
2695

query I rowsort
SELECT - - 30 + + col2 * - col0 AS col2 FROM tab1 AS cor0
----
-132
-3618
-7650

onlyif mysql # use DIV operator for integer division
query I rowsort label-4453
SELECT ALL - col1 * 7 DIV col0 + - 87 * col0 * col2 AS col0 FROM tab0 AS cor0
----
-3064
-634933
-68929

skipif mysql # not compatible
query I rowsort label-4453
SELECT ALL - col1 * 7 / col0 + - 87 * col0 * col2 AS col0 FROM tab0 AS cor0
----
-3064
-634933
-68929

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4454
SELECT + + CAST( NULL AS DECIMAL ) + + tab0.col2 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-4454
SELECT + + CAST ( NULL AS REAL ) + + tab0.col2 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT ALL ( + ( tab2.col1 ) ) AS col0 FROM tab2
----
17
31
59

query I rowsort
SELECT col2 * - cor0.col2 + col0 * + col0 AS col0 FROM tab1 cor0
----
-2816
-2907
847

query I rowsort
SELECT + ( + col2 ) * - col2 AS col2 FROM tab2
----
-1444
-676
-729

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab1 AS cor0, tab2 AS cor1, tab0, tab1 cor2
----
3645 values hashing to 77ce60d8d42550cc1b5a38c7d1dc5d13

onlyif mysql # use DIV operator for integer division
query I rowsort label-4459
SELECT ALL 83 + cor0.col1 * col0 + - col2 * 82 DIV - col0 FROM tab2 AS cor0
----
1465
4712
616

skipif mysql # not compatible
query I rowsort label-4459
SELECT ALL 83 + cor0.col1 * col0 + - col2 * 82 / - col0 FROM tab2 AS cor0
----
1465
4712
616

query I rowsort
SELECT + - col1 + col2 * col2 AS col1 FROM tab1 cor0
----
2890
3239
9203

onlyif mysql # use DIV operator for integer division
query I rowsort label-4461
SELECT DISTINCT col2 DIV col1 col0 FROM tab0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4461
SELECT DISTINCT col2 / col1 col0 FROM tab0
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-4462
SELECT - 54 + col0 DIV + col0 col1 FROM tab1 cor0
----
-53
-53
-53

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4462
SELECT - 54 + col0 / + col0 col1 FROM tab1 cor0
----
-53
-53
-53

query I rowsort
SELECT DISTINCT - ( col0 ) * ( - col1 ) * + cor0.col2 FROM tab2 AS cor0
----
119652
51034
5859

query I rowsort
SELECT DISTINCT + 68 * - cor0.col1 + - 8 * cor0.col1 FROM tab1 AS cor0
----
-1976
-760
-988

query I rowsort
SELECT ALL - + 68 AS col1 FROM tab0 AS cor0
----
-68
-68
-68

query I rowsort
SELECT + col2 * - col2 * - col1 FROM tab2 AS cor0
----
22599
24548
39884

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col1 * + col2 col0 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT ALL - + cor1.col0 * cor1.col1 + + cor1.col2 * 42 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0, tab1 AS cor1
----
27 values hashing to 74d6b8a9a9a2046d9a2453994b885182

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4469
SELECT ALL - col2 + CAST( + 99 AS SIGNED ) FROM tab0 AS cor0
----
17
66
98

skipif mysql # not compatible
query I rowsort label-4469
SELECT ALL - col2 + CAST ( + 99 AS INTEGER ) FROM tab0 AS cor0
----
17
66
98

query I rowsort
SELECT col0 * - ( 26 ) FROM tab1 AS cor0
----
-1664
-2080
-78

query I rowsort
SELECT DISTINCT + cor0.col0 * + 64 FROM tab2 AS cor0
----
448
4992
5056

onlyif mysql # use DIV operator for integer division
query I rowsort label-4472
SELECT + cor0.col1 DIV 11 - col0 FROM tab0 cor0
----
-17
-27
-81

skipif mysql # not compatible
query I rowsort label-4472
SELECT + cor0.col1 / 11 - col0 FROM tab0 cor0
----
-17
-27
-81

query I rowsort
SELECT ALL - + col2 * - ( + col0 ) - - col2 * col0 * ( - cor0.col1 ) AS col0 FROM tab1 AS cor0
----
-32832
-4050
-92160

query I rowsort
SELECT - col1 * cor0.col0 + 6 AS col0 FROM tab0 AS cor0
----
-2058
-3389
-8093

query I rowsort
SELECT DISTINCT + col2 + - 46 AS col0 FROM tab1 AS cor0
----
11
50
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - col0 * - ( cor0.col0 + 16 ) col0 FROM tab1 AS cor0
----
1482
51200
99840

query I rowsort
SELECT ALL - col1 + - 34 AS col2 FROM tab0 AS cor0
----
-120
-125
-131

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4478
SELECT DISTINCT - + col2 * CAST( NULL AS SIGNED ) col1 FROM tab2 cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4478
SELECT DISTINCT - + col2 * CAST ( NULL AS INTEGER ) col1 FROM tab2 cor0
----
NULL

query I rowsort
SELECT - 50 + 75 FROM tab1 cor0
----
25
25
25

onlyif mysql # use DIV operator for integer division
query I rowsort label-4480
SELECT + col1 DIV + 67 + col2 FROM tab0 AS cor0
----
2
34
83

skipif mysql # not compatible
query I rowsort label-4480
SELECT + col1 / + 67 + col2 FROM tab0 AS cor0
----
2
34
83

query I rowsort
SELECT - - cor0.col2 * - cor0.col2 + cor0.col2 * - col0 FROM tab2 AS cor0
----
-2704
-4446
-918

query I rowsort
SELECT - - col0 + - col1 * + col1 AS col0 FROM tab1 cor0
----
-36
-673
-89

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4483
SELECT DISTINCT - ( + col2 ) * col2 * - CAST( NULL AS DECIMAL ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4483
SELECT DISTINCT - ( + col2 ) * col2 * - CAST ( NULL AS REAL ) AS col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL + + cor0.col2 * col1 + - col0 * - col1 * col2 AS col1 FROM tab2 AS cor0
----
121186
51680
6696

query I rowsort
SELECT ALL + 6 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 5d1cb90ed58fa7573895d2f95b211821

query I rowsort
SELECT ALL - cor0.col2 * + col2 + + col2 * 79 + + col2 AS col2 FROM tab1 AS cor0
----
-1536
1311
1404

query I rowsort
SELECT + tab0.col0 + 95 FROM tab0
----
119
130
184

query I rowsort
SELECT DISTINCT + + ( col2 ) + + col0 FROM tab2 AS cor0
----
104
117
34

query I rowsort
SELECT + col0 + col2 * 71 FROM tab2
----
1924
1924
2777

query I rowsort
SELECT - col2 + + 6 FROM tab0 AS cor0
----
-27
-76
5

query I rowsort
SELECT ALL col0 - col2 * col1 * col0 FROM tab2
----
-119574
-50955
-5852

onlyif mysql # use DIV operator for integer division
query I rowsort label-4492
SELECT ALL - + col2 DIV + 55 + col2 FROM tab1 AS cor0
----
54
56
95

skipif mysql # not compatible
query I rowsort label-4492
SELECT ALL - + col2 / + 55 + col2 FROM tab1 AS cor0
----
54
56
95

query I rowsort
SELECT DISTINCT - col2 + col0 * - col1 * - ( ( + cor0.col1 ) ) FROM tab2 AS cor0
----
22793
271492
6700

query I rowsort
SELECT ALL + 85 * cor0.col2 * col0 - 84 AS col0 FROM tab0 AS cor0
----
2891
620246
67236

query I rowsort
SELECT ALL cor0.col0 + + col2 + col2 FROM tab1 AS cor0
----
111
178
272

query I rowsort
SELECT 90 + - col1 FROM tab0 cor0
----
-1
-7
4

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4497
SELECT ALL - CAST( + 81 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-81
-81
-81

skipif mysql # not compatible
query I rowsort label-4497
SELECT ALL - CAST ( + 81 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-81
-81
-81

query I rowsort
SELECT DISTINCT 50 * + cor0.col1 AS col0 FROM tab0 cor0
----
4300
4550
4850

query I rowsort
SELECT ALL - 6 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to e92b2679faac7be63701967e3f0c0934

query I rowsort
SELECT + - col2 + + cor0.col1 * + col0 AS col2 FROM tab2 AS cor0
----
1305
190
4576

query I rowsort
SELECT 66 + - col1 FROM tab2 AS cor0
----
35
49
7

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4502
SELECT ALL + col1 * - CAST( 95 AS SIGNED ) FROM tab0 AS cor0
----
-8170
-8645
-9215

skipif mysql # not compatible
query I rowsort label-4502
SELECT ALL + col1 * - CAST ( 95 AS INTEGER ) FROM tab0 AS cor0
----
-8170
-8645
-9215

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + ( col0 ) + + col0 col1 FROM tab2 AS cor0
----
21
234
237

query I rowsort
SELECT ALL + col1 - cor0.col1 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT - + col1 * - 30 * - col1 FROM tab1 AS cor0
----
-20280
-3000
-5070

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4506
SELECT ALL col0 * + CAST( col1 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
2064
3395
8099

skipif mysql # not compatible
query I rowsort label-4506
SELECT ALL col0 * + CAST ( col1 AS INTEGER ) 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 col2 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT ALL col1 * - ( + cor0.col1 ) + col2 FROM tab0 AS cor0
----
-7363
-8199
-9408

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4509
SELECT DISTINCT + - CAST( col0 AS SIGNED ) FROM tab1 cor0
----
-3
-64
-80

skipif mysql # not compatible
query I rowsort label-4509
SELECT DISTINCT + - CAST ( col0 AS INTEGER ) FROM tab1 cor0
----
-3
-64
-80

onlyif mysql # use DIV operator for integer division
query I rowsort label-4510
SELECT DISTINCT + cor0.col1 DIV - col1 + col2 FROM tab2 AS cor0
----
25
26
37

skipif mysql # not compatible
query I rowsort label-4510
SELECT DISTINCT + cor0.col1 / - col1 + col2 FROM tab2 AS cor0
----
25
26
37

query I rowsort
SELECT ALL - col1 * - 36 * 72 FROM tab0
----
222912
235872
251424

query I rowsort
SELECT 39 AS col2 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to ed2ebd9def3e2c38aa46cb3af60fe229

query I rowsort
SELECT col1 * col0 + + col2 * - col0 - + col2 AS col0 FROM tab2 AS cor0
----
-1697
1
2548

query I rowsort
SELECT ALL + ( - col2 ) * + ( + 5 ) FROM tab0 AS cor0
----
-165
-410
-5

query I rowsort
SELECT DISTINCT - col0 + cor0.col0 * - col1 FROM tab2 AS cor0
----
-1422
-224
-4680

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( col0 ) * col0 * + ( - cor0.col1 ) + col0 col0 FROM tab1 cor0
----
237
41024
83280

query I rowsort
SELECT DISTINCT + 72 + - col1 * col0 FROM tab0 AS cor0
----
-1992
-3323
-8027

query I rowsort
SELECT DISTINCT - 75 * - col2 AS col0 FROM tab2 cor0
----
1950
2025
2850

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + cor0.col1 col0 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to ccaa5dd3388d9ee0fea676fa35299fe5

query I rowsort
SELECT + ( + 6 * + col2 ) AS col1 FROM tab1
----
324
342
576

query I rowsort
SELECT DISTINCT col2 * col2 + - ( - col0 ) FROM tab0
----
1113
36
6813

query I rowsort
SELECT ALL - col2 + + col1 + + col0 * col2 FROM tab1
----
134
3601
7597

onlyif mysql # use DIV operator for integer division
query I rowsort label-4523
SELECT DISTINCT + 79 * + col0 + 73 DIV - col0 FROM tab2
----
543
6162
6241

skipif mysql # not compatible
query I rowsort label-4523
SELECT DISTINCT + 79 * + col0 + 73 / - col0 FROM tab2
----
543
6162
6241

query I rowsort
SELECT + + 77 AS col2 FROM tab2 AS cor0
----
77
77
77

query I rowsort
SELECT ALL - col1 - + col0 * - col1 FROM tab0 AS cor0
----
1978
3298
8008

query I rowsort
SELECT ALL - + 59 AS col0 FROM tab2 AS cor0
----
-59
-59
-59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + + col2 * + col1 col2 FROM tab1 AS cor0
----
1168
1401
506

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4528
SELECT ALL + + CAST( - 0 AS SIGNED ) * col2 + - col0 FROM tab2 AS cor0
----
-7
-78
-79

skipif mysql # not compatible
query I rowsort label-4528
SELECT ALL + + CAST ( - 0 AS INTEGER ) * col2 + - col0 FROM tab2 AS cor0
----
-7
-78
-79

query I rowsort
SELECT DISTINCT + + ( 62 ) - + col2 FROM tab0 AS cor0
----
-20
29
61

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + 83 col1 FROM tab0 cor0
----
169
174
180

query I rowsort
SELECT ( - tab0.col2 + + col2 ) FROM tab0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4532
SELECT DISTINCT + CAST( - col0 AS SIGNED ) * col1 FROM tab2 AS cor0
----
-1343
-217
-4602

skipif mysql # not compatible
query I rowsort label-4532
SELECT DISTINCT + CAST ( - col0 AS INTEGER ) * col1 FROM tab2 AS cor0
----
-1343
-217
-4602

onlyif mysql # use DIV operator for integer division
query I rowsort label-4533
SELECT DISTINCT - 56 DIV 49 + + col1 AS col1 FROM tab2 AS cor0
----
16
30
58

skipif mysql # not compatible
query I rowsort label-4533
SELECT DISTINCT - 56 / 49 + + col1 AS col1 FROM tab2 AS cor0
----
16
30
58

query I rowsort
SELECT ALL 20 * col0 + + col0 FROM tab2 AS cor0
----
147
1638
1659

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * + col2 + col0 col0 FROM tab0 AS cor0
----
-2814
-62
-7373

query I rowsort
SELECT + col1 + - col0 * - ( 65 ) AS col1 FROM tab0 AS cor0
----
1646
2372
5876

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 ALL - + 89 col1 FROM tab0 AS cor0
----
-89
-89
-89

query I rowsort
SELECT - cor0.col1 * cor0.col1 + cor0.col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 109651fa35ece1407e4df646b0d25858

query I rowsort
SELECT ALL col2 * - 90 AS col0 FROM tab2 AS cor0
----
-2340
-2430
-3420

query I rowsort
SELECT ALL col2 * col0 + col1 + + col0 FROM tab2 AS cor0
----
2165
227
3098

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 49 col1 FROM tab2, tab0 AS cor0
----
49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col0 * - col2 + cor0.col0 * col0 * col2 col1 FROM tab2 AS cor0
----
1134
156156
234156

query I rowsort
SELECT col1 + col0 + - tab0.col0 FROM tab0
----
86
91
97

query I rowsort
SELECT ALL col0 + ( + col0 ) AS col1 FROM tab1 AS cor0
----
128
160
6

onlyif mysql # use DIV operator for integer division
query I rowsort label-4546
SELECT ALL + col1 + col1 DIV - 90 FROM tab2 AS cor0
----
17
31
59

skipif mysql # not compatible
query I rowsort label-4546
SELECT ALL + col1 + col1 / - 90 FROM tab2 AS cor0
----
17
31
59

query I rowsort
SELECT - col2 + + 79 FROM tab2 cor0
----
41
52
53

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4548
SELECT DISTINCT col1 + CAST( NULL AS SIGNED ) + + col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4548
SELECT DISTINCT col1 + CAST ( NULL AS INTEGER ) + + col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT - + cor0.col1 * 1 FROM tab1 AS cor0
----
-10
-13
-26

query I rowsort
SELECT DISTINCT - + col1 * + 78 AS col0 FROM tab1 AS cor0
----
-1014
-2028
-780

query I rowsort
SELECT ALL - 7 FROM tab0, tab1, tab1 AS cor0, tab2 cor1
----
81 values hashing to 180f983bbf84f38a53d5012e5c10c628

query I rowsort
SELECT - + col2 * - col2 + col1 * + col0 * + 53 FROM tab2 AS cor0
----
12230
244582
72623

onlyif mysql # use DIV operator for integer division
query I rowsort label-4553
SELECT ALL - ( + ( - cor0.col2 ) ) DIV - 15 + - col1 FROM tab1 AS cor0
----
-13
-19
-29

skipif mysql # not compatible
query I rowsort label-4553
SELECT ALL - ( + ( - cor0.col2 ) ) / - 15 + - col1 FROM tab1 AS cor0
----
-13
-19
-29

query I rowsort
SELECT ALL col2 * + col2 + + cor0.col2 + col0 FROM tab1 AS cor0
----
2973
3370
9392

onlyif mysql # use DIV operator for integer division
query I rowsort label-4555
SELECT ALL - col0 DIV col1 + - col0 DIV - 96 AS col2 FROM tab2 AS cor0
----
-1
-4
0

skipif mysql # not compatible
query I rowsort label-4555
SELECT ALL - col0 / col1 + - col0 / - 96 AS col2 FROM tab2 AS cor0
----
-1
-4
0

query I rowsort
SELECT + - ( 44 ) AS col2 FROM tab1 AS cor0
----
-44
-44
-44

query I rowsort
SELECT 68 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 10aa25f1c6b97582c34521ac6452e0b4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + 62 col0 FROM tab0
----
151
86
97

query I rowsort
SELECT DISTINCT - col2 + - ( col1 ) AS col0 FROM tab0
----
-119
-173
-98

query I rowsort
SELECT col2 + col2 * + col0 + - col1 AS col1 FROM tab2
----
185
1995
3023

query I rowsort
SELECT DISTINCT col0 + 86 FROM tab0
----
110
121
175

query I rowsort
SELECT - - ( - col0 ) + col0 AS col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT - ( - col1 ) * col1 * - col0 + col1 FROM tab0 AS cor0
----
-177418
-329218
-736918

onlyif mysql # use DIV operator for integer division
query I rowsort label-4564
SELECT ALL - col1 + - ( + col2 ) DIV - col2 AS col2 FROM tab0
----
-85
-90
-96

skipif mysql # not compatible
query I rowsort label-4564
SELECT ALL - col1 + - ( + col2 ) / - col2 AS col2 FROM tab0
----
-85
-90
-96

query I rowsort
SELECT DISTINCT - - 48 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
48

skipif mysql # not compatible
query I rowsort
SELECT - col1 + ( col1 ) * + CAST ( + cor0.col0 AS REAL ) FROM tab0 cor0
----
1978
3298
8008

query I rowsort
SELECT cor1.col1 AS col2 FROM tab1, tab0 cor0, tab0 AS cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4568
SELECT ALL - CAST( col0 AS SIGNED ) * col1 AS col0 FROM tab2
----
-1343
-217
-4602

skipif mysql # not compatible
query I rowsort label-4568
SELECT ALL - CAST ( col0 AS INTEGER ) * col1 AS col0 FROM tab2
----
-1343
-217
-4602

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4569
SELECT DISTINCT + CAST( + col1 AS SIGNED ) AS col1 FROM tab0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-4569
SELECT DISTINCT + CAST ( + col1 AS INTEGER ) AS col1 FROM tab0
----
86
91
97

query I rowsort
SELECT ( - ( - col0 ) ) * col0 * col2 AS col0 FROM tab2
----
1323
158184
237158

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab2.col2 col0 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to f9d4bb8677db7b98c7ed89d06e6e8cd6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col1 col2 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to 7599b480125de521efed71b5b2413c7d

query I rowsort
SELECT + col2 + + 48 * cor0.col1 AS col1 FROM tab0 AS cor0
----
4161
4450
4657

query I rowsort
SELECT + + col2 * - 35 FROM tab1 AS cor0
----
-1890
-1995
-3360

query I rowsort
SELECT + col0 * 31 AS col2 FROM tab0 AS cor0
----
1085
2759
744

query I rowsort
SELECT DISTINCT 20 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
20

query I rowsort
SELECT DISTINCT - 13 FROM tab1, tab2, tab0 cor0
----
-13

query I rowsort
SELECT - 79 AS col1 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to c9cc9510604e093bd158ca33928acaed

onlyif mysql # use DIV operator for integer division
query I rowsort label-4579
SELECT - col1 DIV + ( - col1 ) + col2 * + cor0.col1 + col0 FROM tab1 AS cor0
----
1329
1408
635

skipif mysql # not compatible
query I rowsort label-4579
SELECT - col1 / + ( - col1 ) + col2 * + cor0.col1 + col0 FROM tab1 AS cor0
----
1329
1408
635

query I rowsort
SELECT + + col0 * col1 + col0 * col0 + col2 * 36 FROM tab0 AS cor0
----
18972
3828
4656

query I rowsort
SELECT - col2 * + col2 * - 60 - + col0 * col0 FROM tab2 AS cor0
----
34476
43691
80399

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + 46 * - col0 * + cor0.col2 col1 FROM tab2 AS cor0
----
-138171
-8701
-93366

onlyif mysql # use DIV operator for integer division
query I rowsort label-4583
SELECT - col2 * 39 + col1 DIV - col0 + - 72 * col1 AS col2 FROM tab1 AS cor0
----
-2943
-3986
-4680

skipif mysql # not compatible
query I rowsort label-4583
SELECT - col2 * 39 + col1 / - col0 + - 72 * col1 AS col2 FROM tab1 AS cor0
----
-2943
-3986
-4680

query I rowsort
SELECT - cor0.col2 + col1 + + 49 AS col0 FROM tab0 AS cor0
----
102
145
58

query I rowsort
SELECT DISTINCT - - col2 + cor0.col1 FROM tab2 AS cor0
----
55
58
85

onlyif mysql # use DIV operator for integer division
query I rowsort label-4586
SELECT DISTINCT ( cor0.col0 ) DIV col0 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-4586
SELECT DISTINCT ( cor0.col0 ) / col0 FROM tab0 AS cor0
----
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-4587
SELECT ALL ( - 76 ) * col0 DIV col2 FROM tab1
----
-4
-63
-85

skipif mysql # not compatible
query I rowsort label-4587
SELECT ALL ( - 76 ) * col0 / col2 FROM tab1
----
-4
-63
-85

query I rowsort
SELECT DISTINCT 48 * - col0 FROM tab2 cor0
----
-336
-3744
-3792

query I rowsort
SELECT + + col1 * + col0 * col2 FROM tab0 cor0
----
3395
664118
68112

query I rowsort
SELECT + 34 * col0 FROM tab2 AS cor0
----
238
2652
2686

query I rowsort
SELECT ALL - 46 FROM tab0, tab2 AS cor0
----
9 values hashing to 491ad1fb79fec0b5715ea54949d1aa2d

query I rowsort
SELECT ALL 11 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to f4d199584b44732f1a897e6691b4ea00

query I rowsort
SELECT ALL - 0 AS col1 FROM tab0, tab2 cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query I rowsort
SELECT - col2 * - col1 + - ( col1 ) FROM tab2 AS cor0
----
1475
629
806

query I rowsort
SELECT + col1 * ( + col0 ) + - col1 FROM tab0 AS cor0
----
1978
3298
8008

query I rowsort
SELECT - 93 * + ( col2 ) + ( ( + col1 ) * - col2 ) + + col2 * col0 * col1 FROM tab0 AS cor0
----
3205
62205
649030

query I rowsort
SELECT DISTINCT 58 AS col0 FROM tab0, tab0 AS cor0
----
58

query I rowsort
SELECT + + col1 + + 65 AS col2 FROM tab0 AS cor0
----
151
156
162

onlyif mysql # use DIV operator for integer division
query I rowsort label-4599
SELECT - col1 DIV - tab1.col0 + + tab1.col2 FROM tab1
----
57
62
96

skipif mysql # not compatible
query I rowsort label-4599
SELECT - col1 / - tab1.col0 + + tab1.col2 FROM tab1
----
57
62
96

query I rowsort
SELECT ALL + col0 * 28 + col2 * ( col0 ) + col0 FROM tab1
----
10000
249
5504

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col2 col1 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to f9d4bb8677db7b98c7ed89d06e6e8cd6

query I rowsort
SELECT DISTINCT + ( + col0 ) - col1 * - col0 AS col0 FROM tab1 AS cor0
----
1120
704
81

query I rowsort
SELECT + + 53 * 49 + col2 FROM tab2 cor0
----
2623
2624
2635

query I rowsort
SELECT - ( cor0.col0 ) AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 09d8a912de1b8ab762e5ffbe028ce99e

query I rowsort
SELECT ALL 37 + 62 AS col1 FROM tab2
----
99
99
99

query I rowsort
SELECT DISTINCT + 49 AS col0 FROM tab0, tab1 AS cor0
----
49

query I rowsort
SELECT - + col1 + col0 * col2 FROM tab2 AS cor0
----
158
1969
2985

query I rowsort
SELECT DISTINCT + col0 + col2 * cor0.col0 FROM tab0 AS cor0
----
70
7387
816

query I rowsort
SELECT ALL + ( ( col1 ) ) AS col1 FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT - 38 AS col0 FROM tab2 cor0
----
-38
-38
-38

query I rowsort
SELECT DISTINCT - + 10 + - 50 AS col1 FROM tab1 AS cor0
----
-60

query I rowsort
SELECT ALL + 10 - + cor0.col0 AS col2 FROM tab2 AS cor0
----
-68
-69
3

onlyif mysql # use DIV operator for integer division
query I rowsort label-4613
SELECT + 20 DIV + col2 + col0 * + col1 AS col2 FROM tab1 cor0
----
1040
640
78

skipif mysql # not compatible
query I rowsort label-4613
SELECT + 20 / + col2 + col0 * + col1 AS col2 FROM tab1 cor0
----
1040
640
78

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4614
SELECT cor0.col0 * + 46 * - col1 + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4614
SELECT cor0.col0 * + 46 * - col1 + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-4615
SELECT col0 DIV + col0 + col0 * col2 AS col2 FROM tab2 AS cor0
----
190
2029
3003

skipif mysql # not compatible
query I rowsort label-4615
SELECT col0 / + col0 + col0 * col2 AS col2 FROM tab2 AS cor0
----
190
2029
3003

query I rowsort
SELECT + ( 60 ) + - col2 FROM tab1 AS cor0
----
-36
3
6

query I rowsort
SELECT DISTINCT + col1 + + col2 * - ( col2 ) * col1 + - 91 * + cor0.col0 FROM tab2 AS cor0
----
-23205
-31720
-46923

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * col1 + - 59 col2 FROM tab0 AS cor0
----
2005
3336
8040

onlyif mysql # use DIV operator for integer division
query I rowsort label-4619
SELECT DISTINCT + 54 + col2 DIV + 60 FROM tab2 AS cor0
----
54

skipif mysql # not compatible
query I rowsort label-4619
SELECT DISTINCT + 54 + col2 / + 60 FROM tab2 AS cor0
----
54

onlyif mysql # use DIV operator for integer division
query I rowsort label-4620
SELECT 5 DIV + col0 + - col0 FROM tab1 AS cor0
----
-2
-64
-80

skipif mysql # not compatible
query I rowsort label-4620
SELECT 5 / + col0 + - col0 FROM tab1 AS cor0
----
-2
-64
-80

query I rowsort
SELECT DISTINCT + - 4 * col1 AS col1 FROM tab1 AS cor0
----
-104
-40
-52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col2 * - col2 * col2 + ( cor0.col1 ) col1 FROM tab2 AS cor0
----
17635
19714
54889

query I rowsort
SELECT + 57 AS col0 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 220a93709e207779b34ef74b544764a5

query I rowsort
SELECT ALL + - col0 + col0 * - col1 FROM tab0 AS cor0
----
-2088
-3430
-8188

query I rowsort
SELECT DISTINCT + col1 + col0 - + col0 FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT ALL - col0 * cor0.col0 + + col2 AS col2 FROM tab2 AS cor0
----
-22
-6058
-6203

query I rowsort
SELECT DISTINCT + - col1 + 31 AS col2 FROM tab1 AS cor0
----
18
21
5

query I rowsort
SELECT ALL + 73 FROM tab1, tab2 AS cor0
----
9 values hashing to e5fbf5d129b181bacd6113bbc8732496

query I rowsort
SELECT col0 * col1 + col1 + col2 AS col0 FROM tab0 AS cor0
----
2183
3493
8272

query I rowsort
SELECT - 13 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to e95f5f4bd0f480397cced5f5e8a23792

query I rowsort
SELECT DISTINCT col1 * - cor0.col2 AS col0 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT cor0.col0 + - ( - 2 * col0 ) AS col1 FROM tab1 AS cor0
----
192
240
9

query I rowsort
SELECT ALL cor1.col2 + cor1.col2 * - cor1.col0 FROM tab0, tab1 AS cor0, tab1 cor1
----
27 values hashing to 24865d9a6cc834a95fb5856ec460cade

query I rowsort
SELECT ( - 46 ) FROM tab2, tab0 cor0
----
9 values hashing to 491ad1fb79fec0b5715ea54949d1aa2d

query I rowsort
SELECT DISTINCT - col1 + 65 AS col1 FROM tab2 AS cor0
----
34
48
6

query I rowsort
SELECT ALL - + col0 + - col2 * + col0 FROM tab0 AS cor0
----
-70
-7387
-816

query I rowsort
SELECT ALL 29 + cor0.col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 3f80ed1b7f1f2a908cbc11228837bedb

onlyif mysql # use DIV operator for integer division
query I rowsort label-4638
SELECT - col1 DIV + 99 AS col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4638
SELECT - col1 / + 99 AS col0 FROM tab1
----
0
0
0

query I rowsort
SELECT col1 * - 82 * + col2 FROM tab0
----
-232716
-611884
-7954

query I rowsort
SELECT col2 + ( tab2.col2 ) * + col1 FROM tab2
----
1560
684
864

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4641
SELECT DISTINCT tab2.col1 * CAST( NULL AS SIGNED ) - - ( col1 * - col1 ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4641
SELECT DISTINCT tab2.col1 * CAST ( NULL AS INTEGER ) - - ( col1 * - col1 ) FROM tab2
----
NULL

query I rowsort
SELECT ALL 68 + - cor1.col2 AS col2 FROM tab1, tab0 cor0, tab1 AS cor1
----
27 values hashing to e7f1377f58116d7768f80e67924b62fc

query I rowsort
SELECT + - col1 + + 11 * + col2 FROM tab1 cor0
----
1043
568
617

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4644
SELECT - col2 * CAST( NULL AS SIGNED ) + - col2 * - col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4644
SELECT - col2 * CAST ( NULL AS INTEGER ) + - col2 * - col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - + col1 + cor0.col1 * - 86 FROM tab0 cor0
----
-7482
-7917
-8439

onlyif mysql # use DIV operator for integer division
query I rowsort label-4646
SELECT col0 DIV + 82 + - col0 * col1 FROM tab1 AS cor0
----
-1040
-640
-78

skipif mysql # not compatible
query I rowsort label-4646
SELECT col0 / + 82 + - col0 * col1 FROM tab1 AS cor0
----
-1040
-640
-78

onlyif mysql # use DIV operator for integer division
query I rowsort label-4647
SELECT ALL - col1 DIV - col1 + - ( - col2 ) AS col1 FROM tab1
----
55
58
97

skipif mysql # not compatible
query I rowsort label-4647
SELECT ALL - col1 / - col1 + - ( - col2 ) AS col1 FROM tab1
----
55
58
97

query I rowsort
SELECT col1 * + ( - tab0.col2 ) FROM tab0
----
-2838
-7462
-97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4649
SELECT DISTINCT + col2 + + CAST( col1 AS SIGNED ) FROM tab0 cor0
----
119
173
98

skipif mysql # not compatible
query I rowsort label-4649
SELECT DISTINCT + col2 + + CAST ( col1 AS INTEGER ) FROM tab0 cor0
----
119
173
98

query I rowsort
SELECT - col0 + 55 AS col0 FROM tab0 AS cor0
----
-34
20
31

query I rowsort
SELECT DISTINCT col0 + ( col1 + - col0 ) * + 35 AS col2 FROM tab1 AS cor0
----
-1826
-2265
808

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4652
SELECT DISTINCT + col0 + col1 / - ( col0 * CAST( NULL AS SIGNED ) ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4652
SELECT DISTINCT + col0 + col1 / - ( col0 * CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT - - col0 + + cor0.col0 AS col2 FROM tab2 AS cor0
----
14
156
158

query I rowsort
SELECT ALL - col0 * ( + 30 * - col0 + + 94 ) FROM tab0 AS cor0
----
15024
229264
33460

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4655
SELECT - col0 / CAST( NULL AS SIGNED ) col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4655
SELECT - col0 / CAST ( NULL AS INTEGER ) col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-4656
SELECT DISTINCT + col0 + + cor0.col2 * col1 DIV col0 AS col0 FROM tab1 AS cor0
----
471
72
95

skipif mysql # not compatible
query I rowsort label-4656
SELECT DISTINCT + col0 + + cor0.col2 * col1 / col0 AS col0 FROM tab1 AS cor0
----
471
72
95

query I rowsort
SELECT - col1 + - 40 AS col2 FROM tab0 AS cor0
----
-126
-131
-137

query I rowsort
SELECT DISTINCT + 39 + + tab1.col0 FROM tab1
----
103
119
42

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 12 col0 FROM tab0
----
12

query I rowsort
SELECT ALL 64 - col2 FROM tab2
----
26
37
38

query I rowsort
SELECT ALL - + 98 AS col2 FROM tab2 AS cor0
----
-98
-98
-98

query I rowsort
SELECT ALL + 61 * col1 AS col2 FROM tab0 AS cor0
----
5246
5551
5917

query I rowsort
SELECT DISTINCT + 61 * + 49 FROM tab1 cor0
----
2989

query I rowsort
SELECT DISTINCT - col0 - - cor0.col1 * col1 AS col0 FROM tab2 AS cor0
----
210
3403
954

query I rowsort
SELECT DISTINCT - ( 24 ) + col2 - col1 * 87 FROM tab1 cor0
----
-1059
-2232
-837

query I rowsort
SELECT DISTINCT cor1.col1 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
17
31
59

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4667
SELECT ALL - - CAST( + col2 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-4667
SELECT ALL - - CAST ( + col2 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT DISTINCT col2 + col0 * col1 AS col0 FROM tab2 AS cor0
----
1381
244
4628

onlyif mysql # use DIV operator for integer division
query I rowsort label-4669
SELECT ALL - col1 + cor0.col0 * ( ( + col2 ) ) DIV 78 AS col0 FROM tab2 AS cor0
----
-29
-33
21

skipif mysql # not compatible
query I rowsort label-4669
SELECT ALL - col1 + cor0.col0 * ( ( + col2 ) ) / 78 AS col0 FROM tab2 AS cor0
----
-29
-33
21

query I rowsort
SELECT ALL - + col2 * col2 + col0 AS col1 FROM tab1 AS cor0
----
-2913
-3185
-9136

query I rowsort
SELECT + col1 * - col0 + 29 AS col2 FROM tab2 AS cor0
----
-1314
-188
-4573

query I rowsort
SELECT DISTINCT - + col0 + cor0.col1 * + col2 AS col0 FROM tab2 AS cor0
----
1456
567
830

query I rowsort
SELECT - + col1 * col0 + col0 FROM tab0 cor0
----
-2040
-3360
-8010

onlyif mysql # use DIV operator for integer division
query I rowsort label-4674
SELECT DISTINCT - - col0 * - col1 DIV col1 FROM tab1 AS cor0
----
-3
-64
-80

skipif mysql # not compatible
query I rowsort label-4674
SELECT DISTINCT - - col0 * - col1 / col1 FROM tab1 AS cor0
----
-3
-64
-80

query I rowsort
SELECT 90 * col2 + + col1 * - col2 FROM tab2 AS cor0
----
1593
2774
806

query I rowsort
SELECT DISTINCT 4 AS col2 FROM tab2 cor0
----
4

query I rowsort
SELECT + + cor0.col1 + + cor0.col0 * - col2 FROM tab2 AS cor0
----
-158
-1969
-2985

query I rowsort
SELECT ALL + - col2 * col0 * col1 AS col1 FROM tab0 AS cor0
----
-3395
-664118
-68112

query I rowsort
SELECT ( col2 ) * - 91 + cor0.col2 - - col2 FROM tab2 AS cor0
----
-2314
-2403
-3382

query I rowsort
SELECT ALL + 80 - col1 * + tab0.col1 AS col1 FROM tab0
----
-7316
-8201
-9329

onlyif mysql # use DIV operator for integer division
query I rowsort label-4681
SELECT DISTINCT col1 DIV col2 AS col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4681
SELECT DISTINCT col1 / col2 AS col0 FROM tab1 AS cor0
----
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4682
SELECT ALL - + col0 * cor0.col2 * CAST( - col2 AS SIGNED ) + col0 FROM tab2 AS cor0
----
114155
5110
52806

skipif mysql # not compatible
query I rowsort label-4682
SELECT ALL - + col0 * cor0.col2 * CAST ( - col2 AS INTEGER ) + col0 FROM tab2 AS cor0
----
114155
5110
52806

query I rowsort
SELECT ALL + - col0 * cor0.col2 * 74 AS col0 FROM tab1 AS cor0
----
-11988
-269952
-568320

onlyif mysql # use DIV operator for integer division
query I rowsort label-4684
SELECT 37 DIV + col1 AS col1 FROM tab1
----
1
2
3

skipif mysql # not compatible
query I rowsort label-4684
SELECT 37 / + col1 AS col1 FROM tab1
----
1
2
3

query I rowsort
SELECT + + 80 * + col1 AS col1 FROM tab1 cor0
----
1040
2080
800

query I rowsort
SELECT + + cor0.col2 + + cor0.col2 AS col2 FROM tab2 AS cor0
----
52
54
76

onlyif mysql # use DIV operator for integer division
query I rowsort label-4687
SELECT - + col2 - + ( 40 ) DIV col1 col2 FROM tab0 cor0
----
-1
-33
-82

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4687
SELECT - + col2 - + ( 40 ) / col1 col2 FROM tab0 cor0
----
-1
-33
-82

query I rowsort
SELECT + cor0.col2 + cor0.col1 * cor0.col0 AS col1 FROM tab1 cor0
----
1136
132
697

query I rowsort
SELECT - - cor0.col2 - - col2 AS col0 FROM tab1 AS cor0
----
108
114
192

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4690
SELECT - tab0.col1 + CAST( NULL AS SIGNED ) AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-4690
SELECT - tab0.col1 + CAST ( NULL AS INTEGER ) AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # use DIV operator for integer division
query I rowsort label-4691
SELECT 49 DIV - col1 + + col1 AS col0 FROM tab2
----
15
30
59

skipif mysql # not compatible
query I rowsort label-4691
SELECT 49 / - col1 + + col1 AS col0 FROM tab2
----
15
30
59

query I rowsort
SELECT DISTINCT tab1.col1 + - col1 * ( + col0 ) FROM tab1
----
-1027
-52
-630

query I rowsort
SELECT DISTINCT - tab2.col0 + col1 * 68 * + 75 FROM tab2
----
158093
300822
86621

query I rowsort
SELECT ALL + tab0.col1 + + col2 AS col1 FROM tab0
----
119
173
98

query I rowsort
SELECT + 16 * 55 AS col0 FROM tab0 AS cor0
----
880
880
880

query I rowsort
SELECT - 66 * ( + col0 ) AS col2 FROM tab1 AS cor0
----
-198
-4224
-5280

query I rowsort
SELECT - - 46 AS col1 FROM tab0 AS cor0
----
46
46
46

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4698
SELECT ALL CAST( NULL AS DECIMAL ) + cor0.col0 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4698
SELECT ALL CAST ( NULL AS REAL ) + cor0.col0 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + + col1 * ( - cor0.col0 ) FROM tab1 AS cor0
----
-1040
-640
-78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col1 + - col0 col0 FROM tab0 AS cor0
----
-110
-132
-180

query I rowsort
SELECT DISTINCT - 47 + col2 * + cor0.col1 - + col1 AS col1 FROM tab0 AS cor0
----
-47
2705
7324

query I rowsort
SELECT DISTINCT - 86 + col1 AS col2 FROM tab0 AS cor0
----
0
11
5

query I rowsort
SELECT cor0.col0 * 2 FROM tab0 AS cor0
----
178
48
70

query I rowsort
SELECT + cor0.col1 * 77 AS col1 FROM tab1 AS cor0
----
1001
2002
770

onlyif mysql # use DIV operator for integer division
query I rowsort label-4705
SELECT ALL + col1 DIV 7 AS col2 FROM tab0
----
12
13
13

skipif mysql # not compatible
query I rowsort label-4705
SELECT ALL + col1 / 7 AS col2 FROM tab0
----
12
13
13

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( + 53 ) col1 FROM tab2
----
-53

query I rowsort
SELECT + 39 * - col1 FROM tab0 cor0
----
-3354
-3549
-3783

onlyif mysql # use DIV operator for integer division
query I rowsort label-4708
SELECT + - 81 DIV + 84 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4708
SELECT + - 81 / + 84 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4709
SELECT ALL col1 * CAST( NULL AS DECIMAL ) 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-4709
SELECT ALL col1 * CAST ( NULL AS REAL ) col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col0 * - ( - 12 ) AS col0 FROM tab2 cor0
----
-84
-936
-948

query I rowsort
SELECT - col2 * - ( col0 ) + col1 * col0 FROM tab2 AS cor0
----
406
4345
6630

query I rowsort
SELECT DISTINCT + col1 * ( 65 ) - - col2 AS col0 FROM tab2 AS cor0
----
1143
2042
3861

onlyif mysql # use DIV operator for integer division
query I rowsort label-4713
SELECT ALL col1 - - cor0.col2 DIV cor0.col1 col0 FROM tab1 AS cor0
----
15
20
28

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4713
SELECT ALL col1 - - cor0.col2 / cor0.col1 col0 FROM tab1 AS cor0
----
15
20
28

query I rowsort
SELECT + col2 + + col1 * + 56 FROM tab2 AS cor0
----
1763
3330
990

query I rowsort
SELECT ALL - col0 + 52 AS col1 FROM tab2 AS cor0
----
-26
-27
45

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4716
SELECT CAST( - cor0.col1 AS SIGNED ) FROM tab0 AS cor0
----
-86
-91
-97

skipif mysql # not compatible
query I rowsort label-4716
SELECT CAST ( - cor0.col1 AS INTEGER ) FROM tab0 AS cor0
----
-86
-91
-97

query I rowsort
SELECT DISTINCT - ( col2 ) + - col2 * col1 AS col1 FROM tab2 AS cor0
----
-1560
-684
-864

query I rowsort
SELECT ALL + 14 + cor0.col1 FROM tab0 AS cor0
----
100
105
111

query I rowsort
SELECT ALL + ( + col0 ) * + cor0.col0 + 90 FROM tab2 AS cor0
----
139
6174
6331

query I rowsort
SELECT DISTINCT - col0 * 83 AS col1 FROM tab0 cor0
----
-1992
-2905
-7387

query I rowsort
SELECT DISTINCT + col1 + col0 * - col2 AS col1 FROM tab0 cor0
----
-706
-7207
62

query I rowsort
SELECT + - col2 + 88 FROM tab2 AS cor0
----
50
61
62

onlyif mysql # use DIV operator for integer division
query I rowsort label-4723
SELECT col1 DIV + col1 - tab2.col2 col2 FROM tab2
----
-25
-26
-37

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4723
SELECT col1 / + col1 - tab2.col2 col2 FROM tab2
----
-25
-26
-37

query I rowsort
SELECT DISTINCT col2 + col0 * ( - col0 ) FROM tab1
----
-4039
-6304
45

query I rowsort
SELECT - col0 * col0 + - 6 AS col2 FROM tab0
----
-1231
-582
-7927

query I rowsort
SELECT DISTINCT col2 * + col1 * - col2 + + col0 AS col1 FROM tab0
----
-611795
-62
-93630

query I rowsort
SELECT - col1 * + col1 - - 69 * col2 FROM tab1 AS cor0
----
3050
3833
6455

query I rowsort
SELECT ALL 72 * + col2 AS col0 FROM tab1 AS cor0
----
3888
4104
6912

query I rowsort
SELECT + col1 * cor0.col0 + - cor0.col2 * col1 * + cor0.col0 + - 68 * - col2 FROM tab0 AS cor0
----
-63804
-650443
68

onlyif mysql # use DIV operator for integer division
query I rowsort label-4730
SELECT + col0 DIV + ( - tab2.col1 ) col2 FROM tab2
----
-1
-4
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4730
SELECT + col0 / + ( - tab2.col1 ) col2 FROM tab2
----
-1
-4
0

query I rowsort
SELECT - col0 * cor0.col2 + ( - 97 ) * col0 + - ( col0 ) FROM tab1 AS cor0
----
-15520
-456
-9920

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 77 * col0 col1 FROM tab2 AS cor0
----
-539
-6006
-6083

query I rowsort
SELECT + col1 * col2 * - 58 FROM tab2
----
-37468
-48546
-88972

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4734
SELECT 55 * col1 * + CAST( - col1 + + col0 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-32890
29700
47905

skipif mysql # not compatible
query I rowsort label-4734
SELECT 55 * col1 * + CAST ( - col1 + + col0 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-32890
29700
47905

query I rowsort
SELECT 71 AS col2 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 95a6ff35b7b8f00868fb58bcaa32d0c2

query I rowsort
SELECT - 40 - + col2 FROM tab1
----
-136
-94
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-4737
SELECT 32 DIV - col2 FROM tab0
----
-32
0
0

skipif mysql # not compatible
query I rowsort label-4737
SELECT 32 / - col2 FROM tab0
----
-32
0
0

query I rowsort
SELECT ALL 25 + - col0 * + 68 - + col1 AS col0 FROM tab1
----
-205
-4337
-5428

query I rowsort
SELECT ALL + col2 * col0 + + col1 * - col0 + + col2 AS col1 FROM tab2 cor0
----
-1
-2548
1697

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * - ( cor0.col2 ) col0 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT - - col2 * + col2 * - 12 + + col1 AS col0 FROM tab1 AS cor0
----
-110579
-34966
-38978

query I rowsort
SELECT DISTINCT - + cor0.col2 + ( - col1 ) AS col0 FROM tab0 AS cor0
----
-119
-173
-98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col1 * col0 col1 FROM tab1 cor0
----
1040
640
78

query I rowsort
SELECT - col0 + 36 FROM tab0 AS cor0
----
-53
1
12

query I rowsort
SELECT DISTINCT - col1 * + col1 + 38 FROM tab0
----
-7358
-8243
-9371

query I rowsort
SELECT col1 * - tab0.col2 + + ( 8 ) + + col2 FROM tab0
----
-2797
-7372
-88

query I rowsort
SELECT DISTINCT + 86 * - col2 + ( + 1 + - col2 ) * - col1 * + tab0.col2 AS col2 FROM tab0
----
-86
597370
87978

query I rowsort
SELECT col0 + tab2.col1 + - 51 AS col0 FROM tab2
----
-13
45
86

query I rowsort
SELECT + col0 + + col2 * ( + 63 ) * + col1 + tab0.col2 * col1 FROM tab0
----
181656
477657
6243

onlyif mysql # use DIV operator for integer division
query I rowsort label-4750
SELECT DISTINCT 76 DIV - col0 + col2 - - col1 FROM tab1
----
109
55
66

skipif mysql # not compatible
query I rowsort label-4750
SELECT DISTINCT 76 / - col0 + col2 - - col1 FROM tab1
----
109
55
66

query I rowsort
SELECT + tab2.col1 + + 63 FROM tab2
----
122
80
94

query I rowsort
SELECT col2 * + ( - tab1.col1 + tab1.col1 ) FROM tab1
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-4753
SELECT DISTINCT - col1 + ( col1 ) DIV col0 FROM tab2
----
-17
-27
-59

skipif mysql # not compatible
query I rowsort label-4753
SELECT DISTINCT - col1 + ( col1 ) / col0 FROM tab2
----
-17
-27
-59

query I rowsort
SELECT ALL + + col2 * + cor0.col0 + - ( col1 ) + + col1 FROM tab1 AS cor0
----
162
3648
7680

onlyif mysql # use DIV operator for integer division
query I rowsort label-4755
SELECT ALL cor0.col0 DIV 67 FROM tab2 cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-4755
SELECT ALL cor0.col0 / 67 FROM tab2 cor0
----
0
1
1

query I rowsort
SELECT ALL + col0 + ( 81 * col1 ) AS col2 FROM tab1 AS cor0
----
1133
2109
874

query I rowsort
SELECT + + col2 + - 7 AS col0 FROM tab2 AS cor0
----
19
20
31

query I rowsort
SELECT + col0 * 62 AS col2 FROM tab1 AS cor0
----
186
3968
4960

query I rowsort
SELECT ALL - col2 * cor0.col2 AS col1 FROM tab0 AS cor0
----
-1
-1089
-6724

query I rowsort
SELECT DISTINCT + + col1 * + col1 * + 71 FROM tab2 AS cor0
----
20519
247151
68231

onlyif mysql # use DIV operator for integer division
query I rowsort label-4761
SELECT DISTINCT + cor0.col0 DIV ( - 19 * col0 ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4761
SELECT DISTINCT + cor0.col0 / ( - 19 * col0 ) FROM tab1 AS cor0
----
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4762
SELECT - col0 + CAST( col2 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-34
-7
9

skipif mysql # not compatible
query I rowsort label-4762
SELECT - col0 + CAST ( col2 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-34
-7
9

query I rowsort
SELECT DISTINCT + col1 * 98 AS col2 FROM tab0 cor0
----
8428
8918
9506

query I rowsort
SELECT - col0 * - col2 * col2 + col2 AS col1 FROM tab1 AS cor0
----
207993
737376
8802

onlyif mysql # use DIV operator for integer division
query I rowsort label-4765
SELECT + col1 + - 45 DIV col2 + col0 FROM tab1 AS cor0
----
29
74
93

skipif mysql # not compatible
query I rowsort label-4765
SELECT + col1 + - 45 / col2 + col0 FROM tab1 AS cor0
----
29
74
93

query IIIIIIIII rowsort
SELECT * FROM tab1, tab1 AS cor0 CROSS JOIN tab0 cor1
----
243 values hashing to 3a953203ced079e372111d61dbd9e35f

query I rowsort
SELECT col1 + 42 * col0 AS col0 FROM tab0
----
1094
1567
3829

query I rowsort
SELECT + cor0.col0 + - ( + 39 ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 619228f6c459e8b55ab693a23d79ace1

query I rowsort
SELECT + + 93 + col0 AS col2 FROM tab2 cor0
----
100
171
172

query I rowsort
SELECT - + col0 * col0 FROM tab1 cor0
----
-4096
-6400
-9

onlyif mysql # use DIV operator for integer division
query I rowsort label-4771
SELECT ALL - cor0.col0 * col1 DIV col1 + col1 AS col2 FROM tab0 AS cor0
----
2
62
62

skipif mysql # not compatible
query I rowsort label-4771
SELECT ALL - cor0.col0 * col1 / col1 + col1 AS col2 FROM tab0 AS cor0
----
2
62
62

query I rowsort
SELECT ALL 73 * + col0 - - cor0.col2 AS col2 FROM tab1 AS cor0
----
273
4729
5936

query I rowsort
SELECT - - 96 * col0 FROM tab2 cor0
----
672
7488
7584

query I rowsort
SELECT + 14 AS col2 FROM tab1 cor0
----
14
14
14

query I rowsort
SELECT - + ( - col0 ) + + cor0.col1 FROM tab2 AS cor0
----
137
38
96

query I rowsort
SELECT DISTINCT - cor0.col2 + - col2 FROM tab0 cor0
----
-164
-2
-66

query I rowsort
SELECT DISTINCT + 86 * col2 - + col0 AS col1 FROM tab1 AS cor0
----
4641
4838
8176

onlyif mysql # use DIV operator for integer division
query I rowsort label-4778
SELECT ALL + + CAST( + ( - col0 ) AS SIGNED ) DIV 60 + 93 FROM tab2 AS cor0
----
92
92
93

skipif mysql # not compatible
query I rowsort label-4778
SELECT ALL + + CAST ( + ( - col0 ) AS INTEGER ) / 60 + 93 FROM tab2 AS cor0
----
92
92
93

query I rowsort
SELECT + + 38 - + col1 * col1 FROM tab1 AS cor0
----
-131
-62
-638

query I rowsort
SELECT DISTINCT - 87 + - col2 AS col2 FROM tab2 AS cor0
----
-113
-114
-125

onlyif mysql # use DIV operator for integer division
query I rowsort label-4781
SELECT 40 DIV 91 - - col2 FROM tab2 cor0
----
26
27
38

skipif mysql # not compatible
query I rowsort label-4781
SELECT 40 / 91 - - col2 FROM tab2 cor0
----
26
27
38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + 25 col2 FROM tab0 AS cor0
----
114
49
60

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4783
SELECT + - CAST( - 36 AS SIGNED ) - - col0 FROM tab0 AS cor0
----
125
60
71

skipif mysql # not compatible
query I rowsort label-4783
SELECT + - CAST ( - 36 AS INTEGER ) - - col0 FROM tab0 AS cor0
----
125
60
71

query I rowsort
SELECT DISTINCT - - col2 * + 77 AS col0 FROM tab2 AS cor0
----
2002
2079
2926

query I rowsort
SELECT ALL + ( 24 ) * - col2 FROM tab2 AS cor0
----
-624
-648
-912

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 19 * 35 + + col2 * 4 col1 FROM tab2 AS cor0
----
769
773
817

query I rowsort
SELECT DISTINCT - + 93 * - col1 - - col1 AS col2 FROM tab2 AS cor0
----
1598
2914
5546

onlyif mysql # use DIV operator for integer division
query I rowsort label-4788
SELECT - col2 DIV ( - col2 ) + col2 AS col2 FROM tab1
----
55
58
97

skipif mysql # not compatible
query I rowsort label-4788
SELECT - col2 / ( - col2 ) + col2 AS col2 FROM tab1
----
55
58
97

query I rowsort
SELECT 76 * 54 AS col2 FROM tab0, tab1 cor0
----
9 values hashing to a921f5a906beaab39638b140bcd3ceca

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4790
SELECT CAST( NULL AS SIGNED ) FROM tab0, tab2, tab0 AS cor0, tab1
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c

skipif mysql # not compatible
query I rowsort label-4790
SELECT CAST ( NULL AS INTEGER ) FROM tab0, tab2, tab0 AS cor0, tab1
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4791
SELECT cor0.col1 * col0 + CAST( - col0 AS SIGNED ) * + col0 col2 FROM tab2 AS cor0
----
-1482
-4898
168

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4791
SELECT cor0.col1 * col0 + CAST ( - col0 AS INTEGER ) * + col0 col2 FROM tab2 AS cor0
----
-1482
-4898
168

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4792
SELECT - col1 - cor0.col2 * + 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-4792
SELECT - col1 - cor0.col2 * + CAST ( NULL AS INTEGER ) col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 5 + ( col1 ) * - col2 AS col1 FROM tab0
----
-2833
-7457
-92

query I rowsort
SELECT - + col1 + - cor0.col2 * cor0.col2 AS col2 FROM tab1 AS cor0
----
-2942
-3259
-9229

query I rowsort
SELECT col0 * - col1 + - col0 * col2 AS col2 FROM tab0
----
-15397
-2856
-3430

query I rowsort
SELECT DISTINCT + col1 * col0 * 3 AS col1 FROM tab0
----
10185
24297
6192

query I rowsort
SELECT col1 + tab2.col1 * tab2.col2 FROM tab2
----
1593
663
868

query I rowsort
SELECT col1 * + 59 + col0 AS col0 FROM tab2
----
1082
1836
3559

query I rowsort
SELECT col1 + tab1.col2 * - tab1.col0 AS col1 FROM tab1
----
-136
-3638
-7667

onlyif mysql # use DIV operator for integer division
query I rowsort label-4800
SELECT DISTINCT - + col1 * col1 DIV cor0.col2 col0 FROM tab1 AS cor0
----
-1
-12

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4800
SELECT DISTINCT - + col1 * col1 / cor0.col2 col0 FROM tab1 AS cor0
----
-1
-12

query I rowsort
SELECT - col2 * - 98 FROM tab2 AS cor0
----
2548
2646
3724

onlyif mysql # use DIV operator for integer division
query I rowsort label-4802
SELECT - - col0 DIV 40 col2 FROM tab1 cor0
----
0
1
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4802
SELECT - - col0 / 40 col2 FROM tab1 cor0
----
0
1
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col1 + + col0 col0 FROM tab1 AS cor0
----
29
74
93

query I rowsort
SELECT - - col2 + col0 * col0 AS col2 FROM tab2 cor0
----
6110
6279
76

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab0 AS cor0, tab1 cor1, tab2, tab2 AS cor2
----
3645 values hashing to b62c1ebc681aca72d13feadb888b3be7

query I rowsort
SELECT ALL - - col1 * 18 AS col2 FROM tab2 AS cor0
----
1062
306
558

query I rowsort
SELECT + + col1 * 85 FROM tab2 cor0
----
1445
2635
5015

query I rowsort
SELECT + col1 * 17 FROM tab0 AS cor0
----
1462
1547
1649

query I rowsort
SELECT ALL - 43 * col2 AS col1 FROM tab1
----
-2322
-2451
-4128

onlyif mysql # use DIV operator for integer division
query I rowsort label-4810
SELECT + - col2 DIV cor0.col0 AS col2 FROM tab1 AS cor0
----
-1
-18
0

skipif mysql # not compatible
query I rowsort label-4810
SELECT + - col2 / cor0.col0 AS col2 FROM tab1 AS cor0
----
-1
-18
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4811
SELECT ALL 85 * + cor0.col0 + CAST( 31 AS SIGNED ) AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 5f50cf9901f51ca0a4b216219ceff2e4

skipif mysql # not compatible
query I rowsort label-4811
SELECT ALL 85 * + cor0.col0 + CAST ( 31 AS INTEGER ) AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 5f50cf9901f51ca0a4b216219ceff2e4

query I rowsort
SELECT + cor0.col1 AS col0 FROM tab0, tab2 cor0, tab0 AS cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d

onlyif mysql # use DIV operator for integer division
query I rowsort label-4813
SELECT - 86 DIV col2 col2 FROM tab1 AS cor0
----
-1
-1
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4813
SELECT - 86 / col2 col2 FROM tab1 AS cor0
----
-1
-1
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-4814
SELECT ( + col1 ) DIV - col1 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-4814
SELECT ( + col1 ) / - col1 FROM tab2 AS cor0
----
-1
-1
-1

query I rowsort
SELECT - tab2.col1 * 64 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 4f4082836730b9cba3a5b068c315ee29

query I rowsort
SELECT DISTINCT + - col2 + col0 + - 58 FROM tab2 AS cor0
----
-17
-6
-78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 83 + col2 * ( - col2 + - col2 ) * - col2 col2 FROM tab0 AS cor0
----
1102819
71957
85

query I rowsort
SELECT + 24 * - col0 + - 58 * - col2 FROM tab1 AS cor0
----
1770
3060
3648

query I rowsort
SELECT + 22 + + col1 AS col1 FROM tab1 AS cor0
----
32
35
48

query I rowsort
SELECT + + col1 * - 46 + col1 + col0 AS col1 FROM tab0 AS cor0
----
-3846
-4006
-4330

query I rowsort
SELECT - col2 * - cor0.col2 * cor0.col1 FROM tab1 AS cor0
----
119808
32490
75816

query I rowsort
SELECT - cor0.col1 * ( col1 ) + col2 FROM tab0 AS cor0
----
-7363
-8199
-9408

query I rowsort
SELECT col0 + - ( col2 ) * + col1 FROM tab0 AS cor0
----
-2814
-62
-7373

query I rowsort
SELECT ALL 8 FROM tab1, tab0, tab0 AS cor0
----
27 values hashing to 33069adc3c1142d31511ec88fcfa40af

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab2.col2 - col0 col1 FROM tab2
----
-104
-117
-34

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4826
SELECT + col0 + tab2.col1 + CAST( col0 AS SIGNED ) FROM tab2
----
175
215
45

skipif mysql # not compatible
query I rowsort label-4826
SELECT + col0 + tab2.col1 + CAST ( col0 AS INTEGER ) FROM tab2
----
175
215
45

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 35 - + col0 col1 FROM tab1
----
-29
-45
32

query I rowsort
SELECT ALL - col2 * + col0 * 1 - col1 FROM tab2
----
-2087
-220
-3019

query I rowsort
SELECT + + cor0.col0 + + col2 * col1 FROM tab2 AS cor0
----
1612
725
844

query I rowsort
SELECT + + ( col1 ) * col0 + col0 FROM tab2 AS cor0
----
1422
224
4680

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4831
SELECT col2 + + CAST( 39 * - col2 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-1026
-1444
-988

skipif mysql # not compatible
query I rowsort label-4831
SELECT col2 + + CAST ( 39 * - col2 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-1026
-1444
-988

query I rowsort
SELECT + col2 * - col1 + - col1 FROM tab0 AS cor0
----
-194
-2924
-7553

query I rowsort
SELECT ALL - col0 * - col1 * + cor0.col1 FROM tab0 AS cor0
----
177504
329315
737009

onlyif mysql # use DIV operator for integer division
query I rowsort label-4834
SELECT ALL - - cor0.col2 DIV 26 + + ( - col1 ) AS col1 FROM tab0 AS cor0
----
-85
-88
-97

skipif mysql # not compatible
query I rowsort label-4834
SELECT ALL - - cor0.col2 / 26 + + ( - col1 ) AS col1 FROM tab0 AS cor0
----
-85
-88
-97

query I rowsort
SELECT - col2 + 97 FROM tab2 AS cor0
----
59
70
71

onlyif mysql # use DIV operator for integer division
query I rowsort label-4836
SELECT - cor0.col1 + ( - col2 ) DIV col2 FROM tab0 AS cor0
----
-87
-92
-98

skipif mysql # not compatible
query I rowsort label-4836
SELECT - cor0.col1 + ( - col2 ) / col2 FROM tab0 AS cor0
----
-87
-92
-98

query I rowsort
SELECT DISTINCT col0 * + col2 + 41 * - col1 * + col0 + - col0 AS col0 FROM tab1 AS cor0
----
-22656
-3039
-35040

query I rowsort
SELECT col2 + - col2 * col0 AS col0 FROM tab0 AS cor0
----
-34
-7216
-759

onlyif mysql # use DIV operator for integer division
query I rowsort label-4839
SELECT ALL - col0 * + col1 * - col0 + col2 * 21 DIV + col1 FROM tab2 AS cor0
----
106143
1537
358965

skipif mysql # not compatible
query I rowsort label-4839
SELECT ALL - col0 * + col1 * - col0 + col2 * 21 / + col1 FROM tab2 AS cor0
----
106143
1537
358965

query I rowsort
SELECT DISTINCT + col1 + + col1 * - col1 FROM tab2 AS cor0
----
-272
-3422
-930

onlyif mysql # use DIV operator for integer division
query I rowsort label-4841
SELECT ALL - col1 + col0 DIV col1 FROM tab0 AS cor0
----
-86
-91
-97

skipif mysql # not compatible
query I rowsort label-4841
SELECT ALL - col1 + col0 / col1 FROM tab0 AS cor0
----
-86
-91
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-4842
SELECT ALL - + cor0.col1 DIV - 8 + - col2 * + col2 AS col1 FROM tab2 AS cor0
----
-1442
-669
-726

skipif mysql # not compatible
query I rowsort label-4842
SELECT ALL - + cor0.col1 / - 8 + - col2 * + col2 AS col1 FROM tab2 AS cor0
----
-1442
-669
-726

query I rowsort
SELECT - - tab0.col2 AS col0 FROM tab0, tab2, tab2 AS cor0
----
27 values hashing to 7786718bd8042022537378d40ec87475

query I rowsort
SELECT ALL + - col1 * ( col0 * + col0 ) AS col1 FROM tab1 AS cor0
----
-234
-40960
-83200

query I rowsort
SELECT + col1 + tab0.col0 + col1 AS col1 FROM tab0
----
196
229
271

query I rowsort
SELECT - col1 FROM tab2 WHERE NOT NULL IN ( + tab2.col2 )
----

query I rowsort
SELECT tab0.col0 + col2 + + col0 FROM tab0
----
260
71
81

onlyif mysql # use DIV operator for integer division
query I rowsort label-4848
SELECT - col1 DIV tab1.col2 AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4848
SELECT - col1 / tab1.col2 AS col2 FROM tab1
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-4849
SELECT DISTINCT col0 DIV col2 + - col1 * col0 AS col0 FROM tab0
----
-2064
-3360
-8098

skipif mysql # not compatible
query I rowsort label-4849
SELECT DISTINCT col0 / col2 + - col1 * col0 AS col0 FROM tab0
----
-2064
-3360
-8098

query I rowsort
SELECT tab2.col0 * - tab2.col0 AS col2 FROM tab2
----
-49
-6084
-6241

query I rowsort
SELECT DISTINCT col1 FROM tab2 WHERE - col1 NOT BETWEEN NULL AND NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-4852
SELECT ALL + - col0 DIV cor0.col1 + ( - cor0.col1 ) AS col0 FROM tab1 AS cor0
----
-16
-19
-26

skipif mysql # not compatible
query I rowsort label-4852
SELECT ALL + - col0 / cor0.col1 + ( - cor0.col1 ) AS col0 FROM tab1 AS cor0
----
-16
-19
-26

query I rowsort
SELECT DISTINCT col2 - col0 * tab0.col0 AS col2 FROM tab0
----
-1224
-543
-7839

query I rowsort
SELECT ALL + col1 + - tab0.col0 FROM tab0
----
2
62
62

query I rowsort
SELECT - tab1.col1 + col2 * col2 FROM tab1 WHERE NULL IN ( + col2 )
----

query I rowsort
SELECT - col2 + - col0 * col1 * + tab0.col0 AS col1 FROM tab0
----
-118826
-49569
-720893

query I rowsort
SELECT ALL - cor0.col0 * + col2 AS col2 FROM tab0 AS cor0
----
-35
-7298
-792

onlyif mysql # use DIV operator for integer division
query I rowsort label-4858
SELECT ALL - 46 + - col1 DIV + ( col1 ) AS col0 FROM tab2 AS cor0
----
-47
-47
-47

skipif mysql # not compatible
query I rowsort label-4858
SELECT ALL - 46 + - col1 / + ( col1 ) AS col0 FROM tab2 AS cor0
----
-47
-47
-47

query I rowsort
SELECT 2 * - cor0.col0 FROM tab1 AS cor0
----
-128
-160
-6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + col1 col1 FROM tab2 AS cor0
----
-21
33
4

onlyif mysql # use DIV operator for integer division
query I rowsort label-4861
SELECT ALL + col2 DIV + col0 FROM tab1 AS cor0
----
0
1
18

skipif mysql # not compatible
query I rowsort label-4861
SELECT ALL + col2 / + col0 FROM tab1 AS cor0
----
0
1
18

query I rowsort
SELECT ALL + 33 * - cor0.col1 - + ( - ( - col0 ) ) AS col2 FROM tab0 AS cor0
----
-2862
-3092
-3236

query I rowsort
SELECT ALL + 75 + cor0.col2 * col1 AS col0 FROM tab1 cor0
----
1323
1479
645

query I rowsort
SELECT DISTINCT - + cor0.col2 * col2 * col2 AS col0 FROM tab1 AS cor0
----
-157464
-185193
-884736

query I rowsort
SELECT - + col2 + col0 * ( cor0.col2 ) FROM tab1 AS cor0
----
108
3591
7584

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4866
SELECT ALL + CAST( + 52 AS SIGNED ) FROM tab0
----
52
52
52

skipif mysql # not compatible
query I rowsort label-4866
SELECT ALL + CAST ( + 52 AS INTEGER ) FROM tab0
----
52
52
52

query I rowsort
SELECT col1 * - 0 + - col1 AS col0 FROM tab1
----
-10
-13
-26

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4868
SELECT - CAST( NULL AS SIGNED ) * + tab2.col0 + col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4868
SELECT - CAST ( NULL AS INTEGER ) * + tab2.col0 + col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-4869
SELECT + col0 * col1 DIV + col0 FROM tab1 AS cor0
----
10
13
26

skipif mysql # not compatible
query I rowsort label-4869
SELECT + col0 * col1 / + col0 FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT + 1 * + col2 * - col1 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT + 79 * - col1 + col2 AS col1 FROM tab1 cor0
----
-2000
-733
-931

query I rowsort
SELECT DISTINCT + ( + 38 ) AS col1 FROM tab2 AS cor0
----
38

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4873
SELECT + - CAST( NULL AS SIGNED ) + + 73 + - col0 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4873
SELECT + - CAST ( NULL AS INTEGER ) + + 73 + - col0 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 65 FROM tab0 AS cor0 CROSS JOIN tab0, tab1 AS cor1, tab2 AS cor2
----
-65

query I rowsort
SELECT 90 * cor0.col2 FROM tab2 cor0
----
2340
2430
3420

query I rowsort
SELECT DISTINCT tab1.col2 * 34 FROM tab1
----
1836
1938
3264

query I rowsort
SELECT ALL - 90 FROM tab2, tab1 AS cor0, tab0 AS cor1, tab2 AS cor2
----
81 values hashing to 7414b682e5ab5dac55bc20746601d17a

query I rowsort
SELECT - 78 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to b6e4cc21599216686f0cf45b85668b2c

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 30 + + 45 + col1 * + 85 col2 FROM tab2 AS cor0
----
1460
2650
5030

query I rowsort
SELECT DISTINCT - 57 AS col0 FROM tab1, tab1 AS cor0
----
-57

query I rowsort
SELECT DISTINCT - col2 * - col0 AS col2 FROM tab0 cor0
----
35
7298
792

query I rowsort
SELECT + 17 * col1 AS col0 FROM tab1 AS cor0
----
170
221
442

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 79 * col0 col1 FROM tab1 AS cor0
----
-237
-5056
-6320

query I rowsort
SELECT ALL + 82 + - col0 * col0 FROM tab0 AS cor0
----
-1143
-494
-7839

query I rowsort
SELECT DISTINCT + col2 * - col1 + - col2 * - cor0.col1 FROM tab2 AS cor0
----
0

query I rowsort
SELECT 92 + - col0 * col1 AS col2 FROM tab2 cor0
----
-125
-1251
-4510

query I rowsort
SELECT + 38 + col1 * col1 FROM tab2 AS cor0
----
327
3519
999

query I rowsort
SELECT - cor0.col1 * col0 * - col2 FROM tab2 AS cor0
----
119652
51034
5859

query I rowsort
SELECT DISTINCT + col0 * col2 - col0 FROM tab0 AS cor0
----
0
7209
768

query I rowsort
SELECT ALL - - 68 * col1 + col2 FROM tab2 AS cor0
----
1194
2135
4038

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( col2 ) + - cor0.col1 * col2 * + col1 col1 FROM tab2 AS cor0
----
-10944
-25920
-90480

query I rowsort
SELECT DISTINCT - - col1 * col0 - col1 AS col0 FROM tab0 cor0
----
1978
3298
8008

query I rowsort
SELECT col1 * col1 + col2 * - col0 FROM tab0 AS cor0
----
6604
9374
983

query I rowsort
SELECT - cor0.col2 * + col0 + - cor0.col2 AS col1 FROM tab2 AS cor0
----
-2054
-216
-3040

query I rowsort
SELECT + col1 * col1 * col0 + col0 FROM tab2
----
22910
271596
6734

query I rowsort
SELECT ALL + 82 - - col1 FROM tab0 cor0
----
168
173
179

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * - col1 * col2 + + col2 col2 FROM tab1 AS cor0
----
-16128
-36450
-5643

query I rowsort
SELECT DISTINCT 62 * - col2 FROM tab2 AS cor0
----
-1612
-1674
-2356

query I rowsort
SELECT 29 * - cor0.col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 7d84b4b8db3cff2f707af7d588f6d430

query I rowsort
SELECT ALL - ( - cor0.col1 ) AS col1 FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT + cor0.col2 * + col0 + - col0 FROM tab2 AS cor0
----
182
1950
2923

onlyif mysql # use DIV operator for integer division
query I rowsort label-4902
SELECT DISTINCT + cor0.col0 + 63 DIV col0 FROM tab1 AS cor0
----
24
64
80

skipif mysql # not compatible
query I rowsort label-4902
SELECT DISTINCT + cor0.col0 + 63 / col0 FROM tab1 AS cor0
----
24
64
80

query I rowsort
SELECT ALL + 92 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 516fa45c8b06f9f67d6e500bfd435c1a

onlyif mysql # use DIV operator for integer division
query I rowsort label-4904
SELECT + 65 * - col2 + + col1 DIV + col2 AS col1 FROM tab1 AS cor0
----
-3510
-3705
-6240

skipif mysql # not compatible
query I rowsort label-4904
SELECT + 65 * - col2 + + col1 / + col2 AS col1 FROM tab1 AS cor0
----
-3510
-3705
-6240

query I rowsort
SELECT - - col1 * - col2 AS col1 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT - col2 + - 14 AS col2 FROM tab0
----
-15
-47
-96

query I rowsort
SELECT 76 AS col2 FROM tab1 cor0
----
76
76
76

query I rowsort
SELECT DISTINCT + 69 AS col0 FROM tab0, tab0 AS cor0
----
69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 32 col2 FROM tab2
----
-32
-32
-32

query I rowsort
SELECT ( + 9 + + tab2.col2 ) FROM tab2
----
35
36
47

query I rowsort
SELECT col0 * col2 + col2 * + col2 AS col2 FROM tab2 cor0
----
2704
4446
918

query I rowsort
SELECT + tab1.col2 * - col1 + + tab1.col2 * col2 AS col0 FROM tab1
----
1512
2679
7968

query I rowsort
SELECT col2 AS col1 FROM tab2 WHERE - col2 BETWEEN - col1 AND NULL
----

query I rowsort
SELECT col2 FROM tab0 WHERE NOT ( col2 ) IN ( tab0.col2 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-4915
SELECT DISTINCT tab0.col2 DIV - col1 + col0 AS col1 FROM tab0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-4915
SELECT DISTINCT tab0.col2 / - col1 + col0 AS col1 FROM tab0
----
24
35
89

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( NULL ) < - col1 * + col2
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-4917
SELECT ALL tab0.col0 * + col2 DIV + col2 + + col0 col1 FROM tab0
----
178
48
70

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4917
SELECT ALL tab0.col0 * + col2 / + col2 + + col0 col1 FROM tab0
----
178
48
70

query I rowsort
SELECT col0 + - col0 * + cor0.col1 AS col1 FROM tab0 AS cor0
----
-2040
-3360
-8010

onlyif mysql # use DIV operator for integer division
query I rowsort label-4919
SELECT ALL col1 + + col0 DIV col1 + + col2 FROM tab2
----
58
59
86

skipif mysql # not compatible
query I rowsort label-4919
SELECT ALL col1 + + col0 / col1 + + col2 FROM tab2
----
58
59
86

query I rowsort
SELECT - col1 * col2 + col1 * col2 + col0 FROM tab0
----
24
35
89

query I rowsort
SELECT DISTINCT tab2.col0 + - col2 * col0 * col2 AS col1 FROM tab2
----
-113997
-5096
-52650

onlyif mysql # use DIV operator for integer division
query I rowsort label-4922
SELECT DISTINCT - col0 * - col1 + + col2 + col0 DIV col2 FROM tab0
----
2097
3431
8182

skipif mysql # not compatible
query I rowsort label-4922
SELECT DISTINCT - col0 * - col1 + + col2 + col0 / col2 FROM tab0
----
2097
3431
8182

onlyif mysql # use DIV operator for integer division
query I rowsort label-4923
SELECT DISTINCT - tab1.col0 DIV col2 + col0 DIV col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-4923
SELECT DISTINCT - tab1.col0 / col2 + col0 / col2 FROM tab1
----
0

query I rowsort
SELECT DISTINCT cor0.col1 AS col1 FROM tab0, tab0 cor0
----
86
91
97

query I rowsort
SELECT - col0 * col1 + - col1 * col2 FROM tab0 AS cor0
----
-15561
-3492
-4902

query I rowsort
SELECT col0 + - col0 * col2 FROM tab2 cor0
----
-182
-1950
-2923

query I rowsort
SELECT + col1 * - col1 + col0 FROM tab1 AS cor0
----
-36
-673
-89

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( - col1 ) > NULL OR NOT NULL IN ( - cor0.col0 )
----

query I rowsort
SELECT DISTINCT + + 79 * ( col1 ) * cor0.col2 AS col0 FROM tab2 AS cor0
----
121186
51034
66123

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + + col0 * + col1 col0 FROM tab1 AS cor0
----
1136
132
697

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4931
SELECT ALL CAST( col0 AS SIGNED ) * + col2 - 13 AS col2 FROM tab0
----
22
7285
779

skipif mysql # not compatible
query I rowsort label-4931
SELECT ALL CAST ( col0 AS INTEGER ) * + col2 - 13 AS col2 FROM tab0
----
22
7285
779

query I rowsort
SELECT - col0 * 70 * - tab2.col0 + - tab2.col1 FROM tab2
----
3399
425821
436853

onlyif mysql # use DIV operator for integer division
query I rowsort label-4933
SELECT DISTINCT col0 DIV col0 + - col1 * + col2 AS col2 FROM tab2
----
-1533
-645
-836

skipif mysql # not compatible
query I rowsort label-4933
SELECT DISTINCT col0 / col0 + - col1 * + col2 AS col2 FROM tab2
----
-1533
-645
-836

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4934
SELECT DISTINCT 31 * col0 * col0 + CAST( NULL AS SIGNED ) - + col0 * col2 * 51 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4934
SELECT DISTINCT 31 * col0 * col0 + CAST ( NULL AS INTEGER ) - + col0 * col2 * 51 FROM tab1
----
NULL

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 ) + - col2 AS col1 FROM tab0 AS cor0
----
-171
-36
-57

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4937
SELECT - + cor0.col2 + - col1 + - cor0.col1 * CAST( + col1 + col1 * + ( col2 ) AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-11326
-26966
-94072

skipif mysql # not compatible
query I rowsort label-4937
SELECT - + cor0.col2 + - col1 + - cor0.col1 * CAST ( + col1 + col1 * + ( col2 ) AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-11326
-26966
-94072

onlyif mysql # use DIV operator for integer division
query I rowsort label-4938
SELECT DISTINCT col2 * + col2 DIV - col2 + - col1 col2 FROM tab0
----
-119
-173
-98

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4938
SELECT DISTINCT col2 * + col2 / - col2 + - col1 col2 FROM tab0
----
-119
-173
-98

query I rowsort
SELECT - + col0 * col1 + + ( col2 + + col0 ) * 67 AS col2 FROM tab0 AS cor0
----
-983
1755
3358

onlyif mysql # use DIV operator for integer division
query I rowsort label-4940
SELECT + col0 + - col0 DIV + 58 FROM tab1
----
3
63
79

skipif mysql # not compatible
query I rowsort label-4940
SELECT + col0 + - col0 / + 58 FROM tab1
----
3
63
79

onlyif mysql # use DIV operator for integer division
query I rowsort label-4941
SELECT DISTINCT + ( - col1 ) + - tab2.col2 DIV ( - col0 * - col1 ) + 50 * col1 AS col1 FROM tab2
----
1519
2891
833

skipif mysql # not compatible
query I rowsort label-4941
SELECT DISTINCT + ( - col1 ) + - tab2.col2 / ( - col0 * - col1 ) + 50 * col1 AS col1 FROM tab2
----
1519
2891
833

query I rowsort
SELECT ALL + tab0.col2 + col2 AS col2 FROM tab0
----
164
2
66

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4943
SELECT + - col1 * CAST( NULL AS SIGNED ) AS col0 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4943
SELECT + - col1 * CAST ( NULL AS INTEGER ) AS col0 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col0 + ( col2 ) * col1 FROM tab2 AS cor0
----
1456
567
830

query I rowsort
SELECT - col2 * - 57 FROM tab1 AS cor0
----
3078
3249
5472

onlyif mysql # use DIV operator for integer division
query I rowsort label-4946
SELECT - col1 * 16 DIV 12 FROM tab1 AS cor0
----
-13
-17
-34

skipif mysql # not compatible
query I rowsort label-4946
SELECT - col1 * 16 / 12 FROM tab1 AS cor0
----
-13
-17
-34

query I rowsort
SELECT ALL + col2 * - col0 + - col2 AS col2 FROM tab0 AS cor0
----
-36
-7380
-825

query I rowsort
SELECT ALL - 5 * - cor0.col2 FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to db79019f3f3f0a892293185e36e64dcf

query I rowsort
SELECT ALL - col1 * col2 + cor0.col0 FROM tab0 AS cor0
----
-2814
-62
-7373

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + - ( - col1 ) * col2 col2 FROM tab1 AS cor0
----
1328
1407
634

query I rowsort
SELECT DISTINCT + col1 * + col2 + - col2 AS col2 FROM tab0 cor0
----
2805
7380
96

query I rowsort
SELECT ALL col2 + col2 * + col2 AS col2 FROM tab1 AS cor0
----
2970
3306
9312

query I rowsort
SELECT ALL + - col1 * - col0 - - 85 AS col2 FROM tab0 AS cor0
----
2149
3480
8184

query I rowsort
SELECT + col0 + - col1 * col1 AS col0 FROM tab0 AS cor0
----
-7372
-8192
-9374

query I rowsort
SELECT ALL 7 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 4e72e9e33dacac757f48d0ce46094607

query I rowsort
SELECT DISTINCT - col2 + - ( 27 * col1 ) - col0 * col0 * cor0.col2 FROM tab2 AS cor0
----
-159803
-2187
-237655

query I rowsort
SELECT DISTINCT - + col2 + + col2 AS col0 FROM tab1 AS cor0
----
0

query I rowsort
SELECT DISTINCT + col1 * 51 + col0 AS col0 FROM tab0 cor0
----
4410
4730
4982

query I rowsort
SELECT ALL + 65 * + 85 FROM tab0, tab1 AS cor0
----
9 values hashing to d2ecfd632fcb006248c4b58e10b5a5be

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * col0 * col2 col1 FROM tab0 AS cor0
----
-26136
-35
-598436

query I rowsort
SELECT DISTINCT + 62 AS col2 FROM tab1 AS cor0
----
62

query I rowsort
SELECT DISTINCT - col0 + + col2 * + col0 FROM tab2 AS cor0
----
182
1950
2923

onlyif mysql # use DIV operator for integer division
query I rowsort label-4963
SELECT + 91 + + col0 DIV col1 FROM tab0 AS cor0
----
91
91
91

skipif mysql # not compatible
query I rowsort label-4963
SELECT + 91 + + col0 / col1 FROM tab0 AS cor0
----
91
91
91

query I rowsort
SELECT - + col2 + col0 * col0 * + ( + col2 ) FROM tab1 AS cor0
----
233415
432
614304

query I rowsort
SELECT ALL - col2 * col2 + col2 AS col1 FROM tab0 AS cor0
----
-1056
-6642
0

query I rowsort
SELECT ALL + - 15 + col1 AS col1 FROM tab1 AS cor0
----
-2
-5
11

query I rowsort
SELECT ALL - col1 + col1 + cor0.col1 AS col2 FROM tab0 cor0
----
86
91
97

query I rowsort
SELECT DISTINCT col2 + col1 * - cor0.col0 FROM tab0 AS cor0
----
-2031
-3394
-8017

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4969
SELECT DISTINCT ( col2 ) + + cor0.col2 / CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4969
SELECT DISTINCT ( col2 ) + + cor0.col2 / CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL

query I rowsort
SELECT 55 * + tab0.col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 8a756501255b38d6a7d7b424505dacb7

query I rowsort
SELECT 40 FROM tab1 cor0
----
40
40
40

query I rowsort
SELECT + 39 * col1 AS col1 FROM tab2 AS cor0
----
1209
2301
663

query I rowsort
SELECT + - ( + col0 ) + - col1 * col0 FROM tab0 AS cor0
----
-2088
-3430
-8188

query I rowsort
SELECT ALL + col1 * col2 + cor0.col2 * col0 + col2 FROM tab2 AS cor0
----
1053
3588
3686

query I rowsort
SELECT DISTINCT - + col0 * + cor0.col1 + - 37 * col1 - - col2 FROM tab1 AS cor0
----
-1425
-953
-986

query I rowsort
SELECT DISTINCT 71 AS col1 FROM tab2 AS cor0
----
71

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 63 * col0 - + col1 col0 FROM tab1 AS cor0
----
163
4022
5027

onlyif mysql # use DIV operator for integer division
query I rowsort label-4978
SELECT + 99 * col2 + col1 * + col2 + - col1 DIV col2 FROM tab0 AS cor0
----
15579
6103
99

skipif mysql # not compatible
query I rowsort label-4978
SELECT + 99 * col2 + col1 * + col2 + - col1 / col2 FROM tab0 AS cor0
----
15579
6103
99

query I rowsort
SELECT - 64 + - col0 + + 71 FROM tab2 AS cor0
----
-71
-72
0

query I rowsort
SELECT ALL + col2 * col2 + + col0 * + col0 AS col1 FROM tab2 AS cor0
----
6760
7685
778

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4981
SELECT DISTINCT + - col0 + col2 * - CAST( - col2 + col1 AS SIGNED ) AS col0 FROM tab2 cor0
----
-115
-936
719

skipif mysql # not compatible
query I rowsort label-4981
SELECT DISTINCT + - col0 + col2 * - CAST ( - col2 + col1 AS INTEGER ) AS col0 FROM tab2 cor0
----
-115
-936
719

query I rowsort
SELECT + - col2 + col2 + + col2 FROM tab2 AS cor0
----
26
27
38

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4983
SELECT ALL + + col1 * - col0 + - CAST( - 12 * + col2 AS SIGNED ) FROM tab2 AS cor0
----
-4290
-887
107

skipif mysql # not compatible
query I rowsort label-4983
SELECT ALL + + col1 * - col0 + - CAST ( - 12 * + col2 AS INTEGER ) FROM tab2 AS cor0
----
-4290
-887
107

query I rowsort
SELECT - + col2 * col1 + ( - 60 * col0 ) AS col1 FROM tab2 AS cor0
----
-1257
-5386
-6214

onlyif mysql # use DIV operator for integer division
query I rowsort label-4985
SELECT DISTINCT - col0 + col0 DIV + col2 - - 40 AS col0 FROM tab0 AS cor0
----
-48
16
40

skipif mysql # not compatible
query I rowsort label-4985
SELECT DISTINCT - col0 + col0 / + col2 - - 40 AS col0 FROM tab0 AS cor0
----
-48
16
40

query I rowsort
SELECT ALL - 86 + col0 AS col1 FROM tab2 AS cor0
----
-7
-79
-8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + cor1.col2 col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 7b5938124253798426fbf09c18e1fd75

query I rowsort
SELECT ALL - col1 * 93 AS col1 FROM tab2 cor0
----
-1581
-2883
-5487

query I rowsort
SELECT cor0.col1 + + cor0.col2 * - col1 * col2 AS col0 FROM tab1 AS cor0
----
-119795
-32480
-75790

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + + col1 * ( 65 ) col0 FROM tab2
----
1122
2046
3894

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4991
SELECT + + CAST( - 56 AS SIGNED ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 3d3dab400eef93c098acbbba3fc9bdc6

skipif mysql # not compatible
query I rowsort label-4991
SELECT + + CAST ( - 56 AS INTEGER ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 3d3dab400eef93c098acbbba3fc9bdc6

query I rowsort
SELECT ALL 20 FROM tab2, tab1 cor0, tab1 cor1
----
27 values hashing to 0a35fe98f3e7d5fc8ff2ae815bd20ef4

onlyif mysql # use DIV operator for integer division
query I rowsort label-4993
SELECT ALL + ( col2 ) + col2 * - col1 DIV + col1 AS col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4993
SELECT ALL + ( col2 ) + col2 * - col1 / + col1 AS col1 FROM tab0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-4994
SELECT 16 * col2 + - col1 DIV - col2 AS col2 FROM tab0
----
113
1313
530

skipif mysql # not compatible
query I rowsort label-4994
SELECT 16 * col2 + - col1 / - col2 AS col2 FROM tab0
----
113
1313
530

query I rowsort
SELECT - 83 * col1 AS col2 FROM tab0
----
-7138
-7553
-8051

query I rowsort
SELECT 21 + col1 * col1 FROM tab2 AS cor0
----
310
3502
982

query I rowsort
SELECT DISTINCT + 95 * ( + col0 ) * col2 AS col2 FROM tab0
----
3325
693310
75240

query I rowsort
SELECT ALL - ( 65 ) * - col2 FROM tab1
----
3510
3705
6240

query I rowsort
SELECT + col2 * - col2 * - col0 FROM tab0 AS cor0
----
26136
35
598436

query I rowsort
SELECT 93 * col0 AS col2 FROM tab1 AS cor0
----
279
5952
7440

onlyif mysql # use DIV operator for integer division
query I rowsort label-5001
SELECT - col0 DIV cor0.col1 col0 FROM tab2 AS cor0
----
-1
-4
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5001
SELECT - col0 / cor0.col1 col0 FROM tab2 AS cor0
----
-1
-4
0

query I rowsort
SELECT ALL + 12 FROM tab0 AS cor0
----
12
12
12

query I rowsort
SELECT - col1 * - ( 73 ) * - tab0.col0 + - 75 AS col0 FROM tab0
----
-150747
-247910
-591302

query I rowsort
SELECT - + cor0.col2 * + ( + 90 ) - col2 AS col1 FROM tab0 AS cor0
----
-3003
-7462
-91

query I rowsort
SELECT col2 - - 44 FROM tab1 AS cor0
----
101
140
98

query I rowsort
SELECT DISTINCT - - col0 * col2 + - col0 FROM tab0 AS cor0
----
0
7209
768

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + ( - 7 ) * + cor0.col1 * cor0.col1 col2 FROM tab0 cor0
----
-51858
-58058
-65960

onlyif mysql # use DIV operator for integer division
query I rowsort label-5008
SELECT - cor0.col1 + + col0 DIV col2 AS col1 FROM tab0 AS cor0
----
-62
-86
-90

skipif mysql # not compatible
query I rowsort label-5008
SELECT - cor0.col1 + + col0 / col2 AS col1 FROM tab0 AS cor0
----
-62
-86
-90

query I rowsort
SELECT DISTINCT - col2 + - 60 FROM tab1 AS cor0
----
-114
-117
-156

query I rowsort
SELECT DISTINCT col2 * + ( 19 ) * cor0.col2 FROM tab1 AS cor0
----
175104
55404
61731

query I rowsort
SELECT ALL - - col2 * + 45 + ( + col2 ) FROM tab1 AS cor0
----
2484
2622
4416

query I rowsort
SELECT ALL + - cor0.col2 * col1 + col2 FROM tab0 AS cor0
----
-2805
-7380
-96

query I rowsort
SELECT + + col0 * col0 * + col0 FROM tab0 AS cor0
----
13824
42875
704969

query I rowsort
SELECT ( col1 ) + col1 * + ( + col0 ) FROM tab2 AS cor0
----
1360
248
4661

onlyif mysql # use DIV operator for integer division
query I rowsort label-5015
SELECT + col2 + - 28 * col1 DIV + CAST( col2 AS SIGNED ) FROM tab1 AS cor0
----
41
53
93

skipif mysql # not compatible
query I rowsort label-5015
SELECT + col2 + - 28 * col1 / + CAST ( col2 AS INTEGER ) FROM tab1 AS cor0
----
41
53
93

query I rowsort
SELECT + ( + col1 ) + - col2 FROM tab2 AS cor0
----
-21
33
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 56 * - col1 col0 FROM tab1 AS cor0
----
1456
560
728

query I rowsort
SELECT ALL + tab0.col2 + + col0 FROM tab0
----
171
36
57

query I rowsort
SELECT 95 * - tab2.col0 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to da7d6a743ebdde8e93d0e6d843f87422

query I rowsort
SELECT + ( - 1 ) + col1 FROM tab1 AS cor0
----
12
25
9

onlyif mysql # use DIV operator for integer division
query I rowsort label-5021
SELECT ( + col2 ) DIV cor0.col0 + col0 FROM tab0 AS cor0
----
25
35
89

skipif mysql # not compatible
query I rowsort label-5021
SELECT ( + col2 ) / cor0.col0 + col0 FROM tab0 AS cor0
----
25
35
89

query I rowsort
SELECT 31 * 9 * + col0 + + col2 FROM tab0 AS cor0
----
24913
6729
9766

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( + col2 ) * + col1 * cor0.col0 + + col1 * + col1 + - col0 * - 96 col1 FROM tab0 AS cor0
----
-58412
-647293
9374

onlyif mysql # use DIV operator for integer division
query I rowsort label-5024
SELECT + - 22 DIV col0 + cor0.col2 * + CAST( - ( col2 ) AS SIGNED ) FROM tab2 AS cor0
----
-1444
-676
-732

skipif mysql # not compatible
query I rowsort label-5024
SELECT + - 22 / col0 + cor0.col2 * + CAST ( - ( col2 ) AS INTEGER ) FROM tab2 AS cor0
----
-1444
-676
-732

query I rowsort
SELECT DISTINCT col0 + col2 * - col2 * - col0 AS col0 FROM tab0 AS cor0
----
26160
598525
70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( + col2 ) col1 FROM tab1 AS cor0
----
-54
-57
-96

onlyif mysql # use DIV operator for integer division
query I rowsort label-5027
SELECT col0 * col0 DIV col0 + + col1 DIV col0 AS col2 FROM tab0 AS cor0
----
27
37
90

skipif mysql # not compatible
query I rowsort label-5027
SELECT col0 * col0 / col0 + + col1 / col0 AS col2 FROM tab0 AS cor0
----
27
37
90

query I rowsort
SELECT DISTINCT - 30 * 17 AS col0 FROM tab0, tab1 AS cor0
----
-510

skipif mysql # not compatible
query I rowsort
SELECT + col1 * col2 + CAST ( - col2 AS REAL ) * col0 FROM tab0 AS cor0
----
164
2046
62

onlyif mysql # use DIV operator for integer division
query I rowsort label-5030
SELECT + + col2 + - 77 DIV col1 AS col1 FROM tab0 AS cor0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-5030
SELECT + + col2 + - 77 / col1 AS col1 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT DISTINCT + 80 + + 84 AS col2 FROM tab0, tab1 AS cor0
----
164

query I rowsort
SELECT DISTINCT + col1 + + 47 * - tab2.col1 FROM tab2
----
-1426
-2714
-782

query I rowsort
SELECT - 93 + + col2 * col1 FROM tab2 AS cor0
----
1441
553
744

onlyif mysql # use DIV operator for integer division
query I rowsort label-5034
SELECT col1 DIV + 16 FROM tab2
----
1
1
3

skipif mysql # not compatible
query I rowsort label-5034
SELECT col1 / + 16 FROM tab2
----
1
1
3

query I rowsort
SELECT col0 + 29 FROM tab0
----
118
53
64

query I rowsort
SELECT + + col2 * 71 FROM tab1 AS cor0
----
3834
4047
6816

query I rowsort
SELECT ALL cor0.col1 + - col1 AS col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - col0 - col1 * + 36 FROM tab1 AS cor0
----
-424
-548
-939

query I rowsort
SELECT cor1.col2 AS col2 FROM tab0, tab0 cor0, tab0 AS cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475

query I rowsort
SELECT ALL - cor1.col2 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to b5a4102107e5ebd26e341538f4fede1e

onlyif mysql # use DIV operator for integer division
query I rowsort label-5041
SELECT DISTINCT cor0.col1 DIV - cor0.col0 FROM tab2, tab1 AS cor0
----
-8
0

skipif mysql # not compatible
query I rowsort label-5041
SELECT DISTINCT cor0.col1 / - cor0.col0 FROM tab2, tab1 AS cor0
----
-8
0

query I rowsort
SELECT 96 * - cor1.col1 + tab0.col1 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to adfb86fb68deb9fb7559067b230f00fc

query I rowsort
SELECT - col1 - - col1 * + 60 * col0 AS col2 FROM tab0
----
123754
203603
485849

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - col1 * CAST ( - 37 AS REAL ) AS col1 FROM tab1 AS cor0
----
370
481
962

onlyif mysql # use DIV operator for integer division
query I rowsort label-5045
SELECT ALL - col2 DIV - ( 17 ) col1 FROM tab0 AS cor0
----
0
1
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5045
SELECT ALL - col2 / - ( 17 ) col1 FROM tab0 AS cor0
----
0
1
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 42 col1 FROM tab1
----
42
42
42

query I rowsort
SELECT + tab1.col2 FROM tab1, tab0 cor0
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17

query I rowsort
SELECT - - 56 * + col0 AS col2 FROM tab0 AS cor0
----
1344
1960
4984

query I rowsort
SELECT DISTINCT - 22 - 32 AS col1 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
-54

query I rowsort
SELECT tab2.col0 - + tab2.col0 AS col2 FROM tab2
----
0
0
0

query I rowsort
SELECT ALL + ( - col0 + - col2 ) * col2 AS col0 FROM tab0
----
-14022
-1881
-36

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * + tab1.col2 col0 FROM tab1
----
2916
3249
9216

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 82 + - cor0.col1 col2 FROM tab0 cor0
----
-15
-4
-9

onlyif mysql # use DIV operator for integer division
query I rowsort label-5054
SELECT - 39 DIV 95 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5054
SELECT - 39 / 95 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + - 24 AS col2 FROM tab1 AS cor0
----
-24

query I rowsort
SELECT + + col2 + + col0 * col2 AS col0 FROM tab0 cor0
----
36
7380
825

query I rowsort
SELECT DISTINCT col1 - - col2 * tab2.col0 FROM tab2
----
2087
220
3019

query I rowsort
SELECT ALL - 32 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 7106326ae056e78044adc0aef747ef08

onlyif mysql # use DIV operator for integer division
query I rowsort label-5059
SELECT DISTINCT - col1 DIV - col0 - + 75 col1 FROM tab0
----
-72
-73
-74

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5059
SELECT DISTINCT - col1 / - col0 - + 75 col1 FROM tab0
----
-72
-73
-74

query I rowsort
SELECT + col1 * + 61 AS col0 FROM tab1
----
1586
610
793

query I rowsort
SELECT + col2 - - tab0.col1 * col2 AS col0 FROM tab0
----
2871
7544
98

query I rowsort
SELECT ALL cor0.col0 AS col2 FROM tab2, tab1 cor0
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5063
SELECT + CAST( NULL AS SIGNED ) + cor0.col0 * col2 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5063
SELECT + CAST ( NULL AS INTEGER ) + cor0.col0 * col2 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5064
SELECT DISTINCT + - CAST( col1 AS SIGNED ) * col2 FROM tab1 AS cor0
----
-1248
-1404
-570

skipif mysql # not compatible
query I rowsort label-5064
SELECT DISTINCT + - CAST ( col1 AS INTEGER ) * col2 FROM tab1 AS cor0
----
-1248
-1404
-570

onlyif mysql # use DIV operator for integer division
query I rowsort label-5065
SELECT + - 28 + col0 DIV col1 FROM tab2 AS cor0
----
-24
-27
-28

skipif mysql # not compatible
query I rowsort label-5065
SELECT + - 28 + col0 / col1 FROM tab2 AS cor0
----
-24
-27
-28

query I rowsort
SELECT ALL + 79 + + col1 FROM tab1 AS cor0
----
105
89
92

query I rowsort
SELECT col0 + cor0.col1 AS col0 FROM tab2 AS cor0
----
137
38
96

query I rowsort
SELECT 12 * - col1 FROM tab2 cor0
----
-204
-372
-708

query I rowsort
SELECT ( col2 ) * cor0.col2 + col0 * + cor0.col2 AS col1 FROM tab2 AS cor0
----
2704
4446
918

query I rowsort
SELECT ALL 63 * col2 + col1 AS col1 FROM tab2
----
1697
1732
2411

query I rowsort
SELECT - col2 * tab1.col2 + - tab1.col2 AS col2 FROM tab1
----
-2970
-3306
-9312

query I rowsort
SELECT - col0 + + col0 * - col2 AS col2 FROM tab0
----
-70
-7387
-816

onlyif mysql # use DIV operator for integer division
query I rowsort label-5073
SELECT DISTINCT - col1 + col0 * - col0 + col0 DIV col2 FROM tab0
----
-1287
-662
-8011

skipif mysql # not compatible
query I rowsort label-5073
SELECT DISTINCT - col1 + col0 * - col0 + col0 / col2 FROM tab0
----
-1287
-662
-8011

query I rowsort
SELECT ALL - + cor0.col1 * col0 AS col0 FROM tab0 AS cor0
----
-2064
-3395
-8099

onlyif mysql # use DIV operator for integer division
query I rowsort label-5075
SELECT ALL col1 * - col1 + cor0.col2 + ( 80 ) DIV col1 FROM tab2 AS cor0
----
-247
-3454
-932

skipif mysql # not compatible
query I rowsort label-5075
SELECT ALL col1 * - col1 + cor0.col2 + ( 80 ) / col1 FROM tab2 AS cor0
----
-247
-3454
-932

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5076
SELECT + col2 + - col2 * CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5076
SELECT + col2 + - col2 * CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-5077
SELECT cor0.col2 DIV col1 + col2 + + col1 AS col2 FROM tab0 AS cor0
----
119
173
98

skipif mysql # not compatible
query I rowsort label-5077
SELECT cor0.col2 / col1 + col2 + + col1 AS col2 FROM tab0 AS cor0
----
119
173
98

query I rowsort
SELECT DISTINCT + - 9 FROM tab1 AS cor0
----
-9

onlyif mysql # use DIV operator for integer division
query I rowsort label-5079
SELECT DISTINCT + col2 + col2 DIV - col2 AS col2 FROM tab0 AS cor0
----
0
32
81

skipif mysql # not compatible
query I rowsort label-5079
SELECT DISTINCT + col2 + col2 / - col2 AS col2 FROM tab0 AS cor0
----
0
32
81

query I rowsort
SELECT + 54 * col0 FROM tab2
----
378
4212
4266

query I rowsort
SELECT ALL col1 + + col0 * + col1 FROM tab1 AS cor0
----
104
1053
650

query I rowsort
SELECT DISTINCT 93 AS col0 FROM tab1 AS cor0
----
93

query I rowsort
SELECT DISTINCT - 49 + + cor0.col0 * col0 AS col1 FROM tab0 AS cor0
----
1176
527
7872

query I rowsort
SELECT - col0 * 43 * cor0.col0 + col1 AS col1 FROM tab1 cor0
----
-176118
-275187
-361

query I rowsort
SELECT + - col2 + 27 FROM tab0 AS cor0
----
-55
-6
26

onlyif mysql # use DIV operator for integer division
query I rowsort label-5086
SELECT ALL col2 DIV + col2 AS col2 FROM tab0 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5086
SELECT ALL col2 / + col2 AS col2 FROM tab0 cor0
----
1
1
1

query I rowsort
SELECT - + cor0.col2 + cor0.col2 * cor0.col1 AS col2 FROM tab0 AS cor0
----
2805
7380
96

query I rowsort
SELECT DISTINCT - col0 + cor0.col0 - col0 FROM tab2 AS cor0
----
-7
-78
-79

onlyif mysql # use DIV operator for integer division
query I rowsort label-5089
SELECT DISTINCT + col1 + col0 DIV col1 AS col1 FROM tab2 AS cor0
----
21
31
60

skipif mysql # not compatible
query I rowsort label-5089
SELECT DISTINCT + col1 + col0 / col1 AS col1 FROM tab2 AS cor0
----
21
31
60

onlyif mysql # use DIV operator for integer division
query I rowsort label-5090
SELECT ALL col2 + col1 DIV - col1 col2 FROM tab2 AS cor0
----
25
26
37

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5090
SELECT ALL col2 + col1 / - col1 col2 FROM tab2 AS cor0
----
25
26
37

query I rowsort
SELECT ALL + - col2 * + cor0.col0 * col0 + + col2 FROM tab0 AS cor0
----
-1224
-18975
-649440

query I rowsort
SELECT ALL - col0 + col2 + 96 AS col2 FROM tab0 AS cor0
----
105
62
89

query I rowsort
SELECT ALL - col0 + 90 * 95 FROM tab2 AS cor0
----
8471
8472
8543

query I rowsort
SELECT ALL + - col2 * + cor0.col2 - col0 FROM tab2 AS cor0
----
-1523
-736
-754

query I rowsort
SELECT DISTINCT col2 - - 94 FROM tab0 cor0
----
127
176
95

query I rowsort
SELECT ALL + + cor0.col0 + + ( + col2 ) AS col2 FROM tab0 AS cor0
----
171
36
57

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5097
SELECT + + col1 * - 84 + cor0.col0 * CAST( - col1 AS SIGNED ) AS col1 FROM tab1 cor0
----
-1480
-2132
-2262

skipif mysql # not compatible
query I rowsort label-5097
SELECT + + col1 * - 84 + cor0.col0 * CAST ( - col1 AS INTEGER ) AS col1 FROM tab1 cor0
----
-1480
-2132
-2262

query I rowsort
SELECT DISTINCT + 75 FROM tab1, tab1 AS cor0, tab2 cor1, tab1 AS cor2
----
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col0 * col2 + col0 * + cor0.col0 col2 FROM tab0 AS cor0
----
1260
1368
15219

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col0 + col1 col2 FROM tab1 AS cor0
----
-54
-67
23

onlyif mysql # use DIV operator for integer division
query I rowsort label-5101
SELECT 68 DIV col2 + col1 FROM tab0 AS cor0
----
165
88
91

skipif mysql # not compatible
query I rowsort label-5101
SELECT 68 / col2 + col1 FROM tab0 AS cor0
----
165
88
91

query I rowsort
SELECT ALL - + ( 64 ) * + col1 - cor0.col0 * col1 AS col2 FROM tab0 cor0
----
-13923
-7568
-9603

query I rowsort
SELECT ALL cor2.col2 FROM tab2 AS cor0 CROSS JOIN tab2, tab0 AS cor1, tab0, tab1 AS cor2
----
243 values hashing to 39c7e653e7a493eb9c9e3dad9ba3b8c2

query I rowsort
SELECT ALL + 43 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 199105619049271147956de52e7f5ed4

query I rowsort
SELECT + col1 + - 5 * + col0 FROM tab2 AS cor0
----
-331
-378
-4

query I rowsort
SELECT col2 * - 82 + 84 AS col2 FROM tab0 AS cor0
----
-2622
-6640
2

query I rowsort
SELECT + col1 * + 95 + + 47 AS col2 FROM tab2 AS cor0
----
1662
2992
5652

onlyif mysql # use DIV operator for integer division
query I rowsort label-5108
SELECT - + col1 DIV + cor0.col0 FROM tab2 AS cor0
----
-4
0
0

skipif mysql # not compatible
query I rowsort label-5108
SELECT - + col1 / + cor0.col0 FROM tab2 AS cor0
----
-4
0
0

query I rowsort
SELECT + + col0 + cor0.col1 AS col1 FROM tab2 cor0
----
137
38
96

query I rowsort
SELECT + col0 + - ( - 72 ) FROM tab2 AS cor0
----
150
151
79

onlyif mysql # use DIV operator for integer division
query I rowsort label-5111
SELECT DISTINCT - col0 + + col2 * tab0.col0 DIV + col2 col0 FROM tab0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5111
SELECT DISTINCT - col0 + + col2 * tab0.col0 / + col2 col0 FROM tab0
----
0

query I rowsort
SELECT ALL + col2 + col1 * 0 FROM tab1
----
54
57
96

query I rowsort
SELECT - col1 + col1 * - 39 + 42 FROM tab1
----
-358
-478
-998

query I rowsort
SELECT 19 * tab0.col1 AS col0 FROM tab0
----
1634
1729
1843

query I rowsort
SELECT DISTINCT - 27 FROM tab0, tab1, tab1 AS cor0
----
-27

query I rowsort
SELECT DISTINCT col1 * tab0.col2 * - col2 + col1 * + col0 FROM tab0
----
-603785
-91590
3298

query I rowsort
SELECT col2 * + col2 + - col0 * tab1.col1 AS col0 FROM tab1
----
2609
2838
8176

query I rowsort
SELECT tab0.col2 * - col0 AS col0 FROM tab0
----
-35
-7298
-792

query I rowsort
SELECT DISTINCT + 99 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
99

onlyif mysql # use DIV operator for integer division
query I rowsort label-5120
SELECT col2 DIV - 66 + 49 AS col0 FROM tab2
----
49
49
49

skipif mysql # not compatible
query I rowsort label-5120
SELECT col2 / - 66 + 49 AS col0 FROM tab2
----
49
49
49

onlyif mysql # use DIV operator for integer division
query I rowsort label-5121
SELECT ALL col2 DIV col0 AS col1 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-5121
SELECT ALL col2 / col0 AS col1 FROM tab0 AS cor0
----
0
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab0.col1 - - col2 col2 FROM tab0
----
119
173
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 88 + col1 col2 FROM tab2 AS cor0
----
105
119
147

query I rowsort
SELECT ALL - + ( 98 ) * col0 + - cor0.col1 * - col1 FROM tab0 AS cor0
----
-441
5044
5979

query I rowsort
SELECT DISTINCT ( - cor0.col0 ) FROM tab1 AS cor0
----
-3
-64
-80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5126
SELECT - CAST( NULL AS SIGNED ) * - col1 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5126
SELECT - CAST ( NULL AS INTEGER ) * - col1 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT ( 69 ) FROM tab0 AS cor0
----
69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( 62 ) col0 FROM tab2
----
62
62
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - tab1.col2 + cor0.col0 col1 FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to 9f76c248bed799eecbe38e7275add06f

onlyif mysql # use DIV operator for integer division
query I rowsort label-5130
SELECT ALL - col2 * tab2.col2 DIV - col0 col0 FROM tab2
----
104
18
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5130
SELECT ALL - col2 * tab2.col2 / - col0 col0 FROM tab2
----
104
18
8

onlyif mysql # use DIV operator for integer division
query I rowsort label-5131
SELECT ALL tab1.col0 DIV + 80 + - cor0.col0 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to db813ada223c2820169f81a2c9c0ed88

skipif mysql # not compatible
query I rowsort label-5131
SELECT ALL tab1.col0 / + 80 + - cor0.col0 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to db813ada223c2820169f81a2c9c0ed88

onlyif mysql # use DIV operator for integer division
query I rowsort label-5132
SELECT + col2 * + col2 + + col0 + col2 DIV + col2 FROM tab0 AS cor0
----
1114
37
6814

skipif mysql # not compatible
query I rowsort label-5132
SELECT + col2 * + col2 + + col0 + col2 / + col2 FROM tab0 AS cor0
----
1114
37
6814

query I rowsort
SELECT + cor0.col1 * col1 + + col2 * col2 AS col2 FROM tab1 cor0
----
3349
3592
9385

query I rowsort
SELECT DISTINCT - 30 * cor0.col0 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-1050
-2670
-720

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5135
SELECT - col2 * + col1 / CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5135
SELECT - col2 * + col1 / CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT + 5 * cor0.col1 + + cor0.col0 * - cor0.col2 AS col1 FROM tab1 cor0
----
-32
-3598
-7615

query I rowsort
SELECT col0 + ( cor0.col2 + col2 ) FROM tab1 AS cor0
----
111
178
272

query I rowsort
SELECT - col2 + ( + col1 ) AS col1 FROM tab1 AS cor0
----
-28
-47
-83

query I rowsort
SELECT DISTINCT col0 + col1 + cor0.col2 AS col0 FROM tab0 cor0
----
133
143
262

query I rowsort
SELECT ALL + col2 + ( col1 * col2 ) FROM tab1 AS cor0
----
1344
1458
627

query I rowsort
SELECT ALL - + cor0.col1 + + 28 AS col0 FROM tab2 AS cor0
----
-3
-31
11

query I rowsort
SELECT - 20 * col0 AS col2 FROM tab0 AS cor0
----
-1780
-480
-700

query I rowsort
SELECT - ( tab0.col0 * - col2 + - ( - col1 ) ) AS col0 FROM tab0
----
-62
706
7207

query I rowsort
SELECT ALL - 1 * + ( col0 ) AS col0 FROM tab0
----
-24
-35
-89

query I rowsort
SELECT - ( 10 + + col2 ) AS col0 FROM tab2
----
-36
-37
-48

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 39 * - tab2.col2 col2 FROM tab2, tab2 AS cor0
----
-1014
-1053
-1482

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 78 col2 FROM tab2
----
78

query I rowsort
SELECT DISTINCT tab0.col2 + - col1 * - col1 * + tab0.col0 AS col0 FROM tab0 WHERE NOT ( NULL ) >= ( NULL )
----

query III rowsort
SELECT * FROM tab0 WHERE ( col1 + col1 ) NOT IN ( col2 * + col2 )
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7

query I rowsort
SELECT DISTINCT col2 * col1 * col1 AS col2 FROM tab0
----
244068
679042
9409

query I rowsort
SELECT ALL - col2 + - col2 AS col2 FROM tab0
----
-164
-2
-66

query I rowsort
SELECT tab0.col2 / col0 - col1 FROM tab0 WHERE NOT ( NULL ) IN ( tab0.col0 )
----

query I rowsort
SELECT DISTINCT - col2 + - tab1.col1 FROM tab1 WHERE NULL >= ( + col2 * + col1 )
----

query I rowsort
SELECT tab2.col2 * col0 + col1 * col1 + - col1 FROM tab2
----
1119
3274
5450

query I rowsort
SELECT + col0 * col1 * + col0 + - col1 AS col1 FROM tab0
----
118728
49450
720720

query I rowsort
SELECT col0 + + col1 * - col2 + col1 AS col1 FROM tab1
----
-1155
-1375
-496

query I rowsort
SELECT DISTINCT col2 + + col2 * col0 FROM tab0
----
36
7380
825

query I rowsort
SELECT DISTINCT - col1 + + col0 AS col0 FROM tab2 WHERE NOT col2 IN ( - tab2.col0 )
----
-24
19
62

query I rowsort
SELECT 55 * col1 * - ( col1 ) AS col2 FROM tab1 AS cor0
----
-37180
-5500
-9295

query I rowsort
SELECT DISTINCT + + cor0.col1 * - cor0.col0 + ( + 14 ) + + col2 * col0 * + col2 FROM tab2 AS cor0
----
112747
48140
4900

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5161
SELECT ALL + col2 * - col2 + CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5161
SELECT ALL + col2 * - col2 + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * col2 col1 FROM tab2
----
1444
676
729

query I rowsort
SELECT + col0 * col1 + col0 + - col2 FROM tab2
----
1384
197
4654

query I rowsort
SELECT col1 * + col0 + - col2 * col0 AS col0 FROM tab1 AS cor0
----
-3008
-6640
-84

query I rowsort
SELECT - cor0.col1 + + col1 * col1 AS col1 FROM tab1 AS cor0
----
156
650
90

query I rowsort
SELECT cor0.col0 * + col2 AS col2 FROM tab2 AS cor0 WHERE NOT ( + col1 ) BETWEEN col2 * cor0.col1 AND NULL
----
189
2028
3002

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( col0 * col1 ) > ( col0 * + col2 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-5168
SELECT DISTINCT col0 + + col2 DIV col0 AS col0 FROM tab0 AS cor0
----
25
35
89

skipif mysql # not compatible
query I rowsort label-5168
SELECT DISTINCT col0 + + col2 / col0 AS col0 FROM tab0 AS cor0
----
25
35
89

query I rowsort
SELECT DISTINCT col2 * + cor0.col2 AS col0 FROM tab0 cor0 WHERE NOT ( NULL ) IN ( cor0.col0 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-5170
SELECT col2 DIV + col2 + - cor0.col1 AS col1 FROM tab0 AS cor0
----
-85
-90
-96

skipif mysql # not compatible
query I rowsort label-5170
SELECT col2 / + col2 + - cor0.col1 AS col1 FROM tab0 AS cor0
----
-85
-90
-96

query I rowsort
SELECT ALL cor0.col0 + - col0 AS col2 FROM tab1 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * col2 * + col0 col0 FROM tab2
----
114076
5103
52728

query I rowsort
SELECT DISTINCT + col2 * - col1 + - col0 FROM tab0 AS cor0
----
-132
-2862
-7551

onlyif mysql # use DIV operator for integer division
query I rowsort label-5174
SELECT - col0 * cor0.col1 * col0 + - col2 DIV + col1 AS col2 FROM tab0 AS cor0
----
-118825
-49536
-720811

skipif mysql # not compatible
query I rowsort label-5174
SELECT - col0 * cor0.col1 * col0 + - col2 / + col1 AS col2 FROM tab0 AS cor0
----
-118825
-49536
-720811

query III rowsort
SELECT * FROM tab0 WHERE NOT col1 IN ( col2 )
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL > + col2
----

query I rowsort
SELECT - tab0.col1 + tab0.col1 + + col2 * tab0.col0 AS col2 FROM tab0
----
35
7298
792

query I rowsort
SELECT DISTINCT - col2 + col1 + col1 AS col1 FROM tab0
----
100
139
193

query I rowsort
SELECT col0 * col1 * col2 AS col0 FROM tab0
----
3395
664118
68112

query I rowsort
SELECT DISTINCT - col2 + - col1 * + tab0.col1 + + tab0.col1 FROM tab0
----
-7343
-8272
-9313

onlyif mysql # use DIV operator for integer division
query I rowsort label-5181
SELECT - col2 DIV tab2.col0 + + col1 * + tab2.col0 AS col0 FROM tab2
----
1343
214
4602

skipif mysql # not compatible
query I rowsort label-5181
SELECT - col2 / tab2.col0 + + col1 * + tab2.col0 AS col0 FROM tab2
----
1343
214
4602

query I rowsort
SELECT DISTINCT - col1 + - col2 AS col1 FROM tab0 WHERE NOT + col2 - + tab0.col1 = ( NULL )
----

query I rowsort
SELECT ALL - tab0.col2 * + tab0.col1 * col2 + col1 + + col1 * + col1 FROM tab0
----
-603512
-86172
9409

onlyif mysql # use DIV operator for integer division
query I rowsort label-5184
SELECT DISTINCT - col2 DIV - tab2.col1 col0 FROM tab2
----
0
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5184
SELECT DISTINCT - col2 / - tab2.col1 col0 FROM tab2
----
0
2

onlyif mysql # use DIV operator for integer division
query I rowsort label-5185
SELECT DISTINCT + 95 DIV - cor0.col0 FROM tab0 AS cor0
----
-1
-2
-3

skipif mysql # not compatible
query I rowsort label-5185
SELECT DISTINCT + 95 / - cor0.col0 FROM tab0 AS cor0
----
-1
-2
-3

query I rowsort
SELECT col0 + - 78 FROM tab0 AS cor0
----
-43
-54
11

onlyif mysql # use DIV operator for integer division
query I rowsort label-5187
SELECT ALL - - 39 DIV col1 FROM tab2 AS cor0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-5187
SELECT ALL - - 39 / col1 FROM tab2 AS cor0
----
0
1
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 71 col0 FROM tab1, tab1 cor0
----
9 values hashing to c1aace5d5fe27721cc925552513c85c0

query I rowsort
SELECT DISTINCT + + col2 + + col0 * + col0 FROM tab2 AS cor0
----
6110
6279
76

query I rowsort
SELECT - ( cor0.col2 ) * - col2 + + col1 * ( - col1 * 59 ) + col1 * - col0 FROM tab1 AS cor0
----
-1795
-3291
-37046

query I rowsort
SELECT col1 + col0 + + col1 FROM tab0
----
196
229
271

query I rowsort
SELECT DISTINCT col0 * col2 + + col1 * col2 - - col1 * - col2 AS col1 FROM tab1
----
162
3648
7680

query I rowsort
SELECT DISTINCT + cor0.col2 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2, tab2 AS cor1
----
1
33
82

query I rowsort
SELECT ALL - cor0.col1 AS col2 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to c7890469eabb2c6fc81454b35d2333b6

query I rowsort
SELECT + 99 - col0 AS col1 FROM tab1 AS cor0
----
19
35
96

query I rowsort
SELECT DISTINCT col2 + + col1 * + col2 FROM tab1
----
1344
1458
627

query I rowsort
SELECT 34 + + col1 AS col0 FROM tab1
----
44
47
60

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 5 * col0 + + col0 + - col1 * col0 col2 FROM tab0
----
-1920
-3185
-7565

onlyif mysql # use DIV operator for integer division
query I rowsort label-5199
SELECT DISTINCT + tab0.col1 DIV - col1 + col1 * ( - col0 ) * + col0 AS col2 FROM tab0
----
-118826
-49537
-720812

skipif mysql # not compatible
query I rowsort label-5199
SELECT DISTINCT + tab0.col1 / - col1 + col1 * ( - col0 ) * + col0 AS col2 FROM tab0
----
-118826
-49537
-720812

query I rowsort
SELECT DISTINCT + 42 + + col1 AS col1 FROM tab2
----
101
59
73

onlyif mysql # use DIV operator for integer division
query I rowsort label-5201
SELECT - col0 DIV - col1 + - col0 - ( col0 ) AS col1 FROM tab1
----
-122
-154
-6

skipif mysql # not compatible
query I rowsort label-5201
SELECT - col0 / - col1 + - col0 - ( col0 ) AS col1 FROM tab1
----
-122
-154
-6

query I rowsort
SELECT 56 + + col1 AS col1 FROM tab0
----
142
147
153

query I rowsort
SELECT 22 * col1 * - tab2.col0 AS col2 FROM tab2
----
-101244
-29546
-4774

query I rowsort
SELECT DISTINCT - col0 + + ( col2 ) * col1 * - col2 FROM tab2
----
-22606
-24627
-39962

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5205
SELECT + + CAST( NULL AS SIGNED ) * - ( - col2 ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5205
SELECT + + CAST ( NULL AS INTEGER ) * - ( - col2 ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + ( cor0.col2 ) * col1 AS col1 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT + 22 + col2 AS col2 FROM tab2 AS cor0
----
48
49
60

query I rowsort
SELECT ALL + cor0.col2 * + col0 FROM tab2 cor0
----
189
2028
3002

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab0 cor0, tab1 AS cor1, tab2, tab0 AS cor2
----
3645 values hashing to 32e6d0f63bf719b0a999c75379e75eca

query I rowsort
SELECT 73 AS col0 FROM tab1, tab2, tab2 AS cor0
----
27 values hashing to 3933a906d17a820ccf95467e2206df8f

query I rowsort
SELECT ( col0 ) + 44 FROM tab2
----
122
123
51

query I rowsort
SELECT DISTINCT + 5 * col0 AS col1 FROM tab0
----
120
175
445

onlyif mysql # use DIV operator for integer division
query I rowsort label-5213
SELECT DISTINCT + col1 DIV col0 col0 FROM tab0 AS cor0
----
1
2
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5213
SELECT DISTINCT + col1 / col0 col0 FROM tab0 AS cor0
----
1
2
3

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5214
SELECT - col1 + CAST( NULL AS SIGNED ) / col1 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5214
SELECT - col1 + CAST ( NULL AS INTEGER ) / col1 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - - col2 * ( + cor0.col2 ) FROM tab0 AS cor0
----
1
1089
6724

onlyif mysql # use DIV operator for integer division
query I rowsort label-5216
SELECT DISTINCT col0 DIV - cor0.col1 FROM tab2 cor0
----
-1
-4
0

skipif mysql # not compatible
query I rowsort label-5216
SELECT DISTINCT col0 / - cor0.col1 FROM tab2 cor0
----
-1
-4
0

query I rowsort
SELECT + - col2 * 15 AS col1 FROM tab2 AS cor0
----
-390
-405
-570

query I rowsort
SELECT DISTINCT + + col1 + + 59 FROM tab2 AS cor0
----
118
76
90

query I rowsort
SELECT - col2 * 92 AS col2 FROM tab1 cor0
----
-4968
-5244
-8832

query I rowsort
SELECT ALL - - cor0.col0 * ( - col1 ) AS col0 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT - col1 * 27 FROM tab1 AS cor0
----
-270
-351
-702

query I rowsort
SELECT ALL + col1 * 69 + + col2 FROM tab2 AS cor0
----
1211
2166
4097

query I rowsort
SELECT + + 77 * col2 AS col1 FROM tab1 AS cor0
----
4158
4389
7392

query I rowsort
SELECT ALL - ( + 21 + col0 ) FROM tab2
----
-100
-28
-99

query I rowsort
SELECT + - 46 * col2 FROM tab0 cor0
----
-1518
-3772
-46

query I rowsort
SELECT ALL - 80 FROM tab0, tab0 cor0
----
9 values hashing to 4dde3bd5652d30396b9cadd0e2cfb680

query I rowsort
SELECT 24 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to b0d834ef9e4346801b6aaa0e74b2c8ef

query I rowsort
SELECT - col1 * 78 + cor0.col0 FROM tab1 AS cor0
----
-2025
-716
-934

query I rowsort
SELECT - col0 * cor0.col1 + + col1 AS col1 FROM tab2 AS cor0
----
-1326
-186
-4543

query I rowsort
SELECT 57 + + col0 * col2 FROM tab2 AS cor0
----
2085
246
3059

query I rowsort
SELECT + col1 * + 30 FROM tab2
----
1770
510
930

query I rowsort
SELECT DISTINCT 32 * + col1 * tab0.col1 + col0 AS col0 FROM tab0
----
236696
265081
301123

query I rowsort
SELECT DISTINCT + col2 * + ( col0 ) + tab0.col2 + col0 * tab0.col2 FROM tab0
----
14678
1617
71

query I rowsort
SELECT DISTINCT + ( - 65 ) + tab1.col0 + + col0 FROM tab1
----
-59
63
95

query I rowsort
SELECT + col2 * 57 AS col0 FROM tab1
----
3078
3249
5472

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5236
SELECT CAST( NULL AS SIGNED ) + ( + col2 ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5236
SELECT CAST ( NULL AS INTEGER ) + ( + col2 ) AS col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT cor0.col2 * + 51 AS col2 FROM tab2 AS cor0
----
1326
1377
1938

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5238
SELECT DISTINCT + col0 * - CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5238
SELECT DISTINCT + col0 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT 77 FROM tab2, tab1, tab2 AS cor0
----
77

query I rowsort
SELECT ALL cor0.col1 AS col0 FROM tab0, tab1 cor0, tab0 cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892

query I rowsort
SELECT - 10 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to f68f33032846e21ee6b2c668fc10355e

query I rowsort
SELECT DISTINCT - col0 + + ( col0 ) * - col0 * col0 AS col1 FROM tab2 AS cor0
----
-350
-474630
-493118

query I rowsort
SELECT ALL + cor0.col1 * - col1 - 20 FROM tab1 cor0
----
-120
-189
-696

query I rowsort
SELECT - col0 + + cor0.col1 * col1 AS col0 FROM tab0 AS cor0
----
7372
8192
9374

query I rowsort
SELECT ALL cor0.col1 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0, tab1 AS cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd

query I rowsort
SELECT ALL - + col0 + + col1 * col2 FROM tab1 AS cor0
----
1168
1401
506

query I rowsort
SELECT ALL col1 + col0 * + col2 FROM tab2 AS cor0
----
2087
220
3019

query I rowsort
SELECT DISTINCT - col0 * + tab2.col1 * col2 AS col0 FROM tab2
----
-119652
-51034
-5859

query I rowsort
SELECT DISTINCT tab1.col0 * tab1.col1 * col1 FROM tab1
----
13520
2028
6400

query I rowsort
SELECT - col2 - tab2.col0 AS col2 FROM tab2
----
-104
-117
-34

query I rowsort
SELECT DISTINCT col0 * + col1 * - col2 AS col0 FROM tab1
----
-36480
-4212
-99840

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - cor0.col1 * col1 - + col1 NOT IN ( col1 ) OR NOT col1 BETWEEN ( - col1 * - cor0.col2 * + col2 + + col2 ) AND cor0.col0 - - col1
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45

query I rowsort
SELECT - - cor1.col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc

query I rowsort
SELECT + 67 * - cor0.col1 FROM tab1 AS cor0
----
-1742
-670
-871

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + cor0.col0 * - col2 + + col0 col2 FROM tab0 AS cor0
----
70
7387
816

query I rowsort
SELECT DISTINCT tab1.col0 AS col1 FROM tab1, tab2 cor0
----
3
64
80

query I rowsort
SELECT DISTINCT col2 + col1 + col2 FROM tab2
----
111
85
93

query I rowsort
SELECT DISTINCT - tab1.col1 * - col0 + col0 FROM tab1
----
1120
704
81

query I rowsort
SELECT cor0.col1 * - cor0.col0 + col0 FROM tab2 AS cor0
----
-1264
-210
-4524

query I rowsort
SELECT ( tab1.col1 ) + ( - 81 ) * col1 - + col2 * + 81 AS col2 FROM tab1
----
-5417
-6454
-8816

query I rowsort
SELECT - cor1.col2 AS col0 FROM tab1, tab2 cor0, tab2, tab1 AS cor1
----
81 values hashing to 2df272448a67587d4635afedff278dcc

onlyif mysql # use DIV operator for integer division
query I rowsort label-5262
SELECT ALL + col0 * 47 + - col2 DIV - cor0.col2 col0 FROM tab1 AS cor0
----
142
3009
3761

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5262
SELECT ALL + col0 * 47 + - col2 / - cor0.col2 col0 FROM tab1 AS cor0
----
142
3009
3761

query I rowsort
SELECT ALL + 80 + tab1.col1 FROM tab1
----
106
90
93

query I rowsort
SELECT DISTINCT tab0.col2 * + 35 + 24 AS col2 FROM tab0
----
1179
2894
59

query I rowsort
SELECT - tab0.col1 * + ( + 47 ) + + col0 FROM tab0
----
-4018
-4188
-4524

query I rowsort
SELECT - col1 * cor0.col2 + - col1 * + col1 FROM tab1 AS cor0
----
-1417
-2080
-670

query I rowsort
SELECT ALL + col2 * col1 + col2 FROM tab1 AS cor0
----
1344
1458
627

query I rowsort
SELECT DISTINCT + + col1 * col0 * + col2 AS col2 FROM tab2 AS cor0
----
119652
51034
5859

query I rowsort
SELECT DISTINCT cor0.col2 * cor0.col0 AS col0 FROM tab1, tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT + + col1 * + col1 * - col0 + + col0 FROM tab1 AS cor0
----
-13440
-2025
-6336

query I rowsort
SELECT + 42 FROM tab0, tab0 cor0
----
9 values hashing to 64c29db9f1cd7ed4ddeb1735e3e0d442

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + + 78 col2 FROM tab1 cor0
----
132
135
174

query I rowsort
SELECT ALL 43 AS col1 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to ee5108f6248be48c54e069545f81c5d9

query I rowsort
SELECT DISTINCT col0 + cor0.col0 * + col0 AS col0 FROM tab0 AS cor0
----
1260
600
8010

query I rowsort
SELECT + 53 + - col0 FROM tab0 AS cor0
----
-36
18
29

query I rowsort
SELECT - 12 * col0 + col1 * col1 AS col0 FROM tab1 cor0
----
-668
-791
640

query I rowsort
SELECT DISTINCT col2 + + col2 * col2 FROM tab1 AS cor0
----
2970
3306
9312

query I rowsort
SELECT ALL + - 2 * + col2 * col0 AS col2 FROM tab1 AS cor0
----
-15360
-324
-7296

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5279
SELECT ALL - - col1 + + col0 + CAST( NULL AS DECIMAL ) col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5279
SELECT ALL - - col1 + + col0 + CAST ( NULL AS REAL ) col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col0 col2 FROM tab2 cor0
----
7
78
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col0 + col0 * col0 col1 FROM tab1 AS cor0
----
4032
6
6320

query I rowsort
SELECT DISTINCT - 50 - col1 * + col1 AS col0 FROM tab2 AS cor0
----
-1011
-339
-3531

query I rowsort
SELECT ALL - col0 * col1 + cor0.col2 * 29 FROM tab2 AS cor0
----
-241
-3848
566

query I rowsort
SELECT + 30 FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to 6c98840ed134c765d56389f4150075f0

query I rowsort
SELECT col1 + + col2 * ( + col2 ) FROM tab1 AS cor0
----
2942
3259
9229

query I rowsort
SELECT DISTINCT - - col1 * col2 + col2 AS col0 FROM tab1 AS cor0
----
1344
1458
627

query I rowsort
SELECT + ( - 69 ) FROM tab0
----
-69
-69
-69

onlyif mysql # use DIV operator for integer division
query I rowsort label-5288
SELECT ALL + + ( col1 ) DIV - col1 + col1 FROM tab2 AS cor0
----
16
30
58

skipif mysql # not compatible
query I rowsort label-5288
SELECT ALL + + ( col1 ) / - col1 + col1 FROM tab2 AS cor0
----
16
30
58

query I rowsort
SELECT DISTINCT ( + tab2.col2 ) * col0 * - col1 FROM tab2
----
-119652
-51034
-5859

query I rowsort
SELECT ALL + 31 * 32 * col2 FROM tab1
----
53568
56544
95232

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * + col1 - - col1 * - col2 col2 FROM tab0
----
-774
3298
637

query I rowsort
SELECT - - col0 * col1 + - cor0.col1 * - col0 AS col1 FROM tab1 AS cor0
----
1280
156
2080

query I rowsort
SELECT - col2 * - 26 - - col2 * col0 AS col2 FROM tab1 AS cor0
----
10176
1566
5130

onlyif mysql # use DIV operator for integer division
query I rowsort label-5294
SELECT - - col0 DIV 86 + col1 AS col0 FROM tab0 AS cor0
----
86
92
97

skipif mysql # not compatible
query I rowsort label-5294
SELECT - - col0 / 86 + col1 AS col0 FROM tab0 AS cor0
----
86
92
97

query I rowsort
SELECT 41 * col2 + col1 FROM tab0
----
138
1439
3453

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5296
SELECT - tab1.col2 + col2 / + CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5296
SELECT - tab1.col2 + col2 / + CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 2 AS col2 FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to 535345c50a19fdab97ce05d1837b1f09

query I rowsort
SELECT + 25 AS col2 FROM tab0, tab2, tab0 cor0
----
27 values hashing to 2c77240b60ac01c717a5ed5d0165f450

query I rowsort
SELECT DISTINCT ( - cor0.col2 ) FROM tab1, tab0 AS cor0, tab0 AS cor1
----
-1
-33
-82

query I rowsort
SELECT DISTINCT col1 + - ( col1 ) FROM tab2 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 50 + + cor0.col0 * - cor0.col0 col0 FROM tab1 AS cor0
----
-4046
-6350
41

query I rowsort
SELECT ALL 6 * col2 - col0 FROM tab2 AS cor0
----
149
155
78

query I rowsort
SELECT ALL - + ( + cor0.col2 ) * col0 FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT DISTINCT + cor0.col0 * col2 + col2 FROM tab2 cor0
----
2054
216
3040

query I rowsort
SELECT ALL - ( + col1 ) * col0 + 31 AS col1 FROM tab2 AS cor0
----
-1312
-186
-4571

query I rowsort
SELECT 0 * 81 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT 57 * - col0 FROM tab0 AS cor0
----
-1368
-1995
-5073

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5308
SELECT DISTINCT + - CAST( NULL AS SIGNED ) + col1 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5308
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) + col1 FROM tab2 cor0
----
NULL

query I rowsort
SELECT DISTINCT col1 * col2 + - col0 * + col1 * col0 + - 18 AS col0 FROM tab0
----
-118746
-46716
-713367

query I rowsort
SELECT DISTINCT - col0 + 35 + + col0 FROM tab2
----
35

query I rowsort
SELECT + col2 + ( + ( - col1 ) ) * 34 FROM tab2
----
-1027
-1980
-540

onlyif mysql # use DIV operator for integer division
query I rowsort label-5312
SELECT DISTINCT - col0 DIV + col1 + + 15 AS col0 FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-5312
SELECT DISTINCT - col0 / + col1 + + 15 AS col0 FROM tab0
----
15

query I rowsort
SELECT + col0 + - col1 * + col1 AS col0 FROM tab0
----
-7372
-8192
-9374

query I rowsort
SELECT - + cor0.col2 * + col2 + + cor0.col2 * col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT - col1 * 68 FROM tab1 cor0
----
-1768
-680
-884

query I rowsort
SELECT ( + col1 ) + col0 * 94 FROM tab2 AS cor0
----
689
7391
7443

query I rowsort
SELECT DISTINCT cor0.col0 * + ( - col2 + + 2 ) FROM tab2 cor0
----
-175
-1872
-2844

query I rowsort
SELECT + ( 1 ) + col2 AS col2 FROM tab1 AS cor0
----
55
58
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab2.col0 col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a

onlyif mysql # use DIV operator for integer division
query I rowsort label-5320
SELECT DISTINCT col2 DIV - ( - 54 + col1 ) col1 FROM tab0
----
-1
-2
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5320
SELECT DISTINCT col2 / - ( - 54 + col1 ) col1 FROM tab0
----
-1
-2
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + tab2.col1 col0 FROM tab2, tab0 AS cor0
----
9 values hashing to c61d27a0022e6d022371dc58819ab272

query I rowsort
SELECT ALL - col1 + + cor0.col1 * 63 FROM tab2 AS cor0
----
1054
1922
3658

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * 17 col0 FROM tab2
----
1003
289
527

query I rowsort
SELECT ALL - cor0.col0 * - col1 + col1 FROM tab1 AS cor0
----
104
1053
650

query I rowsort
SELECT col0 - ( col2 * - 13 + + 3 ) AS col1 FROM tab0 AS cor0
----
1152
45
450

query I rowsort
SELECT 53 * col2 AS col1 FROM tab0 AS cor0
----
1749
4346
53

query I rowsort
SELECT ( + 61 ) FROM tab2 AS cor0
----
61
61
61

query I rowsort
SELECT DISTINCT + + col2 * - ( col1 ) + col0 AS col2 FROM tab2 AS cor0
----
-1456
-567
-830

query I rowsort
SELECT - col0 * + 86 - col1 FROM tab0 AS cor0
----
-2150
-3107
-7745

query I rowsort
SELECT + col0 * + col0 - col1 * col1 FROM tab2 AS cor0
----
-912
2603
5952

onlyif mysql # use DIV operator for integer division
query I rowsort label-5331
SELECT - col1 DIV - ( 26 ) + col1 AS col2 FROM tab1
----
10
13
27

skipif mysql # not compatible
query I rowsort label-5331
SELECT - col1 / - ( 26 ) + col1 AS col2 FROM tab1
----
10
13
27

onlyif mysql # use DIV operator for integer division
query I rowsort label-5332
SELECT - ( ( + col1 ) ) DIV col1 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-5332
SELECT - ( ( + col1 ) ) / col1 FROM tab2 AS cor0
----
-1
-1
-1

query I rowsort
SELECT ALL - - 43 + - col2 * ( + cor0.col1 ) FROM tab1 AS cor0
----
-1205
-1361
-527

query I rowsort
SELECT 17 + col2 FROM tab1 AS cor0
----
113
71
74

onlyif mysql # use DIV operator for integer division
query I rowsort label-5335
SELECT DISTINCT + col2 * col2 + ( col2 ) DIV - col1 + col2 AS col0 FROM tab1 AS cor0
----
2968
3301
9305

skipif mysql # not compatible
query I rowsort label-5335
SELECT DISTINCT + col2 * col2 + ( col2 ) / - col1 + col2 AS col0 FROM tab1 AS cor0
----
2968
3301
9305

query I rowsort
SELECT + + 71 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c1aace5d5fe27721cc925552513c85c0

query I rowsort
SELECT DISTINCT - col1 + - col1 AS col0 FROM tab1 cor0
----
-20
-26
-52

query I rowsort
SELECT - col2 + col2 * + 71 FROM tab0 AS cor0
----
2310
5740
70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * + cor0.col2 + col2 * col0 col2 FROM tab2 cor0
----
378
4056
6004

onlyif mysql # use DIV operator for integer division
query I rowsort label-5340
SELECT 38 DIV + col2 + ( col1 + cor0.col0 ) AS col0 FROM tab0 AS cor0
----
111
170
180

skipif mysql # not compatible
query I rowsort label-5340
SELECT 38 / + col2 + ( col1 + cor0.col0 ) AS col0 FROM tab0 AS cor0
----
111
170
180

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + + 28 col0 FROM tab2 AS cor0
----
54
55
66

query I rowsort
SELECT - 58 + col1 AS col0 FROM tab0
----
28
33
39

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5343
SELECT + col2 + + CAST( NULL AS DECIMAL ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5343
SELECT + col2 + + CAST ( NULL AS REAL ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - + col0 + col0 * col1 * col0 FROM tab0 cor0
----
118790
49512
720722

query I rowsort
SELECT - - col2 * - 78 FROM tab2 AS cor0
----
-2028
-2106
-2964

onlyif mysql # use DIV operator for integer division
query I rowsort label-5346
SELECT + col2 * + cor0.col0 + - col1 DIV + col0 FROM tab0 AS cor0
----
33
7297
789

skipif mysql # not compatible
query I rowsort label-5346
SELECT + col2 * + cor0.col0 + - col1 / + col0 FROM tab0 AS cor0
----
33
7297
789

query I rowsort
SELECT - + col1 + 3 FROM tab1 AS cor0
----
-10
-23
-7

onlyif mysql # use DIV operator for integer division
query I rowsort label-5348
SELECT ALL + - col1 DIV 33 AS col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5348
SELECT ALL + - col1 / 33 AS col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - + cor0.col1 + 62 * - col2 FROM tab1 AS cor0
----
-3374
-3544
-5965

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * + cor0.col1 + - col0 col1 FROM tab1 cor0
----
36
673
89

query I rowsort
SELECT - + ( + 67 ) + + cor0.col0 FROM tab0 AS cor0
----
-32
-43
22

query I rowsort
SELECT cor1.col0 FROM tab0 cor0 CROSS JOIN tab1, tab1 AS cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5353
SELECT CAST( NULL AS SIGNED ) FROM tab1, tab0 AS cor0 CROSS JOIN tab2
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-5353
SELECT CAST ( NULL AS INTEGER ) FROM tab1, tab0 AS cor0 CROSS JOIN tab2
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT ALL + 90 * - col2 AS col2 FROM tab2
----
-2340
-2430
-3420

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5355
SELECT + col0 * - cor0.col1 * - CAST( NULL AS SIGNED ) + - 47 - + col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5355
SELECT + col0 * - cor0.col1 * - CAST ( NULL AS INTEGER ) + - 47 - + col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - tab1.col0 + col0 * - ( - col0 + + col2 ) FROM tab1
----
-1360
-156
384

query I rowsort
SELECT 59 * - tab2.col1 AS col0 FROM tab2
----
-1003
-1829
-3481

onlyif mysql # use DIV operator for integer division
query I rowsort label-5358
SELECT ALL + col2 DIV + col0 AS col1 FROM tab2
----
0
0
3

skipif mysql # not compatible
query I rowsort label-5358
SELECT ALL + col2 / + col0 AS col1 FROM tab2
----
0
0
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - tab1.col1 col0 FROM tab1, tab1 cor0
----
-10
-13
-26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 19 col0 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 86c53e8567a17c8d91fc5aff119e0498

onlyif mysql # use DIV operator for integer division
query I rowsort label-5361
SELECT col0 + col0 DIV 95 AS col0 FROM tab1 AS cor0
----
3
64
80

skipif mysql # not compatible
query I rowsort label-5361
SELECT col0 + col0 / 95 AS col0 FROM tab1 AS cor0
----
3
64
80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5362
SELECT + CAST( NULL AS SIGNED ) AS col0 FROM tab1, tab0 AS cor0, tab1 cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-5362
SELECT + CAST ( NULL AS INTEGER ) AS col0 FROM tab1, tab0 AS cor0, tab1 cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT ALL ( + 58 ) AS col2 FROM tab1 AS cor0
----
58
58
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 24 + + col1 * + cor0.col0 col1 FROM tab2 AS cor0
----
1319
193
4578

query I rowsort
SELECT + col1 * 35 FROM tab1 AS cor0
----
350
455
910

query I rowsort
SELECT ALL col1 + cor0.col1 AS col1 FROM tab0 AS cor0
----
172
182
194

query I rowsort
SELECT DISTINCT - 76 + cor0.col2 * - col0 AS col2 FROM tab0 AS cor0
----
-111
-7374
-868

onlyif mysql # use DIV operator for integer division
query I rowsort label-5368
SELECT ALL - cor0.col1 * - col0 DIV + col0 - col0 AS col0 FROM tab1 cor0
----
-54
-67
23

skipif mysql # not compatible
query I rowsort label-5368
SELECT ALL - cor0.col1 * - col0 / + col0 - col0 AS col0 FROM tab1 cor0
----
-54
-67
23

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5369
SELECT DISTINCT - + CAST( + col2 AS SIGNED ) + col0 FROM tab1 AS cor0
----
-16
-51
7

skipif mysql # not compatible
query I rowsort label-5369
SELECT DISTINCT - + CAST ( + col2 AS INTEGER ) + col0 FROM tab1 AS cor0
----
-16
-51
7

query I rowsort
SELECT ALL col1 * - 2 AS col0 FROM tab2 AS cor0
----
-118
-34
-62

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5371
SELECT col1 + - CAST( NULL AS DECIMAL ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5371
SELECT col1 + - CAST ( NULL AS REAL ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT tab2.col0 + ( - col1 ) AS col0 FROM tab2
----
-24
19
62

query I rowsort
SELECT DISTINCT - + 85 * - col2 * col1 + col0 * col2 FROM tab1 cor0
----
113760
119502
52098

query I rowsort
SELECT ( cor0.col2 ) * col0 AS col1 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT ALL - col0 + - cor0.col1 FROM tab1 AS cor0
----
-29
-74
-93

query I rowsort
SELECT DISTINCT + col1 * col2 * - col2 AS col2 FROM tab1 AS cor0
----
-119808
-32490
-75816

query I rowsort
SELECT DISTINCT - 10 - 46 FROM tab1
----
-56

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1, tab1 AS cor0 CROSS JOIN tab2, tab2 AS cor1, tab1 AS cor2
----
3645 values hashing to 1b06ddc48fd89ff2b1df6d82072316da

onlyif mysql # use DIV operator for integer division
query I rowsort label-5379
SELECT + 14 DIV + tab1.col1 FROM tab1
----
0
1
1

skipif mysql # not compatible
query I rowsort label-5379
SELECT + 14 / + tab1.col1 FROM tab1
----
0
1
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-5380
SELECT 84 DIV + tab1.col2 col2 FROM tab1
----
0
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5380
SELECT 84 / + tab1.col2 col2 FROM tab1
----
0
1
1

query I rowsort
SELECT ALL + 69 + col2 FROM tab0 AS cor0
----
102
151
70

query I rowsort
SELECT ( 84 ) * + col1 FROM tab1 AS cor0
----
1092
2184
840

onlyif mysql # use DIV operator for integer division
query I rowsort label-5383
SELECT DISTINCT col1 * + col1 + - cor0.col2 DIV + 34 AS col0 FROM tab0 AS cor0
----
7396
8279
9409

skipif mysql # not compatible
query I rowsort label-5383
SELECT DISTINCT col1 * + col1 + - cor0.col2 / + 34 AS col0 FROM tab0 AS cor0
----
7396
8279
9409

query I rowsort
SELECT DISTINCT - + 1 + col1 * + col2 FROM tab2 AS cor0
----
1533
645
836

query I rowsort
SELECT DISTINCT col2 + col2 * - col2 FROM tab1 AS cor0
----
-2862
-3192
-9120

onlyif mysql # use DIV operator for integer division
query I rowsort label-5386
SELECT ALL - ( + 3 ) * col2 DIV - col1 AS col0 FROM tab1 cor0
----
17
22
6

skipif mysql # not compatible
query I rowsort label-5386
SELECT ALL - ( + 3 ) * col2 / - col1 AS col0 FROM tab1 cor0
----
17
22
6

query I rowsort
SELECT DISTINCT + 2 FROM tab0, tab2 AS cor0, tab2 cor1
----
2

query I rowsort
SELECT col1 * + col2 - - col0 FROM tab1
----
1328
1407
634

query I rowsort
SELECT DISTINCT + cor0.col2 * 3 FROM tab0 AS cor0
----
246
3
99

query I rowsort
SELECT - col2 * - 3 AS col2 FROM tab2 cor0
----
114
78
81

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5391
SELECT - - col1 + CAST( NULL AS DECIMAL ) / + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5391
SELECT - - col1 + CAST ( NULL AS REAL ) / + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 + cor0.col2 * col2 FROM tab1 AS cor0
----
2942
3259
9229

query I rowsort
SELECT DISTINCT 73 AS col1 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
73

query I rowsort
SELECT ALL - col1 * 42 - - 12 FROM tab2 cor0
----
-1290
-2466
-702

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * ( col1 * - col0 + ( col1 ) ) col1 FROM tab0
----
-170108
-319906
-728728

query I rowsort
SELECT + + col2 * ( - cor0.col2 ) + col2 * col0 + col0 * - col1 AS col0 FROM tab1 AS cor0
----
-241
-2576
-2832

query I rowsort
SELECT DISTINCT + col1 * col1 + 66 AS col1 FROM tab0 cor0
----
7462
8347
9475

query I rowsort
SELECT - col1 * + col0 + - 31 AS col2 FROM tab1 AS cor0
----
-1071
-109
-671

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 * 8 col1 FROM tab0 AS cor0
----
-192
-280
-712

onlyif mysql # use DIV operator for integer division
query I rowsort label-5400
SELECT - - ( - col0 ) DIV - col1 FROM tab2 AS cor0
----
0
1
4

skipif mysql # not compatible
query I rowsort label-5400
SELECT - - ( - col0 ) / - col1 FROM tab2 AS cor0
----
0
1
4

query I rowsort
SELECT ALL col1 + - col0 FROM tab0 cor0
----
2
62
62

onlyif mysql # use DIV operator for integer division
query I rowsort label-5402
SELECT ALL - col0 + + col1 DIV col0 FROM tab0 AS cor0
----
-21
-33
-88

skipif mysql # not compatible
query I rowsort label-5402
SELECT ALL - col0 + + col1 / col0 FROM tab0 AS cor0
----
-21
-33
-88

query I rowsort
SELECT ALL + 60 + col2 FROM tab2 AS cor0
----
86
87
98

query I rowsort
SELECT ALL + 90 AS col1 FROM tab0 cor0
----
90
90
90

query I rowsort
SELECT - + cor0.col2 * 97 FROM tab2 AS cor0
----
-2522
-2619
-3686

onlyif mysql # use DIV operator for integer division
query I rowsort label-5406
SELECT + - col2 * - col1 + ( 98 + col1 ) * col0 DIV - col2 AS col1 FROM tab1 AS cor0
----
1156
1398
449

skipif mysql # not compatible
query I rowsort label-5406
SELECT + - col2 * - col1 + ( 98 + col1 ) * col0 / - col2 AS col1 FROM tab1 AS cor0
----
1156
1398
449

query I rowsort
SELECT ALL - col1 * col1 + - col2 * col0 AS col2 FROM tab1 AS cor0
----
-3748
-7849
-838

onlyif mysql # use DIV operator for integer division
query I rowsort label-5408
SELECT + 53 DIV cor0.col0 AS col2 FROM tab2 AS cor0
----
0
0
7

skipif mysql # not compatible
query I rowsort label-5408
SELECT + 53 / cor0.col0 AS col2 FROM tab2 AS cor0
----
0
0
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab2.col1 + tab2.col1 col0 FROM tab2
----
118
34
62

onlyif mysql # use DIV operator for integer division
query I rowsort label-5410
SELECT - + col0 + - col0 DIV cor0.col0 FROM tab2 AS cor0
----
-79
-8
-80

skipif mysql # not compatible
query I rowsort label-5410
SELECT - + col0 + - col0 / cor0.col0 FROM tab2 AS cor0
----
-79
-8
-80

query I rowsort
SELECT ALL - cor0.col0 + - col2 AS col2 FROM tab1 cor0
----
-121
-176
-57

query I rowsort
SELECT DISTINCT - - 43 + col2 * + col2 * col2 FROM tab2 AS cor0
----
17619
19726
54915

onlyif mysql # use DIV operator for integer division
query I rowsort label-5413
SELECT col1 DIV col2 - + col1 * + col1 AS col2 FROM tab1 AS cor0
----
-100
-169
-676

skipif mysql # not compatible
query I rowsort label-5413
SELECT col1 / col2 - + col1 * + col1 AS col2 FROM tab1 AS cor0
----
-100
-169
-676

onlyif mysql # use DIV operator for integer division
query I rowsort label-5414
SELECT DISTINCT - 24 DIV col2 + + col1 col1 FROM tab0 AS cor0
----
73
86
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5414
SELECT DISTINCT - 24 / col2 + + col1 col1 FROM tab0 AS cor0
----
73
86
91

query I rowsort
SELECT + - cor0.col1 * col2 + - ( 45 ) FROM tab2 AS cor0
----
-1579
-691
-882

onlyif mysql # use DIV operator for integer division
query I rowsort label-5416
SELECT ALL + col1 DIV col2 + ( - col2 ) * col1 FROM tab1 cor0
----
-1248
-1404
-570

skipif mysql # not compatible
query I rowsort label-5416
SELECT ALL + col1 / col2 + ( - col2 ) * col1 FROM tab1 cor0
----
-1248
-1404
-570

onlyif mysql # use DIV operator for integer division
query I rowsort label-5417
SELECT ALL + - 33 DIV col1 AS col1 FROM tab2 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-5417
SELECT ALL + - 33 / col1 AS col1 FROM tab2 AS cor0
----
-1
-1
0

query I rowsort
SELECT DISTINCT - col2 + - ( col1 ) + col0 FROM tab0 cor0
----
-63
-84
-95

query I rowsort
SELECT + col1 * - 7 FROM tab2 cor0
----
-119
-217
-413

query I rowsort
SELECT ALL col1 + 79 AS col0 FROM tab0 AS cor0
----
165
170
176

query I rowsort
SELECT DISTINCT col1 * col2 + 24 + + col0 AS col2 FROM tab2 AS cor0
----
1636
749
868

query I rowsort
SELECT - col2 + + 34 AS col0 FROM tab2 AS cor0
----
-4
7
8

query I rowsort
SELECT DISTINCT cor0.col1 + - 77 FROM tab2, tab1 AS cor0
----
-51
-64
-67

query I rowsort
SELECT DISTINCT - col2 * col0 + col0 AS col2 FROM tab0
----
-7209
-768
0

query I rowsort
SELECT - tab0.col1 * + col1 * ( col0 ) FROM tab0
----
-177504
-329315
-737009

query I rowsort
SELECT 51 + col1 * - 38 * + col1 FROM tab1
----
-25637
-3749
-6371

query I rowsort
SELECT + 55 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 832128adb1ddc65c3105e29cc2c8b3a3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 95 * - col1 + ( col2 ) * + col1 col0 FROM tab1
----
-1066
-380
13

query I rowsort
SELECT DISTINCT col0 * col0 + col0 * - col2 FROM tab2
----
-140
3239
4056

onlyif mysql # use DIV operator for integer division
query I rowsort label-5430
SELECT + ( - col1 ) DIV + 35 + col1 FROM tab1
----
10
13
26

skipif mysql # not compatible
query I rowsort label-5430
SELECT + ( - col1 ) / + 35 + col1 FROM tab1
----
10
13
26

query I rowsort
SELECT DISTINCT - - 22 AS col2 FROM tab0, tab1 AS cor0
----
22

query I rowsort
SELECT ALL - cor0.col0 * - 35 + - cor0.col0 FROM tab0, tab2 cor0
----
9 values hashing to 5b56eae1c3cd0c95f5cc27d11a48f9b8

query I rowsort
SELECT - 94 FROM tab2 cor0
----
-94
-94
-94

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5434
SELECT - - col0 * + col1 + CAST( col2 AS SIGNED ) * + col0 * col0 AS col1 FROM tab1 cor0
----
234112
564
615440

skipif mysql # not compatible
query I rowsort label-5434
SELECT - - col0 * + col1 + CAST ( col2 AS INTEGER ) * + col0 * col0 AS col1 FROM tab1 cor0
----
234112
564
615440

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - col1 * - col0 ) col2 FROM tab0
----
2064
3395
8099

query I rowsort
SELECT - ( tab0.col1 * 37 ) AS col0 FROM tab0
----
-3182
-3367
-3589

query I rowsort
SELECT ALL + 17 * col0 FROM tab2
----
119
1326
1343

query I rowsort
SELECT 92 FROM tab0, tab1 cor0, tab2 AS cor1
----
27 values hashing to c64cb7a81da51f4be0b6906a223e8817

query I rowsort
SELECT DISTINCT ( tab0.col2 * - 90 ) FROM tab0
----
-2970
-7380
-90

query I rowsort
SELECT col1 * + col0 * 16 AS col1 FROM tab0
----
129584
33024
54320

query I rowsort
SELECT - col2 + 35 FROM tab0
----
-47
2
34

query I rowsort
SELECT tab0.col2 + 88 AS col0 FROM tab0
----
121
170
89

query I rowsort
SELECT DISTINCT - col2 + + ( ( - tab1.col2 ) ) + col1 * col0 * + col0 FROM tab1
----
126
40846
83008

query I rowsort
SELECT DISTINCT col1 + + col0 + col0 FROM tab1
----
138
173
32

onlyif mysql # use DIV operator for integer division
query I rowsort label-5445
SELECT + col1 * 66 DIV col0 AS col1 FROM tab1 AS cor0
----
10
10
572

skipif mysql # not compatible
query I rowsort label-5445
SELECT + col1 * 66 / col0 AS col1 FROM tab1 AS cor0
----
10
10
572

query I rowsort
SELECT DISTINCT + 75 AS col1 FROM tab0 cor0
----
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + 31 ) col2 FROM tab0
----
-31
-31
-31

query I rowsort
SELECT - ( - ( col1 ) ) + - col1 * col1 FROM tab0 AS cor0
----
-7310
-8190
-9312

query I rowsort
SELECT + 10 + - 86 * col2 AS col1 FROM tab2 AS cor0
----
-2226
-2312
-3258

onlyif mysql # use DIV operator for integer division
query I rowsort label-5450
SELECT + col1 + - col0 DIV col1 FROM tab1 AS cor0
----
26
4
7

skipif mysql # not compatible
query I rowsort label-5450
SELECT + col1 + - col0 / col1 FROM tab1 AS cor0
----
26
4
7

onlyif mysql # use DIV operator for integer division
query I rowsort label-5451
SELECT - cor0.col1 + + col0 DIV - col0 AS col0 FROM tab1 AS cor0
----
-11
-14
-27

skipif mysql # not compatible
query I rowsort label-5451
SELECT - cor0.col1 + + col0 / - col0 AS col0 FROM tab1 AS cor0
----
-11
-14
-27

query I rowsort
SELECT ( + 9 ) + + col1 AS col1 FROM tab0 AS cor0
----
100
106
95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 - + 29 col1 FROM tab1
----
-16
-19
-3

query I rowsort
SELECT ALL - 50 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to c7432a968c8352c12996dfa54dd4b9e8

query I rowsort
SELECT ALL col1 * - col2 + col2 + col0 AS col0 FROM tab1
----
-1072
-1347
-449

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + tab0.col0 col0 FROM tab0, tab1 AS cor0
----
24
35
89

query I rowsort
SELECT - col2 * cor0.col2 + - col1 AS col0 FROM tab1 AS cor0
----
-2942
-3259
-9229

query I rowsort
SELECT - + ( + col0 ) * col1 + col0 AS col1 FROM tab1 AS cor0
----
-576
-75
-960

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 4 + - col1 col2 FROM tab0 AS cor0
----
-101
-90
-95

query I rowsort
SELECT - ( + 62 ) * - col2 FROM tab0 AS cor0
----
2046
5084
62

query I rowsort
SELECT + 40 + - col2 * - ( col1 ) FROM tab2 cor0
----
1574
686
877

query I rowsort
SELECT ALL + col2 * - col1 + - col2 FROM tab2 AS cor0
----
-1560
-684
-864

query I rowsort
SELECT DISTINCT - col1 + + cor0.col1 * - ( col2 ) FROM tab1 AS cor0
----
-1261
-1430
-580

query I rowsort
SELECT ALL - - cor0.col2 + + col0 AS col0 FROM tab2 AS cor0
----
104
117
34

query I rowsort
SELECT - + col2 * + cor0.col1 + col1 AS col0 FROM tab2 cor0
----
-1475
-629
-806

query I rowsort
SELECT 75 * + col2 FROM tab0 AS cor0
----
2475
6150
75

onlyif mysql # use DIV operator for integer division
query I rowsort label-5467
SELECT - ( + col1 ) DIV + col0 AS col1 FROM tab2 cor0
----
-4
0
0

skipif mysql # not compatible
query I rowsort label-5467
SELECT - ( + col1 ) / + col0 AS col1 FROM tab2 cor0
----
-4
0
0

query I rowsort
SELECT col1 + cor0.col0 * + col2 AS col2 FROM tab0 AS cor0
----
132
7389
878

query I rowsort
SELECT + ( - 34 ) * col0 AS col1 FROM tab0
----
-1190
-3026
-816

query I rowsort
SELECT ALL + tab0.col1 * + 5 AS col1 FROM tab0
----
430
455
485

query I rowsort
SELECT DISTINCT 55 FROM tab0, tab2 AS cor0
----
55

query I rowsort
SELECT - + col2 + - col2 * - 95 FROM tab2 AS cor0
----
2444
2538
3572

onlyif mysql # use DIV operator for integer division
query I rowsort label-5473
SELECT - col0 DIV col0 + col0 * col0 AS col0 FROM tab0 AS cor0
----
1224
575
7920

skipif mysql # not compatible
query I rowsort label-5473
SELECT - col0 / col0 + col0 * col0 AS col0 FROM tab0 AS cor0
----
1224
575
7920

onlyif mysql # use DIV operator for integer division
query I rowsort label-5474
SELECT ALL 52 DIV col1 AS col2 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5474
SELECT ALL 52 / col1 AS col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT + col0 + 95 AS col0 FROM tab0 AS cor0
----
119
130
184

query I rowsort
SELECT + col0 * ( - cor0.col2 ) AS col2 FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT DISTINCT cor0.col2 * col1 + cor0.col1 AS col1 FROM tab1 cor0
----
1261
1430
580

query I rowsort
SELECT ( + cor0.col1 ) - col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL cor0.col1 * + col1 + - col1 FROM tab2 AS cor0
----
272
3422
930

onlyif mysql # use DIV operator for integer division
query I rowsort label-5480
SELECT ALL + col2 * col2 DIV + col0 AS col0 FROM tab2
----
104
18
8

skipif mysql # not compatible
query I rowsort label-5480
SELECT ALL + col2 * col2 / + col0 AS col0 FROM tab2
----
104
18
8

query I rowsort
SELECT 55 * col1 + - cor0.col2 AS col2 FROM tab2 AS cor0
----
1678
3219
897

query I rowsort
SELECT ALL ( col0 ) + col2 AS col0 FROM tab2 AS cor0
----
104
117
34

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5483
SELECT ALL - - CAST( NULL AS SIGNED ) * col1 + + cor0.col0 + + cor0.col1 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5483
SELECT ALL - - CAST ( NULL AS INTEGER ) * col1 + + cor0.col0 + + cor0.col1 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 47 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 4fe192f296791e1e40ea00a68aa8dab7

query I rowsort
SELECT ALL - cor0.col0 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0, tab2 AS cor1
----
27 values hashing to 729c1edda9332398299f39cd174ed840

query I rowsort
SELECT ALL col0 * - col1 + 61 + col0 * col2 FROM tab0 AS cor0
----
-1211
-3299
-740

query I rowsort
SELECT DISTINCT - 14 - + col2 FROM tab1 AS cor0
----
-110
-68
-71

query I rowsort
SELECT - cor0.col0 * + cor0.col0 + - col1 * cor0.col0 AS col2 FROM tab2 AS cor0
----
-10686
-266
-7584

query I rowsort
SELECT ALL col0 * + col0 AS col0 FROM tab1 cor0
----
4096
6400
9

query I rowsort
SELECT ALL - 67 * - col1 AS col2 FROM tab1 AS cor0
----
1742
670
871

query I rowsort
SELECT ALL + col0 * + col1 * 45 + - ( + col2 ) FROM tab1 AS cor0
----
28743
3456
46704

query I rowsort
SELECT DISTINCT + cor0.col2 + - col1 FROM tab1 AS cor0
----
28
47
83

query I rowsort
SELECT ALL 8 + col1 * 69 * col1 FROM tab1 cor0
----
11669
46652
6908

query I rowsort
SELECT - - col2 + col0 * 35 FROM tab1 AS cor0
----
159
2297
2896

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5495
SELECT ALL + ( + col0 ) - CAST( col1 * col1 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-7372
-8192
-9374

skipif mysql # not compatible
query I rowsort label-5495
SELECT ALL + ( + col0 ) - CAST ( col1 * col1 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-7372
-8192
-9374

query I rowsort
SELECT DISTINCT cor0.col2 + cor0.col0 * col1 FROM tab0 AS cor0
----
2097
3396
8181

onlyif mysql # use DIV operator for integer division
query I rowsort label-5497
SELECT ALL + 71 DIV + col0 FROM tab2 AS cor0
----
0
0
10

skipif mysql # not compatible
query I rowsort label-5497
SELECT ALL + 71 / + col0 FROM tab2 AS cor0
----
0
0
10

query I rowsort
SELECT ALL - col2 + + col0 AS col0 FROM tab1 AS cor0
----
-16
-51
7

onlyif mysql # use DIV operator for integer division
query I rowsort label-5499
SELECT DISTINCT + 50 * + col1 + + col1 DIV - 39 FROM tab0 AS cor0
----
4298
4548
4848

skipif mysql # not compatible
query I rowsort label-5499
SELECT DISTINCT + 50 * + col1 + + col1 / - 39 FROM tab0 AS cor0
----
4298
4548
4848

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5500
SELECT + - col2 + CAST( - 35 AS SIGNED ) FROM tab2 AS cor0
----
-61
-62
-73

skipif mysql # not compatible
query I rowsort label-5500
SELECT + - col2 + CAST ( - 35 AS INTEGER ) FROM tab2 AS cor0
----
-61
-62
-73

query I rowsort
SELECT col2 + + ( + 3 ) AS col2 FROM tab1 AS cor0
----
57
60
99

query I rowsort
SELECT ALL + - col2 * col2 + + col1 + + cor0.col0 AS col1 FROM tab2 AS cor0
----
-1348
-539
-691

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5503
SELECT DISTINCT - CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-5503
SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

query I rowsort
SELECT + 80 * cor0.col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 7eca6d7f1c81d121ffad79b1a72f92c4

query I rowsort
SELECT 27 + tab1.col2 * - 8 AS col1 FROM tab1
----
-405
-429
-741

query I rowsort
SELECT 19 + + col0 FROM tab0 cor0
----
108
43
54

query I rowsort
SELECT + - col0 + - col0 AS col2 FROM tab0 cor0
----
-178
-48
-70

query I rowsort
SELECT ALL + cor0.col0 * + 49 FROM tab0 AS cor0
----
1176
1715
4361

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5509
SELECT + - col2 * col0 + col1 * CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5509
SELECT + - col2 * col0 + col1 * CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + ( cor0.col2 ) AS col0 FROM tab2 cor0
----
26
27
38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * col1 + col0 * 90 col2 FROM tab1
----
1674
6330
8448

query I rowsort
SELECT - 12 - - col2 * col2 AS col0 FROM tab1
----
2904
3237
9204

query I rowsort
SELECT DISTINCT ( col2 ) + col0 FROM tab0
----
171
36
57

onlyif mysql # use DIV operator for integer division
query I rowsort label-5514
SELECT DISTINCT - 85 + tab2.col1 DIV col1 AS col2 FROM tab2
----
-84

skipif mysql # not compatible
query I rowsort label-5514
SELECT DISTINCT - 85 + tab2.col1 / col1 AS col2 FROM tab2
----
-84

query I rowsort
SELECT DISTINCT + ( col0 ) * + col2 + 11 AS col0 FROM tab2
----
200
2039
3013

query I rowsort
SELECT ( + tab2.col2 * col2 ) FROM tab2
----
1444
676
729

query I rowsort
SELECT - ( + 58 ) - - col0 FROM tab0
----
-23
-34
31

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5518
SELECT + + CAST( - col2 AS SIGNED ) FROM tab0 cor0
----
-1
-33
-82

skipif mysql # not compatible
query I rowsort label-5518
SELECT + + CAST ( - col2 AS INTEGER ) FROM tab0 cor0
----
-1
-33
-82

query I rowsort
SELECT - ( - 75 ) AS col2 FROM tab0 AS cor0
----
75
75
75

query I rowsort
SELECT DISTINCT + ( col1 ) + - col1 FROM tab2
----
0

query I rowsort
SELECT + 51 * col0 FROM tab1 AS cor0
----
153
3264
4080

query I rowsort
SELECT ALL + 32 * - col1 + ( cor0.col0 ) AS col0 FROM tab0 AS cor0
----
-2728
-2823
-3069

query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab1, tab2 AS cor0 WHERE NULL > NULL
----

query I rowsort
SELECT ALL col1 + - cor0.col0 + col0 FROM tab2 AS cor0
----
17
31
59

query I rowsort
SELECT + col2 + + col1 * - col1 AS col2 FROM tab0 cor0
----
-7363
-8199
-9408

query I rowsort
SELECT + col2 * - tab0.col2 + col0 + - col0 AS col2 FROM tab0
----
-1
-1089
-6724

onlyif mysql # use DIV operator for integer division
query I rowsort label-5527
SELECT ALL - col0 + - CAST( + col0 + col2 AS SIGNED ) DIV - col0 AS col0 FROM tab0
----
-22
-34
-88

skipif mysql # not compatible
query I rowsort label-5527
SELECT ALL - col0 + - CAST ( + col0 + col2 AS INTEGER ) / - col0 AS col0 FROM tab0
----
-22
-34
-88

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5528
SELECT DISTINCT col1 + CAST( col2 AS SIGNED ) * - col0 AS col1 FROM tab1
----
-136
-3638
-7667

skipif mysql # not compatible
query I rowsort label-5528
SELECT DISTINCT col1 + CAST ( col2 AS INTEGER ) * - col0 AS col1 FROM tab1
----
-136
-3638
-7667

onlyif mysql # use DIV operator for integer division
query I rowsort label-5529
SELECT DISTINCT tab0.col1 DIV + ( + col1 ) AS col1 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-5529
SELECT DISTINCT tab0.col1 / + ( + col1 ) AS col1 FROM tab0
----
1

query I rowsort
SELECT ALL + 59 AS col0 FROM tab1, tab0 cor0, tab0 cor1
----
27 values hashing to e29fef8cdec1ee45a71d213f16d2f1d3

onlyif mysql # use DIV operator for integer division
query I rowsort label-5531
SELECT DISTINCT ( - col2 ) DIV col0 FROM tab0 cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-5531
SELECT DISTINCT ( - col2 ) / col0 FROM tab0 cor0
----
-1
0

query I rowsort
SELECT col1 + + 46 AS col0 FROM tab2 AS cor0
----
105
63
77

query I rowsort
SELECT 88 + ( col1 * - col1 ) FROM tab2 AS cor0
----
-201
-3393
-873

query I rowsort
SELECT DISTINCT + cor0.col2 * - 65 + col1 FROM tab0 AS cor0
----
-2059
-5239
32

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 95 * + 4 + - col0 * col0 - - col2 col2 FROM tab0 AS cor0
----
-163
-7459
-844

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * + 58 col1 FROM tab2 cor0
----
1508
1566
2204

onlyif mysql # use DIV operator for integer division
query I rowsort label-5537
SELECT DISTINCT - col0 DIV + col1 col0 FROM tab2 cor0
----
-1
-4
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5537
SELECT DISTINCT - col0 / + col1 col0 FROM tab2 cor0
----
-1
-4
0

skipif mysql # not compatible
query I rowsort
SELECT - - CAST ( col0 AS REAL ) + - col2 AS col1 FROM tab0 AS cor0
----
-9
34
7

onlyif mysql # use DIV operator for integer division
query I rowsort label-5539
SELECT DISTINCT col1 DIV 70 AS col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5539
SELECT DISTINCT col1 / 70 AS col0 FROM tab2 AS cor0
----
0

query I rowsort
SELECT - col0 + + 88 AS col2 FROM tab2 AS cor0
----
10
81
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + 15 col2 FROM tab0 AS cor0
----
101
106
112

query I rowsort
SELECT col0 * cor0.col0 + - col0 - - col0 AS col1 FROM tab2 AS cor0
----
49
6084
6241

query I rowsort
SELECT ALL col2 + 73 FROM tab2 AS cor0
----
100
111
99

onlyif mysql # use DIV operator for integer division
query I rowsort label-5544
SELECT DISTINCT + + cor0.col0 DIV - 35 + col0 AS col1 FROM tab2 AS cor0
----
7
76
77

skipif mysql # not compatible
query I rowsort label-5544
SELECT DISTINCT + + cor0.col0 / - 35 + col0 AS col1 FROM tab2 AS cor0
----
7
76
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + + 19 + col2 col0 FROM tab2
----
123
136
53

query I rowsort
SELECT ALL - col2 + - 71 * 9 * + col0 - + col0 FROM tab2
----
-4507
-49946
-50598

query I rowsort
SELECT ALL - col1 - - ( 54 ) * + tab2.col2 AS col0 FROM tab2
----
1345
1427
2035

query I rowsort
SELECT DISTINCT col0 - 80 FROM tab0
----
-45
-56
9

onlyif mysql # use DIV operator for integer division
query I rowsort label-5549
SELECT - ( col2 ) + + col2 DIV col0 FROM tab2 AS cor0
----
-24
-26
-38

skipif mysql # not compatible
query I rowsort label-5549
SELECT - ( col2 ) + + col2 / col0 FROM tab2 AS cor0
----
-24
-26
-38

query I rowsort
SELECT - 30 + col0 * + col1 - - cor0.col2 FROM tab0 AS cor0
----
2067
3366
8151

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5551
SELECT CAST( - 44 AS SIGNED ) * col1 + - 76 AS col2 FROM tab2 AS cor0
----
-1440
-2672
-824

skipif mysql # not compatible
query I rowsort label-5551
SELECT CAST ( - 44 AS INTEGER ) * col1 + - 76 AS col2 FROM tab2 AS cor0
----
-1440
-2672
-824

query I rowsort
SELECT col0 + + 42 FROM tab1 AS cor0
----
106
122
45

query I rowsort
SELECT + col1 + col2 * 42 FROM tab2 cor0
----
1151
1165
1613

query I rowsort
SELECT + col2 * ( - 3 ) + col0 AS col2 FROM tab1 AS cor0
----
-107
-159
-208

query I rowsort
SELECT ALL 29 + - col2 AS col0 FROM tab0
----
-4
-53
28

query I rowsort
SELECT + - col2 + + ( + 62 ) FROM tab2 AS cor0
----
24
35
36

query I rowsort
SELECT + cor0.col1 * - 26 + + col1 * - ( + col0 ) AS col2 FROM tab2 cor0
----
-1023
-1785
-6136

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 42 col2 FROM tab1 AS cor0
----
-42
-42
-42

onlyif mysql # use DIV operator for integer division
query I rowsort label-5559
SELECT DISTINCT - col2 * - ( col0 ) + - col0 DIV 49 AS col1 FROM tab0 cor0
----
35
7297
792

skipif mysql # not compatible
query I rowsort label-5559
SELECT DISTINCT - col2 * - ( col0 ) + - col0 / 49 AS col1 FROM tab0 cor0
----
35
7297
792

query I rowsort
SELECT - 36 + + col0 * - cor0.col0 FROM tab2 cor0
----
-6120
-6277
-85

query I rowsort
SELECT DISTINCT + cor0.col1 * col2 + - col2 AS col1 FROM tab1 AS cor0
----
1152
1350
513

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5562
SELECT - col0 * - CAST( 39 + col0 AS SIGNED ) FROM tab2
----
322
9126
9322

skipif mysql # not compatible
query I rowsort label-5562
SELECT - col0 * - CAST ( 39 + col0 AS INTEGER ) FROM tab2
----
322
9126
9322

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5563
SELECT ALL col2 * ( - col1 + - CAST( + col0 AS SIGNED ) ) AS col2 FROM tab1
----
-1566
-4218
-8928

skipif mysql # not compatible
query I rowsort label-5563
SELECT ALL col2 * ( - col1 + - CAST ( + col0 AS INTEGER ) ) AS col2 FROM tab1
----
-1566
-4218
-8928

query I rowsort
SELECT DISTINCT + 27 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
27

query I rowsort
SELECT - + 41 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 4ba0c102091f9cbc9fe9439b04584e70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + ( col0 ) col1 FROM tab1 AS cor0
----
-3
-64
-80

query I rowsort
SELECT - 71 - - col2 FROM tab0 AS cor0
----
-38
-70
11

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5568
SELECT - - col1 * col2 * CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5568
SELECT - - col1 * col2 * CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + + col2 * + col2 - + col2 FROM tab1 AS cor0
----
2862
3192
9120

query I rowsort
SELECT + 6 * - col1 + + 0 * + col0 AS col0 FROM tab0 AS cor0
----
-516
-546
-582

query I rowsort
SELECT DISTINCT cor0.col2 FROM tab1, tab2 AS cor0, tab2, tab2 AS cor1
----
26
27
38

query I rowsort
SELECT DISTINCT 25 + + col0 * col0 FROM tab0 AS cor0
----
1250
601
7946

query I rowsort
SELECT ALL col1 * + col1 * - ( col0 ) - col2 AS col0 FROM tab0 AS cor0
----
-177537
-329316
-737091

onlyif mysql # use DIV operator for integer division
query I rowsort label-5574
SELECT - - ( col2 ) DIV + col1 + - col0 * - cor0.col0 AS col1 FROM tab2 AS cor0
----
49
6084
6243

skipif mysql # not compatible
query I rowsort label-5574
SELECT - - ( col2 ) / + col1 + - col0 * - cor0.col0 AS col1 FROM tab2 AS cor0
----
49
6084
6243

query I rowsort
SELECT ALL 36 * - cor0.col2 AS col1 FROM tab2 AS cor0
----
-1368
-936
-972

query I rowsort
SELECT DISTINCT col1 * - col0 * 6 FROM tab2
----
-1302
-27612
-8058

query I rowsort
SELECT - col0 * - ( + col1 ) - + cor0.col2 FROM tab1 AS cor0
----
24
583
944

onlyif mysql # use DIV operator for integer division
query I rowsort label-5578
SELECT 95 DIV + col0 AS col1 FROM tab1
----
1
1
31

skipif mysql # not compatible
query I rowsort label-5578
SELECT 95 / + col0 AS col1 FROM tab1
----
1
1
31

query I rowsort
SELECT - 58 FROM tab0, tab2, tab2 AS cor0
----
27 values hashing to a38440572743ed8a3d8af7b49a5388c9

query I rowsort
SELECT ALL + col0 * tab2.col0 AS col2 FROM tab2
----
49
6084
6241

query I rowsort
SELECT ALL col0 + 18 AS col1 FROM tab0
----
107
42
53

query I rowsort
SELECT - col0 + cor0.col1 + col2 AS col0 FROM tab1 AS cor0
----
29
3
77

query I rowsort
SELECT - col1 + cor0.col1 * col1 FROM tab0 AS cor0
----
7310
8190
9312

query I rowsort
SELECT col2 - - cor0.col0 FROM tab0 AS cor0
----
171
36
57

query I rowsort
SELECT - - cor0.col2 + 66 * - 16 AS col1 FROM tab2 AS cor0
----
-1018
-1029
-1030

query I rowsort
SELECT ALL col2 * - col0 + col2 FROM tab2 cor0
----
-162
-2002
-2964

query I rowsort
SELECT + - 42 AS col2 FROM tab2 AS cor0
----
-42
-42
-42

query I rowsort
SELECT - col2 * + 48 + + cor0.col2 + - col1 AS col2 FROM tab2 AS cor0
----
-1281
-1300
-1803

skipif mysql # not compatible
query I rowsort
SELECT + + CAST ( col0 AS REAL ) FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT - + ( cor0.col2 ) + + col2 * - col0 AS col0 FROM tab1 AS cor0
----
-216
-3705
-7776

onlyif mysql # use DIV operator for integer division
query I rowsort label-5591
SELECT + col0 DIV - col1 + - col2 DIV - col2 FROM tab1
----
-5
-5
1

skipif mysql # not compatible
query I rowsort label-5591
SELECT + col0 / - col1 + - col2 / - col2 FROM tab1
----
-5
-5
1

query I rowsort
SELECT DISTINCT + col2 + - ( col0 + col2 ) AS col1 FROM tab0
----
-24
-35
-89

query I rowsort
SELECT 10 * + col2 FROM tab0
----
10
330
820

query I rowsort
SELECT + col0 * + ( - col2 ) + 76 AS col1 FROM tab0
----
-716
-7222
41

query I rowsort
SELECT DISTINCT + col2 + + col1 + - tab2.col2 * col0 AS col2 FROM tab2
----
-131
-1943
-2947

query I rowsort
SELECT DISTINCT col2 * + col0 * + col2 + - 42 * - tab2.col1 FROM tab2
----
114790
55206
6405

query I rowsort
SELECT - 89 + col2 AS col0 FROM tab0 AS cor0
----
-56
-7
-88

query I rowsort
SELECT DISTINCT + ( 54 ) + col0 AS col2 FROM tab0 cor0
----
143
78
89

query I rowsort
SELECT + ( tab1.col1 ) + col1 FROM tab1
----
20
26
52

query I rowsort
SELECT + ( col1 ) + cor0.col0 AS col0 FROM tab1 AS cor0
----
29
74
93

query I rowsort
SELECT DISTINCT + col0 * col0 + - 47 * + col0 AS col0 FROM tab1 AS cor0
----
-132
1088
2640

query I rowsort
SELECT DISTINCT + ( + col0 ) * + 92 * + col0 FROM tab0
----
112700
52992
728732

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * - cor0.col0 col2 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT - 60 * + col2 AS col0 FROM tab0 AS cor0
----
-1980
-4920
-60

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 + - col1 col1 FROM tab1 cor0
----
-20
-26
-52

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5606
SELECT - ( col2 ) + CAST( NULL AS SIGNED ) FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5606
SELECT - ( col2 ) + CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + + cor0.col2 * + col1 AS col0 FROM tab1 cor0
----
1248
1404
570

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col0 - + col1 * 31 col0 FROM tab1 AS cor0
----
-246
-323
-803

query I rowsort
SELECT 62 * + cor0.col2 + col0 FROM tab2 cor0
----
1681
1690
2435

query I rowsort
SELECT - col0 * 31 + 68 FROM tab0 AS cor0
----
-1017
-2691
-676

query I rowsort
SELECT + + col1 - - ( col2 ) FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT ALL col1 + + 42 AS col0 FROM tab2
----
101
59
73

query I rowsort
SELECT + + col2 * + col1 - - col1 FROM tab0 AS cor0
----
194
2924
7553

query I rowsort
SELECT DISTINCT - col0 * col2 + - cor0.col1 FROM tab1 AS cor0
----
-188
-3658
-7693

onlyif mysql # use DIV operator for integer division
query I rowsort label-5615
SELECT ALL + + col1 + 6 DIV col1 + - col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5615
SELECT ALL + + col1 + 6 / col1 + - col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT col0 + - col0 + cor0.col0 AS col1 FROM tab1 AS cor0
----
3
64
80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5617
SELECT col1 * CAST( NULL AS SIGNED ) * - col2 + - col1 - col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5617
SELECT col1 * CAST ( NULL AS INTEGER ) * - col2 + - col1 - col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + + col1 * 71 AS col1 FROM tab2 AS cor0
----
1207
2201
4189

query I rowsort
SELECT + col0 + 33 - + col0 AS col1 FROM tab2 AS cor0
----
33
33
33

query I rowsort
SELECT DISTINCT + 80 AS col2 FROM tab2, tab0 AS cor0
----
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 65 + 60 col0 FROM tab0 AS cor0
----
125

query I rowsort
SELECT - 66 * col1 + col0 FROM tab0 AS cor0
----
-5652
-5917
-6367

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col1 * - col1 + col0 * col2 col1 FROM tab2 AS cor0
----
-1453
-772
2713

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + + 37 * - col2 col2 FROM tab0 AS cor0
----
-1197
-2
-2945

query I rowsort
SELECT ALL 86 + 74 AS col0 FROM tab1, tab2 cor0
----
9 values hashing to ac5ffad908886e53c315f058c5fe2210

onlyif mysql # use DIV operator for integer division
query I rowsort label-5626
SELECT DISTINCT col2 * col2 DIV 85 - col2 * col2 AS col2 FROM tab0
----
-1
-1077
-6645

skipif mysql # not compatible
query I rowsort label-5626
SELECT DISTINCT col2 * col2 / 85 - col2 * col2 AS col2 FROM tab0
----
-1
-1077
-6645

query I rowsort
SELECT - 32 * + col2 - - col1 AS col0 FROM tab1 AS cor0
----
-1702
-1814
-3059

query I rowsort
SELECT DISTINCT - + 63 + + col2 AS col0 FROM tab0 AS cor0
----
-30
-62
19

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5629
SELECT ALL col2 * + 58 / col2 - + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5629
SELECT ALL col2 * + 58 / col2 - + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col1 - 11 AS col2 FROM tab0
----
75
80
86

query I rowsort
SELECT ALL - + ( + col1 ) * col0 + 79 FROM tab1 AS cor0
----
-561
-961
1

query I rowsort
SELECT ALL + col1 - + col2 AS col2 FROM tab0 AS cor0
----
53
9
96

query I rowsort
SELECT DISTINCT ( 39 ) + + col0 * - col0 AS col1 FROM tab1 AS cor0
----
-4057
-6361
30

query I rowsort
SELECT DISTINCT + col2 * 32 AS col2 FROM tab2 AS cor0
----
1216
832
864

query I rowsort
SELECT ALL - + 10 * cor0.col2 + col1 FROM tab2 AS cor0
----
-201
-239
-363

query I rowsort
SELECT cor0.col0 - - cor0.col0 AS col0 FROM tab2 AS cor0
----
14
156
158

query I rowsort
SELECT ( col2 ) * - col1 AS col1 FROM tab2 cor0
----
-1534
-646
-837

query I rowsort
SELECT ALL - cor0.col0 * - 89 AS col2 FROM tab0 AS cor0
----
2136
3115
7921

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 66 + col0 col2 FROM tab2 AS cor0
----
144
145
73

query I rowsort
SELECT ALL ( 51 ) * - col2 + 50 FROM tab2 AS cor0
----
-1276
-1327
-1888

query I rowsort
SELECT ALL col1 - col0 * + col1 * - col0 FROM tab2
----
106114
1550
359015

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 88 col1 FROM tab2 AS cor0
----
88
88
88

query I rowsort
SELECT 91 + cor0.col1 AS col1 FROM tab2 cor0
----
108
122
150

query I rowsort
SELECT - + 50 * + col0 FROM tab1 AS cor0
----
-150
-3200
-4000

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5645
SELECT ALL CAST( NULL AS SIGNED ) FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-5645
SELECT ALL CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort
SELECT ALL + col0 - + CAST ( col0 AS REAL ) AS col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT - 34 - + col0 FROM tab1
----
-114
-37
-98

query I rowsort
SELECT DISTINCT cor0.col1 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
86
91
97

query I rowsort
SELECT DISTINCT + col2 * ( - tab0.col2 ) AS col0 FROM tab0
----
-1
-1089
-6724

query I rowsort
SELECT ALL col0 + 19 FROM tab2 AS cor0
----
26
97
98

query I rowsort
SELECT DISTINCT + + col2 * + col1 + - 28 * col1 * + ( 37 ) + - col1 * + ( col1 * + col2 ) FROM tab1 AS cor0
----
-15490
-28444
-62036

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5652
SELECT + col2 * - CAST( NULL AS SIGNED ) + - col1 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5652
SELECT + col2 * - CAST ( NULL AS INTEGER ) + - col1 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - - 10 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to a47194429f3e0358a3aebffd5f050113

query I rowsort
SELECT - 60 + - col1 * ( - col0 ) AS col0 FROM tab0 AS cor0
----
2004
3335
8039

query I rowsort
SELECT + 38 * col0 AS col0 FROM tab1 AS cor0
----
114
2432
3040

query I rowsort
SELECT - 12 * + tab2.col2 FROM tab2
----
-312
-324
-456

query I rowsort
SELECT + 7 * col1 + + 43 - col2 * + col0 FROM tab2 AS cor0
----
-1572
-2840
71

query I rowsort
SELECT - - 32 * + col2 AS col0 FROM tab0 AS cor0
----
1056
2624
32

query I rowsort
SELECT col2 * col1 + - col2 + cor0.col1 FROM tab1 cor0
----
1165
1376
523

query I rowsort
SELECT - col0 + ( col1 * cor0.col2 ) AS col0 FROM tab2 AS cor0
----
1456
567
830

query I rowsort
SELECT + + col1 * col0 + col2 + col0 * 47 AS col0 FROM tab0 AS cor0
----
12364
3225
5041

query I rowsort
SELECT - - col0 + + ( col0 ) + col2 FROM tab1 cor0
----
185
256
60

query I rowsort
SELECT + cor0.col0 + 59 AS col1 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to ed23ad8619a8874cbe5690cfcc70d815

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5664
SELECT DISTINCT - CAST( NULL AS SIGNED ) * 97 + + col2 AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5664
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * 97 + + col2 AS col1 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT + tab0.col2 AS col1 FROM tab0, tab0 AS cor0, tab0 cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475

query I rowsort
SELECT ( + col1 ) AS col0 FROM tab1 cor0
----
10
13
26

query I rowsort
SELECT 27 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 701bf12d86392cb1585d9e4f3c72e9a8

query I rowsort
SELECT - col2 * - ( cor0.col1 ) AS col2 FROM tab2 cor0
----
1534
646
837

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 23 col0 FROM tab0 AS cor0
----
23
23
23

query I rowsort
SELECT + cor2.col1 * - 23 AS col2 FROM tab1, tab0 AS cor0, tab0 cor1, tab0, tab2 AS cor2
----
243 values hashing to c2dfcf3fd20db2ff7ad1cbc59d8413f1

query I rowsort
SELECT + 50 + col1 FROM tab0 AS cor0
----
136
141
147

query I rowsort
SELECT ( col1 ) + col1 FROM tab2 AS cor0
----
118
34
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 18 * col1 col2 FROM tab0 AS cor0
----
-1548
-1638
-1746

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5674
SELECT CAST( col1 * col0 + - 69 AS SIGNED ) AS col2 FROM tab0
----
1995
3326
8030

skipif mysql # not compatible
query I rowsort label-5674
SELECT CAST ( col1 * col0 + - 69 AS INTEGER ) AS col2 FROM tab0
----
1995
3326
8030

query I rowsort
SELECT ALL - 96 + - col1 * - ( + 49 ) AS col2 FROM tab1 AS cor0
----
1178
394
541

query I rowsort
SELECT DISTINCT - col2 - + col0 * cor0.col1 * + col0 AS col2 FROM tab0 AS cor0
----
-118826
-49569
-720893

query I rowsort
SELECT ALL + 93 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to e64105dfaa9fbd201adbb1f3f6968bde

query I rowsort
SELECT DISTINCT - + 2 AS col2 FROM tab2 AS cor0
----
-2

query I rowsort
SELECT ( - col0 ) + 99 * 58 FROM tab1 AS cor0
----
5662
5678
5739

query I rowsort
SELECT ALL + ( col2 * col2 ) AS col0 FROM tab2
----
1444
676
729

query I rowsort
SELECT 35 - col0 FROM tab2
----
-43
-44
28

query I rowsort
SELECT ALL - 46 AS col1 FROM tab2
----
-46
-46
-46

onlyif mysql # use DIV operator for integer division
query I rowsort label-5683
SELECT ALL - - col0 + - col1 DIV col1 AS col2 FROM tab0 cor0
----
23
34
88

skipif mysql # not compatible
query I rowsort label-5683
SELECT ALL - - col0 + - col1 / col1 AS col2 FROM tab0 cor0
----
23
34
88

query I rowsort
SELECT + - col0 + 67 FROM tab2 AS cor0
----
-11
-12
60

query I rowsort
SELECT 24 AS col1 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to aeeac431d22528188e8a5a2a60d2d080

onlyif mysql # use DIV operator for integer division
query I rowsort label-5686
SELECT DISTINCT ( + col0 ) DIV - col0 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-5686
SELECT DISTINCT ( + col0 ) / - col0 FROM tab2 AS cor0
----
-1

query I rowsort
SELECT ALL + col2 * ( col1 ) FROM tab2 cor0
----
1534
646
837

query I rowsort
SELECT ALL - 44 AS col0 FROM tab1 AS cor0
----
-44
-44
-44

query I rowsort
SELECT DISTINCT - - col2 + - col0 * - col2 * col1 AS col2 FROM tab2 cor0
----
119678
51072
5886

onlyif mysql # use DIV operator for integer division
query I rowsort label-5690
SELECT col2 + - col0 DIV - col2 col1 FROM tab1 AS cor0
----
54
58
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5690
SELECT col2 + - col0 / - col2 col1 FROM tab1 AS cor0
----
54
58
96

query I rowsort
SELECT ALL col1 * - col0 - + 90 AS col2 FROM tab2
----
-1433
-307
-4692

query I rowsort
SELECT DISTINCT col1 * + tab0.col2 + ( col2 ) * + ( 7 ) + + col1 AS col2 FROM tab0
----
201
3155
8127

query I rowsort
SELECT tab0.col2 * - 21 AS col1 FROM tab0
----
-1722
-21
-693

onlyif mysql # use DIV operator for integer division
query I rowsort label-5694
SELECT ALL col2 + - col1 DIV + tab1.col1 col1 FROM tab1
----
53
56
95

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5694
SELECT ALL col2 + - col1 / + tab1.col1 col1 FROM tab1
----
53
56
95

query I rowsort
SELECT col1 * - 17 * - col2 + 52 * col2 * col2 FROM tab1 AS cor0
----
175500
178638
500448

query I rowsort
SELECT + - ( 54 ) * col0 + + 60 FROM tab2 AS cor0
----
-318
-4152
-4206

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - col2 ) + col0 col1 FROM tab1 AS cor0
----
121
176
57

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5698
SELECT DISTINCT + CAST( NULL AS SIGNED ) + col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5698
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + col2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT - ( - col1 ) * + col2 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT ALL ( - cor0.col1 ) AS col0 FROM tab1 AS cor0
----
-10
-13
-26

query I rowsort
SELECT ALL + col2 + + col0 * col1 AS col0 FROM tab1 AS cor0
----
1136
132
697

query I rowsort
SELECT 53 + + ( col0 ) * + ( 65 ) FROM tab1 AS cor0
----
248
4213
5253

onlyif mysql # use DIV operator for integer division
query I rowsort label-5703
SELECT ALL col1 + col1 DIV - ( - col1 ) - col0 FROM tab0
----
3
63
63

skipif mysql # not compatible
query I rowsort label-5703
SELECT ALL col1 + col1 / - ( - col1 ) - col0 FROM tab0
----
3
63
63

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5704
SELECT - col1 * CAST( NULL AS DECIMAL ) - col1 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5704
SELECT - col1 * CAST ( NULL AS REAL ) - col1 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + - cor0.col2 * col0 AS col1 FROM tab1 AS cor0
----
-162
-3648
-7680

onlyif mysql # use DIV operator for integer division
query I rowsort label-5706
SELECT + col2 DIV col1 + cor0.col1 + col0 FROM tab0 AS cor0
----
110
132
180

skipif mysql # not compatible
query I rowsort label-5706
SELECT + col2 / col1 + cor0.col1 + col0 FROM tab0 AS cor0
----
110
132
180

query I rowsort
SELECT ALL 95 * col2 + - col0 AS col2 FROM tab0
----
3111
60
7701

onlyif mysql # use DIV operator for integer division
query I rowsort label-5708
SELECT DISTINCT col0 DIV col0 + - tab0.col0 * + col2 FROM tab0
----
-34
-7297
-791

skipif mysql # not compatible
query I rowsort label-5708
SELECT DISTINCT col0 / col0 + - tab0.col0 * + col2 FROM tab0
----
-34
-7297
-791

query I rowsort
SELECT ALL + 36 * col2 * tab1.col1 - - 32 FROM tab1
----
20552
44960
50576

query I rowsort
SELECT DISTINCT 50 FROM tab0, tab2, tab2 AS cor0
----
50

query I rowsort
SELECT DISTINCT 14 - col2 FROM tab2
----
-12
-13
-24

query I rowsort
SELECT - col2 + + tab0.col0 AS col1 FROM tab0
----
-9
34
7

query I rowsort
SELECT ALL col1 + 21 FROM tab2
----
38
52
80

query I rowsort
SELECT ALL + + cor0.col2 * col2 * + col0 + col2 * 74 - col0 FROM tab2 AS cor0
----
116809
54574
7094

query I rowsort
SELECT col2 + 62 * - col1 FROM tab1 AS cor0
----
-1558
-563
-710

query I rowsort
SELECT ALL - + col2 * + 78 FROM tab2 AS cor0
----
-2028
-2106
-2964

query I rowsort
SELECT DISTINCT col2 + + col2 + - cor0.col0 AS col2 FROM tab1 AS cor0
----
105
112
50

query I rowsort
SELECT ALL - - cor0.col1 * - 35 + cor0.col2 * cor0.col0 FROM tab0 AS cor0
----
-2218
-3360
4113

query I rowsort
SELECT + col2 * ( 41 ) + col0 * col0 * col2 FROM tab1 AS cor0
----
235809
2700
618336

query I rowsort
SELECT DISTINCT - col1 - col2 * col1 FROM tab1 cor0
----
-1261
-1430
-580

query I rowsort
SELECT - + col0 + - col1 * - cor0.col1 FROM tab2 AS cor0
----
210
3403
954

query I rowsort
SELECT DISTINCT - - col2 * + ( 60 ) + col0 AS col1 FROM tab2 AS cor0
----
1627
1638
2359

query I rowsort
SELECT DISTINCT - col0 + 39 * col2 FROM tab1 AS cor0
----
2103
2159
3664

query I rowsort
SELECT DISTINCT tab2.col1 AS col1 FROM tab2, tab1 cor0, tab0, tab0 AS cor1
----
17
31
59

query I rowsort
SELECT ALL 52 * col2 FROM tab1
----
2808
2964
4992

query I rowsort
SELECT - + ( col1 ) * + col0 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT ALL - - ( col2 ) + col1 + col2 FROM tab1 AS cor0
----
124
134
205

query I rowsort
SELECT DISTINCT - + col1 + col2 AS col1 FROM tab0 cor0
----
-53
-9
-96

query I rowsort
SELECT - - col2 + col2 + - ( - col1 ) AS col2 FROM tab0 AS cor0
----
152
255
99

query I rowsort
SELECT DISTINCT 7 * cor0.col2 AS col2 FROM tab0 cor0
----
231
574
7

query I rowsort
SELECT ALL + cor0.col0 * 77 + cor1.col1 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 48dab4aebe94b03f70d21d27ab9e96bb

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 8 col0 FROM tab1
----
-8
-8
-8

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5733
SELECT ALL - - CAST( NULL AS SIGNED ) FROM tab0, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-5733
SELECT ALL - - CAST ( NULL AS INTEGER ) FROM tab0, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT DISTINCT + 28 AS col2 FROM tab2 AS cor0
----
28

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 * + col1 * 9 col2 FROM tab0 AS cor0
----
18576
30555
72891

query I rowsort
SELECT + 49 * + col1 FROM tab1 AS cor0
----
1274
490
637

query I rowsort
SELECT - 57 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 0b74bbd7631afe9b2eeb9f18b9dc6505

query I rowsort
SELECT ALL - - col0 * + col0 FROM tab1 cor0
----
4096
6400
9

query I rowsort
SELECT - col2 + + col0 * - col1 AS col1 FROM tab0 AS cor0
----
-2097
-3396
-8181

query I rowsort
SELECT ALL + col1 - col1 FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT - col2 * col2 + - 97 FROM tab1 AS cor0
----
-3013
-3346
-9313

query I rowsort
SELECT 63 FROM tab2 cor0
----
63
63
63

query I rowsort
SELECT ALL + - 59 AS col0 FROM tab2 AS cor0
----
-59
-59
-59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 47 col2 FROM tab2 cor0
----
47
47
47

onlyif mysql # use DIV operator for integer division
query I rowsort label-5745
SELECT ALL - 63 + + col0 DIV - col1 FROM tab2 AS cor0
----
-63
-64
-67

skipif mysql # not compatible
query I rowsort label-5745
SELECT ALL - 63 + + col0 / - col1 FROM tab2 AS cor0
----
-63
-64
-67

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5746
SELECT DISTINCT + + 21 + col1 / CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5746
SELECT DISTINCT + + 21 + col1 / CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-5747
SELECT col1 + + col1 DIV + col0 AS col0 FROM tab1 AS cor0
----
10
13
34

skipif mysql # not compatible
query I rowsort label-5747
SELECT col1 + + col1 / + col0 AS col0 FROM tab1 AS cor0
----
10
13
34

query I rowsort
SELECT ALL - cor0.col0 * - col0 AS col1 FROM tab2 AS cor0
----
49
6084
6241

onlyif mysql # use DIV operator for integer division
query I rowsort label-5749
SELECT + + col1 * + 75 + cor0.col1 DIV col1 AS col2 FROM tab2 AS cor0
----
1276
2326
4426

skipif mysql # not compatible
query I rowsort label-5749
SELECT + + col1 * + 75 + cor0.col1 / col1 AS col2 FROM tab2 AS cor0
----
1276
2326
4426

onlyif mysql # use DIV operator for integer division
query I rowsort label-5750
SELECT - - col2 DIV - col0 + col1 FROM tab0 AS cor0
----
85
91
97

skipif mysql # not compatible
query I rowsort label-5750
SELECT - - col2 / - col0 + col1 FROM tab0 AS cor0
----
85
91
97

query I rowsort
SELECT ALL + - col0 + col1 * col1 FROM tab0 cor0
----
7372
8192
9374

query I rowsort
SELECT ALL tab0.col0 * + 20 FROM tab0, tab2 AS cor0
----
9 values hashing to 7c9c3e0d5466b072c8b1e09f0514ac02

query I rowsort
SELECT DISTINCT tab1.col2 FROM tab1, tab2 AS cor0, tab2, tab2 AS cor1
----
54
57
96

query I rowsort
SELECT + col1 * col2 + 31 * col1 - + col1 * ( - col1 ) AS col2 FROM tab0 cor0
----
12513
12900
18564

query I rowsort
SELECT DISTINCT ( - col1 ) * + cor0.col2 - ( col0 * + cor0.col0 ) FROM tab1 AS cor0
----
-1413
-4666
-7648

query I rowsort
SELECT - 20 * col1 + + col1 * col2 AS col2 FROM tab2 AS cor0
----
217
306
354

query I rowsort
SELECT DISTINCT 11 * - cor0.col1 AS col0 FROM tab2 AS cor0
----
-187
-341
-649

query I rowsort
SELECT + 66 FROM tab2, tab1 AS cor0
----
9 values hashing to 29794915b585eea848ad670075452c88

query I rowsort
SELECT ALL - cor0.col1 * ( + col0 + - col0 ) AS col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + ( ( col0 ) ) * - 24 FROM tab1 AS cor0
----
-1536
-1920
-72

query I rowsort
SELECT ALL + col0 * cor0.col2 + + col1 * + 0 AS col2 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT DISTINCT + + col0 * + 4 - + col1 FROM tab2 AS cor0
----
-3
253
299

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5763
SELECT ALL - CAST( NULL AS SIGNED ) * col0 + col2 * + cor0.col0 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5763
SELECT ALL - CAST ( NULL AS INTEGER ) * col0 + col2 * + cor0.col0 FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5764
SELECT DISTINCT - - CAST( NULL AS SIGNED ) - - col0 * cor0.col1 AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5764
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) - - col0 * cor0.col1 AS col1 FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 61 col1 FROM tab1
----
61
61
61

query I rowsort
SELECT ALL - ( + ( col1 ) ) AS col2 FROM tab0
----
-86
-91
-97

query I rowsort
SELECT ALL col1 * - ( tab1.col1 ) FROM tab1
----
-100
-169
-676

query I rowsort
SELECT + 41 AS col0 FROM tab1 cor0
----
41
41
41

query I rowsort
SELECT DISTINCT + cor1.col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
86
91
97

query I rowsort
SELECT - cor0.col2 * + 15 FROM tab0 AS cor0
----
-1230
-15
-495

onlyif mysql # use DIV operator for integer division
query I rowsort label-5771
SELECT - CAST( - col1 AS SIGNED ) DIV col2 AS col2 FROM tab0 AS cor0
----
1
2
97

skipif mysql # not compatible
query I rowsort label-5771
SELECT - CAST ( - col1 AS INTEGER ) / col2 AS col2 FROM tab0 AS cor0
----
1
2
97

query I rowsort
SELECT - col0 * + 98 FROM tab1 cor0
----
-294
-6272
-7840

onlyif mysql # use DIV operator for integer division
query I rowsort label-5773
SELECT ( col1 + + col2 ) DIV col0 FROM tab2
----
0
1
8

skipif mysql # not compatible
query I rowsort label-5773
SELECT ( col1 + + col2 ) / col0 FROM tab2
----
0
1
8

query I rowsort
SELECT col1 * - col1 + col2 AS col1 FROM tab2 AS cor0
----
-251
-3455
-934

query I rowsort
SELECT 44 + col0 FROM tab0 AS cor0
----
133
68
79

query I rowsort
SELECT - col2 * - cor0.col1 + - 93 AS col1 FROM tab2 cor0
----
1441
553
744

query I rowsort
SELECT ALL + col0 + col0 + - col2 FROM tab0 AS cor0
----
15
69
96

query I rowsort
SELECT DISTINCT + 75 * - col2 AS col2 FROM tab2 AS cor0
----
-1950
-2025
-2850

query I rowsort
SELECT + + col2 + - ( + ( - col2 ) ) * - 25 FROM tab0 AS cor0
----
-1968
-24
-792

query I rowsort
SELECT - - cor0.col1 * + 65 FROM tab1 AS cor0
----
1690
650
845

onlyif mysql # use DIV operator for integer division
query I rowsort label-5781
SELECT - cor0.col1 DIV - col1 AS col2 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5781
SELECT - cor0.col1 / - col1 AS col2 FROM tab2 AS cor0
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + ( + 91 ) col2 FROM tab0 AS cor0
----
-7826
-8281
-8827

onlyif mysql # use DIV operator for integer division
query I rowsort label-5783
SELECT ALL - 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-5783
SELECT ALL - col0 / + col1 col0 FROM tab0
----
0
0
0

query I rowsort
SELECT col1 * + 30 AS col1 FROM tab0 cor0
----
2580
2730
2910

query I rowsort
SELECT + col1 + 14 AS col1 FROM tab1 AS cor0
----
24
27
40

query I rowsort
SELECT col0 * 46 AS col2 FROM tab0
----
1104
1610
4094

query I rowsort
SELECT + col2 * - col0 + col2 * - cor0.col0 AS col2 FROM tab0 AS cor0
----
-14596
-1584
-70

onlyif mysql # use DIV operator for integer division
query I rowsort label-5788
SELECT ALL - col1 DIV col1 + - col2 AS col2 FROM tab2 AS cor0
----
-27
-28
-39

skipif mysql # not compatible
query I rowsort label-5788
SELECT ALL - col1 / col1 + - col2 AS col2 FROM tab2 AS cor0
----
-27
-28
-39

query I rowsort
SELECT DISTINCT - col2 * ( 3 ) * - col0 + ( + cor0.col1 ) * col0 + ( cor0.col2 ) * col1 FROM tab1 AS cor0
----
12154
1968
25328

query I rowsort
SELECT - col0 * col0 + col1 * + col0 * - col1 + 26 AS col1 FROM tab1 AS cor0
----
-10470
-19894
-2011

query I rowsort
SELECT DISTINCT col1 + + 73 AS col0 FROM tab1 cor0
----
83
86
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col2 + + col2 col0 FROM tab2 AS cor0
----
52
54
76

query I rowsort
SELECT DISTINCT - + cor0.col1 + - col2 AS col0 FROM tab2 AS cor0
----
-55
-58
-85

query I rowsort
SELECT DISTINCT 4 + cor0.col0 AS col0 FROM tab0 AS cor0
----
28
39
93

query I rowsort
SELECT ALL - col2 * - col0 * - col1 AS col2 FROM tab0 AS cor0
----
-3395
-664118
-68112

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - 41 ) * col2 + 37 + 44 * - col0 col1 FROM tab1 AS cor0
----
-2309
-5116
-7419

onlyif mysql # use DIV operator for integer division
query I rowsort label-5797
SELECT 55 * ( - col2 ) DIV - 41 AS col0 FROM tab2 AS cor0
----
34
36
50

skipif mysql # not compatible
query I rowsort label-5797
SELECT 55 * ( - col2 ) / - 41 AS col0 FROM tab2 AS cor0
----
34
36
50

query I rowsort
SELECT DISTINCT - col2 * 49 * - col1 FROM tab2 AS cor0
----
31654
41013
75166

onlyif mysql # use DIV operator for integer division
query I rowsort label-5799
SELECT DISTINCT col1 DIV - col0 + + col2 + 50 FROM tab0 AS cor0
----
131
49
80

skipif mysql # not compatible
query I rowsort label-5799
SELECT DISTINCT col1 / - col0 + + col2 + 50 FROM tab0 AS cor0
----
131
49
80

query I rowsort
SELECT - col1 + + 81 FROM tab0
----
-10
-16
-5

onlyif mysql # use DIV operator for integer division
query I rowsort label-5801
SELECT col2 DIV - 33 + + col0 AS col0 FROM tab2
----
7
78
78

skipif mysql # not compatible
query I rowsort label-5801
SELECT col2 / - 33 + + col0 AS col0 FROM tab2
----
7
78
78

onlyif mysql # use DIV operator for integer division
query I rowsort label-5802
SELECT DISTINCT col1 DIV col2 + col0 AS col0 FROM tab1
----
3
64
80

skipif mysql # not compatible
query I rowsort label-5802
SELECT DISTINCT col1 / col2 + col0 AS col0 FROM tab1
----
3
64
80

query I rowsort
SELECT DISTINCT + col2 + 44 AS col1 FROM tab2
----
70
71
82

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5804
SELECT ALL + CAST( cor0.col2 AS SIGNED ) AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3

skipif mysql # not compatible
query I rowsort label-5804
SELECT ALL + CAST ( cor0.col2 AS INTEGER ) AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3

query I rowsort
SELECT DISTINCT + ( - 10 ) FROM tab2, tab0 AS cor0
----
-10

query I rowsort
SELECT ALL 3 AS col0 FROM tab0 cor0
----
3
3
3

query I rowsort
SELECT - col0 * + cor0.col2 + + col1 + col2 FROM tab1 cor0
----
-3581
-7571
-82

query I rowsort
SELECT + 55 * cor0.col1 FROM tab0 AS cor0
----
4730
5005
5335

query I rowsort
SELECT DISTINCT - + 50 * + col1 * - ( cor0.col2 ) FROM tab1 AS cor0
----
28500
62400
70200

onlyif mysql # use DIV operator for integer division
query I rowsort label-5810
SELECT DISTINCT - - col1 DIV - cor0.col1 AS col2 FROM tab2 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-5810
SELECT DISTINCT - - col1 / - cor0.col1 AS col2 FROM tab2 cor0
----
-1

query I rowsort
SELECT - 40 * col2 * col1 + - col0 * col1 AS col1 FROM tab2 cor0
----
-27183
-33697
-65962

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5812
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + tab1.col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5812
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + tab1.col0 FROM tab1
----
NULL

query I rowsort
SELECT ALL + 32 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to d30a2acbf33c88274474306936d3227b

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 43 col1 FROM tab0
----
43
43
43

query I rowsort
SELECT + 94 * + col2 + - col2 AS col1 FROM tab0 AS cor0
----
3069
7626
93

query I rowsort
SELECT + 3 - col1 FROM tab2 AS cor0
----
-14
-28
-56

query I rowsort
SELECT DISTINCT - cor0.col1 + cor0.col1 * col1 * + col1 FROM tab1 AS cor0
----
17550
2184
990

query I rowsort
SELECT ALL + ( col0 ) + + col0 AS col2 FROM tab2 cor0
----
14
156
158

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5819
SELECT CAST( 86 AS SIGNED ) FROM tab0 cor0
----
86
86
86

skipif mysql # not compatible
query I rowsort label-5819
SELECT CAST ( 86 AS INTEGER ) FROM tab0 cor0
----
86
86
86

query I rowsort
SELECT ALL + - 54 AS col2 FROM tab0 AS cor0
----
-54
-54
-54

query I rowsort
SELECT + - 34 * + 36 AS col0 FROM tab0 AS cor0
----
-1224
-1224
-1224

query I rowsort
SELECT + ( + ( tab0.col2 ) ) FROM tab0
----
1
33
82

query I rowsort
SELECT DISTINCT - + ( cor0.col0 ) AS col1 FROM tab0 AS cor0
----
-24
-35
-89

query I rowsort
SELECT - 72 FROM tab2, tab2 AS cor0, tab0 AS cor1, tab0 AS cor2
----
81 values hashing to 95a1a68628dd064d94b4fe1543a3419f

query I rowsort
SELECT ALL - col1 - - tab0.col1 AS col0 FROM tab0
----
0
0
0

query I rowsort
SELECT - 5 * col2 + col2 * + 3 FROM tab2 AS cor0
----
-52
-54
-76

query I rowsort
SELECT + col0 * - cor0.col0 + col0 * - col1 AS col1 FROM tab1 AS cor0
----
-4736
-7440
-87

query I rowsort
SELECT - 30 * - col2 + ( + 56 ) FROM tab1 cor0
----
1676
1766
2936

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5829
SELECT col1 * 35 + - col2 * CAST( NULL AS SIGNED ) + col1 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5829
SELECT col1 * 35 + - col2 * CAST ( NULL AS INTEGER ) + col1 AS col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5830
SELECT + CAST( NULL AS SIGNED ) * - col1 / col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5830
SELECT + CAST ( NULL AS INTEGER ) * - col1 / col0 FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + col2 ) * - col0 col1 FROM tab0
----
-35
-7298
-792

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5832
SELECT CAST( NULL AS SIGNED ) FROM tab1, tab0, tab2 cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-5832
SELECT CAST ( NULL AS INTEGER ) FROM tab1, tab0, tab2 cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT ALL 12 * col0 + + col0 * + ( - 91 + - col0 ) FROM tab1
----
-12720
-246
-9152

query I rowsort
SELECT DISTINCT - 79 + col1 * col0 + col0 * - 32 AS col1 FROM tab2
----
-1264
-86
2027

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5835
SELECT DISTINCT + CAST( - 24 AS SIGNED ) + + col0 * - ( + ( col1 ) ) FROM tab2
----
-1367
-241
-4626

skipif mysql # not compatible
query I rowsort label-5835
SELECT DISTINCT + CAST ( - 24 AS INTEGER ) + + col0 * - ( + ( col1 ) ) FROM tab2
----
-1367
-241
-4626

query I rowsort
SELECT ALL - col1 * 71 FROM tab2 cor0
----
-1207
-2201
-4189

query I rowsort
SELECT DISTINCT + col2 * + col0 - + 80 FROM tab2 cor0
----
109
1948
2922

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5838
SELECT ALL + col0 * + CAST( col1 * cor0.col2 AS SIGNED ) + - 18 FROM tab0 AS cor0
----
3377
664100
68094

skipif mysql # not compatible
query I rowsort label-5838
SELECT ALL + col0 * + CAST ( col1 * cor0.col2 AS INTEGER ) + - 18 FROM tab0 AS cor0
----
3377
664100
68094

query I rowsort
SELECT ALL + col1 + cor0.col1 + col0 * - col1 * ( col2 ) FROM tab2 AS cor0
----
-119534
-51000
-5797

query I rowsort
SELECT DISTINCT + col2 * - col0 - + col2 AS col1 FROM tab2 AS cor0
----
-2054
-216
-3040

query I rowsort
SELECT DISTINCT cor0.col1 + col0 * + col2 AS col1 FROM tab2 AS cor0
----
2087
220
3019

query I rowsort
SELECT DISTINCT 3 + + col1 AS col1 FROM tab0
----
100
89
94

query I rowsort
SELECT DISTINCT + 14 + - col1 * ( + col0 ) * col2 FROM tab0
----
-3381
-664104
-68098

query I rowsort
SELECT + 55 + - col1 AS col2 FROM tab0
----
-31
-36
-42

query I rowsort
SELECT - col0 * 56 + col1 FROM tab2
----
-361
-4309
-4407

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5846
SELECT col2 * CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5846
SELECT col2 * CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col0 * 34 + + col1 FROM tab2 AS cor0
----
-207
-2593
-2669

query I rowsort
SELECT DISTINCT + cor0.col2 * cor0.col2 * - col2 FROM tab0 AS cor0
----
-1
-35937
-551368

onlyif mysql # use DIV operator for integer division
query I rowsort label-5849
SELECT DISTINCT col1 * + col1 + col1 + col2 DIV + col0 AS col0 FROM tab0 AS cor0
----
7483
8372
9506

skipif mysql # not compatible
query I rowsort label-5849
SELECT DISTINCT col1 * + col1 + col1 + col2 / + col0 AS col0 FROM tab0 AS cor0
----
7483
8372
9506

query I rowsort
SELECT ALL col1 * ( + col2 ) * - col0 FROM tab2
----
-119652
-51034
-5859

query I rowsort
SELECT + + 78 * + col1 FROM tab2 AS cor0
----
1326
2418
4602

query I rowsort
SELECT DISTINCT - col0 * 11 AS col1 FROM tab0
----
-264
-385
-979

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5853
SELECT DISTINCT CAST( + 85 AS SIGNED ) FROM tab2 cor0
----
85

skipif mysql # not compatible
query I rowsort label-5853
SELECT DISTINCT CAST ( + 85 AS INTEGER ) FROM tab2 cor0
----
85

query I rowsort
SELECT ALL + 55 * col0 FROM tab0 AS cor0
----
1320
1925
4895

query I rowsort
SELECT DISTINCT + 85 AS col1 FROM tab2, tab2 AS cor0
----
85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 64 col2 FROM tab1 AS cor0
----
-64
-64
-64

query I rowsort
SELECT + + col0 * - 56 FROM tab2 AS cor0
----
-392
-4368
-4424

onlyif mysql # use DIV operator for integer division
query I rowsort label-5858
SELECT - cor0.col0 + col0 DIV cor0.col2 AS col1 FROM tab0 cor0
----
-24
-88
0

skipif mysql # not compatible
query I rowsort label-5858
SELECT - cor0.col0 + col0 / cor0.col2 AS col1 FROM tab0 cor0
----
-24
-88
0

query I rowsort
SELECT + cor0.col2 * 62 FROM tab0, tab1 AS cor0
----
9 values hashing to 0e17897f1fc9f2832721077754b3bbd6

query I rowsort
SELECT col2 + - cor0.col2 - col2 * col1 FROM tab0 AS cor0
----
-2838
-7462
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-5861
SELECT ALL + col0 + col0 DIV col1 AS col0 FROM tab2 cor0
----
7
79
83

skipif mysql # not compatible
query I rowsort label-5861
SELECT ALL + col0 + col0 / col1 AS col0 FROM tab2 cor0
----
7
79
83

query I rowsort
SELECT + + 27 + - col1 * 20 AS col2 FROM tab1 cor0
----
-173
-233
-493

query I rowsort
SELECT ALL + + ( + col2 ) AS col1 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT 41 + col1 * - 46 FROM tab0 AS cor0
----
-3915
-4145
-4421

query I rowsort
SELECT - - col1 * + col0 + col2 * + 53 AS col1 FROM tab1 cor0
----
2940
3661
6128

query I rowsort
SELECT ALL 3 + - col1 FROM tab0 AS cor0
----
-83
-88
-94

query I rowsort
SELECT - - col2 + + 64 AS col0 FROM tab0 AS cor0
----
146
65
97

query I rowsort
SELECT - col2 * - 54 + col1 * + col2 AS col0 FROM tab2 AS cor0
----
2295
2698
2938

query I rowsort
SELECT ALL + col2 * + cor0.col0 AS col1 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT ALL col1 + 38 FROM tab1 AS cor0
----
48
51
64

query I rowsort
SELECT + col2 + ( - col2 + + col1 ) AS col0 FROM tab2 AS cor0
----
17
31
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 77 col0 FROM tab1 AS cor0
----
77
77
77

query I rowsort
SELECT + + 4 + col1 AS col2 FROM tab2 AS cor0
----
21
35
63

query I rowsort
SELECT 15 + - col1 FROM tab0 AS cor0
----
-71
-76
-82

query I rowsort
SELECT DISTINCT - - cor0.col2 + - col2 * + col2 FROM tab0 AS cor0
----
-1056
-6642
0

query I rowsort
SELECT ALL + - 69 + col1 AS col0 FROM tab0 AS cor0
----
17
22
28

query I rowsort
SELECT ALL - + 30 + + cor0.col1 AS col2 FROM tab0 AS cor0
----
56
61
67

onlyif mysql # use DIV operator for integer division
query I rowsort label-5878
SELECT ALL - col2 DIV + col2 - - CAST( col0 AS SIGNED ) * cor0.col1 AS col0 FROM tab1 cor0
----
1039
639
77

skipif mysql # not compatible
query I rowsort label-5878
SELECT ALL - col2 / + col2 - - CAST ( col0 AS INTEGER ) * cor0.col1 AS col0 FROM tab1 cor0
----
1039
639
77

onlyif mysql # use DIV operator for integer division
query I rowsort label-5879
SELECT cor0.col2 DIV + col2 AS col2 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5879
SELECT cor0.col2 / + col2 AS col2 FROM tab1 AS cor0
----
1
1
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-5880
SELECT ALL + col1 * col1 DIV - 1 AS col0 FROM tab2 AS cor0
----
-289
-3481
-961

skipif mysql # not compatible
query I rowsort label-5880
SELECT ALL + col1 * col1 / - 1 AS col0 FROM tab2 AS cor0
----
-289
-3481
-961

onlyif mysql # use DIV operator for integer division
query I rowsort label-5881
SELECT DISTINCT ( 52 ) DIV + col0 FROM tab1 AS cor0
----
0
17

skipif mysql # not compatible
query I rowsort label-5881
SELECT DISTINCT ( 52 ) / + col0 FROM tab1 AS cor0
----
0
17

query I rowsort
SELECT - 85 + col2 AS col2 FROM tab2 AS cor0
----
-47
-58
-59

query I rowsort
SELECT ALL col1 + - ( - col1 ) FROM tab0
----
172
182
194

query I rowsort
SELECT - ( 57 ) FROM tab0, tab1 AS cor0
----
9 values hashing to 520dc393896969e02a72ab6c5d92126b

query I rowsort
SELECT 55 + - cor0.col0 * - col2 AS col2 FROM tab2 AS cor0
----
2083
244
3057

query I rowsort
SELECT - ( - col1 ) - - col0 AS col2 FROM tab0 cor0
----
110
132
180

query I rowsort
SELECT 46 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 31818c9d4d325eb248735c97cb1dce39

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2, tab1 cor1, tab0 AS cor2, tab1 AS cor3
----
3645 values hashing to f3ede863c793df0de5c26c654290b3b7

query I rowsort
SELECT 63 FROM tab0, tab0 cor0
----
9 values hashing to c3eea92c46f2c49716f386a58b575025

query I rowsort
SELECT 3 * 77 * col1 AS col2 FROM tab1
----
2310
3003
6006

query I rowsort
SELECT - 72 + - 12 AS col1 FROM tab1
----
-84
-84
-84

query I rowsort
SELECT - 76 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to f8b6589bc7503fc720ca5430e3569317

query I rowsort
SELECT col2 * ( - col0 ) + + col0 AS col1 FROM tab0 AS cor0
----
-7209
-768
0

query I rowsort
SELECT ( 35 ) FROM tab0 AS cor0
----
35
35
35

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5895
SELECT - CAST( NULL AS SIGNED ) + ( + col1 ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5895
SELECT - CAST ( NULL AS INTEGER ) + ( + col1 ) AS col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT + 72 - tab1.col2 AS col1 FROM tab1
----
-24
15
18

query I rowsort
SELECT + 95 * + col1 FROM tab1 AS cor0
----
1235
2470
950

query I rowsort
SELECT DISTINCT - + 80 FROM tab1 AS cor0
----
-80

query I rowsort
SELECT ALL 42 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 325aada2239b6fe1fe2d843515ae8c5e

onlyif mysql # use DIV operator for integer division
query I rowsort label-5900
SELECT DISTINCT + col1 * col2 * - 87 + ( col1 ) DIV ( ( - col0 ) ) AS col0 FROM tab2 AS cor0
----
-133458
-56202
-72823

skipif mysql # not compatible
query I rowsort label-5900
SELECT DISTINCT + col1 * col2 * - 87 + ( col1 ) / ( ( - col0 ) ) AS col0 FROM tab2 AS cor0
----
-133458
-56202
-72823

query I rowsort
SELECT ALL - 93 * + col0 + col0 - ( col0 ) FROM tab2 cor0
----
-651
-7254
-7347

query I rowsort
SELECT ALL - ( cor0.col2 ) * - 87 AS col1 FROM tab1 AS cor0
----
4698
4959
8352

onlyif mysql # use DIV operator for integer division
query I rowsort label-5903
SELECT - + col2 DIV + col0 + - 43 AS col1 FROM tab0 AS cor0
----
-43
-43
-44

skipif mysql # not compatible
query I rowsort label-5903
SELECT - + col2 / + col0 + - 43 AS col1 FROM tab0 AS cor0
----
-43
-43
-44

query I rowsort
SELECT DISTINCT - col0 * + col1 - 12 AS col0 FROM tab1 AS cor0
----
-1052
-652
-90

query I rowsort
SELECT - 75 * + col2 + - ( + ( cor0.col2 ) ) AS col1 FROM tab2 AS cor0
----
-1976
-2052
-2888

query I rowsort
SELECT DISTINCT - col0 + + col1 * 88 AS col1 FROM tab0 AS cor0
----
7544
7919
8501

onlyif mysql # use DIV operator for integer division
query I rowsort label-5907
SELECT DISTINCT + + col2 DIV ( + col0 ) FROM tab0 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-5907
SELECT DISTINCT + + col2 / ( + col0 ) FROM tab0 AS cor0
----
0
1

query I rowsort
SELECT ALL 14 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 83e5779d2487d12495e7d816c797264f

query I rowsort
SELECT DISTINCT - - col0 + + 97 AS col2 FROM tab0 AS cor0
----
121
132
186

query I rowsort
SELECT + + col2 * 39 + - col2 * + col0 + - col0 FROM tab1 AS cor0
----
-1489
-4016
1941

query I rowsort
SELECT + col1 - - 72 * col2 FROM tab1 cor0
----
3914
4114
6925

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5912
SELECT DISTINCT + CAST( NULL AS SIGNED ) * col2 AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5912
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * col2 AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort
SELECT + - CAST ( + col1 AS REAL ) * + col0 + col1 - - col1 FROM tab2 AS cor0
----
-1309
-155
-4484

query I rowsort
SELECT - 70 + 72 + - col0 FROM tab0 AS cor0
----
-22
-33
-87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + col2 * + col2 * + col2 + + 35 col0 FROM tab1 AS cor0
----
157553
185285
884867

query I rowsort
SELECT ALL + - col1 * 20 + col1 FROM tab0 AS cor0
----
-1634
-1729
-1843

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 - - col1 col1 FROM tab2 AS cor0
----
118
34
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + - col0 col1 FROM tab1 AS cor0
----
-121
-176
-57

query I rowsort
SELECT ALL col2 * ( - col1 ) AS col1 FROM tab0
----
-2838
-7462
-97

query I rowsort
SELECT - ( + col0 ) * + col0 + - col0 FROM tab0 AS cor0
----
-1260
-600
-8010

query I rowsort
SELECT ALL + 16 + + col1 * cor0.col1 FROM tab1 AS cor0
----
116
185
692

query I rowsort
SELECT DISTINCT - 15 * - col0 FROM tab1 AS cor0
----
1200
45
960

query I rowsort
SELECT ALL col2 AS col0 FROM tab1 WHERE NULL BETWEEN NULL AND NULL
----

query I rowsort
SELECT col0 + - col0 * col1 * col0 FROM tab0
----
-118790
-49512
-720722

query I rowsort
SELECT ALL - col0 * - cor0.col2 + col1 + col0 FROM tab0 AS cor0
----
167
7478
902

query I rowsort
SELECT DISTINCT - col2 + - col1 * - col2 FROM tab1
----
1152
1350
513

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col1 * - col1 <= - tab2.col2 + col0 - + col2
----

query I rowsort
SELECT col1 + col1 * + col1 + col0 FROM tab2
----
3618
385
999

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * - col2 + col1 * col1 col0 FROM tab1
----
1417
2080
670

query I rowsort
SELECT tab2.col2 * - col2 * col0 AS col2 FROM tab2 WHERE col2 / col1 BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT DISTINCT - col0 + - cor0.col0 + + col0 FROM tab0 cor0
----
-24
-35
-89

onlyif mysql # use DIV operator for integer division
query I rowsort label-5932
SELECT + col0 DIV col1 + cor0.col2 + + col2 AS col2 FROM tab1 cor0
----
108
120
198

skipif mysql # not compatible
query I rowsort label-5932
SELECT + col0 / col1 + cor0.col2 + + col2 AS col2 FROM tab1 cor0
----
108
120
198

query I rowsort
SELECT ALL - col1 + col0 + + col1 AS col0 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT DISTINCT - col2 * - col2 FROM tab2 WHERE NOT ( NULL ) BETWEEN NULL AND NULL
----

query I rowsort
SELECT col1 * col1 + col2 * col1 + col2 * col2 AS col2 FROM tab0
----
11323
22467
9507

query I rowsort
SELECT col0 + - col1 * col2 FROM tab0
----
-2814
-62
-7373

query I rowsort
SELECT DISTINCT col2 + + col2 * col1 AS col0 FROM tab1
----
1344
1458
627

query I rowsort
SELECT col2 + + col0 * + col1 FROM tab1
----
1136
132
697

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL NOT IN ( + col0 )
----

query I rowsort
SELECT - col1 FROM tab1 WHERE - col1 > col0
----

query I rowsort
SELECT DISTINCT - col1 + + col0 / + col2 FROM tab2 WHERE NOT ( - col1 ) NOT IN ( col2 + + tab2.col0 * col0 )
----

query I rowsort
SELECT ALL - col0 FROM tab1 WHERE - col0 * + col1 <= col2
----
-3
-64
-80

onlyif mysql # use DIV operator for integer division
query I rowsort label-5943
SELECT + + col2 + col0 DIV col2 FROM tab1 AS cor0
----
54
58
96

skipif mysql # not compatible
query I rowsort label-5943
SELECT + + col2 + col0 / col2 FROM tab1 AS cor0
----
54
58
96

query I rowsort
SELECT ALL - + col2 * cor0.col2 + - col1 + + cor0.col1 * + col2 AS col1 FROM tab0 AS cor0
----
-1
1663
647

query I rowsort
SELECT ALL - cor0.col2 * - col0 - + cor0.col0 FROM tab2 AS cor0
----
182
1950
2923

query I rowsort
SELECT + col1 + + col2 * + col0 AS col0 FROM tab2 AS cor0
----
2087
220
3019

query I rowsort
SELECT DISTINCT - col2 + + col2 + col1 FROM tab2 AS cor0
----
17
31
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * col1 + - col0 col0 FROM tab2 AS cor0
----
1264
210
4524

query I rowsort
SELECT ALL - + col0 * cor0.col1 + + cor0.col1 AS col1 FROM tab0 AS cor0
----
-1978
-3298
-8008

query I rowsort
SELECT + + col1 * col1 + - col2 AS col2 FROM tab1 AS cor0
----
43
622
73

query I rowsort
SELECT DISTINCT + col0 + col1 * - col0 AS col0 FROM tab2 AS cor0
----
-1264
-210
-4524

query I rowsort
SELECT + tab0.col0 + col1 * - col2 + - col1 AS col0 FROM tab0
----
-159
-2900
-7464

query I rowsort
SELECT ALL col2 * col0 + - col1 AS col1 FROM tab0 cor0
----
-62
706
7207

query I rowsort
SELECT ALL + - col2 + + col0 * - col0 FROM tab2 AS cor0
----
-6110
-6279
-76

query I rowsort
SELECT ALL col1 + - col1 * col1 FROM tab2
----
-272
-3422
-930

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( col0 / + col1 ) <> NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-5957
SELECT - col2 DIV col1 + + col2 FROM tab0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-5957
SELECT - col2 / col1 + + col2 FROM tab0
----
1
33
82

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND col1 / - col0
----

query I rowsort
SELECT + cor0.col1 FROM tab1, tab2 AS cor0 CROSS JOIN tab2
----
27 values hashing to 7599b480125de521efed71b5b2413c7d

onlyif mysql # use DIV operator for integer division
query I rowsort label-5960
SELECT ALL - col0 + tab0.col2 * col0 DIV col1 AS col0 FROM tab0
----
-15
-35
-9

skipif mysql # not compatible
query I rowsort label-5960
SELECT ALL - col0 + tab0.col2 * col0 / col1 AS col0 FROM tab0
----
-15
-35
-9

query I rowsort
SELECT DISTINCT - col1 * + col2 + + col1 FROM tab1
----
-1235
-1378
-560

query I rowsort
SELECT ALL col1 * col0 + - col0 FROM tab2
----
1264
210
4524

query I rowsort
SELECT + + col1 + + col1 AS col2 FROM tab1 cor0
----
20
26
52

onlyif mysql # use DIV operator for integer division
query I rowsort label-5964
SELECT col2 DIV ( col0 ) + col0 * + ( - ( - col2 ) ) * + cor0.col0 FROM tab2 AS cor0
----
1326
158184
237158

skipif mysql # not compatible
query I rowsort label-5964
SELECT col2 / ( col0 ) + col0 * + ( - ( - col2 ) ) * + cor0.col0 FROM tab2 AS cor0
----
1326
158184
237158

query I rowsort
SELECT + + col1 + ( + col0 ) FROM tab2 AS cor0
----
137
38
96

query I rowsort
SELECT - col0 + - cor0.col0 AS col2 FROM tab1 cor0
----
-128
-160
-6

query I rowsort
SELECT col0 * + 17 * cor0.col2 FROM tab0 AS cor0
----
124066
13464
595

onlyif mysql # use DIV operator for integer division
query I rowsort label-5968
SELECT DISTINCT col2 DIV col1 + + col2 AS col1 FROM tab1
----
103
56
62

skipif mysql # not compatible
query I rowsort label-5968
SELECT DISTINCT col2 / col1 + + col2 AS col1 FROM tab1
----
103
56
62

query I rowsort
SELECT DISTINCT 69 + col2 AS col1 FROM tab0
----
102
151
70

query I rowsort
SELECT ( col1 ) + + col2 AS col1 FROM tab2
----
55
58
85

query I rowsort
SELECT DISTINCT - col0 + 32 FROM tab1 AS cor0
----
-32
-48
29

query I rowsort
SELECT ALL + col1 * - col0 + - col1 AS col1 FROM tab0 AS cor0
----
-2150
-3492
-8190

query I rowsort
SELECT DISTINCT col2 + - col0 * 93 AS col2 FROM tab0 cor0
----
-2199
-3254
-8195

query I rowsort
SELECT ALL col2 * + col0 + col2 - - col0 AS col0 FROM tab2 AS cor0
----
2132
223
3119

query I rowsort
SELECT ALL + col1 * - 90 AS col2 FROM tab2 AS cor0
----
-1530
-2790
-5310

onlyif mysql # use DIV operator for integer division
query I rowsort label-5976
SELECT - cor0.col0 + ( cor0.col0 ) DIV - col1 AS col1 FROM tab0 AS cor0
----
-24
-35
-89

skipif mysql # not compatible
query I rowsort label-5976
SELECT - cor0.col0 + ( cor0.col0 ) / - col1 AS col1 FROM tab0 AS cor0
----
-24
-35
-89

query I rowsort
SELECT + col0 * tab2.col2 * col0 + + tab2.col0 FROM tab2
----
1330
158262
237237

onlyif mysql # use DIV operator for integer division
query I rowsort label-5978
SELECT DISTINCT + col1 DIV + col0 AS col0 FROM tab1
----
0
8

skipif mysql # not compatible
query I rowsort label-5978
SELECT DISTINCT + col1 / + col0 AS col0 FROM tab1
----
0
8

onlyif mysql # use DIV operator for integer division
query I rowsort label-5979
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-5979
SELECT - col0 / col1 col0 FROM tab0
----
0
0
0

query I rowsort
SELECT ALL col0 + - col1 - + col0 FROM tab0
----
-86
-91
-97

query I rowsort
SELECT DISTINCT + col1 + col2 * tab2.col1 * + col1 FROM tab2
----
10999
25978
90565

query III rowsort
SELECT ALL * FROM tab2 WHERE + col2 * + col2 >= ( NULL )
----

query I rowsort
SELECT col0 FROM tab0 WHERE NOT NULL <= - col0
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col2 IN ( + col2 + col2 * col1 / + col2 )
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d

query I rowsort
SELECT col2 + col1 * - tab2.col2 AS col1 FROM tab2
----
-1508
-608
-810

query I rowsort
SELECT ALL col1 * col2 + col0 AS col1 FROM tab2
----
1612
725
844

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5987
SELECT - - col0 + - cor0.col0 + - CAST( col0 + + col2 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-121
-176
-57

skipif mysql # not compatible
query I rowsort label-5987
SELECT - - col0 + - cor0.col0 + - CAST ( col0 + + col2 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-121
-176
-57

query I rowsort
SELECT DISTINCT + + 39 * col0 FROM tab2 cor0
----
273
3042
3081

query I rowsort
SELECT - col2 + + cor0.col1 * 77 * + col1 AS col2 FROM tab2 AS cor0
----
22215
268011
73970

onlyif mysql # use DIV operator for integer division
query I rowsort label-5990
SELECT - 69 DIV col2 AS col2 FROM tab1
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-5990
SELECT - 69 / col2 AS col2 FROM tab1
----
-1
-1
0

query I rowsort
SELECT DISTINCT - 17 FROM tab0, tab2 cor0, tab2 AS cor1
----
-17

query I rowsort
SELECT - ( cor1.col2 ) FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 6a43e7f15194af73fe1c83385e6ebebc

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + + col1 col1 FROM tab2 cor0
----
-19
-62
24

query I rowsort
SELECT + + col1 * col2 + + col2 * col2 FROM tab2 AS cor0
----
1566
2090
2210

query I rowsort
SELECT - cor1.col2 FROM tab2 AS cor0 CROSS JOIN tab1, tab1 AS cor1
----
27 values hashing to 44fdcd7cd603352d4d127811d164cc1e

onlyif mysql # use DIV operator for integer division
query I rowsort label-5996
SELECT + col1 * - cor0.col0 * - cor0.col2 - - col0 DIV + cor0.col2 AS col0 FROM tab0 AS cor0
----
3430
664119
68112

skipif mysql # not compatible
query I rowsort label-5996
SELECT + col1 * - cor0.col0 * - cor0.col2 - - col0 / + cor0.col2 AS col0 FROM tab0 AS cor0
----
3430
664119
68112

query I rowsort
SELECT + + col1 * + cor0.col2 FROM tab2 cor0
----
1534
646
837

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 - cor0.col1 * + col2 col2 FROM tab0 AS cor0
----
-2814
-62
-7373

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5999
SELECT DISTINCT + - col1 * - CAST( col2 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
1248
1404
570

skipif mysql # not compatible
query I rowsort label-5999
SELECT DISTINCT + - col1 * - CAST ( col2 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT DISTINCT - cor0.col0 * ( - col1 ) + - cor0.col2 AS col0 FROM tab2 AS cor0
----
1305
190
4576

query I rowsort
SELECT col1 + ( col1 ) FROM tab0 cor0
----
172
182
194

onlyif mysql # use DIV operator for integer division
query I rowsort label-6002
SELECT - col0 * col2 + 8 DIV - col0 + col1 FROM tab0 AS cor0
----
-706
-7207
62

skipif mysql # not compatible
query I rowsort label-6002
SELECT - col0 * col2 + 8 / - col0 + col1 FROM tab0 AS cor0
----
-706
-7207
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 65 + ( - cor0.col0 ) col1 FROM tab2 AS cor0
----
-13
-14
58

query I rowsort
SELECT DISTINCT ( - 23 ) AS col2 FROM tab1 AS cor0
----
-23

onlyif mysql # use DIV operator for integer division
query I rowsort label-6005
SELECT 62 DIV + col1 + col1 AS col0 FROM tab1 AS cor0
----
16
17
28

skipif mysql # not compatible
query I rowsort label-6005
SELECT 62 / + col1 + col1 AS col0 FROM tab1 AS cor0
----
16
17
28

query I rowsort
SELECT DISTINCT col1 + 6 FROM tab0 AS cor0
----
103
92
97

query I rowsort
SELECT - - cor0.col1 + - cor0.col2 * - col1 FROM tab0 AS cor0
----
194
2924
7553

query I rowsort
SELECT + col0 + col0 + col2 AS col2 FROM tab1 AS cor0
----
185
256
60

query I rowsort
SELECT DISTINCT ( col1 ) + - cor0.col0 * col2 FROM tab1 AS cor0
----
-136
-3638
-7667

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab2, tab1 AS cor1, tab1, tab0 AS cor2
----
3645 values hashing to f99537dcc805430f79ac82ef70a4bd59

onlyif mysql # use DIV operator for integer division
query I rowsort label-6011
SELECT - col0 DIV - col0 + col2 FROM tab2 AS cor0
----
27
28
39

skipif mysql # not compatible
query I rowsort label-6011
SELECT - col0 / - col0 + col2 FROM tab2 AS cor0
----
27
28
39

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + cor0.col0 col2 FROM tab1 cor0
----
29
74
93

query I rowsort
SELECT ALL + 18 AS col0 FROM tab1
----
18
18
18

query I rowsort
SELECT DISTINCT + col2 + col0 * col2 AS col2 FROM tab0 AS cor0
----
36
7380
825

query I rowsort
SELECT - col0 * + col0 * col1 + cor0.col1 * col2 AS col1 FROM tab1 AS cor0
----
-40390
-81952
1170

query I rowsort
SELECT ALL + 34 AS col1 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to 4e2ca147a59e0d5661c28cf3e5431caa

query I rowsort
SELECT DISTINCT - - col0 * - cor0.col0 + + col1 * cor0.col1 FROM tab0 AS cor0
----
360
6820
8184

query I rowsort
SELECT col1 * cor0.col0 + - col0 FROM tab2 AS cor0
----
1264
210
4524

query I rowsort
SELECT 94 + + col2 FROM tab1
----
148
151
190

onlyif mysql # use DIV operator for integer division
query I rowsort label-6020
SELECT col2 + col0 * + col0 - col0 DIV - col1 AS col2 FROM tab1
----
4159
63
6502

skipif mysql # not compatible
query I rowsort label-6020
SELECT col2 + col0 * + col0 - col0 / - col1 AS col2 FROM tab1
----
4159
63
6502

query I rowsort
SELECT DISTINCT - col2 * + col1 + col1 AS col1 FROM tab0
----
-2752
-7371
0

query I rowsort
SELECT DISTINCT + col2 * col1 + + col0 + col0 * + tab1.col2 AS col2 FROM tab1
----
1569
4282
9008

onlyif mysql # use DIV operator for integer division
query I rowsort label-6023
SELECT DISTINCT col1 DIV col1 + tab1.col0 FROM tab1
----
4
65
81

skipif mysql # not compatible
query I rowsort label-6023
SELECT DISTINCT col1 / col1 + tab1.col0 FROM tab1
----
4
65
81

query I rowsort
SELECT DISTINCT + col1 * col1 - col2 * col1 * - tab1.col1 FROM tab1
----
16393
37180
5800

query I rowsort
SELECT col1 * + col1 + + col0 AS col1 FROM tab2
----
3559
368
968

onlyif mysql # use DIV operator for integer division
query I rowsort label-6026
SELECT - cor0.col2 DIV + cor0.col1 + + col2 AS col1 FROM tab2 AS cor0
----
26
27
36

skipif mysql # not compatible
query I rowsort label-6026
SELECT - cor0.col2 / + cor0.col1 + + col2 AS col1 FROM tab2 AS cor0
----
26
27
36

onlyif mysql # use DIV operator for integer division
query I rowsort label-6027
SELECT DISTINCT col0 * tab0.col1 DIV + col1 FROM tab0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-6027
SELECT DISTINCT col0 * tab0.col1 / + col1 FROM tab0
----
24
35
89

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6028
SELECT DISTINCT - CAST( NULL AS DECIMAL ) + - col0 / col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-6028
SELECT DISTINCT - CAST ( NULL AS REAL ) + - col0 / col1 FROM tab2
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-6029
SELECT + col1 DIV - 65 + - col2 DIV col0 FROM tab1
----
-1
-18
0

skipif mysql # not compatible
query I rowsort label-6029
SELECT + col1 / - 65 + - col2 / col0 FROM tab1
----
-1
-18
0

query I rowsort
SELECT + col1 * col0 * col1 - + col2 FROM tab1
----
13424
1974
6343

query I rowsort
SELECT DISTINCT + col2 + + col0 + + col0 AS col1 FROM tab0
----
260
71
81

query I rowsort
SELECT - 54 AS col0 FROM tab0, tab1 cor0
----
9 values hashing to 4ecdb0f1b85f0d4fdc3a826efd9f2342

query I rowsort
SELECT DISTINCT 13 * + col1 * - col1 FROM tab2
----
-12493
-3757
-45253

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * col0 * col0 + + col1 col1 FROM tab1
----
260
40970
83213

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col1 ) + - col1 * tab0.col2 col0 FROM tab0
----
-2752
-7371
0

query I rowsort
SELECT + 33 * col0 * + col0 - col2 FROM tab2
----
1590
200746
205915

query I rowsort
SELECT - col1 + - 92 * col1 AS col0 FROM tab0
----
-7998
-8463
-9021

query I rowsort
SELECT + - col2 * + col2 AS col0 FROM tab1 cor0
----
-2916
-3249
-9216

query I rowsort
SELECT ALL - + col2 * cor0.col2 AS col0 FROM tab0 AS cor0
----
-1
-1089
-6724

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( - col1 ) + col0 col2 FROM tab1 AS cor0
----
29
74
93

onlyif mysql # use DIV operator for integer division
query I rowsort label-6041
SELECT DISTINCT - + col0 + col0 * col1 DIV + col0 col2 FROM tab1 AS cor0
----
-54
-67
23

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6041
SELECT DISTINCT - + col0 + col0 * col1 / + col0 col2 FROM tab1 AS cor0
----
-54
-67
23

query I rowsort
SELECT 48 * cor0.col1 AS col0 FROM tab0 AS cor0
----
4128
4368
4656

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6043
SELECT ALL CAST( col1 + + col0 * col2 AS SIGNED ) AS col2 FROM tab1
----
188
3658
7693

skipif mysql # not compatible
query I rowsort label-6043
SELECT ALL CAST ( col1 + + col0 * col2 AS INTEGER ) AS col2 FROM tab1
----
188
3658
7693

query I rowsort
SELECT DISTINCT - ( + col1 ) * - col1 + col0 FROM tab2 AS cor0
----
3559
368
968

query I rowsort
SELECT ALL ( + cor0.col1 ) * - col0 - col0 FROM tab0 AS cor0
----
-2088
-3430
-8188

query I rowsort
SELECT + - cor1.col0 AS col1 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 4ec304b8ce935f2226e7548d72c2b2f0

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab0 AS cor0 CROSS JOIN tab0, tab2, tab2 AS cor1
----
3645 values hashing to f8426cd4d01ba96a72d7348574fbbc8e

onlyif mysql # use DIV operator for integer division
query I rowsort label-6048
SELECT ( - col1 ) + 80 DIV - 96 AS col0 FROM tab1 AS cor0
----
-10
-13
-26

skipif mysql # not compatible
query I rowsort label-6048
SELECT ( - col1 ) + 80 / - 96 AS col0 FROM tab1 AS cor0
----
-10
-13
-26

query I rowsort
SELECT + + 70 + col2 * ( col1 ) FROM tab1 AS cor0
----
1318
1474
640

query I rowsort
SELECT cor0.col1 AS col0 FROM tab2, tab0 cor0
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc

query I rowsort
SELECT cor0.col0 + - 54 FROM tab2, tab0 AS cor0
----
9 values hashing to 623a1619464c787fe7d10d24f147f1aa

query I rowsort
SELECT + ( - tab2.col2 ) * 85 FROM tab2
----
-2210
-2295
-3230

query I rowsort
SELECT cor0.col2 + 59 FROM tab0, tab2 AS cor0
----
9 values hashing to 9bd299632a86b2bad2ad2e0d84346696

query I rowsort
SELECT ALL + tab1.col2 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17

query I rowsort
SELECT + col2 * col1 + + ( col1 ) AS col2 FROM tab0 AS cor0
----
194
2924
7553

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * + col1 + ( 31 ) * col0 col0 FROM tab1 AS cor0
----
171
2624
3520

query I rowsort
SELECT - 1 AS col2 FROM tab1, tab0 AS cor0, tab0 cor1
----
27 values hashing to 84da757b1b7b0069ce25607f39bc08d9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * + col0 - col1 col1 FROM tab2 AS cor0
----
18
6025
6224

query I rowsort
SELECT ALL + + 7 * + col1 FROM tab0 AS cor0
----
602
637
679

query I rowsort
SELECT DISTINCT - tab2.col0 + col1 + + 70 FROM tab2
----
51
8
94

query I rowsort
SELECT col0 * - 81 FROM tab1
----
-243
-5184
-6480

query I rowsort
SELECT - col1 * + col1 * col0 AS col0 FROM tab2
----
-22831
-271518
-6727

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + col2 * + col2 col0 FROM tab0
----
1175
6815
98

query I rowsort
SELECT DISTINCT + col2 * - 72 FROM tab1 AS cor0
----
-3888
-4104
-6912

query I rowsort
SELECT DISTINCT - + col2 * col0 * + col2 FROM tab2 AS cor0
----
-114076
-5103
-52728

query I rowsort
SELECT - col1 + cor0.col2 + col2 * col2 FROM tab2 AS cor0
----
1465
643
725

query I rowsort
SELECT col1 - col2 AS col1 FROM tab2 cor0
----
-21
33
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 24 + col1 col1 FROM tab1 AS cor0
----
34
37
50

query I rowsort
SELECT DISTINCT 9 * ( - col0 ) FROM tab0 AS cor0
----
-216
-315
-801

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6070
SELECT CAST( + col2 AS SIGNED ) * + col0 + + col1 AS col1 FROM tab2 AS cor0
----
2087
220
3019

skipif mysql # not compatible
query I rowsort label-6070
SELECT CAST ( + col2 AS INTEGER ) * + col0 + + col1 AS col1 FROM tab2 AS cor0
----
2087
220
3019

query I rowsort
SELECT DISTINCT - ( col2 ) * col0 FROM tab2 AS cor0
----
-189
-2028
-3002

onlyif mysql # use DIV operator for integer division
query I rowsort label-6072
SELECT ALL + - col0 + 41 DIV - col0 FROM tab2 AS cor0
----
-12
-78
-79

skipif mysql # not compatible
query I rowsort label-6072
SELECT ALL + - col0 + 41 / - col0 FROM tab2 AS cor0
----
-12
-78
-79

query I rowsort
SELECT - 54 + + cor0.col1 * col0 AS col2 FROM tab1 AS cor0
----
24
586
986

query I rowsort
SELECT - ( + col0 ) * - col1 + + col1 FROM tab1 AS cor0
----
104
1053
650

skipif mysql # not compatible
query I rowsort
SELECT + + CAST ( - cor0.col2 AS REAL ) FROM tab0 AS cor0
----
-1
-33
-82

query I rowsort
SELECT DISTINCT - - 11 * 93 - + col1 FROM tab2 cor0
----
1006
964
992

onlyif mysql # use DIV operator for integer division
query I rowsort label-6077
SELECT DISTINCT + col0 DIV ( + col2 ) AS col2 FROM tab0 AS cor0
----
0
1
35

skipif mysql # not compatible
query I rowsort label-6077
SELECT DISTINCT + col0 / ( + col2 ) AS col2 FROM tab0 AS cor0
----
0
1
35

query I rowsort
SELECT col1 + ( col1 + col2 ) * + cor0.col2 AS col1 FROM tab2 AS cor0
----
1597
2107
2269

query I rowsort
SELECT - 51 + - col0 AS col0 FROM tab2 AS cor0
----
-129
-130
-58

query I rowsort
SELECT - cor0.col2 + + 65 * col0 - col2 * - col1 AS col1 FROM tab2 AS cor0
----
1265
5743
6578

query I rowsort
SELECT + col0 * + 30 FROM tab1
----
1920
2400
90

onlyif mysql # use DIV operator for integer division
query I rowsort label-6082
SELECT ALL + ( ( - col2 ) ) * - col1 DIV col1 AS col1 FROM tab2
----
26
27
38

skipif mysql # not compatible
query I rowsort label-6082
SELECT ALL + ( ( - col2 ) ) * - col1 / col1 AS col1 FROM tab2
----
26
27
38

query I rowsort
SELECT + ( - col1 + + tab2.col2 ) * ( + ( - col2 ) ) FROM tab2
----
-798
108
858

query I rowsort
SELECT - col2 + col2 - - col2 FROM tab2 AS cor0
----
26
27
38

query I rowsort
SELECT - cor0.col0 * + 15 + - col1 FROM tab2 cor0
----
-1202
-1229
-136

query I rowsort
SELECT DISTINCT + + cor0.col2 AS col1 FROM tab1, tab0 AS cor0
----
1
33
82

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6087
SELECT + CAST( - col2 AS SIGNED ) * + col2 + CAST( + col1 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-1003
-6633
96

skipif mysql # not compatible
query I rowsort label-6087
SELECT + CAST ( - col2 AS INTEGER ) * + col2 + CAST ( + col1 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-1003
-6633
96

query I rowsort
SELECT + ( + 59 ) + - col0 * 66 AS col1 FROM tab1 AS cor0
----
-139
-4165
-5221

query I rowsort
SELECT - 64 + - cor0.col2 - + col0 FROM tab2 cor0
----
-168
-181
-98

onlyif mysql # use DIV operator for integer division
query I rowsort label-6090
SELECT - 53 * col1 * - col0 + 45 DIV + col2 col1 FROM tab1 AS cor0
----
33920
4134
55120

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6090
SELECT - 53 * col1 * - col0 + 45 / + col2 col1 FROM tab1 AS cor0
----
33920
4134
55120

query I rowsort
SELECT 40 + + col1 * + col0 AS col2 FROM tab2 AS cor0
----
1383
257
4642

query I rowsort
SELECT - + col0 * col2 + - col0 AS col2 FROM tab2 AS cor0
----
-196
-2106
-3081

query I rowsort
SELECT - ( - 39 + - col1 ) * - col0 FROM tab0
----
-11570
-3000
-4760

query I rowsort
SELECT + - cor0.col0 * - col0 + col2 * - col1 * col2 + - col0 AS col1 FROM tab2 cor0
----
-18386
-22557
-33878

query I rowsort
SELECT ALL - col1 * - 0 + col0 FROM tab0
----
24
35
89

query I rowsort
SELECT DISTINCT 59 + - tab0.col2 * 88 AS col0 FROM tab0, tab1 AS cor0
----
-2845
-29
-7157

query I rowsort
SELECT ALL + - col1 * - 25 + col1 FROM tab1 cor0
----
260
338
676

onlyif mysql # use DIV operator for integer division
query I rowsort label-6098
SELECT ALL col0 DIV - 48 AS col1 FROM tab0 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-6098
SELECT ALL col0 / - 48 AS col1 FROM tab0 AS cor0
----
-1
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab0.col1 * + col0 + col1 col1 FROM tab0
----
2150
3492
8190

query I rowsort
SELECT 18 + col2 AS col0 FROM tab0
----
100
19
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * ( col0 ) col0 FROM tab1 AS cor0
----
4096
6400
9

query I rowsort
SELECT + tab0.col0 * col1 * - col1 + + col1 FROM tab0
----
-177418
-329218
-736918

query I rowsort
SELECT ALL 13 + cor0.col1 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to e921e0e42794a07c2713c40a63f683f4

query I rowsort
SELECT ALL 68 FROM tab0, tab2 AS cor0, tab0 cor1
----
27 values hashing to 10aa25f1c6b97582c34521ac6452e0b4

query I rowsort
SELECT - ( 9 ) AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to caf28657beb43049740febe1fa9ded5a

query I rowsort
SELECT DISTINCT - col0 * col0 - ( + col2 + ( col1 ) ) AS col0 FROM tab0 AS cor0
----
-1323
-695
-8094

query I rowsort
SELECT DISTINCT + - cor0.col1 * + cor0.col1 FROM tab0 AS cor0
----
-7396
-8281
-9409

query I rowsort
SELECT - 92 AS col2 FROM tab2, tab0, tab1 AS cor0
----
27 values hashing to a0e6b76227d870d10c4d9f46545a7c83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 - + col0 col2 FROM tab0 AS cor0
----
2
62
62

query I rowsort
SELECT 48 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 0ef571a8722ab7270aa7272c1174b88e

query I rowsort
SELECT DISTINCT - ( + col2 ) + 62 - + col0 FROM tab2
----
-42
-55
28

query I rowsort
SELECT - col0 + - col0 * + col0 FROM tab1
----
-12
-4160
-6480

query I rowsort
SELECT ALL + tab0.col2 * tab0.col0 AS col1 FROM tab0
----
35
7298
792

query I rowsort
SELECT ALL + col1 * - col0 + col1 * + col0 AS col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - cor0.col0 + - ( 95 * cor0.col0 + 98 ) FROM tab2 AS cor0
----
-7586
-7682
-770

query I rowsort
SELECT + col0 - - col1 AS col2 FROM tab2 AS cor0
----
137
38
96

skipif mysql # not compatible
query I rowsort
SELECT + cor0.col0 + CAST ( ( + col1 ) AS REAL ) AS col1 FROM tab0 AS cor0
----
110
132
180

query I rowsort
SELECT ALL + 97 AS col0 FROM tab1, tab0 cor0
----
9 values hashing to 5e0d31ac41981bcdf6a665538a71a09c

onlyif mysql # use DIV operator for integer division
query I rowsort label-6119
SELECT ALL col0 DIV 74 AS col2 FROM tab2
----
0
1
1

skipif mysql # not compatible
query I rowsort label-6119
SELECT ALL col0 / 74 AS col2 FROM tab2
----
0
1
1

query I rowsort
SELECT + + cor1.col0 * - 34 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 2d69ce97aed7fca4bc2804582f381c58

skipif mysql # not compatible
query I rowsort
SELECT ALL + CAST ( - ( col1 ) AS REAL ) * CAST ( col1 AS INTEGER ) AS col2 FROM tab2
----
-289
-3481
-961

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 93 * + ( + col2 ) col1 FROM tab0 AS cor0
----
3069
7626
93

query I rowsort
SELECT ( cor0.col2 ) * col2 FROM tab2 AS cor0
----
1444
676
729

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6124
SELECT CAST( NULL AS SIGNED ) + 67 + col1 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-6124
SELECT CAST ( NULL AS INTEGER ) + 67 + col1 col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-6125
SELECT - 52 + col0 DIV cor0.col1 AS col2 FROM tab2 AS cor0
----
-48
-51
-52

skipif mysql # not compatible
query I rowsort label-6125
SELECT - 52 + col0 / cor0.col1 AS col2 FROM tab2 AS cor0
----
-48
-51
-52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * + cor0.col1 col1 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT DISTINCT + + 27 * - col2 AS col2 FROM tab2 cor0
----
-1026
-702
-729

onlyif mysql # use DIV operator for integer division
query I rowsort label-6128
SELECT - 4 DIV - col0 AS col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6128
SELECT - 4 / - col0 AS col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - 94 AS col0 FROM tab2 AS cor0
----
-94

query I rowsort
SELECT ALL - + ( cor0.col0 ) FROM tab0 cor0
----
-24
-35
-89

query I rowsort
SELECT ALL - 30 AS col1 FROM tab1, tab0 AS cor0 CROSS JOIN tab0, tab2 AS cor1, tab1 AS cor2, tab1 AS cor3
----
729 values hashing to a9cbfcbe609af627165798726e16b637

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6132
SELECT ALL - + cor0.col2 + + col1 + - CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6132
SELECT ALL - + cor0.col2 + + col1 + - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - cor0.col1 * + col2 + col2 FROM tab1 cor0
----
-1152
-1350
-513

query I rowsort
SELECT ALL - ( + col2 ) + 18 FROM tab2 AS cor0
----
-20
-8
-9

query I rowsort
SELECT DISTINCT + 64 + + cor0.col2 FROM tab1 AS cor0
----
118
121
160

query I rowsort
SELECT DISTINCT + - 99 * col2 + col2 FROM tab2 cor0
----
-2548
-2646
-3724

query I rowsort
SELECT ALL - + col2 * - col1 + col1 + col2 AS col2 FROM tab1 AS cor0
----
1357
1484
637

query I rowsort
SELECT ALL + - ( col1 ) * + col1 * + col0 + + col1 AS col2 FROM tab2 AS cor0
----
-22814
-271459
-6696

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 76 col1 FROM tab0 AS cor0
----
76
76
76

query I rowsort
SELECT + col2 * cor0.col2 + 10 AS col0 FROM tab2 AS cor0
----
1454
686
739

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6141
SELECT col1 + CAST( col0 AS SIGNED ) * col0 AS col0 FROM tab2 AS cor0
----
6143
6258
80

skipif mysql # not compatible
query I rowsort label-6141
SELECT col1 + CAST ( col0 AS INTEGER ) * col0 AS col0 FROM tab2 AS cor0
----
6143
6258
80

query I rowsort
SELECT ( 94 ) FROM tab1, tab2 AS cor0
----
9 values hashing to b0ffb7527f4fbf44f30945e1ccb58c24

onlyif mysql # use DIV operator for integer division
query I rowsort label-6143
SELECT + + col2 * 0 DIV + col2 col0 FROM tab1 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6143
SELECT + + col2 * 0 / + col2 col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + - cor0.col1 * - col2 AS col2 FROM tab2 AS cor0
----
1534
646
837

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 10 - - col2 col2 FROM tab2
----
36
37
48

onlyif mysql # use DIV operator for integer division
query I rowsort label-6146
SELECT DISTINCT + col0 + - 82 * col1 DIV col1 col1 FROM tab0 AS cor0
----
-47
-58
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6146
SELECT DISTINCT + col0 + - 82 * col1 / col1 col1 FROM tab0 AS cor0
----
-47
-58
7

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6147
SELECT ALL + CAST( NULL AS SIGNED ) - col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6147
SELECT ALL + CAST ( NULL AS INTEGER ) - col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6148
SELECT + CAST( NULL AS SIGNED ) AS col2 FROM tab1, tab2 AS cor0, tab0 AS cor1, tab0 AS cor2
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c

skipif mysql # not compatible
query I rowsort label-6148
SELECT + CAST ( NULL AS INTEGER ) AS col2 FROM tab1, tab2 AS cor0, tab0 AS cor1, tab0 AS cor2
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c

query I rowsort
SELECT DISTINCT 88 + + col2 * cor0.col1 + ( ( + cor0.col0 ) ) AS col2 FROM tab0 AS cor0
----
220
2950
7639

onlyif mysql # use DIV operator for integer division
query I rowsort label-6150
SELECT + + 81 + - col0 DIV col2 AS col2 FROM tab1 AS cor0
----
80
81
81

skipif mysql # not compatible
query I rowsort label-6150
SELECT + + 81 + - col0 / col2 AS col2 FROM tab1 AS cor0
----
80
81
81

query I rowsort
SELECT ALL - 31 + - col0 FROM tab0 AS cor0
----
-120
-55
-66

query I rowsort
SELECT DISTINCT 71 + + col1 - col0 FROM tab1 AS cor0
----
17
4
94

query I rowsort
SELECT DISTINCT col0 + 61 AS col2 FROM tab2
----
139
140
68

query I rowsort
SELECT 38 - col2 AS col1 FROM tab0
----
-44
37
5

onlyif mysql # use DIV operator for integer division
query I rowsort label-6155
SELECT DISTINCT - ( 3 ) DIV - col0 + - 44 AS col0 FROM tab2
----
-44

skipif mysql # not compatible
query I rowsort label-6155
SELECT DISTINCT - ( 3 ) / - col0 + - 44 AS col0 FROM tab2
----
-44

onlyif mysql # use DIV operator for integer division
query I rowsort label-6156
SELECT ALL 94 DIV ( - col0 * + 42 + 10 ) FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6156
SELECT ALL 94 / ( - col0 * + 42 + 10 ) FROM tab2
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab0.col0 + 0 col1 FROM tab0
----
24
35
89

query I rowsort
SELECT + ( - col1 ) - + tab1.col0 FROM tab1
----
-29
-74
-93

skipif mysql # not compatible
query I rowsort
SELECT ALL - - CAST ( col0 AS REAL ) AS col1 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT + col0 * + col0 * col1 AS col2 FROM tab2
----
106097
1519
358956

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( + tab0.col2 ) * + col0 col1 FROM tab0
----
-35
-7298
-792

query I rowsort
SELECT - col1 * 68 - 34 * + col2 AS col0 FROM tab2 AS cor0
----
-2448
-3026
-4896

onlyif mysql # use DIV operator for integer division
query I rowsort label-6163
SELECT cor0.col0 DIV - 7 + cor0.col0 AS col1 FROM tab0 cor0
----
21
30
77

skipif mysql # not compatible
query I rowsort label-6163
SELECT cor0.col0 / - 7 + cor0.col0 AS col1 FROM tab0 cor0
----
21
30
77

onlyif mysql # use DIV operator for integer division
query I rowsort label-6164
SELECT DISTINCT + - col2 * - ( + col0 ) + col0 DIV col2 AS col2 FROM tab0 AS cor0
----
70
7299
792

skipif mysql # not compatible
query I rowsort label-6164
SELECT DISTINCT + - col2 * - ( + col0 ) + col0 / col2 AS col2 FROM tab0 AS cor0
----
70
7299
792

query I rowsort
SELECT - cor0.col2 + 58 AS col1 FROM tab2 AS cor0
----
20
31
32

onlyif mysql # use DIV operator for integer division
query I rowsort label-6166
SELECT DISTINCT + col1 DIV col1 col2 FROM tab0 AS cor0
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6166
SELECT DISTINCT + col1 / col1 col2 FROM tab0 AS cor0
----
1

query I rowsort
SELECT DISTINCT col0 * + col1 + + col1 + - col1 AS col0 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT - col0 * - col2 + cor0.col0 FROM tab0 cor0
----
70
7387
816

onlyif mysql # use DIV operator for integer division
query I rowsort label-6169
SELECT cor0.col0 DIV + tab0.col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

skipif mysql # not compatible
query I rowsort label-6169
SELECT cor0.col0 / + tab0.col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query I rowsort
SELECT + col0 * - col0 - cor0.col2 FROM tab0 cor0
----
-1226
-609
-8003

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab0.col0 col2 FROM tab0, tab1, tab0 AS cor0
----
24
35
89

query I rowsort
SELECT - col0 + col1 + tab2.col1 * - col2 FROM tab2
----
-1553
-708
-813

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6173
SELECT - CAST( + cor0.col0 AS SIGNED ) + col0 col0 FROM tab2 cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6173
SELECT - CAST ( + cor0.col0 AS INTEGER ) + col0 col0 FROM tab2 cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-6174
SELECT DISTINCT col0 + - col1 DIV ( col1 * CAST( col2 AS SIGNED ) ) FROM tab1
----
3
64
80

skipif mysql # not compatible
query I rowsort label-6174
SELECT DISTINCT col0 + - col1 / ( col1 * CAST ( col2 AS INTEGER ) ) FROM tab1
----
3
64
80

query I rowsort
SELECT + 92 FROM tab2, tab1 AS cor0
----
9 values hashing to 516fa45c8b06f9f67d6e500bfd435c1a

query I rowsort
SELECT ALL col0 * - 72 * + col0 + + cor0.col1 * col0 FROM tab0 AS cor0
----
-39408
-562213
-84805

query I rowsort
SELECT + col1 * - ( - tab0.col0 * col2 ) FROM tab0
----
3395
664118
68112

query I rowsort
SELECT col2 - - 73 FROM tab0
----
106
155
74

query I rowsort
SELECT cor1.col2 * + 23 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 30facd8808564b2c86ce04a6f0a4a630

query I rowsort
SELECT DISTINCT - col0 * col1 * tab1.col2 FROM tab1
----
-36480
-4212
-99840

query I rowsort
SELECT ALL ( 42 * col2 ) AS col1 FROM tab2
----
1092
1134
1596

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6182
SELECT DISTINCT - + ( 77 ) * col2 * - CAST( 41 + - col2 AS SIGNED ) FROM tab2 AS cor0
----
29106
30030
8778

skipif mysql # not compatible
query I rowsort label-6182
SELECT DISTINCT - + ( 77 ) * col2 * - CAST ( 41 + - col2 AS INTEGER ) FROM tab2 AS cor0
----
29106
30030
8778

query I rowsort
SELECT 41 + + col2 * - col1 AS col2 FROM tab2
----
-1493
-605
-796

query I rowsort
SELECT + 16 * + col2 FROM tab2 AS cor0
----
416
432
608

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6185
SELECT ALL col1 + col0 * - CAST( 79 AS SIGNED ) * col1 AS col0 FROM tab1
----
-50550
-6136
-82147

skipif mysql # not compatible
query I rowsort label-6185
SELECT ALL col1 + col0 * - CAST ( 79 AS INTEGER ) * col1 AS col0 FROM tab1
----
-50550
-6136
-82147

onlyif mysql # use DIV operator for integer division
query I rowsort label-6186
SELECT ALL + col1 + col0 DIV col0 FROM tab2 cor0
----
18
32
60

skipif mysql # not compatible
query I rowsort label-6186
SELECT ALL + col1 + col0 / col0 FROM tab2 cor0
----
18
32
60

query I rowsort
SELECT DISTINCT + 35 AS col1 FROM tab0 AS cor0
----
35

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col2 + col2 * col1 col1 FROM tab1 AS cor0
----
1152
1350
513

query I rowsort
SELECT ALL col2 * + col0 AS col1 FROM tab2 cor0
----
189
2028
3002

query I rowsort
SELECT DISTINCT + 45 * + col0 FROM tab2 AS cor0
----
315
3510
3555

query I rowsort
SELECT DISTINCT + col2 * + cor0.col2 FROM tab0 AS cor0
----
1
1089
6724

onlyif mysql # use DIV operator for integer division
query I rowsort label-6192
SELECT ALL - 48 DIV - col1 col0 FROM tab0 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6192
SELECT ALL - 48 / - col1 col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL 57 + + col1 AS col2 FROM tab0 AS cor0
----
143
148
154

query I rowsort
SELECT ALL + 2 * + col1 FROM tab0
----
172
182
194

query I rowsort
SELECT ALL 84 * + col2 FROM tab1 AS cor0
----
4536
4788
8064

query I rowsort
SELECT + - col0 + col1 * - col0 AS col0 FROM tab1 AS cor0
----
-1120
-704
-81

query I rowsort
SELECT - - cor0.col0 + 18 * 10 + + col1 * col0 FROM tab0 cor0
----
2268
3610
8368

query I rowsort
SELECT + - col0 * ( - col1 ) AS col0 FROM tab1 AS cor0
----
1040
640
78

onlyif mysql # use DIV operator for integer division
query I rowsort label-6199
SELECT - + col2 DIV + col1 + + cor0.col2 * col0 + col0 * + col0 AS col1 FROM tab0 AS cor0
----
1260
1368
15219

skipif mysql # not compatible
query I rowsort label-6199
SELECT - + col2 / + col1 + + cor0.col2 * col0 + col0 * + col0 AS col1 FROM tab0 AS cor0
----
1260
1368
15219

query I rowsort
SELECT + + cor0.col1 * 85 * col1 - - cor0.col1 FROM tab2 AS cor0
----
24582
295944
81716

onlyif mysql # use DIV operator for integer division
query I rowsort label-6201
SELECT col0 * col1 DIV col1 + - col2 + - col1 FROM tab2 AS cor0
----
-51
-7
24

skipif mysql # not compatible
query I rowsort label-6201
SELECT col0 * col1 / col1 + - col2 + - col1 FROM tab2 AS cor0
----
-51
-7
24

onlyif mysql # use DIV operator for integer division
query I rowsort label-6202
SELECT DISTINCT - 57 DIV col1 + + cor0.col2 + col1 * col2 * - col1 AS col1 FROM tab1 AS cor0
----
-16132
-36452
-5648

skipif mysql # not compatible
query I rowsort label-6202
SELECT DISTINCT - 57 / col1 + + cor0.col2 + col1 * col2 * - col1 AS col1 FROM tab1 AS cor0
----
-16132
-36452
-5648

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - cor0.col2 + - cor0.col2 col2 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT ALL - ( - cor0.col0 ) + - col2 + - 29 AS col1 FROM tab1 AS cor0
----
-22
-45
-80

query I rowsort
SELECT ALL - col2 * + col2 + col0 FROM tab1 cor0
----
-2913
-3185
-9136

query I rowsort
SELECT ALL tab1.col1 AS col0 FROM tab0, tab0 AS cor0 CROSS JOIN tab1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892

onlyif mysql # use DIV operator for integer division
query I rowsort label-6207
SELECT DISTINCT - col0 * col2 DIV col2 col0 FROM tab0
----
-24
-35
-89

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6207
SELECT DISTINCT - col0 * col2 / col2 col0 FROM tab0
----
-24
-35
-89

query I rowsort
SELECT DISTINCT - 88 + - cor0.col2 FROM tab2 AS cor0
----
-114
-115
-126

query I rowsort
SELECT + - col2 + col0 * + cor0.col0 FROM tab1 AS cor0
----
-45
4039
6304

query I rowsort
SELECT - 47 * col2 + col1 FROM tab2 cor0
----
-1163
-1238
-1769

query I rowsort
SELECT + + col0 * + cor0.col2 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT 62 AS col1 FROM tab0, tab1 AS cor0, tab1 cor1
----
27 values hashing to 4911b1417a3797d23dd8f38b6ed05c1b

query I rowsort
SELECT + 21 * col2 AS col0 FROM tab1 AS cor0
----
1134
1197
2016

query I rowsort
SELECT 43 * - tab1.col2 + tab1.col2 * ( + 70 ) * + col2 FROM tab1
----
201798
224979
640992

query I rowsort
SELECT ALL - 36 + + ( - col0 ) FROM tab0 AS cor0
----
-125
-60
-71

query I rowsort
SELECT DISTINCT + col2 + - col2 * col1 AS col0 FROM tab2 AS cor0
----
-1508
-608
-810

query I rowsort
SELECT ALL - 45 * col0 + col1 FROM tab1 cor0
----
-109
-2870
-3587

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 79 + col1 col1 FROM tab1 AS cor0
----
105
89
92

query I rowsort
SELECT ALL - + col1 - - 10 AS col2 FROM tab0 AS cor0
----
-76
-81
-87

query I rowsort
SELECT ALL + - col1 - + 11 AS col2 FROM tab2 AS cor0
----
-28
-42
-70

query I rowsort
SELECT DISTINCT 21 + - col2 AS col0 FROM tab0 AS cor0
----
-12
-61
20

query I rowsort
SELECT DISTINCT - + col2 * cor0.col2 AS col2 FROM tab2 AS cor0
----
-1444
-676
-729

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6223
SELECT DISTINCT CAST( 68 AS SIGNED ) AS col1 FROM tab0, tab2 AS cor0
----
68

skipif mysql # not compatible
query I rowsort label-6223
SELECT DISTINCT CAST ( 68 AS INTEGER ) AS col1 FROM tab0, tab2 AS cor0
----
68

onlyif mysql # use DIV operator for integer division
query I rowsort label-6224
SELECT col2 + col2 DIV 12 AS col1 FROM tab2
----
28
29
41

skipif mysql # not compatible
query I rowsort label-6224
SELECT col2 + col2 / 12 AS col1 FROM tab2
----
28
29
41

query I rowsort
SELECT DISTINCT 59 AS col2 FROM tab2, tab1 AS cor0
----
59

query I rowsort
SELECT ( 63 ) + col2 AS col2 FROM tab2
----
101
89
90

query I rowsort
SELECT col2 - 48 FROM tab1
----
48
6
9

query I rowsort
SELECT + col0 * + col1 + ( + col1 * + col1 + ( ( + col0 ) ) * - 31 ) AS col0 FROM tab2 AS cor0
----
-817
5665
961

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6229
SELECT - col2 * - CAST( 41 AS SIGNED ) + - col0 AS col1 FROM tab2 AS cor0
----
1100
1479
988

skipif mysql # not compatible
query I rowsort label-6229
SELECT - col2 * - CAST ( 41 AS INTEGER ) + - col0 AS col1 FROM tab2 AS cor0
----
1100
1479
988

query I rowsort
SELECT + col0 + - 99 FROM tab2
----
-20
-21
-92

query I rowsort
SELECT DISTINCT + ( + 73 ) FROM tab0, tab1 AS cor0
----
73

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6232
SELECT DISTINCT + col1 - + CAST( NULL AS SIGNED ) * + cor0.col2 * col2 AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6232
SELECT DISTINCT + col1 - + CAST ( NULL AS INTEGER ) * + cor0.col2 * col2 AS col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT + col0 * + 12 + col1 AS col0 FROM tab1 AS cor0
----
62
778
973

query I rowsort
SELECT + col2 + - 87 FROM tab0 cor0
----
-5
-54
-86

query IIIIIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab0, tab1 AS cor1, tab2, tab2 cor2, tab1
----
13122 values hashing to 3ffa835728d87f71cc1bfc3d1bff5ea4

onlyif mysql # use DIV operator for integer division
query I rowsort label-6236
SELECT ALL - + col1 DIV - ( + col2 + + cor0.col0 ) FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6236
SELECT ALL - + col1 / - ( + col2 + + cor0.col0 ) FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT + col1 + + 81 FROM tab2 AS cor0
----
112
140
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col1 * - col2 col1 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT - col1 * ( col2 ) AS col1 FROM tab0 cor0
----
-2838
-7462
-97

query I rowsort
SELECT col1 + - 20 AS col1 FROM tab1 AS cor0
----
-10
-7
6

query I rowsort
SELECT DISTINCT - - col0 * - col0 + col1 * col2 AS col2 FROM tab1 AS cor0
----
-3526
-5152
1395

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 68 col1 FROM tab1 AS cor0
----
68
68
68

query I rowsort
SELECT DISTINCT + col1 * 54 FROM tab2 AS cor0
----
1674
3186
918

query I rowsort
SELECT DISTINCT + 98 * col2 AS col2 FROM tab1 AS cor0
----
5292
5586
9408

query I rowsort
SELECT ALL - col2 + + col1 * cor0.col0 FROM tab1 cor0
----
24
583
944

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col1 * + col1 + cor0.col1 col1 FROM tab1 AS cor0
----
110
182
702

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6247
SELECT col0 / + col2 + + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6247
SELECT col0 / + col2 + + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + + col1 col0 FROM tab0 AS cor0
----
110
132
180

query I rowsort
SELECT DISTINCT col0 * col0 + cor0.col0 * + col1 AS col1 FROM tab0 AS cor0
----
16020
2640
4620

query I rowsort
SELECT - 94 * + col1 * + col2 + 51 FROM tab1 AS cor0
----
-117261
-131925
-53529

onlyif mysql # use DIV operator for integer division
query I rowsort label-6251
SELECT col0 DIV + CAST( col0 AS SIGNED ) FROM tab1 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6251
SELECT col0 / + CAST ( col0 AS INTEGER ) FROM tab1 cor0
----
1
1
1

query I rowsort
SELECT - col0 * 98 * + col2 + + col1 FROM tab1 cor0
----
-15850
-357494
-752627

onlyif mysql # use DIV operator for integer division
query I rowsort label-6253
SELECT DISTINCT + - col1 DIV + ( cor0.col0 ) FROM tab1 AS cor0
----
-8
0

skipif mysql # not compatible
query I rowsort label-6253
SELECT DISTINCT + - col1 / + ( cor0.col0 ) FROM tab1 AS cor0
----
-8
0

skipif mysql # not compatible
query I rowsort
SELECT ALL - + col1 * CAST ( ( col1 ) AS REAL ) FROM tab1 AS cor0
----
-100
-169
-676

query I rowsort
SELECT DISTINCT - col2 * - 32 FROM tab2 cor0
----
1216
832
864

onlyif mysql # use DIV operator for integer division
query I rowsort label-6256
SELECT + col1 DIV ( - col1 * col1 ) AS col2 FROM tab0 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6256
SELECT + col1 / ( - col1 * col1 ) AS col2 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT col2 + col2 + - col0 * - ( col0 ) AS col0 FROM tab1
----
117
4210
6592

query I rowsort
SELECT DISTINCT + col2 + + col1 * - 69 * - 32 AS col1 FROM tab1
----
22137
28800
57462

query I rowsort
SELECT ALL - col0 - - col0 AS col0 FROM tab0
----
0
0
0

query I rowsort
SELECT DISTINCT + col1 * col1 * - col0 AS col2 FROM tab2 AS cor0
----
-22831
-271518
-6727

query I rowsort
SELECT - cor0.col2 * cor0.col2 AS col1 FROM tab0 AS cor0
----
-1
-1089
-6724

query I rowsort
SELECT ALL + + col0 * + col2 + + col0 FROM tab2 AS cor0
----
196
2106
3081

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * col1 col1 FROM tab2 cor0
----
1343
217
4602

query I rowsort
SELECT DISTINCT + col2 + col1 * col0 AS col0 FROM tab2 AS cor0
----
1381
244
4628

query I rowsort
SELECT DISTINCT - - cor0.col0 + - col0 AS col2 FROM tab0 cor0
----
0

query I rowsort
SELECT - col1 * - col1 + - cor0.col0 + col1 * - col0 FROM tab0 AS cor0
----
5308
5979
93

query I rowsort
SELECT - col0 + col2 + + col2 FROM tab2 cor0
----
-26
-3
47

query I rowsort
SELECT - col2 + + col1 + col1 FROM tab0 cor0
----
100
139
193

onlyif mysql # use DIV operator for integer division
query I rowsort label-6269
SELECT DISTINCT col2 DIV col2 + - col0 + - col1 * col0 FROM tab1
----
-1119
-703
-80

skipif mysql # not compatible
query I rowsort label-6269
SELECT DISTINCT col2 / col2 + - col0 + - col1 * col0 FROM tab1
----
-1119
-703
-80

query I rowsort
SELECT col1 + - tab2.col2 * + col2 AS col2 FROM tab2
----
-1427
-617
-698

onlyif mysql # use DIV operator for integer division
query I rowsort label-6271
SELECT col2 DIV cor0.col1 + col0 + col0 * - cor0.col0 AS col1 FROM tab0 AS cor0
----
-1190
-552
-7832

skipif mysql # not compatible
query I rowsort label-6271
SELECT col2 / cor0.col1 + col0 + col0 * - cor0.col0 AS col1 FROM tab0 AS cor0
----
-1190
-552
-7832

query I rowsort
SELECT DISTINCT col0 + - col0 + + col1 AS col1 FROM tab0
----
86
91
97

query I rowsort
SELECT ALL + cor0.col1 * col0 + col2 FROM tab0 AS cor0
----
2097
3396
8181

query I rowsort
SELECT ALL - col1 + - col2 * cor0.col2 * col0 AS col0 FROM tab0 AS cor0
----
-132
-26222
-598527

onlyif mysql # use DIV operator for integer division
query I rowsort label-6275
SELECT DISTINCT col2 + cor0.col1 DIV + col2 FROM tab0 AS cor0
----
35
83
98

skipif mysql # not compatible
query I rowsort label-6275
SELECT DISTINCT col2 + cor0.col1 / + col2 FROM tab0 AS cor0
----
35
83
98

query I rowsort
SELECT + col1 + col2 + + col1 AS col1 FROM tab1 AS cor0
----
106
122
77

onlyif mysql # use DIV operator for integer division
query I rowsort label-6277
SELECT col2 + col2 DIV + col1 FROM tab2
----
26
27
40

skipif mysql # not compatible
query I rowsort label-6277
SELECT col2 + col2 / + col1 FROM tab2
----
26
27
40

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * + col0 col2 FROM tab2 AS cor0
----
189
2028
3002

onlyif mysql # use DIV operator for integer division
query I rowsort label-6279
SELECT DISTINCT - col1 DIV + col0 AS col0 FROM tab1
----
-8
0

skipif mysql # not compatible
query I rowsort label-6279
SELECT DISTINCT - col1 / + col0 AS col0 FROM tab1
----
-8
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + col2 * + col2 * col1 col1 FROM tab0
----
194
611975
93740

query I rowsort
SELECT + col1 * col1 * - col2 FROM tab2 AS cor0
----
-10982
-25947
-90506

query I rowsort
SELECT col0 * + col0 - + col0 FROM tab2
----
42
6006
6162

query I rowsort
SELECT DISTINCT + col1 + col0 * cor0.col2 AS col1 FROM tab1 AS cor0
----
188
3658
7693

query I rowsort
SELECT DISTINCT - tab1.col0 AS col1 FROM tab1 WHERE NULL <> ( NULL ) AND NOT + col2 <= + col1 * col1
----

query I rowsort
SELECT + - col0 * col1 + 60 * col0 FROM tab1 AS cor0
----
102
3200
3760

query I rowsort
SELECT tab0.col2 - + col0 AS col0 FROM tab0
----
-34
-7
9

query III rowsort
SELECT * FROM tab1 WHERE NOT - col2 NOT IN ( col1 + col0 )
----

query I rowsort
SELECT DISTINCT + 32 AS col0 FROM tab0
----
32

query I rowsort
SELECT DISTINCT + 65 FROM tab0, tab2, tab2 AS cor0
----
65

query I rowsort
SELECT DISTINCT col1 - - tab0.col2 AS col2 FROM tab0 WHERE NOT + col0 NOT BETWEEN ( NULL ) AND ( NULL )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE ( NULL ) NOT IN ( + col0 )
----

query I rowsort
SELECT tab0.col1 * - tab0.col2 * col2 FROM tab0
----
-611884
-93654
-97

query III rowsort
SELECT ALL * FROM tab2 WHERE ( col0 / col1 + - col1 ) BETWEEN NULL AND ( - col1 + - col1 * col0 * col0 )
----

query I rowsort
SELECT col0 * col1 * col1 + + col0 FROM tab1
----
13600
2031
6464

onlyif mysql # use DIV operator for integer division
query I rowsort label-6295
SELECT - tab2.col0 DIV - col1 - + col0 FROM tab2
----
-7
-75
-77

skipif mysql # not compatible
query I rowsort label-6295
SELECT - tab2.col0 / - col1 - + col0 FROM tab2
----
-7
-75
-77

onlyif mysql # use DIV operator for integer division
query I rowsort label-6296
SELECT col2 DIV + tab0.col1 + + col1 * col0 AS col1 FROM tab0
----
2064
3395
8099

skipif mysql # not compatible
query I rowsort label-6296
SELECT col2 / + tab0.col1 + + col1 * col0 AS col1 FROM tab0
----
2064
3395
8099

query I rowsort
SELECT ALL col2 AS col0 FROM tab1 WHERE NULL NOT BETWEEN + col2 AND NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NULL >= - col2 * - col2
----

query I rowsort
SELECT DISTINCT + col2 + + col1 * - col2 * + col1 AS col1 FROM tab0 AS cor0
----
-244035
-678960
-9408

query I rowsort
SELECT + col0 FROM tab0 cor0 WHERE NOT col2 BETWEEN col2 * col0 AND - col1
----
24
35
89

onlyif mysql # use DIV operator for integer division
query I rowsort label-6301
SELECT + col2 DIV col0 + col1 FROM tab1
----
10
14
44

skipif mysql # not compatible
query I rowsort label-6301
SELECT + col2 / col0 + col1 FROM tab1
----
10
14
44

query I rowsort
SELECT ALL col1 * + col1 + + col2 AS col1 FROM tab2
----
327
3507
988

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * col1 + col2 col1 FROM tab2
----
1560
684
864

onlyif mysql # use DIV operator for integer division
query I rowsort label-6304
SELECT + col1 + - col1 DIV + col1 + col2 col2 FROM tab1
----
108
66
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6304
SELECT + col1 + - col1 / + col1 + col2 col2 FROM tab1
----
108
66
79

onlyif mysql # use DIV operator for integer division
query I rowsort label-6305
SELECT ALL col0 + col0 + col2 DIV - tab2.col0 AS col1 FROM tab2
----
11
156
158

skipif mysql # not compatible
query I rowsort label-6305
SELECT ALL col0 + col0 + col2 / - tab2.col0 AS col1 FROM tab2
----
11
156
158

query I rowsort
SELECT - col2 * - col2 + - col1 AS col1 FROM tab0
----
-96
1003
6633

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col2 <> NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE col0 IN ( - col1 )
----

query I rowsort
SELECT + col0 AS col0 FROM tab0 WHERE col2 + col1 <> NULL
----

query I rowsort
SELECT + col2 * col1 * + col0 AS col2 FROM tab0
----
3395
664118
68112

onlyif mysql # use DIV operator for integer division
query I rowsort label-6311
SELECT col2 * col2 DIV col0 + - col1 DIV - col2 + - col0 FROM tab1
----
-14
35
969

skipif mysql # not compatible
query I rowsort label-6311
SELECT col2 * col2 / col0 + - col1 / - col2 + - col0 FROM tab1
----
-14
35
969

query I rowsort
SELECT DISTINCT col1 * col0 FROM tab0 WHERE NOT NULL IN ( - col0 - + col0 )
----

query I rowsort
SELECT col1 + - col1 - col0 AS col1 FROM tab0
----
-24
-35
-89

query I rowsort
SELECT col0 + col2 + col0 FROM tab1 WHERE NOT NULL IN ( + col0 + col2 * + col0 )
----

query I rowsort
SELECT + col2 + - col2 * tab2.col2 FROM tab2
----
-1406
-650
-702

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 36 * + col0 col2 FROM tab2
----
252
2808
2844

query I rowsort
SELECT - col2 + + col2 * + col2 FROM tab1 AS cor0
----
2862
3192
9120

query I rowsort
SELECT DISTINCT - col2 * - col1 + + col1 AS col2 FROM tab2 AS cor0
----
1593
663
868

query I rowsort
SELECT - + col0 * col2 + col0 AS col2 FROM tab2 cor0
----
-182
-1950
-2923

query I rowsort
SELECT ( + col2 ) + ( - col2 ) * - col0 AS col2 FROM tab2 AS cor0
----
2054
216
3040

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 20 + col1 col1 FROM tab2 AS cor0
----
-3
11
39

query I rowsort
SELECT - col2 * col1 + col2 * cor0.col2 AS col0 FROM tab1 AS cor0
----
1512
2679
7968

query I rowsort
SELECT ALL - cor0.col1 + + col0 FROM tab0 cor0
----
-2
-62
-62

query I rowsort
SELECT col1 * col0 + + col1 * col1 AS col0 FROM tab0 AS cor0
----
12804
16380
9460

onlyif mysql # use DIV operator for integer division
query I rowsort label-6325
SELECT ALL - cor0.col0 DIV - 52 col1 FROM tab0 AS cor0
----
0
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6325
SELECT ALL - cor0.col0 / - 52 col1 FROM tab0 AS cor0
----
0
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col2 * - 61 col0 FROM tab0 AS cor0
----
2013
5002
61

query I rowsort
SELECT ALL - col0 + cor0.col0 * col1 AS col1 FROM tab0 AS cor0
----
2040
3360
8010

query I rowsort
SELECT - col0 * - col0 + + col0 FROM tab2
----
56
6162
6320

query I rowsort
SELECT - 53 * col2 * col1 AS col1 FROM tab2
----
-34238
-44361
-81302

query I rowsort
SELECT ( col0 ) * 9 + - 73 FROM tab0
----
143
242
728

onlyif mysql # use DIV operator for integer division
query I rowsort label-6331
SELECT DISTINCT 50 * col1 + col2 * ( + col1 + - col2 ) DIV + col1 FROM tab1
----
1242
233
38

skipif mysql # not compatible
query I rowsort label-6331
SELECT DISTINCT 50 * col1 + col2 * ( + col1 + - col2 ) / + col1 FROM tab1
----
1242
233
38

onlyif mysql # use DIV operator for integer division
query I rowsort label-6332
SELECT ALL col0 DIV - cor0.col0 + col2 AS col1 FROM tab1 AS cor0
----
53
56
95

skipif mysql # not compatible
query I rowsort label-6332
SELECT ALL col0 / - cor0.col0 + col2 AS col1 FROM tab1 AS cor0
----
53
56
95

query I rowsort
SELECT DISTINCT + col2 + + ( col1 ) AS col0 FROM tab1 cor0
----
109
67
80

query I rowsort
SELECT ALL - + 12 + 53 FROM tab2 AS cor0
----
41
41
41

query I rowsort
SELECT ALL - ( - col0 ) + - col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + - 86 * cor0.col1 - + cor0.col0 AS col0 FROM tab1 cor0
----
-1198
-2239
-924

query I rowsort
SELECT - + 84 - col2 FROM tab2 AS cor0
----
-110
-111
-122

query I rowsort
SELECT + col2 * + col1 + col1 AS col1 FROM tab1 AS cor0
----
1261
1430
580

query I rowsort
SELECT + col2 + + col0 * - col1 FROM tab2 cor0
----
-1305
-190
-4576

query I rowsort
SELECT + - cor0.col0 * + col0 AS col1 FROM tab1 AS cor0
----
-4096
-6400
-9

query I rowsort
SELECT DISTINCT + 36 + - col2 FROM tab2 AS cor0
----
-2
10
9

query I rowsort
SELECT ALL + col1 * 90 FROM tab2 AS cor0
----
1530
2790
5310

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( col0 ) * + col1 col1 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT DISTINCT - col2 * - col2 + - col1 AS col0 FROM tab0 cor0
----
-96
1003
6633

onlyif mysql # use DIV operator for integer division
query I rowsort label-6345
SELECT col1 DIV - col1 col1 FROM tab2
----
-1
-1
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6345
SELECT col1 / - col1 col1 FROM tab2
----
-1
-1
-1

query I rowsort
SELECT + 52 + 71 FROM tab2 AS cor0
----
123
123
123

query I rowsort
SELECT - - cor0.col1 * 89 + - col1 FROM tab2 cor0
----
1496
2728
5192

query I rowsort
SELECT - col2 * 39 AS col0 FROM tab2 AS cor0
----
-1014
-1053
-1482

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6349
SELECT DISTINCT ( col0 ) / + col2 + + CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-6349
SELECT DISTINCT ( col0 ) / + col2 + + CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL

query I rowsort
SELECT 48 + col2 * col2 FROM tab0 AS cor0
----
1137
49
6772

query I rowsort
SELECT 60 * tab2.col0 - + col0 * col0 AS col0 FROM tab2
----
-1404
-1501
371

query I rowsort
SELECT ALL - 61 - col1 FROM tab1
----
-71
-74
-87

query I rowsort
SELECT DISTINCT - - col2 * col2 - col2 FROM tab1 AS cor0
----
2862
3192
9120

query I rowsort
SELECT DISTINCT - col2 + - col2 + + col1 AS col0 FROM tab0 AS cor0
----
-73
20
95

query I rowsort
SELECT ALL - - col1 * col0 * cor0.col1 FROM tab2 AS cor0
----
22831
271518
6727

query I rowsort
SELECT + col0 * + col1 * + col1 + + col1 FROM tab2 AS cor0
----
22848
271577
6758

query I rowsort
SELECT ALL - 46 + col2 FROM tab0
----
-13
-45
36

query I rowsort
SELECT DISTINCT + col2 * - col1 + - col2 FROM tab1
----
-1344
-1458
-627

query I rowsort
SELECT ALL - col2 * + col0 * + col2 + + col1 FROM tab1
----
-207926
-737267
-8722

query I rowsort
SELECT DISTINCT ( - col0 ) + tab1.col1 AS col2 FROM tab1
----
-54
-67
23

query I rowsort
SELECT ALL col0 + col2 * col1 AS col1 FROM tab1
----
1328
1407
634

query I rowsort
SELECT ALL - tab1.col2 * + 53 + - col2 AS col1 FROM tab1
----
-2916
-3078
-5184

query I rowsort
SELECT + tab1.col2 * ( tab1.col2 ) + col2 AS col1 FROM tab1
----
2970
3306
9312

query I rowsort
SELECT - 96 * + col0 * col2 FROM tab1
----
-15552
-350208
-737280

query I rowsort
SELECT DISTINCT + - col0 * - col2 - col2 AS col2 FROM tab1 cor0
----
108
3591
7584

query I rowsort
SELECT ALL - - col0 + cor0.col2 * - col0 AS col0 FROM tab1 AS cor0
----
-159
-3584
-7600

query I rowsort
SELECT ALL ( + col2 ) * col2 AS col2 FROM tab1 AS cor0
----
2916
3249
9216

query I rowsort
SELECT ALL + col2 + col1 + col0 * col2 FROM tab1 AS cor0
----
242
3715
7789

onlyif mysql # use DIV operator for integer division
query I rowsort label-6369
SELECT ALL - 1 DIV col0 AS col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6369
SELECT ALL - 1 / col0 AS col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + 2 + + col0 * + col0 AS col1 FROM tab0 AS cor0
----
1227
578
7923

onlyif mysql # use DIV operator for integer division
query I rowsort label-6371
SELECT + + 51 + col0 * - col1 DIV cor0.col1 FROM tab1 AS cor0
----
-13
-29
48

skipif mysql # not compatible
query I rowsort label-6371
SELECT + + 51 + col0 * - col1 / cor0.col1 FROM tab1 AS cor0
----
-13
-29
48

query I rowsort
SELECT ALL + col0 + col2 + col1 * - col2 FROM tab0 AS cor0
----
-2781
-61
-7291

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( col2 ) * col1 + + col1 col0 FROM tab2 AS cor0
----
1593
663
868

query I rowsort
SELECT + - 81 FROM tab0 AS cor0
----
-81
-81
-81

query I rowsort
SELECT ALL - col0 * + col1 + + col1 AS col0 FROM tab0 AS cor0
----
-1978
-3298
-8008

query I rowsort
SELECT ALL + + cor0.col0 + + col1 AS col2 FROM tab2 AS cor0
----
137
38
96

query I rowsort
SELECT ALL - col1 + + 55 FROM tab0 AS cor0
----
-31
-36
-42

query I rowsort
SELECT DISTINCT - cor0.col2 * col0 - + col0 AS col0 FROM tab1 AS cor0
----
-165
-3712
-7760

query I rowsort
SELECT DISTINCT ( cor0.col0 ) * - col0 + + col1 + + col0 FROM tab1 AS cor0
----
-4022
-6307
20

query I rowsort
SELECT + - 52 + col2 * cor0.col1 AS col0 FROM tab0 AS cor0
----
2786
45
7410

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6381
SELECT CAST( 73 AS SIGNED ) * + cor0.col0 AS col1 FROM tab1 cor0
----
219
4672
5840

skipif mysql # not compatible
query I rowsort label-6381
SELECT CAST ( 73 AS INTEGER ) * + cor0.col0 AS col1 FROM tab1 cor0
----
219
4672
5840

query I rowsort
SELECT ALL + 45 AS col1 FROM tab0 AS cor0
----
45
45
45

query I rowsort
SELECT ALL ( - ( + col0 ) ) * col1 + - col1 AS col0 FROM tab2
----
-1360
-248
-4661

query I rowsort
SELECT col0 + - col1 + - col1 * + col1 * col0 FROM tab1
----
-13453
-2051
-6346

query I rowsort
SELECT ALL + col0 * - 47 FROM tab0 AS cor0
----
-1128
-1645
-4183

query I rowsort
SELECT DISTINCT + col2 + 90 FROM tab2 AS cor0
----
116
117
128

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6387
SELECT - + CAST( - ( - col2 ) AS SIGNED ) + + col1 FROM tab1 cor0
----
-28
-47
-83

skipif mysql # not compatible
query I rowsort label-6387
SELECT - + CAST ( - ( - col2 ) AS INTEGER ) + + col1 FROM tab1 cor0
----
-28
-47
-83

query I rowsort
SELECT + ( 94 ) AS col1 FROM tab0 AS cor0
----
94
94
94

query I rowsort
SELECT DISTINCT + + col2 * col0 AS col1 FROM tab0 cor0
----
35
7298
792

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6390
SELECT ALL - CAST( - 29 AS SIGNED ) FROM tab1 AS cor0
----
29
29
29

skipif mysql # not compatible
query I rowsort label-6390
SELECT ALL - CAST ( - 29 AS INTEGER ) FROM tab1 AS cor0
----
29
29
29

query I rowsort
SELECT ALL tab1.col0 * + 47 AS col1 FROM tab1
----
141
3008
3760

query I rowsort
SELECT DISTINCT col1 * + col2 * col0 AS col2 FROM tab1
----
36480
4212
99840

query I rowsort
SELECT cor1.col0 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2, tab2 AS cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 * - col1 col1 FROM tab1 AS cor0
----
-100
-169
-676

query I rowsort
SELECT ALL + + col1 + 38 FROM tab2 cor0
----
55
69
97

query I rowsort
SELECT DISTINCT - - col2 - ( col1 ) * col1 * - col0 AS col0 FROM tab2 AS cor0
----
22869
271544
6754

query I rowsort
SELECT + col0 + + col0 * - col0 * col2 AS col2 FROM tab0 AS cor0
----
-1190
-18984
-649433

query I rowsort
SELECT DISTINCT col1 * - 58 * + col2 AS col0 FROM tab2 AS cor0
----
-37468
-48546
-88972

onlyif mysql # use DIV operator for integer division
query I rowsort label-6399
SELECT DISTINCT - - cor0.col0 DIV col0 FROM tab1 cor0
----
1

skipif mysql # not compatible
query I rowsort label-6399
SELECT DISTINCT - - cor0.col0 / col0 FROM tab1 cor0
----
1

query I rowsort
SELECT + + 12 FROM tab2 cor0
----
12
12
12

query I rowsort
SELECT cor0.col1 / + cor0.col2 FROM tab2, tab0 cor0 WHERE NOT NULL < NULL
----

query I rowsort
SELECT ALL 36 * + col0 FROM tab0 cor0
----
1260
3204
864

query I rowsort
SELECT ALL + 85 FROM tab0, tab1, tab1 cor0
----
27 values hashing to e4cf94cf0cc632acff30ad1dac617cb7

query I rowsort
SELECT ALL - 15 * col2 FROM tab2
----
-390
-405
-570

query I rowsort
SELECT ALL - + 53 + + col1 FROM tab1 AS cor0
----
-27
-40
-43

query I rowsort
SELECT + col1 * - col2 + col0 * - ( col2 ) AS col0 FROM tab0 AS cor0
----
-132
-14760
-3630

query I rowsort
SELECT - - 89 - col2 AS col2 FROM tab0 cor0
----
56
7
88

query I rowsort
SELECT - - col2 * col2 * - col1 + - col2 AS col1 FROM tab1 cor0
----
-119904
-32547
-75870

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6409
SELECT + CAST( NULL AS SIGNED ) AS col0 FROM tab2, tab1 cor0, tab0 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-6409
SELECT + CAST ( NULL AS INTEGER ) AS col0 FROM tab2, tab1 cor0, tab0 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 44 col2 FROM tab0, tab0 cor0, tab1 AS cor1
----
27 values hashing to 0cc3e52e781e46962291c3060c6ae73b

query I rowsort
SELECT - col1 * - col1 * - 80 + - col2 FROM tab0 AS cor0
----
-591713
-662562
-752721

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6412
SELECT col1 * CAST( - 47 AS SIGNED ) * col1 + 56 FROM tab0 AS cor0
----
-347556
-389151
-442167

skipif mysql # not compatible
query I rowsort label-6412
SELECT col1 * CAST ( - 47 AS INTEGER ) * col1 + 56 FROM tab0 AS cor0
----
-347556
-389151
-442167

query I rowsort
SELECT - col0 * 61 AS col2 FROM tab1 AS cor0
----
-183
-3904
-4880

query I rowsort
SELECT + + col1 + - ( - cor0.col1 ) * col2 FROM tab2 AS cor0
----
1593
663
868

query I rowsort
SELECT DISTINCT tab0.col0 + - col2 FROM tab0
----
-9
34
7

query I rowsort
SELECT + ( + col1 ) * 78 - - col2 * col0 AS col1 FROM tab1
----
2190
4428
8694

query I rowsort
SELECT DISTINCT + col1 * + col1 + - 65 FROM tab0
----
7331
8216
9344

onlyif mysql # use DIV operator for integer division
query I rowsort label-6418
SELECT + col1 DIV + CAST( col0 * - col0 AS SIGNED ) + - 44 AS col0 FROM tab1 AS cor0
----
-44
-44
-46

skipif mysql # not compatible
query I rowsort label-6418
SELECT + col1 / + CAST ( col0 * - col0 AS INTEGER ) + - 44 AS col0 FROM tab1 AS cor0
----
-44
-44
-46

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6419
SELECT + - col1 * 2 + - col1 * + cor0.col0 + + CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6419
SELECT + - col1 * 2 + - col1 * + cor0.col0 + + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - tab1.col2 * + col2 + + col1 FROM tab1
----
-2890
-3239
-9203

query I rowsort
SELECT - col2 - - cor0.col1 AS col2 FROM tab2 AS cor0
----
-21
33
4

onlyif mysql # use DIV operator for integer division
query I rowsort label-6422
SELECT + col1 * + col1 + col2 DIV - col1 FROM tab1 AS cor0
----
162
674
95

skipif mysql # not compatible
query I rowsort label-6422
SELECT + col1 * + col1 + col2 / - col1 FROM tab1 AS cor0
----
162
674
95

query I rowsort
SELECT ( 98 ) AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to f9dee8c21116f1aed64ac5160e190809

onlyif mysql # use DIV operator for integer division
query I rowsort label-6424
SELECT - + col2 DIV 24 FROM tab1 AS cor0
----
-2
-2
-4

skipif mysql # not compatible
query I rowsort label-6424
SELECT - + col2 / 24 FROM tab1 AS cor0
----
-2
-2
-4

onlyif mysql # use DIV operator for integer division
query I rowsort label-6425
SELECT DISTINCT col1 DIV + 88 col1 FROM tab2 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6425
SELECT DISTINCT col1 / + 88 col1 FROM tab2 AS cor0
----
0

query I rowsort
SELECT ( - 30 ) * + col1 FROM tab1 AS cor0
----
-300
-390
-780

query I rowsort
SELECT DISTINCT - 49 AS col0 FROM tab0 AS cor0
----
-49

query I rowsort
SELECT - col2 * ( + col0 + + col0 ) FROM tab1
----
-15360
-324
-7296

query I rowsort
SELECT - + cor0.col1 * col2 + + ( ( col2 ) ) FROM tab0 AS cor0
----
-2805
-7380
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 * + col2 * 35 + col0 col0 FROM tab1 AS cor0
----
127744
268880
5673

query I rowsort
SELECT - + col0 + col0 * 19 FROM tab0 AS cor0
----
1602
432
630

query I rowsort
SELECT 55 FROM tab1, tab2 AS cor0
----
9 values hashing to 1626bd3008abd9f18cc88cdecf7b64d0

query I rowsort
SELECT 39 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 5ecc4d3de68ae828a2d522dff8571cbf

query I rowsort
SELECT ALL ( - 54 * col2 ) FROM tab1
----
-2916
-3078
-5184

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6435
SELECT DISTINCT cor1.col2 * - CAST( NULL AS SIGNED ) * tab0.col0 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-6435
SELECT DISTINCT cor1.col2 * - CAST ( NULL AS INTEGER ) * tab0.col0 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 65 * + tab1.col2 col2 FROM tab1
----
3510
3705
6240

query I rowsort
SELECT + ( + col2 ) * + col2 + - col0 AS col0 FROM tab2
----
1365
598
722

query I rowsort
SELECT DISTINCT + 86 AS col2 FROM tab1
----
86

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6439
SELECT + col2 + col2 + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6439
SELECT + col2 + col2 + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6440
SELECT + col2 + - cor0.col2 * CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6440
SELECT + col2 + - cor0.col2 * CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 35 - + col1 FROM tab0 cor0
----
-121
-126
-132

onlyif mysql # use DIV operator for integer division
query I rowsort label-6442
SELECT - col2 * col1 - + 70 DIV - 53 FROM tab1 AS cor0
----
-1247
-1403
-569

skipif mysql # not compatible
query I rowsort label-6442
SELECT - col2 * col1 - + 70 / - 53 FROM tab1 AS cor0
----
-1247
-1403
-569

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 53 + + col0 col2 FROM tab1 AS cor0
----
117
133
56

query I rowsort
SELECT ALL col0 - - col1 * + ( - 6 ) AS col0 FROM tab1 AS cor0
----
-153
2
4

onlyif mysql # use DIV operator for integer division
query I rowsort label-6445
SELECT + col2 DIV + col2 + - cor0.col2 col2 FROM tab0 AS cor0
----
-32
-81
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6445
SELECT + col2 / + col2 + - cor0.col2 col2 FROM tab0 AS cor0
----
-32
-81
0

query I rowsort
SELECT ALL + + cor0.col0 * - col1 AS col2 FROM tab1 AS cor0
----
-1040
-640
-78

onlyif mysql # use DIV operator for integer division
query I rowsort label-6447
SELECT 44 * col0 + tab2.col1 * col1 DIV - ( - col0 ) - col2 FROM tab2
----
3441
3450
418

skipif mysql # not compatible
query I rowsort label-6447
SELECT 44 * col0 + tab2.col1 * col1 / - ( - col0 ) - col2 FROM tab2
----
3441
3450
418

query I rowsort
SELECT - 96 FROM tab2, tab2 AS cor0
----
9 values hashing to c89b545346f99713888a7934e4caa539

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6449
SELECT + CAST( + col0 AS SIGNED ) * col2 AS col2 FROM tab0
----
35
7298
792

skipif mysql # not compatible
query I rowsort label-6449
SELECT + CAST ( + col0 AS INTEGER ) * col2 AS col2 FROM tab0
----
35
7298
792

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6450
SELECT - CAST( NULL AS SIGNED ) + - col0 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6450
SELECT - CAST ( NULL AS INTEGER ) + - col0 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 55 + + col1 FROM tab0 AS cor0
----
31
36
42

onlyif mysql # use DIV operator for integer division
query I rowsort label-6452
SELECT ALL col1 DIV + col0 AS col2 FROM tab0 cor0
----
1
2
3

skipif mysql # not compatible
query I rowsort label-6452
SELECT ALL col1 / + col0 AS col2 FROM tab0 cor0
----
1
2
3

query I rowsort
SELECT + - col1 + + col1 * ( col2 ) * col1 FROM tab2 AS cor0
----
10965
25916
90447

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 40 col1 FROM tab2 AS cor0
----
40
40
40

query I rowsort
SELECT + + 45 * - col2 FROM tab0 AS cor0
----
-1485
-3690
-45

query I rowsort
SELECT + col2 + + cor0.col1 * 48 * col1 FROM tab0 AS cor0
----
355041
397570
451633

query I rowsort
SELECT ALL - col0 + - col1 * - 39 FROM tab0 cor0
----
3330
3460
3748

onlyif mysql # use DIV operator for integer division
query I rowsort label-6458
SELECT - 86 DIV + col1 FROM tab0 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-6458
SELECT - 86 / + col1 FROM tab0 AS cor0
----
-1
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-6459
SELECT DISTINCT + ( + col0 ) DIV cor0.col1 col0 FROM tab2 AS cor0
----
0
1
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6459
SELECT DISTINCT + ( + col0 ) / cor0.col1 col0 FROM tab2 AS cor0
----
0
1
4

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6460
SELECT + col2 * - CAST( - col1 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
2838
7462
97

skipif mysql # not compatible
query I rowsort label-6460
SELECT + col2 * - CAST ( - col1 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT - + col0 + ( col2 ) FROM tab2 cor0
----
-41
-52
20

query I rowsort
SELECT DISTINCT cor0.col2 - col2 AS col0 FROM tab2 AS cor0
----
0

query I rowsort
SELECT ALL col0 * cor0.col2 AS col2 FROM tab2 AS cor0
----
189
2028
3002

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6464
SELECT DISTINCT + col2 * CAST( col2 AS SIGNED ) FROM tab2 AS cor0
----
1444
676
729

skipif mysql # not compatible
query I rowsort label-6464
SELECT DISTINCT + col2 * CAST ( col2 AS INTEGER ) FROM tab2 AS cor0
----
1444
676
729

query I rowsort
SELECT ALL + col1 + - ( col2 ) FROM tab0 AS cor0
----
53
9
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + - col1 * col2 col2 FROM tab0 cor0
----
-2814
-62
-7373

query I rowsort
SELECT ALL - + col1 * - 37 + + 87 FROM tab1 AS cor0
----
1049
457
568

query I rowsort
SELECT - - cor0.col0 + col1 * - col0 + 52 * col1 AS col0 FROM tab0 AS cor0
----
-3278
1684
2432

query I rowsort
SELECT 20 + col1 - cor0.col1 AS col2 FROM tab0 AS cor0
----
20
20
20

onlyif mysql # use DIV operator for integer division
query I rowsort label-6470
SELECT ALL + col0 * 79 DIV - tab0.col2 FROM tab0
----
-2765
-57
-85

skipif mysql # not compatible
query I rowsort label-6470
SELECT ALL + col0 * 79 / - tab0.col2 FROM tab0
----
-2765
-57
-85

query I rowsort
SELECT + - cor2.col0 FROM tab1 AS cor0 CROSS JOIN tab0, tab0 AS cor1, tab1, tab2 AS cor2, tab2
----
729 values hashing to 913e245dc444ba087370cbae1757f433

query I rowsort
SELECT ALL + col0 * 87 * - cor0.col2 FROM tab1 AS cor0
----
-14094
-317376
-668160

query I rowsort
SELECT - 34 FROM tab0, tab2 AS cor0
----
9 values hashing to 40442a74794ded4c78101eefe525a5bb

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 1 * - col0 + col2 - 81 * + 40 col1 FROM tab2 AS cor0
----
-3220
-3281
-3292

query I rowsort
SELECT DISTINCT + 37 + 90 * col0 AS col0 FROM tab1 cor0
----
307
5797
7237

query I rowsort
SELECT DISTINCT + - cor0.col2 + + col0 + col0 * 34 AS col0 FROM tab1 cor0
----
2183
2704
51

query I rowsort
SELECT DISTINCT - 29 + col0 + col0 FROM tab2 AS cor0
----
-15
127
129

query I rowsort
SELECT col2 + + 48 AS col1 FROM tab1 AS cor0
----
102
105
144

onlyif mysql # use DIV operator for integer division
query I rowsort label-6479
SELECT ALL - - 51 DIV - col0 + + col0 col2 FROM tab1 AS cor0
----
-14
64
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6479
SELECT ALL - - 51 / - col0 + + col0 col2 FROM tab1 AS cor0
----
-14
64
80

query I rowsort
SELECT - col1 + - col0 * col1 * 89 AS col0 FROM tab1 AS cor0
----
-56970
-6968
-92573

query I rowsort
SELECT DISTINCT - 54 AS col0 FROM tab0 AS cor0
----
-54

query I rowsort
SELECT DISTINCT ( 52 ) FROM tab1 AS cor0
----
52

query I rowsort
SELECT DISTINCT - 36 * 3 FROM tab1 AS cor0
----
-108

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6484
SELECT DISTINCT col2 * col2 * ( + col2 + - CAST( - 63 AS SIGNED ) ) AS col2 FROM tab2
----
145844
60164
65610

skipif mysql # not compatible
query I rowsort label-6484
SELECT DISTINCT col2 * col2 * ( + col2 + - CAST ( - 63 AS INTEGER ) ) AS col2 FROM tab2
----
145844
60164
65610

onlyif mysql # use DIV operator for integer division
query I rowsort label-6485
SELECT DISTINCT col0 DIV 26 AS col1 FROM tab0
----
0
1
3

skipif mysql # not compatible
query I rowsort label-6485
SELECT DISTINCT col0 / 26 AS col1 FROM tab0
----
0
1
3

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6486
SELECT + col2 + - CAST( NULL AS SIGNED ) * tab2.col1 * col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6486
SELECT + col2 + - CAST ( NULL AS INTEGER ) * tab2.col1 * col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6487
SELECT DISTINCT + CAST( NULL AS SIGNED ) + 44 AS col2 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6487
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + 44 AS col2 FROM tab1 cor0
----
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6488
SELECT ALL CAST( NULL AS SIGNED ) * + col2 * col2 + col2 - ( col1 ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6488
SELECT ALL CAST ( NULL AS INTEGER ) * + col2 * col2 + col2 - ( col1 ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col1 + cor0.col0 AS col2 FROM tab0 AS cor0
----
110
132
180

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6490
SELECT DISTINCT + cor0.col1 * + col1 + - col0 * CAST( col1 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-1054
-1121
744

skipif mysql # not compatible
query I rowsort label-6490
SELECT DISTINCT + cor0.col1 * + col1 + - col0 * CAST ( col1 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-1054
-1121
744

query I rowsort
SELECT + col2 - + ( - col1 ) FROM tab1
----
109
67
80

query I rowsort
SELECT col0 * + tab1.col2 + col0 AS col1 FROM tab1
----
165
3712
7760

query I rowsort
SELECT col1 + - ( + col0 * + col2 ) AS col2 FROM tab0
----
-706
-7207
62

query I rowsort
SELECT + 1 * 45 + - col1 AS col1 FROM tab0
----
-41
-46
-52

query I rowsort
SELECT ( col0 ) + col0 * - 78 + - col1 AS col0 FROM tab2
----
-570
-6065
-6100

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab0.col2 + col1 - col2 col2 FROM tab0
----
86
91
97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6497
SELECT DISTINCT - CAST( NULL AS DECIMAL ) * col2 AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6497
SELECT DISTINCT - CAST ( NULL AS REAL ) * col2 AS col2 FROM tab2 AS cor0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-6498
SELECT + + ( 62 ) DIV + col1 + cor0.col1 - - col0 AS col1 FROM tab1 AS cor0
----
31
80
97

skipif mysql # not compatible
query I rowsort label-6498
SELECT + + ( 62 ) / + col1 + cor0.col1 - - col0 AS col1 FROM tab1 AS cor0
----
31
80
97

query I rowsort
SELECT ALL - - 47 * col2 + col1 * - 59 FROM tab1 AS cor0
----
1004
2089
3745

query I rowsort
SELECT ALL - ( col1 * col1 ) + - col2 * col2 * + col2 AS col2 FROM tab1
----
-158140
-185293
-884905

query I rowsort
SELECT 6 + + 14 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 2fdd942fe0307a6ff66b63004ef102c4

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6502
SELECT - - col0 * + CAST( NULL AS SIGNED ) + - col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6502
SELECT - - col0 * + CAST ( NULL AS INTEGER ) + - col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-6503
SELECT + tab2.col2 * - col0 + col2 * col0 DIV col1 AS col2 FROM tab2
----
-183
-1994
-2826

skipif mysql # not compatible
query I rowsort label-6503
SELECT + tab2.col2 * - col0 + col2 * col0 / col1 AS col2 FROM tab2
----
-183
-1994
-2826

query I rowsort
SELECT - 47 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to a4d3a02c376c52ddb0a38a801f7b50d5

query I rowsort
SELECT ALL - col2 * cor0.col2 * ( + cor0.col2 ) FROM tab0 AS cor0
----
-1
-35937
-551368

query I rowsort
SELECT ALL - col1 * - col0 + - 91 FROM tab0 AS cor0
----
1973
3304
8008

query I rowsort
SELECT + col1 * + col2 + col0 AS col2 FROM tab2 AS cor0
----
1612
725
844

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 46 col2 FROM tab2 AS cor0
----
-46
-46
-46

onlyif mysql # use DIV operator for integer division
query I rowsort label-6509
SELECT + col0 DIV col1 + + 64 + + col1 FROM tab2 AS cor0
----
124
85
95

skipif mysql # not compatible
query I rowsort label-6509
SELECT + col0 / col1 + + 64 + + col1 FROM tab2 AS cor0
----
124
85
95

query I rowsort
SELECT - col1 + col2 * - ( + col0 * - col2 ) FROM tab1 AS cor0
----
207926
737267
8722

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6511
SELECT DISTINCT CAST( - 84 AS SIGNED ) FROM tab0
----
-84

skipif mysql # not compatible
query I rowsort label-6511
SELECT DISTINCT CAST ( - 84 AS INTEGER ) FROM tab0
----
-84

query I rowsort
SELECT 4 * col2 * col1 FROM tab1
----
2280
4992
5616

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6513
SELECT - 24 / + col1 + + col1 + CAST( NULL AS DECIMAL ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6513
SELECT - 24 / + col1 + + col1 + CAST ( NULL AS REAL ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 52 * 74 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 96d7fbf634fc53408bafbe076785abe5

onlyif mysql # use DIV operator for integer division
query I rowsort label-6515
SELECT + 52 + + col0 DIV col1 FROM tab2 AS cor0
----
52
53
56

skipif mysql # not compatible
query I rowsort label-6515
SELECT + 52 + + col0 / col1 FROM tab2 AS cor0
----
52
53
56

query I rowsort
SELECT DISTINCT + ( col1 ) + col0 AS col0 FROM tab2 cor0
----
137
38
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-6517
SELECT col0 DIV cor0.col1 + - 11 DIV + col1 + - col1 FROM tab0 AS cor0
----
-86
-91
-97

skipif mysql # not compatible
query I rowsort label-6517
SELECT col0 / cor0.col1 + - 11 / + col1 + - col1 FROM tab0 AS cor0
----
-86
-91
-97

query I rowsort
SELECT ALL 67 AS col1 FROM tab1, tab1 AS cor0, tab1 cor1
----
27 values hashing to eea8a0738728ea55e4e7ba1506c9905a

query I rowsort
SELECT - col2 * - cor0.col1 + - col2 FROM tab1 AS cor0
----
1152
1350
513

onlyif mysql # use DIV operator for integer division
query I rowsort label-6520
SELECT - col1 + - col0 * col1 DIV - tab1.col1 + col2 AS col1 FROM tab1
----
111
163
31

skipif mysql # not compatible
query I rowsort label-6520
SELECT - col1 + - col0 * col1 / - tab1.col1 + col2 AS col1 FROM tab1
----
111
163
31

query I rowsort
SELECT 18 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to b95bafa733666df39c5d3f94760d010f

query I rowsort
SELECT DISTINCT + col1 * + 3 + - 27 AS col0 FROM tab1
----
12
3
51

query I rowsort
SELECT ALL - + ( + cor0.col1 ) FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to 6e0b7d583bc2c53842166d3e6ba2d6d2

query I rowsort
SELECT DISTINCT + col2 * - col1 + col0 + + ( - col2 * col0 ) FROM tab1 AS cor0
----
-1563
-4154
-8848

query I rowsort
SELECT + ( - col1 ) * col1 + + 48 * col1 FROM tab2 AS cor0
----
-649
527
527

onlyif mysql # use DIV operator for integer division
query I rowsort label-6526
SELECT ALL - col0 DIV cor0.col0 + col2 FROM tab2 AS cor0
----
25
26
37

skipif mysql # not compatible
query I rowsort label-6526
SELECT ALL - col0 / cor0.col0 + col2 FROM tab2 AS cor0
----
25
26
37

query I rowsort
SELECT 0 FROM tab1, tab0 cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query I rowsort
SELECT + 82 * 45 AS col2 FROM tab1
----
3690
3690
3690

query I rowsort
SELECT ( - 19 ) AS col0 FROM tab2
----
-19
-19
-19

onlyif mysql # use DIV operator for integer division
query I rowsort label-6530
SELECT + col0 + cor0.col1 DIV + col2 FROM tab1 AS cor0
----
3
64
80

skipif mysql # not compatible
query I rowsort label-6530
SELECT + col0 + cor0.col1 / + col2 FROM tab1 AS cor0
----
3
64
80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6531
SELECT - 66 + - col2 * + col0 + CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6531
SELECT - 66 + - col2 * + col0 + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col1 * col0 + + col2 AS col0 FROM tab0 cor0
----
2097
3396
8181

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6533
SELECT + ( col2 ) - + cor0.col0 * CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6533
SELECT + ( col2 ) - + cor0.col0 * CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-6534
SELECT - - ( + col2 ) DIV col2 AS col1 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6534
SELECT - - ( + col2 ) / col2 AS col1 FROM tab1 AS cor0
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * cor0.col0 - - col1 col0 FROM tab2 AS cor0
----
6143
6258
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-6536
SELECT + + col1 + + cor0.col2 DIV - col2 AS col0 FROM tab0 AS cor0
----
85
90
96

skipif mysql # not compatible
query I rowsort label-6536
SELECT + + col1 + + cor0.col2 / - col2 AS col0 FROM tab0 AS cor0
----
85
90
96

query I rowsort
SELECT - col2 * col2 + - 57 FROM tab1 AS cor0
----
-2973
-3306
-9273

query I rowsort
SELECT - 57 - - col0 FROM tab1 AS cor0
----
-54
23
7

query I rowsort
SELECT + - col0 * - col2 + 92 AS col1 FROM tab0 AS cor0
----
127
7390
884

query I rowsort
SELECT ALL + col2 + + cor0.col0 * - col2 FROM tab1 AS cor0
----
-108
-3591
-7584

onlyif mysql # use DIV operator for integer division
query I rowsort label-6541
SELECT + col1 DIV + ( - cor0.col2 ) AS col1 FROM tab0 AS cor0
----
-1
-2
-97

skipif mysql # not compatible
query I rowsort label-6541
SELECT + col1 / + ( - cor0.col2 ) AS col1 FROM tab0 AS cor0
----
-1
-2
-97

query I rowsort
SELECT 20 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 0a35fe98f3e7d5fc8ff2ae815bd20ef4

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6543
SELECT - col0 + CAST( 33 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-45
-46
26

skipif mysql # not compatible
query I rowsort label-6543
SELECT - col0 + CAST ( 33 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-45
-46
26

query I rowsort
SELECT - ( + col1 ) * col2 AS col1 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT - + 1 * 47 FROM tab0 AS cor0
----
-47
-47
-47

query I rowsort
SELECT - 53 * col2 FROM tab0 AS cor0
----
-1749
-4346
-53

onlyif mysql # use DIV operator for integer division
query I rowsort label-6547
SELECT ALL + col0 DIV ( tab0.col0 ) AS col2 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6547
SELECT ALL + col0 / ( tab0.col0 ) AS col2 FROM tab0
----
1
1
1

query I rowsort
SELECT ALL 68 FROM tab1, tab1 cor0
----
9 values hashing to 599bee15ac4cc39b859854e07dfe7990

query I rowsort
SELECT ALL - col0 + col1 * + col2 FROM tab1 AS cor0
----
1168
1401
506

onlyif mysql # use DIV operator for integer division
query I rowsort label-6550
SELECT - col2 DIV cor0.col1 + col2 * col1 FROM tab2 cor0
----
1534
644
837

skipif mysql # not compatible
query I rowsort label-6550
SELECT - col2 / cor0.col1 + col2 * col1 FROM tab2 cor0
----
1534
644
837

onlyif mysql # use DIV operator for integer division
query I rowsort label-6551
SELECT ALL + cor0.col1 + col0 DIV cor0.col2 FROM tab1 AS cor0
----
11
13
26

skipif mysql # not compatible
query I rowsort label-6551
SELECT ALL + cor0.col1 + col0 / cor0.col2 FROM tab1 AS cor0
----
11
13
26

onlyif mysql # use DIV operator for integer division
query I rowsort label-6552
SELECT - col1 * + cor0.col0 * - col0 + + col0 DIV + col0 FROM tab2 AS cor0
----
106098
1520
358957

skipif mysql # not compatible
query I rowsort label-6552
SELECT - col1 * + cor0.col0 * - col0 + + col0 / + col0 FROM tab2 AS cor0
----
106098
1520
358957

query I rowsort
SELECT ALL - col1 * - ( + 11 ) + + col2 AS col1 FROM tab0
----
1068
1083
979

query I rowsort
SELECT - tab0.col1 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to d4c673b7444eb9927ec63175b43c6b84

query I rowsort
SELECT ALL + col2 * - col0 + + col1 * + col2 + ( col0 + - col0 ) AS col2 FROM tab0
----
164
2046
62

query I rowsort
SELECT DISTINCT - - col1 + + col0 AS col1 FROM tab1 AS cor0
----
29
74
93

query I rowsort
SELECT - + col1 * - 73 * - 69 + - col2 AS col2 FROM tab2 AS cor0
----
-156174
-297209
-85667

query I rowsort
SELECT DISTINCT + - col1 + ( + ( + cor0.col2 ) ) * - cor0.col2 FROM tab1 AS cor0
----
-2942
-3259
-9229

query I rowsort
SELECT DISTINCT col0 + - ( + col0 ) FROM tab1
----
0

query I rowsort
SELECT - col2 + 5 * col0 + col0 FROM tab1
----
-36
327
384

query I rowsort
SELECT + - col1 + 38 FROM tab2 AS cor0
----
-21
21
7

onlyif mysql # use DIV operator for integer division
query I rowsort label-6562
SELECT ALL + - col1 DIV + 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-6562
SELECT ALL + - col1 / + col1 col2 FROM tab0 AS cor0
----
-1
-1
-1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6563
SELECT ALL CAST( NULL AS DECIMAL ) FROM tab2, tab0, tab1 AS cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-6563
SELECT ALL CAST ( NULL AS REAL ) FROM tab2, tab0, tab1 AS cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT 11 AS col2 FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to 69116737f3f57e2e3273f6dbb04d036c

query I rowsort
SELECT tab1.col2 - - 29 FROM tab1
----
125
83
86

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 - + col2 * col2 * + col2 col2 FROM tab0
----
-36023
-551459
-98

query I rowsort
SELECT ALL 91 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 5748627ef5fd86a21cd559fd278d7277

query I rowsort
SELECT col0 + + ( - col0 ) AS col2 FROM tab2
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 23 + col0 col1 FROM tab1 cor0
----
103
26
87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col1 * col1 col0 FROM tab0 AS cor0
----
7396
8281
9409

query I rowsort
SELECT - - cor0.col1 * col2 * col0 FROM tab2 AS cor0
----
119652
51034
5859

skipif mysql # not compatible
query I rowsort
SELECT ALL + ( + col0 ) + - CAST ( - col1 AS REAL ) FROM tab1 AS cor0
----
29
74
93

query I rowsort
SELECT + + 33 + + col2 FROM tab2 AS cor0
----
59
60
71

query I rowsort
SELECT DISTINCT - - 93 FROM tab2 cor0
----
93

query I rowsort
SELECT ALL + 8 * - col1 FROM tab1 AS cor0
----
-104
-208
-80

query I rowsort
SELECT ALL + 99 + col2 FROM tab0 AS cor0
----
100
132
181

onlyif mysql # use DIV operator for integer division
query I rowsort label-6577
SELECT DISTINCT col0 + + col0 DIV cor0.col0 FROM tab1 AS cor0
----
4
65
81

skipif mysql # not compatible
query I rowsort label-6577
SELECT DISTINCT col0 + + col0 / cor0.col0 FROM tab1 AS cor0
----
4
65
81

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6578
SELECT ALL + ( col1 ) * + CAST( NULL AS DECIMAL ) / cor0.col0 + + col0 * 75 + + col0 * + col1 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6578
SELECT ALL + ( col1 ) * + CAST ( NULL AS REAL ) / cor0.col0 + + col0 * 75 + + col0 * + col1 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + + col0 * col0 col1 FROM tab2 cor0
----
6110
6279
76

query I rowsort
SELECT ALL + + col0 * 3 FROM tab1 AS cor0
----
192
240
9

query I rowsort
SELECT DISTINCT - col0 * 38 * col2 + cor0.col1 AS col2 FROM tab1 AS cor0
----
-138614
-291827
-6130

query I rowsort
SELECT ALL - - col2 - 86 * col0 FROM tab1 AS cor0
----
-204
-5447
-6784

query I rowsort
SELECT DISTINCT + + col2 + ( - cor0.col2 ) AS col2 FROM tab2 AS cor0
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-6584
SELECT DISTINCT - col1 - col0 DIV - col2 AS col1 FROM tab1 AS cor0
----
-13
-26
-9

skipif mysql # not compatible
query I rowsort label-6584
SELECT DISTINCT - col1 - col0 / - col2 AS col1 FROM tab1 AS cor0
----
-13
-26
-9

onlyif mysql # use DIV operator for integer division
query I rowsort label-6585
SELECT DISTINCT col1 DIV tab2.col1 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-6585
SELECT DISTINCT col1 / tab2.col1 FROM tab2
----
1

query I rowsort
SELECT + col0 * - cor0.col1 FROM tab1 cor0
----
-1040
-640
-78

query I rowsort
SELECT - col2 * - 52 FROM tab0 AS cor0
----
1716
4264
52

onlyif mysql # use DIV operator for integer division
query I rowsort label-6588
SELECT + col0 + - col1 * col2 DIV col2 FROM tab0
----
-2
-62
-62

skipif mysql # not compatible
query I rowsort label-6588
SELECT + col0 + - col1 * col2 / col2 FROM tab0
----
-2
-62
-62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - cor0.col0 + col0 * - cor0.col1 col0 FROM tab0 AS cor0
----
-2088
-3430
-8188

onlyif mysql # use DIV operator for integer division
query I rowsort label-6590
SELECT DISTINCT + 55 * col2 DIV + col2 AS col2 FROM tab0 AS cor0
----
55

skipif mysql # not compatible
query I rowsort label-6590
SELECT DISTINCT + 55 * col2 / + col2 AS col2 FROM tab0 AS cor0
----
55

query I rowsort
SELECT - 19 * col0 + col2 FROM tab0 AS cor0
----
-1609
-423
-664

query I rowsort
SELECT - ( ( col2 ) ) * col0 FROM tab1 AS cor0
----
-162
-3648
-7680

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - ( ( + col2 ) ) col2 FROM tab0 cor0
----
1
33
82

query I rowsort
SELECT - cor0.col2 * 5 * col0 FROM tab2 AS cor0
----
-10140
-15010
-945

query I rowsort
SELECT ALL - ( + col2 ) + - col0 FROM tab0 AS cor0
----
-171
-36
-57

query I rowsort
SELECT 74 + col2 * col1 AS col1 FROM tab2 AS cor0
----
1608
720
911

query I rowsort
SELECT ALL ( ( col2 ) ) + - cor0.col2 AS col2 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT - - cor0.col1 * - col1 + col1 + + 81 FROM tab1 AS cor0
----
-569
-75
-9

query I rowsort
SELECT + + 77 * col1 FROM tab1 AS cor0
----
1001
2002
770

query I rowsort
SELECT ALL + ( - cor0.col1 ) * col0 * - col1 AS col0 FROM tab0 AS cor0
----
177504
329315
737009

onlyif mysql # use DIV operator for integer division
query I rowsort label-6601
SELECT DISTINCT + + 57 DIV - col0 AS col1 FROM tab0 AS cor0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-6601
SELECT DISTINCT + + 57 / - col0 AS col1 FROM tab0 AS cor0
----
-1
-2
0

query I rowsort
SELECT ALL col0 + + col2 * col0 - - col2 * 87 AS col0 FROM tab1
----
16112
4863
8671

query I rowsort
SELECT DISTINCT ( 66 ) + + col2 * ( cor0.col1 + col2 ) FROM tab2 AS cor0
----
1632
2156
2276

query I rowsort
SELECT DISTINCT + 46 * ( - col2 ) * + col0 FROM tab2 AS cor0
----
-138092
-8694
-93288

query I rowsort
SELECT DISTINCT - ( 28 ) + cor0.col1 AS col1 FROM tab0 AS cor0
----
58
63
69

query I rowsort
SELECT + 94 * col1 + - col0 FROM tab2 AS cor0
----
1519
2907
5468

query I rowsort
SELECT + ( + col0 ) * col1 + ( ( col1 ) ) FROM tab2 AS cor0
----
1360
248
4661

onlyif mysql # use DIV operator for integer division
query I rowsort label-6608
SELECT cor0.col0 DIV + ( col1 ) + + col2 AS col1 FROM tab0 AS cor0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-6608
SELECT cor0.col0 / + ( col1 ) + + col2 AS col1 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT ALL - + 67 FROM tab2 cor0
----
-67
-67
-67

query I rowsort
SELECT + tab0.col2 * col1 - - col1 * ( col0 * + col1 + + 35 ) FROM tab0
----
183352
332807
747656

query I rowsort
SELECT + 47 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 4fe192f296791e1e40ea00a68aa8dab7

query I rowsort
SELECT ALL - 90 AS col1 FROM tab1 cor0
----
-90
-90
-90

query I rowsort
SELECT DISTINCT + tab2.col1 * - 9 + - tab2.col2 * - col0 FROM tab2
----
-90
1497
2849

query I rowsort
SELECT ALL - col0 * - ( cor0.col1 ) AS col2 FROM tab0 cor0
----
2064
3395
8099

query I rowsort
SELECT - - col2 + - col0 - cor0.col0 AS col0 FROM tab1 AS cor0
----
-64
-71
48

onlyif mysql # use DIV operator for integer division
query I rowsort label-6616
SELECT + - cor0.col1 DIV col2 FROM tab0 AS cor0
----
-1
-2
-97

skipif mysql # not compatible
query I rowsort label-6616
SELECT + - cor0.col1 / col2 FROM tab0 AS cor0
----
-1
-2
-97

query I rowsort
SELECT - + cor0.col1 * cor0.col2 + col1 AS col1 FROM tab2 AS cor0
----
-1475
-629
-806

query I rowsort
SELECT DISTINCT 32 FROM tab1, tab2 AS cor0, tab0 cor1
----
32

query I rowsort
SELECT DISTINCT col0 + - col0 * - ( col2 ) FROM tab2 AS cor0
----
196
2106
3081

onlyif mysql # use DIV operator for integer division
query I rowsort label-6620
SELECT - - cor0.col2 * + 8 + ( - col1 ) * 44 - + col2 DIV col0 FROM tab1 AS cor0
----
-730
16
195

skipif mysql # not compatible
query I rowsort label-6620
SELECT - - cor0.col2 * + 8 + ( - col1 ) * 44 - + col2 / col0 FROM tab1 AS cor0
----
-730
16
195

onlyif mysql # use DIV operator for integer division
query I rowsort label-6621
SELECT - col0 + + 19 DIV - col0 AS col0 FROM tab1 AS cor0
----
-64
-80
-9

skipif mysql # not compatible
query I rowsort label-6621
SELECT - col0 + + 19 / - col0 AS col0 FROM tab1 AS cor0
----
-64
-80
-9

query I rowsort
SELECT 92 + col1 + - ( - col2 ) FROM tab1
----
159
172
201

query I rowsort
SELECT - col1 + 69 FROM tab1 AS cor0
----
43
56
59

query I rowsort
SELECT - col2 * + col0 + col2 AS col0 FROM tab2 AS cor0
----
-162
-2002
-2964

query I rowsort
SELECT - col0 * + col1 * - col0 AS col1 FROM tab0 AS cor0
----
118825
49536
720811

query I rowsort
SELECT + cor0.col1 + + col1 FROM tab0 cor0
----
172
182
194

query I rowsort
SELECT DISTINCT tab1.col0 AS col2 FROM tab1, tab2 AS cor0, tab0, tab2 AS cor1
----
3
64
80

query I rowsort
SELECT ALL 99 + tab2.col2 * - col0 FROM tab2
----
-1929
-2903
-90

query I rowsort
SELECT + - col2 + - col1 * col2 * cor0.col1 AS col2 FROM tab1 AS cor0
----
-16320
-36558
-5757

query I rowsort
SELECT ALL col1 - + col0 AS col2 FROM tab2 cor0
----
-19
-62
24

query I rowsort
SELECT DISTINCT 12 * 34 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
408

query I rowsort
SELECT DISTINCT - col1 * ( col2 ) + + col1 AS col2 FROM tab0 AS cor0
----
-2752
-7371
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-6633
SELECT ALL col1 - + col1 * col2 DIV + tab1.col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6633
SELECT ALL col1 - + col1 * col2 / + tab1.col2 FROM tab1
----
0
0
0

query I rowsort
SELECT ALL tab1.col2 AS col0 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79

query I rowsort
SELECT + tab1.col0 * + col1 - + col0 AS col0 FROM tab1
----
576
75
960

query I rowsort
SELECT ALL cor0.col2 AS col2 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab1.col0 * - col1 col2 FROM tab1
----
-1040
-640
-78

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6638
SELECT ALL CAST( col0 AS SIGNED ) * col1 * col2 AS col1 FROM tab2
----
119652
51034
5859

skipif mysql # not compatible
query I rowsort label-6638
SELECT ALL CAST ( col0 AS INTEGER ) * col1 * col2 AS col1 FROM tab2
----
119652
51034
5859

query I rowsort
SELECT ALL + ( col0 + col0 ) FROM tab1
----
128
160
6

query I rowsort
SELECT DISTINCT + - 29 AS col0 FROM tab0 AS cor0
----
-29

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 39 col2 FROM tab0
----
39
39
39

query I rowsort
SELECT ( - col2 ) * col0 AS col1 FROM tab0 AS cor0
----
-35
-7298
-792

onlyif mysql # use DIV operator for integer division
query I rowsort label-6643
SELECT - col2 + + col1 DIV col2 FROM tab0 AS cor0
----
-31
-81
96

skipif mysql # not compatible
query I rowsort label-6643
SELECT - col2 + + col1 / col2 FROM tab0 AS cor0
----
-31
-81
96

query I rowsort
SELECT ALL ( col0 ) * col1 AS col2 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT + - 54 AS col0 FROM tab2 AS cor0
----
-54
-54
-54

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6646
SELECT ALL + - CAST( - col0 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
3
64
80

skipif mysql # not compatible
query I rowsort label-6646
SELECT ALL + - CAST ( - col0 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT + + 73 + col1 * col0 AS col1 FROM tab2 cor0
----
1416
290
4675

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6648
SELECT - CAST( NULL AS SIGNED ) + cor0.col2 * col0 AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6648
SELECT - CAST ( NULL AS INTEGER ) + cor0.col2 * col0 AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 74 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to dc22979e6d261795bd3ce2990fdbbf82

query I rowsort
SELECT - 71 + - col2 FROM tab1 AS cor0
----
-125
-128
-167

query I rowsort
SELECT DISTINCT - 38 * col1 FROM tab2 AS cor0
----
-1178
-2242
-646

query I rowsort
SELECT ALL + 12 * + col2 + cor0.col1 AS col2 FROM tab0 AS cor0
----
1075
109
482

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + - 22 col2 FROM tab2 AS cor0
----
16
4
5

query I rowsort
SELECT ALL ( + cor0.col0 ) AS col2 FROM tab1, tab1 AS cor0, tab2 cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6655
SELECT - CAST( ( col1 ) AS SIGNED ) AS col2 FROM tab2
----
-17
-31
-59

skipif mysql # not compatible
query I rowsort label-6655
SELECT - CAST ( ( col1 ) AS INTEGER ) AS col2 FROM tab2
----
-17
-31
-59

query I rowsort
SELECT ALL 50 * col1 FROM tab0
----
4300
4550
4850

skipif mysql # not compatible
query I rowsort
SELECT - CAST ( 49 AS REAL ) + col1 FROM tab2
----
-18
-32
10

query I rowsort
SELECT - 88 FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to eb8cbefa7d831e1a0183e919e2caef32

query I rowsort
SELECT ALL + - col2 * + col2 * - 55 FROM tab2 AS cor0
----
37180
40095
79420

query I rowsort
SELECT ALL col1 * col2 * 56 FROM tab0 cor0
----
158928
417872
5432

onlyif mysql # use DIV operator for integer division
query I rowsort label-6661
SELECT DISTINCT - tab2.col1 DIV + 4 FROM tab2
----
-14
-4
-7

skipif mysql # not compatible
query I rowsort label-6661
SELECT DISTINCT - tab2.col1 / + 4 FROM tab2
----
-14
-4
-7

query I rowsort
SELECT - ( 90 * - col2 ) AS col2 FROM tab0
----
2970
7380
90

query I rowsort
SELECT + ( + 82 ) * + col0 AS col1 FROM tab0 AS cor0
----
1968
2870
7298

query I rowsort
SELECT ALL - ( col2 + - col0 ) AS col1 FROM tab2
----
-20
41
52

query I rowsort
SELECT 7 + col0 AS col1 FROM tab2
----
14
85
86

query I rowsort
SELECT ALL col0 + 69 FROM tab0 cor0
----
104
158
93

query I rowsort
SELECT DISTINCT + col0 * cor0.col2 + cor0.col2 * col2 FROM tab2 AS cor0
----
2704
4446
918

query I rowsort
SELECT ALL col0 * + 39 FROM tab2 AS cor0
----
273
3042
3081

query I rowsort
SELECT DISTINCT - + col1 * - col0 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT ALL + cor0.col2 + + 97 AS col1 FROM tab1 AS cor0
----
151
154
193

query I rowsort
SELECT DISTINCT + col1 * tab2.col2 + + col1 FROM tab2
----
1593
663
868

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 43 * col1 col2 FROM tab1
----
1118
430
559

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6673
SELECT DISTINCT - CAST( NULL AS SIGNED ) AS col1 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-6673
SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col1 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
NULL

query I rowsort
SELECT + col0 * - 29 FROM tab2 AS cor0
----
-203
-2262
-2291

query I rowsort
SELECT DISTINCT col1 * ( + col1 ) - - cor0.col2 AS col1 FROM tab2 cor0
----
327
3507
988

query I rowsort
SELECT col0 * col0 + + cor0.col0 * - col1 AS col0 FROM tab1 cor0
----
-69
3456
5360

query I rowsort
SELECT DISTINCT + - cor0.col2 * + 44 AS col1 FROM tab2 AS cor0
----
-1144
-1188
-1672

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col1 + 57 col1 FROM tab2 AS cor0
----
-2
26
40

query I rowsort
SELECT col1 * + ( col2 ) AS col2 FROM tab1 AS cor0
----
1248
1404
570

onlyif mysql # use DIV operator for integer division
query I rowsort label-6680
SELECT ALL - col1 DIV 67 + ( - col1 ) * 42 FROM tab0 AS cor0
----
-3613
-3823
-4075

skipif mysql # not compatible
query I rowsort label-6680
SELECT ALL - col1 / 67 + ( - col1 ) * 42 FROM tab0 AS cor0
----
-3613
-3823
-4075

query I rowsort
SELECT DISTINCT - col1 + 12 FROM tab2
----
-19
-47
-5

query I rowsort
SELECT ALL 2 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 84dbfaf9bc17dd097f15bc36b4186261

query I rowsort
SELECT ALL col2 + - 68 FROM tab1
----
-11
-14
28

onlyif mysql # use DIV operator for integer division
query I rowsort label-6684
SELECT DISTINCT + tab1.col1 DIV col1 + + col0 DIV col2 FROM tab1
----
1
2

skipif mysql # not compatible
query I rowsort label-6684
SELECT DISTINCT + tab1.col1 / col1 + + col0 / col2 FROM tab1
----
1
2

query I rowsort
SELECT ALL - - cor0.col0 + + 32 FROM tab2 AS cor0
----
110
111
39

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + + 48 col1 FROM tab1 AS cor0
----
58
61
74

query IIIIIIIIIIII rowsort
SELECT * FROM tab2, tab0, tab1 cor0, tab2 cor1
----
972 values hashing to 49c8bf3e931a898ba7af63d0e377eb79

query I rowsort
SELECT ALL - ( - col2 ) + cor0.col2 * - col0 FROM tab0 AS cor0
----
-34
-7216
-759

query I rowsort
SELECT + 61 FROM tab1 cor0
----
61
61
61

query I rowsort
SELECT DISTINCT - col2 + - col2 * col2 AS col2 FROM tab0 AS cor0
----
-1122
-2
-6806

query I rowsort
SELECT DISTINCT col1 * 86 AS col0 FROM tab2 AS cor0
----
1462
2666
5074

query I rowsort
SELECT ALL - col2 + 64 * col0 FROM tab1 AS cor0
----
138
4039
5024

query I rowsort
SELECT DISTINCT - ( 34 ) - col2 * + col2 FROM tab2 AS cor0
----
-1478
-710
-763

query I rowsort
SELECT ALL + - 3 + - col0 AS col2 FROM tab1 AS cor0
----
-6
-67
-83

query I rowsort
SELECT - + ( + ( + col1 ) ) AS col2 FROM tab1 AS cor0
----
-10
-13
-26

query I rowsort
SELECT - 87 * + 23 AS col2 FROM tab2 AS cor0
----
-2001
-2001
-2001

query I rowsort
SELECT ALL 42 AS col2 FROM tab1 AS cor0
----
42
42
42

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 10 + - col0 col0 FROM tab1 AS cor0
----
-13
-74
-90

query I rowsort
SELECT + col0 * 99 AS col2 FROM tab1 AS cor0
----
297
6336
7920

query I rowsort
SELECT ALL + cor0.col1 * + 84 * col2 AS col1 FROM tab0 AS cor0
----
238392
626808
8148

onlyif mysql # use DIV operator for integer division
query I rowsort label-6701
SELECT DISTINCT - - col2 DIV - col2 FROM tab0 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-6701
SELECT DISTINCT - - col2 / - col2 FROM tab0 cor0
----
-1

onlyif mysql # use DIV operator for integer division
query I rowsort label-6702
SELECT + col2 + cor0.col0 + col0 DIV col0 AS col0 FROM tab2 AS cor0
----
105
118
35

skipif mysql # not compatible
query I rowsort label-6702
SELECT + col2 + cor0.col0 + col0 / col0 AS col0 FROM tab2 AS cor0
----
105
118
35

onlyif mysql # use DIV operator for integer division
query I rowsort label-6703
SELECT - col2 DIV col2 + col2 * 5 + - col2 FROM tab0 AS cor0
----
131
3
327

skipif mysql # not compatible
query I rowsort label-6703
SELECT - col2 / col2 + col2 * 5 + - col2 FROM tab0 AS cor0
----
131
3
327

query I rowsort
SELECT DISTINCT - + 98 * col2 AS col0 FROM tab2 AS cor0
----
-2548
-2646
-3724

query I rowsort
SELECT - col0 + col1 * + 73 AS col1 FROM tab0 AS cor0
----
6254
6554
7046

query I rowsort
SELECT - - 99 FROM tab0 AS cor0
----
99
99
99

query I rowsort
SELECT ALL - col2 + - col1 * ( col0 ) FROM tab2 cor0
----
-1381
-244
-4628

query I rowsort
SELECT DISTINCT 48 AS col2 FROM tab1 AS cor0
----
48

query I rowsort
SELECT + col1 * + cor0.col1 * - 96 - col2 * + col2 FROM tab2 AS cor0
----
-29188
-334852
-92985

query I rowsort
SELECT + + col0 + - col1 * col2 AS col0 FROM tab2 AS cor0
----
-1456
-567
-830

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6711
SELECT DISTINCT + col0 * - col0 + - CAST( - 39 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-4057
-6361
30

skipif mysql # not compatible
query I rowsort label-6711
SELECT DISTINCT + col0 * - col0 + - CAST ( - 39 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-4057
-6361
30

query I rowsort
SELECT - - 19 * - col1 AS col1 FROM tab0 AS cor0
----
-1634
-1729
-1843

query I rowsort
SELECT ALL - 70 + + cor0.col2 AS col2 FROM tab2 AS cor0
----
-32
-43
-44

query I rowsort
SELECT DISTINCT + 72 * - col0 AS col2 FROM tab0 AS cor0
----
-1728
-2520
-6408

query I rowsort
SELECT ALL + - 35 * col1 FROM tab0 cor0
----
-3010
-3185
-3395

query I rowsort
SELECT - col2 + - 84 FROM tab0 AS cor0
----
-117
-166
-85

query I rowsort
SELECT DISTINCT - cor0.col0 * col2 + - col1 AS col1 FROM tab0 AS cor0
----
-132
-7389
-878

query I rowsort
SELECT ALL - col0 + ( cor0.col0 * + col1 ) AS col0 FROM tab1 AS cor0
----
576
75
960

onlyif mysql # use DIV operator for integer division
query I rowsort label-6719
SELECT DISTINCT + col1 DIV 61 - + col0 AS col1 FROM tab2 AS cor0
----
-7
-78
-79

skipif mysql # not compatible
query I rowsort label-6719
SELECT DISTINCT + col1 / 61 - + col0 AS col1 FROM tab2 AS cor0
----
-7
-78
-79

query I rowsort
SELECT 5 AS col1 FROM tab1, tab0 AS cor0, tab0 cor1
----
27 values hashing to 6797d40099023779b89feb627d94a3e7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col1 col2 FROM tab0, tab1 cor0
----
9 values hashing to b234798d4706314ba14eaad539d0aa88

query I rowsort
SELECT ( col0 ) + - ( - col0 ) + col2 AS col0 FROM tab1
----
185
256
60

query I rowsort
SELECT DISTINCT 92 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
92

query I rowsort
SELECT 26 * + col1 * col2 FROM tab1 AS cor0
----
14820
32448
36504

onlyif mysql # use DIV operator for integer division
query I rowsort label-6725
SELECT + col0 DIV 64 + + cor0.col1 AS col0 FROM tab2 AS cor0
----
18
31
60

skipif mysql # not compatible
query I rowsort label-6725
SELECT + col0 / 64 + + cor0.col1 AS col0 FROM tab2 AS cor0
----
18
31
60

query I rowsort
SELECT + col2 - col1 * cor0.col2 FROM tab1 cor0
----
-1152
-1350
-513

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6727
SELECT - col0 * CAST( NULL AS SIGNED ) + + 80 * col1 * - 84 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6727
SELECT - col0 * CAST ( NULL AS INTEGER ) + + 80 * col1 * - 84 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col0 * ( 69 ) - col1 * + col1 FROM tab1 AS cor0
----
-469
4316
5351

query I rowsort
SELECT - col1 * - ( 17 ) FROM tab0 cor0
----
1462
1547
1649

query I rowsort
SELECT ALL + 9 * col1 AS col0 FROM tab2
----
153
279
531

onlyif mysql # use DIV operator for integer division
query I rowsort label-6731
SELECT col1 + 78 DIV ( col1 ) FROM tab2 AS cor0
----
21
33
60

skipif mysql # not compatible
query I rowsort label-6731
SELECT col1 + 78 / ( col1 ) FROM tab2 AS cor0
----
21
33
60

query I rowsort
SELECT col1 - - 61 AS col0 FROM tab2 AS cor0
----
120
78
92

query I rowsort
SELECT - col1 * - col2 - col1 FROM tab1 AS cor0
----
1235
1378
560

query I rowsort
SELECT ALL - 44 AS col2 FROM tab0 AS cor0
----
-44
-44
-44

query I rowsort
SELECT - 40 AS col1 FROM tab1 cor0
----
-40
-40
-40

query I rowsort
SELECT DISTINCT + col0 + ( - col0 ) FROM tab1 AS cor0
----
0

query I rowsort
SELECT DISTINCT - ( - 15 ) FROM tab2 cor0
----
15

query I rowsort
SELECT - 37 * col0 FROM tab1
----
-111
-2368
-2960

onlyif mysql # use DIV operator for integer division
query I rowsort label-6739
SELECT + 85 DIV col2 FROM tab1 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-6739
SELECT + 85 / col2 FROM tab1 AS cor0
----
0
1
1

query I rowsort
SELECT - cor0.col0 + cor0.col0 * + col0 + col2 FROM tab0 cor0
----
1191
585
7914

query I rowsort
SELECT - 4 + col0 AS col1 FROM tab0 AS cor0
----
20
31
85

onlyif mysql # use DIV operator for integer division
query I rowsort label-6742
SELECT + cor0.col2 DIV cor0.col2 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6742
SELECT + cor0.col2 / cor0.col2 FROM tab1 AS cor0
----
1
1
1

query I rowsort
SELECT DISTINCT 52 FROM tab2, tab2 AS cor0
----
52

query I rowsort
SELECT DISTINCT + col1 * ( col0 ) FROM tab2
----
1343
217
4602

query I rowsort
SELECT - - col1 * col0 + - cor0.col1 + 38 FROM tab0 AS cor0
----
2016
3336
8046

query I rowsort
SELECT + 90 * - col2 FROM tab2 cor0
----
-2340
-2430
-3420

query I rowsort
SELECT 56 * + col1 FROM tab1 AS cor0
----
1456
560
728

query I rowsort
SELECT ALL - cor0.col1 * + col0 + + col2 + col0 AS col0 FROM tab0 AS cor0
----
-2007
-3359
-7928

query I rowsort
SELECT DISTINCT ( + col0 ) + - cor0.col2 FROM tab2 AS cor0
----
-20
41
52

query I rowsort
SELECT ALL 27 * col2 AS col1 FROM tab2 cor0
----
1026
702
729

query I rowsort
SELECT + cor0.col2 * + col1 + + 39 AS col2 FROM tab0 AS cor0
----
136
2877
7501

query I rowsort
SELECT ALL + col1 * - ( 80 ) FROM tab1 AS cor0
----
-1040
-2080
-800

query I rowsort
SELECT ALL - 90 + - col1 AS col1 FROM tab0 AS cor0
----
-176
-181
-187

onlyif mysql # use DIV operator for integer division
query I rowsort label-6754
SELECT - col2 DIV 77 + + col2 * col1 * + col2 AS col1 FROM tab0 AS cor0
----
611883
93654
97

skipif mysql # not compatible
query I rowsort label-6754
SELECT - col2 / 77 + + col2 * col1 * + col2 AS col1 FROM tab0 AS cor0
----
611883
93654
97

query I rowsort
SELECT + cor0.col1 * col0 + - col1 + + col1 AS col1 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT ALL - cor0.col2 + ( + col1 ) * - 99 AS col0 FROM tab2 AS cor0
----
-1721
-3096
-5867

query I rowsort
SELECT - + cor0.col0 * + col1 + col0 FROM tab0 AS cor0
----
-2040
-3360
-8010

query I rowsort
SELECT ALL ( 24 ) * - col2 + ( + col2 ) AS col1 FROM tab2
----
-598
-621
-874

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6759
SELECT ALL + ( + 46 ) + - col1 * - CAST( NULL AS DECIMAL ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6759
SELECT ALL + ( + 46 ) + - col1 * - CAST ( NULL AS REAL ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT + tab1.col2 FROM tab1, tab2, tab2 AS cor0
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79

query I rowsort
SELECT ALL ( col1 ) * - col1 AS col0 FROM tab2
----
-289
-3481
-961

query I rowsort
SELECT DISTINCT - 14 FROM tab1, tab0 cor0
----
-14

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6763
SELECT - CAST( NULL AS SIGNED ) * + ( col0 ) + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6763
SELECT - CAST ( NULL AS INTEGER ) * + ( col0 ) + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - ( col2 ) * + col0 + ( ( col1 ) ) AS col0 FROM tab2 AS cor0
----
-158
-1969
-2985

query I rowsort
SELECT + 41 + cor0.col1 AS col2 FROM tab2 AS cor0
----
100
58
72

query I rowsort
SELECT + col0 + ( - tab1.col1 + col1 ) AS col1 FROM tab1
----
3
64
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 43 col1 FROM tab2 AS cor0 CROSS JOIN tab1, tab0 AS cor1, tab2 AS cor2
----
81 values hashing to 53b2f139a07f856ac44a1158efd4e63d

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6768
SELECT - + col2 * + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6768
SELECT - + col2 * + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT cor0.col1 * col0 AS col2 FROM tab2 cor0
----
1343
217
4602

onlyif mysql # use DIV operator for integer division
query I rowsort label-6770
SELECT DISTINCT - + col0 DIV 33 col2 FROM tab1 cor0
----
-1
-2
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6770
SELECT DISTINCT - + col0 / 33 col2 FROM tab1 cor0
----
-1
-2
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6771
SELECT + - col1 + + CAST( 65 AS SIGNED ) FROM tab0 AS cor0
----
-21
-26
-32

skipif mysql # not compatible
query I rowsort label-6771
SELECT + - col1 + + CAST ( 65 AS INTEGER ) FROM tab0 AS cor0
----
-21
-26
-32

query I rowsort
SELECT DISTINCT + - col2 * + cor0.col2 AS col0 FROM tab1 AS cor0
----
-2916
-3249
-9216

query I rowsort
SELECT ALL - + col2 * - ( ( - col0 ) ) AS col0 FROM tab2 AS cor0
----
-189
-2028
-3002

onlyif mysql # use DIV operator for integer division
query I rowsort label-6774
SELECT DISTINCT + col0 * col2 DIV col0 AS col0 FROM tab2 AS cor0
----
26
27
38

skipif mysql # not compatible
query I rowsort label-6774
SELECT DISTINCT + col0 * col2 / col0 AS col0 FROM tab2 AS cor0
----
26
27
38

query I rowsort
SELECT ALL + 67 * - 25 AS col2 FROM tab1 AS cor0
----
-1675
-1675
-1675

query I rowsort
SELECT DISTINCT - + 56 * 39 - cor0.col1 FROM tab2 cor0
----
-2201
-2215
-2243

query I rowsort
SELECT ALL cor0.col2 * + 50 + - cor0.col0 FROM tab2 AS cor0
----
1222
1343
1821

query I rowsort
SELECT DISTINCT col1 + 62 * + col2 AS col2 FROM tab2 cor0
----
1671
1705
2373

query I rowsort
SELECT ALL ( - col0 ) * + col1 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT DISTINCT - col0 + + col1 * col1 FROM tab1 AS cor0
----
36
673
89

query I rowsort
SELECT ( ( col2 ) ) + - col0 * col2 AS col2 FROM tab1 AS cor0
----
-108
-3591
-7584

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6782
SELECT ALL CAST( + col0 AS SIGNED ) * col0 FROM tab2 AS cor0
----
49
6084
6241

skipif mysql # not compatible
query I rowsort label-6782
SELECT ALL CAST ( + col0 AS INTEGER ) * col0 FROM tab2 AS cor0
----
49
6084
6241

query I rowsort
SELECT DISTINCT + - 64 * col1 * col1 AS col1 FROM tab1 AS cor0
----
-10816
-43264
-6400

onlyif mysql # use DIV operator for integer division
query I rowsort label-6784
SELECT + col1 * col1 DIV + col1 + col0 AS col1 FROM tab1
----
29
74
93

skipif mysql # not compatible
query I rowsort label-6784
SELECT + col1 * col1 / + col1 + col0 AS col1 FROM tab1
----
29
74
93

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6785
SELECT - 53 + - col0 * CAST( - ( col1 ) AS SIGNED ) col2 FROM tab1 AS cor0
----
25
587
987

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6785
SELECT - 53 + - col0 * CAST ( - ( col1 ) AS INTEGER ) col2 FROM tab1 AS cor0
----
25
587
987

query I rowsort
SELECT + col1 * col2 * - 62 + - col0 - - col1 FROM tab1 AS cor0
----
-35394
-77443
-87025

query I rowsort
SELECT - - 44 * col2 + - ( col2 ) FROM tab0 AS cor0
----
1419
3526
43

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6788
SELECT + cor0.col1 + + CAST( col2 AS SIGNED ) * col2 col2 FROM tab2 cor0
----
1461
735
760

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6788
SELECT + cor0.col1 + + CAST ( col2 AS INTEGER ) * col2 col2 FROM tab2 cor0
----
1461
735
760

onlyif mysql # use DIV operator for integer division
query I rowsort label-6789
SELECT DISTINCT - col2 DIV 91 + + col1 AS col2 FROM tab2 AS cor0
----
17
31
59

skipif mysql # not compatible
query I rowsort label-6789
SELECT DISTINCT - col2 / 91 + + col1 AS col2 FROM tab2 AS cor0
----
17
31
59

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6790
SELECT ALL + col0 - CAST( 54 AS SIGNED ) AS col0 FROM tab0 cor0
----
-19
-30
35

skipif mysql # not compatible
query I rowsort label-6790
SELECT ALL + col0 - CAST ( 54 AS INTEGER ) AS col0 FROM tab0 cor0
----
-19
-30
35

query I rowsort
SELECT ALL + col2 * 67 * - col0 + cor0.col2 AS col2 FROM tab1 AS cor0
----
-10800
-244359
-514464

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6792
SELECT DISTINCT + col2 * CAST( col0 AS SIGNED ) FROM tab2 AS cor0
----
189
2028
3002

skipif mysql # not compatible
query I rowsort label-6792
SELECT DISTINCT + col2 * CAST ( col0 AS INTEGER ) FROM tab2 AS cor0
----
189
2028
3002

skipif mysql # not compatible
query I rowsort
SELECT CAST ( 35 AS REAL ) FROM tab0, tab1 cor0, tab2 AS cor1
----
27 values hashing to 0d13dfd4c4a9d51ace3582c31cadcdbc

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 32 * - col1 + - col1 col0 FROM tab0
----
2666
2821
3007

query I rowsort
SELECT col0 * col2 * 42 FROM tab1
----
153216
322560
6804

query I rowsort
SELECT ALL + tab1.col1 * col0 + 95 * - col1 AS col2 FROM tab1
----
-195
-2392
-310

query I rowsort
SELECT 80 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to 6dd5038be71dffa82f5ceba787caab91

query I rowsort
SELECT DISTINCT 68 AS col1 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
68

query I rowsort
SELECT ALL - col2 + col1 * col2 * col0 AS col0 FROM tab2 AS cor0
----
119626
50996
5832

onlyif mysql # use DIV operator for integer division
query I rowsort label-6800
SELECT col2 DIV tab0.col2 + - col1 * col2 + col1 AS col2 FROM tab0
----
-2751
-7370
1

skipif mysql # not compatible
query I rowsort label-6800
SELECT col2 / tab0.col2 + - col1 * col2 + col1 AS col2 FROM tab0
----
-2751
-7370
1

query I rowsort
SELECT col2 + col2 + - col1 * ( - col0 ) AS col0 FROM tab2
----
1419
271
4654

query I rowsort
SELECT ALL - col2 + col2 * + col1 + col2 AS col1 FROM tab0
----
2838
7462
97

query I rowsort
SELECT DISTINCT + col0 * - 72 AS col0 FROM tab1
----
-216
-4608
-5760

query I rowsort
SELECT col0 + + 26 FROM tab1
----
106
29
90

query I rowsort
SELECT - col2 + 73 * 12 * - col1 AS col0 FROM tab0
----
-75369
-79798
-84973

query I rowsort
SELECT DISTINCT - col1 * 19 + - col1 FROM tab1
----
-200
-260
-520

query I rowsort
SELECT 77 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 051bf10c50e061d74ad0a4d205a1c622

query I rowsort
SELECT DISTINCT col1 * + col0 AS col2 FROM tab1 cor0
----
1040
640
78

query I rowsort
SELECT 95 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to e57d8ed879dfd04d04aae87725c970d3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * - tab0.col0 col2 FROM tab0
----
-35
-7298
-792

onlyif mysql # use DIV operator for integer division
query I rowsort label-6811
SELECT + tab1.col0 DIV + col0 AS col0 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6811
SELECT + tab1.col0 / + col0 AS col0 FROM tab1
----
1
1
1

query I rowsort
SELECT + 72 * + col2 FROM tab2 AS cor0
----
1872
1944
2736

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + ( tab1.col2 ) col0 FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to 44fdcd7cd603352d4d127811d164cc1e

query I rowsort
SELECT 85 * - tab2.col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 39b6eacde67f5b67c36a42efca1d5690

query I rowsort
SELECT ALL + ( col1 * col1 + col1 * col1 ) FROM tab1
----
1352
200
338

query I rowsort
SELECT + + cor1.col1 * + 77 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 2ccd04658f10b0222c7967b3123db10b

query I rowsort
SELECT ALL + - 34 AS col2 FROM tab1 AS cor0
----
-34
-34
-34

query I rowsort
SELECT DISTINCT + + col1 * col0 + + col1 FROM tab2 AS cor0
----
1360
248
4661

query I rowsort
SELECT - + col0 - col0 AS col0 FROM tab1 AS cor0
----
-128
-160
-6

query I rowsort
SELECT DISTINCT 76 + col0 + - col0 * + col1 FROM tab0 AS cor0
----
-1964
-3284
-7934

query I rowsort
SELECT - + 12 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to e698dd57d3aac30af14ce35da434bb45

query I rowsort
SELECT ALL - - col0 + col1 - ( 85 ) FROM tab2 cor0
----
-47
11
52

query I rowsort
SELECT + 71 + col0 AS col0 FROM tab2 AS cor0
----
149
150
78

query I rowsort
SELECT DISTINCT + col1 * + cor0.col1 + col0 FROM tab0 AS cor0
----
7420
8370
9444

query I rowsort
SELECT ALL col0 + col0 + col0 AS col2 FROM tab0 AS cor0
----
105
267
72

query I rowsort
SELECT ALL + 13 + col0 AS col1 FROM tab2 AS cor0
----
20
91
92

onlyif mysql # use DIV operator for integer division
query I rowsort label-6827
SELECT ALL - - ( col2 ) DIV - col0 - cor0.col0 AS col1 FROM tab2 AS cor0
----
-10
-78
-79

skipif mysql # not compatible
query I rowsort label-6827
SELECT ALL - - ( col2 ) / - col0 - cor0.col0 AS col1 FROM tab2 AS cor0
----
-10
-78
-79

onlyif mysql # use DIV operator for integer division
query I rowsort label-6828
SELECT DISTINCT - - cor0.col0 * + col2 + - col1 DIV cor0.col0 + col1 * + col2 col2 FROM tab2 AS cor0
----
1022
3562
3648

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6828
SELECT DISTINCT - - cor0.col0 * + col2 + - col1 / cor0.col0 + col1 * + col2 col2 FROM tab2 AS cor0
----
1022
3562
3648

query I rowsort
SELECT ALL + + col0 + col2 * cor0.col2 FROM tab1 AS cor0
----
2919
3313
9296

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6830
SELECT DISTINCT col2 + + cor0.col2 * CAST( - 71 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-2310
-5740
-70

skipif mysql # not compatible
query I rowsort label-6830
SELECT DISTINCT col2 + + cor0.col2 * CAST ( - 71 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-2310
-5740
-70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 79 col2 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 4857f2e1b1dbd184de4827f145dd02a1

onlyif mysql # use DIV operator for integer division
query I rowsort label-6832
SELECT DISTINCT + 48 * col2 DIV - col0 + - CAST( + col1 AS SIGNED ) * - col0 + ( + 30 ) FROM tab2 AS cor0
----
1350
4616
62

skipif mysql # not compatible
query I rowsort label-6832
SELECT DISTINCT + 48 * col2 / - col0 + - CAST ( + col1 AS INTEGER ) * - col0 + ( + 30 ) FROM tab2 AS cor0
----
1350
4616
62

query I rowsort
SELECT - 41 + + cor0.col2 FROM tab2 AS cor0
----
-14
-15
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 14 col1 FROM tab1 cor0
----
-14
-14
-14

query I rowsort
SELECT + - 67 * + 10 FROM tab2 AS cor0
----
-670
-670
-670

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6836
SELECT + col1 + col1 - + CAST( - ( + col0 ) AS SIGNED ) * col1 col2 FROM tab1 AS cor0
----
1066
130
660

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6836
SELECT + col1 + col1 - + CAST ( - ( + col0 ) AS INTEGER ) * col1 col2 FROM tab1 AS cor0
----
1066
130
660

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6837
SELECT - - cor0.col1 + col1 + + CAST( + col1 AS SIGNED ) FROM tab2 AS cor0
----
177
51
93

skipif mysql # not compatible
query I rowsort label-6837
SELECT - - cor0.col1 + col1 + + CAST ( + col1 AS INTEGER ) FROM tab2 AS cor0
----
177
51
93

query I rowsort
SELECT DISTINCT - + col1 + + col0 + - col1 FROM tab0 AS cor0
----
-148
-159
-93

onlyif mysql # use DIV operator for integer division
query I rowsort label-6839
SELECT ALL + 72 DIV - col0 FROM tab1 AS cor0
----
-1
-24
0

skipif mysql # not compatible
query I rowsort label-6839
SELECT ALL + 72 / - col0 FROM tab1 AS cor0
----
-1
-24
0

query I rowsort
SELECT DISTINCT cor0.col1 + - col0 FROM tab2 cor0
----
-19
-62
24

query I rowsort
SELECT + col2 * col1 + col0 * 7 FROM tab1 AS cor0
----
1018
1425
1808

query I rowsort
SELECT DISTINCT - 75 + + col1 FROM tab0 AS cor0
----
11
16
22

query I rowsort
SELECT ALL + cor0.col0 + cor0.col0 AS col2 FROM tab2 AS cor0
----
14
156
158

query I rowsort
SELECT - col1 + 12 AS col0 FROM tab2 AS cor0
----
-19
-47
-5

onlyif mysql # use DIV operator for integer division
query I rowsort label-6845
SELECT ALL + col2 DIV 92 + col1 * + col2 FROM tab1 AS cor0
----
1249
1404
570

skipif mysql # not compatible
query I rowsort label-6845
SELECT ALL + col2 / 92 + col1 * + col2 FROM tab1 AS cor0
----
1249
1404
570

query I rowsort
SELECT DISTINCT + + col2 * + ( col1 ) - - cor0.col2 FROM tab1 AS cor0
----
1344
1458
627

onlyif mysql # use DIV operator for integer division
query I rowsort label-6847
SELECT ALL - 12 DIV - col0 + + 29 col0 FROM tab0
----
29
29
29

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6847
SELECT ALL - 12 / - col0 + + 29 col0 FROM tab0
----
29
29
29

query I rowsort
SELECT - - cor0.col2 + 6 FROM tab1 AS cor0
----
102
60
63

query I rowsort
SELECT + cor0.col2 + - 8 * + col2 FROM tab0 AS cor0
----
-231
-574
-7

onlyif mysql # use DIV operator for integer division
query I rowsort label-6850
SELECT - + col0 + 54 DIV col2 AS col2 FROM tab1 AS cor0
----
-2
-64
-80

skipif mysql # not compatible
query I rowsort label-6850
SELECT - + col0 + 54 / col2 AS col2 FROM tab1 AS cor0
----
-2
-64
-80

query I rowsort
SELECT DISTINCT + col1 + - col2 * col1 AS col0 FROM tab0
----
-2752
-7371
0

query I rowsort
SELECT DISTINCT + col1 * 40 FROM tab2 AS cor0
----
1240
2360
680

query I rowsort
SELECT + col0 * col0 + + col1 * + cor0.col2 * 35 FROM tab0 AS cor0
----
269091
4620
99906

query I rowsort
SELECT + col2 * - 22 + + cor0.col0 * - col2 FROM tab0 AS cor0
----
-1518
-57
-9102

onlyif mysql # use DIV operator for integer division
query I rowsort label-6855
SELECT - - col1 + + ( 87 ) DIV + col0 FROM tab0 AS cor0
----
89
91
99

skipif mysql # not compatible
query I rowsort label-6855
SELECT - - col1 + + ( 87 ) / + col0 FROM tab0 AS cor0
----
89
91
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 9 + + col2 col0 FROM tab0 AS cor0
----
10
42
91

query I rowsort
SELECT DISTINCT + col2 + 26 FROM tab1 AS cor0
----
122
80
83

query I rowsort
SELECT ALL - 9 AS col2 FROM tab0, tab0 AS cor0, tab1 AS cor1, tab1 cor2
----
81 values hashing to ea2ee48b6db0ed0e9f87711d3eeef049

query I rowsort
SELECT - col0 + + 75 AS col1 FROM tab1 AS cor0
----
-5
11
72

query I rowsort
SELECT ALL 2 AS col2 FROM tab1, tab1 cor0, tab0 AS cor1
----
27 values hashing to 535345c50a19fdab97ce05d1837b1f09

onlyif mysql # use DIV operator for integer division
query I rowsort label-6861
SELECT ALL 24 * - cor0.col0 + ( col0 ) * col2 + + 34 * ( col2 ) DIV - 49 col0 FROM tab2 AS cor0
----
1080
138
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6861
SELECT ALL 24 * - cor0.col0 + ( col0 ) * col2 + + 34 * ( col2 ) / - 49 col0 FROM tab2 AS cor0
----
1080
138
3

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6862
SELECT + CAST( + 53 AS SIGNED ) + col1 FROM tab2
----
112
70
84

skipif mysql # not compatible
query I rowsort label-6862
SELECT + CAST ( + 53 AS INTEGER ) + col1 FROM tab2
----
112
70
84

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab2, tab1 AS cor0, tab2 cor1
----
972 values hashing to bcf430f79386b43bc4077271fcd15cf0

onlyif mysql # use DIV operator for integer division
query I rowsort label-6864
SELECT col2 DIV - tab0.col0 FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-6864
SELECT col2 / - tab0.col0 FROM tab0
----
-1
0
0

query I rowsort
SELECT ALL 61 - - tab2.col0 FROM tab2
----
139
140
68

onlyif mysql # use DIV operator for integer division
query I rowsort label-6866
SELECT tab0.col2 DIV col1 AS col2 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6866
SELECT tab0.col2 / col1 AS col2 FROM tab0
----
0
0
0

query I rowsort
SELECT - col2 * tab1.col0 + + col2 AS col0 FROM tab1
----
-108
-3591
-7584

query I rowsort
SELECT DISTINCT - col2 + - col2 + - col0 AS col1 FROM tab2 AS cor0
----
-130
-155
-61

query I rowsort
SELECT col0 - col0 * col1 AS col1 FROM tab1
----
-576
-75
-960

query I rowsort
SELECT + + 2 + col1 + col1 AS col0 FROM tab1 AS cor0
----
22
28
54

query I rowsort
SELECT + col1 * col0 + + col1 * - ( - 66 ) + col2 FROM tab2 AS cor0
----
2290
2503
8522

query I rowsort
SELECT + - col2 + + col0 * - col0 AS col1 FROM tab2 AS cor0
----
-6110
-6279
-76

query I rowsort
SELECT DISTINCT + - 22 + + col0 FROM tab2 cor0
----
-15
56
57

onlyif mysql # use DIV operator for integer division
query I rowsort label-6874
SELECT ALL + col0 DIV - col1 + col2 AS col0 FROM tab2 AS cor0
----
25
27
34

skipif mysql # not compatible
query I rowsort label-6874
SELECT ALL + col0 / - col1 + col2 AS col0 FROM tab2 AS cor0
----
25
27
34

query I rowsort
SELECT ALL ( - col1 ) * + 30 - col1 AS col2 FROM tab0 AS cor0
----
-2666
-2821
-3007

query I rowsort
SELECT - col1 * - tab0.col1 * + col1 FROM tab0
----
636056
753571
912673

query I rowsort
SELECT DISTINCT - tab0.col0 FROM tab0, tab1, tab0 cor0
----
-24
-35
-89

query I rowsort
SELECT ALL 59 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to e29fef8cdec1ee45a71d213f16d2f1d3

query I rowsort
SELECT - 0 FROM tab2, tab2 AS cor0, tab2 AS cor1, tab0 AS cor2
----
81 values hashing to 1f117f467f45d8c6b7553e2e3c842942

query I rowsort
SELECT + 94 * cor0.col1 + ( 50 + - col2 ) FROM tab1 AS cor0
----
1176
2440
933

onlyif mysql # use DIV operator for integer division
query I rowsort label-6881
SELECT ALL + col1 DIV col0 + - col0 FROM tab2 AS cor0
----
-3
-78
-79

skipif mysql # not compatible
query I rowsort label-6881
SELECT ALL + col1 / col0 + - col0 FROM tab2 AS cor0
----
-3
-78
-79

query I rowsort
SELECT DISTINCT - 8 + - col1 AS col1 FROM tab0 AS cor0
----
-105
-94
-99

query I rowsort
SELECT ALL - cor0.col0 + - col2 * - col1 AS col0 FROM tab1 AS cor0
----
1168
1401
506

onlyif mysql # use DIV operator for integer division
query I rowsort label-6884
SELECT ALL + cor0.col0 DIV col0 - col2 FROM tab0 AS cor0
----
-32
-81
0

skipif mysql # not compatible
query I rowsort label-6884
SELECT ALL + cor0.col0 / col0 - col2 FROM tab0 AS cor0
----
-32
-81
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col1 * cor0.col2 - + ( + col1 ) col1 FROM tab2 AS cor0
----
-1593
-663
-868

query I rowsort
SELECT 59 * 88 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 92485f6a411d4798b2ebbb5b96d44a3e

query I rowsort
SELECT ALL + col2 * 44 FROM tab2
----
1144
1188
1672

query I rowsort
SELECT + col2 - + ( col0 ) FROM tab2
----
-41
-52
20

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * 23 col0 FROM tab2
----
161
1794
1817

query I rowsort
SELECT ALL + cor0.col2 + - 69 AS col0 FROM tab0 AS cor0
----
-36
-68
13

query I rowsort
SELECT ALL - cor0.col2 * + ( - 61 ) AS col2 FROM tab1 AS cor0
----
3294
3477
5856

onlyif mysql # use DIV operator for integer division
query I rowsort label-6892
SELECT DISTINCT cor0.col1 DIV + col2 AS col1 FROM tab0 AS cor0
----
1
2
97

skipif mysql # not compatible
query I rowsort label-6892
SELECT DISTINCT cor0.col1 / + col2 AS col1 FROM tab0 AS cor0
----
1
2
97

query I rowsort
SELECT + col1 * - ( - cor0.col2 ) FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT ALL - cor0.col2 * + col1 - col0 * col0 AS col1 FROM tab1 AS cor0
----
-1413
-4666
-7648

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6895
SELECT - CAST( NULL AS SIGNED ) + col1 * col2 AS col2 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6895
SELECT - CAST ( NULL AS INTEGER ) + col1 * col2 AS col2 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 62 + col2 * col1 FROM tab2 cor0
----
1596
708
899

query I rowsort
SELECT DISTINCT col0 - - 32 AS col0 FROM tab0 AS cor0
----
121
56
67

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6898
SELECT DISTINCT - col1 * cor0.col1 + col2 * CAST( NULL AS SIGNED ) * 43 + cor0.col1 / CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6898
SELECT DISTINCT - col1 * cor0.col1 + col2 * CAST ( NULL AS INTEGER ) * 43 + cor0.col1 / CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-6899
SELECT - - col0 + - col0 * col1 DIV col0 FROM tab0 AS cor0
----
-2
-62
-62

skipif mysql # not compatible
query I rowsort label-6899
SELECT - - col0 + - col0 * col1 / col0 FROM tab0 AS cor0
----
-2
-62
-62

query I rowsort
SELECT DISTINCT - ( + col1 ) * cor0.col0 FROM tab1 cor0
----
-1040
-640
-78

query I rowsort
SELECT DISTINCT - ( + 74 ) * + col2 + + col1 FROM tab1 AS cor0
----
-3970
-4208
-7091

query I rowsort
SELECT - col2 * col1 + col0 AS col2 FROM tab1 cor0
----
-1168
-1401
-506

query I rowsort
SELECT ALL ( - col2 ) + col2 * - col1 AS col1 FROM tab2 AS cor0
----
-1560
-684
-864

query I rowsort
SELECT + 35 - - col0 FROM tab1 AS cor0
----
115
38
99

query I rowsort
SELECT DISTINCT - + ( + col1 ) * col2 + 17 + col1 FROM tab1 AS cor0
----
-1218
-1361
-543

query I rowsort
SELECT DISTINCT col0 + - 12 - col1 AS col1 FROM tab2
----
-36
50
7

query I rowsort
SELECT DISTINCT + col1 * ( + col1 ) AS col1 FROM tab0
----
7396
8281
9409

onlyif mysql # use DIV operator for integer division
query I rowsort label-6908
SELECT ALL - CAST( + cor0.col0 AS SIGNED ) DIV + col2 AS col0 FROM tab0 AS cor0
----
-1
-35
0

skipif mysql # not compatible
query I rowsort label-6908
SELECT ALL - CAST ( + cor0.col0 AS INTEGER ) / + col2 AS col0 FROM tab0 AS cor0
----
-1
-35
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + col0 col0 FROM tab0 cor0
----
110
132
180

query I rowsort
SELECT ALL ( + cor0.col0 ) * col2 AS col1 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT + 22 * + col2 FROM tab1 AS cor0
----
1188
1254
2112

query I rowsort
SELECT DISTINCT + + 76 FROM tab1 AS cor0
----
76

onlyif mysql # use DIV operator for integer division
query I rowsort label-6913
SELECT DISTINCT - - col2 DIV ( - col0 ) AS col2 FROM tab1 AS cor0
----
-1
-18
0

skipif mysql # not compatible
query I rowsort label-6913
SELECT DISTINCT - - col2 / ( - col0 ) AS col2 FROM tab1 AS cor0
----
-1
-18
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6914
SELECT + + CAST( ( cor0.col2 ) AS SIGNED ) + - col2 * col1 AS col2 FROM tab0 AS cor0
----
-2805
-7380
-96

skipif mysql # not compatible
query I rowsort label-6914
SELECT + + CAST ( ( cor0.col2 ) AS INTEGER ) + - col2 * col1 AS col2 FROM tab0 AS cor0
----
-2805
-7380
-96

query I rowsort
SELECT - col0 + col2 - 78 FROM tab2 AS cor0
----
-119
-130
-58

query I rowsort
SELECT ALL ( - 66 ) + + col2 + 97 * col0 AS col1 FROM tab1
----
279
6199
7790

query I rowsort
SELECT ( col2 ) + col2 * col0 * - col1 - col1 FROM tab2 cor0
----
-119685
-51013
-5863

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 74 col0 FROM tab2 AS cor0
----
-74
-74
-74

query I rowsort
SELECT DISTINCT ( 3 ) AS col2 FROM tab2, tab1, tab0 AS cor0
----
3

query I rowsort
SELECT + 46 + + col2 * col0 AS col0 FROM tab0
----
7344
81
838

query I rowsort
SELECT col2 + - col0 + col0 FROM tab0
----
1
33
82

query I rowsort
SELECT DISTINCT - col1 + 86 * col0 FROM tab2 AS cor0
----
571
6649
6777

skipif mysql # not compatible
query I rowsort
SELECT ALL col1 * - CAST ( + 50 AS REAL ) + col1 AS col2 FROM tab0 cor0
----
-4214
-4459
-4753

query I rowsort
SELECT DISTINCT col2 * cor0.col1 + col2 * col2 FROM tab1 AS cor0
----
10464
3819
4320

query I rowsort
SELECT + + col2 * cor0.col2 * - col1 FROM tab2 AS cor0
----
-22599
-24548
-39884

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6926
SELECT DISTINCT col2 + CAST( - col2 AS SIGNED ) FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-6926
SELECT DISTINCT col2 + CAST ( - col2 AS INTEGER ) FROM tab0 cor0
----
0

query I rowsort
SELECT col2 * + col1 * cor0.col2 AS col2 FROM tab2 AS cor0
----
22599
24548
39884

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - col2 - - col0 col2 FROM tab2
----
196
2106
3081

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * - col2 + 21 * col2 col2 FROM tab0
----
-2145
-5740
-76

onlyif mysql # use DIV operator for integer division
query I rowsort label-6930
SELECT ALL ( col0 ) DIV - 13 + 54 * + col0 AS col1 FROM tab0
----
1295
1888
4800

skipif mysql # not compatible
query I rowsort label-6930
SELECT ALL ( col0 ) / - 13 + 54 * + col0 AS col1 FROM tab0
----
1295
1888
4800

query I rowsort
SELECT DISTINCT 11 + + tab1.col0 AS col2 FROM tab1
----
14
75
91

onlyif mysql # use DIV operator for integer division
query I rowsort label-6932
SELECT DISTINCT 89 DIV + col2 + tab1.col1 * + 99 FROM tab1
----
1287
2575
991

skipif mysql # not compatible
query I rowsort label-6932
SELECT DISTINCT 89 / + col2 + tab1.col1 * + 99 FROM tab1
----
1287
2575
991

query I rowsort
SELECT ALL - 26 + + col2 AS col0 FROM tab2
----
0
1
12

query I rowsort
SELECT - col1 * 72 + - tab2.col2 FROM tab2
----
-1262
-2259
-4274

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab0 cor0 CROSS JOIN tab0, tab0 AS cor1, tab0 AS cor2
----
972 values hashing to 04d825fa29899c3ee2704c26a542267d

query I rowsort
SELECT ALL + col0 + cor0.col1 AS col1 FROM tab0 AS cor0
----
110
132
180

query I rowsort
SELECT ALL - + col2 * + 34 AS col0 FROM tab2 AS cor0
----
-1292
-884
-918

query I rowsort
SELECT - - cor0.col0 * - ( cor0.col2 ) FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT DISTINCT + col0 + - 47 AS col0 FROM tab2 cor0
----
-40
31
32

query I rowsort
SELECT ALL - col2 * - 5 AS col1 FROM tab0 AS cor0
----
165
410
5

query I rowsort
SELECT ALL + col2 * 10 + ( - col2 ) FROM tab0 AS cor0
----
297
738
9

query I rowsort
SELECT DISTINCT - + cor0.col1 + ( col2 ) FROM tab2 cor0
----
-33
-4
21

query I rowsort
SELECT + 6 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 5d1cb90ed58fa7573895d2f95b211821

query I rowsort
SELECT ALL + - col0 + + 92 * cor0.col2 * - col1 FROM tab0 cor0
----
-261120
-686593
-8959

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - col2 + CAST ( 4 AS REAL ) * col0 AS col2 FROM tab0 AS cor0
----
139
274
63

query I rowsort
SELECT + ( col2 ) * - 77 + - 19 + col1 AS col2 FROM tab1 cor0
----
-4151
-4398
-7398

onlyif mysql # use DIV operator for integer division
query I rowsort label-6947
SELECT + cor0.col0 * + col1 + 60 DIV col2 FROM tab1 AS cor0
----
1040
641
79

skipif mysql # not compatible
query I rowsort label-6947
SELECT + cor0.col0 * + col1 + 60 / col2 FROM tab1 AS cor0
----
1040
641
79

onlyif mysql # use DIV operator for integer division
query I rowsort label-6948
SELECT - col1 * - col1 + col1 DIV col0 AS col1 FROM tab1 cor0
----
100
169
684

skipif mysql # not compatible
query I rowsort label-6948
SELECT - col1 * - col1 + col1 / col0 AS col1 FROM tab1 cor0
----
100
169
684

query I rowsort
SELECT - col2 * 88 FROM tab0 AS cor0
----
-2904
-7216
-88

query I rowsort
SELECT + col0 * - cor0.col1 * col1 + + col2 AS col1 FROM tab2 cor0
----
-22793
-271492
-6700

query I rowsort
SELECT DISTINCT col1 + 95 AS col1 FROM tab2 AS cor0
----
112
126
154

query I rowsort
SELECT + col2 * 96 FROM tab1 AS cor0
----
5184
5472
9216

query I rowsort
SELECT ALL col0 - col2 * col0 FROM tab2 cor0
----
-182
-1950
-2923

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * + col2 col0 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT 57 * col0 FROM tab1
----
171
3648
4560

query I rowsort
SELECT + col1 + - 65 * col1 - col0 FROM tab2 AS cor0
----
-1167
-1991
-3854

query I rowsort
SELECT - + col0 * col0 - - col0 AS col1 FROM tab2 AS cor0
----
-42
-6006
-6162

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6958
SELECT + CAST( + col2 AS SIGNED ) * col1 + + col1 AS col1 FROM tab0 cor0
----
194
2924
7553

skipif mysql # not compatible
query I rowsort label-6958
SELECT + CAST ( + col2 AS INTEGER ) * col1 + + col1 AS col1 FROM tab0 cor0
----
194
2924
7553

query I rowsort
SELECT - - col0 + - col2 AS col0 FROM tab0 AS cor0
----
-9
34
7

query I rowsort
SELECT + + 28 + col2 FROM tab1 AS cor0
----
124
82
85

query I rowsort
SELECT ALL - col2 * + 83 + col2 FROM tab0
----
-2706
-6724
-82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor1.col1 + - 4 col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 000e54bcb4bb4fe2e97bd113abd24b00

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab2.col2 col0 FROM tab1, tab2 AS cor0 CROSS JOIN tab2
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5

query I rowsort
SELECT ALL + ( + tab0.col0 ) FROM tab0
----
24
35
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 73 + col0 col1 FROM tab1 AS cor0
----
137
153
76

query I rowsort
SELECT + - cor0.col0 + + 95 * + col1 FROM tab1 AS cor0
----
1155
2467
886

query I rowsort
SELECT - 10 AS col0 FROM tab2, tab1 cor0
----
9 values hashing to f68f33032846e21ee6b2c668fc10355e

query I rowsort
SELECT 13 + col2 * col1 FROM tab1 AS cor0
----
1261
1417
583

query I rowsort
SELECT ALL + - cor0.col2 * col0 * - col2 + - col1 FROM tab0 AS cor0
----
-62
26050
598345

query I rowsort
SELECT DISTINCT ( + 38 ) FROM tab2
----
38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - col0 ) col0 FROM tab0
----
-24
-35
-89

query I rowsort
SELECT cor1.col0 AS col0 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd

onlyif mysql # use DIV operator for integer division
query I rowsort label-6973
SELECT col1 DIV ( col0 ) AS col1 FROM tab2
----
0
0
4

skipif mysql # not compatible
query I rowsort label-6973
SELECT col1 / ( col0 ) AS col1 FROM tab2
----
0
0
4

query I rowsort
SELECT + 88 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 6be17b82ecb3e8b268fcb4ba610ddb37

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 35 * - cor0.col1 col1 FROM tab1, tab2 AS cor0
----
-1085
-2065
-595

query I rowsort
SELECT - 51 + 49 AS col0 FROM tab0 AS cor0
----
-2
-2
-2

query I rowsort
SELECT DISTINCT + col2 - + col0 FROM tab2
----
-41
-52
20

query I rowsort
SELECT - col1 * col1 + tab1.col1 + + col2 AS col1 FROM tab1
----
-33
-596
-60

onlyif mysql # use DIV operator for integer division
query I rowsort label-6979
SELECT + 99 DIV col2 AS col2 FROM tab0 AS cor0
----
1
3
99

skipif mysql # not compatible
query I rowsort label-6979
SELECT + 99 / col2 AS col2 FROM tab0 AS cor0
----
1
3
99

query I rowsort
SELECT - col2 * - col0 * + col0 FROM tab0
----
1225
19008
649522

query I rowsort
SELECT ALL - + 12 * - col0 FROM tab0 AS cor0
----
1068
288
420

query I rowsort
SELECT DISTINCT + - 73 + col0 * - col2 AS col0 FROM tab0 AS cor0
----
-108
-7371
-865

onlyif mysql # use DIV operator for integer division
query I rowsort label-6983
SELECT ALL - + col0 DIV + col2 - 86 * + col0 AS col0 FROM tab1 AS cor0
----
-258
-5505
-6880

skipif mysql # not compatible
query I rowsort label-6983
SELECT ALL - + col0 / + col2 - 86 * + col0 AS col0 FROM tab1 AS cor0
----
-258
-5505
-6880

query I rowsort
SELECT - col1 * col0 + col1 AS col1 FROM tab0 AS cor0
----
-1978
-3298
-8008

query I rowsort
SELECT DISTINCT 97 + + col0 AS col1 FROM tab0 AS cor0
----
121
132
186

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col0 + + col1 col2 FROM tab0 AS cor0
----
2
62
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 * col1 + + col0 * + col1 col2 FROM tab2 AS cor0
----
1178
1632
8083

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6988
SELECT DISTINCT - ( + col1 ) * CAST( NULL AS SIGNED ) + 14 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6988
SELECT DISTINCT - ( + col1 ) * CAST ( NULL AS INTEGER ) + 14 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL + ( 99 ) FROM tab2 AS cor0 CROSS JOIN tab0, tab0 AS cor1, tab0 AS cor2
----
81 values hashing to c841a8d826151b422ecdb71db0250739

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * 40 col1 FROM tab0
----
1400
3560
960

onlyif mysql # use DIV operator for integer division
query I rowsort label-6991
SELECT DISTINCT 82 DIV 61 FROM tab0, tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-6991
SELECT DISTINCT 82 / 61 FROM tab0, tab0 AS cor0
----
1

query I rowsort
SELECT + col1 * - 76 FROM tab2 AS cor0
----
-1292
-2356
-4484

query I rowsort
SELECT DISTINCT 11 * col1 + col0 * - col0 FROM tab0 AS cor0
----
-158
-6920
370

onlyif mysql # use DIV operator for integer division
query I rowsort label-6994
SELECT ALL + col1 + + 37 DIV col0 AS col1 FROM tab2 AS cor0
----
17
36
59

skipif mysql # not compatible
query I rowsort label-6994
SELECT ALL + col1 + + 37 / col0 AS col1 FROM tab2 AS cor0
----
17
36
59

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6995
SELECT - ( col1 ) * + col0 * + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6995
SELECT - ( col1 ) * + col0 * + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + ( col2 ) * - col2 AS col1 FROM tab0 AS cor0
----
-1
-1089
-6724

onlyif mysql # use DIV operator for integer division
query I rowsort label-6997
SELECT DISTINCT - col1 DIV CAST( 49 AS SIGNED ) FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-6997
SELECT DISTINCT - col1 / CAST ( 49 AS INTEGER ) FROM tab0 AS cor0
----
-1

query I rowsort
SELECT - + cor0.col1 + col1 - col2 FROM tab1 AS cor0
----
-54
-57
-96

query I rowsort
SELECT DISTINCT + col2 * 37 AS col1 FROM tab1 cor0
----
1998
2109
3552

onlyif mysql # use DIV operator for integer division
query I rowsort label-7000
SELECT + col2 + - col1 * 78 DIV col2 AS col0 FROM tab1 AS cor0
----
17
44
86

skipif mysql # not compatible
query I rowsort label-7000
SELECT + col2 + - col1 * 78 / col2 AS col0 FROM tab1 AS cor0
----
17
44
86

query I rowsort
SELECT DISTINCT - col0 * - 49 + + ( + col0 + - col2 ) FROM tab2 AS cor0
----
323
3874
3912

query I rowsort
SELECT + - col2 * 82 + col2 FROM tab1 AS cor0
----
-4374
-4617
-7776

query I rowsort
SELECT ALL col2 * + 5 FROM tab2 AS cor0
----
130
135
190

query I rowsort
SELECT + + col1 + col1 * col2 FROM tab2 cor0
----
1593
663
868

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col0 * 54 + + 21 + col2 * col0 col1 FROM tab1 AS cor0
----
12021
345
7125

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col0 * cor0.col1 col1 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT ALL + 2 FROM tab1, tab0, tab0 AS cor0
----
27 values hashing to 535345c50a19fdab97ce05d1837b1f09

query I rowsort
SELECT + col2 - col2 * tab0.col2 * + tab0.col1 FROM tab0
----
-611802
-93621
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * col0 col2 FROM tab1 cor0
----
1040
640
78

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7010
SELECT ALL + - col0 * CAST( - col0 AS SIGNED ) + col2 AS col2 FROM tab1 AS cor0
----
4153
63
6496

skipif mysql # not compatible
query I rowsort label-7010
SELECT ALL + - col0 * CAST ( - col0 AS INTEGER ) + col2 AS col2 FROM tab1 AS cor0
----
4153
63
6496

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7011
SELECT col1 * CAST( col2 AS SIGNED ) * - col1 AS col1 FROM tab1 AS cor0
----
-16224
-36504
-5700

skipif mysql # not compatible
query I rowsort label-7011
SELECT col1 * CAST ( col2 AS INTEGER ) * - col1 AS col1 FROM tab1 AS cor0
----
-16224
-36504
-5700

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 - tab1.col1 col0 FROM tab1
----
28
47
83

query I rowsort
SELECT 68 FROM tab1, tab2 cor0
----
9 values hashing to 599bee15ac4cc39b859854e07dfe7990

query I rowsort
SELECT col2 + ( + col1 ) * 8 + - col2 * - cor0.col2 FROM tab1 AS cor0
----
3178
3386
9416

query I rowsort
SELECT + col0 * col0 + col1 - cor0.col1 * ( col2 ) FROM tab2 AS cor0
----
-757
4609
5612

query I rowsort
SELECT DISTINCT tab2.col2 + - col0 AS col0 FROM tab2
----
-41
-52
20

query I rowsort
SELECT ALL - col1 * + cor0.col2 * - col0 AS col2 FROM tab1 AS cor0
----
36480
4212
99840

onlyif mysql # use DIV operator for integer division
query I rowsort label-7018
SELECT ALL ( + col1 ) DIV - 87 FROM tab0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-7018
SELECT ALL ( + col1 ) / - 87 FROM tab0
----
-1
-1
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7019
SELECT DISTINCT cor0.col0 * - CAST( 43 AS SIGNED ) AS col2 FROM tab2, tab0 AS cor0
----
-1032
-1505
-3827

skipif mysql # not compatible
query I rowsort label-7019
SELECT DISTINCT cor0.col0 * - CAST ( 43 AS INTEGER ) AS col2 FROM tab2, tab0 AS cor0
----
-1032
-1505
-3827

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * - col2 col2 FROM tab1 AS cor0
----
2916
3249
9216

query I rowsort
SELECT + 76 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 7b2b08dd3f1adef028d3f40ef7c716da

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col2 * + col0 col1 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT ALL - col0 * col2 * 87 AS col2 FROM tab0
----
-3045
-634926
-68904

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col1 - + col2 * ( cor0.col2 ) col1 FROM tab2 cor0
----
-1427
-617
-698

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col0 * - col1 col0 FROM tab2 AS cor0
----
-1343
-217
-4602

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7026
SELECT col0 * - col1 + + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7026
SELECT col0 * - col1 + + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + + ( col0 ) * cor0.col1 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT DISTINCT col1 + 5 AS col1 FROM tab0 AS cor0
----
102
91
96

query I rowsort
SELECT - col2 + + ( col0 ) * - cor0.col1 FROM tab0 AS cor0
----
-2097
-3396
-8181

query I rowsort
SELECT 58 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 9ee363c6ac19cfdb8a50c7dfd5cc2b8a

query I rowsort
SELECT + 55 + - col1 FROM tab0 AS cor0
----
-31
-36
-42

query I rowsort
SELECT ALL + col0 + cor0.col2 * - col2 FROM tab2 AS cor0
----
-1365
-598
-722

query I rowsort
SELECT 5 * - 74 FROM tab2
----
-370
-370
-370

query I rowsort
SELECT + ( col1 ) * tab1.col0 AS col1 FROM tab1
----
1040
640
78

query I rowsort
SELECT ALL + + 42 * col1 FROM tab1 cor0
----
1092
420
546

query I rowsort
SELECT cor0.col2 + col1 - col1 AS col2 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT DISTINCT - 32 + - col2 AS col0 FROM tab2 AS cor0
----
-58
-59
-70

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab0 AS cor0, tab1 cor1, tab2 AS cor2
----
972 values hashing to 49c8bf3e931a898ba7af63d0e377eb79

query I rowsort
SELECT 44 + col2 * col2 * col0 FROM tab2 AS cor0
----
114120
5147
52772

query I rowsort
SELECT 71 + - 61 FROM tab0, tab1 cor0, tab2 AS cor1, tab0 AS cor2
----
81 values hashing to bf75e71325a06683558cf93fd725ad16

query I rowsort
SELECT ALL - - 61 FROM tab1 cor0
----
61
61
61

query I rowsort
SELECT - ( - cor0.col1 ) * col1 AS col2 FROM tab2 AS cor0
----
289
3481
961

query I rowsort
SELECT DISTINCT - ( col0 ) AS col1 FROM tab0 cor0
----
-24
-35
-89

query I rowsort
SELECT ALL col0 + - col0 * 15 AS col1 FROM tab0 AS cor0
----
-1246
-336
-490

query I rowsort
SELECT DISTINCT - 81 * + col2 AS col2 FROM tab2 AS cor0
----
-2106
-2187
-3078

query I rowsort
SELECT - + 32 + col1 AS col0 FROM tab0 AS cor0
----
54
59
65

query I rowsort
SELECT + tab2.col2 * - 54 AS col1 FROM tab2
----
-1404
-1458
-2052

query I rowsort
SELECT + ( 7 + + tab2.col0 ) AS col1 FROM tab2
----
14
85
86

onlyif mysql # use DIV operator for integer division
query I rowsort label-7049
SELECT DISTINCT + 97 DIV - col0 FROM tab1
----
-1
-32

skipif mysql # not compatible
query I rowsort label-7049
SELECT DISTINCT + 97 / - col0 FROM tab1
----
-1
-32

query I rowsort
SELECT col0 * 84 * tab1.col1 + 1 AS col0 FROM tab1
----
53761
6553
87361

query I rowsort
SELECT ALL col0 + tab2.col1 * col0 * col1 FROM tab2
----
22910
271596
6734

query I rowsort
SELECT ALL + col1 * col0 AS col2 FROM tab2
----
1343
217
4602

onlyif mysql # use DIV operator for integer division
query I rowsort label-7053
SELECT + tab1.col0 * col2 DIV col2 AS col2 FROM tab1
----
3
64
80

skipif mysql # not compatible
query I rowsort label-7053
SELECT + tab1.col0 * col2 / col2 AS col2 FROM tab1
----
3
64
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-7054
SELECT - col2 * + col2 + - col1 - col1 DIV + col0 AS col2 FROM tab0 AS cor0
----
-100
-1178
-6816

skipif mysql # not compatible
query I rowsort label-7054
SELECT - col2 * + col2 + - col1 - col1 / + col0 AS col2 FROM tab0 AS cor0
----
-100
-1178
-6816

query I rowsort
SELECT col2 + col1 * col2 AS col2 FROM tab1 AS cor0
----
1344
1458
627

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) BETWEEN NULL AND ( - col1 ) OR NOT ( col1 * col0 + col1 ) <> - col0 * + col2
----

query I rowsort
SELECT col2 AS col0 FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND NULL AND NOT NULL <> col2
----

query I rowsort
SELECT ALL + cor0.col2 + col1 * + col2 AS col1 FROM tab0 AS cor0
----
2871
7544
98

query I rowsort
SELECT - 9 * col2 * + col2 AS col0 FROM tab0 AS cor0
----
-60516
-9
-9801

onlyif mysql # use DIV operator for integer division
query I rowsort label-7060
SELECT + cor0.col1 + + col2 DIV + col0 FROM tab0 cor0
----
87
91
97

skipif mysql # not compatible
query I rowsort label-7060
SELECT + cor0.col1 + + col2 / + col0 FROM tab0 cor0
----
87
91
97

query I rowsort
SELECT DISTINCT + 38 * col0 AS col2 FROM tab2
----
266
2964
3002

onlyif mysql # use DIV operator for integer division
query I rowsort label-7062
SELECT + - cor0.col0 * - col1 * - col2 + + col1 DIV col1 + col0 FROM tab0 AS cor0
----
-3359
-664028
-68087

skipif mysql # not compatible
query I rowsort label-7062
SELECT + - cor0.col0 * - col1 * - col2 + + col1 / col1 + col0 FROM tab0 AS cor0
----
-3359
-664028
-68087

onlyif mysql # use DIV operator for integer division
query I rowsort label-7063
SELECT DISTINCT + - col0 DIV col0 + col0 DIV + col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7063
SELECT DISTINCT + - col0 / col0 + col0 / + col0 FROM tab1 AS cor0
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col0 / col1 BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT - col2 * + col2 * col2 - + col1 FROM tab2 WHERE col2 NOT BETWEEN ( tab2.col1 ) AND NULL
----
-17635
-19714

onlyif mysql # use DIV operator for integer division
query I rowsort label-7066
SELECT ALL col0 * col2 + col1 DIV + col1 FROM tab1
----
163
3649
7681

skipif mysql # not compatible
query I rowsort label-7066
SELECT ALL col0 * col2 + col1 / + col1 FROM tab1
----
163
3649
7681

query I rowsort
SELECT + col2 FROM tab1 WHERE NULL NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col0 * col1 NOT BETWEEN col1 AND ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * col1 + col2 + col2 col2 FROM tab1
----
214
361
784

query I rowsort
SELECT + col2 - col0 AS col1 FROM tab1
----
-7
16
51

query I rowsort
SELECT tab2.col1 + col2 + + col2 AS col1 FROM tab2
----
111
85
93

query I rowsort
SELECT DISTINCT col1 FROM tab1 WHERE NOT NULL IN ( - col1 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-7073
SELECT tab1.col0 DIV - tab1.col0 col1 FROM tab1
----
-1
-1
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7073
SELECT tab1.col0 / - tab1.col0 col1 FROM tab1
----
-1
-1
-1

query III rowsort
SELECT ALL * FROM tab0 WHERE col2 * - col0 BETWEEN NULL AND NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-7075
SELECT DISTINCT + col0 DIV + col0 AS col1 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-7075
SELECT DISTINCT + col0 / + col0 AS col1 FROM tab1
----
1

query I rowsort
SELECT + tab1.col0 + col1 * tab1.col0 AS col2 FROM tab1
----
1120
704
81

query I rowsort
SELECT + col1 + col1 * col2 * tab0.col2 FROM tab0 WHERE col2 / + col1 NOT IN ( col0 )
----
194
611975
93740

query I rowsort
SELECT ALL col0 + - tab2.col0 * - col0 AS col0 FROM tab2
----
56
6162
6320

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col0 col1 FROM tab1, tab2 AS cor0 CROSS JOIN tab2
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83

query I rowsort
SELECT cor0.col2 * cor0.col0 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to cf1383d310e5e3e19470e0b8dc064d0c

query I rowsort
SELECT DISTINCT col2 * - col0 AS col2 FROM tab0 AS cor0 WHERE col2 * + col2 NOT IN ( cor0.col0 * - col1 - col1 * col1 )
----
-35
-7298
-792

query I rowsort
SELECT col1 + + col2 + - col1 AS col2 FROM tab1
----
54
57
96

query I rowsort
SELECT DISTINCT tab2.col0 * - tab2.col0 + col1 AS col0 FROM tab2
----
-18
-6025
-6224

query I rowsort
SELECT col2 + + col1 * - col2 AS col1 FROM tab1
----
-1152
-1350
-513

query I rowsort
SELECT DISTINCT + col0 + - col1 + col1 FROM tab1 WHERE ( NULL ) NOT IN ( col0 )
----

query I rowsort
SELECT + tab2.col0 + - col2 AS col0 FROM tab2
----
-20
41
52

query I rowsort
SELECT DISTINCT + col1 * - col2 - col1 AS col1 FROM tab1 AS cor0
----
-1261
-1430
-580

onlyif mysql # use DIV operator for integer division
query I rowsort label-7088
SELECT DISTINCT col2 * - col0 + cor0.col2 DIV col1 - - col0 DIV col0 AS col1 FROM tab2 AS cor0
----
-188
-2027
-2999

skipif mysql # not compatible
query I rowsort label-7088
SELECT DISTINCT col2 * - col0 + cor0.col2 / col1 - - col0 / col0 AS col1 FROM tab2 AS cor0
----
-188
-2027
-2999

query I rowsort
SELECT col1 * - col0 * - col1 AS col2 FROM tab2 AS cor0
----
22831
271518
6727

query III rowsort
SELECT * FROM tab1 cor0 WHERE col0 NOT IN ( + cor0.col2 / + col0 )
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d

query I rowsort
SELECT DISTINCT cor0.col0 * + col0 AS col0 FROM tab1 AS cor0 WHERE + col1 + col2 * - col2 = NULL
----

query I rowsort
SELECT DISTINCT + 83 AS col1 FROM tab1 AS cor0
----
83

query I rowsort
SELECT - ( + cor0.col1 ) * cor0.col1 FROM tab1 AS cor0
----
-100
-169
-676

query I rowsort
SELECT ALL + ( col2 ) * cor0.col2 FROM tab1 AS cor0
----
2916
3249
9216

query I rowsort
SELECT + col2 * + col0 + col1 * + tab2.col0 * - 62 FROM tab2
----
-13265
-283296
-80264

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7096
SELECT ALL - CAST( NULL AS SIGNED ) / cor0.col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7096
SELECT ALL - CAST ( NULL AS INTEGER ) / cor0.col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + - col0 * - col1 FROM tab0 cor0
----
2064
3395
8099

query I rowsort
SELECT DISTINCT ( + col2 ) + + col2 * - col0 AS col0 FROM tab2 cor0
----
-162
-2002
-2964

query I rowsort
SELECT - - 0 + col1 * col0 AS col2 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT DISTINCT + - cor0.col2 * + col1 + col0 FROM tab0 AS cor0
----
-2814
-62
-7373

query I rowsort
SELECT DISTINCT + cor0.col2 * - col2 * col1 FROM tab1 cor0
----
-119808
-32490
-75816

onlyif mysql # use DIV operator for integer division
query I rowsort label-7102
SELECT ALL + + col2 DIV col2 AS col2 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-7102
SELECT ALL + + col2 / col2 AS col2 FROM tab0 AS cor0
----
1
1
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-7103
SELECT + - cor0.col1 DIV 93 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7103
SELECT + - cor0.col1 / 93 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - col0 + cor0.col2 + + 19 AS col0 FROM tab0 cor0
----
-15
12
28

query I rowsort
SELECT DISTINCT + - col2 + col2 * 34 * ( col2 * + col1 ) AS col1 FROM tab1 AS cor0
----
1104603
2577690
4073376

query I rowsort
SELECT DISTINCT + 30 + + col2 FROM tab0 AS cor0
----
112
31
63

query I rowsort
SELECT DISTINCT - - col2 * - col0 + col1 * col2 AS col1 FROM tab2 cor0
----
-2356
-494
648

query I rowsort
SELECT - ( col2 ) * - 23 AS col0 FROM tab1 AS cor0
----
1242
1311
2208

onlyif mysql # use DIV operator for integer division
query I rowsort label-7109
SELECT ALL - 23 DIV col0 FROM tab1
----
-7
0
0

skipif mysql # not compatible
query I rowsort label-7109
SELECT ALL - 23 / col0 FROM tab1
----
-7
0
0

query I rowsort
SELECT ALL tab0.col1 * tab0.col0 FROM tab0
----
2064
3395
8099

onlyif mysql # use DIV operator for integer division
query I rowsort label-7111
SELECT - col2 DIV + cor0.col2 + + cor0.col2 * cor0.col2 FROM tab0 cor0
----
0
1088
6723

skipif mysql # not compatible
query I rowsort label-7111
SELECT - col2 / + cor0.col2 + + cor0.col2 * cor0.col2 FROM tab0 cor0
----
0
1088
6723

onlyif mysql # use DIV operator for integer division
query I rowsort label-7112
SELECT ALL col0 * - CAST( - col0 AS SIGNED ) * + cor0.col1 + - col2 DIV - col2 FROM tab1 AS cor0
----
235
40961
83201

skipif mysql # not compatible
query I rowsort label-7112
SELECT ALL col0 * - CAST ( - col0 AS INTEGER ) * + cor0.col1 + - col2 / - col2 FROM tab1 AS cor0
----
235
40961
83201

query I rowsort
SELECT + 35 + 44 * + cor1.col0 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 93bdfce78d474baa7c2dba2858c2708c

query I rowsort
SELECT col1 + - col1 * col1 * + col0 FROM tab0
----
-177418
-329218
-736918

query I rowsort
SELECT tab1.col0 - - col0 * + col2 FROM tab1
----
165
3712
7760

query I rowsort
SELECT ALL - col1 + + col2 * - 12 FROM tab1
----
-1165
-674
-694

query I rowsort
SELECT ( cor0.col1 ) AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775

query I rowsort
SELECT - col2 * + 20 FROM tab0 AS cor0
----
-1640
-20
-660

query I rowsort
SELECT - col0 * ( - ( col1 ) ) + col2 * + 36 FROM tab1 AS cor0
----
2022
2692
4496

query I rowsort
SELECT ALL + cor0.col1 * + 99 + + col2 + - col0 FROM tab1 AS cor0
----
1303
2625
983

query I rowsort
SELECT ALL - + cor0.col2 AS col0 FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to 6a43e7f15194af73fe1c83385e6ebebc

query I rowsort
SELECT + tab1.col0 * col2 + + col2 FROM tab1
----
216
3705
7776

query I rowsort
SELECT col0 + ( col0 ) AS col1 FROM tab0
----
178
48
70

query I rowsort
SELECT col1 * + ( col1 * col1 ) + col1 AS col1 FROM tab0
----
636142
753662
912770

query I rowsort
SELECT ALL 22 + 14 FROM tab0, tab2 cor0
----
9 values hashing to eee96a85519f92856a7500dc8b6cf752

query I rowsort
SELECT ALL col1 + - 49 * col2 FROM tab0
----
-1531
-3927
48

query I rowsort
SELECT - col0 + - col0 + + col2 FROM tab0 AS cor0
----
-15
-69
-96

query I rowsort
SELECT DISTINCT - 24 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-24

onlyif mysql # use DIV operator for integer division
query I rowsort label-7129
SELECT ALL + ( - ( + col0 ) + - col2 ) * col1 DIV tab0.col0 AS col0 FROM tab0
----
-174
-204
-99

skipif mysql # not compatible
query I rowsort label-7129
SELECT ALL + ( - ( + col0 ) + - col2 ) * col1 / tab0.col0 AS col0 FROM tab0
----
-174
-204
-99

query I rowsort
SELECT ALL - 99 + col0 AS col1 FROM tab0 AS cor0
----
-10
-64
-75

query I rowsort
SELECT ALL - 34 AS col2 FROM tab2
----
-34
-34
-34

query I rowsort
SELECT DISTINCT ( cor0.col2 ) + col0 AS col1 FROM tab2 cor0
----
104
117
34

query I rowsort
SELECT - + 66 * ( cor0.col0 ) + + cor0.col2 AS col0 FROM tab2 AS cor0
----
-435
-5122
-5176

query I rowsort
SELECT + - cor0.col0 * - col0 * + col0 + - col2 FROM tab0 AS cor0
----
13791
42874
704887

query I rowsort
SELECT ALL 56 + col2 AS col0 FROM tab2 AS cor0
----
82
83
94

onlyif mysql # use DIV operator for integer division
query I rowsort label-7136
SELECT - + col2 * - col1 DIV + col1 + col0 * col2 AS col0 FROM tab2 AS cor0
----
2054
216
3040

skipif mysql # not compatible
query I rowsort label-7136
SELECT - + col2 * - col1 / + col1 + col0 * col2 AS col0 FROM tab2 AS cor0
----
2054
216
3040

onlyif mysql # use DIV operator for integer division
query I rowsort label-7137
SELECT DISTINCT + cor0.col0 + 21 DIV col0 - col2 * - col2 AS col0 FROM tab1 cor0
----
2926
3313
9296

skipif mysql # not compatible
query I rowsort label-7137
SELECT DISTINCT + cor0.col0 + 21 / col0 - col2 * - col2 AS col0 FROM tab1 cor0
----
2926
3313
9296

query I rowsort
SELECT ALL col2 + + col0 * col2 AS col0 FROM tab0
----
36
7380
825

onlyif mysql # use DIV operator for integer division
query I rowsort label-7139
SELECT ALL - 44 * tab0.col1 + 42 DIV + col1 + - col0 AS col2 FROM tab0
----
-3808
-4093
-4303

skipif mysql # not compatible
query I rowsort label-7139
SELECT ALL - 44 * tab0.col1 + 42 / + col1 + - col0 AS col2 FROM tab0
----
-3808
-4093
-4303

query I rowsort
SELECT + ( + tab0.col1 ) FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd

query I rowsort
SELECT ALL - + col1 * col1 * - col0 FROM tab2 AS cor0
----
22831
271518
6727

query I rowsort
SELECT + col0 + col2 * + ( ( cor0.col0 ) ) * cor0.col2 + col2 FROM tab1 AS cor0
----
208057
737456
8805

query I rowsort
SELECT col0 * - cor0.col2 + - col0 + + col1 * col2 * col0 FROM tab1 AS cor0
----
32768
4047
92080

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 72 + + col1 col2 FROM tab0
----
158
163
169

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7145
SELECT DISTINCT + col2 + col2 * CAST( col1 AS SIGNED ) FROM tab0
----
2871
7544
98

skipif mysql # not compatible
query I rowsort label-7145
SELECT DISTINCT + col2 + col2 * CAST ( col1 AS INTEGER ) FROM tab0
----
2871
7544
98

query I rowsort
SELECT DISTINCT - cor0.col0 * + col2 FROM tab1 cor0
----
-162
-3648
-7680

query I rowsort
SELECT ALL - + 3 AS col2 FROM tab0 AS cor0
----
-3
-3
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 * + col1 col1 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT - col2 + ( col1 ) AS col0 FROM tab0 AS cor0
----
53
9
96

query I rowsort
SELECT DISTINCT col0 * ( col1 ) AS col0 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT ALL + - col0 * - col1 + col0 * + col2 + + col0 FROM tab2 cor0
----
413
4424
6708

query I rowsort
SELECT col0 + + 64 AS col0 FROM tab1 AS cor0
----
128
144
67

onlyif mysql # use DIV operator for integer division
query I rowsort label-7153
SELECT ALL cor0.col2 - - col2 DIV + col2 AS col2 FROM tab1 AS cor0
----
55
58
97

skipif mysql # not compatible
query I rowsort label-7153
SELECT ALL cor0.col2 - - col2 / + col2 AS col2 FROM tab1 AS cor0
----
55
58
97

query I rowsort
SELECT + col2 * + col2 + + 56 * col2 AS col2 FROM tab2 AS cor0
----
2132
2241
3572

query I rowsort
SELECT DISTINCT - col1 + - col2 + col0 * - col1 AS col1 FROM tab0 AS cor0
----
-2183
-3493
-8272

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7156
SELECT DISTINCT + col0 * + CAST( - col2 AS SIGNED ) + + col2 FROM tab2 AS cor0
----
-162
-2002
-2964

skipif mysql # not compatible
query I rowsort label-7156
SELECT DISTINCT + col0 * + CAST ( - col2 AS INTEGER ) + + col2 FROM tab2 AS cor0
----
-162
-2002
-2964

query I rowsort
SELECT + col2 * - ( + 4 ) + col2 AS col2 FROM tab1 AS cor0
----
-162
-171
-288

query I rowsort
SELECT DISTINCT + col1 + ( col1 ) + col0 FROM tab2 AS cor0
----
113
196
69

query I rowsort
SELECT DISTINCT + cor0.col1 * - col2 + - 43 FROM tab2 AS cor0
----
-1577
-689
-880

query I rowsort
SELECT DISTINCT - cor0.col1 + 37 * - col2 FROM tab0 AS cor0
----
-1307
-134
-3125

query I rowsort
SELECT ALL + col0 + + col0 * ( col2 ) AS col0 FROM tab1 AS cor0
----
165
3712
7760

query I rowsort
SELECT + - col2 - - 73 * cor0.col1 FROM tab2 AS cor0
----
1203
2236
4281

query I rowsort
SELECT + col1 + 50 * col2 FROM tab0 AS cor0
----
147
1736
4191

query I rowsort
SELECT ALL ( col1 ) + - col0 * col0 FROM tab2
----
-18
-6025
-6224

onlyif mysql # use DIV operator for integer division
query I rowsort label-7165
SELECT 35 DIV + col0 col2 FROM tab2
----
0
0
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7165
SELECT 35 / + col0 col2 FROM tab2
----
0
0
5

query I rowsort
SELECT ALL - ( col1 * 38 ) + - col2 FROM tab2
----
-1205
-2268
-684

query I rowsort
SELECT + col2 + - 80 FROM tab0 AS cor0
----
-47
-79
2

query I rowsort
SELECT ALL cor0.col1 * + 22 * + col0 FROM tab1 AS cor0
----
14080
1716
22880

query I rowsort
SELECT + 89 FROM tab1, tab1 cor0, tab2 AS cor1
----
27 values hashing to 860d55eb6785972467218a9c3badb5ad

query I rowsort
SELECT DISTINCT + - col2 + - 15 FROM tab1 AS cor0
----
-111
-69
-72

query I rowsort
SELECT - cor0.col2 AS col0 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 0dc9bbe392d52df93d2a115d7f622dba

query I rowsort
SELECT DISTINCT + cor1.col0 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
24
35
89

onlyif mysql # use DIV operator for integer division
query I rowsort label-7173
SELECT - col2 * - ( col0 ) + + tab2.col1 + col0 DIV col1 FROM tab2
----
2088
220
3023

skipif mysql # not compatible
query I rowsort label-7173
SELECT - col2 * - ( col0 ) + + tab2.col1 + col0 / col1 FROM tab2
----
2088
220
3023

onlyif mysql # use DIV operator for integer division
query I rowsort label-7174
SELECT - + col2 + + col2 DIV cor0.col2 AS col0 FROM tab1 AS cor0
----
-53
-56
-95

skipif mysql # not compatible
query I rowsort label-7174
SELECT - + col2 + + col2 / cor0.col2 AS col0 FROM tab1 AS cor0
----
-53
-56
-95

query I rowsort
SELECT ALL col2 - - tab1.col1 FROM tab1
----
109
67
80

query I rowsort
SELECT DISTINCT - 50 FROM tab0, tab2 cor0, tab0 AS cor1
----
-50

query I rowsort
SELECT DISTINCT + col2 * 37 - - col2 FROM tab1
----
2052
2166
3648

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7178
SELECT - cor0.col0 * - CAST( ( - col0 ) AS SIGNED ) + + col0 AS col2 FROM tab2 AS cor0
----
-42
-6006
-6162

skipif mysql # not compatible
query I rowsort label-7178
SELECT - cor0.col0 * - CAST ( ( - col0 ) AS INTEGER ) + + col0 AS col2 FROM tab2 AS cor0
----
-42
-6006
-6162

onlyif mysql # use DIV operator for integer division
query I rowsort label-7179
SELECT ALL - col0 * 86 + - col1 DIV col0 AS col1 FROM tab1 AS cor0
----
-266
-5504
-6880

skipif mysql # not compatible
query I rowsort label-7179
SELECT ALL - col0 * 86 + - col1 / col0 AS col1 FROM tab1 AS cor0
----
-266
-5504
-6880

query I rowsort
SELECT ALL 17 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 43298e43365fccb5146ea32003753c92

query I rowsort
SELECT + tab2.col2 AS col1 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5

query I rowsort
SELECT - 14 + cor0.col0 * col0 FROM tab0 AS cor0
----
1211
562
7907

query I rowsort
SELECT - 89 + + col1 AS col0 FROM tab2 cor0
----
-30
-58
-72

query I rowsort
SELECT - + col0 + - cor0.col1 AS col0 FROM tab0 cor0
----
-110
-132
-180

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 - + col0 col2 FROM tab0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 + col1 * + col2 col1 FROM tab2 cor0
----
1560
684
864

query I rowsort
SELECT ALL 52 + col2 AS col2 FROM tab1 AS cor0
----
106
109
148

query I rowsort
SELECT ALL + - col2 * cor0.col1 AS col1 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT ALL - col1 * + col2 + - cor0.col2 * col2 AS col2 FROM tab0 AS cor0
----
-14186
-3927
-98

query I rowsort
SELECT DISTINCT + col2 + - ( col0 ) - col1 AS col0 FROM tab0 AS cor0
----
-131
-77
-98

query I rowsort
SELECT ALL + + col0 * ( - 93 ) * + col0 AS col1 FROM tab0 cor0
----
-113925
-53568
-736653

query I rowsort
SELECT - col1 * + ( + col2 ) + col0 FROM tab0 AS cor0
----
-2814
-62
-7373

onlyif mysql # use DIV operator for integer division
query I rowsort label-7193
SELECT DISTINCT + col1 DIV - 30 FROM tab2 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-7193
SELECT DISTINCT + col1 / - 30 FROM tab2 AS cor0
----
-1
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 93 col2 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to 85ef191bf1b307f300b3fd49992fcae7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 64 col1 FROM tab1
----
64
64
64

query I rowsort
SELECT - + 31 * - cor0.col2 FROM tab1 AS cor0
----
1674
1767
2976

query I rowsort
SELECT ALL - + col1 * cor0.col1 + cor0.col0 FROM tab1 cor0
----
-36
-673
-89

query I rowsort
SELECT DISTINCT - col0 * 74 AS col0 FROM tab2 AS cor0
----
-518
-5772
-5846

query I rowsort
SELECT - 32 * + col2 - col1 FROM tab1 AS cor0
----
-1754
-1834
-3085

query I rowsort
SELECT DISTINCT col1 + + ( - col2 ) AS col1 FROM tab0 AS cor0
----
53
9
96

query I rowsort
SELECT + col0 * + 84 * + cor0.col1 + col2 FROM tab2 cor0
----
112850
18255
386594

query I rowsort
SELECT - 16 + cor0.col2 * + col0 FROM tab2 AS cor0
----
173
2012
2986

query I rowsort
SELECT ALL - 30 * col2 FROM tab0 AS cor0
----
-2460
-30
-990

query I rowsort
SELECT DISTINCT + cor0.col0 - + 57 * tab0.col0 AS col2 FROM tab0, tab2, tab2 AS cor0
----
9 values hashing to 09ed9eebd1b7ca7eddef92ee4b28d6b7

query I rowsort
SELECT ALL + + ( 21 ) FROM tab1 cor0
----
21
21
21

onlyif mysql # use DIV operator for integer division
query I rowsort label-7206
SELECT ALL + cor0.col1 DIV - 1 AS col0 FROM tab2 AS cor0
----
-17
-31
-59

skipif mysql # not compatible
query I rowsort label-7206
SELECT ALL + cor0.col1 / - 1 AS col0 FROM tab2 AS cor0
----
-17
-31
-59

query I rowsort
SELECT + - col1 * cor0.col1 + cor0.col2 FROM tab1 AS cor0
----
-43
-622
-73

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7208
SELECT + + CAST( NULL AS SIGNED ) + + cor0.col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7208
SELECT + + CAST ( NULL AS INTEGER ) + + cor0.col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col2 * - ( col0 ) AS col0 FROM tab2
----
-189
-2028
-3002

onlyif mysql # use DIV operator for integer division
query I rowsort label-7210
SELECT col1 * + ( + col0 ) DIV - col0 AS col0 FROM tab0
----
-86
-91
-97

skipif mysql # not compatible
query I rowsort label-7210
SELECT col1 * + ( + col0 ) / - col0 AS col0 FROM tab0
----
-86
-91
-97

query I rowsort
SELECT ( - col2 ) * + col2 + col1 AS col1 FROM tab1
----
-2890
-3239
-9203

query I rowsort
SELECT + cor0.col2 * - col2 + - 4 AS col1 FROM tab0 AS cor0
----
-1093
-5
-6728

onlyif mysql # use DIV operator for integer division
query I rowsort label-7213
SELECT + - CAST( + col1 AS SIGNED ) DIV - cor0.col0 FROM tab2 AS cor0
----
0
0
4

skipif mysql # not compatible
query I rowsort label-7213
SELECT + - CAST ( + col1 AS INTEGER ) / - cor0.col0 FROM tab2 AS cor0
----
0
0
4

onlyif mysql # use DIV operator for integer division
query I rowsort label-7214
SELECT DISTINCT col2 + + col2 DIV - col1 AS col0 FROM tab0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-7214
SELECT DISTINCT col2 + + col2 / - col1 AS col0 FROM tab0
----
1
33
82

query I rowsort
SELECT DISTINCT - 13 FROM tab2, tab1 AS cor0
----
-13

query I rowsort
SELECT tab1.col0 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 19 col1 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
19

query I rowsort
SELECT ALL + col0 * - ( + ( - col2 ) ) + col0 FROM tab0 cor0
----
70
7387
816

onlyif mysql # use DIV operator for integer division
query I rowsort label-7219
SELECT - col1 DIV + col1 + - cor0.col0 AS col1 FROM tab0 AS cor0
----
-25
-36
-90

skipif mysql # not compatible
query I rowsort label-7219
SELECT - col1 / + col1 + - cor0.col0 AS col1 FROM tab0 AS cor0
----
-25
-36
-90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 81 col2 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 0a85639e0dddbffdab2cb16b027cb360

query I rowsort
SELECT ALL - - col2 + col0 AS col0 FROM tab0 cor0
----
171
36
57

query I rowsort
SELECT + 92 + col1 * col1 AS col2 FROM tab1 cor0
----
192
261
768

query I rowsort
SELECT DISTINCT - ( 44 ) FROM tab0 AS cor0
----
-44

skipif mysql # not compatible
query I rowsort
SELECT ALL + CAST ( col1 AS REAL ) * cor0.col2 AS col2 FROM tab1 cor0
----
1248
1404
570

query I rowsort
SELECT DISTINCT + col1 + + col1 * col1 FROM tab2 AS cor0
----
306
3540
992

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab0 AS cor0 CROSS JOIN tab2, tab0 AS cor1, tab2 AS cor2
----
3645 values hashing to d47b3f87370e79c6978209440a41fac4

query I rowsort
SELECT col0 + + 26 FROM tab1 AS cor0
----
106
29
90

query I rowsort
SELECT - col0 + - ( col1 ) AS col1 FROM tab0 AS cor0
----
-110
-132
-180

query I rowsort
SELECT ALL 68 + - col1 * + col1 FROM tab2 AS cor0
----
-221
-3413
-893

query I rowsort
SELECT - ( 94 ) FROM tab2 cor0
----
-94
-94
-94

query I rowsort
SELECT ALL + ( col1 ) * col0 + col1 * - cor0.col2 * cor0.col2 AS col0 FROM tab1 AS cor0
----
-118768
-31850
-75738

query I rowsort
SELECT ALL + ( 1 ) + col0 * col0 * col1 AS col0 FROM tab2 AS cor0
----
106098
1520
358957

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 69 * col2 col1 FROM tab0 AS cor0
----
-2277
-5658
-69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col0 + + col0 + - col0 * 82 * col2 col0 FROM tab0 cor0
----
-2800
-598258
-64896

query I rowsort
SELECT ALL + - col2 + - col0 AS col2 FROM tab1 AS cor0
----
-121
-176
-57

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7236
SELECT DISTINCT - cor0.col0 * col2 + + CAST( + col2 AS SIGNED ) * - col0 AS col1 FROM tab2 cor0
----
-378
-4056
-6004

skipif mysql # not compatible
query I rowsort label-7236
SELECT DISTINCT - cor0.col0 * col2 + + CAST ( + col2 AS INTEGER ) * - col0 AS col1 FROM tab2 cor0
----
-378
-4056
-6004

query I rowsort
SELECT 84 * + col1 FROM tab0
----
7224
7644
8148

query I rowsort
SELECT ALL 56 FROM tab0 cor0
----
56
56
56

query I rowsort
SELECT ALL 3 * col1 FROM tab2 AS cor0
----
177
51
93

query I rowsort
SELECT cor0.col2 * + col2 + ( - col0 ) AS col2 FROM tab0 AS cor0
----
-34
1065
6635

onlyif mysql # use DIV operator for integer division
query I rowsort label-7241
SELECT DISTINCT + - 19 * col2 DIV - col1 col1 FROM tab0 AS cor0
----
0
17
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7241
SELECT DISTINCT + - 19 * col2 / - col1 col1 FROM tab0 AS cor0
----
0
17
7

onlyif mysql # use DIV operator for integer division
query I rowsort label-7242
SELECT ALL - col2 DIV col1 - + col1 * col2 AS col1 FROM tab1 AS cor0
----
-1255
-1406
-575

skipif mysql # not compatible
query I rowsort label-7242
SELECT ALL - col2 / col1 - + col1 * col2 AS col1 FROM tab1 AS cor0
----
-1255
-1406
-575

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7243
SELECT - + cor0.col2 - + col2 * - CAST( 2 AS SIGNED ) FROM tab0 AS cor0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-7243
SELECT - + cor0.col2 - + col2 * - CAST ( 2 AS INTEGER ) FROM tab0 AS cor0
----
1
33
82

onlyif mysql # use DIV operator for integer division
query I rowsort label-7244
SELECT ALL + col0 + col0 DIV 74 FROM tab2 AS cor0
----
7
79
80

skipif mysql # not compatible
query I rowsort label-7244
SELECT ALL + col0 + col0 / 74 FROM tab2 AS cor0
----
7
79
80

query I rowsort
SELECT DISTINCT + col1 - + col1 * col0 * 27 AS col1 FROM tab1 AS cor0
----
-17270
-2080
-28067

query I rowsort
SELECT 78 + col1 * - cor0.col0 * col1 + col0 FROM tab2 AS cor0
----
-22674
-271362
-6642

query I rowsort
SELECT DISTINCT + + col2 + + cor0.col1 FROM tab2 cor0
----
55
58
85

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7248
SELECT - col0 + + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7248
SELECT - col0 + + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7249
SELECT ALL col2 + + CAST( col2 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
108
114
192

skipif mysql # not compatible
query I rowsort label-7249
SELECT ALL col2 + + CAST ( col2 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
108
114
192

query I rowsort
SELECT ALL + col0 + - col1 * + 73 * + col0 AS col1 FROM tab0 AS cor0
----
-150648
-247800
-591138

onlyif mysql # use DIV operator for integer division
query I rowsort label-7251
SELECT - col1 DIV - col2 + - col0 * - cor0.col0 AS col1 FROM tab1 AS cor0
----
4096
6400
9

skipif mysql # not compatible
query I rowsort label-7251
SELECT - col1 / - col2 + - col0 * - cor0.col0 AS col1 FROM tab1 AS cor0
----
4096
6400
9

query I rowsort
SELECT DISTINCT - + col1 * + 2 - + cor0.col2 AS col1 FROM tab2 AS cor0
----
-144
-72
-89

onlyif mysql # use DIV operator for integer division
query I rowsort label-7253
SELECT ALL col0 + 41 DIV cor0.col0 AS col0 FROM tab2 AS cor0
----
12
78
79

skipif mysql # not compatible
query I rowsort label-7253
SELECT ALL col0 + 41 / cor0.col0 AS col0 FROM tab2 AS cor0
----
12
78
79

onlyif mysql # use DIV operator for integer division
query I rowsort label-7254
SELECT + col1 - + CAST( 50 AS SIGNED ) DIV + col1 col0 FROM tab0 AS cor0
----
86
91
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7254
SELECT + col1 - + CAST ( 50 AS INTEGER ) / + col1 col0 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT + col0 * cor0.col1 + 76 FROM tab1 AS cor0
----
1116
154
716

query I rowsort
SELECT + col2 + 3 + col0 FROM tab2 AS cor0
----
107
120
37

query I rowsort
SELECT + - col0 + - col0 * + cor0.col2 * col1 FROM tab0 AS cor0
----
-3430
-664207
-68136

query I rowsort
SELECT + col0 + + ( col1 ) - col0 AS col0 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT - - 62 + - col1 FROM tab0 AS cor0
----
-24
-29
-35

query I rowsort
SELECT cor0.col2 + 58 AS col0 FROM tab0 AS cor0
----
140
59
91

query I rowsort
SELECT ALL + cor0.col1 + cor1.col1 AS col2 FROM tab2, tab0 cor0, tab2 AS cor1
----
27 values hashing to 92e3b258bb05c688aeabd5d16aba9daf

query I rowsort
SELECT - 32 AS col2 FROM tab1, tab2 cor0, tab0 AS cor1, tab2, tab2 AS cor2
----
243 values hashing to d9fd2e91495773df58bea6b9a2a13d6a

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col2 + cor0.col1 col1 FROM tab2 AS cor0
----
-21
33
4

query I rowsort
SELECT ( col0 ) + - col0 * col1 AS col1 FROM tab0
----
-2040
-3360
-8010

onlyif mysql # use DIV operator for integer division
query I rowsort label-7265
SELECT DISTINCT col0 + col1 DIV 31 + + 49 DIV col0 AS col1 FROM tab0
----
28
39
91

skipif mysql # not compatible
query I rowsort label-7265
SELECT DISTINCT col0 + col1 / 31 + + 49 / col0 AS col1 FROM tab0
----
28
39
91

query I rowsort
SELECT DISTINCT + 76 FROM tab1
----
76

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7267
SELECT + 72 + col0 * + CAST( NULL AS SIGNED ) AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7267
SELECT + 72 + col0 * + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - + 47 * col2 AS col1 FROM tab2 AS cor0
----
-1222
-1269
-1786

query I rowsort
SELECT DISTINCT + + 76 + col0 FROM tab2 AS cor0
----
154
155
83

query I rowsort
SELECT + ( + 78 ) + col0 * cor0.col0 AS col1 FROM tab1 AS cor0
----
4174
6478
87

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7271
SELECT ALL + CAST( NULL AS DECIMAL ) * col0 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7271
SELECT ALL + CAST ( NULL AS REAL ) * col0 AS col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT col2 * tab2.col2 + col2 FROM tab2
----
1482
702
756

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7273
SELECT CAST( NULL AS SIGNED ) * + col2 + + col2 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7273
SELECT CAST ( NULL AS INTEGER ) * + col2 + + col2 AS col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - 24 * - col0 FROM tab2 AS cor0
----
168
1872
1896

onlyif mysql # use DIV operator for integer division
query I rowsort label-7275
SELECT - + col2 DIV col2 AS col0 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-7275
SELECT - + col2 / col2 AS col0 FROM tab0 AS cor0
----
-1
-1
-1

query I rowsort
SELECT ( + ( + col2 ) ) - - col2 AS col2 FROM tab2
----
52
54
76

query I rowsort
SELECT 60 * - col0 AS col0 FROM tab0
----
-1440
-2100
-5340

query I rowsort
SELECT - 37 * - tab1.col2 * 57 AS col1 FROM tab1
----
113886
120213
202464

query I rowsort
SELECT + col0 * 28 FROM tab0 cor0
----
2492
672
980

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7280
SELECT + + col1 + - CAST( + col1 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7280
SELECT + + col1 + - CAST ( + col1 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-7281
SELECT - cor0.col2 DIV + col2 + + col0 FROM tab0 AS cor0
----
23
34
88

skipif mysql # not compatible
query I rowsort label-7281
SELECT - cor0.col2 / + col2 + + col0 FROM tab0 AS cor0
----
23
34
88

query I rowsort
SELECT col1 * - col2 + + 94 * col1 AS col2 FROM tab0 cor0
----
1092
5246
9021

query I rowsort
SELECT + + col2 + + col0 * col1 FROM tab1 AS cor0
----
1136
132
697

query I rowsort
SELECT ALL + col2 + + tab2.col2 * - col2 FROM tab2
----
-1406
-650
-702

query I rowsort
SELECT DISTINCT col1 * 90 + - col1 FROM tab0
----
7654
8099
8633

query I rowsort
SELECT + col1 + col2 - - 11 FROM tab1
----
120
78
91

query I rowsort
SELECT - col2 - ( + tab1.col1 ) * - col0 FROM tab1
----
24
583
944

query I rowsort
SELECT ALL col0 + ( - tab1.col0 ) FROM tab1
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7289
SELECT ALL - col0 + + CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7289
SELECT ALL - col0 + + CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7290
SELECT - col1 * CAST( NULL AS DECIMAL ) + - 38 * + col1 + - ( + col1 ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7290
SELECT - col1 * CAST ( NULL AS REAL ) + - 38 * + col1 + - ( + col1 ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * 56 col1 FROM tab2 AS cor0
----
1736
3304
952

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7292
SELECT ALL + CAST( 34 AS SIGNED ) * + cor0.col1 FROM tab0 AS cor0
----
2924
3094
3298

skipif mysql # not compatible
query I rowsort label-7292
SELECT ALL + CAST ( 34 AS INTEGER ) * + cor0.col1 FROM tab0 AS cor0
----
2924
3094
3298

query I rowsort
SELECT DISTINCT - + 3 AS col0 FROM tab0 AS cor0
----
-3

query I rowsort
SELECT DISTINCT - - 99 + + cor0.col2 * - col2 FROM tab0 AS cor0
----
-6625
-990
98

query I rowsort
SELECT ALL + - col2 + cor0.col1 FROM tab1 cor0
----
-28
-47
-83

query I rowsort
SELECT + - 41 * + col0 + + col1 FROM tab1 AS cor0
----
-2614
-3267
-97

query I rowsort
SELECT col2 * 93 + col0 FROM tab2 AS cor0
----
2496
2518
3613

query I rowsort
SELECT ALL ( - col1 ) * col2 + cor0.col2 FROM tab1 AS cor0
----
-1152
-1350
-513

query I rowsort
SELECT ( + 29 ) AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 1e7120ba8e9191084172ddced17e5eb2

query I rowsort
SELECT ALL col2 * ( tab1.col1 ) AS col1 FROM tab1
----
1248
1404
570

query I rowsort
SELECT DISTINCT + cor0.col0 * - cor0.col1 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT ALL - + 36 + - col1 * - col1 AS col0 FROM tab1 AS cor0
----
133
64
640

query I rowsort
SELECT DISTINCT + 63 * + col1 FROM tab2 AS cor0
----
1071
1953
3717

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 94 * - cor0.col0 + + col0 col1 FROM tab0 AS cor0
----
2280
3325
8455

query I rowsort
SELECT + 69 * 86 AS col0 FROM tab1 AS cor0
----
5934
5934
5934

query I rowsort
SELECT ALL - 66 - + 75 AS col0 FROM tab0 AS cor0
----
-141
-141
-141

query I rowsort
SELECT - + 96 + - col2 * - col1 FROM tab0 AS cor0
----
1
2742
7366

query I rowsort
SELECT col0 + col1 * - col1 + + col0 AS col1 FROM tab2 AS cor0
----
-131
-3325
-947

query I rowsort
SELECT - col1 + - col0 * - col1 AS col2 FROM tab2 cor0
----
1326
186
4543

query I rowsort
SELECT - col2 - col1 * col1 FROM tab2 AS cor0
----
-327
-3507
-988

query I rowsort
SELECT DISTINCT + col2 + col1 * + col1 AS col1 FROM tab1 AS cor0
----
157
265
730

onlyif mysql # use DIV operator for integer division
query I rowsort label-7312
SELECT ALL + - 95 * col2 DIV col2 AS col1 FROM tab1 AS cor0
----
-95
-95
-95

skipif mysql # not compatible
query I rowsort label-7312
SELECT ALL + - 95 * col2 / col2 AS col1 FROM tab1 AS cor0
----
-95
-95
-95

query I rowsort
SELECT + + col2 + + col1 * 74 FROM tab2 AS cor0
----
1296
2321
4392

query I rowsort
SELECT ALL + - 41 FROM tab2 AS cor0
----
-41
-41
-41

onlyif mysql # use DIV operator for integer division
query I rowsort label-7315
SELECT DISTINCT + col0 + cor0.col0 DIV 67 FROM tab1 AS cor0
----
3
64
81

skipif mysql # not compatible
query I rowsort label-7315
SELECT DISTINCT + col0 + cor0.col0 / 67 FROM tab1 AS cor0
----
3
64
81

query I rowsort
SELECT 73 * + col1 + + cor0.col2 FROM tab1 AS cor0
----
1045
1952
787

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 - - 84 * + 49 col0 FROM tab2 AS cor0
----
4142
4143
4154

query I rowsort
SELECT DISTINCT + col0 * ( - col2 ) + - col0 + - 66 FROM tab1 AS cor0
----
-231
-3778
-7826

query I rowsort
SELECT DISTINCT + col2 * + 21 * + 61 - col2 AS col0 FROM tab0 AS cor0
----
104960
1280
42240

query I rowsort
SELECT - cor0.col0 + col0 * - 41 * col1 + col2 * - col0 AS col1 FROM tab2 cor0
----
-190788
-58144
-9093

query I rowsort
SELECT DISTINCT + + col2 + - 19 * col2 FROM tab2 AS cor0
----
-468
-486
-684

query I rowsort
SELECT + col0 - + col2 AS col0 FROM tab0 AS cor0
----
-9
34
7

query I rowsort
SELECT ALL col1 + + col2 * + 58 FROM tab2 cor0
----
1567
1597
2221

query I rowsort
SELECT + + col1 + cor0.col2 * - 52 AS col2 FROM tab0 AS cor0
----
-1630
-4173
45

query I rowsort
SELECT + col1 + + col1 + col2 * col0 FROM tab2 AS cor0
----
2146
251
3036

query I rowsort
SELECT ALL + col0 * - tab0.col0 + + col2 FROM tab0
----
-1224
-543
-7839

query I rowsort
SELECT cor0.col2 * - col1 * + col2 + - 45 FROM tab0 AS cor0
----
-142
-611929
-93699

query I rowsort
SELECT - col2 + + col2 + - ( + 36 + - col1 ) * ( cor0.col2 ) AS col1 FROM tab1 AS cor0
----
-1482
-2208
-540

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7329
SELECT DISTINCT CAST( NULL AS SIGNED ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-7329
SELECT DISTINCT CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col2 * - col1 + 58 col0 FROM tab0 AS cor0
----
-2780
-39
-7404

query I rowsort
SELECT ALL + 98 + col2 * col0 FROM tab2 AS cor0
----
2126
287
3100

onlyif mysql # use DIV operator for integer division
query I rowsort label-7332
SELECT DISTINCT cor0.col2 DIV cor0.col1 + + CAST( col0 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
5
69
87

skipif mysql # not compatible
query I rowsort label-7332
SELECT DISTINCT cor0.col2 / cor0.col1 + + CAST ( col0 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
5
69
87

query I rowsort
SELECT ALL col1 * - col2 + + 74 AS col0 FROM tab2 AS cor0
----
-1460
-572
-763

query I rowsort
SELECT DISTINCT + col2 + col2 * + 89 AS col1 FROM tab0 AS cor0
----
2970
7380
90

query I rowsort
SELECT DISTINCT - + col0 * col2 + cor0.col1 + + 52 AS col1 FROM tab0 cor0
----
-654
-7155
114

query I rowsort
SELECT + col1 * - col2 + ( cor0.col2 ) AS col1 FROM tab1 AS cor0
----
-1152
-1350
-513

query I rowsort
SELECT ALL 88 * + col2 AS col1 FROM tab1 AS cor0
----
4752
5016
8448

query I rowsort
SELECT DISTINCT col1 + + col0 * - col2 FROM tab1 cor0
----
-136
-3638
-7667

query IIIIIIIIIIII rowsort
SELECT * FROM tab0 cor0 CROSS JOIN tab0, tab0 cor1, tab2 AS cor2
----
972 values hashing to 6dfb18fb846f922ba9ea60ce42b86fb0

query I rowsort
SELECT ALL col1 + + 66 - col1 AS col1 FROM tab0 cor0
----
66
66
66

query I rowsort
SELECT + + col2 * 37 + col1 AS col2 FROM tab2 AS cor0
----
1021
1030
1423

query I rowsort
SELECT DISTINCT + col0 + - ( cor0.col0 ) * - col0 AS col2 FROM tab0 AS cor0
----
1260
600
8010

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - cor0.col0 * + CAST ( + col1 AS REAL ) AS col1 FROM tab0 AS cor0
----
-2064
-3395
-8099

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1 cor0 CROSS JOIN tab0, tab1 AS cor1, tab2, tab0 AS cor2
----
3645 values hashing to 32e6d0f63bf719b0a999c75379e75eca

query I rowsort
SELECT DISTINCT - 43 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-43

query I rowsort
SELECT DISTINCT + ( - cor0.col0 ) AS col2 FROM tab1 AS cor0
----
-3
-64
-80

query I rowsort
SELECT DISTINCT 44 - cor0.col0 FROM tab0, tab1 AS cor0
----
-20
-36
41

onlyif mysql # use DIV operator for integer division
query I rowsort label-7348
SELECT + 60 DIV - 95 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7348
SELECT + 60 / - 95 FROM tab1
----
0
0
0

query I rowsort
SELECT 96 * col0 AS col0 FROM tab2 AS cor0
----
672
7488
7584

query I rowsort
SELECT DISTINCT ( + 7 ) + + col1 * - 37 AS col2 FROM tab1 AS cor0
----
-363
-474
-955

query I rowsort
SELECT DISTINCT col0 + 86 AS col1 FROM tab2 AS cor0
----
164
165
93

onlyif mysql # use DIV operator for integer division
query I rowsort label-7352
SELECT DISTINCT - + col2 DIV - 47 + col1 * - 20 * + col0 AS col2 FROM tab0 AS cor0
----
-161979
-41280
-67900

skipif mysql # not compatible
query I rowsort label-7352
SELECT DISTINCT - + col2 / - 47 + col1 * - 20 * + col0 AS col2 FROM tab0 AS cor0
----
-161979
-41280
-67900

query I rowsort
SELECT ALL col0 * ( col2 ) FROM tab0 AS cor0
----
35
7298
792

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7354
SELECT CAST( NULL AS SIGNED ) - - cor0.col2 * + col1 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7354
SELECT CAST ( NULL AS INTEGER ) - - cor0.col2 * + col1 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col0 * cor0.col0 + cor0.col2 AS col0 FROM tab2 AS cor0
----
6110
6279
76

query I rowsort
SELECT DISTINCT + + ( col0 ) * - col1 + - col0 FROM tab0 AS cor0
----
-2088
-3430
-8188

query I rowsort
SELECT ALL col1 * col0 - col2 FROM tab0 AS cor0
----
2031
3394
8017

query I rowsort
SELECT - 86 AS col0 FROM tab2, tab2 AS cor0, tab0, tab2 AS cor1
----
81 values hashing to 1ef7453f3d4bc7d93f06fc98b5d59841

query I rowsort
SELECT ALL 59 FROM tab1, tab0 cor0
----
9 values hashing to a9b9966d749d1b2ce5955ed12394f9bc

query I rowsort
SELECT DISTINCT - 15 AS col2 FROM tab1, tab2 AS cor0
----
-15

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7361
SELECT CAST( + col0 AS SIGNED ) col0 FROM tab0 AS cor0
----
24
35
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7361
SELECT CAST ( + col0 AS INTEGER ) col0 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT - ( + col0 ) + - col1 AS col0 FROM tab2 AS cor0
----
-137
-38
-96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7363
SELECT DISTINCT + - CAST( col0 AS SIGNED ) * - col0 - ( - 36 ) * col0 FROM tab2 AS cor0
----
301
8892
9085

skipif mysql # not compatible
query I rowsort label-7363
SELECT DISTINCT + - CAST ( col0 AS INTEGER ) * - col0 - ( - 36 ) * col0 FROM tab2 AS cor0
----
301
8892
9085

query I rowsort
SELECT + + col2 * col1 * + 88 FROM tab0 AS cor0
----
249744
656656
8536

query I rowsort
SELECT + ( col0 ) * - 19 - + col1 AS col0 FROM tab0 AS cor0
----
-1782
-542
-762

query I rowsort
SELECT + ( col1 ) * col1 - col2 * - cor0.col1 FROM tab1 AS cor0
----
1417
2080
670

query I rowsort
SELECT ALL - 33 FROM tab2, tab0 AS cor0
----
9 values hashing to 8035c665a75d22be5922be1a4e574e03

query I rowsort
SELECT col1 * + 30 FROM tab1 AS cor0
----
300
390
780

query I rowsort
SELECT ALL - col0 * + col0 + + 38 AS col1 FROM tab2 AS cor0
----
-11
-6046
-6203

query I rowsort
SELECT + cor0.col0 * - 93 AS col0 FROM tab2 AS cor0
----
-651
-7254
-7347

query I rowsort
SELECT - - 40 AS col0 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to b1e8ffeef334b4a2b01b2f91e649c2d3

query I rowsort
SELECT + cor0.col0 + + 13 * + col1 * + col0 + 84 AS col2 FROM tab2 cor0
----
17622
2912
59988

query I rowsort
SELECT + 89 * col0 FROM tab2 cor0
----
623
6942
7031

query I rowsort
SELECT DISTINCT + ( 91 ) FROM tab1, tab0 cor0
----
91

onlyif mysql # use DIV operator for integer division
query I rowsort label-7375
SELECT DISTINCT ( 72 ) + - cor0.col0 DIV - 53 FROM tab1, tab2 AS cor0
----
72
73

skipif mysql # not compatible
query I rowsort label-7375
SELECT DISTINCT ( 72 ) + - cor0.col0 / - 53 FROM tab1, tab2 AS cor0
----
72
73

query I rowsort
SELECT DISTINCT - 31 FROM tab0, tab0 cor0
----
-31

query I rowsort
SELECT DISTINCT 75 AS col1 FROM tab1, tab2 cor0, tab2 AS cor1
----
75

query I rowsort
SELECT ALL col2 * col2 * tab1.col1 FROM tab1
----
119808
32490
75816

query I rowsort
SELECT - col2 * col1 + + cor0.col2 FROM tab2 AS cor0
----
-1508
-608
-810

query I rowsort
SELECT - 5 + col1 AS col2 FROM tab1
----
21
5
8

query I rowsort
SELECT - - 37 AS col2 FROM tab0 AS cor0
----
37
37
37

query I rowsort
SELECT - - 75 * col0 - + col0 AS col2 FROM tab0 AS cor0
----
1776
2590
6586

onlyif mysql # use DIV operator for integer division
query I rowsort label-7383
SELECT 59 DIV - col1 + col1 AS col0 FROM tab2 AS cor0
----
14
30
58

skipif mysql # not compatible
query I rowsort label-7383
SELECT 59 / - col1 + col1 AS col0 FROM tab2 AS cor0
----
14
30
58

onlyif mysql # use DIV operator for integer division
query I rowsort label-7384
SELECT + CAST( cor0.col1 AS SIGNED ) DIV col0 + col1 + + col1 FROM tab0 cor0
----
175
183
196

skipif mysql # not compatible
query I rowsort label-7384
SELECT + CAST ( cor0.col1 AS INTEGER ) / col0 + col1 + + col1 FROM tab0 cor0
----
175
183
196

query I rowsort
SELECT DISTINCT - 0 FROM tab1, tab1 AS cor0
----
0

query I rowsort
SELECT - 73 + + cor0.col1 * + col2 * + col1 + cor0.col0 AS col0 FROM tab2 AS cor0
----
10988
25881
90511

query I rowsort
SELECT - - 33 * + col1 AS col1 FROM tab2 AS cor0
----
1023
1947
561

onlyif mysql # use DIV operator for integer division
query I rowsort label-7388
SELECT ( + 5 ) * tab0.col1 DIV col2 FROM tab0
----
13
485
5

skipif mysql # not compatible
query I rowsort label-7388
SELECT ( + 5 ) * tab0.col1 / col2 FROM tab0
----
13
485
5

query I rowsort
SELECT ALL 84 + col2 AS col0 FROM tab0 AS cor0
----
117
166
85

query I rowsort
SELECT - 29 + - col2 - - col1 * + col1 * - col2 AS col1 FROM tab1 AS cor0
----
-16349
-36587
-5786

query I rowsort
SELECT + ( + 22 ) * col0 AS col0 FROM tab2
----
154
1716
1738

query I rowsort
SELECT ALL ( + 79 ) + col1 - - col2 AS col2 FROM tab0
----
177
198
252

onlyif mysql # use DIV operator for integer division
query I rowsort label-7393
SELECT 33 DIV ( tab2.col1 ) FROM tab2
----
0
1
1

skipif mysql # not compatible
query I rowsort label-7393
SELECT 33 / ( tab2.col1 ) FROM tab2
----
0
1
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-7394
SELECT 81 DIV tab0.col1 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

skipif mysql # not compatible
query I rowsort label-7394
SELECT 81 / tab0.col1 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query I rowsort
SELECT DISTINCT col2 + cor0.col1 * cor0.col2 FROM tab0 AS cor0
----
2871
7544
98

query I rowsort
SELECT ALL + col2 * col2 + col0 AS col1 FROM tab0 AS cor0
----
1113
36
6813

query I rowsort
SELECT DISTINCT - col1 FROM tab0 WHERE - col0 + + col1 + col0 / + col1 IN ( col0 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL > NULL
----

query I rowsort
SELECT DISTINCT - col0 + cor0.col0 FROM tab0 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + + col1 + + col2 col2 FROM tab1
----
29
3
77

query I rowsort
SELECT ALL - col0 + - col1 * col1 - - col0 AS col1 FROM tab1
----
-100
-169
-676

query I rowsort
SELECT + cor0.col1 FROM tab2, tab2 AS cor0 CROSS JOIN tab1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d

query I rowsort
SELECT ALL col1 * - col0 + col2 + - col0 FROM tab1
----
-1024
-27
-647

query I rowsort
SELECT ALL - col1 * + col2 + col2 * col0 + col0 AS col1 FROM tab2
----
-641
2435
572

query I rowsort
SELECT DISTINCT - col0 + - col1 * - tab1.col2 AS col2 FROM tab1
----
1168
1401
506

query III rowsort
SELECT * FROM tab2 WHERE col0 + col0 * col0 = NULL
----

query I rowsort
SELECT col2 * - col1 FROM tab0 WHERE NULL NOT IN ( col1 + - tab0.col2 * col0 )
----

query I rowsort
SELECT col0 * - col0 * col2 FROM tab2
----
-1323
-158184
-237158

query I rowsort
SELECT DISTINCT tab1.col0 + - col1 + col0 FROM tab1
----
-20
118
147

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL > ( col0 * + col0 )
----

query I rowsort
SELECT ALL + col2 * col0 + + col2 * col2 + col1 AS col1 FROM tab1
----
16909
3104
6907

query I rowsort
SELECT DISTINCT + col2 + + col1 * + col1 + - tab2.col1 * col0 * col1 AS col0 FROM tab2
----
-22504
-268011
-5739

query I rowsort
SELECT ALL col1 AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND ( NULL )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-7414
SELECT col2 * col2 DIV - tab0.col1 + col0 AS col0 FROM tab0
----
12
16
35

skipif mysql # not compatible
query I rowsort label-7414
SELECT col2 * col2 / - tab0.col1 + col0 AS col0 FROM tab0
----
12
16
35

query I rowsort
SELECT - col2 * - col1 - col1 AS col2 FROM tab2
----
1475
629
806

query I rowsort
SELECT ALL + cor0.col2 * tab0.col0 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 54522441dbf7fb56e19a888572d1f6e3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col1 * + col0 col0 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT + col0 * col2 - col0 AS col2 FROM tab1
----
159
3584
7600

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 - tab2.col1 col2 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT + - col1 * col2 + cor0.col2 FROM tab0 AS cor0
----
-2805
-7380
-96

query I rowsort
SELECT col0 + tab0.col1 * + col1 FROM tab0
----
7420
8370
9444

query I rowsort
SELECT ALL - col0 * + col2 * cor0.col2 + - col0 * + col1 FROM tab1 AS cor0
----
-208576
-738320
-8826

onlyif mysql # use DIV operator for integer division
query I rowsort label-7423
SELECT + + col0 + col0 DIV col1 col2 FROM tab2 AS cor0
----
7
79
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7423
SELECT + + col0 + col0 / col1 col2 FROM tab2 AS cor0
----
7
79
83

onlyif mysql # use DIV operator for integer division
query I rowsort label-7424
SELECT DISTINCT - col0 + + col0 DIV col0 col1 FROM tab1 AS cor0
----
-2
-63
-79

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7424
SELECT DISTINCT - col0 + + col0 / col0 col1 FROM tab1 AS cor0
----
-2
-63
-79

query I rowsort
SELECT ALL - + col2 * - col1 + - col1 * + col2 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT + col0 + - col1 * + col0 AS col2 FROM tab0 cor0 WHERE + col1 < NULL OR NULL BETWEEN col2 + + cor0.col0 AND ( NULL )
----

query I rowsort
SELECT ALL - col2 * + col2 + + col0 FROM tab0 AS cor0
----
-1065
-6635
34

query I rowsort
SELECT ALL - + col1 + + cor0.col2 * col0 AS col0 FROM tab2 AS cor0
----
158
1969
2985

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col0 * + col2 col0 FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT DISTINCT cor0.col1 + + 13 AS col2 FROM tab0 AS cor0
----
104
110
99

query I rowsort
SELECT - col1 + - col2 * + 47 AS col0 FROM tab2 AS cor0
----
-1281
-1300
-1803

query I rowsort
SELECT tab1.col0 * + 95 FROM tab1
----
285
6080
7600

onlyif mysql # use DIV operator for integer division
query I rowsort label-7433
SELECT col1 DIV 53 FROM tab2
----
0
0
1

skipif mysql # not compatible
query I rowsort label-7433
SELECT col1 / 53 FROM tab2
----
0
0
1

query I rowsort
SELECT + + col2 * - col0 + - col0 FROM tab2 AS cor0
----
-196
-2106
-3081

query I rowsort
SELECT DISTINCT ( - cor0.col2 ) FROM tab2, tab1 AS cor0, tab1 AS cor1
----
-54
-57
-96

query I rowsort
SELECT + col0 + - ( 37 ) FROM tab0 AS cor0
----
-13
-2
52

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7437
SELECT ALL - cor0.col1 + - CAST( col2 AS SIGNED ) FROM tab1 AS cor0
----
-109
-67
-80

skipif mysql # not compatible
query I rowsort label-7437
SELECT ALL - cor0.col1 + - CAST ( col2 AS INTEGER ) FROM tab1 AS cor0
----
-109
-67
-80

query I rowsort
SELECT - + col0 * - col0 - col0 FROM tab0 AS cor0
----
1190
552
7832

query I rowsort
SELECT + col1 + + col2 + + col0 AS col1 FROM tab0
----
133
143
262

query I rowsort
SELECT DISTINCT - col1 + + 42 AS col2 FROM tab2
----
-17
11
25

onlyif mysql # use DIV operator for integer division
query I rowsort label-7441
SELECT ALL + col0 + - col2 DIV 85 AS col0 FROM tab0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-7441
SELECT ALL + col0 + - col2 / 85 AS col0 FROM tab0
----
24
35
89

query I rowsort
SELECT + 81 FROM tab1 cor0
----
81
81
81

query I rowsort
SELECT ALL col2 * + 86 + 11 FROM tab0
----
2849
7063
97

query I rowsort
SELECT col2 + + col0 * - tab1.col0 + tab1.col1 FROM tab1
----
-4029
-6291
71

onlyif mysql # use DIV operator for integer division
query I rowsort label-7445
SELECT ALL col0 DIV + ( - col1 * col0 ) + col2 FROM tab0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-7445
SELECT ALL col0 / + ( - col1 * col0 ) + col2 FROM tab0
----
1
33
82

query I rowsort
SELECT + + 97 AS col1 FROM tab0 AS cor0
----
97
97
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col0 + + col1 col2 FROM tab2 AS cor0
----
137
38
96

query I rowsort
SELECT 53 + + 0 FROM tab2
----
53
53
53

query I rowsort
SELECT DISTINCT ( col2 ) * + col1 AS col2 FROM tab1
----
1248
1404
570

query I rowsort
SELECT DISTINCT + 98 AS col2 FROM tab2
----
98

query I rowsort
SELECT + col0 * col2 + - col2 AS col0 FROM tab1
----
108
3591
7584

query I rowsort
SELECT + 16 * cor0.col1 AS col0 FROM tab1 cor0
----
160
208
416

query I rowsort
SELECT ALL + col2 * col1 AS col2 FROM tab0 cor0
----
2838
7462
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * - col1 col1 FROM tab0 AS cor0
----
7396
8281
9409

query I rowsort
SELECT DISTINCT + + col2 * + col2 * ( cor0.col0 ) AS col0 FROM tab2 AS cor0
----
114076
5103
52728

query I rowsort
SELECT DISTINCT - + col2 + - col0 * - 99 AS col2 FROM tab0 AS cor0
----
2343
3464
8729

query I rowsort
SELECT + 58 + col1 AS col0 FROM tab1
----
68
71
84

query I rowsort
SELECT DISTINCT - - 65 + cor0.col2 AS col0 FROM tab0, tab1, tab1 AS cor0
----
119
122
161

query I rowsort
SELECT + 89 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 860d55eb6785972467218a9c3badb5ad

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7460
SELECT col0 * + CAST( col0 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
1225
576
7921

skipif mysql # not compatible
query I rowsort label-7460
SELECT col0 * + CAST ( col0 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
1225
576
7921

query I rowsort
SELECT - cor1.col0 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 09d8a912de1b8ab762e5ffbe028ce99e

query I rowsort
SELECT DISTINCT ( - 74 ) FROM tab0, tab1 AS cor0
----
-74

query I rowsort
SELECT - col1 * + 22 * 33 AS col1 FROM tab1 AS cor0
----
-18876
-7260
-9438

query I rowsort
SELECT + col2 * - 21 AS col1 FROM tab1 AS cor0
----
-1134
-1197
-2016

onlyif mysql # use DIV operator for integer division
query I rowsort label-7465
SELECT DISTINCT - col2 DIV - col0 + col0 * - 77 - + col0 * col1 * + col0 col1 FROM tab0 cor0
----
-121520
-51383
-727664

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7465
SELECT DISTINCT - col2 / - col0 + col0 * - 77 - + col0 * col1 * + col0 col1 FROM tab0 cor0
----
-121520
-51383
-727664

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + ( - col0 ) ) * - col0 - - cor0.col2 * col2 * col2 col1 FROM tab0 AS cor0
----
1226
36513
559289

query I rowsort
SELECT DISTINCT col0 + + col2 * + col2 + + col2 AS col0 FROM tab1 AS cor0
----
2973
3370
9392

query I rowsort
SELECT - ( 46 ) + col1 AS col2 FROM tab2 AS cor0
----
-15
-29
13

query I rowsort
SELECT + + cor0.col0 + col2 AS col1 FROM tab0 AS cor0
----
171
36
57

onlyif mysql # use DIV operator for integer division
query I rowsort label-7470
SELECT ALL + col2 * col0 + - col2 DIV cor0.col1 col1 FROM tab1 AS cor0
----
160
3643
7673

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7470
SELECT ALL + col2 * col0 + - col2 / cor0.col1 col1 FROM tab1 AS cor0
----
160
3643
7673

query I rowsort
SELECT DISTINCT ( + 43 ) * col1 FROM tab2 cor0
----
1333
2537
731

query I rowsort
SELECT + 90 + + 53 FROM tab1 cor0
----
143
143
143

query I rowsort
SELECT ALL - - 4 * col0 + - col0 FROM tab0 AS cor0
----
105
267
72

query I rowsort
SELECT cor0.col0 * + col2 + col1 FROM tab1 AS cor0
----
188
3658
7693

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7475
SELECT CAST( NULL AS SIGNED ) * - 38 AS col0 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-7475
SELECT CAST ( NULL AS INTEGER ) * - 38 AS col0 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT + col2 * - col1 + + col1 * col0 FROM tab1 AS cor0
----
-1326
-208
70

query I rowsort
SELECT DISTINCT 40 * - col1 + + col2 FROM tab2 cor0
----
-1213
-2334
-642

query IIIIIIIII rowsort
SELECT * FROM tab2, tab0 cor0 CROSS JOIN tab2 AS cor1
----
243 values hashing to 2248b8c3b6efacb4e8fc6d9f81b7df8b

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 83 col2 FROM tab1 cor0
----
83
83
83

query I rowsort
SELECT - - 93 + + col2 FROM tab2 AS cor0
----
119
120
131

query I rowsort
SELECT 96 AS col0 FROM tab1, tab1 cor0
----
9 values hashing to 22c5141a629f0ef396738ee2c8be6303

query I rowsort
SELECT + cor0.col2 + 88 AS col2 FROM tab1 cor0
----
142
145
184

query I rowsort
SELECT 57 + + col1 * - col2 FROM tab0 AS cor0
----
-2781
-40
-7405

query I rowsort
SELECT cor0.col2 * - col1 - col0 FROM tab0 AS cor0
----
-132
-2862
-7551

onlyif mysql # use DIV operator for integer division
query I rowsort label-7485
SELECT - - col1 DIV + ( - cor0.col0 * cor0.col1 ) + + col0 AS col1 FROM tab1 cor0
----
3
64
80

skipif mysql # not compatible
query I rowsort label-7485
SELECT - - col1 / + ( - cor0.col0 * cor0.col1 ) + + col0 AS col1 FROM tab1 cor0
----
3
64
80

query I rowsort
SELECT col1 * col2 * - col2 + col2 AS col1 FROM tab1
----
-119712
-32433
-75762

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 - tab1.col1 col2 FROM tab1
----
-29
-74
-93

query I rowsort
SELECT - + ( col0 ) + + ( - ( col1 ) ) + - col1 * + col0 FROM tab1 AS cor0
----
-107
-1133
-714

query I rowsort
SELECT + 4 * col0 FROM tab0 AS cor0
----
140
356
96

query I rowsort
SELECT DISTINCT + col0 * col2 - - col2 FROM tab0 cor0
----
36
7380
825

onlyif mysql # use DIV operator for integer division
query I rowsort label-7491
SELECT col1 DIV ( col1 ) AS col2 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-7491
SELECT col1 / ( col1 ) AS col2 FROM tab2
----
1
1
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-7492
SELECT ALL - col1 * + col1 DIV ( col1 ) + - col2 + 23 col2 FROM tab1 AS cor0
----
-44
-57
-86

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7492
SELECT ALL - col1 * + col1 / ( col1 ) + - col2 + 23 col2 FROM tab1 AS cor0
----
-44
-57
-86

query I rowsort
SELECT DISTINCT + 63 * col0 + - col2 AS col0 FROM tab1 AS cor0
----
135
3975
4944

query I rowsort
SELECT - ( col0 ) - col1 FROM tab0 AS cor0
----
-110
-132
-180

query I rowsort
SELECT col0 + + cor0.col2 * col1 AS col1 FROM tab1 AS cor0
----
1328
1407
634

query I rowsort
SELECT ALL 84 + - cor0.col0 + + ( 15 ) FROM tab2 AS cor0
----
20
21
92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( cor0.col1 ) * cor0.col2 col2 FROM tab0 AS cor0
----
2838
7462
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-7498
SELECT - col0 DIV CAST( - 48 AS SIGNED ) FROM tab1 cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-7498
SELECT - col0 / CAST ( - 48 AS INTEGER ) FROM tab1 cor0
----
0
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + col0 col2 FROM tab2 cor0
----
1343
217
4602

query I rowsort
SELECT + + col2 + - 37 * cor0.col2 AS col1 FROM tab0 AS cor0
----
-1188
-2952
-36

query I rowsort
SELECT 30 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 6c98840ed134c765d56389f4150075f0

query I rowsort
SELECT - 67 * + 57 FROM tab1 AS cor0
----
-3819
-3819
-3819

query I rowsort
SELECT + + cor0.col2 + + col1 * - col0 FROM tab0 AS cor0
----
-2031
-3394
-8017

query I rowsort
SELECT - col2 * + col2 * - cor0.col1 AS col2 FROM tab1 cor0
----
119808
32490
75816

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7505
SELECT DISTINCT CAST( NULL AS SIGNED ) * 47 col0 FROM tab1, tab0 cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7505
SELECT DISTINCT CAST ( NULL AS INTEGER ) * 47 col0 FROM tab1, tab0 cor0
----
NULL

query I rowsort
SELECT cor0.col2 * + 10 FROM tab1, tab1 AS cor0
----
9 values hashing to fe451d3df332637e44c87d368ff0312c

query I rowsort
SELECT + 20 * + col1 * + col2 FROM tab1 AS cor0
----
11400
24960
28080

query I rowsort
SELECT + ( col1 ) * + cor0.col1 FROM tab2 cor0
----
289
3481
961

onlyif mysql # use DIV operator for integer division
query I rowsort label-7509
SELECT - + col0 + - col1 DIV + col0 FROM tab2 AS cor0
----
-11
-78
-79

skipif mysql # not compatible
query I rowsort label-7509
SELECT - + col0 + - col1 / + col0 FROM tab2 AS cor0
----
-11
-78
-79

onlyif mysql # use DIV operator for integer division
query I rowsort label-7510
SELECT ( col0 ) DIV - col0 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-7510
SELECT ( col0 ) / - col0 FROM tab0 AS cor0
----
-1
-1
-1

query I rowsort
SELECT ALL + cor0.col0 * + col0 + - cor0.col1 + + col1 AS col1 FROM tab2 AS cor0
----
49
6084
6241

query I rowsort
SELECT DISTINCT + 31 AS col1 FROM tab0, tab2 cor0, tab0 cor1
----
31

query I rowsort
SELECT ALL + ( col1 ) * col2 + - col0 FROM tab2 AS cor0
----
1456
567
830

query I rowsort
SELECT DISTINCT 90 * + col1 AS col1 FROM tab0 AS cor0
----
7740
8190
8730

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7515
SELECT DISTINCT - CAST( - col2 AS SIGNED ) AS col0 FROM tab1
----
54
57
96

skipif mysql # not compatible
query I rowsort label-7515
SELECT DISTINCT - CAST ( - col2 AS INTEGER ) AS col0 FROM tab1
----
54
57
96

query I rowsort
SELECT + ( + 69 ) + + col0 FROM tab0
----
104
158
93

query I rowsort
SELECT - - col1 - + col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT col0 + col2 * col2 * - col2 FROM tab0 AS cor0
----
-35913
-551279
34

query I rowsort
SELECT - + cor0.col0 * + col1 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT ALL + - cor0.col2 * col1 + - col1 AS col0 FROM tab0 cor0
----
-194
-2924
-7553

onlyif mysql # use DIV operator for integer division
query I rowsort label-7521
SELECT tab0.col0 DIV - 29 AS col0 FROM tab0
----
-1
-3
0

skipif mysql # not compatible
query I rowsort label-7521
SELECT tab0.col0 / - 29 AS col0 FROM tab0
----
-1
-3
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7522
SELECT + CAST( NULL AS SIGNED ) * tab2.col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7522
SELECT + CAST ( NULL AS INTEGER ) * tab2.col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT col1 + - col2 * - tab0.col0 AS col2 FROM tab0
----
132
7389
878

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7524
SELECT ALL + CAST( - 5 AS SIGNED ) AS col1 FROM tab2
----
-5
-5
-5

skipif mysql # not compatible
query I rowsort label-7524
SELECT ALL + CAST ( - 5 AS INTEGER ) AS col1 FROM tab2
----
-5
-5
-5

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7525
SELECT DISTINCT CAST( NULL AS SIGNED ) * 84 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7525
SELECT DISTINCT CAST ( NULL AS INTEGER ) * 84 FROM tab2
----
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7526
SELECT ALL - col0 * CAST( NULL AS SIGNED ) + col0 * + col1 + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7526
SELECT ALL - col0 * CAST ( NULL AS INTEGER ) + col0 * + col1 + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col2 + ( ( + cor0.col0 ) ) col0 FROM tab2 AS cor0
----
104
117
34

query I rowsort
SELECT DISTINCT cor0.col0 * 54 + + 82 AS col2 FROM tab1 AS cor0
----
244
3538
4402

query I rowsort
SELECT DISTINCT + tab0.col0 + 58 AS col2 FROM tab0, tab0 AS cor0
----
147
82
93

onlyif mysql # use DIV operator for integer division
query I rowsort label-7530
SELECT ALL - ( + col0 ) + 94 * col1 DIV col1 AS col1 FROM tab1
----
14
30
91

skipif mysql # not compatible
query I rowsort label-7530
SELECT ALL - ( + col0 ) + 94 * col1 / col1 AS col1 FROM tab1
----
14
30
91

onlyif mysql # use DIV operator for integer division
query I rowsort label-7531
SELECT ALL - col1 DIV - col2 + + col2 AS col2 FROM tab1
----
54
57
96

skipif mysql # not compatible
query I rowsort label-7531
SELECT ALL - col1 / - col2 + + col2 AS col2 FROM tab1
----
54
57
96

query I rowsort
SELECT cor2.col2 FROM tab2 AS cor0 CROSS JOIN tab2, tab2 AS cor1, tab2 AS cor2
----
81 values hashing to c4e6b1f1d28e731664a15a6f7cda4da9

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab0, tab2 AS cor1, tab2 AS cor2, tab0 AS cor3
----
3645 values hashing to 35998cdc87c8b13ea047f14c9f5dc8d6

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7534
SELECT + col1 - + CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7534
SELECT + col1 - + CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT - + col0 + + col1 * - ( - col2 ) + col1 * 58 * + col2 FROM tab2 AS cor0
----
38035
49376
90428

query I rowsort
SELECT DISTINCT + + col1 * col1 + + col2 FROM tab1 AS cor0
----
157
265
730

skipif mysql # not compatible
query I rowsort
SELECT ALL + + col2 * + CAST ( col1 AS REAL ) * col1 AS col0 FROM tab0 AS cor0
----
244068
679042
9409

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + 81 col2 FROM tab0 AS cor0
----
1944
2835
7209

query I rowsort
SELECT ALL + - cor0.col1 * + col2 + + col2 + col1 FROM tab1 AS cor0
----
-1139
-1324
-503

query I rowsort
SELECT DISTINCT + 96 * + cor0.col2 AS col1 FROM tab1, tab0, tab0 AS cor0
----
3168
7872
96

query I rowsort
SELECT DISTINCT col0 + + cor0.col0 * - ( - col1 ) AS col2 FROM tab2 AS cor0
----
1422
224
4680

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-7543
SELECT DISTINCT col1 - - cor0.col0 DIV col2 AS col0 FROM tab0 AS cor0
----
132
86
92

skipif mysql # not compatible
query I rowsort label-7543
SELECT DISTINCT col1 - - cor0.col0 / col2 AS col0 FROM tab0 AS cor0
----
132
86
92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col2 * - 75 + col0 col2 FROM tab1 AS cor0
----
4053
4339
7280

query I rowsort
SELECT ALL - + col0 + - col1 * cor0.col1 * col2 + - 48 FROM tab0 AS cor0
----
-244140
-679179
-9492

query I rowsort
SELECT + col0 + + ( 56 ) FROM tab2 AS cor0
----
134
135
63

query I rowsort
SELECT DISTINCT + cor0.col2 * cor0.col1 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT + 86 + + tab1.col1 AS col1 FROM tab1
----
112
96
99

query I rowsort
SELECT DISTINCT 91 AS col1 FROM tab0, tab1, tab2 AS cor0
----
91

query I rowsort
SELECT - col2 * - col0 - tab1.col1 FROM tab1
----
136
3638
7667

query I rowsort
SELECT - col0 FROM tab2 WHERE ( + col1 ) NOT IN ( - col1 + - col2 * - col1 )
----
-7
-78
-79

query I rowsort
SELECT - col2 * col1 FROM tab0 WHERE NOT - col0 * - col0 IN ( col0 )
----
-2838
-7462
-97

query I rowsort
SELECT + tab2.col1 * + col0 + + col1 AS col1 FROM tab2
----
1360
248
4661

query I rowsort
SELECT tab2.col0 * col0 - col0 * - col2 AS col0 FROM tab2
----
238
8112
9243

query I rowsort
SELECT col2 + col2 * col2 * + col1 + col2 AS col0 FROM tab0
----
612048
93720
99

query I rowsort
SELECT DISTINCT col0 * col1 * - col1 FROM tab1
----
-13520
-2028
-6400

query I rowsort
SELECT - col2 * - col2 * col2 AS col2 FROM tab2
----
17576
19683
54872

onlyif mysql # use DIV operator for integer division
query I rowsort label-7558
SELECT - col0 * + col1 DIV + col1 FROM tab2
----
-7
-78
-79

skipif mysql # not compatible
query I rowsort label-7558
SELECT - col0 * + col1 / + col1 FROM tab2
----
-7
-78
-79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * + col0 col0 FROM tab0
----
1225
576
7921

query I rowsort
SELECT - col0 + + col0 + col2 AS col0 FROM tab0
----
1
33
82

query I rowsort
SELECT DISTINCT - col2 AS col0 FROM tab2 WHERE NOT NULL <> - col1
----

query I rowsort
SELECT col2 AS col0 FROM tab0 WHERE NULL <= NULL
----

query I rowsort
SELECT col2 + + col1 * col1 AS col1 FROM tab1
----
157
265
730

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( NULL ) IN ( + col2 + + col1 )
----

query I rowsort
SELECT - col2 * col0 + - col2 AS col0 FROM tab2
----
-2054
-216
-3040

query III rowsort
SELECT * FROM tab2 WHERE col1 BETWEEN col0 + - col0 AND - col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 29 * col1 + col0 col2 FROM tab1 cor0
----
-226
-297
-751

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * col1 * - col2 col2 FROM tab2 cor0
----
-22599
-24548
-39884

query I rowsort
SELECT + - col0 + col0 * - col2 AS col2 FROM tab2 AS cor0
----
-196
-2106
-3081

onlyif mysql # use DIV operator for integer division
query I rowsort label-7570
SELECT + col2 * col1 + - col1 DIV - cor0.col0 AS col0 FROM tab2 AS cor0
----
1534
646
841

skipif mysql # not compatible
query I rowsort label-7570
SELECT + col2 * col1 + - col1 / - cor0.col0 AS col0 FROM tab2 AS cor0
----
1534
646
841

query I rowsort
SELECT ( - 76 ) AS col1 FROM tab2
----
-76
-76
-76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + col2 * col2 col2 FROM tab1 AS cor0
----
2942
3259
9229

query I rowsort
SELECT + col1 * + 34 FROM tab0
----
2924
3094
3298

query I rowsort
SELECT DISTINCT tab0.col1 + - 74 FROM tab0, tab0 AS cor0
----
12
17
23

onlyif mysql # use DIV operator for integer division
query I rowsort label-7575
SELECT col1 DIV cor0.col2 AS col2 FROM tab0 AS cor0
----
1
2
97

skipif mysql # not compatible
query I rowsort label-7575
SELECT col1 / cor0.col2 AS col2 FROM tab0 AS cor0
----
1
2
97

query I rowsort
SELECT DISTINCT ( col1 ) * col0 * + col1 FROM tab0
----
177504
329315
737009

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7577
SELECT DISTINCT ( - col2 ) * CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7577
SELECT DISTINCT ( - col2 ) * CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT + 77 + cor1.col1 FROM tab2, tab0 AS cor0, tab0, tab1 AS cor1
----
103
87
90

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7579
SELECT - col2 / CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7579
SELECT - col2 / CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - - col2 * + 15 FROM tab1 AS cor0
----
1440
810
855

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7581
SELECT ALL - + col0 * + CAST( + col2 * col2 AS SIGNED ) + - col1 FROM tab2 cor0
----
-114093
-5134
-52787

skipif mysql # not compatible
query I rowsort label-7581
SELECT ALL - + col0 * + CAST ( + col2 * col2 AS INTEGER ) + - col1 FROM tab2 cor0
----
-114093
-5134
-52787

query I rowsort
SELECT DISTINCT - - 90 * + col0 AS col1 FROM tab0 cor0
----
2160
3150
8010

onlyif mysql # use DIV operator for integer division
query I rowsort label-7583
SELECT ALL col1 DIV 11 FROM tab2 AS cor0
----
1
2
5

skipif mysql # not compatible
query I rowsort label-7583
SELECT ALL col1 / 11 FROM tab2 AS cor0
----
1
2
5

onlyif mysql # use DIV operator for integer division
query I rowsort label-7584
SELECT - col1 + - col2 DIV col1 AS col2 FROM tab2 cor0
----
-19
-31
-59

skipif mysql # not compatible
query I rowsort label-7584
SELECT - col1 + - col2 / col1 AS col2 FROM tab2 cor0
----
-19
-31
-59

query I rowsort
SELECT 27 * + cor0.col1 + - col0 AS col1 FROM tab1 cor0
----
206
271
699

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7586
SELECT col0 * CAST( col0 AS SIGNED ) * col2 FROM tab1 AS cor0
----
233472
486
614400

skipif mysql # not compatible
query I rowsort label-7586
SELECT col0 * CAST ( col0 AS INTEGER ) * col2 FROM tab1 AS cor0
----
233472
486
614400

query I rowsort
SELECT ALL - col1 * 30 + + 57 FROM tab0 AS cor0
----
-2523
-2673
-2853

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7588
SELECT ALL + + col1 * + CAST( NULL AS SIGNED ) + + col2 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7588
SELECT ALL + + col1 * + CAST ( NULL AS INTEGER ) + + col2 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7589
SELECT ALL + + col1 * CAST( + col2 AS SIGNED ) * + col0 FROM tab1 cor0
----
36480
4212
99840

skipif mysql # not compatible
query I rowsort label-7589
SELECT ALL + + col1 * CAST ( + col2 AS INTEGER ) * + col0 FROM tab1 cor0
----
36480
4212
99840

query I rowsort
SELECT ALL col0 * + 41 + + col1 FROM tab0 AS cor0
----
1070
1532
3740

onlyif mysql # use DIV operator for integer division
query I rowsort label-7591
SELECT col1 DIV + 41 FROM tab2 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-7591
SELECT col1 / + 41 FROM tab2 AS cor0
----
0
0
1

query I rowsort
SELECT ALL + cor0.col1 * + ( + col2 + col1 ) AS col0 FROM tab0 AS cor0
----
10234
15743
9506

query I rowsort
SELECT ALL + + col2 * col2 + 22 AS col1 FROM tab0 AS cor0
----
1111
23
6746

onlyif mysql # use DIV operator for integer division
query I rowsort label-7594
SELECT - cor0.col1 + 71 DIV 15 col0 FROM tab0 AS cor0
----
-82
-87
-93

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7594
SELECT - cor0.col1 + 71 / 15 col0 FROM tab0 AS cor0
----
-82
-87
-93

onlyif mysql # use DIV operator for integer division
query I rowsort label-7595
SELECT DISTINCT - col2 DIV - 7 col2 FROM tab2 AS cor0
----
3
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7595
SELECT DISTINCT - col2 / - 7 col2 FROM tab2 AS cor0
----
3
5

query I rowsort
SELECT 48 - - col2 * - ( col1 ) AS col0 FROM tab2
----
-1486
-598
-789

query I rowsort
SELECT + + col1 * ( col0 ) AS col1 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT col0 * - 6 AS col1 FROM tab2 AS cor0
----
-42
-468
-474

query I rowsort
SELECT - 44 AS col2 FROM tab2
----
-44
-44
-44

query I rowsort
SELECT - ( col2 ) * col0 + - col0 FROM tab0 AS cor0
----
-70
-7387
-816

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + col1 col0 FROM tab2
----
55
58
85

query I rowsort
SELECT + 10 + tab1.col1 * - 73 * 78 AS col1 FROM tab1
----
-148034
-56930
-74012

onlyif mysql # use DIV operator for integer division
query I rowsort label-7603
SELECT - ( - col2 ) DIV + ( - col0 ) FROM tab1 AS cor0
----
-1
-18
0

skipif mysql # not compatible
query I rowsort label-7603
SELECT - ( - col2 ) / + ( - col0 ) FROM tab1 AS cor0
----
-1
-18
0

query I rowsort
SELECT DISTINCT - cor0.col0 + 73 AS col0 FROM tab1, tab0 AS cor0
----
-16
38
49

query I rowsort
SELECT ALL col1 + - col0 * 65 AS col0 FROM tab2 AS cor0
----
-424
-5011
-5118

query I rowsort
SELECT ALL + 3 - cor1.col0 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to bac5bb0b81f7f77301bd823823ff0f8f

query I rowsort
SELECT DISTINCT - 20 * col0 AS col1 FROM tab1 AS cor0
----
-1280
-1600
-60

query I rowsort
SELECT 62 * + col2 FROM tab1 AS cor0
----
3348
3534
5952

query I rowsort
SELECT DISTINCT col1 * cor0.col2 * - 71 - ( col0 ) AS col0 FROM tab2 AS cor0
----
-108992
-45945
-59434

query I rowsort
SELECT DISTINCT 46 * col0 AS col0 FROM tab0 AS cor0
----
1104
1610
4094

query I rowsort
SELECT DISTINCT + + col0 + + cor0.col1 FROM tab1 AS cor0
----
29
74
93

query I rowsort
SELECT ALL - 16 + col2 FROM tab2 AS cor0
----
10
11
22

query I rowsort
SELECT + col0 * col1 + - col1 FROM tab1 AS cor0
----
1027
52
630

query I rowsort
SELECT ALL - 17 + col2 FROM tab2 cor0
----
10
21
9

query I rowsort
SELECT 67 * cor0.col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 874933543d4890ebedfa25638315a685

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 * + 28 col1 FROM tab0 cor0
----
-2492
-672
-980

query I rowsort
SELECT col2 * cor0.col0 AS col1 FROM tab1 cor0
----
162
3648
7680

onlyif mysql # use DIV operator for integer division
query I rowsort label-7618
SELECT DISTINCT - col0 DIV - 99 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7618
SELECT DISTINCT - col0 / - 99 FROM tab0 AS cor0
----
0

query I rowsort
SELECT + cor0.col0 + ( - 0 ) FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT ALL col2 + col1 * + col1 FROM tab0 AS cor0
----
7429
8363
9410

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7621
SELECT ALL + CAST( NULL AS SIGNED ) * + ( col0 ) AS col2 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7621
SELECT ALL + CAST ( NULL AS INTEGER ) * + ( col0 ) AS col2 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - cor0.col1 * cor0.col1 AS col1 FROM tab2, tab2 cor0
----
-289
-3481
-961

query I rowsort
SELECT DISTINCT + col1 * + col2 * col1 + + cor0.col0 + - col2 AS col0 FROM tab0 cor0
----
244059
679049
9443

query I rowsort
SELECT ALL - col1 + - col2 + + col2 FROM tab2
----
-17
-31
-59

query I rowsort
SELECT ALL 83 + col0 * - col1 FROM tab2 AS cor0
----
-1260
-134
-4519

query I rowsort
SELECT DISTINCT - 95 * 0 FROM tab1 AS cor0
----
0

query I rowsort
SELECT 46 + 40 - col2 AS col1 FROM tab0 AS cor0
----
4
53
85

onlyif mysql # use DIV operator for integer division
query I rowsort label-7628
SELECT DISTINCT 52 DIV ( col2 ) + col1 FROM tab1 AS cor0
----
10
13
26

skipif mysql # not compatible
query I rowsort label-7628
SELECT DISTINCT 52 / ( col2 ) + col1 FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT ALL + 85 * - 65 + col0 AS col0 FROM tab1 AS cor0
----
-5445
-5461
-5522

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7630
SELECT ALL CAST( - col0 AS SIGNED ) - col2 AS col2 FROM tab2 AS cor0
----
-104
-117
-34

skipif mysql # not compatible
query I rowsort label-7630
SELECT ALL CAST ( - col0 AS INTEGER ) - col2 AS col2 FROM tab2 AS cor0
----
-104
-117
-34

onlyif mysql # use DIV operator for integer division
query I rowsort label-7631
SELECT + col0 + 86 DIV - col1 AS col2 FROM tab1 cor0
----
0
56
74

skipif mysql # not compatible
query I rowsort label-7631
SELECT + col0 + 86 / - col1 AS col2 FROM tab1 cor0
----
0
56
74

query I rowsort
SELECT ALL - col1 * col0 + + col1 AS col0 FROM tab0 AS cor0
----
-1978
-3298
-8008

query I rowsort
SELECT DISTINCT + 44 * col1 AS col2 FROM tab0
----
3784
4004
4268

query I rowsort
SELECT DISTINCT + tab2.col2 * - 59 + tab2.col2 * + 70 + + col0 AS col2 FROM tab2
----
304
364
497

query I rowsort
SELECT + 32 AS col0 FROM tab1
----
32
32
32

query I rowsort
SELECT ALL col0 + - 5 AS col1 FROM tab1
----
-2
59
75

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7637
SELECT + CAST( NULL AS SIGNED ) * ( + col2 ) + - tab2.col2 * col1 + + col0 col0 FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7637
SELECT + CAST ( NULL AS INTEGER ) * ( + col2 ) + - tab2.col2 * col1 + + col0 col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col2 - - col0 AS col1 FROM tab2 AS cor0
----
104
117
34

query I rowsort
SELECT - col2 + + col2 * + 9 FROM tab1 AS cor0
----
432
456
768

query I rowsort
SELECT ALL - col2 * + col2 + col0 AS col1 FROM tab2 cor0
----
-1365
-598
-722

query I rowsort
SELECT DISTINCT + col1 * cor0.col1 + col0 * - 5 FROM tab1 AS cor0
----
-220
-231
661

query I rowsort
SELECT + ( col2 ) + - 74 AS col1 FROM tab1 AS cor0
----
-17
-20
22

query I rowsort
SELECT DISTINCT 66 FROM tab2 cor0
----
66

query I rowsort
SELECT DISTINCT - - 77 FROM tab2 AS cor0
----
77

query I rowsort
SELECT DISTINCT + col1 * tab1.col0 + - tab1.col0 AS col2 FROM tab1
----
576
75
960

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - 59 col2 FROM tab0
----
-1947
-4838
-59

query I rowsort
SELECT DISTINCT tab1.col2 * - col1 + col1 FROM tab1
----
-1235
-1378
-560

query I rowsort
SELECT ALL + 71 + + tab1.col0 FROM tab1, tab0 AS cor0, tab0, tab2 AS cor1
----
81 values hashing to 6d4c7cf81e4c8632d7c28066b5a48cd8

query I rowsort
SELECT + col0 * 34 AS col2 FROM tab1
----
102
2176
2720

query I rowsort
SELECT ALL - col2 * 10 * ( + col1 ) FROM tab0
----
-28380
-74620
-970

onlyif mysql # use DIV operator for integer division
query I rowsort label-7651
SELECT DISTINCT col2 * col0 DIV + col0 AS col1 FROM tab2
----
26
27
38

skipif mysql # not compatible
query I rowsort label-7651
SELECT DISTINCT col2 * col0 / + col0 AS col1 FROM tab2
----
26
27
38

query I rowsort
SELECT - + 15 * cor0.col1 FROM tab0 AS cor0
----
-1290
-1365
-1455

query I rowsort
SELECT DISTINCT - + 60 AS col1 FROM tab1 AS cor0
----
-60

query I rowsort
SELECT DISTINCT - cor0.col0 * cor0.col1 FROM tab0, tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT col1 + 19 * col0 AS col2 FROM tab0 AS cor0
----
1782
542
762

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7656
SELECT col2 + col2 * col2 + - CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7656
SELECT col2 + col2 * col2 + - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-7657
SELECT DISTINCT - col0 DIV col2 col2 FROM tab0 AS cor0
----
-1
-35
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7657
SELECT DISTINCT - col0 / col2 col2 FROM tab0 AS cor0
----
-1
-35
0

query I rowsort
SELECT ALL 49 * col0 + col0 AS col0 FROM tab2
----
350
3900
3950

query I rowsort
SELECT ALL - cor0.col1 AS col0 FROM tab0, tab2, tab2 AS cor0
----
27 values hashing to 6e0b7d583bc2c53842166d3e6ba2d6d2

query I rowsort
SELECT ALL - 30 + col1 FROM tab0
----
56
61
67

query I rowsort
SELECT DISTINCT + 24 + + col0 AS col0 FROM tab2 AS cor0
----
102
103
31

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + cor0.col0 * - col1 * - col1 + col1 col0 FROM tab0 cor0
----
-177418
-329218
-736918

query I rowsort
SELECT DISTINCT - - col1 + col0 * 1 AS col2 FROM tab1 AS cor0
----
29
74
93

query I rowsort
SELECT ALL + - col0 + col2 * + 26 FROM tab2 AS cor0
----
598
695
909

query I rowsort
SELECT - + col0 * + ( col1 ) + + col0 FROM tab1 AS cor0
----
-576
-75
-960

query I rowsort
SELECT ALL col0 * - 54 + col1 FROM tab2 AS cor0
----
-347
-4153
-4249

query I rowsort
SELECT DISTINCT + + col2 + - 70 AS col1 FROM tab2 AS cor0
----
-32
-43
-44

query I rowsort
SELECT ALL - col0 + - col0 * + 86 FROM tab0 AS cor0
----
-2088
-3045
-7743

query I rowsort
SELECT DISTINCT col0 - col0 * + 89 * col1 FROM tab0 AS cor0
----
-183672
-302120
-720722

query I rowsort
SELECT ALL + col0 + - 89 * col0 AS col1 FROM tab0 AS cor0
----
-2112
-3080
-7832

query I rowsort
SELECT ALL - cor0.col0 - - 96 * - col1 FROM tab2 AS cor0
----
-1711
-2983
-5742

query I rowsort
SELECT + col0 * cor0.col0 + + col1 FROM tab0 AS cor0
----
1322
662
8012

query I rowsort
SELECT - + cor0.col1 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to ccaa5dd3388d9ee0fea676fa35299fe5

query I rowsort
SELECT + - col0 + ( + ( + col0 ) ) AS col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT + col0 + 5 AS col1 FROM tab2 AS cor0
----
12
83
84

query I rowsort
SELECT + + col1 * 76 AS col2 FROM tab0 cor0
----
6536
6916
7372

onlyif mysql # use DIV operator for integer division
query I rowsort label-7677
SELECT col0 DIV col1 - col0 FROM tab0 cor0
----
-24
-35
-89

skipif mysql # not compatible
query I rowsort label-7677
SELECT col0 / col1 - col0 FROM tab0 cor0
----
-24
-35
-89

query I rowsort
SELECT + - cor0.col1 + cor0.col1 + col0 * col0 FROM tab0 AS cor0
----
1225
576
7921

query I rowsort
SELECT - col1 + col2 * - col0 AS col1 FROM tab2
----
-2087
-220
-3019

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7680
SELECT col2 * CAST( col1 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
1248
1404
570

skipif mysql # not compatible
query I rowsort label-7680
SELECT col2 * CAST ( col1 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
1248
1404
570

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT col1 * CAST ( + col2 AS REAL ) col1 FROM tab1
----
1248
1404
570

query I rowsort
SELECT - col1 + 93 * + col2 AS col0 FROM tab1 AS cor0
----
4996
5291
8915

query I rowsort
SELECT + col2 + col1 * + col2 * col2 AS col0 FROM tab0 AS cor0
----
611966
93687
98

query I rowsort
SELECT - 24 + - 78 AS col2 FROM tab2 cor0
----
-102
-102
-102

query I rowsort
SELECT + col1 * col1 + - col1 FROM tab1 AS cor0
----
156
650
90

query I rowsort
SELECT - + col1 * + col2 + - col2 FROM tab0 AS cor0
----
-2871
-7544
-98

query I rowsort
SELECT + col1 * - col1 * 29 AS col0 FROM tab2
----
-100949
-27869
-8381

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7688
SELECT + col0 * CAST( col0 AS SIGNED ) col0 FROM tab2
----
49
6084
6241

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7688
SELECT + col0 * CAST ( col0 AS INTEGER ) col0 FROM tab2
----
49
6084
6241

query I rowsort
SELECT col2 * + 5 FROM tab2
----
130
135
190

query I rowsort
SELECT DISTINCT tab0.col2 - tab0.col1 AS col1 FROM tab0, tab1 AS cor0
----
-53
-9
-96

onlyif mysql # use DIV operator for integer division
query I rowsort label-7691
SELECT + col1 DIV 2 + col0 AS col1 FROM tab1 cor0
----
16
69
86

skipif mysql # not compatible
query I rowsort label-7691
SELECT + col1 / 2 + col0 AS col1 FROM tab1 cor0
----
16
69
86

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7692
SELECT DISTINCT - CAST( NULL AS SIGNED ) + 40 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7692
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + 40 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT tab1.col0 * col1 + - col2 + - col0 AS col0 FROM tab1
----
21
519
864

query I rowsort
SELECT ALL 5 + - cor0.col2 FROM tab1 AS cor0
----
-49
-52
-91

query I rowsort
SELECT DISTINCT + + cor0.col1 * col1 AS col0 FROM tab1 AS cor0
----
100
169
676

query I rowsort
SELECT - - cor0.col0 * + col2 AS col2 FROM tab1 AS cor0
----
162
3648
7680

onlyif mysql # use DIV operator for integer division
query I rowsort label-7697
SELECT - col0 + col1 DIV - cor0.col1 col2 FROM tab0 cor0
----
-25
-36
-90

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7697
SELECT - col0 + col1 / - cor0.col1 col2 FROM tab0 cor0
----
-25
-36
-90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - tab2.col2 * 29 col2 FROM tab2
----
-1102
-754
-783

query I rowsort
SELECT + 14 * col0 + col0 * + ( 25 ) AS col2 FROM tab1
----
117
2496
3120

onlyif mysql # use DIV operator for integer division
query I rowsort label-7700
SELECT - tab0.col2 DIV + col0 FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-7700
SELECT - tab0.col2 / + col0 FROM tab0
----
-1
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7701
SELECT col1 + + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7701
SELECT col1 + + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 9 * col0 col2 FROM tab1 AS cor0
----
-27
-576
-720

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 36 col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to eee96a85519f92856a7500dc8b6cf752

onlyif mysql # use DIV operator for integer division
query I rowsort label-7704
SELECT + ( col2 ) DIV + col1 AS col0 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7704
SELECT + ( col2 ) / + col1 AS col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT - - cor0.col2 * - col2 FROM tab1 AS cor0
----
-2916
-3249
-9216

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 90 col1 FROM tab0 cor0
----
90

query I rowsort
SELECT - col2 * - col1 + - col1 * - ( 83 ) * - cor0.col0 AS col1 FROM tab1 cor0
----
-5070
-52550
-85072

onlyif mysql # use DIV operator for integer division
query I rowsort label-7708
SELECT ALL - 6 + col2 + col1 DIV + col2 AS col1 FROM tab0 AS cor0
----
29
77
92

skipif mysql # not compatible
query I rowsort label-7708
SELECT ALL - 6 + col2 + col1 / + col2 AS col1 FROM tab0 AS cor0
----
29
77
92

onlyif mysql # use DIV operator for integer division
query I rowsort label-7709
SELECT DISTINCT - + 96 DIV - 6 - col2 FROM tab0 cor0
----
-17
-66
15

skipif mysql # not compatible
query I rowsort label-7709
SELECT DISTINCT - + 96 / - 6 - col2 FROM tab0 cor0
----
-17
-66
15

onlyif mysql # use DIV operator for integer division
query I rowsort label-7710
SELECT + 59 DIV + 87 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-7710
SELECT + 59 / + 87 col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT + + col2 + - ( - col1 ) FROM tab0 cor0
----
119
173
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - cor0.col2 + 84 * + col2 col0 FROM tab1 AS cor0
----
4482
4731
7968

query I rowsort
SELECT DISTINCT - - 64 * - col1 FROM tab2 AS cor0
----
-1088
-1984
-3776

query I rowsort
SELECT ALL - ( + ( + col2 ) ) FROM tab1 AS cor0
----
-54
-57
-96

query I rowsort
SELECT - - col2 + 70 AS col2 FROM tab0 AS cor0
----
103
152
71

query I rowsort
SELECT ALL + col1 * - ( col2 ) FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT - 78 + - col1 + cor0.col2 * ( + col1 ) FROM tab1 cor0
----
1157
1300
482

query I rowsort
SELECT ALL col0 * + 41 AS col0 FROM tab0 AS cor0
----
1435
3649
984

query I rowsort
SELECT DISTINCT - 85 * + ( col0 + col2 ) FROM tab0 AS cor0
----
-14535
-3060
-4845

query I rowsort
SELECT DISTINCT + 88 * - cor0.col2 FROM tab2 AS cor0
----
-2288
-2376
-3344

query I rowsort
SELECT DISTINCT + ( - col1 + + col2 ) * - col1 AS col1 FROM tab2
----
-357
124
1947

query I rowsort
SELECT DISTINCT - 76 FROM tab0, tab0 AS cor0
----
-76

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7723
SELECT - col0 * CAST( NULL AS DECIMAL ) + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7723
SELECT - col0 * CAST ( NULL AS REAL ) + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + + col0 * - col2 + col2 AS col2 FROM tab2 cor0
----
-162
-2002
-2964

query I rowsort
SELECT DISTINCT + + 31 * - 28 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-868

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + tab0.col0 col0 FROM tab0
----
110
132
180

query I rowsort
SELECT DISTINCT + col1 * col1 * + col1 FROM tab1
----
1000
17576
2197

onlyif mysql # use DIV operator for integer division
query I rowsort label-7728
SELECT + col0 DIV - CAST( + col0 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-7728
SELECT + col0 / - CAST ( + col0 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-1
-1
-1

onlyif mysql # use DIV operator for integer division
query I rowsort label-7729
SELECT - + col1 + + col0 DIV col1 + col1 DIV - 97 FROM tab1 AS cor0
----
-26
-4
-7

skipif mysql # not compatible
query I rowsort label-7729
SELECT - + col1 + + col0 / col1 + col1 / - 97 FROM tab1 AS cor0
----
-26
-4
-7

query I rowsort
SELECT col2 * 16 + + col1 + - cor0.col0 FROM tab2 AS cor0
----
397
456
546

query I rowsort
SELECT - col2 * col1 + + cor0.col2 FROM tab1 AS cor0
----
-1152
-1350
-513

query I rowsort
SELECT - tab1.col2 + - col0 AS col2 FROM tab1
----
-121
-176
-57

query I rowsort
SELECT ALL + + 59 * + col1 + col2 * 94 FROM tab1 AS cor0
----
5948
6610
9791

query I rowsort
SELECT col1 * col0 * col1 AS col1 FROM tab0
----
177504
329315
737009

query I rowsort
SELECT ALL - + ( - col2 ) + - cor0.col2 AS col0 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-7736
SELECT DISTINCT + + cor0.col1 DIV col1 + col2 * - ( col2 ) + + col0 FROM tab2 AS cor0
----
-1364
-597
-721

skipif mysql # not compatible
query I rowsort label-7736
SELECT DISTINCT + + cor0.col1 / col1 + col2 * - ( col2 ) + + col0 FROM tab2 AS cor0
----
-1364
-597
-721

query I rowsort
SELECT ALL - col0 * + 12 AS col0 FROM tab2 AS cor0
----
-84
-936
-948

query I rowsort
SELECT ALL + ( + ( col2 ) ) * + 23 FROM tab2 AS cor0
----
598
621
874

query I rowsort
SELECT col1 + 12 * col0 FROM tab2
----
115
965
995

onlyif mysql # use DIV operator for integer division
query I rowsort label-7740
SELECT + 9 + + col0 DIV + col1 AS col0 FROM tab0
----
9
9
9

skipif mysql # not compatible
query I rowsort label-7740
SELECT + 9 + + col0 / + col1 AS col0 FROM tab0
----
9
9
9

query I rowsort
SELECT ALL - col0 + - col2 * col0 FROM tab2 AS cor0
----
-196
-2106
-3081

query I rowsort
SELECT + - col0 * + 73 + - col2 * - col2 FROM tab2 AS cor0
----
-4323
-5018
218

query I rowsort
SELECT DISTINCT - 38 * col2 + col1 FROM tab0 AS cor0
----
-1168
-3025
59

query I rowsort
SELECT ALL ( + ( col0 ) ) + 58 AS col1 FROM tab2 AS cor0
----
136
137
65

onlyif mysql # use DIV operator for integer division
query I rowsort label-7745
SELECT ALL - + col1 + 79 * col2 DIV + col1 FROM tab0 AS cor0
----
-20
-56
-97

skipif mysql # not compatible
query I rowsort label-7745
SELECT ALL - + col1 + 79 * col2 / + col1 FROM tab0 AS cor0
----
-20
-56
-97

query I rowsort
SELECT - - 62 FROM tab0 AS cor0
----
62
62
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 24 * col0 - col2 col0 FROM tab2
----
141
1846
1858

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7748
SELECT + ( - col2 + + ( - ( + col1 ) ) ) * CAST( NULL AS DECIMAL ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7748
SELECT + ( - col2 + + ( - ( + col1 ) ) ) * CAST ( NULL AS REAL ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col1 * cor0.col0 + + col2 AS col0 FROM tab1 AS cor0
----
-24
-583
-944

onlyif mysql # use DIV operator for integer division
query I rowsort label-7750
SELECT ALL - - col1 + col2 DIV col0 AS col2 FROM tab0 AS cor0
----
87
91
97

skipif mysql # not compatible
query I rowsort label-7750
SELECT ALL - - col1 + col2 / col0 AS col2 FROM tab0 AS cor0
----
87
91
97

query I rowsort
SELECT ALL 95 + col2 AS col1 FROM tab1 AS cor0
----
149
152
191

query I rowsort
SELECT ALL - col2 + 15 * cor0.col2 FROM tab2 cor0
----
364
378
532

query I rowsort
SELECT col0 + ( - col2 ) AS col2 FROM tab1 cor0
----
-16
-51
7

onlyif mysql # use DIV operator for integer division
query I rowsort label-7754
SELECT ALL + col0 * cor0.col2 DIV - col0 + col2 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7754
SELECT ALL + col0 * cor0.col2 / - col0 + col2 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-7755
SELECT ALL col0 DIV col2 + + col2 FROM tab0 cor0
----
33
36
83

skipif mysql # not compatible
query I rowsort label-7755
SELECT ALL col0 / col2 + + col2 FROM tab0 cor0
----
33
36
83

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7756
SELECT + col2 * CAST( NULL AS SIGNED ) - col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7756
SELECT + col2 * CAST ( NULL AS INTEGER ) - col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7757
SELECT DISTINCT + col0 + + CAST( - 30 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-27
34
50

skipif mysql # not compatible
query I rowsort label-7757
SELECT DISTINCT + col0 + + CAST ( - 30 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-27
34
50

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7758
SELECT ALL + col1 + + CAST( 38 AS SIGNED ) * - col1 AS col2 FROM tab1 AS cor0
----
-370
-481
-962

skipif mysql # not compatible
query I rowsort label-7758
SELECT ALL + col1 + + CAST ( 38 AS INTEGER ) * - col1 AS col2 FROM tab1 AS cor0
----
-370
-481
-962

query I rowsort
SELECT + - col1 * - 71 + 67 AS col0 FROM tab2 AS cor0
----
1274
2268
4256

query I rowsort
SELECT ALL col1 - 21 FROM tab2 AS cor0
----
-4
10
38

query I rowsort
SELECT DISTINCT col2 * - cor0.col0 AS col0 FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT ALL + cor0.col1 * - col1 + + col2 * + col2 + - col2 AS col2 FROM tab1 AS cor0
----
2186
3092
8951

query I rowsort
SELECT - tab2.col2 * + tab2.col0 AS col2 FROM tab2
----
-189
-2028
-3002

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + col2 - 83 * col0 * + tab0.col0 col2 FROM tab0
----
-101709
-47799
-657450

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 70 - tab0.col0 col2 FROM tab0
----
-105
-159
-94

query I rowsort
SELECT col1 + - tab1.col2 AS col0 FROM tab1
----
-28
-47
-83

query I rowsort
SELECT ALL - + col2 * 5 FROM tab2 AS cor0
----
-130
-135
-190

query I rowsort
SELECT + - col0 - - col1 FROM tab1 AS cor0
----
-54
-67
23

query I rowsort
SELECT ALL + - col1 * col1 + - col2 FROM tab0 cor0
----
-7429
-8363
-9410

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * + 46 col2 FROM tab1 AS cor0
----
-2484
-2622
-4416

query I rowsort
SELECT DISTINCT + ( - tab1.col2 ) FROM tab1
----
-54
-57
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + + col0 * - ( + col2 ) * col2 col1 FROM tab0 cor0
----
-26050
-598345
62

query I rowsort
SELECT DISTINCT - col2 + 69 FROM tab0
----
-13
36
68

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7774
SELECT CAST( - 10 AS SIGNED ) - cor0.col2 AS col0 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to d53ee3a10cf59ecbaa0f7bf81ddd1f07

skipif mysql # not compatible
query I rowsort label-7774
SELECT CAST ( - 10 AS INTEGER ) - cor0.col2 AS col0 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to d53ee3a10cf59ecbaa0f7bf81ddd1f07

query I rowsort
SELECT 54 * + col2 FROM tab0
----
1782
4428
54

query I rowsort
SELECT ALL - ( + col0 ) + 13 AS col0 FROM tab0
----
-11
-22
-76

query I rowsort
SELECT - ( col1 ) * ( - col0 ) FROM tab2
----
1343
217
4602

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - tab2.col2 + - 82 col0 FROM tab2
----
-1616
-728
-919

query I rowsort
SELECT + col0 + - ( - col2 ) * + col2 AS col1 FROM tab2
----
1523
736
754

query I rowsort
SELECT + ( 73 ) + col1 AS col0 FROM tab0 AS cor0
----
159
164
170

query I rowsort
SELECT ALL + 36 FROM tab2, tab0 AS cor0
----
9 values hashing to eee96a85519f92856a7500dc8b6cf752

query IIIIIIIII rowsort
SELECT ALL * FROM tab0, tab2, tab0 cor0 WHERE NOT NULL NOT BETWEEN NULL AND ( NULL )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-7783
SELECT - cor0.col1 + cor0.col2 - col0 DIV 76 FROM tab0 AS cor0
----
-10
-53
-96

skipif mysql # not compatible
query I rowsort label-7783
SELECT - cor0.col1 + cor0.col2 - col0 / 76 FROM tab0 AS cor0
----
-10
-53
-96

query I rowsort
SELECT DISTINCT + + 37 * + col0 * - col1 AS col0 FROM tab2 AS cor0
----
-170274
-49691
-8029

query I rowsort
SELECT DISTINCT col2 + 68 * + col1 AS col1 FROM tab1
----
1822
737
980

query I rowsort
SELECT DISTINCT - + 69 * col0 + cor0.col1 FROM tab1 AS cor0
----
-181
-4406
-5507

query I rowsort
SELECT DISTINCT + + ( - col2 ) * col2 FROM tab0 cor0
----
-1
-1089
-6724

query I rowsort
SELECT + col1 * col0 + - col2 * ( cor0.col2 * col2 ) FROM tab2 AS cor0
----
-12974
-19466
-53529

onlyif mysql # use DIV operator for integer division
query I rowsort label-7789
SELECT ( col2 ) + col0 - + ( - 9 ) DIV cor0.col0 AS col1 FROM tab1 cor0
----
121
176
60

skipif mysql # not compatible
query I rowsort label-7789
SELECT ( col2 ) + col0 - + ( - 9 ) / cor0.col0 AS col1 FROM tab1 cor0
----
121
176
60

query I rowsort
SELECT ALL - + 31 * cor0.col1 AS col0 FROM tab2 cor0
----
-1829
-527
-961

query I rowsort
SELECT + - cor0.col0 * - col1 + col1 AS col1 FROM tab1 cor0
----
104
1053
650

query I rowsort
SELECT ALL - + col0 * col2 + cor0.col0 * ( 70 ) + col2 AS col0 FROM tab1 AS cor0
----
-1984
102
889

query I rowsort
SELECT - 21 + col2 * col2 FROM tab1 AS cor0
----
2895
3228
9195

query I rowsort
SELECT DISTINCT - 37 AS col1 FROM tab0
----
-37

query I rowsort
SELECT ALL ( col1 ) + col1 AS col2 FROM tab2 AS cor0
----
118
34
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * col0 * + col1 + - col2 * + col0 col1 FROM tab0 cor0
----
-178296
-329350
-744307

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7797
SELECT col1 * - col2 + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7797
SELECT col1 * - 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-7798
SELECT - - col2 + + col0 * CAST( NULL AS DECIMAL ) 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-7798
SELECT - - col2 + + col0 * CAST ( NULL AS REAL ) col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-7799
SELECT + cor0.col2 DIV + col1 AS col0 FROM tab2 cor0
----
0
0
2

skipif mysql # not compatible
query I rowsort label-7799
SELECT + cor0.col2 / + col1 AS col0 FROM tab2 cor0
----
0
0
2

query I rowsort
SELECT 84 - col1 AS col2 FROM tab2 AS cor0
----
25
53
67

query I rowsort
SELECT - + col1 * - col2 + + col0 - col2 * - col0 AS col1 FROM tab2 AS cor0
----
1033
3640
3727

query I rowsort
SELECT + cor0.col0 * col0 * - col0 + - col1 AS col0 FROM tab1 AS cor0
----
-262154
-512013
-53

onlyif mysql # use DIV operator for integer division
query I rowsort label-7803
SELECT cor0.col0 DIV - col2 + col2 - cor0.col1 AS col1 FROM tab1 cor0
----
28
46
83

skipif mysql # not compatible
query I rowsort label-7803
SELECT cor0.col0 / - col2 + col2 - cor0.col1 AS col1 FROM tab1 cor0
----
28
46
83

onlyif mysql # use DIV operator for integer division
query I rowsort label-7804
SELECT + + cor0.col0 DIV + cor0.col1 + + col0 AS col1 FROM tab2 AS cor0
----
7
79
83

skipif mysql # not compatible
query I rowsort label-7804
SELECT + + cor0.col0 / + cor0.col1 + + col0 AS col1 FROM tab2 AS cor0
----
7
79
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col0 + - 72 col1 FROM tab2 AS cor0
----
-150
-151
-79

query I rowsort
SELECT + - cor0.col1 * col0 AS col2 FROM tab0 cor0
----
-2064
-3395
-8099

query I rowsort
SELECT + col1 * - col2 * 19 FROM tab1 AS cor0
----
-10830
-23712
-26676

query I rowsort
SELECT DISTINCT cor0.col0 - + col1 AS col2 FROM tab2 AS cor0
----
-24
19
62

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7809
SELECT ALL CAST( - ( - tab0.col2 ) AS SIGNED ) AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8

skipif mysql # not compatible
query I rowsort label-7809
SELECT ALL CAST ( - ( - tab0.col2 ) AS INTEGER ) AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8

query I rowsort
SELECT + col2 * ( col0 + + col1 * col1 ) AS col2 FROM tab1 cor0
----
23904
36666
9348

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 * - col2 col1 FROM tab0 AS cor0
----
2838
7462
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-7812
SELECT + - col0 * col2 + 48 DIV col0 FROM tab1 AS cor0
----
-146
-3648
-7680

skipif mysql # not compatible
query I rowsort label-7812
SELECT + - col0 * col2 + 48 / col0 FROM tab1 AS cor0
----
-146
-3648
-7680

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col2 col1 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79

query I rowsort
SELECT + - 97 + col2 AS col2 FROM tab2 AS cor0
----
-59
-70
-71

query I rowsort
SELECT + col2 - 35 FROM tab0
----
-2
-34
47

onlyif mysql # use DIV operator for integer division
query I rowsort label-7816
SELECT - col1 * + ( + col0 ) + + col1 DIV col2 FROM tab1 AS cor0
----
-1040
-640
-78

skipif mysql # not compatible
query I rowsort label-7816
SELECT - col1 * + ( + col0 ) + + col1 / col2 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT cor0.col2 * 61 + - 33 * + col1 FROM tab1 AS cor0
----
2436
3147
5427

query I rowsort
SELECT DISTINCT + col1 + col1 * - 0 AS col2 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT + cor0.col2 + col2 * + col2 AS col0 FROM tab2 AS cor0
----
1482
702
756

query I rowsort
SELECT DISTINCT col2 + + col0 * - 75 AS col0 FROM tab2 AS cor0
----
-498
-5824
-5887

query I rowsort
SELECT + col2 + ( 48 ) * col2 FROM tab1 AS cor0
----
2646
2793
4704

query I rowsort
SELECT ALL - 28 AS col2 FROM tab0 AS cor0
----
-28
-28
-28

query I rowsort
SELECT ALL col2 + cor0.col0 * + cor0.col1 AS col1 FROM tab0 AS cor0
----
2097
3396
8181

query I rowsort
SELECT ALL + 60 + cor0.col0 AS col2 FROM tab2 AS cor0
----
138
139
67

query I rowsort
SELECT DISTINCT col1 + col0 + cor0.col2 * + 17 AS col0 FROM tab2 AS cor0
----
497
579
742

query I rowsort
SELECT - col1 * col2 + cor0.col1 AS col0 FROM tab2 AS cor0
----
-1475
-629
-806

query I rowsort
SELECT ALL + col1 + col1 * - col2 + + 39 FROM tab0 AS cor0
----
-2713
-7332
39

query I rowsort
SELECT DISTINCT - + 52 + col0 AS col1 FROM tab0 AS cor0
----
-17
-28
37

query I rowsort
SELECT DISTINCT - 99 * col2 * - col1 + - col0 AS col1 FROM tab0 AS cor0
----
280938
738649
9568

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7830
SELECT - ( + col1 ) + - col1 + + CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7830
SELECT - ( + col1 ) + - col1 + + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col2 * col2 * + col2 AS col0 FROM tab0 AS cor0
----
1
35937
551368

query I rowsort
SELECT + - 13 AS col0 FROM tab0 cor0
----
-13
-13
-13

query I rowsort
SELECT ALL + col2 + 82 FROM tab2 cor0
----
108
109
120

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + 49 * + col2 col1 FROM tab2 AS cor0
----
1333
1354
1879

query I rowsort
SELECT col0 + 46 + + col1 * + ( + col2 ) * col0 FROM tab1 AS cor0
----
36590
4261
99966

query I rowsort
SELECT ALL - ( 62 ) AS col2 FROM tab0 AS cor0
----
-62
-62
-62

query I rowsort
SELECT - - cor0.col1 - col2 * - col2 FROM tab1 AS cor0
----
2942
3259
9229

query I rowsort
SELECT col2 - col2 * ( ( + col0 ) ) AS col2 FROM tab0 AS cor0
----
-34
-7216
-759

onlyif mysql # use DIV operator for integer division
query I rowsort label-7839
SELECT DISTINCT - 2 - col1 DIV col1 AS col2 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-7839
SELECT DISTINCT - 2 - col1 / col1 AS col2 FROM tab1
----
-3

query I rowsort
SELECT ALL + - 37 + + col2 FROM tab1 AS cor0
----
17
20
59

query I rowsort
SELECT DISTINCT - + 21 * + col0 - ( 6 ) AS col0 FROM tab2 cor0
----
-153
-1644
-1665

query I rowsort
SELECT ALL + cor0.col1 + col0 AS col0 FROM tab1 AS cor0
----
29
74
93

onlyif mysql # use DIV operator for integer division
query I rowsort label-7843
SELECT DISTINCT - + col1 DIV col1 + + col0 AS col2 FROM tab0 AS cor0
----
23
34
88

skipif mysql # not compatible
query I rowsort label-7843
SELECT DISTINCT - + col1 / col1 + + col0 AS col2 FROM tab0 AS cor0
----
23
34
88

query I rowsort
SELECT DISTINCT cor0.col2 * cor0.col0 AS col0 FROM tab1 AS cor0
----
162
3648
7680

onlyif mysql # use DIV operator for integer division
query I rowsort label-7845
SELECT DISTINCT 10 * - col0 - - ( + col0 ) DIV col0 AS col1 FROM tab2 AS cor0
----
-69
-779
-789

skipif mysql # not compatible
query I rowsort label-7845
SELECT DISTINCT 10 * - col0 - - ( + col0 ) / col0 AS col1 FROM tab2 AS cor0
----
-69
-779
-789

onlyif mysql # use DIV operator for integer division
query I rowsort label-7846
SELECT DISTINCT - cor0.col2 DIV 10 - col2 * + col2 FROM tab1 cor0
----
-2921
-3254
-9225

skipif mysql # not compatible
query I rowsort label-7846
SELECT DISTINCT - cor0.col2 / 10 - col2 * + col2 FROM tab1 cor0
----
-2921
-3254
-9225

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col2 * - ( col0 ) + + col2 + - ( col2 ) * - col1 col2 FROM tab2 AS cor0
----
-2318
-468
675

query I rowsort
SELECT ALL + col0 + 46 + 10 AS col2 FROM tab0 AS cor0
----
145
80
91

query I rowsort
SELECT ALL + col1 - - col0 * + 1 AS col2 FROM tab2 AS cor0
----
137
38
96

query I rowsort
SELECT col2 - + 75 AS col1 FROM tab2 AS cor0
----
-37
-48
-49

query I rowsort
SELECT ALL + col2 + + 97 AS col2 FROM tab0 AS cor0
----
130
179
98

query I rowsort
SELECT ALL tab2.col1 * + col1 - ( col1 ) AS col0 FROM tab2
----
272
3422
930

query I rowsort
SELECT + col1 * - ( - col2 ) + - col0 + - col1 * col1 * + col2 FROM tab1 AS cor0
----
-15056
-35103
-5194

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col1 * + col1 col2 FROM tab0 AS cor0
----
7396
8281
9409

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7855
SELECT - col2 - + CAST( NULL AS SIGNED ) * + 45 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7855
SELECT - col2 - + CAST ( NULL AS INTEGER ) * + 45 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + - col1 + col2 * - col1 AS col0 FROM tab1 AS cor0
----
-1261
-1430
-580

query I rowsort
SELECT + cor0.col0 * ( + 0 ) - col1 * - col2 * + col1 AS col2 FROM tab0 AS cor0
----
244068
679042
9409

query I rowsort
SELECT col1 + ( col2 + col2 ) AS col0 FROM tab2 cor0
----
111
85
93

query I rowsort
SELECT ALL + col2 + - col2 AS col1 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + + col1 + - col2 * + col0 FROM tab1 AS cor0
----
-136
-3638
-7667

query I rowsort
SELECT - + col1 * 21 FROM tab1 AS cor0
----
-210
-273
-546

query I rowsort
SELECT - col2 + - tab1.col0 AS col2 FROM tab1
----
-121
-176
-57

query I rowsort
SELECT tab1.col1 * - col2 + col2 FROM tab1
----
-1152
-1350
-513

query I rowsort
SELECT DISTINCT 93 * + col2 * tab2.col0 FROM tab2
----
17577
188604
279186

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 * col0 col1 FROM tab2 AS cor0
----
-189
-2028
-3002

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7866
SELECT DISTINCT col1 + + CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7866
SELECT DISTINCT col1 + + CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL

query I rowsort
SELECT + 70 + - col0 * + col2 + col0 * + tab1.col1 FROM tab1
----
-14
-2938
-6570

onlyif mysql # use DIV operator for integer division
query I rowsort label-7868
SELECT tab1.col1 DIV 76 AS col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7868
SELECT tab1.col1 / 76 AS col1 FROM tab1
----
0
0
0

query I rowsort
SELECT - col2 * col1 + - col0 - - col2 AS col2 FROM tab1 AS cor0
----
-1232
-1353
-577

query I rowsort
SELECT ALL cor0.col2 + 30 FROM tab2 AS cor0
----
56
57
68

query I rowsort
SELECT + + col2 * cor0.col2 + - col0 AS col1 FROM tab2 cor0
----
1365
598
722

query I rowsort
SELECT DISTINCT tab2.col0 + - ( - 22 ) AS col1 FROM tab2
----
100
101
29

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + 41 * - col1 col0 FROM tab0
----
-3559
-3813
-3978

onlyif mysql # use DIV operator for integer division
query I rowsort label-7874
SELECT + col0 * cor0.col1 DIV - 4 AS col2 FROM tab0 AS cor0
----
-2024
-516
-848

skipif mysql # not compatible
query I rowsort label-7874
SELECT + col0 * cor0.col1 / - 4 AS col2 FROM tab0 AS cor0
----
-2024
-516
-848

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 73 col1 FROM tab2
----
73
73
73

onlyif mysql # use DIV operator for integer division
query I rowsort label-7876
SELECT DISTINCT - cor0.col2 * col0 + col1 DIV - col1 AS col1 FROM tab1 AS cor0
----
-163
-3649
-7681

skipif mysql # not compatible
query I rowsort label-7876
SELECT DISTINCT - cor0.col2 * col0 + col1 / - col1 AS col1 FROM tab1 AS cor0
----
-163
-3649
-7681

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7877
SELECT ALL tab1.col0 * CAST( NULL AS SIGNED ) - cor0.col1 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-7877
SELECT ALL tab1.col0 * CAST ( NULL AS INTEGER ) - cor0.col1 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT DISTINCT - tab2.col2 AS col0 FROM tab2, tab1, tab1 AS cor0
----
-26
-27
-38

onlyif mysql # use DIV operator for integer division
query I rowsort label-7879
SELECT col1 + + col2 DIV - 66 AS col2 FROM tab1
----
10
12
26

skipif mysql # not compatible
query I rowsort label-7879
SELECT col1 + + col2 / - 66 AS col2 FROM tab1
----
10
12
26

query I rowsort
SELECT 9 * col0 + + ( col0 ) AS col1 FROM tab1 AS cor0
----
30
640
800

query I rowsort
SELECT ALL cor0.col1 + - 95 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 4a4201177d16d0bbd791b94cfd7b6f9e

query I rowsort
SELECT 73 * cor0.col0 FROM tab1 AS cor0
----
219
4672
5840

query I rowsort
SELECT DISTINCT - 77 AS col1 FROM tab1 AS cor0
----
-77

query I rowsort
SELECT + col0 - col0 AS col2 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT col1 * col2 + col2 * - col2 AS col0 FROM tab0
----
1749
738
96

query III rowsort
SELECT ALL * FROM tab2 WHERE + col0 <= ( col0 )
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45

query I rowsort
SELECT col1 + + col0 + - col0 AS col1 FROM tab1
----
10
13
26

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( col1 ) NOT IN ( - tab0.col0 )
----

query I rowsort
SELECT DISTINCT tab0.col1 * - col1 + + col2 * + col0 FROM tab0
----
-6604
-9374
-983

query I rowsort
SELECT ALL col0 AS col2 FROM tab1 WHERE NOT col0 NOT IN ( + tab1.col1 * col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - col2 = col2 + col0
----

query III rowsort
SELECT ALL * FROM tab2 WHERE + col1 IN ( col0 * - col0 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-7893
SELECT col2 + + col2 DIV col2 + - col2 AS col1 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-7893
SELECT col2 + + col2 / col2 + - col2 AS col1 FROM tab1
----
1
1
1

query I rowsort
SELECT cor0.col1 * - col1 - col1 AS col0 FROM tab2 cor0
----
-306
-3540
-992

query I rowsort
SELECT DISTINCT - col0 FROM tab1 WHERE ( NULL ) BETWEEN ( - col2 ) AND col1
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-7896
SELECT + col0 + col0 DIV col2 col2 FROM tab0 AS cor0
----
24
70
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7896
SELECT + col0 + col0 / col2 col2 FROM tab0 AS cor0
----
24
70
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * + col0 col0 FROM tab0
----
-2064
-3395
-8099

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * tab2.col1 col0 FROM tab2
----
289
3481
961

query I rowsort
SELECT col2 * + col0 * - col2 FROM tab0
----
-26136
-35
-598436

query IIIIII rowsort
SELECT ALL * FROM tab1, tab2 cor0 WHERE NOT NULL > NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 col1 FROM tab0 AS cor0 WHERE NOT ( - col2 ) BETWEEN - col2 * col2 AND + col2
----

query I rowsort
SELECT - col2 FROM tab2 cor0 WHERE ( NULL ) >= ( col0 * - col0 + col1 )
----

query I rowsort
SELECT - col1 FROM tab2 AS cor0 WHERE ( col1 * + col2 ) NOT IN ( cor0.col0 )
----
-17
-31
-59

query I rowsort
SELECT col1 - col2 AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) IN ( + col2 + - col2 )
----

query I rowsort
SELECT - tab0.col1 + + col1 + + col1 FROM tab0
----
86
91
97

query I rowsort
SELECT - col0 + - tab1.col1 AS col1 FROM tab1 WHERE NOT NULL IN ( + col0 )
----

query III rowsort
SELECT * FROM tab1 WHERE NULL <= + col1 - - col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + + col2 + - col1 col0 FROM tab0
----
-20
-95
73

query I rowsort
SELECT DISTINCT col0 * tab0.col2 * + col0 + tab0.col0 FROM tab0
----
1260
19032
649611

query I rowsort
SELECT col0 + - col2 * + tab2.col0 * col1 AS col1 FROM tab2 WHERE col0 = NULL
----

query I rowsort
SELECT DISTINCT col2 * col2 + col2 FROM tab2
----
1482
702
756

query I rowsort
SELECT ALL - 89 + - col1 AS col1 FROM tab0 AS cor0
----
-175
-180
-186

query I rowsort
SELECT - - 55 AS col0 FROM tab1 AS cor0
----
55
55
55

query I rowsort
SELECT ALL 29 * col0 FROM tab1
----
1856
2320
87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + - 68 * col0 * col1 col2 FROM tab1
----
-43584
-5307
-70800

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7916
SELECT DISTINCT + CAST( NULL AS DECIMAL ) FROM tab2, tab1 AS cor0, tab2 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-7916
SELECT DISTINCT + CAST ( NULL AS REAL ) FROM tab2, tab1 AS cor0, tab2 AS cor1
----
NULL

query I rowsort
SELECT - - col0 + + col0 * ( cor0.col0 * - col1 ) FROM tab0 AS cor0
----
-118790
-49512
-720722

query I rowsort
SELECT - + col2 * + ( cor0.col2 ) * col2 FROM tab0 AS cor0
----
-1
-35937
-551368

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 25 * - col1 col0 FROM tab0
----
-2150
-2275
-2425

query I rowsort
SELECT - ( col1 ) * - col2 * col1 AS col0 FROM tab1
----
16224
36504
5700

query I rowsort
SELECT cor0.col1 + ( col1 ) FROM tab2 cor0
----
118
34
62

query I rowsort
SELECT - col0 * - ( 20 ) + - col1 FROM tab0 AS cor0
----
1689
394
603

query I rowsort
SELECT ALL + cor1.col2 AS col2 FROM tab1 cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7924
SELECT ALL CAST( 66 AS SIGNED ) AS col0 FROM tab2, tab1 cor0
----
9 values hashing to 29794915b585eea848ad670075452c88

skipif mysql # not compatible
query I rowsort label-7924
SELECT ALL CAST ( 66 AS INTEGER ) AS col0 FROM tab2, tab1 cor0
----
9 values hashing to 29794915b585eea848ad670075452c88

query I rowsort
SELECT + col2 + - cor0.col0 * + ( - col0 ) FROM tab1 AS cor0
----
4153
63
6496

query I rowsort
SELECT cor0.col1 * - 61 * 71 AS col2 FROM tab0 cor0
----
-372466
-394121
-420107

query I rowsort
SELECT cor0.col0 * col0 + col1 * col1 AS col0 FROM tab1 AS cor0
----
4196
6569
685

query I rowsort
SELECT + col0 + + ( + col0 ) + + col1 AS col1 FROM tab0 cor0
----
134
167
269

onlyif mysql # use DIV operator for integer division
query I rowsort label-7929
SELECT + CAST( + col1 AS SIGNED ) DIV + col0 FROM tab0
----
1
2
3

skipif mysql # not compatible
query I rowsort label-7929
SELECT + CAST ( + col1 AS INTEGER ) / + col0 FROM tab0
----
1
2
3

query I rowsort
SELECT col0 + tab2.col2 + + col0 AS col1 FROM tab2
----
182
196
41

query I rowsort
SELECT - cor0.col2 + + cor0.col0 - + ( ( + col0 ) ) AS col1 FROM tab2 AS cor0
----
-26
-27
-38

onlyif mysql # use DIV operator for integer division
query I rowsort label-7932
SELECT col0 DIV col0 col1 FROM tab1 AS cor0
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7932
SELECT col0 / col0 col1 FROM tab1 AS cor0
----
1
1
1

query I rowsort
SELECT DISTINCT + - 38 + col0 * 42 FROM tab2 cor0
----
256
3238
3280

query I rowsort
SELECT DISTINCT + cor0.col0 AS col1 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
7
78
79

onlyif mysql # use DIV operator for integer division
query I rowsort label-7935
SELECT DISTINCT + ( - tab2.col1 ) DIV - tab2.col0 - + ( col2 ) FROM tab2
----
-23
-26
-38

skipif mysql # not compatible
query I rowsort label-7935
SELECT DISTINCT + ( - tab2.col1 ) / - tab2.col0 - + ( col2 ) FROM tab2
----
-23
-26
-38

query I rowsort
SELECT ALL col0 - + 12 * col2 AS col2 FROM tab0
----
-372
-895
23

query I rowsort
SELECT ( col2 ) * col1 AS col0 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT ( col2 ) + - col2 - 85 FROM tab1
----
-85
-85
-85

query I rowsort
SELECT 27 + col2 AS col0 FROM tab2
----
53
54
65

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - col2 ) + col0 col2 FROM tab1
----
-16
-51
7

query I rowsort
SELECT - col1 + col2 * col1 FROM tab2 AS cor0
----
1475
629
806

query I rowsort
SELECT - 32 * col2 + - col1 FROM tab1 AS cor0
----
-1754
-1834
-3085

query I rowsort
SELECT ALL - 53 + + col0 AS col0 FROM tab0 AS cor0
----
-18
-29
36

query I rowsort
SELECT - - 5 * + cor0.col1 AS col1 FROM tab0 AS cor0
----
430
455
485

query I rowsort
SELECT DISTINCT 50 * + col0 AS col2 FROM tab2 AS cor0
----
350
3900
3950

query I rowsort
SELECT ALL + 58 + + col1 FROM tab0 AS cor0
----
144
149
155

query I rowsort
SELECT ( col2 ) * - col1 * cor0.col2 + + col0 * - ( + 60 ) AS col1 FROM tab0 cor0
----
-2197
-617224
-95094

query I rowsort
SELECT DISTINCT - 49 + + col1 AS col1 FROM tab1 AS cor0
----
-23
-36
-39

skipif mysql # not compatible
query I rowsort
SELECT ALL - - cor0.col0 * - cor0.col0 * CAST ( - col2 AS REAL ) FROM tab1 AS cor0
----
233472
486
614400

query I rowsort
SELECT + col0 * 77 FROM tab0 AS cor0
----
1848
2695
6853

query I rowsort
SELECT DISTINCT + - 20 AS col1 FROM tab1 cor0
----
-20

query I rowsort
SELECT DISTINCT ( + col2 ) + - cor0.col2 AS col2 FROM tab0 cor0
----
0

query I rowsort
SELECT + - ( - col2 ) * col0 FROM tab0 cor0
----
35
7298
792

query I rowsort
SELECT ALL 73 + + 12 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to aafa8e5cfb9e02cea8717833e7581f7b

query IIIIIIIIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1, tab1 cor1, tab1 AS cor2
----
972 values hashing to a8481bfbfcb330825976c5896e54bc19

query I rowsort
SELECT DISTINCT + + col1 + - col2 AS col2 FROM tab2 cor0
----
-21
33
4

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7957
SELECT - + CAST( + cor0.col1 AS SIGNED ) * + col2 FROM tab2 AS cor0
----
-1534
-646
-837

skipif mysql # not compatible
query I rowsort label-7957
SELECT - + CAST ( + cor0.col1 AS INTEGER ) * + col2 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT ( + col1 ) * col2 FROM tab2 cor0
----
1534
646
837

query I rowsort
SELECT ALL + 25 + col2 * + col1 * - cor0.col2 FROM tab1 AS cor0
----
-119783
-32465
-75791

query I rowsort
SELECT cor0.col2 * col0 * col2 AS col1 FROM tab1 AS cor0
----
207936
737280
8748

query I rowsort
SELECT DISTINCT + 20 AS col2 FROM tab0 AS cor0
----
20

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7962
SELECT ALL + CAST( + ( col2 ) AS SIGNED ) AS col0 FROM tab2 AS cor0
----
26
27
38

skipif mysql # not compatible
query I rowsort label-7962
SELECT ALL + CAST ( + ( col2 ) AS INTEGER ) AS col0 FROM tab2 AS cor0
----
26
27
38

query I rowsort
SELECT ALL 87 * 73 FROM tab1 AS cor0
----
6351
6351
6351

query I rowsort
SELECT - ( + col1 ) + + col2 * + ( - col1 ) FROM tab2 cor0
----
-1593
-663
-868

query I rowsort
SELECT DISTINCT col0 + - cor0.col0 * - cor0.col1 AS col2 FROM tab1 AS cor0
----
1120
704
81

query I rowsort
SELECT ALL 57 + ( - col2 ) FROM tab1 AS cor0
----
-39
0
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * + 81 * col2 - + col1 col0 FROM tab0 AS cor0
----
-16
544553
88123

query I rowsort
SELECT - - 19 * + col1 + cor0.col1 FROM tab1 AS cor0
----
200
260
520

onlyif mysql # use DIV operator for integer division
query I rowsort label-7969
SELECT DISTINCT cor0.col0 + col0 DIV - col1 AS col1 FROM tab1 AS cor0
----
3
58
74

skipif mysql # not compatible
query I rowsort label-7969
SELECT DISTINCT cor0.col0 + col0 / - col1 AS col1 FROM tab1 AS cor0
----
3
58
74

query I rowsort
SELECT DISTINCT - 86 FROM tab0 AS cor0
----
-86

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 99 * - col1 col1 FROM tab2 AS cor0
----
-1683
-3069
-5841

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 91 col0 FROM tab1 AS cor0
----
91

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7973
SELECT + + CAST( NULL AS SIGNED ) + + 92 * + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7973
SELECT + + CAST ( NULL AS INTEGER ) + + 92 * + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 40 * + col2 + col0 FROM tab1 AS cor0
----
2163
2344
3920

query I rowsort
SELECT ALL - ( + 22 ) + + cor0.col0 AS col2 FROM tab2 AS cor0
----
-15
56
57

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7976
SELECT DISTINCT - col1 * - col1 + - col1 - + CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7976
SELECT DISTINCT - col1 * - col1 + - col1 - + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT - ( - ( + col1 ) ) FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT ALL + ( - 10 ) * - cor0.col2 AS col1 FROM tab2 cor0
----
260
270
380

query I rowsort
SELECT ( 34 ) FROM tab1 AS cor0
----
34
34
34

query I rowsort
SELECT ALL col1 * 89 AS col2 FROM tab1 AS cor0
----
1157
2314
890

query I rowsort
SELECT DISTINCT + + cor0.col0 * ( col1 ) + col0 FROM tab1 AS cor0
----
1120
704
81

query I rowsort
SELECT + 49 + cor2.col0 FROM tab0, tab1 AS cor0, tab1 cor1, tab0 AS cor2
----
81 values hashing to 17a4730d81fda2c3d517392dceffdf5d

query I rowsort
SELECT - 74 + + col0 * - ( 6 ) AS col0 FROM tab1 AS cor0
----
-458
-554
-92

query I rowsort
SELECT ALL + col0 + col2 * col0 AS col1 FROM tab1 AS cor0
----
165
3712
7760

query I rowsort
SELECT ALL - col1 + col2 * col1 * + 13 FROM tab2 AS cor0
----
10850
19883
8381

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 15 col2 FROM tab1, tab2 cor0
----
9 values hashing to 1172c9a62bdad7db0def9205c06ee1f2

query I rowsort
SELECT ALL ( 51 * col2 + col2 * col1 ) FROM tab2
----
2214
2584
2860

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7988
SELECT + CAST( + ( col0 ) AS SIGNED ) FROM tab1
----
3
64
80

skipif mysql # not compatible
query I rowsort label-7988
SELECT + CAST ( + ( col0 ) AS INTEGER ) FROM tab1
----
3
64
80

query I rowsort
SELECT - col0 * + col0 + col2 FROM tab1 AS cor0
----
-4039
-6304
45

query I rowsort
SELECT ALL + + col0 * - 47 FROM tab1 cor0
----
-141
-3008
-3760

query I rowsort
SELECT - col2 * + 6 + - ( - cor0.col1 ) + + ( + col2 ) * - col0 FROM tab2 cor0
----
-2125
-320
-3213

query I rowsort
SELECT DISTINCT + cor0.col1 AS col0 FROM tab2, tab1 cor0
----
10
13
26

query I rowsort
SELECT ALL - col2 * ( 10 ) * - col1 FROM tab0 AS cor0
----
28380
74620
970

query I rowsort
SELECT DISTINCT 83 + col0 FROM tab2
----
161
162
90

query I rowsort
SELECT - col0 - - 15 AS col0 FROM tab0
----
-20
-74
-9

query I rowsort
SELECT + 70 AS col1 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to c76157a7a7ec18de56823b2058b49f32

query I rowsort
SELECT - 19 * - 95 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 5c5d7858dc7557cc9bfe5ea24ec317d4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 57 col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 61da70c624ad60604a668f7f8f29392a

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * col0 + 94 * col0 col1 FROM tab2 AS cor0
----
2730
441
6083

query I rowsort
SELECT ALL - col0 * col0 * col2 + + col0 FROM tab2 AS cor0
----
-1316
-158106
-237079

query I rowsort
SELECT + + col1 * 49 * - col1 FROM tab1 AS cor0
----
-33124
-4900
-8281

query I rowsort
SELECT ALL + + col2 + cor0.col2 * col1 * col2 AS col0 FROM tab1 AS cor0
----
119904
32547
75870

query I rowsort
SELECT ALL + 0 AS col1 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT + + cor0.col2 + + ( col2 ) * ( col1 ) AS col2 FROM tab0 AS cor0
----
2871
7544
98

query I rowsort
SELECT ALL tab0.col1 FROM tab0, tab2 cor0, tab2 AS cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd

query I rowsort
SELECT col1 + cor0.col2 * cor0.col0 AS col1 FROM tab2 cor0
----
2087
220
3019

query I rowsort
SELECT ALL - - 55 + col2 AS col0 FROM tab2 AS cor0
----
81
82
93

query I rowsort
SELECT ALL + 68 + + 35 * - col2 * + col1 + col0 * col0 AS col0 FROM tab2 AS cor0
----
-16301
-29178
-47538

query I rowsort
SELECT + col0 * - 11 AS col2 FROM tab1
----
-33
-704
-880

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + col1 + - col0 col0 FROM tab0
----
2040
3360
8010

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 82 col1 FROM tab0, tab2 AS cor0
----
9 values hashing to f800b0aad28b82b2deb67f7045c9a45c

query I rowsort
SELECT + col1 * - col1 + + cor0.col1 * 76 * + col0 AS col0 FROM tab0 AS cor0
----
149468
248611
607243

query I rowsort
SELECT - col0 * col0 + 22 FROM tab1 AS cor0
----
-4074
-6378
13

query I rowsort
SELECT ALL col2 + - col2 * col1 * - col0 FROM tab2
----
119678
51072
5886

query I rowsort
SELECT - col0 * col0 * ( + cor0.col1 + + col2 ) AS col0 FROM tab0 AS cor0
----
-120050
-1370333
-68544

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 + col0 col0 FROM tab1 cor0
----
-16
-51
7

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8017
SELECT DISTINCT - col1 * CAST( NULL AS DECIMAL ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8017
SELECT DISTINCT - col1 * CAST ( NULL AS REAL ) AS col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - - cor0.col0 * cor0.col0 * col0 - + col2 AS col0 FROM tab1 AS cor0
----
-27
262087
511904

skipif mysql # not compatible
query I rowsort
SELECT col2 * CAST ( - col2 AS REAL ) FROM tab2 AS cor0
----
-1444
-676
-729

query I rowsort
SELECT DISTINCT col0 - + col1 AS col2 FROM tab2 AS cor0
----
-24
19
62

query I rowsort
SELECT DISTINCT - - col0 * col0 + cor0.col2 AS col2 FROM tab1 AS cor0
----
4153
63
6496

query I rowsort
SELECT - col2 * + ( col0 * col1 ) AS col0 FROM tab2 AS cor0
----
-119652
-51034
-5859

query I rowsort
SELECT + col2 * - ( - col2 * col2 ) + col2 * col1 FROM tab0 AS cor0
----
38775
558830
98

query I rowsort
SELECT DISTINCT - col2 + 9 AS col1 FROM tab2
----
-17
-18
-29

query I rowsort
SELECT - col0 + + cor0.col1 * col1 * col2 AS col1 FROM tab1 AS cor0
----
16144
36501
5636

query I rowsort
SELECT ALL col0 * + col2 + col1 * + col2 FROM tab0
----
132
14760
3630

query I rowsort
SELECT + ( - col0 ) * col0 + col0 + - 61 * + col2 AS col1 FROM tab1 AS cor0
----
-12176
-3300
-7509

query I rowsort
SELECT col0 + - ( col1 ) * col0 - - col2 AS col2 FROM tab0 cor0
----
-2007
-3359
-7928

query I rowsort
SELECT + 55 + col1 + + col0 FROM tab1 AS cor0
----
129
148
84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + + 89 col1 FROM tab0
----
113
124
178

query I rowsort
SELECT + tab2.col0 * + 77 FROM tab2, tab2 AS cor0, tab2 cor1
----
27 values hashing to 40f6f27f1de51a2ed0ae4dc0c8d1786d

query I rowsort
SELECT ALL - tab0.col0 FROM tab2, tab2 AS cor0 CROSS JOIN tab0
----
27 values hashing to c3ebf1695ca74567bdc173dbe15186a8

query I rowsort
SELECT ( + 7 ) * - cor0.col0 AS col1 FROM tab0 cor0
----
-168
-245
-623

query I rowsort
SELECT ALL + col0 * ( + col2 ) AS col1 FROM tab2
----
189
2028
3002

query I rowsort
SELECT 80 + - 10 FROM tab0 AS cor0
----
70
70
70

onlyif mysql # use DIV operator for integer division
query I rowsort label-8036
SELECT ALL + col0 + col1 DIV col2 AS col2 FROM tab1 AS cor0
----
3
64
80

skipif mysql # not compatible
query I rowsort label-8036
SELECT ALL + col0 + col1 / col2 AS col2 FROM tab1 AS cor0
----
3
64
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * col2 * + 16 col0 FROM tab2 cor0
----
10336
13392
24544

query I rowsort
SELECT DISTINCT + + col1 - 77 * + 24 FROM tab0 cor0
----
-1751
-1757
-1762

query I rowsort
SELECT + - col2 * ( - col0 ) FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT + - col0 + col1 * cor0.col2 AS col2 FROM tab2 AS cor0
----
1456
567
830

query I rowsort
SELECT DISTINCT col1 + - ( cor0.col0 ) AS col1 FROM tab1 AS cor0
----
-54
-67
23

query I rowsort
SELECT DISTINCT - + col0 + + col1 + col2 FROM tab1 AS cor0
----
29
3
77

query I rowsort
SELECT - tab2.col1 * - col1 * - 87 + + col1 * col0 AS col1 FROM tab2
----
-23800
-298245
-83390

query I rowsort
SELECT DISTINCT col1 * 58 - + 64 FROM tab1
----
1444
516
690

query I rowsort
SELECT DISTINCT - ( col2 ) * col2 AS col2 FROM tab2 AS cor0
----
-1444
-676
-729

query I rowsort
SELECT DISTINCT + + col2 + 46 + - col1 AS col0 FROM tab2 AS cor0
----
13
42
67

query I rowsort
SELECT - - ( - col1 ) + col0 * - ( col0 ) AS col0 FROM tab1 cor0
----
-35
-4106
-6413

query I rowsort
SELECT + ( + 50 ) FROM tab1, tab2 AS cor0
----
9 values hashing to dea2d1b74e0cdf67806af8c417324f52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + col0 + - col0 col0 FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT ALL + 60 * col2 AS col2 FROM tab2 cor0
----
1560
1620
2280

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 43 col1 FROM tab1
----
43
43
43

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * - col1 col1 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT DISTINCT - + 93 AS col0 FROM tab2 AS cor0
----
-93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + + col1 col2 FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT ALL - + 40 * - col0 AS col1 FROM tab1 cor0
----
120
2560
3200

query I rowsort
SELECT ALL + col2 + - col2 * col2 AS col1 FROM tab2
----
-1406
-650
-702

query I rowsort
SELECT 18 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to b95bafa733666df39c5d3f94760d010f

query I rowsort
SELECT ALL cor0.col2 * ( + 68 ) AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 35fbb2e8c6558f2e5c84b68c39d91cad

query I rowsort
SELECT ALL - ( - cor0.col0 ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63

query I rowsort
SELECT - + 90 + + col0 FROM tab0 AS cor0
----
-1
-55
-66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * cor0.col0 col1 FROM tab2 AS cor0
----
189
2028
3002

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 33 + col2 col1 FROM tab2 AS cor0
----
59
60
71

query I rowsort
SELECT ( cor0.col0 ) + - col0 FROM tab0 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( cor0.col1 ) col2 FROM tab2 AS cor0
----
-17
-31
-59

query I rowsort
SELECT ALL 16 FROM tab0, tab1 cor0, tab1 AS cor1
----
27 values hashing to ee5bde9f68ee828e8cd86b0d590090bc

query I rowsort
SELECT - 92 * col1 + - col2 AS col2 FROM tab1
----
-1292
-2446
-977

query I rowsort
SELECT 75 + col1 FROM tab1
----
101
85
88

query I rowsort
SELECT DISTINCT + 22 * - col2 FROM tab1
----
-1188
-1254
-2112

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( tab0.col1 ) * col2 - - ( col0 ) * - col1 col0 FROM tab0
----
-3298
-637
774

query I rowsort
SELECT + - col2 + col1 * ( col2 ) FROM tab1 AS cor0
----
1152
1350
513

query I rowsort
SELECT DISTINCT - cor0.col0 + col2 + 71 AS col2 FROM tab1 AS cor0
----
122
64
87

query I rowsort
SELECT col1 * tab1.col1 * + col1 FROM tab1
----
1000
17576
2197

query I rowsort
SELECT DISTINCT cor0.col2 * 34 FROM tab2 AS cor0
----
1292
884
918

onlyif mysql # use DIV operator for integer division
query I rowsort label-8074
SELECT + col2 DIV - 70 AS col2 FROM tab1 cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-8074
SELECT + col2 / - 70 AS col2 FROM tab1 cor0
----
-1
0
0

query I rowsort
SELECT ALL + col0 + - 39 FROM tab0 AS cor0
----
-15
-4
50

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + col1 col2 FROM tab2 AS cor0
----
137
38
96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8077
SELECT DISTINCT - cor0.col1 + - CAST( + 83 AS SIGNED ) AS col2 FROM tab0 cor0
----
-169
-174
-180

skipif mysql # not compatible
query I rowsort label-8077
SELECT DISTINCT - cor0.col1 + - CAST ( + 83 AS INTEGER ) AS col2 FROM tab0 cor0
----
-169
-174
-180

query I rowsort
SELECT DISTINCT - col2 * + col1 + col1 AS col2 FROM tab2 AS cor0
----
-1475
-629
-806

query I rowsort
SELECT + cor0.col0 * + col1 * + col1 FROM tab0 AS cor0
----
177504
329315
737009

query I rowsort
SELECT + + col0 * 79 * col0 AS col1 FROM tab1 AS cor0
----
323584
505600
711

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-8082
SELECT DISTINCT - + col1 DIV 52 + col2 * col1 AS col2 FROM tab1 AS cor0
----
1248
1404
570

skipif mysql # not compatible
query I rowsort label-8082
SELECT DISTINCT - + col1 / 52 + col2 * col1 AS col2 FROM tab1 AS cor0
----
1248
1404
570

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * cor0.col0 * col1 col1 FROM tab1 AS cor0
----
13520
2028
6400

query I rowsort
SELECT col0 * + 41 AS col2 FROM tab1 cor0
----
123
2624
3280

query I rowsort
SELECT cor0.col1 + col2 * - 35 FROM tab2 AS cor0
----
-1313
-851
-914

query I rowsort
SELECT + cor0.col2 + + col2 * + col1 FROM tab1 AS cor0
----
1344
1458
627

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8087
SELECT DISTINCT - ( + col0 ) * col1 + - CAST( NULL AS DECIMAL ) * - col2 * col2 AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8087
SELECT DISTINCT - ( + col0 ) * col1 + - CAST ( NULL AS REAL ) * - col2 * col2 AS col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL + 85 * col1 AS col1 FROM tab0 AS cor0
----
7310
7735
8245

query I rowsort
SELECT + + col1 - col2 AS col2 FROM tab2 cor0
----
-21
33
4

query I rowsort
SELECT ALL cor0.col1 + + 75 AS col1 FROM tab0 AS cor0
----
161
166
172

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 51 + + 79 * - col0 * + cor0.col2 col0 FROM tab0 cor0
----
-2816
-576593
-62619

query I rowsort
SELECT DISTINCT - - col0 - + ( + cor0.col1 ) * cor0.col0 * - col0 AS col2 FROM tab0 cor0
----
118860
49560
720900

onlyif mysql # use DIV operator for integer division
query I rowsort label-8093
SELECT - + 85 DIV 42 + col2 AS col0 FROM tab2 AS cor0
----
24
25
36

skipif mysql # not compatible
query I rowsort label-8093
SELECT - + 85 / 42 + col2 AS col0 FROM tab2 AS cor0
----
24
25
36

query I rowsort
SELECT + col0 * - col1 - + col1 AS col0 FROM tab1 AS cor0
----
-104
-1053
-650

query I rowsort
SELECT DISTINCT - - ( col2 ) * col2 + col1 AS col1 FROM tab0 AS cor0
----
1175
6815
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * col1 * col0 col0 FROM tab2 AS cor0
----
-22831
-271518
-6727

query I rowsort
SELECT - col2 + + ( + cor0.col1 + ( - 17 ) * col2 ) FROM tab0 cor0
----
-1385
-508
79

query I rowsort
SELECT DISTINCT - cor0.col2 * col2 + - col0 * - col1 FROM tab1 AS cor0
----
-2609
-2838
-8176

onlyif mysql # use DIV operator for integer division
query I rowsort label-8099
SELECT - ( col0 ) DIV ( 81 ) + col0 AS col1 FROM tab1 AS cor0
----
3
64
80

skipif mysql # not compatible
query I rowsort label-8099
SELECT - ( col0 ) / ( 81 ) + col0 AS col1 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT 32 + - col2 * + col1 FROM tab0 AS cor0
----
-2806
-65
-7430

query I rowsort
SELECT ALL + col1 * col0 + + ( - col2 ) FROM tab0 AS cor0
----
2031
3394
8017

query I rowsort
SELECT ALL - - cor0.col2 * + col1 FROM tab1 cor0
----
1248
1404
570

onlyif mysql # use DIV operator for integer division
query I rowsort label-8103
SELECT ALL - col2 + - col2 DIV 75 + - col1 AS col2 FROM tab0 cor0
----
-119
-174
-98

skipif mysql # not compatible
query I rowsort label-8103
SELECT ALL - col2 + - col2 / 75 + - col1 AS col2 FROM tab0 cor0
----
-119
-174
-98

query I rowsort
SELECT + 22 * col2 + col2 * col2 FROM tab1 AS cor0
----
11328
4104
4503

query I rowsort
SELECT + cor0.col2 AS col1 FROM tab2, tab2 cor0
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3

query I rowsort
SELECT - ( - 13 ) FROM tab1 AS cor0
----
13
13
13

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8107
SELECT CAST( NULL AS SIGNED ) + + 90 * - col0 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8107
SELECT CAST ( NULL AS INTEGER ) + + 90 * - col0 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 91 + col0 FROM tab1 AS cor0
----
155
171
94

onlyif mysql # use DIV operator for integer division
query I rowsort label-8109
SELECT + col2 DIV + col0 + col2 FROM tab2
----
26
30
38

skipif mysql # not compatible
query I rowsort label-8109
SELECT + col2 / + col0 + col2 FROM tab2
----
26
30
38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 41 + - 29 * col1 * + 12 col1 FROM tab0 AS cor0
----
-29887
-31627
-33715

onlyif mysql # use DIV operator for integer division
query I rowsort label-8111
SELECT col2 DIV - ( - 79 ) + + col1 col0 FROM tab1
----
10
14
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8111
SELECT col2 / - ( - 79 ) + + col1 col0 FROM tab1
----
10
14
26

query I rowsort
SELECT ALL + ( - 55 ) * + col1 * + col0 FROM tab2 AS cor0
----
-11935
-253110
-73865

query I rowsort
SELECT DISTINCT + + col1 + 83 + col0 FROM tab2 AS cor0
----
121
179
220

query I rowsort
SELECT - col1 * + 58 FROM tab2 AS cor0
----
-1798
-3422
-986

query I rowsort
SELECT DISTINCT + col0 * - col2 + col0 AS col2 FROM tab2
----
-182
-1950
-2923

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8116
SELECT cor0.col0 * ( col0 ) + + col2 - + CAST( ( + col1 ) AS SIGNED ) * - col0 FROM tab2 AS cor0
----
10712
293
7622

skipif mysql # not compatible
query I rowsort label-8116
SELECT cor0.col0 * ( col0 ) + + col2 - + CAST ( ( + col1 ) AS INTEGER ) * - col0 FROM tab2 AS cor0
----
10712
293
7622

onlyif mysql # use DIV operator for integer division
query I rowsort label-8117
SELECT + col1 DIV ( - col0 ) + col0 DIV - col1 AS col2 FROM tab1 AS cor0
----
-6
-6
-8

skipif mysql # not compatible
query I rowsort label-8117
SELECT + col1 / ( - col0 ) + col0 / - col1 AS col2 FROM tab1 AS cor0
----
-6
-6
-8

query I rowsort
SELECT 49 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cb40783c0fff72e8802cdf0682e7cb55

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8119
SELECT CAST( NULL AS SIGNED ) FROM tab2, tab1 AS cor0, tab0 cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-8119
SELECT CAST ( NULL AS INTEGER ) FROM tab2, tab1 AS cor0, tab0 cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT DISTINCT - - 11 FROM tab1 AS cor0
----
11

onlyif mysql # use DIV operator for integer division
query I rowsort label-8121
SELECT - col2 DIV 81 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8121
SELECT - col2 / 81 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + - col1 + ( col0 ) FROM tab0 cor0
----
-2
-62

query I rowsort
SELECT col0 * 51 AS col1 FROM tab1 AS cor0
----
153
3264
4080

query I rowsort
SELECT tab2.col0 * - 9 FROM tab2
----
-63
-702
-711

query I rowsort
SELECT ALL col2 + + col0 AS col1 FROM tab1 AS cor0
----
121
176
57

query I rowsort
SELECT + col0 + 85 FROM tab1
----
149
165
88

query I rowsort
SELECT cor0.col2 + ( 2 ) AS col0 FROM tab0 AS cor0
----
3
35
84

query I rowsort
SELECT - cor0.col1 * 51 + 82 AS col0 FROM tab1 AS cor0
----
-1244
-428
-581

query I rowsort
SELECT - - col0 + 3 AS col0 FROM tab0 AS cor0
----
27
38
92

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8130
SELECT CAST( NULL AS SIGNED ) + - tab2.col0 FROM tab2, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-8130
SELECT CAST ( NULL AS INTEGER ) + - tab2.col0 FROM tab2, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT + - col1 + - col2 * col0 * - 23 FROM tab1 AS cor0
----
176627
3700
83894

query I rowsort
SELECT + col1 * - col2 + - cor0.col0 * col1 FROM tab2 AS cor0
----
-1054
-1989
-6136

query I rowsort
SELECT ( - ( col0 ) ) + col1 * col0 FROM tab2 AS cor0
----
1264
210
4524

query I rowsort
SELECT DISTINCT 64 + col0 * + col0 * - col2 AS col2 FROM tab1 AS cor0
----
-233408
-422
-614336

onlyif mysql # use DIV operator for integer division
query I rowsort label-8135
SELECT - + cor0.col2 * - col0 + - col2 * col0 DIV - col0 col2 FROM tab2 AS cor0
----
2054
216
3040

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8135
SELECT - + cor0.col2 * - col0 + - col2 * col0 / - col0 col2 FROM tab2 AS cor0
----
2054
216
3040

query I rowsort
SELECT ALL + 72 * - cor0.col2 - col1 AS col0 FROM tab2 cor0
----
-1931
-1975
-2753

onlyif mysql # use DIV operator for integer division
query I rowsort label-8137
SELECT ALL - 21 DIV + col0 + - col2 * + col2 AS col1 FROM tab0 cor0
----
-1
-1089
-6724

skipif mysql # not compatible
query I rowsort label-8137
SELECT ALL - 21 / + col0 + - col2 * + col2 AS col1 FROM tab0 cor0
----
-1
-1089
-6724

query I rowsort
SELECT DISTINCT + 10 + - col2 FROM tab0 AS cor0
----
-23
-72
9

query I rowsort
SELECT col0 + col1 * - 68 FROM tab2
----
-1077
-2101
-3934

query I rowsort
SELECT + col1 + + col1 * + 24 FROM tab0
----
2150
2275
2425

query I rowsort
SELECT - 84 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 02f1688b8610806ca28739b1735f6ae4

query I rowsort
SELECT - + col1 * col0 + cor0.col2 * col2 FROM tab2 AS cor0
----
-3926
101
512

onlyif mysql # use DIV operator for integer division
query I rowsort label-8143
SELECT ALL + col1 DIV + CAST( col1 AS SIGNED ) FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-8143
SELECT ALL + col1 / + CAST ( col1 AS INTEGER ) FROM tab1 AS cor0
----
1
1
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-8144
SELECT DISTINCT - col0 DIV - 31 + col1 FROM tab1 AS cor0
----
12
15
26

skipif mysql # not compatible
query I rowsort label-8144
SELECT DISTINCT - col0 / - 31 + col1 FROM tab1 AS cor0
----
12
15
26

query I rowsort
SELECT DISTINCT + - col2 * - col1 + 19 * + col1 AS col0 FROM tab0 cor0
----
1940
4472
9191

query I rowsort
SELECT cor0.col1 + - 93 AS col1 FROM tab1 cor0
----
-67
-80
-83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 * + col0 + col2 col0 FROM tab0 AS cor0
----
36
7380
825

query I rowsort
SELECT DISTINCT - col1 + + 69 FROM tab1 AS cor0
----
43
56
59

onlyif mysql # use DIV operator for integer division
query I rowsort label-8149
SELECT - col2 - ( + cor0.col0 ) DIV cor0.col0 AS col2 FROM tab1 AS cor0
----
-55
-58
-97

skipif mysql # not compatible
query I rowsort label-8149
SELECT - col2 - ( + cor0.col0 ) / cor0.col0 AS col2 FROM tab1 AS cor0
----
-55
-58
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * cor0.col1 + col0 col1 FROM tab1 AS cor0
----
1120
704
81

query I rowsort
SELECT DISTINCT ( + 13 ) AS col1 FROM tab0
----
13

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8152
SELECT DISTINCT - CAST( + 51 AS SIGNED ) * cor0.col1 AS col1 FROM tab2 AS cor0
----
-1581
-3009
-867

skipif mysql # not compatible
query I rowsort label-8152
SELECT DISTINCT - CAST ( + 51 AS INTEGER ) * cor0.col1 AS col1 FROM tab2 AS cor0
----
-1581
-3009
-867

query I rowsort
SELECT ALL + 76 * col0 FROM tab0 AS cor0
----
1824
2660
6764

query I rowsort
SELECT - ( 6 ) * + col2 * + col1 FROM tab2 AS cor0
----
-3876
-5022
-9204

query I rowsort
SELECT ALL + 78 + col2 AS col2 FROM tab1 AS cor0
----
132
135
174

query I rowsort
SELECT DISTINCT + col0 + col1 + col2 FROM tab1 AS cor0
----
131
189
83

query I rowsort
SELECT ALL + - cor0.col1 + col0 * col1 FROM tab2 AS cor0
----
1326
186
4543

onlyif mysql # use DIV operator for integer division
query I rowsort label-8158
SELECT DISTINCT - - col0 + - col0 DIV + cor0.col1 FROM tab2 AS cor0
----
7
75
77

skipif mysql # not compatible
query I rowsort label-8158
SELECT DISTINCT - - col0 + - col0 / + cor0.col1 FROM tab2 AS cor0
----
7
75
77

query I rowsort
SELECT DISTINCT 11 * + col2 * col0 + cor0.col0 * col2 FROM tab0 cor0
----
420
87576
9504

onlyif mysql # use DIV operator for integer division
query I rowsort label-8160
SELECT ALL col2 - + col2 DIV - col1 FROM tab0 cor0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-8160
SELECT ALL col2 - + col2 / - col1 FROM tab0 cor0
----
1
33
82

query I rowsort
SELECT - + 17 AS col1 FROM tab2 cor0
----
-17
-17
-17

query I rowsort
SELECT ALL - col2 * col0 - + col1 AS col0 FROM tab2 AS cor0
----
-2087
-220
-3019

query I rowsort
SELECT DISTINCT ( + col2 ) + col0 AS col1 FROM tab0 AS cor0
----
171
36
57

query I rowsort
SELECT DISTINCT col0 AS col2 FROM tab2 AS cor0 WHERE ( NOT NULL NOT IN ( col0 + col1 ) ) AND NOT ( NULL ) <= NULL OR col1 NOT BETWEEN - col2 * col2 + - col0 * + col1 AND NULL
----

query I rowsort
SELECT ALL + + cor0.col2 + cor0.col2 AS col0 FROM tab0 AS cor0
----
164
2
66

query I rowsort
SELECT + - 71 * col1 AS col0 FROM tab2 cor0
----
-1207
-2201
-4189

query I rowsort
SELECT DISTINCT - - col1 * cor0.col1 + cor0.col0 * + col1 AS col2 FROM tab2 AS cor0
----
1178
1632
8083

query I rowsort
SELECT DISTINCT col1 + cor0.col1 * + col1 AS col2 FROM tab1 cor0
----
110
182
702

query I rowsort
SELECT ALL + 27 - + col0 FROM tab0 cor0
----
-62
-8
3

query I rowsort
SELECT - col1 + col2 * - col0 AS col1 FROM tab2 AS cor0
----
-2087
-220
-3019

query I rowsort
SELECT + 73 AS col0 FROM tab0
----
73
73
73

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 26 col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 47d0574274146de273829785364ada39

query I rowsort
SELECT ALL + tab2.col0 * 52 * col1 FROM tab2
----
11284
239304
69836

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8174
SELECT DISTINCT cor0.col2 + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8174
SELECT DISTINCT cor0.col2 + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT - cor0.col0 * col1 + 81 FROM tab0 AS cor0
----
-1983
-3314
-8018

query I rowsort
SELECT - col2 + - cor0.col2 * col1 AS col0 FROM tab0 AS cor0
----
-2871
-7544
-98

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8177
SELECT - col1 / + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8177
SELECT - col1 / + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col0 * - col0 col2 FROM tab0 cor0
----
-1225
-576
-7921

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 70 col1 FROM tab0, tab2 cor0
----
9 values hashing to 9758da65ae4711e3e8c8def2fe026911

onlyif mysql # use DIV operator for integer division
query I rowsort label-8180
SELECT DISTINCT + cor0.col1 - col2 DIV + cor0.col2 AS col1 FROM tab1 AS cor0
----
12
25
9

skipif mysql # not compatible
query I rowsort label-8180
SELECT DISTINCT + cor0.col1 - col2 / + cor0.col2 AS col1 FROM tab1 AS cor0
----
12
25
9

query I rowsort
SELECT cor1.col1 FROM tab1 cor0 CROSS JOIN tab1, tab2 AS cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d

query I rowsort
SELECT + col1 * ( + col1 ) * - col0 AS col2 FROM tab2 AS cor0
----
-22831
-271518
-6727

query I rowsort
SELECT DISTINCT - tab2.col2 + col1 AS col1 FROM tab2
----
-21
33
4

query I rowsort
SELECT col2 * col0 * + col0 + - col0 AS col1 FROM tab0 AS cor0
----
1190
18984
649433

query I rowsort
SELECT col1 * + col2 - tab1.col1 AS col0 FROM tab1
----
1235
1378
560

query I rowsort
SELECT DISTINCT col1 * + col1 + col1 AS col2 FROM tab0
----
7482
8372
9506

query I rowsort
SELECT + col0 * cor0.col2 + cor0.col0 * col0 FROM tab1 AS cor0
----
14080
171
7744

query I rowsort
SELECT ALL - col1 * col1 * col2 FROM tab1 AS cor0
----
-16224
-36504
-5700

query I rowsort
SELECT - cor0.col0 * cor0.col1 + col1 FROM tab2 AS cor0
----
-1326
-186
-4543

query I rowsort
SELECT - col2 + + col1 * col2 FROM tab1 AS cor0
----
1152
1350
513

query I rowsort
SELECT ALL + col2 + - col1 + col0 * + col1 FROM tab1
----
106
1123
687

query I rowsort
SELECT ALL col2 * - tab2.col1 + + col0 FROM tab2
----
-1456
-567
-830

query I rowsort
SELECT DISTINCT + col0 + + col1 + + tab1.col0 FROM tab1
----
138
173
32

query I rowsort
SELECT - col1 * col1 + col2 * col1 * col1 FROM tab1
----
16055
35828
5600

query I rowsort
SELECT ALL col1 * col1 * + col2 AS col0 FROM tab0
----
244068
679042
9409

query I rowsort
SELECT DISTINCT - col1 * + col0 * col2 AS col2 FROM tab0 AS cor0
----
-3395
-664118
-68112

query I rowsort
SELECT - col2 + - cor0.col0 * - col2 FROM tab2 AS cor0
----
162
2002
2964

query I rowsort
SELECT ALL - - col0 + col2 AS col1 FROM tab1 AS cor0
----
121
176
57

query I rowsort
SELECT col2 + + col2 * + col1 AS col1 FROM tab1 AS cor0
----
1344
1458
627

query I rowsort
SELECT ALL - col1 * col2 FROM tab1 WHERE ( NULL ) NOT IN ( - col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col0 * - col0 * col0 + col1 * col1 col0 FROM tab1 AS cor0
----
-262044
-511831
649

onlyif mysql # use DIV operator for integer division
query I rowsort label-8202
SELECT DISTINCT + col0 + + col0 DIV - col2 AS col2 FROM tab0 AS cor0
----
0
24
88

skipif mysql # not compatible
query I rowsort label-8202
SELECT DISTINCT + col0 + + col0 / - col2 AS col2 FROM tab0 AS cor0
----
0
24
88

query I rowsort
SELECT DISTINCT - cor0.col2 * col1 - + col2 FROM tab2 AS cor0
----
-1560
-684
-864

query I rowsort
SELECT + - col1 * - col1 AS col0 FROM tab1 AS cor0
----
100
169
676

onlyif mysql # use DIV operator for integer division
query I rowsort label-8205
SELECT - col0 + col1 DIV + col0 AS col1 FROM tab2 AS cor0
----
-3
-78
-79

skipif mysql # not compatible
query I rowsort label-8205
SELECT - col0 + col1 / + col0 AS col1 FROM tab2 AS cor0
----
-3
-78
-79

query I rowsort
SELECT ALL - cor0.col2 * + col0 + cor0.col0 AS col0 FROM tab2 AS cor0
----
-182
-1950
-2923

query I rowsort
SELECT - ( + col0 ) + cor0.col2 FROM tab0 cor0
----
-34
-7
9

query I rowsort
SELECT ALL cor0.col1 + + col0 + col2 FROM tab2 AS cor0
----
134
163
65

query I rowsort
SELECT DISTINCT - ( col2 ) + col0 AS col0 FROM tab1 cor0
----
-16
-51
7

query I rowsort
SELECT + 83 + cor0.col2 * - col1 FROM tab2 AS cor0
----
-1451
-563
-754

query I rowsort
SELECT ALL - + cor0.col0 + col0 * col2 AS col1 FROM tab0 AS cor0
----
0
7209
768

query I rowsort
SELECT ALL tab1.col2 * + col0 + col1 FROM tab1
----
188
3658
7693

onlyif mysql # use DIV operator for integer division
query I rowsort label-8213
SELECT ALL - col2 DIV cor0.col1 AS col0 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8213
SELECT ALL - col2 / cor0.col1 AS col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - col1 * - col2 + + col1 FROM tab1 AS cor0
----
1261
1430
580

onlyif mysql # use DIV operator for integer division
query I rowsort label-8215
SELECT ALL + + col2 DIV col0 - + col1 * col1 FROM tab0 cor0
----
-7395
-8281
-9409

skipif mysql # not compatible
query I rowsort label-8215
SELECT ALL + + col2 / col0 - + col1 * col1 FROM tab0 cor0
----
-7395
-8281
-9409

query I rowsort
SELECT + col1 * col2 - ( col0 ) AS col1 FROM tab2 AS cor0
----
1456
567
830

query I rowsort
SELECT - - 22 - - cor0.col2 FROM tab1 AS cor0
----
118
76
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + cor0.col1 col1 FROM tab0 AS cor0
----
110
132
180

query I rowsort
SELECT col1 * 52 AS col0 FROM tab2
----
1612
3068
884

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8220
SELECT 1 - - cor0.col1 * CAST( NULL AS SIGNED ) * - col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8220
SELECT 1 - - cor0.col1 * CAST ( NULL AS INTEGER ) * - col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + cor0.col2 + col0 + - 82 FROM tab1 AS cor0
----
-25
39
94

query I rowsort
SELECT + + col0 * + 95 + - col0 AS col2 FROM tab2 AS cor0
----
658
7332
7426

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab0 AS cor0, tab2 AS cor1, tab2, tab0 cor2
----
3645 values hashing to 52c9380a39df7a744b9f2f2c5bf55dd5

query I rowsort
SELECT 62 AS col1 FROM tab1, tab0 cor0, tab0 AS cor1
----
27 values hashing to 4911b1417a3797d23dd8f38b6ed05c1b

query I rowsort
SELECT + + col0 * 4 FROM tab0 cor0
----
140
356
96

query I rowsort
SELECT - + col0 + col2 * cor0.col2 AS col0 FROM tab1 AS cor0
----
2913
3185
9136

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8227
SELECT ALL - tab1.col2 * - CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8227
SELECT ALL - tab1.col2 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8228
SELECT ALL - col2 * - CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8228
SELECT ALL - col2 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col1 + 50 * tab0.col1 AS col2 FROM tab0
----
4214
4459
4753

query I rowsort
SELECT ALL 11 * col1 + + col0 * col0 FROM tab0
----
1522
2292
8922

query I rowsort
SELECT DISTINCT + - ( - col2 ) AS col1 FROM tab1 cor0
----
54
57
96

query I rowsort
SELECT ( ( - tab2.col2 ) + col0 ) * - col0 FROM tab2
----
-3239
-4056
140

query I rowsort
SELECT + tab2.col1 * 55 * + col1 AS col2 FROM tab2
----
15895
191455
52855

query I rowsort
SELECT - + col2 * col0 - col0 * - cor0.col2 FROM tab2 cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-8235
SELECT + col0 DIV cor0.col2 AS col0 FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-8235
SELECT + col0 / cor0.col2 AS col0 FROM tab1 AS cor0
----
0
0
1

query I rowsort
SELECT 21 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to c5272facdaaa11f884c8cc0d9d4f41c7

onlyif mysql # use DIV operator for integer division
query I rowsort label-8237
SELECT - col1 * col1 + 44 + tab1.col1 DIV col0 FROM tab1
----
-125
-56
-624

skipif mysql # not compatible
query I rowsort label-8237
SELECT - col1 * col1 + 44 + tab1.col1 / col0 FROM tab1
----
-125
-56
-624

query I rowsort
SELECT DISTINCT col1 * col1 + ( col2 ) - col0 * - col2 * col0 FROM tab1
----
1216
233629
614665

query I rowsort
SELECT 50 + tab2.col1 * - col0 AS col0 FROM tab2
----
-1293
-167
-4552

query I rowsort
SELECT - 86 + col0 + + ( col2 ) AS col0 FROM tab2
----
-52
18
31

query I rowsort
SELECT ALL col0 * + col0 - - ( + ( tab1.col1 ) + col0 ) * tab1.col2 AS col1 FROM tab1
----
15328
1575
8314

onlyif mysql # use DIV operator for integer division
query I rowsort label-8242
SELECT + col1 DIV - cor0.col1 AS col0 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-8242
SELECT + col1 / - cor0.col1 AS col0 FROM tab1 AS cor0
----
-1
-1
-1

query I rowsort
SELECT - 81 - 72 FROM tab0, tab2 AS cor0
----
9 values hashing to 35b6e02dc32d66565bfffe0e1c4416ab

query I rowsort
SELECT DISTINCT + 94 AS col2 FROM tab0, tab0 AS cor0
----
94

onlyif mysql # use DIV operator for integer division
query I rowsort label-8245
SELECT - + col1 DIV col0 + - col1 * - col2 FROM tab0 AS cor0
----
2835
7461
95

skipif mysql # not compatible
query I rowsort label-8245
SELECT - + col1 / col0 + - col1 * - col2 FROM tab0 AS cor0
----
2835
7461
95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 * 19 + + 51 col2 FROM tab2 cor0
----
545
564
773

query I rowsort
SELECT 14 + 76 FROM tab1, tab1 cor0
----
9 values hashing to 96f7a90428db93f472e0d219bab64853

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8248
SELECT - - CAST( - col1 AS SIGNED ) AS col2 FROM tab1 cor0
----
-10
-13
-26

skipif mysql # not compatible
query I rowsort label-8248
SELECT - - CAST ( - col1 AS INTEGER ) AS col2 FROM tab1 cor0
----
-10
-13
-26

onlyif mysql # use DIV operator for integer division
query I rowsort label-8249
SELECT + 76 DIV - cor0.col2 FROM tab0 cor0
----
-2
-76
0

skipif mysql # not compatible
query I rowsort label-8249
SELECT + 76 / - cor0.col2 FROM tab0 cor0
----
-2
-76
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-8250
SELECT col1 DIV - col0 + 99 col2 FROM tab1
----
91
99
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8250
SELECT col1 / - col0 + 99 col2 FROM tab1
----
91
99
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( cor0.col2 ) col2 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT + - ( + col1 ) FROM tab1 cor0
----
-10
-13
-26

query I rowsort
SELECT 19 * + ( - col2 ) AS col0 FROM tab2 AS cor0
----
-494
-513
-722

onlyif mysql # use DIV operator for integer division
query I rowsort label-8254
SELECT + + 91 + + col1 * + col2 DIV cor0.col2 AS col2 FROM tab1 AS cor0
----
101
104
117

skipif mysql # not compatible
query I rowsort label-8254
SELECT + + 91 + + col1 * + col2 / cor0.col2 AS col2 FROM tab1 AS cor0
----
101
104
117

query I rowsort
SELECT DISTINCT + + col2 * - 76 FROM tab0 AS cor0
----
-2508
-6232
-76

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8256
SELECT DISTINCT - CAST( NULL AS SIGNED ) + cor1.col1 FROM tab1 AS cor0 CROSS JOIN tab2, tab0 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-8256
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + cor1.col1 FROM tab1 AS cor0 CROSS JOIN tab2, tab0 AS cor1
----
NULL

query I rowsort
SELECT 2 * + col0 FROM tab1 AS cor0
----
128
160
6

query I rowsort
SELECT DISTINCT 43 FROM tab2 cor0
----
43

onlyif mysql # use DIV operator for integer division
query I rowsort label-8259
SELECT - + cor0.col0 DIV ( 57 + col1 ) FROM tab1 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-8259
SELECT - + cor0.col0 / ( 57 + col1 ) FROM tab1 AS cor0
----
-1
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-8260
SELECT col2 * + 44 + - col0 DIV col1 FROM tab2
----
1143
1188
1668

skipif mysql # not compatible
query I rowsort label-8260
SELECT col2 * + 44 + - col0 / col1 FROM tab2
----
1143
1188
1668

query I rowsort
SELECT DISTINCT tab2.col2 * col2 + + col2 * tab2.col1 FROM tab2
----
1566
2090
2210

query I rowsort
SELECT 99 + col1 * col0 + - 21 AS col0 FROM tab2 AS cor0
----
1421
295
4680

query I rowsort
SELECT + 50 + col2 FROM tab0 cor0
----
132
51
83

query I rowsort
SELECT DISTINCT + col1 + 8 * - col2 AS col2 FROM tab2 cor0
----
-149
-185
-287

query I rowsort
SELECT + - col2 + - col1 * + col0 AS col0 FROM tab0 AS cor0
----
-2097
-3396
-8181

query I rowsort
SELECT DISTINCT ( 39 * - cor1.col1 ) FROM tab0, tab1 AS cor0, tab1 AS cor1, tab1 AS cor2
----
-1014
-390
-507

query I rowsort
SELECT ALL 9 * + 50 + col0 * + cor0.col1 AS col1 FROM tab0 AS cor0
----
2514
3845
8549

query I rowsort
SELECT ALL col0 + - 91 * col2 FROM tab2 AS cor0
----
-2288
-2450
-3379

query I rowsort
SELECT ALL 17 FROM tab2, tab0 AS cor0
----
9 values hashing to 43298e43365fccb5146ea32003753c92

query I rowsort
SELECT DISTINCT col2 * col1 * + col1 FROM tab2
----
10982
25947
90506

query I rowsort
SELECT DISTINCT + ( - cor0.col2 ) + - cor0.col1 FROM tab2 AS cor0
----
-55
-58
-85

query I rowsort
SELECT ALL + - 42 FROM tab1 AS cor0
----
-42
-42
-42

query I rowsort
SELECT DISTINCT - + col0 * col2 AS col1 FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT DISTINCT ( col0 ) * col0 AS col0 FROM tab1 AS cor0
----
4096
6400
9

query I rowsort
SELECT + + 46 FROM tab1 AS cor0
----
46
46
46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + col1 col1 FROM tab2 AS cor0
----
-19
-62
24

onlyif mysql # use DIV operator for integer division
query I rowsort label-8277
SELECT DISTINCT col0 DIV + col2 - col1 FROM tab0
----
-62
-86
-90

skipif mysql # not compatible
query I rowsort label-8277
SELECT DISTINCT col0 / + col2 - col1 FROM tab0
----
-62
-86
-90

query I rowsort
SELECT ALL + col2 - + tab1.col0 AS col1 FROM tab1
----
-7
16
51

query I rowsort
SELECT - tab1.col0 + col1 * - 78 + - 4 FROM tab1
----
-1098
-2035
-848

onlyif mysql # use DIV operator for integer division
query I rowsort label-8280
SELECT 4 DIV + col2 AS col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8280
SELECT 4 / + col2 AS col1 FROM tab1
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-8281
SELECT + tab0.col2 DIV col1 + - ( col0 * tab0.col1 ) + col1 FROM tab0
----
-1978
-3298
-8008

skipif mysql # not compatible
query I rowsort label-8281
SELECT + tab0.col2 / col1 + - ( col0 * tab0.col1 ) + col1 FROM tab0
----
-1978
-3298
-8008

query I rowsort
SELECT ALL + + 61 * + col1 AS col1 FROM tab1 AS cor0
----
1586
610
793

query I rowsort
SELECT - + 28 + + col0 AS col0 FROM tab1 AS cor0
----
-25
36
52

query I rowsort
SELECT ALL cor0.col1 + col2 * + col2 FROM tab1 AS cor0
----
2942
3259
9229

query I rowsort
SELECT 42 AS col0 FROM tab2 AS cor0
----
42
42
42

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8286
SELECT ALL + 79 + col2 * - CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8286
SELECT ALL + 79 + col2 * - CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 80 * 88 AS col0 FROM tab1, tab2 AS cor0, tab0 cor1
----
27 values hashing to 71e66bb81420c8d0e8b92d885b448546

query I rowsort
SELECT + - col1 * - 22 + - col2 FROM tab0 AS cor0
----
1859
1920
2133

query I rowsort
SELECT ALL col1 + + ( - col2 ) * + col2 * 82 AS col2 FROM tab0 cor0
----
-551277
-89212
15

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8290
SELECT + cor0.col1 * CAST( NULL AS SIGNED ) + ( col0 + CAST( col2 AS SIGNED ) ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8290
SELECT + cor0.col1 * CAST ( NULL AS INTEGER ) + ( col0 + CAST ( col2 AS INTEGER ) ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col1 + - 22 * 14 FROM tab0 AS cor0
----
-394
-399
-405

query I rowsort
SELECT DISTINCT + col2 * - col2 * ( col2 ) FROM tab1 AS cor0
----
-157464
-185193
-884736

query I rowsort
SELECT ALL + + col0 * col1 AS col0 FROM tab1 cor0
----
1040
640
78

query I rowsort
SELECT + col2 * - ( 34 ) AS col0 FROM tab2 AS cor0
----
-1292
-884
-918

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8295
SELECT ALL + col1 + CAST( NULL AS SIGNED ) col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8295
SELECT ALL + col1 + CAST ( NULL AS INTEGER ) col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col1 + tab1.col2 * + col1 - + col2 AS col2 FROM tab1
----
1165
1376
523

query I rowsort
SELECT ALL + + cor0.col2 + cor0.col1 AS col0 FROM tab0 cor0
----
119
173
98

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8298
SELECT + - col1 + CAST( NULL AS SIGNED ) * col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8298
SELECT + - col1 + CAST ( NULL AS INTEGER ) * col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - + col1 * + ( col2 ) FROM tab1 AS cor0
----
-1248
-1404
-570

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8300
SELECT ALL - + cor0.col0 * + CAST( NULL AS SIGNED ) + - col0 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8300
SELECT ALL - + cor0.col0 * + CAST ( NULL AS INTEGER ) + - col0 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - + col0 + - 39 AS col2 FROM tab1 AS cor0
----
-103
-119
-42

query I rowsort
SELECT DISTINCT + col1 * - 73 AS col0 FROM tab1 AS cor0
----
-1898
-730
-949

query I rowsort
SELECT DISTINCT 57 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
57

query I rowsort
SELECT ALL - cor0.col2 + ( + col2 ) FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT - col0 + + 62 AS col2 FROM tab0 AS cor0
----
-27
27
38

query I rowsort
SELECT - col2 * cor0.col1 + - col2 * + col1 FROM tab0 AS cor0
----
-14924
-194
-5676

skipif mysql # not compatible
query I rowsort
SELECT col0 * - CAST ( col2 AS REAL ) AS col0 FROM tab1 cor0
----
-162
-3648
-7680

query I rowsort
SELECT - col2 + - col1 * - 19 AS col0 FROM tab0 AS cor0
----
1601
1647
1842

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + ( + col0 ) col2 FROM tab1 AS cor0
----
1040
640
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * 90 + + cor0.col1 * ( - col1 ) col2 FROM tab0 AS cor0
----
-679
-91
344

query I rowsort
SELECT - col2 - - col2 AS col1 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-8312
SELECT + tab2.col2 DIV + ( col1 * - col0 ) FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8312
SELECT + tab2.col2 / + ( col1 * - col0 ) FROM tab2
----
0
0
0

query I rowsort
SELECT col1 + - ( col0 ) * + col2 FROM tab2
----
-158
-1969
-2985

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + ( 89 * col2 ) col0 FROM tab2
----
2373
2434
3399

query I rowsort
SELECT col2 + + col1 * col0 AS col1 FROM tab0 AS cor0
----
2097
3396
8181

query I rowsort
SELECT ALL + + 43 * col2 AS col2 FROM tab2 AS cor0
----
1118
1161
1634

query I rowsort
SELECT - 72 * col0 FROM tab2 AS cor0
----
-504
-5616
-5688

query I rowsort
SELECT - 40 * col0 AS col0 FROM tab2 cor0
----
-280
-3120
-3160

query I rowsort
SELECT ALL + col0 * - col2 + - 31 - - cor0.col1 FROM tab1 AS cor0
----
-167
-3669
-7698

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col0 + col2 col2 FROM tab0 cor0
----
171
36
57

query I rowsort
SELECT DISTINCT + - 26 AS col0 FROM tab2 AS cor0
----
-26

query I rowsort
SELECT ALL cor0.col0 + + col1 * cor0.col0 FROM tab2 AS cor0
----
1422
224
4680

query I rowsort
SELECT DISTINCT - col2 + col2 AS col0 FROM tab0 cor0
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-8324
SELECT ALL 35 DIV + 32 AS col1 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-8324
SELECT ALL 35 / + 32 AS col1 FROM tab2
----
1
1
1

query I rowsort
SELECT ALL - col0 * col1 * + col1 FROM tab2
----
-22831
-271518
-6727

query I rowsort
SELECT DISTINCT + - col0 * + cor0.col2 * col1 + col2 * - cor0.col0 AS col0 FROM tab2 AS cor0
----
-121680
-54036
-6048

query I rowsort
SELECT ALL + col0 + col2 * + col0 * col0 + - 43 AS col2 FROM tab2
----
1287
158219
237194

skipif mysql # not compatible
query I rowsort
SELECT ALL - CAST ( + col0 + col2 AS REAL ) FROM tab1
----
-121
-176
-57

query I rowsort
SELECT + - 84 + + col1 AS col2 FROM tab2 AS cor0
----
-25
-53
-67

query I rowsort
SELECT - col2 * col2 + cor0.col1 * + ( - cor0.col1 ) AS col1 FROM tab2 AS cor0
----
-1690
-1733
-4157

query I rowsort
SELECT + 33 + + tab2.col2 FROM tab2
----
59
60
71

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col1 * - col2 col0 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT + - col2 + - col2 - - cor0.col0 AS col1 FROM tab2 AS cor0
----
-47
26
3

query I rowsort
SELECT ALL + 87 AS col1 FROM tab1 AS cor0
----
87
87
87

onlyif mysql # use DIV operator for integer division
query I rowsort label-8335
SELECT - - col0 DIV + col2 + col1 - col1 AS col0 FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-8335
SELECT - - col0 / + col2 + col1 - col1 AS col0 FROM tab1 AS cor0
----
0
0
1

query I rowsort
SELECT - cor0.col1 * + col1 - - 38 FROM tab1 AS cor0
----
-131
-62
-638

query I rowsort
SELECT DISTINCT + cor0.col0 * ( col2 ) FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT DISTINCT + - cor0.col2 * + col0 FROM tab1 AS cor0
----
-162
-3648
-7680

onlyif mysql # use DIV operator for integer division
query I rowsort label-8339
SELECT ALL - col1 DIV col1 + col2 * + col1 FROM tab2 AS cor0
----
1533
645
836

skipif mysql # not compatible
query I rowsort label-8339
SELECT ALL - col1 / col1 + col2 * + col1 FROM tab2 AS cor0
----
1533
645
836

query I rowsort
SELECT + 41 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 5b18986bb294412b3d9f07b7e6fc821e

query I rowsort
SELECT - col2 + - ( col2 ) FROM tab0 AS cor0
----
-164
-2
-66

query I rowsort
SELECT - col1 + + col1 * + col2 FROM tab1 cor0
----
1235
1378
560

query I rowsort
SELECT - col2 * - cor0.col1 + - col2 * - col1 FROM tab2 AS cor0
----
1292
1674
3068

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8344
SELECT - CAST( - 72 AS SIGNED ) * - col0 FROM tab1 AS cor0
----
-216
-4608
-5760

skipif mysql # not compatible
query I rowsort label-8344
SELECT - CAST ( - 72 AS INTEGER ) * - col0 FROM tab1 AS cor0
----
-216
-4608
-5760

onlyif mysql # use DIV operator for integer division
query I rowsort label-8345
SELECT ALL - tab1.col1 DIV ( + col0 ) AS col1 FROM tab1
----
-8
0
0

skipif mysql # not compatible
query I rowsort label-8345
SELECT ALL - tab1.col1 / ( + col0 ) AS col1 FROM tab1
----
-8
0
0

query I rowsort
SELECT ALL + 98 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to f9dee8c21116f1aed64ac5160e190809

query I rowsort
SELECT - 6 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 8be8910507908e6353d02a545b748252

query I rowsort
SELECT - col0 * col1 * col0 FROM tab2 AS cor0
----
-106097
-1519
-358956

onlyif mysql # use DIV operator for integer division
query I rowsort label-8349
SELECT ALL - 81 - - col0 DIV - col1 FROM tab0 AS cor0
----
-81
-81
-81

skipif mysql # not compatible
query I rowsort label-8349
SELECT ALL - 81 - - col0 / - col1 FROM tab0 AS cor0
----
-81
-81
-81

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8350
SELECT ALL - - CAST( ( col2 ) AS SIGNED ) * col0 AS col2 FROM tab1 AS cor0
----
162
3648
7680

skipif mysql # not compatible
query I rowsort label-8350
SELECT ALL - - CAST ( ( col2 ) AS INTEGER ) * col0 AS col2 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT - col0 + + col2 * - col0 FROM tab0 AS cor0
----
-70
-7387
-816

query I rowsort
SELECT ALL - + 19 AS col0 FROM tab1 AS cor0
----
-19
-19
-19

query I rowsort
SELECT - col1 * - 86 FROM tab0 AS cor0
----
7396
7826
8342

query I rowsort
SELECT col1 * - 63 AS col0 FROM tab0
----
-5418
-5733
-6111

query I rowsort
SELECT DISTINCT - 85 * col0 AS col2 FROM tab2 cor0
----
-595
-6630
-6715

query I rowsort
SELECT ALL + + col0 * 75 FROM tab0 AS cor0
----
1800
2625
6675

query I rowsort
SELECT ALL - 73 AS col0 FROM tab1, tab2 AS cor0, tab1 AS cor1, tab2 AS cor2
----
81 values hashing to b6d4a8c1826477f660e7b977a0d1fdd7

query I rowsort
SELECT DISTINCT + col2 + + ( col1 ) FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT ( col1 + 54 ) AS col0 FROM tab2
----
113
71
85

query I rowsort
SELECT ALL - cor0.col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 09d8a912de1b8ab762e5ffbe028ce99e

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + - ( col1 ) * cor0.col2 * 50 col0 FROM tab2 AS cor0
----
-32262
-41823
-76674

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8362
SELECT CAST( 87 AS SIGNED ) FROM tab1, tab1 AS cor0
----
9 values hashing to fa0cdd86483844cda3bb806e032d5c64

skipif mysql # not compatible
query I rowsort label-8362
SELECT CAST ( 87 AS INTEGER ) FROM tab1, tab1 AS cor0
----
9 values hashing to fa0cdd86483844cda3bb806e032d5c64

onlyif mysql # use DIV operator for integer division
query I rowsort label-8363
SELECT ALL col0 + col2 DIV col1 AS col1 FROM tab2
----
7
78
81

skipif mysql # not compatible
query I rowsort label-8363
SELECT ALL col0 + col2 / col1 AS col1 FROM tab2
----
7
78
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + 40 * col2 col2 FROM tab0
----
-57
1234
3189

query I rowsort
SELECT + cor0.col2 + cor0.col1 * col0 AS col0 FROM tab0 AS cor0
----
2097
3396
8181

query I rowsort
SELECT - col2 + - ( col2 ) FROM tab2 AS cor0
----
-52
-54
-76

query I rowsort
SELECT ALL col2 * col1 + col0 FROM tab1
----
1328
1407
634

query I rowsort
SELECT col0 + ( - col0 ) * + col1 FROM tab2 AS cor0
----
-1264
-210
-4524

query I rowsort
SELECT ALL - 61 * + col0 FROM tab2 AS cor0
----
-427
-4758
-4819

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8370
SELECT col2 * + cor0.col0 * CAST( 29 AS SIGNED ) + + col2 FROM tab1 AS cor0
----
105849
222816
4752

skipif mysql # not compatible
query I rowsort label-8370
SELECT col2 * + cor0.col0 * CAST ( 29 AS INTEGER ) + + col2 FROM tab1 AS cor0
----
105849
222816
4752

query I rowsort
SELECT col2 * col1 * + col0 + + col2 FROM tab2 AS cor0
----
119678
51072
5886

query I rowsort
SELECT DISTINCT - + col0 + cor0.col0 * ( - 88 ) * + col0 FROM tab2 AS cor0
----
-4319
-535470
-549287

query I rowsort
SELECT - 90 + - col0 AS col2 FROM tab1 AS cor0
----
-154
-170
-93

query I rowsort
SELECT ALL + + 28 + - col1 AS col0 FROM tab0 AS cor0
----
-58
-63
-69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * col2 + + ( 11 ) col0 FROM tab2 AS cor0
----
1455
687
740

query I rowsort
SELECT DISTINCT - col0 - - col0 * + col2 FROM tab2
----
182
1950
2923

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + tab2.col0 col2 FROM tab2
----
-24
19
62

query I rowsort
SELECT ALL col1 + tab2.col0 + + 36 FROM tab2
----
132
173
74

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + col0 + 6 col0 FROM tab0
----
116
138
186

query I rowsort
SELECT ALL col2 + col0 * col1 * ( + col0 ) FROM tab0
----
118826
49569
720893

query I rowsort
SELECT - col2 - col1 * col0 * + col2 AS col0 FROM tab0
----
-3396
-664200
-68145

query I rowsort
SELECT ALL + 43 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to ee5108f6248be48c54e069545f81c5d9

query I rowsort
SELECT ALL - + col1 + + cor0.col2 FROM tab1 AS cor0
----
28
47
83

query I rowsort
SELECT 47 - col1 * ( + col1 + col2 ) * + col1 FROM tab1 AS cor0
----
-18374
-54033
-6653

query I rowsort
SELECT - col2 * - 33 + + 94 FROM tab1
----
1876
1975
3262

query I rowsort
SELECT - col0 * + 57 - 40 FROM tab0
----
-1408
-2035
-5113

query I rowsort
SELECT + col0 + tab2.col0 * - tab2.col1 AS col1 FROM tab2
----
-1264
-210
-4524

onlyif mysql # use DIV operator for integer division
query I rowsort label-8388
SELECT DISTINCT col2 DIV + 43 FROM tab1 AS cor0
----
1
2

skipif mysql # not compatible
query I rowsort label-8388
SELECT DISTINCT col2 / + 43 FROM tab1 AS cor0
----
1
2

query I rowsort
SELECT col2 * 43 AS col2 FROM tab2 AS cor0
----
1118
1161
1634

query I rowsort
SELECT ALL - + ( + 89 ) + col1 * col1 FROM tab2 cor0
----
200
3392
872

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8391
SELECT + + CAST( NULL AS SIGNED ) * + ( col1 ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8391
SELECT + + CAST ( NULL AS INTEGER ) * + ( col1 ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8392
SELECT + + CAST( NULL AS SIGNED ) + col1 * + col0 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8392
SELECT + + CAST ( NULL AS INTEGER ) + col1 * + col0 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col2 * + col2 AS col1 FROM tab1 cor0
----
2916
3249
9216

query I rowsort
SELECT DISTINCT - 17 + - 42 FROM tab2 AS cor0
----
-59

query I rowsort
SELECT DISTINCT + ( + 83 ) AS col1 FROM tab1 AS cor0
----
83

query I rowsort
SELECT + 56 + col1 * col2 FROM tab1 AS cor0
----
1304
1460
626

query I rowsort
SELECT ALL + - col1 + - cor0.col2 * - col2 FROM tab1 AS cor0
----
2890
3239
9203

query I rowsort
SELECT ALL + ( + col2 ) + - col1 * + 75 * col1 FROM tab1 AS cor0
----
-12579
-50646
-7443

query I rowsort
SELECT DISTINCT + ( 90 ) * col2 + col1 FROM tab1 AS cor0
----
4886
5140
8653

query I rowsort
SELECT DISTINCT - cor0.col2 + + col2 FROM tab2 cor0
----
0

query I rowsort
SELECT - 10 + ( col2 ) AS col0 FROM tab1 AS cor0
----
44
47
86

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8402
SELECT ALL CAST( - 98 AS SIGNED ) FROM tab1 AS cor0
----
-98
-98
-98

skipif mysql # not compatible
query I rowsort label-8402
SELECT ALL CAST ( - 98 AS INTEGER ) FROM tab1 AS cor0
----
-98
-98
-98

query I rowsort
SELECT DISTINCT + - ( col0 ) + + cor0.col1 AS col0 FROM tab1 AS cor0
----
-54
-67
23

query I rowsort
SELECT DISTINCT - + col1 * ( - col2 ) + col1 FROM tab2 AS cor0
----
1593
663
868

query I rowsort
SELECT DISTINCT ( - col0 ) * col1 + + ( col2 ) FROM tab0 cor0
----
-2031
-3394
-8017

query I rowsort
SELECT + + ( - ( - cor0.col0 ) ) + - 86 FROM tab1 AS cor0
----
-22
-6
-83

query I rowsort
SELECT ALL + ( - col2 ) - col2 AS col1 FROM tab2 cor0
----
-52
-54
-76

query I rowsort
SELECT - 79 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 1b7b0b34fe3431fb409719624d12791f

query I rowsort
SELECT DISTINCT + ( - col1 ) - col2 FROM tab1 AS cor0
----
-109
-67
-80

query I rowsort
SELECT DISTINCT - 83 * - col2 AS col1 FROM tab2 AS cor0
----
2158
2241
3154

query I rowsort
SELECT - 47 * cor0.col0 + + col1 FROM tab2 AS cor0
----
-298
-3607
-3696

query I rowsort
SELECT - 0 + col1 * col2 * col1 - cor0.col1 * + 0 FROM tab1 AS cor0
----
16224
36504
5700

query I rowsort
SELECT DISTINCT col2 + col0 * + 2 + + col0 * - col2 FROM tab1 AS cor0
----
-102
-3463
-7424

query I rowsort
SELECT + - cor0.col0 + col0 + - ( - col0 ) FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT - col2 + - col0 * 57 - col0 * + col2 AS col2 FROM tab0 AS cor0
----
-12453
-2031
-2193

query I rowsort
SELECT DISTINCT 82 + col0 FROM tab0 AS cor0
----
106
117
171

query I rowsort
SELECT ( + col0 ) * - col2 - col0 FROM tab1
----
-165
-3712
-7760

onlyif mysql # use DIV operator for integer division
query I rowsort label-8418
SELECT ( + col2 ) DIV - col0 + + 34 DIV 74 FROM tab1
----
-1
-18
0

skipif mysql # not compatible
query I rowsort label-8418
SELECT ( + col2 ) / - col0 + + 34 / 74 FROM tab1
----
-1
-18
0

query I rowsort
SELECT - ( 1 ) + col1 * col0 FROM tab0
----
2063
3394
8098

query I rowsort
SELECT + 8 + col1 AS col0 FROM tab1 AS cor0
----
18
21
34

query I rowsort
SELECT ALL col2 - + ( col2 ) * col2 AS col1 FROM tab0 AS cor0
----
-1056
-6642
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-8422
SELECT ALL col1 DIV + ( - col1 ) FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-8422
SELECT ALL col1 / + ( - col1 ) FROM tab0 AS cor0
----
-1
-1
-1

query I rowsort
SELECT - col0 + 64 FROM tab0 AS cor0
----
-25
29
40

query I rowsort
SELECT ALL - + col2 * col0 + 72 FROM tab2 AS cor0
----
-117
-1956
-2930

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8425
SELECT cor0.col0 * CAST( col0 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
49
6084
6241

skipif mysql # not compatible
query I rowsort label-8425
SELECT cor0.col0 * CAST ( col0 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
49
6084
6241

query I rowsort
SELECT DISTINCT - col2 * col1 + col2 AS col1 FROM tab0 AS cor0
----
-2805
-7380
-96

query I rowsort
SELECT DISTINCT + cor0.col1 * - col2 - 12 FROM tab2 AS cor0
----
-1546
-658
-849

query I rowsort
SELECT ALL + - col0 + col1 * col2 * col2 AS col1 FROM tab2 AS cor0
----
22592
24469
39806

query I rowsort
SELECT + 8 + col2 * col1 - + col2 AS col0 FROM tab0
----
104
2813
7388

query I rowsort
SELECT DISTINCT col0 + - 66 * 65 AS col2 FROM tab2 AS cor0
----
-4211
-4212
-4283

onlyif mysql # use DIV operator for integer division
query I rowsort label-8431
SELECT DISTINCT + col0 DIV + 92 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8431
SELECT DISTINCT + col0 / + 92 FROM tab1 AS cor0
----
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8432
SELECT + col2 + + CAST( col2 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
52
54
76

skipif mysql # not compatible
query I rowsort label-8432
SELECT + col2 + + CAST ( col2 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
52
54
76

query I rowsort
SELECT ALL col2 * col0 + col2 * col1 FROM tab0 AS cor0
----
132
14760
3630

query I rowsort
SELECT col1 + + 8 FROM tab2
----
25
39
67

query I rowsort
SELECT + 90 + cor1.col0 AS col1 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 0e3c74fd4edf7f13800f09c38f957065

query IIIIIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab1, tab2 AS cor1, tab0, tab0 cor2, tab2
----
13122 values hashing to c60533705e2e9ad7166aecf338598a8c

query I rowsort
SELECT 78 AS col2 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to d8e5ef4db3419fc251e82c50ba04e048

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - col1 * - 90 col2 FROM tab0 AS cor0
----
185760
305550
728910

query I rowsort
SELECT 28 FROM tab1, tab2, tab1 AS cor0
----
27 values hashing to 8a39580587f2831072e93c319ff94bbf

query I rowsort
SELECT ALL + ( col1 + col2 ) AS col1 FROM tab0
----
119
173
98

query I rowsort
SELECT + ( ( cor0.col2 ) ) + - cor0.col0 FROM tab1 AS cor0
----
-7
16
51

query I rowsort
SELECT DISTINCT - col1 + 90 FROM tab0 AS cor0
----
-1
-7
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + ( col2 ) + col2 col1 FROM tab2 AS cor0
----
52
54
76

query I rowsort
SELECT + col0 * col2 + + cor0.col1 + - col1 * - col1 FROM tab1 AS cor0
----
3758
7862
864

query I rowsort
SELECT col2 + 53 + col0 * 92 AS col2 FROM tab0 AS cor0
----
2294
3274
8323

onlyif mysql # use DIV operator for integer division
query I rowsort label-8446
SELECT + 54 DIV col1 FROM tab1 AS cor0
----
2
4
5

skipif mysql # not compatible
query I rowsort label-8446
SELECT + 54 / col1 FROM tab1 AS cor0
----
2
4
5

query I rowsort
SELECT DISTINCT + + col0 + + col0 AS col1 FROM tab2 cor0
----
14
156
158

query I rowsort
SELECT - 88 + + 30 FROM tab0 AS cor0
----
-58
-58
-58

query I rowsort
SELECT ALL 73 - col2 FROM tab0 AS cor0
----
-9
40
72

query I rowsort
SELECT DISTINCT + col1 * + 1 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT ALL - col2 + col1 + col0 * 39 * - cor0.col1 FROM tab1 AS cor0
----
-25007
-3070
-40643

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 59 col1 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to e29fef8cdec1ee45a71d213f16d2f1d3

query I rowsort
SELECT 88 + + cor0.col1 AS col2 FROM tab0, tab0 cor0, tab2 AS cor1
----
27 values hashing to 56a7db33e96a5fbc12c512f04e63bdff

query I rowsort
SELECT + col2 + + cor0.col1 * cor0.col0 * - 32 FROM tab1 AS cor0
----
-20423
-2442
-33184

query I rowsort
SELECT col0 - tab1.col1 AS col0 FROM tab1
----
-23
54
67

query I rowsort
SELECT - + 22 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to fae46f8148b02964f7145eb6ed5819f9

query I rowsort
SELECT DISTINCT + col1 * + col1 + - 87 * + col0 + - cor0.col2 FROM tab2 AS cor0
----
-3331
-6622
325

query I rowsort
SELECT - 72 + col0 AS col1 FROM tab0 AS cor0
----
-37
-48
17

query I rowsort
SELECT col2 * + col1 + col2 FROM tab0 AS cor0
----
2871
7544
98

query I rowsort
SELECT 78 + col1 AS col1 FROM tab1 AS cor0
----
104
88
91

onlyif mysql # use DIV operator for integer division
query I rowsort label-8461
SELECT + + col1 + col1 * ( 43 ) DIV col1 AS col0 FROM tab2 cor0
----
102
60
74

skipif mysql # not compatible
query I rowsort label-8461
SELECT + + col1 + col1 * ( 43 ) / col1 AS col0 FROM tab2 cor0
----
102
60
74

onlyif mysql # use DIV operator for integer division
query I rowsort label-8462
SELECT - 36 DIV cor0.col0 + col2 AS col0 FROM tab0 AS cor0
----
0
32
82

skipif mysql # not compatible
query I rowsort label-8462
SELECT - 36 / cor0.col0 + col2 AS col0 FROM tab0 AS cor0
----
0
32
82

query I rowsort
SELECT + - col2 * cor0.col1 + 51 FROM tab1 AS cor0
----
-1197
-1353
-519

query I rowsort
SELECT ALL - col2 + ( - ( - col0 ) ) + - ( + col0 ) * - col1 AS col0 FROM tab1 AS cor0
----
1024
27
647

onlyif mysql # use DIV operator for integer division
query I rowsort label-8465
SELECT ALL - col0 DIV + 86 + col2 * col2 AS col2 FROM tab2 cor0
----
1444
676
729

skipif mysql # not compatible
query I rowsort label-8465
SELECT ALL - col0 / + 86 + col2 * col2 AS col2 FROM tab2 cor0
----
1444
676
729

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 65 col2 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
65

query I rowsort
SELECT ALL col1 * + ( + ( col1 ) ) + 51 * col1 AS col0 FROM tab0 AS cor0
----
11782
12922
14356

query I rowsort
SELECT DISTINCT col2 + + ( - col2 ) FROM tab1
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-8469
SELECT col2 DIV 45 AS col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8469
SELECT col2 / 45 AS col2 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT col0 * ( - col1 ) AS col2 FROM tab1
----
-1040
-640
-78

query I rowsort
SELECT + col0 * + 72 - + col2 AS col1 FROM tab2 AS cor0
----
477
5590
5650

onlyif mysql # use DIV operator for integer division
query I rowsort label-8472
SELECT ALL + cor0.col0 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-8472
SELECT ALL + cor0.col0 / col1 col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT col1 + + cor0.col0 + - col1 * 57 * 11 AS col1 FROM tab0 cor0
----
-53812
-56877
-60687

query I rowsort
SELECT DISTINCT - col1 * - 44 FROM tab1
----
1144
440
572

query I rowsort
SELECT col0 * + 74 AS col0 FROM tab0
----
1776
2590
6586

query I rowsort
SELECT ALL + col2 * - cor0.col2 - col2 AS col1 FROM tab2 AS cor0
----
-1482
-702
-756

query I rowsort
SELECT ALL 10 + cor0.col2 * - col0 + - 41 * col0 FROM tab0 AS cor0
----
-10937
-1460
-1766

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + - col2 * + 14 col0 FROM tab1 AS cor0
----
-1264
-734
-753

query I rowsort
SELECT ( - 60 ) * - col0 * ( col1 * - col1 ) FROM tab1
----
-121680
-384000
-811200

onlyif mysql # use DIV operator for integer division
query I rowsort label-8480
SELECT ( - col0 * col2 ) - col2 DIV 10 FROM tab0
----
-35
-7306
-795

skipif mysql # not compatible
query I rowsort label-8480
SELECT ( - col0 * col2 ) - col2 / 10 FROM tab0
----
-35
-7306
-795

onlyif mysql # use DIV operator for integer division
query I rowsort label-8481
SELECT + 46 DIV col0 AS col1 FROM tab1
----
0
0
15

skipif mysql # not compatible
query I rowsort label-8481
SELECT + 46 / col0 AS col1 FROM tab1
----
0
0
15

onlyif mysql # use DIV operator for integer division
query I rowsort label-8482
SELECT col0 DIV 48 AS col2 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-8482
SELECT col0 / 48 AS col2 FROM tab0
----
0
0
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-8483
SELECT + col1 DIV + 40 FROM tab0
----
2
2
2

skipif mysql # not compatible
query I rowsort label-8483
SELECT + col1 / + 40 FROM tab0
----
2
2
2

query I rowsort
SELECT + ( 92 ) * - col1 * 9 AS col0 FROM tab1
----
-10764
-21528
-8280

query I rowsort
SELECT ALL - cor0.col0 + ( col0 + + col2 ) AS col1 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT DISTINCT + + cor0.col2 * - ( - col1 ) FROM tab1 cor0
----
1248
1404
570

onlyif mysql # use DIV operator for integer division
query I rowsort label-8487
SELECT DISTINCT col1 * 67 + col0 DIV col0 AS col1 FROM tab1 AS cor0
----
1743
671
872

skipif mysql # not compatible
query I rowsort label-8487
SELECT DISTINCT col1 * 67 + col0 / col0 AS col1 FROM tab1 AS cor0
----
1743
671
872

query I rowsort
SELECT ALL - cor0.col1 * ( col2 ) + - col1 + - col2 * + col1 FROM tab1 AS cor0
----
-1150
-2509
-2834

query I rowsort
SELECT col1 * + 64 AS col2 FROM tab1 AS cor0
----
1664
640
832

query I rowsort
SELECT DISTINCT - col0 + 18 AS col0 FROM tab1 AS cor0
----
-46
-62
15

query I rowsort
SELECT ALL - col0 + + 37 FROM tab1 AS cor0
----
-27
-43
34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col0 - + 77 col2 FROM tab2 AS cor0
----
-155
-156
-84

query I rowsort
SELECT ALL - col2 * 90 AS col1 FROM tab1 AS cor0
----
-4860
-5130
-8640

onlyif mysql # use DIV operator for integer division
query I rowsort label-8494
SELECT ALL - + col0 DIV - col1 + + col2 DIV + col0 AS col2 FROM tab1 AS cor0
----
18
6
7

skipif mysql # not compatible
query I rowsort label-8494
SELECT ALL - + col0 / - col1 + + col2 / + col0 AS col2 FROM tab1 AS cor0
----
18
6
7

query I rowsort
SELECT DISTINCT - + col0 * col0 - col1 AS col2 FROM tab1 cor0
----
-35
-4106
-6413

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8496
SELECT DISTINCT col0 + CAST( col1 AS SIGNED ) - col2 * + col1 AS col1 FROM tab2 AS cor0
----
-1397
-550
-799

skipif mysql # not compatible
query I rowsort label-8496
SELECT DISTINCT col0 + CAST ( col1 AS INTEGER ) - col2 * + col1 AS col1 FROM tab2 AS cor0
----
-1397
-550
-799

query I rowsort
SELECT col2 * - col0 - - col0 FROM tab1 AS cor0
----
-159
-3584
-7600

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 57 + + 47 col1 FROM tab2 AS cor0
----
-10
-10
-10

query I rowsort
SELECT + col0 + ( col0 ) FROM tab1 AS cor0
----
128
160
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 37 + + cor0.col0 col1 FROM tab0, tab2 AS cor0
----
-30
41
42

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( + col2 ) col0 FROM tab1 AS cor0
----
-54
-57
-96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8502
SELECT ALL - - CAST( NULL AS DECIMAL ) AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8502
SELECT ALL - - CAST ( NULL AS REAL ) AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 91 + - 34 FROM tab2 AS cor0
----
57
57
57

query I rowsort
SELECT ALL - col0 * col1 + col2 FROM tab1 AS cor0
----
-24
-583
-944

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col2 col2 FROM tab1, tab2 AS cor0
----
-26
-27
-38

query I rowsort
SELECT + cor0.col1 + col1 * + 40 AS col2 FROM tab0 AS cor0
----
3526
3731
3977

query I rowsort
SELECT DISTINCT ( + 58 ) * col2 + col0 AS col0 FROM tab2
----
1573
1586
2283

onlyif mysql # use DIV operator for integer division
query I rowsort label-8508
SELECT + col1 DIV - col2 + - 60 AS col2 FROM tab1
----
-60
-60
-60

skipif mysql # not compatible
query I rowsort label-8508
SELECT + col1 / - col2 + - 60 AS col2 FROM tab1
----
-60
-60
-60

query I rowsort
SELECT DISTINCT + 6 * tab2.col0 AS col2 FROM tab2
----
42
468
474

onlyif mysql # use DIV operator for integer division
query I rowsort label-8510
SELECT ALL + - 75 DIV cor0.col2 + + cor0.col2 AS col0 FROM tab1 AS cor0
----
53
56
96

skipif mysql # not compatible
query I rowsort label-8510
SELECT ALL + - 75 / cor0.col2 + + cor0.col2 AS col0 FROM tab1 AS cor0
----
53
56
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * col2 + 13 col1 FROM tab0 AS cor0
----
-1076
-6711
12

query I rowsort
SELECT DISTINCT - tab2.col2 AS col0 FROM tab2, tab0, tab2 AS cor0
----
-26
-27
-38

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8513
SELECT - col0 * - col1 + CAST( NULL AS SIGNED ) / ( + col2 ) col1 FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8513
SELECT - col0 * - col1 + CAST ( NULL AS INTEGER ) / ( + col2 ) col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT col2 + - col0 * + tab0.col0 AS col1 FROM tab0
----
-1224
-543
-7839

query I rowsort
SELECT ALL - 22 * col2 AS col0 FROM tab2
----
-572
-594
-836

query I rowsort
SELECT - col2 * col2 + cor0.col1 FROM tab0 AS cor0
----
-1003
-6633
96

query I rowsort
SELECT ALL + tab0.col2 * tab0.col1 FROM tab0
----
2838
7462
97

query I rowsort
SELECT DISTINCT + tab0.col2 * + col1 * col2 AS col2 FROM tab0
----
611884
93654
97

query I rowsort
SELECT ALL + 4 + 78 AS col1 FROM tab0
----
82
82
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + 65 col0 FROM tab1
----
129
145
68

query I rowsort
SELECT ALL ( ( - col1 ) ) + + col0 AS col1 FROM tab2
----
-24
19
62

query I rowsort
SELECT DISTINCT 31 AS col2 FROM tab1, tab2 AS cor0
----
31

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col0 ) * - col0 col0 FROM tab2
----
-49
-6084
-6241

query I rowsort
SELECT ALL col2 * + col0 + - col0 FROM tab2 AS cor0
----
182
1950
2923

query I rowsort
SELECT DISTINCT + ( - col1 ) * - col0 + col2 AS col0 FROM tab2 AS cor0
----
1381
244
4628

skipif mysql # not compatible
query I rowsort
SELECT + CAST ( col1 AS REAL ) + + col1 FROM tab0 AS cor0
----
172
182
194

query I rowsort
SELECT DISTINCT ( col0 + tab0.col2 ) FROM tab0
----
171
36
57

query I rowsort
SELECT DISTINCT + cor0.col1 * - ( col0 ) * col1 FROM tab1 cor0
----
-13520
-2028
-6400

onlyif mysql # use DIV operator for integer division
query I rowsort label-8529
SELECT + - col1 + col0 DIV col1 FROM tab0 AS cor0
----
-86
-91
-97

skipif mysql # not compatible
query I rowsort label-8529
SELECT + - col1 + col0 / col1 FROM tab0 AS cor0
----
-86
-91
-97

query I rowsort
SELECT ALL + col2 * - col1 + - col2 AS col2 FROM tab0 AS cor0
----
-2871
-7544
-98

query I rowsort
SELECT ( - col0 ) + cor0.col0 * cor0.col1 AS col0 FROM tab2 AS cor0
----
1264
210
4524

query I rowsort
SELECT ALL col0 * + col2 FROM tab1 WHERE NOT ( NULL < ( + col2 / + col0 ) ) AND NOT col0 - col1 NOT IN ( - col0 * - col0 )
----

query I rowsort
SELECT - - col1 + - cor0.col0 FROM tab0 AS cor0
----
2
62
62

query I rowsort
SELECT DISTINCT - - 64 FROM tab0 AS cor0
----
64

query I rowsort
SELECT - - 92 + col1 * col2 AS col2 FROM tab0 AS cor0
----
189
2930
7554

query I rowsort
SELECT DISTINCT - 10 + + col0 AS col0 FROM tab1
----
-7
54
70

query I rowsort
SELECT ALL col0 + 55 * col2 + col0 AS col0 FROM tab1
----
2976
3263
5440

onlyif mysql # use DIV operator for integer division
query I rowsort label-8538
SELECT col1 * cor0.col2 DIV - col2 AS col2 FROM tab0 AS cor0
----
-86
-91
-97

skipif mysql # not compatible
query I rowsort label-8538
SELECT col1 * cor0.col2 / - col2 AS col2 FROM tab0 AS cor0
----
-86
-91
-97

query I rowsort
SELECT + 91 * - col1 FROM tab2 AS cor0
----
-1547
-2821
-5369

query I rowsort
SELECT - + col2 + 88 * - col0 FROM tab0 AS cor0
----
-2145
-3081
-7914

query I rowsort
SELECT cor0.col0 * 81 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 1d133675d4a169d1d72f25d8f68a4292

query I rowsort
SELECT ALL col2 * - col1 + col0 AS col1 FROM tab1
----
-1168
-1401
-506

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 9 * - col0 col0 FROM tab2 AS cor0
----
63
702
711

query I rowsort
SELECT DISTINCT cor0.col1 FROM tab2, tab1 cor0, tab2 AS cor1, tab1, tab2 AS cor2
----
10
13
26

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8545
SELECT ALL CAST( NULL AS SIGNED ) + col1 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8545
SELECT ALL CAST ( NULL AS INTEGER ) + col1 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 86 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 9ac806793c03d3a6b5e3a3029d20e4da

query I rowsort
SELECT cor1.col1 + 86 AS col0 FROM tab2, tab1 AS cor0, tab1 cor1
----
27 values hashing to d41cfcc71165da6e24c01e6bc6a97e2e

query I rowsort
SELECT - col1 * cor0.col1 * col2 AS col1 FROM tab2 cor0
----
-10982
-25947
-90506

query I rowsort
SELECT + 76 + + cor0.col0 FROM tab0 cor0
----
100
111
165

query I rowsort
SELECT DISTINCT + + ( + col2 ) + - col2 AS col0 FROM tab0 AS cor0
----
0

query I rowsort
SELECT DISTINCT ( 60 ) AS col0 FROM tab0
----
60

query I rowsort
SELECT DISTINCT + cor0.col0 + + col0 FROM tab2 cor0
----
14
156
158

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col0 * cor0.col2 col0 FROM tab2 AS cor0
----
189
2028
3002

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 + + col0 col2 FROM tab2 AS cor0
----
-20
41
52

query I rowsort
SELECT ALL - + col1 * cor0.col2 * ( - col0 ) FROM tab2 AS cor0
----
119652
51034
5859

query I rowsort
SELECT DISTINCT + ( col2 + - col0 ) FROM tab1
----
-7
16
51

query I rowsort
SELECT + + col1 + + cor0.col0 * + col0 AS col0 FROM tab0 AS cor0
----
1322
662
8012

query I rowsort
SELECT DISTINCT 47 + - col1 * + ( + tab2.col0 ) FROM tab2
----
-1296
-170
-4555

skipif mysql # not compatible
query I rowsort
SELECT + cor0.col1 + - CAST ( - col2 AS REAL ) * col0 AS col2 FROM tab1 AS cor0
----
188
3658
7693

onlyif mysql # use DIV operator for integer division
query I rowsort label-8560
SELECT + col1 + col1 DIV + 59 AS col0 FROM tab0 AS cor0
----
87
92
98

skipif mysql # not compatible
query I rowsort label-8560
SELECT + col1 + col1 / + 59 AS col0 FROM tab0 AS cor0
----
87
92
98

query I rowsort
SELECT ALL - tab0.col0 + + col2 AS col1 FROM tab0
----
-34
-7
9

onlyif mysql # use DIV operator for integer division
query I rowsort label-8562
SELECT 42 + - col2 DIV - ( 46 ) + col1 FROM tab0
----
128
134
139

skipif mysql # not compatible
query I rowsort label-8562
SELECT 42 + - col2 / - ( 46 ) + col1 FROM tab0
----
128
134
139

query I rowsort
SELECT - col2 * - 61 + col0 + - col2 FROM tab0 AS cor0
----
2004
5009
95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + - 54 col2 FROM tab1 AS cor0
----
-51
10
26

query I rowsort
SELECT col2 - - 18 * col1 * + col2 AS col0 FROM tab1 AS cor0
----
10317
22560
25326

query I rowsort
SELECT + col1 + 57 * + 34 FROM tab1 AS cor0
----
1948
1951
1964

onlyif mysql # use DIV operator for integer division
query I rowsort label-8567
SELECT col1 + - 36 DIV + 35 + + col2 FROM tab2
----
54
57
84

skipif mysql # not compatible
query I rowsort label-8567
SELECT col1 + - 36 / + 35 + + col2 FROM tab2
----
54
57
84

query I rowsort
SELECT DISTINCT + col0 - + col0 * tab0.col0 AS col0 FROM tab0
----
-1190
-552
-7832

onlyif mysql # use DIV operator for integer division
query I rowsort label-8569
SELECT ( 49 ) * cor0.col1 - 81 DIV 95 FROM tab1 AS cor0
----
1274
490
637

skipif mysql # not compatible
query I rowsort label-8569
SELECT ( 49 ) * cor0.col1 - 81 / 95 FROM tab1 AS cor0
----
1274
490
637

onlyif mysql # use DIV operator for integer division
query I rowsort label-8570
SELECT 56 * col1 DIV - cor0.col0 + - col0 AS col2 FROM tab2 AS cor0
----
-120
-255
-91

skipif mysql # not compatible
query I rowsort label-8570
SELECT 56 * col1 / - cor0.col0 + - col0 AS col2 FROM tab2 AS cor0
----
-120
-255
-91

query I rowsort
SELECT DISTINCT - col0 * cor0.col0 AS col1 FROM tab2 cor0
----
-49
-6084
-6241

query I rowsort
SELECT DISTINCT col2 * tab2.col2 - - col1 * col1 FROM tab2
----
1690
1733
4157

query I rowsort
SELECT ALL - 52 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 9500afe5646d620d5e8943351a29d082

query I rowsort
SELECT DISTINCT tab1.col0 + - ( col2 ) - - col2 AS col2 FROM tab1
----
3
64
80

query I rowsort
SELECT col2 + + 24 - tab0.col0 FROM tab0
----
-10
17
33

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * ( 98 ) - + col0 col0 FROM tab2
----
-1745
-3045
-5860

query I rowsort
SELECT col2 + + 11 AS col0 FROM tab1 AS cor0
----
107
65
68

query I rowsort
SELECT - + col0 + - ( - col2 ) AS col2 FROM tab0 cor0
----
-34
-7
9

query I rowsort
SELECT cor0.col2 * 71 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to c45900672e4269f4277aecc97e19ae9f

onlyif mysql # use DIV operator for integer division
query I rowsort label-8580
SELECT DISTINCT + + col1 DIV - col0 + col0 + + col1 FROM tab0 AS cor0
----
107
130
179

skipif mysql # not compatible
query I rowsort label-8580
SELECT DISTINCT + + col1 / - col0 + col0 + + col1 FROM tab0 AS cor0
----
107
130
179

query I rowsort
SELECT + col0 * col1 + + col0 FROM tab1 AS cor0
----
1120
704
81

query I rowsort
SELECT ALL - col0 * col1 + cor0.col1 FROM tab0 cor0
----
-1978
-3298
-8008

onlyif mysql # use DIV operator for integer division
query I rowsort label-8583
SELECT DISTINCT + - col1 DIV ( - col1 ) AS col1 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-8583
SELECT DISTINCT + - col1 / ( - col1 ) AS col1 FROM tab0 AS cor0
----
1

query I rowsort
SELECT - ( ( col0 ) ) * col1 AS col0 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT + + ( ( col2 ) ) * - 28 + + col2 FROM tab0 AS cor0
----
-2214
-27
-891

query I rowsort
SELECT - - ( - col0 ) + col1 - - col0 AS col1 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT DISTINCT - - ( - 75 ) AS col1 FROM tab0 AS cor0
----
-75

query I rowsort
SELECT + + 0 * col0 FROM tab2 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( col2 ) + col1 * - 37 col0 FROM tab1 AS cor0
----
-1016
-427
-577

onlyif mysql # use DIV operator for integer division
query I rowsort label-8590
SELECT - col2 * col0 + col1 DIV - ( - col1 ) + col1 FROM tab0 cor0
----
-705
-7206
63

skipif mysql # not compatible
query I rowsort label-8590
SELECT - col2 * col0 + col1 / - ( - col1 ) + col1 FROM tab0 cor0
----
-705
-7206
63

query I rowsort
SELECT + col2 * - col2 + + col0 AS col1 FROM tab2 AS cor0
----
-1365
-598
-722

query I rowsort
SELECT + + 60 + + col1 * - 94 AS col1 FROM tab2 AS cor0
----
-1538
-2854
-5486

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8593
SELECT - + col1 * + 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-8593
SELECT - + col1 * + CAST ( NULL AS INTEGER ) col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-8594
SELECT - cor0.col2 + 61 + + 57 * col0 DIV + col0 FROM tab2 AS cor0
----
80
91
92

skipif mysql # not compatible
query I rowsort label-8594
SELECT - cor0.col2 + 61 + + 57 * col0 / + col0 FROM tab2 AS cor0
----
80
91
92

query I rowsort
SELECT DISTINCT - cor0.col2 + col1 + col0 FROM tab2 AS cor0
----
11
111
58

skipif mysql # not compatible
query I rowsort
SELECT ALL + - col2 + + CAST ( col1 AS REAL ) AS col1 FROM tab0 AS cor0
----
53
9
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-8597
SELECT - cor0.col1 DIV cor0.col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

skipif mysql # not compatible
query I rowsort label-8597
SELECT - cor0.col1 / cor0.col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query I rowsort
SELECT ALL + cor0.col1 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775

onlyif mysql # use DIV operator for integer division
query I rowsort label-8599
SELECT DISTINCT + col2 DIV col2 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-8599
SELECT DISTINCT + col2 / col2 FROM tab1
----
1

query I rowsort
SELECT ALL - col2 * + col2 - col0 FROM tab2 AS cor0
----
-1523
-736
-754

query I rowsort
SELECT DISTINCT + 80 + + col2 FROM tab0 cor0
----
113
162
81

query I rowsort
SELECT + col1 + - col1 + col0 FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT DISTINCT 33 + + col2 AS col1 FROM tab0 AS cor0
----
115
34
66

query I rowsort
SELECT ALL 88 AS col0 FROM tab2 cor0
----
88
88
88

query I rowsort
SELECT + - col0 * col0 + + col2 * - col2 FROM tab2 AS cor0
----
-6760
-7685
-778

query I rowsort
SELECT DISTINCT - ( - col2 ) + + col2 AS col2 FROM tab1 cor0
----
108
114
192

onlyif mysql # use DIV operator for integer division
query I rowsort label-8607
SELECT DISTINCT col0 DIV - ( col2 ) AS col1 FROM tab1 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-8607
SELECT DISTINCT col0 / - ( col2 ) AS col1 FROM tab1 AS cor0
----
-1
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8608
SELECT ALL + col1 + + CAST( NULL AS SIGNED ) col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8608
SELECT ALL + col1 + + CAST ( NULL AS INTEGER ) col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 + 89 * col2 FROM tab1 cor0
----
4832
5083
8557

query I rowsort
SELECT ALL - col0 * 16 + + col2 FROM tab0 AS cor0
----
-1342
-351
-559

query I rowsort
SELECT - 5 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 74665fbb47d5b17da011bca567195b21

query I rowsort
SELECT cor0.col2 * - 41 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to a357fc3a77638b571b44fb55cd16cd5c

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8613
SELECT ALL + col0 + - CAST( + 32 AS SIGNED ) FROM tab2 AS cor0
----
-25
46
47

skipif mysql # not compatible
query I rowsort label-8613
SELECT ALL + col0 + - CAST ( + 32 AS INTEGER ) FROM tab2 AS cor0
----
-25
46
47

query I rowsort
SELECT ALL + + col1 * ( col1 ) FROM tab1 AS cor0
----
100
169
676

query I rowsort
SELECT - col1 * ( + 52 ) + + col0 * cor0.col2 AS col2 FROM tab1 cor0
----
-1190
3128
7004

query I rowsort
SELECT ALL + - col0 * col0 * cor0.col2 + - col0 AS col2 FROM tab1 AS cor0
----
-233536
-489
-614480

query I rowsort
SELECT ALL + - ( + 23 ) + - cor0.col1 FROM tab0 AS cor0
----
-109
-114
-120

query I rowsort
SELECT 49 + col2 FROM tab2 AS cor0
----
75
76
87

query I rowsort
SELECT DISTINCT + col0 + col2 - + cor0.col2 * col1 AS col2 FROM tab1 AS cor0
----
-1072
-1347
-449

onlyif mysql # use DIV operator for integer division
query I rowsort label-8620
SELECT ALL 61 DIV - col2 FROM tab0 AS cor0
----
-1
-61
0

skipif mysql # not compatible
query I rowsort label-8620
SELECT ALL 61 / - col2 FROM tab0 AS cor0
----
-1
-61
0

query I rowsort
SELECT ALL - 49 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 01b1fa22fee872a7ba64f90d6046ffae

query I rowsort
SELECT - - 81 * col2 + col2 AS col1 FROM tab1 AS cor0
----
4428
4674
7872

query I rowsort
SELECT DISTINCT + col2 * 91 + cor0.col1 FROM tab0 AS cor0
----
188
3089
7553

query I rowsort
SELECT DISTINCT + 2 * + 25 * col2 - col1 * 23 FROM tab0 AS cor0
----
-2181
-328
2007

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8625
SELECT DISTINCT + CAST( 88 AS SIGNED ) * + col0 FROM tab1 AS cor0
----
264
5632
7040

skipif mysql # not compatible
query I rowsort label-8625
SELECT DISTINCT + CAST ( 88 AS INTEGER ) * + col0 FROM tab1 AS cor0
----
264
5632
7040

query I rowsort
SELECT - + 3 * 3 + - col1 FROM tab2 AS cor0
----
-26
-40
-68

query I rowsort
SELECT - 18 * 83 + cor0.col0 + col1 * col0 FROM tab1 AS cor0
----
-1413
-374
-790

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8628
SELECT ALL + cor0.col0 + + col1 + CAST( col1 AS SIGNED ) * col2 FROM tab0 cor0
----
229
2948
7642

skipif mysql # not compatible
query I rowsort label-8628
SELECT ALL + cor0.col0 + + col1 + CAST ( col1 AS INTEGER ) * col2 FROM tab0 cor0
----
229
2948
7642

skipif mysql # not compatible
query I rowsort
SELECT ALL + CAST ( col2 AS REAL ) + col1 * + col2 FROM tab1
----
1344
1458
627

onlyif mysql # use DIV operator for integer division
query I rowsort label-8630
SELECT DISTINCT + ( - col1 ) + col0 * col2 DIV col0 + - col0 AS col0 FROM tab1 AS cor0
----
-17
25
3

skipif mysql # not compatible
query I rowsort label-8630
SELECT DISTINCT + ( - col1 ) + col0 * col2 / col0 + - col0 AS col0 FROM tab1 AS cor0
----
-17
25
3

onlyif mysql # use DIV operator for integer division
query I rowsort label-8631
SELECT ALL + + col1 * + col2 DIV col2 FROM tab1 AS cor0
----
10
13
26

skipif mysql # not compatible
query I rowsort label-8631
SELECT ALL + + col1 * + col2 / col2 FROM tab1 AS cor0
----
10
13
26

onlyif mysql # use DIV operator for integer division
query I rowsort label-8632
SELECT ALL - col2 + col1 DIV col2 FROM tab0 cor0
----
-31
-81
96

skipif mysql # not compatible
query I rowsort label-8632
SELECT ALL - col2 + col1 / col2 FROM tab0 cor0
----
-31
-81
96

query I rowsort
SELECT ALL - + col2 * col1 + 51 AS col1 FROM tab2 cor0
----
-1483
-595
-786

query I rowsort
SELECT DISTINCT + - 52 + col2 AS col2 FROM tab1 AS cor0
----
2
44
5

query I rowsort
SELECT ALL - - ( col2 ) + + col2 * + col2 FROM tab1 AS cor0
----
2970
3306
9312

query I rowsort
SELECT ALL + 67 FROM tab0, tab2, tab2 AS cor0, tab1
----
81 values hashing to 09fa7af42010457bb3c6ffd0dfea3bc8

query I rowsort
SELECT ALL col1 + + 24 FROM tab0
----
110
115
121

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8638
SELECT ALL + CAST( NULL AS SIGNED ) / tab0.col1 + - tab0.col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8638
SELECT ALL + CAST ( NULL AS INTEGER ) / tab0.col1 + - tab0.col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT - - 16 * col1 FROM tab1 AS cor0
----
160
208
416

query I rowsort
SELECT + cor0.col2 * + col1 + 36 FROM tab0 AS cor0
----
133
2874
7498

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8641
SELECT + - col0 * col0 + + CAST( NULL AS SIGNED ) / col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8641
SELECT + - col0 * col0 + + CAST ( NULL AS INTEGER ) / col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col1 + col0 * - col0 * + cor0.col1 AS col1 FROM tab2 AS cor0
----
-106114
-1550
-359015

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col0 * + cor0.col1 col2 FROM tab0, tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT DISTINCT + 0 + 80 AS col0 FROM tab1
----
80

query I rowsort
SELECT - col0 * col2 * 82 + + cor0.col2 * - col1 + col2 AS col1 FROM tab1 AS cor0
----
-14634
-299649
-630912

query I rowsort
SELECT DISTINCT + tab2.col0 * - col1 AS col2 FROM tab2
----
-1343
-217
-4602

query I rowsort
SELECT - 24 * + col0 AS col1 FROM tab2
----
-168
-1872
-1896

query I rowsort
SELECT DISTINCT + 53 + col2 FROM tab0 AS cor0
----
135
54
86

query I rowsort
SELECT + + 73 AS col1 FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to 3933a906d17a820ccf95467e2206df8f

query I rowsort
SELECT + cor0.col0 * - cor0.col0 AS col2 FROM tab2 AS cor0
----
-49
-6084
-6241

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * 86 col1 FROM tab0 AS cor0
----
2838
7052
86

query I rowsort
SELECT ALL - ( + cor0.col2 ) AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 0dc9bbe392d52df93d2a115d7f622dba

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8653
SELECT ALL CAST( NULL AS SIGNED ) col0 FROM tab1, tab2 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8653
SELECT ALL CAST ( NULL AS INTEGER ) col0 FROM tab1, tab2 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # use DIV operator for integer division
query I rowsort label-8654
SELECT DISTINCT col1 DIV - col2 col1 FROM tab0
----
-1
-2
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8654
SELECT DISTINCT col1 / - col2 col1 FROM tab0
----
-1
-2
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-8655
SELECT + col0 DIV 98 + col0 FROM tab2
----
7
78
79

skipif mysql # not compatible
query I rowsort label-8655
SELECT + col0 / 98 + col0 FROM tab2
----
7
78
79

query I rowsort
SELECT - tab2.col0 + 46 FROM tab2
----
-32
-33
39

query I rowsort
SELECT DISTINCT - ( col1 ) AS col2 FROM tab1
----
-10
-13
-26

query I rowsort
SELECT ALL 58 * 24 * col1 FROM tab0 AS cor0
----
119712
126672
135024

query I rowsort
SELECT DISTINCT - + ( - cor0.col1 ) * + col2 * cor0.col1 AS col0 FROM tab2 AS cor0
----
10982
25947
90506

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8660
SELECT + + ( - col2 ) - col1 * + CAST( col1 AS SIGNED ) FROM tab0 AS cor0
----
-7429
-8363
-9410

skipif mysql # not compatible
query I rowsort label-8660
SELECT + + ( - col2 ) - col1 * + CAST ( col1 AS INTEGER ) FROM tab0 AS cor0
----
-7429
-8363
-9410

query I rowsort
SELECT ALL - col2 + 32 FROM tab2 AS cor0
----
-6
5
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 - + ( + col0 ) * col2 col1 FROM tab2 AS cor0
----
-196
-2106
-3081

query I rowsort
SELECT - col0 + - cor0.col1 - col2 AS col1 FROM tab1 AS cor0
----
-131
-189
-83

query I rowsort
SELECT + 82 * cor0.col1 FROM tab0 cor0
----
7052
7462
7954

query I rowsort
SELECT + col1 * - col2 * - col2 + col0 * col2 FROM tab1 AS cor0
----
127488
36138
75978

query I rowsort
SELECT col2 + + tab1.col0 * + tab1.col0 AS col2 FROM tab1
----
4153
63
6496

query I rowsort
SELECT ALL - col0 + + tab1.col1 * + col2 FROM tab1
----
1168
1401
506

query I rowsort
SELECT col1 + col1 + col2 FROM tab1 cor0
----
106
122
77

query I rowsort
SELECT + col2 + cor0.col2 AS col0 FROM tab2 cor0
----
52
54
76

query I rowsort
SELECT ALL col1 + col0 * col2 AS col1 FROM tab1
----
188
3658
7693

query I rowsort
SELECT col2 AS col0 FROM tab2 WHERE NOT - col1 NOT IN ( - col1 * col2 * - col0 )
----

query I rowsort
SELECT ALL col2 + + col1 FROM tab2 WHERE NOT - col1 + col2 / - col1 + col2 < - col2 + - col0
----
55
58
85

onlyif mysql # use DIV operator for integer division
query I rowsort label-8673
SELECT col2 + col2 DIV + col2 + tab1.col1 FROM tab1
----
110
68
81

skipif mysql # not compatible
query I rowsort label-8673
SELECT col2 + col2 / + col2 + tab1.col1 FROM tab1
----
110
68
81

onlyif mysql # use DIV operator for integer division
query I rowsort label-8674
SELECT - col0 DIV + col0 FROM tab0 WHERE ( - col0 * + col0 * - tab0.col0 ) <= + col0 * + col2 * col1
----
-1

skipif mysql # not compatible
query I rowsort label-8674
SELECT - col0 / + col0 FROM tab0 WHERE ( - col0 * + col0 * - tab0.col0 ) <= + col0 * + col2 * col1
----
-1

query I rowsort
SELECT + col2 * col2 AS col1 FROM tab1 WHERE NOT NULL BETWEEN NULL AND NULL
----

query I rowsort
SELECT col0 * col1 * col0 - col1 AS col1 FROM tab1
----
208
40950
83187

query I rowsort
SELECT DISTINCT col0 * - col0 * + col0 + - col0 * col0 AS col1 FROM tab0
----
-14400
-44100
-712890

query I rowsort
SELECT ALL + - col1 + col0 * + col2 AS col0 FROM tab0 AS cor0
----
-62
706
7207

query I rowsort
SELECT - col0 * + col1 + col2 * - col0 FROM tab0
----
-15397
-2856
-3430

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + + col1 col1 FROM tab2
----
137
38
96

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col2 <> col0 + + col1
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d

query III rowsort
SELECT * FROM tab1 WHERE NOT ( col0 * - col0 ) NOT IN ( + col2 )
----

query I rowsort
SELECT - col0 * 81 FROM tab1 AS cor0
----
-243
-5184
-6480

query I rowsort
SELECT DISTINCT - col1 + col1 * 23 * col0 AS col0 FROM tab0 AS cor0
----
186186
47386
77988

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + + 54 * + col1 * - col0 col2 FROM tab1 AS cor0
----
-34570
-4238
-56173

query I rowsort
SELECT ALL - col1 - - col0 AS col2 FROM tab1 AS cor0
----
-23
54
67

query I rowsort
SELECT DISTINCT - - col1 * - col1 * col2 FROM tab2 AS cor0
----
-10982
-25947
-90506

query I rowsort
SELECT ALL + - col1 + + ( - 16 ) AS col2 FROM tab0 AS cor0
----
-102
-107
-113

query I rowsort
SELECT + + col1 + ( - col2 ) * col0 FROM tab1 AS cor0
----
-136
-3638
-7667

query I rowsort
SELECT ALL + col0 - + ( + col2 + + col2 ) FROM tab0 cor0
----
-42
-75
33

query I rowsort
SELECT + col2 + + col0 * 8 FROM tab0 AS cor0
----
225
281
794

query I rowsort
SELECT cor0.col1 + 35 * 76 FROM tab1 AS cor0
----
2670
2673
2686

query I rowsort
SELECT ALL - col2 * - ( + col0 ) + col0 AS col1 FROM tab0 AS cor0
----
70
7387
816

query I rowsort
SELECT DISTINCT - 57 * cor0.col0 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
-399
-4446
-4503

query I rowsort
SELECT - - col0 + + col1 + col1 AS col0 FROM tab2 AS cor0
----
113
196
69

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( col2 * col1 / col0 ) <= ( col1 * - col0 )
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d

query III rowsort
SELECT ALL * FROM tab0 WHERE ( col0 ) >= NULL
----

query I rowsort
SELECT - col2 * + col2 + + col1 FROM tab1
----
-2890
-3239
-9203

query I rowsort
SELECT col0 FROM tab0 WHERE NOT NULL NOT BETWEEN + col0 AND col0 * col2 * col1
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - tab1.col1 IN ( col0 + - col2 + + col1 * - col1 )
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d

query I rowsort
SELECT + col2 * col0 + - col0 FROM tab0
----
0
7209
768

query I rowsort
SELECT ALL tab2.col1 * + col1 * col2 AS col1 FROM tab2
----
10982
25947
90506

onlyif mysql # use DIV operator for integer division
query I rowsort label-8703
SELECT - col2 + - col0 + col0 DIV - col0 FROM tab1
----
-122
-177
-58

skipif mysql # not compatible
query I rowsort label-8703
SELECT - col2 + - col0 + col0 / - col0 FROM tab1
----
-122
-177
-58

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col0 + + col1 < NULL
----

query I rowsort
SELECT ALL col0 * - col2 * - col0 AS col1 FROM tab1
----
233472
486
614400

onlyif mysql # use DIV operator for integer division
query I rowsort label-8706
SELECT col1 * col2 + + col0 + col1 DIV + col1 FROM tab2
----
1613
726
845

skipif mysql # not compatible
query I rowsort label-8706
SELECT col1 * col2 + + col0 + col1 / + col1 FROM tab2
----
1613
726
845

query I rowsort
SELECT + col2 AS col2 FROM tab1 WHERE ( NULL ) <> ( col2 )
----

query I rowsort
SELECT + 67 + col1 * col1 FROM tab0 AS cor0
----
7463
8348
9476

query I rowsort
SELECT + - 93 * + col2 AS col1 FROM tab2 AS cor0
----
-2418
-2511
-3534

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 90 col2 FROM tab2
----
-90
-90
-90

query I rowsort
SELECT DISTINCT 83 * col0 AS col1 FROM tab2 AS cor0
----
581
6474
6557

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + col2 ) + + 7 * + col1 col2 FROM tab0 AS cor0
----
555
569
678

query I rowsort
SELECT DISTINCT - col1 * cor0.col1 AS col0 FROM tab2 AS cor0
----
-289
-3481
-961

query I rowsort
SELECT DISTINCT col0 * + ( - 94 ) * + tab2.col0 + + col1 AS col2 FROM tab2
----
-4575
-571837
-586637

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8715
SELECT DISTINCT - CAST( NULL AS SIGNED ) - 59 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8715
SELECT DISTINCT - CAST ( NULL AS INTEGER ) - 59 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT - + cor0.col1 + - cor0.col1 * - col1 AS col1 FROM tab1 AS cor0
----
156
650
90

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8717
SELECT - CAST( 80 AS SIGNED ) * col0 + 50 * col0 * + col0 FROM tab1 AS cor0
----
199680
210
313600

skipif mysql # not compatible
query I rowsort label-8717
SELECT - CAST ( 80 AS INTEGER ) * col0 + 50 * col0 * + col0 FROM tab1 AS cor0
----
199680
210
313600

query I rowsort
SELECT + col1 + cor0.col0 AS col0 FROM tab1 cor0
----
29
74
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + - col2 col2 FROM tab1
----
-16
-51
7

query I rowsort
SELECT tab0.col1 AS col2 FROM tab0, tab0 cor0
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc

query I rowsort
SELECT DISTINCT - col1 * + col2 + col2 + + col1 FROM tab0
----
-2719
-7289
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-8722
SELECT ALL col2 + + col2 DIV ( + tab1.col2 ) AS col1 FROM tab1
----
55
58
97

skipif mysql # not compatible
query I rowsort label-8722
SELECT ALL col2 + + col2 / ( + tab1.col2 ) AS col1 FROM tab1
----
55
58
97

query I rowsort
SELECT ALL col0 * col0 + col1 * tab0.col2 FROM tab0
----
1322
15383
3414

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - ( - 76 ) * + col0 col2 FROM tab1 AS cor0
----
-228
-4864
-6080

query I rowsort
SELECT + 36 + cor0.col1 AS col2 FROM tab2 AS cor0
----
53
67
95

query I rowsort
SELECT DISTINCT ( - col1 ) + col1 AS col0 FROM tab1 AS cor0
----
0

query I rowsort
SELECT ALL col1 + - col2 * cor0.col2 FROM tab1 cor0
----
-2890
-3239
-9203

query I rowsort
SELECT ALL 21 * - col2 AS col2 FROM tab2 AS cor0
----
-546
-567
-798

onlyif mysql # use DIV operator for integer division
query I rowsort label-8729
SELECT ALL - col0 DIV 37 AS col2 FROM tab2 AS cor0
----
-2
-2
0

skipif mysql # not compatible
query I rowsort label-8729
SELECT ALL - col0 / 37 AS col2 FROM tab2 AS cor0
----
-2
-2
0

query I rowsort
SELECT DISTINCT + col1 * col0 - cor0.col2 AS col1 FROM tab1 AS cor0
----
24
583
944

query I rowsort
SELECT DISTINCT + + 60 * - col2 AS col0 FROM tab2 AS cor0
----
-1560
-1620
-2280

query I rowsort
SELECT + - ( cor0.col0 ) * col1 AS col0 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT DISTINCT - ( + col1 ) * - col1 + - cor0.col1 * col0 FROM tab0 AS cor0
----
182
5332
6014

query I rowsort
SELECT ALL - 34 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 40442a74794ded4c78101eefe525a5bb

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8735
SELECT DISTINCT + - col0 + - col0 + - CAST( - col0 AS SIGNED ) FROM tab2 AS cor0
----
-7
-78
-79

skipif mysql # not compatible
query I rowsort label-8735
SELECT DISTINCT + - col0 + - col0 + - CAST ( - col0 AS INTEGER ) FROM tab2 AS cor0
----
-7
-78
-79

query I rowsort
SELECT ALL - - col1 * - col0 + 51 AS col1 FROM tab0 cor0
----
-2013
-3344
-8048

query I rowsort
SELECT DISTINCT + + col0 + - cor0.col2 FROM tab0 AS cor0
----
-9
34
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col1 * + cor0.col1 + 86 col1 FROM tab2 AS cor0
----
-203
-3395
-875

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 29 * col2 * col0 + + col0 col2 FROM tab2
----
5488
58890
87137

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 8 col2 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
8

query I rowsort
SELECT - + cor0.col2 + ( col1 * - col2 ) FROM tab1 AS cor0
----
-1344
-1458
-627

query I rowsort
SELECT ALL col1 + 40 FROM tab1 cor0
----
50
53
66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( tab0.col0 ) col2 FROM tab0, tab0 cor0, tab0 cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd

query I rowsort
SELECT 72 AS col2 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 92cc3d5daa550304e96c1542787691c7

query I rowsort
SELECT col0 * - ( col1 ) + col2 + ( col1 ) * + col0 AS col0 FROM tab2 AS cor0
----
26
27
38

onlyif mysql # use DIV operator for integer division
query I rowsort label-8746
SELECT cor0.col0 * col0 DIV col1 + - col0 - + col2 FROM tab1 AS cor0
----
-57
288
316

skipif mysql # not compatible
query I rowsort label-8746
SELECT cor0.col0 * col0 / col1 + - col0 - + col2 FROM tab1 AS cor0
----
-57
288
316

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 42 col2 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 325aada2239b6fe1fe2d843515ae8c5e

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col1 + - col0 * col0 col1 FROM tab0 AS cor0
----
-1322
-662
-8012

skipif mysql # not compatible
query I rowsort
SELECT + cor0.col2 * + CAST ( - col1 AS REAL ) + - col0 - cor0.col2 * 45 AS col1 FROM tab2 AS cor0
----
-2059
-2435
-2782

query I rowsort
SELECT DISTINCT + + col2 + col1 * cor0.col1 * - col1 AS col2 FROM tab0 AS cor0
----
-636023
-753489
-912672

onlyif mysql # use DIV operator for integer division
query I rowsort label-8751
SELECT col0 DIV 94 + + 71 * col0 + 33 col1 FROM tab2 AS cor0
----
530
5571
5642

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8751
SELECT col0 / 94 + + 71 * col0 + 33 col1 FROM tab2 AS cor0
----
530
5571
5642

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT + col1 * col1 + - col0 - col1 * - CAST ( col2 AS REAL ) col1 FROM tab1 AS cor0
----
1337
2077
606

query I rowsort
SELECT DISTINCT cor0.col0 * 52 AS col0 FROM tab0 AS cor0
----
1248
1820
4628

query I rowsort
SELECT + col0 + ( ( - cor0.col2 ) ) FROM tab1 AS cor0
----
-16
-51
7

query I rowsort
SELECT ALL - col2 + col1 + + col1 AS col2 FROM tab2 AS cor0
----
-4
35
92

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8756
SELECT DISTINCT - cor0.col1 * CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8756
SELECT DISTINCT - cor0.col1 * CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL - + col0 + 58 + + col0 AS col0 FROM tab0 AS cor0
----
58
58
58

query I rowsort
SELECT + - col1 * col1 + + col2 AS col0 FROM tab2 AS cor0
----
-251
-3455
-934

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 10 * col1 + + col1 col2 FROM tab0 AS cor0
----
1001
1067
946

query I rowsort
SELECT DISTINCT tab2.col2 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
26
27
38

query I rowsort
SELECT ALL + col2 + + 84 * + col1 AS col1 FROM tab1
----
1188
2238
897

query I rowsort
SELECT DISTINCT - + 23 + col2 AS col2 FROM tab1 AS cor0
----
31
34
73

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * + col1 col2 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT DISTINCT - ( - 28 ) AS col2 FROM tab0
----
28

query I rowsort
SELECT 64 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to c8b19f4c3ff38700cd2bb8a077bf29b9

query I rowsort
SELECT - 60 * - tab1.col0 + col0 * + ( col2 * - col0 + + ( col2 ) ) AS col1 FROM tab1
----
-144
-225984
-601920

onlyif mysql # use DIV operator for integer division
query I rowsort label-8767
SELECT + 24 + - col1 DIV - col2 FROM tab0
----
121
25
26

skipif mysql # not compatible
query I rowsort label-8767
SELECT + 24 + - col1 / - col2 FROM tab0
----
121
25
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 81 * + col0 * - 23 - - ( - col0 * 74 ) col0 FROM tab0 AS cor0
----
-172393
-46488
-67795

query I rowsort
SELECT - 41 + + col2 FROM tab0 AS cor0
----
-40
-8
41

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8770
SELECT DISTINCT - col0 + - col2 + CAST( NULL AS SIGNED ) * col2 AS col0 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8770
SELECT DISTINCT - col0 + - col2 + CAST ( NULL AS INTEGER ) * col2 AS col0 FROM tab1 cor0
----
NULL

query I rowsort
SELECT ALL 26 + col1 AS col1 FROM tab0 AS cor0
----
112
117
123

query I rowsort
SELECT ALL 19 FROM tab2, tab2 AS cor0 CROSS JOIN tab1
----
27 values hashing to 86c53e8567a17c8d91fc5aff119e0498

onlyif mysql # use DIV operator for integer division
query I rowsort label-8773
SELECT DISTINCT - 62 DIV col2 AS col0 FROM tab0
----
-1
-62
0

skipif mysql # not compatible
query I rowsort label-8773
SELECT DISTINCT - 62 / col2 AS col0 FROM tab0
----
-1
-62
0

query I rowsort
SELECT + 80 * - col0 + 46 * + col1 - + tab2.col1 * col0 FROM tab2
----
-6881
-8128
649

onlyif mysql # use DIV operator for integer division
query I rowsort label-8775
SELECT - col1 - col2 DIV col1 AS col0 FROM tab1
----
-15
-20
-28

skipif mysql # not compatible
query I rowsort label-8775
SELECT - col1 - col2 / col1 AS col0 FROM tab1
----
-15
-20
-28

query I rowsort
SELECT DISTINCT tab0.col0 - + col1 * ( tab0.col2 * - col1 ) AS col0 FROM tab0
----
244092
679131
9444

query I rowsort
SELECT col0 * + col2 + 53 AS col0 FROM tab2
----
2081
242
3055

query I rowsort
SELECT DISTINCT tab1.col0 * col2 - - col2 AS col0 FROM tab1
----
216
3705
7776

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8779
SELECT - 72 + col2 + CAST( - col2 AS SIGNED ) col1 FROM tab2 cor0
----
-72
-72
-72

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8779
SELECT - 72 + col2 + CAST ( - col2 AS INTEGER ) col1 FROM tab2 cor0
----
-72
-72
-72

query I rowsort
SELECT - + ( - col1 ) + - 9 * - col1 AS col1 FROM tab1 AS cor0
----
100
130
260

query I rowsort
SELECT + + col0 + - col0 AS col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ( 95 ) * + cor1.col0 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to ff69bfa81e622fc724102758d3e219c8

query I rowsort
SELECT ALL - 99 FROM tab2, tab1 AS cor0, tab1 cor1
----
27 values hashing to 761f5f1a166a00db99360141565a85da

query I rowsort
SELECT DISTINCT 82 FROM tab1, tab2 AS cor0
----
82

query I rowsort
SELECT - - col2 * 95 AS col0 FROM tab1 AS cor0
----
5130
5415
9120

query I rowsort
SELECT - 90 * 87 AS col0 FROM tab1 AS cor0
----
-7830
-7830
-7830

query I rowsort
SELECT + 32 + + col1 * col2 FROM tab0 AS cor0
----
129
2870
7494

query I rowsort
SELECT col1 * + cor0.col0 AS col2 FROM tab0 cor0
----
2064
3395
8099

query I rowsort
SELECT + - ( cor0.col1 ) AS col1 FROM tab0 AS cor0
----
-86
-91
-97

query I rowsort
SELECT + col1 * + col0 + col2 FROM tab0
----
2097
3396
8181

query I rowsort
SELECT DISTINCT + cor0.col2 FROM tab1, tab0 AS cor0, tab2 cor1
----
1
33
82

query I rowsort
SELECT 79 * col2 FROM tab0 AS cor0
----
2607
6478
79

query I rowsort
SELECT ALL - ( 19 ) AS col1 FROM tab0 AS cor0
----
-19
-19
-19

query I rowsort
SELECT + 11 AS col0 FROM tab2 cor0
----
11
11
11

query I rowsort
SELECT ALL + 85 AS col1 FROM tab0 AS cor0
----
85
85
85

query I rowsort
SELECT ALL + 55 * - 1 * col0 + 82 FROM tab2 AS cor0
----
-303
-4208
-4263

onlyif mysql # use DIV operator for integer division
query I rowsort label-8797
SELECT DISTINCT 49 DIV col1 AS col2 FROM tab1
----
1
3
4

skipif mysql # not compatible
query I rowsort label-8797
SELECT DISTINCT 49 / col1 AS col2 FROM tab1
----
1
3
4

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8798
SELECT DISTINCT - CAST( - col0 AS SIGNED ) AS col1 FROM tab1
----
3
64
80

skipif mysql # not compatible
query I rowsort label-8798
SELECT DISTINCT - CAST ( - col0 AS INTEGER ) AS col1 FROM tab1
----
3
64
80

query I rowsort
SELECT + ( 62 ) + - tab1.col1 FROM tab1
----
36
49
52

query I rowsort
SELECT col2 * + col0 * col0 + ( - col1 + - col0 ) * ( col2 * - col0 ) AS col2 FROM tab1
----
1328640
503424
5184

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 29 col2 FROM tab0
----
29
29
29

query I rowsort
SELECT ALL - + cor0.col1 * col2 + + cor0.col2 FROM tab0 AS cor0
----
-2805
-7380
-96

query I rowsort
SELECT ALL - + 86 * - col1 * cor0.col2 FROM tab2 AS cor0
----
131924
55556
71982

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab0 cor0, tab1 AS cor1, tab1, tab0 AS cor2
----
3645 values hashing to e660b5944e34dd8d75740286862b3252

query I rowsort
SELECT + - col0 + - col0 * col1 AS col2 FROM tab2 cor0
----
-1422
-224
-4680

query I rowsort
SELECT ALL col2 + - col2 - - col1 AS col0 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT DISTINCT + + 11 * + col0 AS col1 FROM tab1 AS cor0
----
33
704
880

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8808
SELECT + CAST( - ( - col0 ) AS SIGNED ) AS col2 FROM tab1 AS cor0
----
3
64
80

skipif mysql # not compatible
query I rowsort label-8808
SELECT + CAST ( - ( - col0 ) AS INTEGER ) AS col2 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT 49 + col0 FROM tab2 AS cor0
----
127
128
56

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + + col2 - col2 col0 FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT + col1 + - col0 * col2 * col2 FROM tab1 AS cor0
----
-207926
-737267
-8722

query I rowsort
SELECT ALL + 87 * + cor0.col1 FROM tab2 AS cor0
----
1479
2697
5133

query I rowsort
SELECT DISTINCT col2 * cor0.col2 AS col2 FROM tab0 cor0
----
1
1089
6724

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8814
SELECT ALL + + 10 * col1 / + CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8814
SELECT ALL + + 10 * col1 / + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + + col0 * + cor0.col2 + + col1 FROM tab0 AS cor0
----
132
7389
878

query I rowsort
SELECT ALL + + 42 AS col0 FROM tab2 AS cor0
----
42
42
42

query I rowsort
SELECT DISTINCT - + 43 + col2 * - 83 AS col1 FROM tab0 AS cor0
----
-126
-2782
-6849

query I rowsort
SELECT ALL + - 88 * - col1 AS col2 FROM tab1 AS cor0
----
1144
2288
880

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 - col0 col0 FROM tab1
----
0
0
0

query I rowsort
SELECT ALL - ( 26 + + col1 ) FROM tab2
----
-43
-57
-85

query I rowsort
SELECT DISTINCT - col0 * + col0 + + cor0.col1 AS col2 FROM tab2 AS cor0
----
-18
-6025
-6224

query I rowsort
SELECT DISTINCT - - cor0.col0 - 6 AS col2 FROM tab2 AS cor0
----
1
72
73

query I rowsort
SELECT + col2 - ( - 88 ) FROM tab1 AS cor0
----
142
145
184

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col2 * - 73 + col0 col0 FROM tab2 AS cor0
----
-1820
-1964
-2695

query I rowsort
SELECT + - col0 * + col1 * - 83 + - col0 * ( col0 * - col0 ) FROM tab0 AS cor0
----
1377186
185136
324660

onlyif mysql # use DIV operator for integer division
query I rowsort label-8826
SELECT - col2 DIV - col0 + 21 AS col1 FROM tab2 AS cor0
----
21
21
24

skipif mysql # not compatible
query I rowsort label-8826
SELECT - col2 / - col0 + 21 AS col1 FROM tab2 AS cor0
----
21
21
24

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8827
SELECT DISTINCT + col0 + CAST( col2 AS SIGNED ) AS col1 FROM tab1 cor0
----
121
176
57

skipif mysql # not compatible
query I rowsort label-8827
SELECT DISTINCT + col0 + CAST ( col2 AS INTEGER ) AS col1 FROM tab1 cor0
----
121
176
57

query I rowsort
SELECT + col2 * - ( + cor0.col0 ) AS col1 FROM tab0 AS cor0
----
-35
-7298
-792

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * - col0 col0 FROM tab0
----
-2064
-3395
-8099

query I rowsort
SELECT ALL cor1.col2 * 22 AS col2 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 5882b1cc77f7fddcb836ab4ba56964df

query I rowsort
SELECT DISTINCT + col0 * - 5 + col2 - col2 FROM tab1 AS cor0
----
-15
-320
-400

query I rowsort
SELECT ALL - col1 + 13 FROM tab1 AS cor0
----
-13
0
3

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8833
SELECT DISTINCT + col1 * + CAST( - col2 AS SIGNED ) - cor0.col0 * col1 * - col0 FROM tab2 AS cor0
----
105451
357422
682

skipif mysql # not compatible
query I rowsort label-8833
SELECT DISTINCT + col1 * + CAST ( - col2 AS INTEGER ) - cor0.col0 * col1 * - col0 FROM tab2 AS cor0
----
105451
357422
682

skipif mysql # not compatible
query I rowsort
SELECT - col2 * + CAST ( 7 AS REAL ) + col0 FROM tab2
----
-104
-182
-187

query I rowsort
SELECT - ( cor0.col2 ) FROM tab1, tab1 AS cor0
----
9 values hashing to 0dc9bbe392d52df93d2a115d7f622dba

query I rowsort
SELECT + col2 * - 36 + + col2 FROM tab2 AS cor0
----
-1330
-910
-945

query I rowsort
SELECT - col0 + + col1 * col0 * cor0.col0 AS col0 FROM tab2 AS cor0
----
106018
1512
358878

query I rowsort
SELECT + 32 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to d30a2acbf33c88274474306936d3227b

onlyif mysql # use DIV operator for integer division
query I rowsort label-8839
SELECT DISTINCT - col0 + col0 DIV - tab1.col2 FROM tab1
----
-3
-65
-80

skipif mysql # not compatible
query I rowsort label-8839
SELECT DISTINCT - col0 + col0 / - tab1.col2 FROM tab1
----
-3
-65
-80

query I rowsort
SELECT ALL + cor0.col0 + - col0 * 14 + + col2 FROM tab2 AS cor0
----
-64
-988
-989

query I rowsort
SELECT DISTINCT + + cor0.col0 * - col2 - + 20 * + col2 FROM tab2 AS cor0
----
-2548
-3762
-729

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 74 + - col2 col0 FROM tab0 AS cor0
----
-8
41
73

query I rowsort
SELECT - + 6 + + col1 FROM tab2 AS cor0
----
11
25
53

query I rowsort
SELECT DISTINCT + + 79 AS col2 FROM tab1 AS cor0
----
79

onlyif mysql # use DIV operator for integer division
query I rowsort label-8845
SELECT DISTINCT + col2 - - col1 DIV + col0 FROM tab2 AS cor0
----
26
31
38

skipif mysql # not compatible
query I rowsort label-8845
SELECT DISTINCT + col2 - - col1 / + col0 FROM tab2 AS cor0
----
26
31
38

query I rowsort
SELECT ALL - 59 + col2 * - col0 * + col2 + - col1 * col1 FROM tab2 AS cor0
----
-114424
-56268
-6123

query I rowsort
SELECT ALL + - cor0.col1 * col2 + + 50 AS col0 FROM tab1 AS cor0
----
-1198
-1354
-520

query I rowsort
SELECT - 72 * + col1 + - 59 * col0 * + col1 FROM tab2 AS cor0
----
-15035
-275766
-80461

query I rowsort
SELECT DISTINCT - + cor0.col1 * - cor0.col0 + 40 + cor0.col1 FROM tab1 AS cor0
----
1093
144
690

query I rowsort
SELECT ALL + col0 + - col2 FROM tab2 cor0
----
-20
41
52

query I rowsort
SELECT DISTINCT + 48 * + col2 AS col1 FROM tab0 AS cor0
----
1584
3936
48

query I rowsort
SELECT DISTINCT + 51 * + col1 FROM tab1 AS cor0
----
1326
510
663

query I rowsort
SELECT ALL - - 14 * col1 + 23 + + col0 FROM tab1 AS cor0
----
227
285
390

query I rowsort
SELECT DISTINCT + ( col2 ) * + col1 - + col0 AS col2 FROM tab0
----
2814
62
7373

query I rowsort
SELECT ( 86 ) FROM tab2
----
86
86
86

query I rowsort
SELECT + 90 + col0 FROM tab0
----
114
125
179

query I rowsort
SELECT + 15 - col1 AS col2 FROM tab2 AS cor0
----
-16
-2
-44

query I rowsort
SELECT + - col2 * + col2 - cor0.col2 FROM tab1 AS cor0
----
-2970
-3306
-9312

query I rowsort
SELECT col0 + + col0 * - col2 AS col0 FROM tab0 AS cor0
----
-7209
-768
0

query I rowsort
SELECT + 25 * cor0.col1 FROM tab1 AS cor0
----
250
325
650

query I rowsort
SELECT - 81 * + col1 + col1 FROM tab2
----
-1360
-2480
-4720

onlyif mysql # use DIV operator for integer division
query I rowsort label-8862
SELECT + col0 DIV col2 col2 FROM tab1
----
0
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8862
SELECT + col0 / col2 col2 FROM tab1
----
0
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 64 + - tab0.col1 * 31 * - col2 col0 FROM tab0
----
231386
3071
88042

query I rowsort
SELECT - 30 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 56fa25f9fb8040460fe3c894000ea8fb

query I rowsort
SELECT + cor0.col0 + col0 * + 52 * - col2 AS col2 FROM tab1 AS cor0
----
-189632
-399280
-8421

onlyif mysql # use DIV operator for integer division
query I rowsort label-8866
SELECT DISTINCT + col0 + - col2 * col0 DIV - col0 FROM tab2
----
104
117
34

skipif mysql # not compatible
query I rowsort label-8866
SELECT DISTINCT + col0 + - col2 * col0 / - col0 FROM tab2
----
104
117
34

query I rowsort
SELECT + col2 * - 27 FROM tab1 AS cor0
----
-1458
-1539
-2592

query I rowsort
SELECT col0 * col2 + col1 FROM tab1
----
188
3658
7693

query I rowsort
SELECT - tab0.col1 * + col0 + col2 AS col1 FROM tab0
----
-2031
-3394
-8017

query I rowsort
SELECT - - 48 AS col1 FROM tab1 AS cor0
----
48
48
48

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8871
SELECT CAST( - col2 AS SIGNED ) * + col1 col0 FROM tab0 AS cor0
----
-2838
-7462
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8871
SELECT CAST ( - col2 AS INTEGER ) * + col1 col0 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT DISTINCT - - 49 AS col1 FROM tab0 AS cor0
----
49

query I rowsort
SELECT DISTINCT - ( + cor0.col1 ) * + cor0.col0 * + col1 FROM tab1 AS cor0
----
-13520
-2028
-6400

query I rowsort
SELECT DISTINCT - col0 + - col1 * col2 AS col2 FROM tab1 cor0
----
-1328
-1407
-634

onlyif mysql # use DIV operator for integer division
query I rowsort label-8875
SELECT DISTINCT + 54 DIV + col2 AS col1 FROM tab1 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-8875
SELECT DISTINCT + 54 / + col2 AS col1 FROM tab1 AS cor0
----
0
1

query I rowsort
SELECT - 94 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to a95bfa539191d3f72f6548147d7efb9e

query I rowsort
SELECT ALL - col1 + col0 + col0 AS col0 FROM tab1 AS cor0
----
-20
118
147

onlyif mysql # use DIV operator for integer division
query I rowsort label-8878
SELECT DISTINCT col0 DIV 63 AS col2 FROM tab2 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-8878
SELECT DISTINCT col0 / 63 AS col2 FROM tab2 AS cor0
----
0
1

query I rowsort
SELECT - - 17 AS col0 FROM tab1 AS cor0
----
17
17
17

query I rowsort
SELECT DISTINCT + - 62 AS col2 FROM tab0 AS cor0
----
-62

query I rowsort
SELECT ALL col0 * + col0 * + ( col1 * - col1 ) AS col0 FROM tab0
----
-11526025
-4260096
-65593801

query I rowsort
SELECT - 54 + - col0 * + col0 FROM tab0 AS cor0
----
-1279
-630
-7975

onlyif mysql # use DIV operator for integer division
query I rowsort label-8883
SELECT - col2 DIV - cor0.col0 AS col2 FROM tab1 AS cor0
----
0
1
18

skipif mysql # not compatible
query I rowsort label-8883
SELECT - col2 / - cor0.col0 AS col2 FROM tab1 AS cor0
----
0
1
18

query I rowsort
SELECT ALL col0 + col2 + col1 FROM tab2 cor0
----
134
163
65

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + + col1 col1 FROM tab1 cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - col1 + - col1 col0 FROM tab2 AS cor0
----
1326
186
4543

query I rowsort
SELECT + col1 + col1 * + col2 + col1 FROM tab2 AS cor0
----
1652
680
899

query I rowsort
SELECT col0 * 64 + + col1 FROM tab0 AS cor0
----
1622
2337
5787

query I rowsort
SELECT DISTINCT + + col0 + cor0.col1 AS col2 FROM tab2 AS cor0
----
137
38
96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8890
SELECT DISTINCT - col0 * - CAST( NULL AS DECIMAL ) + + col2 / + col1 - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8890
SELECT DISTINCT - col0 * - CAST ( NULL AS REAL ) + + col2 / + col1 - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT - + col1 + - 41 AS col1 FROM tab2 AS cor0
----
-100
-58
-72

onlyif mysql # use DIV operator for integer division
query I rowsort label-8892
SELECT DISTINCT + col0 + + ( + col0 ) DIV + col0 + col0 * col2 col2 FROM tab1 cor0
----
166
3713
7761

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8892
SELECT DISTINCT + col0 + + ( + col0 ) / + col0 + col0 * col2 col2 FROM tab1 cor0
----
166
3713
7761

query I rowsort
SELECT ALL cor0.col2 - - 40 * - col0 AS col1 FROM tab2 AS cor0
----
-253
-3094
-3122

query I rowsort
SELECT ALL + 58 FROM tab1, tab2 AS cor0
----
9 values hashing to ef6e63aeed2581a168f07646d258f666

query I rowsort
SELECT ALL + ( + col0 ) * col1 AS col1 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT ( col1 ) * cor0.col0 + + 46 AS col1 FROM tab2 AS cor0
----
1389
263
4648

query I rowsort
SELECT - - col1 * 46 AS col2 FROM tab0 cor0
----
3956
4186
4462

query I rowsort
SELECT DISTINCT cor0.col0 * 69 + + col1 + col0 FROM tab1 AS cor0
----
236
4490
5613

query I rowsort
SELECT DISTINCT col0 * - 4 + + 17 AS col1 FROM tab2 AS cor0
----
-11
-295
-299

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 39 * 64 col1 FROM tab0, tab1 AS cor0
----
9 values hashing to e3b8c5ac12f6990ef5958f751f751176

query I rowsort
SELECT ALL + 30 FROM tab0, tab2 AS cor0
----
9 values hashing to da5de0c411a2c0f445400f1b63ea9f89

query I rowsort
SELECT - 22 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 647e567609c5ada1d3454d2102819bfe

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * 26 + + col0 col0 FROM tab1
----
1728
2160
81

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8904
SELECT - col1 * CAST( NULL AS SIGNED ) + - col1 * + col1 * ( + col0 ) AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8904
SELECT - col1 * CAST ( NULL AS INTEGER ) + - col1 * + col1 * ( + col0 ) AS col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT cor0.col0 * - tab1.col1 FROM tab1, tab2, tab1 AS cor0
----
9 values hashing to d6e251a4a6d3e8483c15062bde9b3abb

query I rowsort
SELECT 41 * 1 AS col0 FROM tab2
----
41
41
41

query I rowsort
SELECT DISTINCT + 52 AS col0 FROM tab0, tab2, tab1 cor0
----
52

query I rowsort
SELECT ALL + 51 FROM tab1, tab0, tab0 cor0
----
27 values hashing to 02a7de94365b8cb5b5cb92c4b1d1e7c5

query I rowsort
SELECT + - col2 + col0 * ( 0 ) FROM tab2 AS cor0
----
-26
-27
-38

query I rowsort
SELECT DISTINCT 15 * col1 AS col1 FROM tab1 AS cor0
----
150
195
390

onlyif mysql # use DIV operator for integer division
query I rowsort label-8911
SELECT ALL 7 DIV col1 AS col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8911
SELECT ALL 7 / col1 AS col0 FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT + 87 AS col2 FROM tab2
----
87

query I rowsort
SELECT 31 * + 23 FROM tab0
----
713
713
713

query I rowsort
SELECT 87 * - col0 AS col1 FROM tab2
----
-609
-6786
-6873

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8915
SELECT + CAST( NULL AS SIGNED ) * - col0 col1 FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8915
SELECT + CAST ( NULL AS INTEGER ) * - col0 col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT + - col2 * - col0 * col2 FROM tab1 AS cor0
----
207936
737280
8748

query I rowsort
SELECT 24 * + col0 FROM tab0 AS cor0
----
2136
576
840

query I rowsort
SELECT ALL - ( + cor1.col0 ) FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to c82df1de3cb666224690a83f3d790d79

query I rowsort
SELECT - 38 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to e571541ae40cb0ddaca16e11f4359507

query I rowsort
SELECT - - col2 + - col1 AS col0 FROM tab0 cor0
----
-53
-9
-96

onlyif mysql # use DIV operator for integer division
query I rowsort label-8921
SELECT - 84 + col0 DIV 84 FROM tab1 AS cor0
----
-84
-84
-84

skipif mysql # not compatible
query I rowsort label-8921
SELECT - 84 + col0 / 84 FROM tab1 AS cor0
----
-84
-84
-84

query I rowsort
SELECT - 18 + + col2 * 80 FROM tab1 AS cor0
----
4302
4542
7662

query I rowsort
SELECT DISTINCT + 36 + + col1 FROM tab1
----
46
49
62

query I rowsort
SELECT 21 - + col2 * - col0 AS col2 FROM tab1
----
183
3669
7701

query I rowsort
SELECT ALL tab2.col2 * - 59 FROM tab2, tab1 AS cor0
----
9 values hashing to 0f553b8102f4943f93fdb7bdcb17e400

query I rowsort
SELECT ALL - col2 + col1 * col2 FROM tab0
----
2805
7380
96

query I rowsort
SELECT DISTINCT 63 + col1 + 99 FROM tab2
----
179
193
221

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8928
SELECT 84 * col1 * CAST( + col1 AS SIGNED ) + + col1 AS col1 FROM tab2 cor0
----
24293
292463
80755

skipif mysql # not compatible
query I rowsort label-8928
SELECT 84 * col1 * CAST ( + col1 AS INTEGER ) + + col1 AS col1 FROM tab2 cor0
----
24293
292463
80755

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * col1 + - col0 col1 FROM tab1 AS cor0
----
576
75
960

onlyif mysql # use DIV operator for integer division
query I rowsort label-8930
SELECT DISTINCT - - 63 DIV col2 FROM tab0 AS cor0
----
0
1
63

skipif mysql # not compatible
query I rowsort label-8930
SELECT DISTINCT - - 63 / col2 FROM tab0 AS cor0
----
0
1
63

query I rowsort
SELECT ALL - - 24 + - col2 FROM tab1 AS cor0
----
-30
-33
-72

query I rowsort
SELECT - 40 * col0 + ( 68 ) + col0 * col1 AS col2 FROM tab2 AS cor0
----
-1749
1550
5

query I rowsort
SELECT DISTINCT tab0.col0 AS col2 FROM tab0, tab1, tab1 AS cor0, tab2
----
24
35
89

query I rowsort
SELECT DISTINCT + - col1 * cor0.col2 FROM tab1 cor0
----
-1248
-1404
-570

onlyif mysql # use DIV operator for integer division
query I rowsort label-8935
SELECT DISTINCT col1 DIV 48 AS col0 FROM tab0 AS cor0
----
1
2

skipif mysql # not compatible
query I rowsort label-8935
SELECT DISTINCT col1 / 48 AS col0 FROM tab0 AS cor0
----
1
2

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8936
SELECT + cor0.col0 * + CAST( col1 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
1343
217
4602

skipif mysql # not compatible
query I rowsort label-8936
SELECT + cor0.col0 * + CAST ( col1 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT ALL + cor0.col0 + 26 * col0 AS col1 FROM tab0 AS cor0
----
2403
648
945

onlyif mysql # use DIV operator for integer division
query I rowsort label-8938
SELECT - + col1 DIV col1 + col0 + - col0 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-8938
SELECT - + col1 / col1 + col0 + - col0 col2 FROM tab0 AS cor0
----
-1
-1
-1

query I rowsort
SELECT ALL col1 * + 52 AS col0 FROM tab1 AS cor0
----
1352
520
676

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * - cor0.col2 + col2 * + col2 * + col2 col2 FROM tab0 AS cor0
----
-34
35145
544070

query I rowsort
SELECT + col2 + 87 * col2 FROM tab2 AS cor0
----
2288
2376
3344

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col2 * - col1 col0 FROM tab0 cor0
----
-2838
-7462
-97

query I rowsort
SELECT ALL + col2 * + col2 + col2 FROM tab0 cor0
----
1122
2
6806

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 + + 12 col2 FROM tab1 AS cor0
----
-52
-68
9

onlyif mysql # use DIV operator for integer division
query I rowsort label-8945
SELECT 19 DIV + col2 - col2 AS col1 FROM tab0 AS cor0
----
-33
-82
18

skipif mysql # not compatible
query I rowsort label-8945
SELECT 19 / + col2 - col2 AS col1 FROM tab0 AS cor0
----
-33
-82
18

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8946
SELECT - CAST( col1 AS SIGNED ) + - col0 FROM tab2 AS cor0
----
-137
-38
-96

skipif mysql # not compatible
query I rowsort label-8946
SELECT - CAST ( col1 AS INTEGER ) + - col0 FROM tab2 AS cor0
----
-137
-38
-96

query I rowsort
SELECT ALL 29 - - ( col0 ) FROM tab2
----
107
108
36

query I rowsort
SELECT - + col1 * + col1 - + col2 FROM tab2 AS cor0
----
-327
-3507
-988

query I rowsort
SELECT ALL + + ( + cor0.col0 ) * col0 - - 17 * cor0.col1 FROM tab1 AS cor0
----
4266
451
6621

query I rowsort
SELECT ALL 64 AS col0 FROM tab1 AS cor0
----
64
64
64

query I rowsort
SELECT DISTINCT cor0.col1 * - 23 FROM tab2 AS cor0
----
-1357
-391
-713

query I rowsort
SELECT - ( 79 ) AS col1 FROM tab1 AS cor0
----
-79
-79
-79

query I rowsort
SELECT DISTINCT + + 40 * - 82 AS col1 FROM tab0 AS cor0
----
-3280

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 52 col2 FROM tab0 AS cor0
----
-52

query I rowsort
SELECT ALL + + col2 + - col0 * col0 FROM tab2 AS cor0
----
-22
-6058
-6203

query I rowsort
SELECT - 44 * col1 * - col2 - 41 FROM tab0 AS cor0
----
124831
328287
4227

query I rowsort
SELECT DISTINCT + col1 + col0 * col0 * col2 AS col0 FROM tab1 AS cor0
----
233482
512
614413

query I rowsort
SELECT ALL + cor0.col1 * cor0.col1 - col2 FROM tab1 cor0
----
43
622
73

query I rowsort
SELECT DISTINCT + + 45 * col1 * col2 FROM tab0 AS cor0
----
127710
335790
4365

query I rowsort
SELECT - ( cor0.col1 ) * + col0 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT - + col0 * col2 - cor0.col0 * + 16 AS col0 FROM tab2 AS cor0
----
-301
-3276
-4266

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 1 col2 FROM tab1 AS cor0
----
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 98 col0 FROM tab2 AS cor0
----
98
98
98

query I rowsort
SELECT DISTINCT - col2 * - col0 + - col2 FROM tab2 AS cor0
----
162
2002
2964

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 - - col1 col1 FROM tab1
----
20
26
52

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8966
SELECT CAST( col1 + - col1 AS SIGNED ) AS col0 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8966
SELECT CAST ( col1 + - col1 AS INTEGER ) AS col0 FROM tab0
----
0
0
0

query I rowsort
SELECT - 64 + + tab0.col0 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to cb7adfb51e92cc5b17c81b0921e7a0d6

query I rowsort
SELECT + cor0.col1 * + cor0.col2 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to b2e5b025b1c725661248b0f29aaef908

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8969
SELECT - CAST( - 17 AS SIGNED ) AS col0 FROM tab0
----
17
17
17

skipif mysql # not compatible
query I rowsort label-8969
SELECT - CAST ( - 17 AS INTEGER ) AS col0 FROM tab0
----
17
17
17

query I rowsort
SELECT 54 + 79 FROM tab1
----
133
133
133

query I rowsort
SELECT - cor1.col1 AS col0 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to c7890469eabb2c6fc81454b35d2333b6

query I rowsort
SELECT ALL + + cor0.col2 * - col2 + cor0.col2 AS col2 FROM tab1 AS cor0
----
-2862
-3192
-9120

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * ( col1 ) col0 FROM tab2 AS cor0
----
-1534
-646
-837

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 76 * - col2 col1 FROM tab1 cor0
----
-4104
-4332
-7296

query I rowsort
SELECT - - col0 * - col1 + + col1 + - ( col1 ) AS col1 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT ALL 55 * - col2 FROM tab0 AS cor0
----
-1815
-4510
-55

onlyif mysql # use DIV operator for integer division
query I rowsort label-8977
SELECT DISTINCT ( cor0.col1 ) + - col1 DIV + col1 AS col2 FROM tab0 AS cor0
----
85
90
96

skipif mysql # not compatible
query I rowsort label-8977
SELECT DISTINCT ( cor0.col1 ) + - col1 / + col1 AS col2 FROM tab0 AS cor0
----
85
90
96

query I rowsort
SELECT DISTINCT + + col0 - col2 FROM tab2 AS cor0
----
-20
41
52

query I rowsort
SELECT DISTINCT - 57 * col0 * - col1 AS col1 FROM tab1
----
36480
4446
59280

onlyif mysql # use DIV operator for integer division
query I rowsort label-8980
SELECT - 29 * cor0.col2 DIV + 39 FROM tab0 AS cor0
----
-24
-60
0

skipif mysql # not compatible
query I rowsort label-8980
SELECT - 29 * cor0.col2 / + 39 FROM tab0 AS cor0
----
-24
-60
0

query I rowsort
SELECT ALL - col2 + 64 FROM tab2 AS cor0
----
26
37
38

query I rowsort
SELECT ALL - col1 * + 66 + ( + col2 ) FROM tab0 AS cor0
----
-5643
-5924
-6401

query I rowsort
SELECT - cor0.col2 + 80 FROM tab0 AS cor0
----
-2
47
79

query I rowsort
SELECT ALL + + col1 + 41 FROM tab2 AS cor0
----
100
58
72

query I rowsort
SELECT ALL col0 * 10 AS col1 FROM tab2 AS cor0
----
70
780
790

query I rowsort
SELECT ALL - col2 + col0 * + col0 AS col1 FROM tab0
----
1224
543
7839

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8987
SELECT ALL col0 * - CAST( NULL AS SIGNED ) + cor0.col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8987
SELECT ALL col0 * - CAST ( NULL AS INTEGER ) + cor0.col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort
SELECT - + col2 / + CAST ( + col2 AS REAL ) + col0 FROM tab0 AS cor0
----
23
34
88

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col0 * 79 + col0 * col1 col1 FROM tab2 AS cor0
----
-1560
-336
-4898

query I rowsort
SELECT ALL - col0 * 61 AS col2 FROM tab0 AS cor0
----
-1464
-2135
-5429

query I rowsort
SELECT + col2 + 15 AS col0 FROM tab2 cor0
----
41
42
53

query I rowsort
SELECT DISTINCT - col0 * ( + ( + col1 ) ) + col1 FROM tab1 AS cor0
----
-1027
-52
-630

onlyif mysql # use DIV operator for integer division
query I rowsort label-8993
SELECT - col2 DIV 3 FROM tab0 AS cor0
----
-11
-27
0

skipif mysql # not compatible
query I rowsort label-8993
SELECT - col2 / 3 FROM tab0 AS cor0
----
-11
-27
0

query I rowsort
SELECT DISTINCT - 79 FROM tab2, tab2 AS cor0, tab1 cor1, tab0 cor2
----
-79

onlyif mysql # use DIV operator for integer division
query I rowsort label-8995
SELECT - col0 + + col1 DIV - col0 FROM tab2 cor0
----
-11
-78
-79

skipif mysql # not compatible
query I rowsort label-8995
SELECT - col0 + + col1 / - col0 FROM tab2 cor0
----
-11
-78
-79

query I rowsort
SELECT ALL 27 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 1a3cef5c33b8f87ffeded378fd207753

query I rowsort
SELECT DISTINCT ( 69 ) AS col2 FROM tab2, tab2 AS cor0
----
69

query I rowsort
SELECT DISTINCT + 42 AS col1 FROM tab1, tab1 AS cor0, tab0, tab1 AS cor1
----
42

query I rowsort
SELECT - - col1 + + col0 FROM tab2 cor0
----
137
38
96

query I rowsort
SELECT ALL - col2 * 36 AS col1 FROM tab2
----
-1368
-936
-972

query I rowsort
SELECT + tab0.col2 AS col2 FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to 7786718bd8042022537378d40ec87475

query I rowsort
SELECT - - 33 + cor0.col2 FROM tab1 cor0
----
129
87
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + - 59 * - col0 col0 FROM tab2 cor0
----
420
4680
4740

query I rowsort
SELECT + - col2 + + 98 * col1 AS col0 FROM tab2 AS cor0
----
1628
3011
5756

query I rowsort
SELECT + 78 * 57 FROM tab1 AS cor0
----
4446
4446
4446

query I rowsort
SELECT DISTINCT - 47 * col2 + + 56 * col1 AS col2 FROM tab2
----
-834
2082
467

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9007
SELECT col2 * CAST( col0 + col2 AS SIGNED ) * 33 FROM tab2
----
146718
30294
89232

skipif mysql # not compatible
query I rowsort label-9007
SELECT col2 * CAST ( col0 + col2 AS INTEGER ) * 33 FROM tab2
----
146718
30294
89232

query I rowsort
SELECT ALL col2 + + col2 * + col2 AS col2 FROM tab1 AS cor0
----
2970
3306
9312

query I rowsort
SELECT + col2 * + col0 + - cor0.col0 AS col1 FROM tab2 AS cor0
----
182
1950
2923

query I rowsort
SELECT ALL + 63 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to c3eea92c46f2c49716f386a58b575025

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col0 col0 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f

query I rowsort
SELECT ALL + + col1 + + 82 AS col2 FROM tab2 AS cor0
----
113
141
99

query I rowsort
SELECT - + col2 + 81 AS col2 FROM tab2 cor0
----
43
54
55

query I rowsort
SELECT ALL + + 98 FROM tab2, tab1 AS cor0
----
9 values hashing to f9dee8c21116f1aed64ac5160e190809

query I rowsort
SELECT - col0 + - ( + col0 ) FROM tab1 cor0
----
-128
-160
-6

onlyif mysql # use DIV operator for integer division
query I rowsort label-9016
SELECT + col2 DIV - col0 + + col2 AS col1 FROM tab0
----
1
32
82

skipif mysql # not compatible
query I rowsort label-9016
SELECT + col2 / - col0 + + col2 AS col1 FROM tab0
----
1
32
82

query I rowsort
SELECT - col2 * - col2 + tab0.col1 FROM tab0
----
1175
6815
98

query I rowsort
SELECT col2 + col0 + cor0.col0 AS col0 FROM tab2 AS cor0
----
182
196
41

query I rowsort
SELECT + col0 + + col1 * + col0 + - cor0.col0 * col1 AS col2 FROM tab0 AS cor0
----
24
35
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * col1 + col2 * - tab0.col2 * col1 col0 FROM tab0
----
-604422
-90816
0

query I rowsort
SELECT ALL + cor0.col2 + cor0.col0 * col0 * col0 FROM tab1 AS cor0
----
262201
512096
81

query I rowsort
SELECT ALL - cor0.col2 * - col0 FROM tab0 AS cor0
----
35
7298
792

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col0 * + cor0.col0 col0 FROM tab2 AS cor0
----
-49
-6084
-6241

query I rowsort
SELECT ALL - col0 + col2 * + col2 + + cor0.col0 FROM tab0 AS cor0
----
1
1089
6724

query I rowsort
SELECT ALL + cor0.col0 * col2 + cor0.col0 * cor0.col2 FROM tab1 AS cor0
----
15360
324
7296

onlyif mysql # use DIV operator for integer division
query I rowsort label-9026
SELECT - col2 * - col0 + col2 * cor0.col1 + col0 DIV - col0 AS col0 FROM tab2 AS cor0
----
1025
3561
3647

skipif mysql # not compatible
query I rowsort label-9026
SELECT - col2 * - col0 + col2 * cor0.col1 + col0 / - col0 AS col0 FROM tab2 AS cor0
----
1025
3561
3647

query I rowsort
SELECT ALL col2 FROM tab0 cor0 WHERE - col1 + - col1 >= + col0
----

query I rowsort
SELECT col1 * + cor0.col2 * + col0 AS col2 FROM tab1 AS cor0
----
36480
4212
99840

query III rowsort
SELECT * FROM tab2 WHERE ( col2 ) IN ( col2 * - col2 + - col1 )
----

query I rowsort
SELECT cor0.col1 - col0 AS col2 FROM tab0 AS cor0
----
2
62
62

query IIIIII rowsort
SELECT * FROM tab0, tab1 AS cor0 WHERE NULL < ( NULL )
----

query I rowsort
SELECT DISTINCT + col1 * col1 + cor0.col2 FROM tab0 cor0
----
7429
8363
9410

query I rowsort
SELECT + col2 * + col1 * + cor0.col2 AS col1 FROM tab1 AS cor0
----
119808
32490
75816

query I rowsort
SELECT col2 * - col1 + - col1 - col0 FROM tab0
----
-229
-2948
-7642

onlyif mysql # use DIV operator for integer division
query I rowsort label-9035
SELECT + tab1.col1 DIV col1 AS col2 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-9035
SELECT + tab1.col1 / col1 AS col2 FROM tab1
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 - col1 col0 FROM tab2
----
-24
19
62

query I rowsort
SELECT + col1 - + cor0.col1 * + cor0.col2 AS col2 FROM tab0 AS cor0
----
-2752
-7371
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - cor0.col1 + col1 * col1 + - cor0.col1 col0 FROM tab2 AS cor0
----
289
3481
961

query I rowsort
SELECT - 4 * - col0 FROM tab2 AS cor0
----
28
312
316

query I rowsort
SELECT + col2 * + tab2.col1 + col0 + - col1 * tab2.col0 AS col2 FROM tab2
----
-2990
-618
627

query I rowsort
SELECT ALL 58 + + col2 FROM tab2 AS cor0
----
84
85
96

query I rowsort
SELECT tab0.col0 * col2 * col1 FROM tab0
----
3395
664118
68112

query I rowsort
SELECT - tab1.col0 * - col1 + - col1 + - col1 * + col0 AS col1 FROM tab1
----
-10
-13
-26

query I rowsort
SELECT col2 + col2 - col0 FROM tab0
----
-33
42
75

onlyif mysql # use DIV operator for integer division
query I rowsort label-9045
SELECT col2 DIV + tab1.col2 col2 FROM tab1
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9045
SELECT col2 / + tab1.col2 col2 FROM tab1
----
1
1
1

query I rowsort
SELECT + col1 + col0 + col2 FROM tab0
----
133
143
262

onlyif mysql # use DIV operator for integer division
query I rowsort label-9047
SELECT DISTINCT col2 + + col0 - + col2 DIV + col0 AS col2 FROM tab0
----
171
36
56

skipif mysql # not compatible
query I rowsort label-9047
SELECT DISTINCT col2 + + col0 - + col2 / + col0 AS col2 FROM tab0
----
171
36
56

query I rowsort
SELECT - col0 + col0 * + 19 FROM tab2
----
126
1404
1422

onlyif mysql # use DIV operator for integer division
query I rowsort label-9049
SELECT ALL + col0 DIV + col2 + col2 AS col2 FROM tab0
----
33
36
83

skipif mysql # not compatible
query I rowsort label-9049
SELECT ALL + col0 / + col2 + col2 AS col2 FROM tab0
----
33
36
83

query I rowsort
SELECT DISTINCT 35 * col2 + col1 FROM tab2 AS cor0
----
1347
969
976

query I rowsort
SELECT - ( - cor0.col1 ) * - col2 + - col2 FROM tab0 AS cor0
----
-2871
-7544
-98

query I rowsort
SELECT - col2 FROM tab1 WHERE col1 NOT BETWEEN NULL AND NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-9053
SELECT - tab2.col0 DIV - col1 col2 FROM tab2
----
0
1
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9053
SELECT - tab2.col0 / - col1 col2 FROM tab2
----
0
1
4

query I rowsort
SELECT ALL + col2 + tab2.col1 AS col2 FROM tab2
----
55
58
85

query I rowsort
SELECT tab0.col1 - + col0 * tab0.col2 * + col0 FROM tab0
----
-1128
-18922
-649431

query I rowsort
SELECT DISTINCT - col0 + - tab2.col1 * - col1 FROM tab2
----
210
3403
954

query IIIIII rowsort
SELECT ALL * FROM tab0, tab1 cor0 WHERE NULL <= NULL
----

query I rowsort
SELECT + col2 + col2 - + tab1.col0 AS col2 FROM tab1
----
105
112
50

query I rowsort
SELECT DISTINCT col2 FROM tab2 WHERE NULL IN ( col0 + - col2 )
----

query III rowsort
SELECT * FROM tab2 WHERE ( + col0 ) NOT BETWEEN ( NULL ) AND ( NULL )
----

query I rowsort
SELECT ALL tab1.col1 / + col1 AS col1 FROM tab1 WHERE NULL > - col2 * col2
----

query I rowsort
SELECT ALL tab1.col1 AS col2 FROM tab1 WHERE NULL NOT IN ( col2 + + col1 )
----

query I rowsort
SELECT ALL col0 * - tab1.col1 * col0 AS col2 FROM tab1
----
-234
-40960
-83200

query I rowsort
SELECT ALL + col1 AS col2 FROM tab2 WHERE NOT NULL >= ( + col2 * - col1 )
----

query III rowsort
SELECT * FROM tab1 WHERE col1 + - col2 / col1 < ( NULL )
----

query I rowsort
SELECT DISTINCT + col1 FROM tab1 WHERE NOT NULL NOT IN ( + col2 * + col2 )
----

query I rowsort
SELECT + col1 + tab2.col0 * col2 AS col2 FROM tab2 WHERE NOT col0 + + col0 >= + col2 * col1 - col1
----
2087
220
3019

query I rowsort
SELECT ALL col0 * col2 + - col1 AS col1 FROM tab0
----
-62
706
7207

query I rowsort
SELECT col0 + col1 * - tab2.col1 FROM tab2
----
-210
-3403
-954

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab0.col0 - col0 col1 FROM tab0
----
0
0
0

query I rowsort
SELECT ALL col1 * - col2 * col2 FROM tab1
----
-119808
-32490
-75816

query I rowsort
SELECT + 81 * + col2 * - col1 FROM tab1
----
-101088
-113724
-46170

query I rowsort
SELECT col1 * col0 * - ( - 66 ) FROM tab0
----
136224
224070
534534

query I rowsort
SELECT - + 69 + col2 FROM tab1 AS cor0
----
-12
-15
27

query I rowsort
SELECT DISTINCT + col0 * - col1 + cor0.col0 FROM tab1 AS cor0
----
-576
-75
-960

query I rowsort
SELECT DISTINCT col2 + - col1 * - cor0.col0 + col2 AS col1 FROM tab2 AS cor0
----
1419
271
4654

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9077
SELECT DISTINCT col1 + col0 + - CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9077
SELECT DISTINCT col1 + col0 + - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT col0 * col1 * - col0 AS col0 FROM tab0
----
-118825
-49536
-720811

query I rowsort
SELECT ALL col2 * + tab2.col0 * - col1 AS col1 FROM tab2
----
-119652
-51034
-5859

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9080
SELECT - ( col0 ) * CAST( + 57 + col2 AS SIGNED ) AS col2 FROM tab0
----
-12371
-2030
-2160

skipif mysql # not compatible
query I rowsort label-9080
SELECT - ( col0 ) * CAST ( + 57 + col2 AS INTEGER ) AS col2 FROM tab0
----
-12371
-2030
-2160

query I rowsort
SELECT DISTINCT col2 * cor0.col1 + + col0 - - col1 FROM tab1 AS cor0
----
1341
1433
644

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col1 * - ( 71 ) col1 FROM tab1 AS cor0
----
1846
710
923

query I rowsort
SELECT + cor0.col1 * + col2 AS col0 FROM tab2 AS cor0
----
1534
646
837

onlyif mysql # use DIV operator for integer division
query I rowsort label-9084
SELECT ALL + col1 DIV + ( + ( col1 ) ) FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-9084
SELECT ALL + col1 / + ( + ( col1 ) ) FROM tab2 AS cor0
----
1
1
1

query I rowsort
SELECT - - col1 + 76 AS col1 FROM tab1 AS cor0
----
102
86
89

query I rowsort
SELECT DISTINCT + + 14 AS col1 FROM tab0 cor0
----
14

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab1 AS cor0 CROSS JOIN tab0, tab0 AS cor1, tab2 AS cor2
----
3645 values hashing to 71180f9f3efadf0ee3a7fec9678208ad

query I rowsort
SELECT DISTINCT - - ( + col1 ) * cor0.col2 AS col2 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT DISTINCT col2 * - 9 * + col0 + col1 FROM tab2
----
-1670
-18193
-27001

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9090
SELECT ALL + + CAST( + 60 AS SIGNED ) + - col2 FROM tab0 AS cor0
----
-22
27
59

skipif mysql # not compatible
query I rowsort label-9090
SELECT ALL + + CAST ( + 60 AS INTEGER ) + - col2 FROM tab0 AS cor0
----
-22
27
59

query I rowsort
SELECT ALL - 87 * + col2 + col2 * col0 FROM tab0 AS cor0
----
-2079
-52
164

query I rowsort
SELECT - 90 - 65 FROM tab0 AS cor0
----
-155
-155
-155

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 9 * - col0 + col0 col1 FROM tab2 AS cor0
----
-56
-624
-632

query I rowsort
SELECT DISTINCT 72 + - col2 * cor0.col0 FROM tab1 AS cor0
----
-3576
-7608
-90

query I rowsort
SELECT + 40 + + ( + cor0.col0 ) AS col0 FROM tab1 AS cor0
----
104
120
43

query I rowsort
SELECT 59 + 85 FROM tab2 cor0
----
144
144
144

query I rowsort
SELECT DISTINCT - col2 * ( - cor0.col1 + col0 ) FROM tab0 AS cor0
----
164
2046
62

query I rowsort
SELECT DISTINCT - cor0.col2 + col1 AS col2 FROM tab0 cor0
----
53
9
96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9099
SELECT - + col1 + col0 + + CAST( - 60 AS SIGNED ) FROM tab1 AS cor0
----
-6
-83
7

skipif mysql # not compatible
query I rowsort label-9099
SELECT - + col1 + col0 + + CAST ( - 60 AS INTEGER ) FROM tab1 AS cor0
----
-6
-83
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( col0 ) + 94 col2 FROM tab0 cor0
----
118
129
183

query I rowsort
SELECT ALL cor0.col2 * col2 AS col1 FROM tab1 AS cor0
----
2916
3249
9216

query I rowsort
SELECT + - col0 * col1 + col1 AS col1 FROM tab0 cor0
----
-1978
-3298
-8008

query I rowsort
SELECT - tab2.col2 FROM tab0, tab2 AS cor0 CROSS JOIN tab2
----
27 values hashing to f9d4bb8677db7b98c7ed89d06e6e8cd6

query I rowsort
SELECT + 77 + - cor0.col1 FROM tab2 AS cor0
----
18
46
60

query I rowsort
SELECT 13 * - col1 - 68 FROM tab1 AS cor0
----
-198
-237
-406

query I rowsort
SELECT - col0 * col0 + ( 32 * - cor0.col0 ) AS col0 FROM tab2 AS cor0
----
-273
-8580
-8769

query I rowsort
SELECT ALL + - col2 + + col1 * + col2 FROM tab0 AS cor0
----
2805
7380
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-9108
SELECT col0 * col2 * + col0 + + col1 DIV col0 AS col1 FROM tab2 cor0
----
1327
158184
237158

skipif mysql # not compatible
query I rowsort label-9108
SELECT col0 * col2 * + col0 + + col1 / col0 AS col1 FROM tab2 cor0
----
1327
158184
237158

query I rowsort
SELECT 26 + - col2 * - 35 AS col0 FROM tab2
----
1356
936
971

query I rowsort
SELECT col0 * + 13 AS col0 FROM tab1 AS cor0
----
1040
39
832

query I rowsort
SELECT DISTINCT 34 * - cor0.col2 * ( 80 ) FROM tab1, tab2 AS cor0
----
-103360
-70720
-73440

query I rowsort
SELECT + - 84 * col2 AS col1 FROM tab2 cor0
----
-2184
-2268
-3192

query I rowsort
SELECT 2 FROM tab1, tab1 AS cor0, tab0 AS cor1, tab2 AS cor2
----
81 values hashing to 6d1be3904d6870ba21bc766b979d1110

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9114
SELECT + + CAST( - col0 AS SIGNED ) + - cor0.col2 * cor0.col1 AS col0 FROM tab2 AS cor0
----
-1612
-725
-844

skipif mysql # not compatible
query I rowsort label-9114
SELECT + + CAST ( - col0 AS INTEGER ) + - cor0.col2 * cor0.col1 AS col0 FROM tab2 AS cor0
----
-1612
-725
-844

query I rowsort
SELECT ALL - - 84 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cadd876c26338fc58b9297e74fc324d8

query I rowsort
SELECT ALL - 5 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 74665fbb47d5b17da011bca567195b21

query I rowsort
SELECT ALL + ( - col1 * + col1 ) + + col1 AS col1 FROM tab2
----
-272
-3422
-930

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 36 col2 FROM tab2, tab1 AS cor0
----
36

query I rowsort
SELECT DISTINCT ( col2 ) + col0 * - col0 FROM tab0 cor0
----
-1224
-543
-7839

query I rowsort
SELECT + col0 * + 62 + col1 FROM tab1 AS cor0
----
212
3978
4973

query I rowsort
SELECT 12 + col0 * col2 AS col1 FROM tab2 cor0
----
201
2040
3014

query I rowsort
SELECT DISTINCT - 63 * 24 FROM tab1 AS cor0
----
-1512

query I rowsort
SELECT - 17 * 27 FROM tab1 AS cor0
----
-459
-459
-459

onlyif mysql # use DIV operator for integer division
query I rowsort label-9124
SELECT ALL + tab0.col1 DIV 92 - + tab0.col0 FROM tab0
----
-24
-34
-89

skipif mysql # not compatible
query I rowsort label-9124
SELECT ALL + tab0.col1 / 92 - + tab0.col0 FROM tab0
----
-24
-34
-89

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9125
SELECT ALL CAST( NULL AS SIGNED ) * cor0.col0 * tab2.col2 FROM tab2, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-9125
SELECT ALL CAST ( NULL AS INTEGER ) * cor0.col0 * tab2.col2 FROM tab2, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT + col0 - ( ( - col2 ) ) * - col1 * col0 AS col1 FROM tab0 AS cor0
----
-3360
-664029
-68088

query I rowsort
SELECT - col0 + ( - cor0.col2 ) AS col2 FROM tab1 cor0
----
-121
-176
-57

query I rowsort
SELECT ALL tab2.col2 - col0 AS col2 FROM tab2
----
-41
-52
20

query I rowsort
SELECT tab0.col1 * - tab0.col1 AS col2 FROM tab0
----
-7396
-8281
-9409

query I rowsort
SELECT + 91 + 5 FROM tab1 AS cor0
----
96
96
96

query I rowsort
SELECT DISTINCT - - col2 + + col1 * + col2 * - col1 AS col1 FROM tab1 AS cor0
----
-16128
-36450
-5643

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9132
SELECT - + 24 + - 71 * + col1 + CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9132
SELECT - + 24 + - 71 * + col1 + CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-9133
SELECT DISTINCT - ( + col0 ) + col1 DIV - col0 FROM tab0 cor0
----
-27
-37
-90

skipif mysql # not compatible
query I rowsort label-9133
SELECT DISTINCT - ( + col0 ) + col1 / - col0 FROM tab0 cor0
----
-27
-37
-90

query I rowsort
SELECT + + cor0.col1 * + col2 AS col2 FROM tab1 cor0
----
1248
1404
570

query I rowsort
SELECT ALL - col1 + 68 * - col2 AS col0 FROM tab2 AS cor0
----
-1827
-1867
-2601

query I rowsort
SELECT - col1 * 36 AS col1 FROM tab2 AS cor0
----
-1116
-2124
-612

query I rowsort
SELECT 10 * col2 + + ( + col1 ) FROM tab2 AS cor0
----
301
319
397

query I rowsort
SELECT - 80 * tab0.col0 + + tab0.col1 AS col0 FROM tab0
----
-1834
-2703
-7029

query I rowsort
SELECT col2 - - tab0.col2 FROM tab0
----
164
2
66

query I rowsort
SELECT 8 + col0 AS col0 FROM tab0
----
32
43
97

query I rowsort
SELECT 32 * cor0.col2 FROM tab1 AS cor0
----
1728
1824
3072

query I rowsort
SELECT - col0 * col2 + + 17 AS col2 FROM tab0 AS cor0
----
-18
-7281
-775

query I rowsort
SELECT col2 * 32 + + col0 * cor0.col0 FROM tab0 AS cor0
----
10545
1257
1632

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col2 * + col2 col0 FROM tab0 AS cor0
----
-1
-1089
-6724

query I rowsort
SELECT ALL - + col2 * - ( cor0.col1 ) * + col1 FROM tab0 AS cor0
----
244068
679042
9409

onlyif mysql # use DIV operator for integer division
query I rowsort label-9146
SELECT - col1 * col0 + ( - cor0.col0 ) DIV CAST( col2 AS SIGNED ) - col1 * ( - col0 ) FROM tab1 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-9146
SELECT - col1 * col0 + ( - cor0.col0 ) / CAST ( col2 AS INTEGER ) - col1 * ( - col0 ) FROM tab1 AS cor0
----
-1
0
0

query I rowsort
SELECT - col1 + 30 * col1 - col0 AS col1 FROM tab1 AS cor0
----
226
297
751

query I rowsort
SELECT + col0 * + col1 * col0 + + col1 * ( col2 ) FROM tab1 AS cor0
----
1638
41530
84448

query I rowsort
SELECT - tab2.col2 FROM tab2, tab0, tab1 cor0
----
27 values hashing to f9d4bb8677db7b98c7ed89d06e6e8cd6

query I rowsort
SELECT DISTINCT + - col0 * - col0 + + col0 FROM tab0 AS cor0
----
1260
600
8010

query I rowsort
SELECT col2 * + ( - 88 ) AS col1 FROM tab2 AS cor0
----
-2288
-2376
-3344

query I rowsort
SELECT ALL - + col1 * - col2 + cor0.col0 FROM tab0 AS cor0
----
132
2862
7551

onlyif mysql # use DIV operator for integer division
query I rowsort label-9153
SELECT - col0 DIV col1 + tab2.col1 - tab2.col2 AS col1 FROM tab2
----
-25
32
4

skipif mysql # not compatible
query I rowsort label-9153
SELECT - col0 / col1 + tab2.col1 - tab2.col2 AS col1 FROM tab2
----
-25
32
4

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9154
SELECT col2 * + CAST( - col2 AS SIGNED ) + col0 AS col2 FROM tab2
----
-1365
-598
-722

skipif mysql # not compatible
query I rowsort label-9154
SELECT col2 * + CAST ( - col2 AS INTEGER ) + col0 AS col2 FROM tab2
----
-1365
-598
-722

query I rowsort
SELECT + col0 - col2 * col0 AS col2 FROM tab2
----
-182
-1950
-2923

onlyif mysql # use DIV operator for integer division
query I rowsort label-9156
SELECT DISTINCT col0 * col1 DIV + tab2.col0 - + col2 AS col0 FROM tab2
----
-21
33
4

skipif mysql # not compatible
query I rowsort label-9156
SELECT DISTINCT col0 * col1 / + tab2.col0 - + col2 AS col0 FROM tab2
----
-21
33
4

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9157
SELECT tab1.col2 * CAST( - 11 AS SIGNED ) FROM tab1
----
-1056
-594
-627

skipif mysql # not compatible
query I rowsort label-9157
SELECT tab1.col2 * CAST ( - 11 AS INTEGER ) FROM tab1
----
-1056
-594
-627

onlyif mysql # use DIV operator for integer division
query I rowsort label-9158
SELECT DISTINCT + - 34 DIV ( col0 ) FROM tab0 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-9158
SELECT DISTINCT + - 34 / ( col0 ) FROM tab0 AS cor0
----
-1
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-9159
SELECT + col2 DIV - 50 + col1 FROM tab0 AS cor0
----
86
90
97

skipif mysql # not compatible
query I rowsort label-9159
SELECT + col2 / - 50 + col1 FROM tab0 AS cor0
----
86
90
97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9160
SELECT DISTINCT + 62 * - col1 + - col1 * CAST( 28 AS SIGNED ) FROM tab2 AS cor0
----
-1530
-2790
-5310

skipif mysql # not compatible
query I rowsort label-9160
SELECT DISTINCT + 62 * - col1 + - col1 * CAST ( 28 AS INTEGER ) FROM tab2 AS cor0
----
-1530
-2790
-5310

query I rowsort
SELECT col2 * - 46 + + 80 * + col1 * - 80 + ( col1 ) * - col2 AS col2 FROM tab0
----
-554756
-593634
-620943

query I rowsort
SELECT - tab0.col0 * col2 + + col2 * + col1 + - col2 AS col2 FROM tab0
----
2013
61
82

onlyif mysql # use DIV operator for integer division
query I rowsort label-9163
SELECT col2 + CAST( - col1 + col2 AS SIGNED ) DIV col1 FROM tab2
----
26
27
39

skipif mysql # not compatible
query I rowsort label-9163
SELECT col2 + CAST ( - col1 + col2 AS INTEGER ) / col1 FROM tab2
----
26
27
39

query I rowsort
SELECT DISTINCT + col1 + col2 * + ( - ( cor0.col2 ) ) FROM tab1 AS cor0
----
-2890
-3239
-9203

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9165
SELECT DISTINCT + + 23 + col1 * CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9165
SELECT DISTINCT + + 23 + col1 * CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL col2 + - col1 * 39 + + col0 AS col1 FROM tab1 AS cor0
----
-269
-331
-957

query I rowsort
SELECT ALL + - col2 * col0 AS col1 FROM tab1 cor0
----
-162
-3648
-7680

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 16 col1 FROM tab1 AS cor0
----
-16
-16
-16

query I rowsort
SELECT DISTINCT + - col1 - - cor0.col0 AS col2 FROM tab1 cor0
----
-23
54
67

onlyif mysql # use DIV operator for integer division
query I rowsort label-9170
SELECT ALL col0 DIV + ( col2 ) + + col0 + col2 FROM tab1
----
122
176
57

skipif mysql # not compatible
query I rowsort label-9170
SELECT ALL col0 / + ( col2 ) + + col0 + col2 FROM tab1
----
122
176
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 85 * col0 col1 FROM tab2
----
595
6630
6715

query I rowsort
SELECT + 97 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 5e0d31ac41981bcdf6a665538a71a09c

onlyif mysql # use DIV operator for integer division
query I rowsort label-9173
SELECT + col2 DIV col0 + col1 FROM tab2
----
17
34
59

skipif mysql # not compatible
query I rowsort label-9173
SELECT + col2 / col0 + col1 FROM tab2
----
17
34
59

query I rowsort
SELECT + col0 + + col0 * + col1 AS col2 FROM tab1
----
1120
704
81

query I rowsort
SELECT ALL + 48 + - cor0.col1 AS col1 FROM tab1 AS cor0
----
22
35
38

query I rowsort
SELECT DISTINCT 81 * + col2 FROM tab2 AS cor0
----
2106
2187
3078

onlyif mysql # use DIV operator for integer division
query I rowsort label-9177
SELECT - + 1 DIV col0 AS col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9177
SELECT - + 1 / col0 AS col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT - 52 AS col2 FROM tab0 AS cor0
----
-52
-52
-52

query I rowsort
SELECT + cor0.col1 * + 29 FROM tab0, tab0 cor0
----
9 values hashing to 4eb71ac41c5d02ee554fbd0268373e89

query I rowsort
SELECT + 87 + + col1 * col2 * ( + col2 + + col2 ) AS col1 FROM tab0 AS cor0
----
1223855
187395
281

onlyif mysql # use DIV operator for integer division
query I rowsort label-9181
SELECT ALL 21 * + col0 * - col1 + col0 DIV - col0 - col0 AS col1 FROM tab2 AS cor0
----
-28283
-4565
-96721

skipif mysql # not compatible
query I rowsort label-9181
SELECT ALL 21 * + col0 * - col1 + col0 / - col0 - col0 AS col1 FROM tab2 AS cor0
----
-28283
-4565
-96721

query I rowsort
SELECT - col2 * col0 + - cor0.col0 FROM tab1 AS cor0
----
-165
-3712
-7760

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2 cor0 CROSS JOIN tab1, tab2 AS cor1, tab0 cor2, tab2 AS cor3
----
3645 values hashing to 6a08afba67ce3272fad6d766e76c67f0

query I rowsort
SELECT DISTINCT + col1 + - 11 * + 78 FROM tab2
----
-799
-827
-841

query I rowsort
SELECT ( col2 ) + col0 * col1 FROM tab1
----
1136
132
697

query I rowsort
SELECT - + tab2.col2 * tab2.col0 AS col2 FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to b0121644d0817627bc8036c50f8e780d

onlyif mysql # use DIV operator for integer division
query I rowsort label-9187
SELECT DISTINCT + 51 DIV + col2 + - col0 * + col2 FROM tab1 AS cor0
----
-162
-3648
-7680

skipif mysql # not compatible
query I rowsort label-9187
SELECT DISTINCT + 51 / + col2 + - col0 * + col2 FROM tab1 AS cor0
----
-162
-3648
-7680

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9188
SELECT DISTINCT CAST( ( - col2 ) * + col2 AS SIGNED ) FROM tab2
----
-1444
-676
-729

skipif mysql # not compatible
query I rowsort label-9188
SELECT DISTINCT CAST ( ( - col2 ) * + col2 AS INTEGER ) FROM tab2
----
-1444
-676
-729

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9189
SELECT 49 * + col1 + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9189
SELECT 49 * + col1 + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9190
SELECT + 12 * col2 + CAST( NULL AS SIGNED ) * ( tab2.col2 ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9190
SELECT + 12 * col2 + CAST ( NULL AS INTEGER ) * ( tab2.col2 ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - tab0.col2 AS col0 FROM tab0, tab1, tab1 AS cor0, tab2
----
81 values hashing to 87af467938ef355540b8de24db1bf3b8

query I rowsort
SELECT DISTINCT - 21 FROM tab1, tab0, tab0 AS cor0
----
-21

query I rowsort
SELECT ALL + 70 * col2 AS col2 FROM tab2
----
1820
1890
2660

onlyif mysql # use DIV operator for integer division
query I rowsort label-9194
SELECT DISTINCT ( + col2 ) DIV - col0 AS col0 FROM tab2
----
-3
0

skipif mysql # not compatible
query I rowsort label-9194
SELECT DISTINCT ( + col2 ) / - col0 AS col0 FROM tab2
----
-3
0

query I rowsort
SELECT ALL - 3 * - col1 FROM tab2
----
177
51
93

query I rowsort
SELECT col2 * + 74 AS col0 FROM tab1
----
3996
4218
7104

query I rowsort
SELECT col1 + 19 AS col1 FROM tab0 AS cor0
----
105
110
116

query I rowsort
SELECT - - col0 * cor0.col0 * col0 - col2 * 67 FROM tab0 AS cor0
----
11613
42808
699475

query I rowsort
SELECT DISTINCT + col2 * col1 + col0 + + col1 * - col2 AS col0 FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT + col2 - 25 AS col0 FROM tab0 AS cor0
----
-24
57
8

onlyif mysql # use DIV operator for integer division
query I rowsort label-9201
SELECT ALL + col0 DIV 85 + col0 FROM tab0 AS cor0
----
24
35
90

skipif mysql # not compatible
query I rowsort label-9201
SELECT ALL + col0 / 85 + col0 FROM tab0 AS cor0
----
24
35
90

query I rowsort
SELECT + col2 * 36 - 37 * col0 FROM tab0 AS cor0
----
-1259
-341
300

onlyif mysql # use DIV operator for integer division
query I rowsort label-9203
SELECT + - col1 DIV col1 - col2 * - col0 * - ( + col0 ) FROM tab2 AS cor0
----
-1324
-158185
-237159

skipif mysql # not compatible
query I rowsort label-9203
SELECT + - col1 / col1 - col2 * - col0 * - ( + col0 ) FROM tab2 AS cor0
----
-1324
-158185
-237159

query I rowsort
SELECT ALL - col1 * col0 * col0 AS col1 FROM tab2 AS cor0
----
-106097
-1519
-358956

query I rowsort
SELECT DISTINCT - col0 * - 90 + col0 + + col0 * ( + col0 + cor0.col1 ) AS col2 FROM tab2 AS cor0
----
14773
17784
903

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9206
SELECT ALL - col2 - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9206
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-9207
SELECT DISTINCT col1 * - CAST( NULL AS DECIMAL ) + - col1 + col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9207
SELECT DISTINCT col1 * - CAST ( NULL AS REAL ) + - col1 + col0 FROM tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - 31 col2 FROM tab2 AS cor0
----
217
2418
2449

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9209
SELECT DISTINCT + + col0 * CAST( NULL AS DECIMAL ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9209
SELECT DISTINCT + + col0 * CAST ( NULL AS REAL ) AS col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL + col1 * col1 * 89 AS col1 FROM tab2
----
25721
309809
85529

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9211
SELECT - CAST( NULL AS SIGNED ) * 26 FROM tab0, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-9211
SELECT - CAST ( NULL AS INTEGER ) * 26 FROM tab0, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT ALL tab1.col2 * col0 FROM tab1
----
162
3648
7680

query I rowsort
SELECT - col0 * ( ( col2 ) ) AS col0 FROM tab2 AS cor0
----
-189
-2028
-3002

onlyif mysql # use DIV operator for integer division
query I rowsort label-9214
SELECT col1 DIV + 61 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9214
SELECT col1 / + 61 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT + col2 * ( ( col2 ) ) AS col1 FROM tab2 AS cor0
----
1444
676
729

query I rowsort
SELECT col2 + + 6 - - cor0.col1 AS col0 FROM tab1 cor0
----
115
73
86

query I rowsort
SELECT - + 57 + - 93 * - col0 AS col1 FROM tab1 AS cor0
----
222
5895
7383

query I rowsort
SELECT ALL + - col1 + col0 * col0 AS col0 FROM tab1 AS cor0
----
-17
4086
6387

query I rowsort
SELECT + 37 + - col2 + + col2 * 19 AS col1 FROM tab2 AS cor0
----
505
523
721

query I rowsort
SELECT DISTINCT - cor0.col1 * col0 + col1 FROM tab1 AS cor0
----
-1027
-52
-630

query I rowsort
SELECT ALL - ( 71 ) FROM tab2 cor0
----
-71
-71
-71

query I rowsort
SELECT + - 35 * - col0 * - col1 FROM tab0 AS cor0
----
-118825
-283465
-72240

query I rowsort
SELECT ALL tab1.col0 + - ( 85 ) + col1 * ( - col0 + + col2 ) FROM tab1
----
-91
1244
203

query I rowsort
SELECT - 94 - col2 * col1 AS col0 FROM tab2 AS cor0
----
-1628
-740
-931

query I rowsort
SELECT + ( - 45 ) - cor0.col0 FROM tab1 cor0
----
-109
-125
-48

query I rowsort
SELECT - + 41 * - col2 + col2 * + 81 + + 77 AS col2 FROM tab2 AS cor0
----
3249
3371
4713

query I rowsort
SELECT ALL + 48 * col0 FROM tab0 cor0
----
1152
1680
4272

onlyif mysql # use DIV operator for integer division
query I rowsort label-9228
SELECT - col1 + + col0 DIV - col0 col1 FROM tab0 AS cor0
----
-87
-92
-98

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9228
SELECT - col1 + + col0 / - col0 col1 FROM tab0 AS cor0
----
-87
-92
-98

query I rowsort
SELECT + - col2 * col1 * + ( - ( + col2 ) ) AS col0 FROM tab1 AS cor0
----
119808
32490
75816

query I rowsort
SELECT - 61 + col1 AS col1 FROM tab2 AS cor0
----
-2
-30
-44

onlyif mysql # use DIV operator for integer division
query I rowsort label-9231
SELECT 64 DIV col1 AS col0 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9231
SELECT 64 / col1 AS col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT + col0 * + ( - col1 + - col1 ) * 37 FROM tab0 AS cor0
----
-152736
-251230
-599326

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9233
SELECT ( + col2 ) * CAST( NULL AS SIGNED ) + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9233
SELECT ( + col2 ) * CAST ( NULL AS INTEGER ) + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + - col0 * - col1 + ( col0 ) AS col0 FROM tab2 AS cor0
----
1422
224
4680

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 7 * - col2 col0 FROM tab0 cor0
----
231
574
7

onlyif mysql # use DIV operator for integer division
query I rowsort label-9236
SELECT DISTINCT - col2 DIV col2 + - col0 FROM tab0 AS cor0
----
-25
-36
-90

skipif mysql # not compatible
query I rowsort label-9236
SELECT DISTINCT - col2 / col2 + - col0 FROM tab0 AS cor0
----
-25
-36
-90

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + + col1 * col1 * - ( ( col1 ) ) + - CAST ( + 52 AS REAL ) * + col0 FROM tab2 AS cor0
----
-209435
-30155
-9021

query I rowsort
SELECT ALL + - col0 + col2 * 75 FROM tab1 AS cor0
----
4047
4211
7120

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9239
SELECT - - ( col0 ) / + CAST( NULL AS SIGNED ) - - ( - col0 ) * 95 col2 FROM tab0 cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9239
SELECT - - ( col0 ) / + CAST ( NULL AS INTEGER ) - - ( - col0 ) * 95 col2 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col2 - cor0.col1 AS col2 FROM tab0 AS cor0
----
-119
-173
-98

onlyif mysql # use DIV operator for integer division
query I rowsort label-9241
SELECT ALL - col2 DIV col2 col0 FROM tab0 AS cor0
----
-1
-1
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9241
SELECT ALL - col2 / col2 col0 FROM tab0 AS cor0
----
-1
-1
-1

query I rowsort
SELECT ALL + - 11 * col2 + 2 FROM tab0 AS cor0
----
-361
-9
-900

onlyif mysql # use DIV operator for integer division
query I rowsort label-9243
SELECT ALL 90 - col0 DIV - col1 AS col0 FROM tab0
----
90
90
90

skipif mysql # not compatible
query I rowsort label-9243
SELECT ALL 90 - col0 / - col1 AS col0 FROM tab0
----
90
90
90

query I rowsort
SELECT 27 - col1 FROM tab1
----
1
14
17

query I rowsort
SELECT - cor0.col1 - + cor0.col1 * - 28 FROM tab1 AS cor0
----
270
351
702

query I rowsort
SELECT ALL 24 + col0 AS col2 FROM tab0 AS cor0
----
113
48
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 29 col2 FROM tab2 AS cor0
----
29
29
29

query I rowsort
SELECT DISTINCT - 43 - col1 AS col2 FROM tab0 AS cor0
----
-129
-134
-140

query I rowsort
SELECT ALL - col2 - + col0 * col0 FROM tab0
----
-1226
-609
-8003

query I rowsort
SELECT DISTINCT col0 * - col2 + col1 AS col1 FROM tab2
----
-158
-1969
-2985

query I rowsort
SELECT ALL + cor0.col0 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a

query I rowsort
SELECT 95 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 14faa6dda52e3dfe1f5db2579c274a7e

query I rowsort
SELECT DISTINCT + tab2.col1 + + col1 + + tab2.col1 * - col2 AS col1 FROM tab2
----
-1416
-612
-775

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9254
SELECT - col2 + CAST( - col0 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-171
-36
-57

skipif mysql # not compatible
query I rowsort label-9254
SELECT - col2 + CAST ( - col0 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-171
-36
-57

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0 cor0 CROSS JOIN tab0, tab2 AS cor1, tab1 AS cor2
----
972 values hashing to 92235dbc382d83baa93d6546ed489b0c

query I rowsort
SELECT col0 * col0 * 98 - - col2 FROM tab1
----
401465
627296
936

query I rowsort
SELECT + 34 + col2 AS col1 FROM tab1 cor0
----
130
88
91

query I rowsort
SELECT ALL - 10 + 81 FROM tab0 AS cor0
----
71
71
71

query I rowsort
SELECT - + 79 * + col2 + + col2 FROM tab0 AS cor0
----
-2574
-6396
-78

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9260
SELECT CAST( 32 AS SIGNED ) FROM tab0
----
32
32
32

skipif mysql # not compatible
query I rowsort label-9260
SELECT CAST ( 32 AS INTEGER ) FROM tab0
----
32
32
32

query IIIIIIIIIIIIIIIIII rowsort
SELECT * FROM tab2, tab0 AS cor0 CROSS JOIN tab0, tab2 cor1, tab1, tab2 cor2
----
13122 values hashing to e89fa5492a9d8cf9d73608fe00da29d4

query I rowsort
SELECT + - 29 * col0 AS col0 FROM tab2 AS cor0
----
-203
-2262
-2291

query I rowsort
SELECT DISTINCT + 82 + col1 * + col1 FROM tab1 AS cor0
----
182
251
758

query I rowsort
SELECT ALL + 79 * cor0.col2 FROM tab1 AS cor0
----
4266
4503
7584

query I rowsort
SELECT + 60 + - col2 + - col1 FROM tab1 AS cor0
----
-20
-49
-7

query I rowsort
SELECT DISTINCT + col0 + - cor0.col0 AS col2 FROM tab1 AS cor0
----
0

query I rowsort
SELECT ALL + + 98 * col1 FROM tab2 AS cor0
----
1666
3038
5782

query I rowsort
SELECT ( + col2 ) * - col0 AS col0 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT + 2 * + col0 * col1 FROM tab2 AS cor0
----
2686
434
9204

query I rowsort
SELECT ALL - - col2 + + col0 * col1 FROM tab2 AS cor0
----
1381
244
4628

query I rowsort
SELECT - col1 + + col2 * cor0.col0 AS col1 FROM tab0 AS cor0
----
-62
706
7207

query I rowsort
SELECT 30 FROM tab0, tab1 cor0
----
9 values hashing to da5de0c411a2c0f445400f1b63ea9f89

onlyif mysql # use DIV operator for integer division
query I rowsort label-9273
SELECT + - col0 DIV - col2 + col0 FROM tab1 cor0
----
3
65
80

skipif mysql # not compatible
query I rowsort label-9273
SELECT + - col0 / - col2 + col0 FROM tab1 cor0
----
3
65
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-9274
SELECT DISTINCT - - col2 DIV - col2 AS col0 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-9274
SELECT DISTINCT - - col2 / - col2 AS col0 FROM tab1 AS cor0
----
-1

query I rowsort
SELECT DISTINCT + col2 + + 75 AS col2 FROM tab0 AS cor0
----
108
157
76

query I rowsort
SELECT DISTINCT col0 + - 65 AS col0 FROM tab2
----
-58
13
14

query I rowsort
SELECT DISTINCT - col0 + 42 * - 21 * - cor0.col0 AS col1 FROM tab1 AS cor0
----
2643
56384
70480

query I rowsort
SELECT + - cor0.col2 * col0 - - 30 FROM tab0 AS cor0
----
-5
-7268
-762

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 * cor0.col1 + col0 * col2 * col2 col0 FROM tab0 AS cor0
----
33532
606717
9444

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9280
SELECT DISTINCT + col2 * + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9280
SELECT DISTINCT + col2 * + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT col2 + + cor0.col1 * col2 FROM tab1 cor0
----
1344
1458
627

query I rowsort
SELECT DISTINCT - - col2 * col0 + col0 + col2 FROM tab0 AS cor0
----
71
7469
849

query I rowsort
SELECT ALL col1 * - col1 + 14 AS col0 FROM tab1 AS cor0
----
-155
-662
-86

query I rowsort
SELECT DISTINCT + 48 * col0 FROM tab2 cor0
----
336
3744
3792

onlyif mysql # use DIV operator for integer division
query I rowsort label-9285
SELECT - col0 + col0 * - col0 * 44 + + col0 DIV col0 FROM tab1 AS cor0
----
-180287
-281679
-398

skipif mysql # not compatible
query I rowsort label-9285
SELECT - col0 + col0 * - col0 * 44 + + col0 / col0 FROM tab1 AS cor0
----
-180287
-281679
-398

query I rowsort
SELECT DISTINCT col1 + 2 AS col0 FROM tab0
----
88
93
99

query I rowsort
SELECT - col0 - 50 AS col1 FROM tab1
----
-114
-130
-53

query I rowsort
SELECT DISTINCT 79 + - col0 FROM tab1 AS cor0
----
-1
15
76

query I rowsort
SELECT DISTINCT + 51 AS col2 FROM tab1 AS cor0
----
51

query I rowsort
SELECT + 31 * 34 * + col1 + 31 AS col0 FROM tab2 AS cor0
----
17949
32705
62217

query I rowsort
SELECT 45 * + ( tab2.col1 * + 2 ) AS col1 FROM tab2, tab2 cor0
----
9 values hashing to f00dee560c4c08b4a610d7c865bef9ab

query I rowsort
SELECT cor0.col0 * col1 + col2 AS col0 FROM tab0 AS cor0
----
2097
3396
8181

query I rowsort
SELECT 7 * tab0.col2 FROM tab0
----
231
574
7

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9294
SELECT - cor0.col0 * col0 + CAST( + 56 + col1 AS SIGNED ) * + col1 FROM tab1 cor0
----
-3436
-5503
2123

skipif mysql # not compatible
query I rowsort label-9294
SELECT - cor0.col0 * col0 + CAST ( + 56 + col1 AS INTEGER ) * + col1 FROM tab1 cor0
----
-3436
-5503
2123

query I rowsort
SELECT + - 9 + cor0.col2 FROM tab1 cor0
----
45
48
87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * ( 44 ) + col0 col0 FROM tab0 AS cor0
----
-1032
-1505
-3827

query I rowsort
SELECT - + col2 + + 31 AS col2 FROM tab1 AS cor0
----
-23
-26
-65

query I rowsort
SELECT ALL 4 + col0 + - 6 AS col1 FROM tab0
----
22
33
87

query I rowsort
SELECT + col0 + + 6 * + 94 FROM tab2 AS cor0
----
571
642
643

query I rowsort
SELECT col2 * + col2 + + 86 FROM tab1 AS cor0
----
3002
3335
9302

query I rowsort
SELECT col0 * + ( - col2 * + col2 ) FROM tab1 AS cor0
----
-207936
-737280
-8748

onlyif mysql # use DIV operator for integer division
query I rowsort label-9302
SELECT - col0 * 50 + - col2 DIV cor0.col0 AS col2 FROM tab1 AS cor0
----
-168
-3200
-4001

skipif mysql # not compatible
query I rowsort label-9302
SELECT - col0 * 50 + - col2 / cor0.col0 AS col2 FROM tab1 AS cor0
----
-168
-3200
-4001

query I rowsort
SELECT ALL 82 AS col2 FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to 99920d9f7cd9cdccef99cfa459ae6944

query I rowsort
SELECT col2 * col0 + 98 * col0 * + col0 AS col2 FROM tab2
----
4991
598260
614620

query I rowsort
SELECT - col0 * - col2 + - col0 FROM tab1
----
159
3584
7600

query I rowsort
SELECT ALL + ( col0 ) + - tab2.col1 AS col2 FROM tab2
----
-24
19
62

query I rowsort
SELECT 9 * 32 AS col1 FROM tab2 AS cor0
----
288
288
288

query I rowsort
SELECT DISTINCT - - 95 + 52 + - col1 FROM tab0 cor0
----
50
56
61

query I rowsort
SELECT - 55 * - 1 AS col1 FROM tab0 AS cor0
----
55
55
55

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 65 * col0 col1 FROM tab2 cor0
----
-455
-5070
-5135

query I rowsort
SELECT ( - 94 ) FROM tab0 AS cor0
----
-94
-94
-94

query I rowsort
SELECT ALL + + ( col2 ) + cor0.col1 FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT DISTINCT - 62 * col1 + cor0.col2 + ( + col0 ) FROM tab0 AS cor0
----
-5275
-5471
-5978

query I rowsort
SELECT ALL + 15 + + col1 FROM tab0 AS cor0
----
101
106
112

query I rowsort
SELECT DISTINCT + tab1.col1 * + 55 * - col2 AS col2 FROM tab1
----
-31350
-68640
-77220

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 20 col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 2fdd942fe0307a6ff66b63004ef102c4

query I rowsort
SELECT cor0.col1 * + col0 + + col2 FROM tab1 cor0
----
1136
132
697

query I rowsort
SELECT DISTINCT - + col1 + + col1 AS col0 FROM tab0 AS cor0
----
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9319
SELECT ALL + CAST( col0 AS SIGNED ) * col2 * CAST( col0 AS SIGNED ) + col1 * + col2 FROM tab1 AS cor0
----
1890
234042
615648

skipif mysql # not compatible
query I rowsort label-9319
SELECT ALL + CAST ( col0 AS INTEGER ) * col2 * CAST ( col0 AS INTEGER ) + col1 * + col2 FROM tab1 AS cor0
----
1890
234042
615648

query I rowsort
SELECT ALL - ( - col2 ) FROM tab2 cor0
----
26
27
38

query I rowsort
SELECT + - col1 * + cor0.col2 AS col0 FROM tab0 cor0
----
-2838
-7462
-97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9322
SELECT ALL + CAST( - 71 AS SIGNED ) + - col1 * col0 * + col0 AS col1 FROM tab1 AS cor0
----
-305
-41031
-83271

skipif mysql # not compatible
query I rowsort label-9322
SELECT ALL + CAST ( - 71 AS INTEGER ) + - col1 * col0 * + col0 AS col1 FROM tab1 AS cor0
----
-305
-41031
-83271

query I rowsort
SELECT DISTINCT - + col1 * col0 * + col1 + - col2 FROM tab0 AS cor0
----
-177537
-329316
-737091

query I rowsort
SELECT ALL - ( 28 ) - col0 FROM tab0 AS cor0
----
-117
-52
-63

query I rowsort
SELECT + col1 * + col0 * - col0 AS col2 FROM tab1 AS cor0
----
-234
-40960
-83200

query I rowsort
SELECT DISTINCT - ( tab1.col1 * col0 ) AS col2 FROM tab1
----
-1040
-640
-78

query I rowsort
SELECT col2 + - col2 * col1 FROM tab1 AS cor0
----
-1152
-1350
-513

query I rowsort
SELECT + 73 + + col0 AS col0 FROM tab2 cor0
----
151
152
80

query I rowsort
SELECT ALL ( - col0 ) * tab2.col0 FROM tab2
----
-49
-6084
-6241

query I rowsort
SELECT ALL col0 * ( col1 + - col2 * + col0 ) FROM tab0
----
-16944
-641423
2170

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9331
SELECT DISTINCT + CAST( 10 AS SIGNED ) * + col2 * col1 FROM tab1
----
12480
14040
5700

skipif mysql # not compatible
query I rowsort label-9331
SELECT DISTINCT + CAST ( 10 AS INTEGER ) * + col2 * col1 FROM tab1
----
12480
14040
5700

query I rowsort
SELECT ALL ( col2 + col2 ) AS col1 FROM tab1
----
108
114
192

query I rowsort
SELECT - tab0.col2 * col1 + - col0 AS col0 FROM tab0
----
-132
-2862
-7551

query I rowsort
SELECT + cor0.col0 + - col0 * cor0.col1 FROM tab2 AS cor0
----
-1264
-210
-4524

query I rowsort
SELECT 41 * + col1 AS col2 FROM tab2 AS cor0
----
1271
2419
697

query I rowsort
SELECT + + 45 * + col0 + - col0 FROM tab0 AS cor0
----
1056
1540
3916

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 67 col2 FROM tab0 AS cor0
----
-67
-67
-67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab0.col0 * ( + 38 + + tab0.col2 ) col0 FROM tab0
----
10680
1365
1704

query I rowsort
SELECT DISTINCT col1 + ( col1 ) FROM tab0 cor0
----
172
182
194

query I rowsort
SELECT DISTINCT - col0 * 41 * 20 FROM tab1
----
-2460
-52480
-65600

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9341
SELECT cor0.col2 * CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9341
SELECT cor0.col2 * CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-9342
SELECT - - col0 + 53 DIV - ( - col1 ) AS col0 FROM tab0 AS cor0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-9342
SELECT - - col0 + 53 / - ( - col1 ) AS col0 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT DISTINCT + col2 * + ( col0 ) FROM tab2 AS cor0
----
189
2028
3002

onlyif mysql # use DIV operator for integer division
query I rowsort label-9344
SELECT ALL - col2 + col2 DIV - 35 FROM tab2 AS cor0
----
-26
-27
-39

skipif mysql # not compatible
query I rowsort label-9344
SELECT ALL - col2 + col2 / - 35 FROM tab2 AS cor0
----
-26
-27
-39

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab1 cor0, tab0 AS cor1, tab2, tab0 AS cor2
----
3645 values hashing to 283f1c907a0999dbd972d3bd45746c06

query I rowsort
SELECT DISTINCT + - 78 + + cor0.col0 AS col1 FROM tab0 AS cor0
----
-43
-54
11

query I rowsort
SELECT + col0 * 59 + + col1 FROM tab0
----
1502
2162
5342

onlyif mysql # use DIV operator for integer division
query I rowsort label-9348
SELECT - ( + 34 ) DIV col1 + col2 AS col1 FROM tab2 AS cor0
----
26
26
36

skipif mysql # not compatible
query I rowsort label-9348
SELECT - ( + 34 ) / col1 + col2 AS col1 FROM tab2 AS cor0
----
26
26
36

query I rowsort
SELECT + col2 * + 44 AS col0 FROM tab0 AS cor0
----
1452
3608
44

query I rowsort
SELECT DISTINCT - col2 * + 81 FROM tab2 AS cor0
----
-2106
-2187
-3078

query I rowsort
SELECT DISTINCT col1 * + 44 FROM tab0 AS cor0
----
3784
4004
4268

query I rowsort
SELECT DISTINCT - + cor0.col2 * col1 + + col1 FROM tab0 AS cor0
----
-2752
-7371
0

query I rowsort
SELECT ALL col2 * 96 * - col2 + col1 * + col1 AS col1 FROM tab1 AS cor0
----
-279260
-311804
-884567

query I rowsort
SELECT ALL - col2 + 45 AS col1 FROM tab1 AS cor0
----
-12
-51
-9

query I rowsort
SELECT col2 + + ( col0 ) * col0 AS col0 FROM tab1 AS cor0
----
4153
63
6496

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9356
SELECT DISTINCT - col1 + CAST( 23 AS SIGNED ) * - col0 FROM tab0 AS cor0
----
-2138
-638
-902

skipif mysql # not compatible
query I rowsort label-9356
SELECT DISTINCT - col1 + CAST ( 23 AS INTEGER ) * - col0 FROM tab0 AS cor0
----
-2138
-638
-902

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * + 20 col1 FROM tab0 AS cor0
----
1640
20
660

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 - col1 col1 FROM tab2 AS cor0
----
-33
-4
21

query I rowsort
SELECT - - col1 * + ( 58 ) + col0 AS col0 FROM tab0 AS cor0
----
5012
5367
5661

query I rowsort
SELECT DISTINCT col0 + + col0 * 21 FROM tab1 AS cor0
----
1408
1760
66

query I rowsort
SELECT ALL ( - 73 ) + cor0.col1 * 4 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 4271ebcff2a5b795114a48ec0ceae841

query I rowsort
SELECT DISTINCT - 64 + - cor0.col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-153
-88
-99

query I rowsort
SELECT ALL 13 + - 97 + col1 FROM tab0 AS cor0
----
13
2
7

query I rowsort
SELECT - + col0 + 53 * - col0 FROM tab1 cor0
----
-162
-3456
-4320

query I rowsort
SELECT DISTINCT - + 92 * - col0 FROM tab1 AS cor0
----
276
5888
7360

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab0, tab1 cor1, tab2 AS cor2, tab0 AS cor3
----
3645 values hashing to 32e6d0f63bf719b0a999c75379e75eca

query I rowsort
SELECT - 21 * - 34 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 19a231668e4f2ffe618dea17ab7be176

query I rowsort
SELECT - cor1.col1 * 56 AS col2 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 1c7c5e5e55b32d461a0e3b2cbf7afb5d

onlyif mysql # use DIV operator for integer division
query I rowsort label-9369
SELECT ALL 19 DIV col0 FROM tab2 AS cor0
----
0
0
2

skipif mysql # not compatible
query I rowsort label-9369
SELECT ALL 19 / col0 FROM tab2 AS cor0
----
0
0
2

query I rowsort
SELECT - 4 + col2 AS col2 FROM tab1 AS cor0
----
50
53
92

query I rowsort
SELECT ALL col2 - - cor0.col0 AS col1 FROM tab0 AS cor0
----
171
36
57

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9372
SELECT DISTINCT + - col0 * - col0 * - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9372
SELECT DISTINCT + - col0 * - col0 * - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT cor0.col2 + + cor0.col1 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 0a66faf44289070d88fd26bbc9bf34e3

query I rowsort
SELECT - + 19 * col1 + 87 FROM tab0 AS cor0
----
-1547
-1642
-1756

query I rowsort
SELECT - col2 * - col1 + tab2.col2 * + 33 FROM tab2
----
1728
1900
2392

query I rowsort
SELECT - 90 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to f6f26b9a04da14807208b93d507095c5

query I rowsort
SELECT ALL + - 23 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to ce60bf4b0647d0fcb18a0562e351c52d

query I rowsort
SELECT ALL + col0 + + col1 + cor0.col2 * col0 FROM tab2 AS cor0
----
2165
227
3098

query I rowsort
SELECT - 5 + + col2 FROM tab1 AS cor0
----
49
52
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + + col1 col1 FROM tab2
----
-19
-62
24

query I rowsort
SELECT ALL + + cor0.col0 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83

query I rowsort
SELECT DISTINCT + cor0.col1 * + tab2.col0 AS col0 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
9 values hashing to 7bf5e0e3ec1be8bea20f7ba84b6c99c3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col2 - + col1 col0 FROM tab0 AS cor0
----
-119
-173
-98

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9384
SELECT ALL - - col0 + - CAST( col2 AS SIGNED ) * col1 AS col1 FROM tab2 AS cor0
----
-1456
-567
-830

skipif mysql # not compatible
query I rowsort label-9384
SELECT ALL - - col0 + - CAST ( col2 AS INTEGER ) * col1 AS col1 FROM tab2 AS cor0
----
-1456
-567
-830

query I rowsort
SELECT ALL - col2 * col0 - + cor0.col0 * - col0 FROM tab2 AS cor0
----
-140
3239
4056

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9386
SELECT col2 + - CAST( NULL AS SIGNED ) * cor0.col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9386
SELECT col2 + - CAST ( NULL AS INTEGER ) * cor0.col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col2 * - 28 AS col2 FROM tab1
----
-1512
-1596
-2688

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9388
SELECT DISTINCT CAST( + cor0.col2 AS SIGNED ) FROM tab0, tab1 AS cor0
----
54
57
96

skipif mysql # not compatible
query I rowsort label-9388
SELECT DISTINCT CAST ( + cor0.col2 AS INTEGER ) FROM tab0, tab1 AS cor0
----
54
57
96

query I rowsort
SELECT + - col2 * - col1 + col0 FROM tab2 AS cor0
----
1612
725
844

query I rowsort
SELECT ALL 30 + 60 FROM tab1
----
90
90
90

query I rowsort
SELECT col2 + col2 + + col1 AS col2 FROM tab2
----
111
85
93

query I rowsort
SELECT DISTINCT 79 * 51 * - col1 - col0 FROM tab0
----
-346518
-366728
-390848

onlyif mysql # use DIV operator for integer division
query I rowsort label-9393
SELECT DISTINCT 22 * col0 DIV col0 - + col1 FROM tab0
----
-64
-69
-75

skipif mysql # not compatible
query I rowsort label-9393
SELECT DISTINCT 22 * col0 / col0 - + col1 FROM tab0
----
-64
-69
-75

query I rowsort
SELECT + 90 + - col0 FROM tab2
----
11
12
83

query I rowsort
SELECT 11 + - col0 + col1 AS col0 FROM tab1
----
-43
-56
34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + + col1 * - col2 + + col1 col0 FROM tab0
----
-2719
-7289
1

query I rowsort
SELECT DISTINCT 5 - + col0 * + col2 * - col1 FROM tab1
----
36485
4217
99845

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - ( col1 ) + col0 col0 FROM tab1 AS cor0
----
29
74
93

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9399
SELECT - CAST( 99 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-99
-99
-99

skipif mysql # not compatible
query I rowsort label-9399
SELECT - CAST ( 99 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-99
-99
-99

query I rowsort
SELECT DISTINCT - + col1 + col1 * - col2 AS col1 FROM tab1 AS cor0
----
-1261
-1430
-580

onlyif mysql # use DIV operator for integer division
query I rowsort label-9401
SELECT + + col0 + col2 DIV ( - ( - col1 ) ) FROM tab1 cor0
----
5
69
87

skipif mysql # not compatible
query I rowsort label-9401
SELECT + + col0 + col2 / ( - ( - col1 ) ) FROM tab1 cor0
----
5
69
87

onlyif mysql # use DIV operator for integer division
query I rowsort label-9402
SELECT ALL col1 + col2 DIV - col1 AS col2 FROM tab2 AS cor0
----
15
31
59

skipif mysql # not compatible
query I rowsort label-9402
SELECT ALL col1 + col2 / - col1 AS col2 FROM tab2 AS cor0
----
15
31
59

query I rowsort
SELECT + 32 + col1 FROM tab2 AS cor0
----
49
63
91

query I rowsort
SELECT ALL + ( + col0 ) + col0 AS col0 FROM tab2 cor0
----
14
156
158

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9405
SELECT DISTINCT - 69 - cor0.col1 * CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9405
SELECT DISTINCT - 69 - cor0.col1 * CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 - col0 col2 FROM tab1 AS cor0
----
-29
-74
-93

query I rowsort
SELECT DISTINCT ( col0 ) * col0 + ( 63 ) * col2 - + col2 * tab2.col2 * + col0 FROM tab2
----
-105441
-3353
-45006

query I rowsort
SELECT + ( col0 ) + - col2 - - col0 FROM tab1
----
-48
64
71

query I rowsort
SELECT + 57 AS col2 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to 220a93709e207779b34ef74b544764a5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 27 * col1 * - col2 col1 FROM tab1
----
15390
33696
37908

query I rowsort
SELECT DISTINCT + tab2.col1 * - ( - col2 ) - - ( + col2 ) FROM tab2
----
1560
684
864

query I rowsort
SELECT DISTINCT + cor0.col1 * - cor0.col2 AS col0 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT + col2 + col0 * + cor0.col0 FROM tab1 AS cor0
----
4153
63
6496

query I rowsort
SELECT ALL + ( + col1 ) + + 67 * + col0 AS col1 FROM tab0 AS cor0
----
1694
2442
6054

query I rowsort
SELECT DISTINCT + 91 AS col2 FROM tab1 AS cor0
----
91

onlyif mysql # use DIV operator for integer division
query I rowsort label-9416
SELECT DISTINCT + col0 DIV + col2 col1 FROM tab1 AS cor0
----
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9416
SELECT DISTINCT + col0 / + col2 col1 FROM tab1 AS cor0
----
0
1

query I rowsort
SELECT + + cor0.col1 * - col0 + 55 FROM tab2 AS cor0
----
-1288
-162
-4547

query I rowsort
SELECT ALL 15 * col0 FROM tab1
----
1200
45
960

query I rowsort
SELECT ALL - 87 * cor0.col0 FROM tab0 AS cor0
----
-2088
-3045
-7743

query I rowsort
SELECT - + 35 * - cor0.col2 AS col1 FROM tab1 AS cor0
----
1890
1995
3360

onlyif mysql # use DIV operator for integer division
query I rowsort label-9421
SELECT DISTINCT - + ( col0 ) * col1 DIV - col0 FROM tab0 AS cor0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-9421
SELECT DISTINCT - + ( col0 ) * col1 / - col0 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT + - 38 * col1 AS col2 FROM tab2 AS cor0
----
-1178
-2242
-646

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9423
SELECT - + 37 + col0 * - CAST( - col0 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
1188
539
7884

skipif mysql # not compatible
query I rowsort label-9423
SELECT - + 37 + col0 * - CAST ( - col0 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
1188
539
7884

query I rowsort
SELECT + 6 * col1 AS col1 FROM tab0 AS cor0
----
516
546
582

query I rowsort
SELECT col0 + 16 * - col1 + + col0 FROM tab0 AS cor0
----
-1278
-1328
-1482

query I rowsort
SELECT DISTINCT col2 * - ( col2 ) * + col2 AS col0 FROM tab2 AS cor0
----
-17576
-19683
-54872

query I rowsort
SELECT ALL - 86 FROM tab2, tab0 cor0
----
9 values hashing to 9ac806793c03d3a6b5e3a3029d20e4da

query I rowsort
SELECT + 5 AS col0 FROM tab2, tab0 cor0
----
9 values hashing to 6035628694bdea36f584f3649088551d

query I rowsort
SELECT - col0 + col0 * + col0 AS col0 FROM tab1 AS cor0
----
4032
6
6320

query I rowsort
SELECT DISTINCT + col0 * - col1 * + col2 AS col0 FROM tab1 AS cor0
----
-36480
-4212
-99840

query I rowsort
SELECT cor0.col1 * 67 + col0 + - col0 FROM tab0 AS cor0
----
5762
6097
6499

query I rowsort
SELECT ALL - - col1 * cor0.col2 FROM tab2 cor0
----
1534
646
837

query I rowsort
SELECT 6 * + col2 * + col0 AS col2 FROM tab0 cor0
----
210
43788
4752

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 31 col0 FROM tab2 cor0
----
31

query I rowsort
SELECT - col2 * - 76 AS col2 FROM tab2 AS cor0
----
1976
2052
2888

query I rowsort
SELECT + 39 + + cor0.col0 * - cor0.col2 AS col2 FROM tab1 AS cor0
----
-123
-3609
-7641

query I rowsort
SELECT + cor0.col2 AS col0 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9438
SELECT + CAST( NULL AS SIGNED ) + col0 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-9438
SELECT + CAST ( NULL AS INTEGER ) + col0 col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - + col0 + col1 * col0 AS col2 FROM tab2 AS cor0
----
1264
210
4524

onlyif mysql # use DIV operator for integer division
query I rowsort label-9440
SELECT col2 DIV 17 AS col1 FROM tab2 AS cor0
----
1
1
2

skipif mysql # not compatible
query I rowsort label-9440
SELECT col2 / 17 AS col1 FROM tab2 AS cor0
----
1
1
2

query I rowsort
SELECT DISTINCT - 59 FROM tab1, tab2 AS cor0
----
-59

query I rowsort
SELECT + - 70 + + col2 * - col1 + + col2 FROM tab1 cor0
----
-1222
-1420
-583

query I rowsort
SELECT ALL + col1 * tab2.col2 * col2 + - col1 * col1 AS col2 FROM tab2
----
21638
24259
36403

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 2 col1 FROM tab1 AS cor0
----
-2
-2
-2

query I rowsort
SELECT ALL col2 * col0 * col1 + col0 FROM tab0 AS cor0
----
3430
664207
68136

query I rowsort
SELECT ALL + + cor0.col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9447
SELECT 29 + - 86 * col1 * CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9447
SELECT 29 + - 86 * col1 * CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 74 + cor0.col1 * 85 * - col1 AS col1 FROM tab1 cor0
----
-14291
-57386
-8426

query I rowsort
SELECT 42 * - col0 FROM tab1 AS cor0
----
-126
-2688
-3360

onlyif mysql # use DIV operator for integer division
query I rowsort label-9450
SELECT ( - col2 ) DIV col2 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-9450
SELECT ( - col2 ) / col2 FROM tab1 AS cor0
----
-1
-1
-1

query I rowsort
SELECT DISTINCT + - 39 * - col2 FROM tab0 AS cor0
----
1287
3198
39

query I rowsort
SELECT ALL + cor0.col1 + col2 AS col2 FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT ALL 87 * + col2 AS col2 FROM tab0
----
2871
7134
87

query I rowsort
SELECT ( col1 ) * + tab1.col1 * - col0 FROM tab1
----
-13520
-2028
-6400

query I rowsort
SELECT - col0 - col2 * col0 AS col1 FROM tab0 AS cor0
----
-70
-7387
-816

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col2 - - 85 col0 FROM tab0 AS cor0
----
118
167
86

query I rowsort
SELECT DISTINCT 74 AS col2 FROM tab1, tab1 AS cor0, tab1 cor1
----
74

query I rowsort
SELECT 76 FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to 7b2b08dd3f1adef028d3f40ef7c716da

query I rowsort
SELECT tab0.col1 AS col1 FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9460
SELECT DISTINCT + col0 * - col0 + + CAST( NULL AS SIGNED ) * - ( col2 ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9460
SELECT DISTINCT + col0 * - col0 + + CAST ( NULL AS INTEGER ) * - ( col2 ) FROM tab1
----
NULL

query I rowsort
SELECT ALL 45 + col0 FROM tab1
----
109
125
48

query I rowsort
SELECT DISTINCT - + 47 AS col1 FROM tab0, tab1, tab0 AS cor0
----
-47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 81 + col2 * tab2.col1 col0 FROM tab2
----
1615
727
918

query I rowsort
SELECT DISTINCT + col1 + tab1.col2 + - col2 FROM tab1
----
10
13
26

query I rowsort
SELECT ALL + cor0.col1 FROM tab1, tab0 cor0, tab1 AS cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd

query I rowsort
SELECT DISTINCT + 78 * 40 AS col1 FROM tab2, tab0 AS cor0
----
3120

query I rowsort
SELECT + col1 * col1 + - ( 25 + + col2 ) * 77 AS col0 FROM tab2 AS cor0
----
-3043
-446
-4562

query I rowsort
SELECT - ( + col1 ) + col2 AS col0 FROM tab2 AS cor0
----
-33
-4
21

query I rowsort
SELECT ALL - 76 + - col0 * + col1 AS col1 FROM tab2 AS cor0
----
-1419
-293
-4678

query I rowsort
SELECT DISTINCT - cor1.col0 AS col2 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
-3
-64
-80

query I rowsort
SELECT - col2 * - ( - cor0.col1 + col1 ) AS col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - col0 * + col1 + col2 AS col2 FROM tab2 cor0
----
-1305
-190
-4576

query I rowsort
SELECT DISTINCT - col1 + 53 * col0 AS col1 FROM tab1 AS cor0
----
133
3382
4227

query I rowsort
SELECT - col0 * + ( col1 ) + col1 AS col0 FROM tab0 AS cor0
----
-1978
-3298
-8008

query I rowsort
SELECT DISTINCT - + col1 * + 54 - + col0 * - col0 FROM tab0 AS cor0
----
-4013
-4068
3007

query I rowsort
SELECT DISTINCT col2 * + cor0.col0 AS col2 FROM tab0 AS cor0
----
35
7298
792

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9477
SELECT DISTINCT - col2 + CAST( - col2 AS SIGNED ) * - col1 FROM tab1 cor0
----
1152
1350
513

skipif mysql # not compatible
query I rowsort label-9477
SELECT DISTINCT - col2 + CAST ( - col2 AS INTEGER ) * - col1 FROM tab1 cor0
----
1152
1350
513

query I rowsort
SELECT DISTINCT + col1 + 3 * - 4 * + col1 AS col2 FROM tab0 AS cor0
----
-1001
-1067
-946

query I rowsort
SELECT DISTINCT + col0 * + col0 + cor0.col0 FROM tab0 AS cor0
----
1260
600
8010

query I rowsort
SELECT - col2 + + 68 AS col2 FROM tab0 AS cor0
----
-14
35
67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + - 13 * + col1 col2 FROM tab0 AS cor0
----
-1094
-1094
-1226

query I rowsort
SELECT DISTINCT + + col0 * - col2 * + col2 FROM tab2 AS cor0
----
-114076
-5103
-52728

query I rowsort
SELECT DISTINCT - + col1 * ( - col1 ) + col0 FROM tab0 AS cor0
----
7420
8370
9444

query I rowsort
SELECT ALL + cor0.col2 * cor0.col2 - col2 * col2 AS col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT + cor0.col2 * 57 + col0 FROM tab0 AS cor0
----
1905
4763
92

query I rowsort
SELECT + - col0 * - col1 + - cor0.col0 FROM tab1 AS cor0
----
576
75
960

query I rowsort
SELECT - + ( - col2 ) + + col2 AS col2 FROM tab0 cor0
----
164
2
66

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9488
SELECT DISTINCT - CAST( NULL AS SIGNED ) AS col0 FROM tab1, tab2 AS cor0 CROSS JOIN tab0, tab1 AS cor1, tab2 AS cor2
----
NULL

skipif mysql # not compatible
query I rowsort label-9488
SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col0 FROM tab1, tab2 AS cor0 CROSS JOIN tab0, tab1 AS cor1, tab2 AS cor2
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-9489
SELECT + + ( col2 ) * col0 DIV - col0 FROM tab1 AS cor0
----
-54
-57
-96

skipif mysql # not compatible
query I rowsort label-9489
SELECT + + ( col2 ) * col0 / - col0 FROM tab1 AS cor0
----
-54
-57
-96

query I rowsort
SELECT DISTINCT - - col0 + ( + col2 ) * ( ( col1 ) ) FROM tab1 cor0
----
1328
1407
634

query I rowsort
SELECT - col1 - + col1 AS col2 FROM tab2 AS cor0
----
-118
-34
-62

query I rowsort
SELECT - cor0.col2 + - ( - col0 ) AS col0 FROM tab1 AS cor0
----
-16
-51
7

query I rowsort
SELECT col0 * 1 - - cor0.col1 FROM tab1 AS cor0
----
29
74
93

query I rowsort
SELECT DISTINCT + - 87 FROM tab2 AS cor0
----
-87

query I rowsort
SELECT DISTINCT col2 + - col2 + col2 FROM tab2 AS cor0
----
26
27
38

query I rowsort
SELECT DISTINCT + 32 * + 71 FROM tab2 AS cor0
----
2272

onlyif mysql # use DIV operator for integer division
query I rowsort label-9497
SELECT 83 + col1 DIV - col1 col2 FROM tab1 cor0
----
82
82
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9497
SELECT 83 + col1 / - col1 col2 FROM tab1 cor0
----
82
82
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col0 * - col1 col2 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT + cor0.col2 + - col1 - + cor0.col1 AS col0 FROM tab2 AS cor0
----
-35
-92
4

query I rowsort
SELECT DISTINCT + + 53 + 98 * - col0 AS col1 FROM tab2 cor0
----
-633
-7591
-7689

query I rowsort
SELECT ALL - - col0 + - col0 * cor0.col1 AS col1 FROM tab2 AS cor0
----
-1264
-210
-4524

query I rowsort
SELECT ALL cor0.col1 + col1 AS col2 FROM tab0 cor0
----
172
182
194

query I rowsort
SELECT DISTINCT ( + col2 ) * + ( + ( - cor0.col1 ) ) FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT + 21 + + col2 AS col2 FROM tab2 AS cor0
----
47
48
59

query I rowsort
SELECT ALL 6 * col0 AS col1 FROM tab2 cor0
----
42
468
474

onlyif mysql # use DIV operator for integer division
query I rowsort label-9506
SELECT ALL + - col1 DIV - col0 col2 FROM tab2 AS cor0
----
0
0
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9506
SELECT ALL + - col1 / - col0 col2 FROM tab2 AS cor0
----
0
0
4

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9507
SELECT ALL + + col0 * col0 + CAST( - col0 AS SIGNED ) * col2 AS col0 FROM tab2 AS cor0
----
-140
3239
4056

skipif mysql # not compatible
query I rowsort label-9507
SELECT ALL + + col0 * col0 + CAST ( - col0 AS INTEGER ) * col2 AS col0 FROM tab2 AS cor0
----
-140
3239
4056

onlyif mysql # use DIV operator for integer division
query I rowsort label-9508
SELECT DISTINCT ( col1 ) DIV + col1 - + col2 AS col1 FROM tab1
----
-53
-56
-95

skipif mysql # not compatible
query I rowsort label-9508
SELECT DISTINCT ( col1 ) / + col1 - + col2 AS col1 FROM tab1
----
-53
-56
-95

query I rowsort
SELECT - + col0 - - cor0.col2 FROM tab1 cor0
----
-7
16
51

query I rowsort
SELECT ALL + cor0.col0 * col2 * - 29 FROM tab2 AS cor0
----
-5481
-58812
-87058

query I rowsort
SELECT + col1 + + col1 * + 75 AS col0 FROM tab2 AS cor0
----
1292
2356
4484

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9512
SELECT ALL cor0.col0 * col0 * CAST( col1 AS SIGNED ) FROM tab1 AS cor0
----
234
40960
83200

skipif mysql # not compatible
query I rowsort label-9512
SELECT ALL cor0.col0 * col0 * CAST ( col1 AS INTEGER ) FROM tab1 AS cor0
----
234
40960
83200

query I rowsort
SELECT ALL - 87 * col1 * + ( 66 * + col2 ) AS col0 FROM tab1 cor0
----
-3272940
-7166016
-8061768

query I rowsort
SELECT - 71 - - col1 FROM tab2 AS cor0
----
-12
-40
-54

query I rowsort
SELECT ALL - - 57 AS col2 FROM tab2 AS cor0
----
57
57
57

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9516
SELECT col2 * col0 + CAST( + 91 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
253
3739
7771

skipif mysql # not compatible
query I rowsort label-9516
SELECT col2 * col0 + CAST ( + 91 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
253
3739
7771

query I rowsort
SELECT DISTINCT + 39 AS col1 FROM tab0, tab0 AS cor0
----
39

query I rowsort
SELECT + ( col2 ) * + col0 + + col1 + 31 AS col1 FROM tab0
----
163
7420
909

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9519
SELECT ( - col1 * + col1 ) + - CAST( NULL AS SIGNED ) * + col1 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9519
SELECT ( - col1 * + col1 ) + - CAST ( NULL AS INTEGER ) * + col1 AS col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-9520
SELECT - + col1 DIV + col1 + + col1 * + cor0.col0 AS col0 FROM tab1 AS cor0
----
1039
639
77

skipif mysql # not compatible
query I rowsort label-9520
SELECT - + col1 / + col1 + + col1 * + cor0.col0 AS col0 FROM tab1 AS cor0
----
1039
639
77

onlyif mysql # use DIV operator for integer division
query I rowsort label-9521
SELECT col0 * col2 + + 61 DIV 1 col2 FROM tab1 AS cor0
----
223
3709
7741

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9521
SELECT col0 * col2 + + 61 / 1 col2 FROM tab1 AS cor0
----
223
3709
7741

query I rowsort
SELECT DISTINCT 48 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
48

query I rowsort
SELECT col1 * col2 * - ( 88 ) AS col2 FROM tab2
----
-134992
-56848
-73656

query I rowsort
SELECT DISTINCT + 47 + + col2 AS col0 FROM tab1 AS cor0
----
101
104
143

query I rowsort
SELECT DISTINCT 86 + - col2 FROM tab0 AS cor0
----
4
53
85

onlyif mysql # use DIV operator for integer division
query I rowsort label-9526
SELECT DISTINCT - - 67 DIV + col0 + col0 * - ( + col0 * cor0.col2 ) FROM tab0 AS cor0
----
-1224
-19006
-649522

skipif mysql # not compatible
query I rowsort label-9526
SELECT DISTINCT - - 67 / + col0 + col0 * - ( + col0 * cor0.col2 ) FROM tab0 AS cor0
----
-1224
-19006
-649522

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 77 + + 23 * col1 col1 FROM tab1 cor0
----
307
376
675

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9528
SELECT CAST( + cor0.col1 AS SIGNED ) FROM tab2 AS cor0
----
17
31
59

skipif mysql # not compatible
query I rowsort label-9528
SELECT CAST ( + cor0.col1 AS INTEGER ) FROM tab2 AS cor0
----
17
31
59

query I rowsort
SELECT + col0 * + col1 * + ( col0 ) + + col1 AS col2 FROM tab0
----
118922
49622
720902

query I rowsort
SELECT 9 + 66 AS col2 FROM tab1
----
75
75
75

onlyif mysql # use DIV operator for integer division
query I rowsort label-9531
SELECT - col1 DIV ( col0 ) FROM tab1
----
-8
0
0

skipif mysql # not compatible
query I rowsort label-9531
SELECT - col1 / ( col0 ) FROM tab1
----
-8
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-9532
SELECT col2 - + col0 DIV col2 col2 FROM tab0
----
-34
33
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9532
SELECT col2 - + col0 / col2 col2 FROM tab0
----
-34
33
81

query I rowsort
SELECT ALL + 91 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 5748627ef5fd86a21cd559fd278d7277

query I rowsort
SELECT ( - col2 ) + - col1 AS col0 FROM tab0 cor0
----
-119
-173
-98

query I rowsort
SELECT + col2 + + ( - col1 ) FROM tab1 AS cor0
----
28
47
83

query I rowsort
SELECT DISTINCT ( - cor0.col2 ) FROM tab1 cor0
----
-54
-57
-96

query I rowsort
SELECT cor0.col1 * - 79 FROM tab1 AS cor0
----
-1027
-2054
-790

query I rowsort
SELECT - - 44 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to ab2bc2b9f8baa300df7755e5980a319d

query I rowsort
SELECT + + col1 + + 16 FROM tab2 AS cor0
----
33
47
75

query I rowsort
SELECT DISTINCT tab2.col1 * - col0 + + col0 * 74 FROM tab2
----
1170
301
4503

query I rowsort
SELECT 33 + col1 AS col2 FROM tab2
----
50
64
92

onlyif mysql # use DIV operator for integer division
query I rowsort label-9542
SELECT ALL 54 DIV + col0 + col2 * - tab0.col0 AS col2 FROM tab0
----
-34
-7298
-790

skipif mysql # not compatible
query I rowsort label-9542
SELECT ALL 54 / + col0 + col2 * - tab0.col0 AS col2 FROM tab0
----
-34
-7298
-790

query I rowsort
SELECT ALL + col2 + - 17 FROM tab2
----
10
21
9

query I rowsort
SELECT - col2 * - 29 + + cor0.col2 FROM tab0 cor0
----
2460
30
990

query I rowsort
SELECT - col1 * ( col0 ) + 10 + 46 FROM tab2 AS cor0
----
-1287
-161
-4546

query I rowsort
SELECT DISTINCT + cor0.col0 * 56 AS col2 FROM tab1 AS cor0
----
168
3584
4480

query I rowsort
SELECT ( + tab2.col1 + 39 ) AS col2 FROM tab2, tab0 cor0
----
9 values hashing to f14be5e697614f746ca275504e06217a

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9548
SELECT ALL ( col0 ) * + col1 * + CAST( - col2 AS SIGNED ) AS col2 FROM tab2
----
-119652
-51034
-5859

skipif mysql # not compatible
query I rowsort label-9548
SELECT ALL ( col0 ) * + col1 * + CAST ( - col2 AS INTEGER ) AS col2 FROM tab2
----
-119652
-51034
-5859

query I rowsort
SELECT ALL ( + col2 ) * col2 FROM tab0
----
1
1089
6724

query I rowsort
SELECT ALL 29 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 1e7120ba8e9191084172ddced17e5eb2

query I rowsort
SELECT DISTINCT + col2 * col0 + - col1 * col2 * col2 FROM tab0 AS cor0
----
-604586
-62
-92862

query I rowsort
SELECT ALL - cor0.col2 - - col0 AS col1 FROM tab0 AS cor0
----
-9
34
7

query I rowsort
SELECT DISTINCT - + 32 * + cor0.col0 FROM tab1 AS cor0
----
-2048
-2560
-96

query I rowsort
SELECT + col2 + - col2 * 53 FROM tab1 AS cor0
----
-2808
-2964
-4992

query I rowsort
SELECT + - 22 * - col1 + + 8 FROM tab0 cor0
----
1900
2010
2142

query I rowsort
SELECT - col1 + col2 * + col0 * col1 AS col0 FROM tab0 AS cor0
----
3298
664027
68026

query I rowsort
SELECT + ( tab2.col0 ) + - col2 + ( ( - col1 ) + ( col0 ) * col2 ) FROM tab2
----
138
2021
3026

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - col0 col2 FROM tab0 cor0
----
-2064
-3395
-8099

query I rowsort
SELECT + - 31 * + col1 + col2 FROM tab2 AS cor0
----
-1803
-489
-934

onlyif mysql # use DIV operator for integer division
query I rowsort label-9560
SELECT - ( col0 ) + 58 DIV col1 FROM tab0 cor0
----
-24
-35
-89

skipif mysql # not compatible
query I rowsort label-9560
SELECT - ( col0 ) + 58 / col1 FROM tab0 cor0
----
-24
-35
-89

query I rowsort
SELECT DISTINCT col1 - col0 * + 0 FROM tab1
----
10
13
26

query I rowsort
SELECT DISTINCT col1 * + tab1.col2 - - 85 * col1 FROM tab1
----
1420
2353
3614

query I rowsort
SELECT ALL col2 + - col1 * + ( - col0 ) - col1 AS col0 FROM tab0
----
2011
3299
8090

query I rowsort
SELECT - 83 * col0 AS col2 FROM tab2
----
-581
-6474
-6557

query I rowsort
SELECT - 41 * col1 AS col0 FROM tab1 cor0
----
-1066
-410
-533

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 18 * col0 + ( col2 ) col1 FROM tab1 cor0
----
108
1209
1536

query I rowsort
SELECT 7 FROM tab1, tab1 cor0, tab1 AS cor1, tab2 AS cor2
----
81 values hashing to bd991c690468eea3ef45a96817ca3617

query I rowsort
SELECT col0 * col1 - col2 AS col0 FROM tab1 AS cor0
----
24
583
944

query I rowsort
SELECT - col0 * - col1 * + 5 - col1 FROM tab0 cor0
----
10234
16878
40404

onlyif mysql # use DIV operator for integer division
query I rowsort label-9570
SELECT + col1 * + ( col2 ) * col0 + - col1 * + col0 + col2 DIV ( - cor0.col0 ) FROM tab0 AS cor0
----
0
656019
66047

skipif mysql # not compatible
query I rowsort label-9570
SELECT + col1 * + ( col2 ) * col0 + - col1 * + col0 + col2 / ( - cor0.col0 ) FROM tab0 AS cor0
----
0
656019
66047

query I rowsort
SELECT DISTINCT + + cor0.col1 * - 22 FROM tab2 cor0
----
-1298
-374
-682

query I rowsort
SELECT DISTINCT col1 * - 76 FROM tab1 AS cor0
----
-1976
-760
-988

query I rowsort
SELECT + 81 + + 47 * + col0 * - ( - col2 * col0 ) FROM tab0 AS cor0
----
30527615
57656
893457

query I rowsort
SELECT + + ( col2 ) * + cor0.col2 FROM tab1 AS cor0
----
2916
3249
9216

query I rowsort
SELECT + col2 * + col1 * col2 FROM tab1 AS cor0
----
119808
32490
75816

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9576
SELECT + CAST( NULL AS SIGNED ) / + col0 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9576
SELECT + CAST ( NULL AS INTEGER ) / + col0 FROM tab1 cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 97 col0 FROM tab1 AS cor0
----
-97
-97
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 90 col0 FROM tab1, tab0 AS cor0
----
9 values hashing to f6f26b9a04da14807208b93d507095c5

query I rowsort
SELECT + + 14 AS col2 FROM tab1 AS cor0
----
14
14
14

onlyif mysql # use DIV operator for integer division
query I rowsort label-9580
SELECT + 54 * - col1 DIV + col1 FROM tab0
----
-54
-54
-54

skipif mysql # not compatible
query I rowsort label-9580
SELECT + 54 * - col1 / + col1 FROM tab0
----
-54
-54
-54

query I rowsort
SELECT ALL - + col0 * - cor0.col0 + col0 FROM tab2 AS cor0
----
56
6162
6320

query I rowsort
SELECT + col2 * - col2 * 7 AS col2 FROM tab2
----
-10108
-4732
-5103

query I rowsort
SELECT col0 * - ( col2 ) + + col1 FROM tab0
----
-706
-7207
62

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9584
SELECT col1 * CAST( col1 AS SIGNED ) * tab2.col1 FROM tab2
----
205379
29791
4913

skipif mysql # not compatible
query I rowsort label-9584
SELECT col1 * CAST ( col1 AS INTEGER ) * tab2.col1 FROM tab2
----
205379
29791
4913

query I rowsort
SELECT ALL col0 + - col0 * + col0 + col0 FROM tab0
----
-1155
-528
-7743

query I rowsort
SELECT - + col1 + - 38 AS col2 FROM tab1 AS cor0
----
-48
-51
-64

query I rowsort
SELECT ALL - col0 * - col0 - + col2 * col2 FROM tab0
----
-513
1197
1224

query I rowsort
SELECT DISTINCT + col0 - ( - ( col2 ) ) * ( 64 ) AS col1 FROM tab1
----
3459
3712
6224

query I rowsort
SELECT DISTINCT - tab2.col2 * 82 - + col0 FROM tab2
----
-2210
-2221
-3195

query I rowsort
SELECT DISTINCT + col0 * col2 + col0 AS col1 FROM tab1
----
165
3712
7760

query I rowsort
SELECT DISTINCT - col1 - 83 * + col2 AS col2 FROM tab1 AS cor0
----
-4508
-4741
-7981

query I rowsort
SELECT - + col0 + + ( col1 ) FROM tab0 cor0
----
2
62
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + col2 ) col0 FROM tab2 cor0
----
26
27
38

query I rowsort
SELECT ALL - - col1 - col0 FROM tab0 AS cor0
----
2
62
62

query I rowsort
SELECT DISTINCT + + col2 + + col1 FROM tab0 AS cor0
----
119
173
98

query I rowsort
SELECT DISTINCT ( - col2 ) * col0 * - col0 + + col1 * col2 * 43 FROM tab0 AS cor0
----
141042
5396
970388

query I rowsort
SELECT ALL - col1 * - 22 AS col0 FROM tab2 cor0
----
1298
374
682

query I rowsort
SELECT DISTINCT + col1 * col2 * col0 AS col1 FROM tab2 AS cor0
----
119652
51034
5859

query I rowsort
SELECT - + col0 + col0 * + col1 FROM tab2 AS cor0
----
1264
210
4524

query I rowsort
SELECT ALL col1 + col1 * cor0.col1 AS col2 FROM tab0 AS cor0
----
7482
8372
9506

query I rowsort
SELECT - 99 AS col2 FROM tab0 AS cor0
----
-99
-99
-99

query I rowsort
SELECT - col1 + cor0.col0 AS col2 FROM tab0 cor0
----
-2
-62
-62

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9603
SELECT DISTINCT - CAST( NULL AS SIGNED ) - 39 col1 FROM tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9603
SELECT DISTINCT - CAST ( NULL AS INTEGER ) - 39 col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT 99 + 95 AS col0 FROM tab2 AS cor0
----
194
194
194

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9605
SELECT ALL + 60 * + col1 * - col2 + ( cor0.col0 ) * + col1 * CAST( NULL AS DECIMAL ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9605
SELECT ALL + 60 * + col1 * - col2 + ( cor0.col0 ) * + col1 * CAST ( NULL AS REAL ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-9606
SELECT + 13 DIV col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9606
SELECT + 13 / col1 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-9607
SELECT - + cor0.col2 + - cor0.col2 DIV + 36 AS col1 FROM tab1 AS cor0
----
-55
-58
-98

skipif mysql # not compatible
query I rowsort label-9607
SELECT - + cor0.col2 + - cor0.col2 / + 36 AS col1 FROM tab1 AS cor0
----
-55
-58
-98

query I rowsort
SELECT ALL + col1 * col1 + - col2 + col2 AS col1 FROM tab0 AS cor0
----
7396
8281
9409

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col0 + - col0 + col1 col0 FROM tab2 AS cor0
----
17
31
59

query I rowsort
SELECT ALL + cor0.col0 * - cor0.col0 FROM tab2 AS cor0
----
-49
-6084
-6241

query I rowsort
SELECT col0 * ( 48 ) AS col1 FROM tab2 AS cor0
----
336
3744
3792

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9612
SELECT DISTINCT + col2 * CAST( 83 AS SIGNED ) FROM tab2 AS cor0
----
2158
2241
3154

skipif mysql # not compatible
query I rowsort label-9612
SELECT DISTINCT + col2 * CAST ( 83 AS INTEGER ) FROM tab2 AS cor0
----
2158
2241
3154

query I rowsort
SELECT col2 * + cor0.col2 AS col2 FROM tab1 cor0
----
2916
3249
9216

query I rowsort
SELECT + cor0.col0 * + col0 AS col2 FROM tab2 AS cor0
----
49
6084
6241

query I rowsort
SELECT DISTINCT + - col0 + col2 * 96 FROM tab1 AS cor0
----
5181
5408
9136

query I rowsort
SELECT - + col1 * - col2 AS col1 FROM tab1 cor0
----
1248
1404
570

query I rowsort
SELECT ALL - + col1 * - 76 * 91 FROM tab2 AS cor0
----
117572
214396
408044

query I rowsort
SELECT DISTINCT + col0 * + 8 + col1 + + col0 * col1 FROM tab1 AS cor0
----
1162
128
1693

query I rowsort
SELECT ALL - - col2 + + ( + col0 ) AS col0 FROM tab1 cor0
----
121
176
57

query I rowsort
SELECT - col0 * + ( + col1 ) AS col2 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT ALL - - col2 * ( col0 ) * + col2 AS col1 FROM tab1 AS cor0
----
207936
737280
8748

query I rowsort
SELECT DISTINCT + - col2 * col1 + - col1 AS col0 FROM tab2 AS cor0
----
-1593
-663
-868

query I rowsort
SELECT ALL + - col2 * - col2 * + 51 AS col2 FROM tab0 AS cor0
----
342924
51
55539

query I rowsort
SELECT DISTINCT - col0 + + col2 * - col1 AS col2 FROM tab1 AS cor0
----
-1328
-1407
-634

query I rowsort
SELECT - col2 + + col0 * + col1 AS col2 FROM tab2 AS cor0
----
1305
190
4576

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( 31 ) * col1 + - 35 col0 FROM tab2 AS cor0
----
1794
492
926

query I rowsort
SELECT - 23 FROM tab1, tab2 AS cor0
----
9 values hashing to ce60bf4b0647d0fcb18a0562e351c52d

query I rowsort
SELECT DISTINCT + col2 - - col1 AS col2 FROM tab1
----
109
67
80

query I rowsort
SELECT DISTINCT col1 + - tab0.col1 - col2 * col0 AS col1 FROM tab0
----
-35
-7298
-792

query I rowsort
SELECT ALL - col1 + + col2 * 13 AS col0 FROM tab1 AS cor0
----
1235
676
731

query I rowsort
SELECT DISTINCT col0 + - cor0.col1 * col1 AS col1 FROM tab0 AS cor0
----
-7372
-8192
-9374

query I rowsort
SELECT + cor1.col0 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f

query I rowsort
SELECT DISTINCT + 12 * + col2 AS col0 FROM tab1 AS cor0
----
1152
648
684

query I rowsort
SELECT ALL - col1 * cor0.col1 - col1 AS col2 FROM tab1 AS cor0
----
-110
-182
-702

onlyif mysql # use DIV operator for integer division
query I rowsort label-9635
SELECT 14 + + col2 * col1 DIV col2 FROM tab1 AS cor0
----
24
27
40

skipif mysql # not compatible
query I rowsort label-9635
SELECT 14 + + col2 * col1 / col2 FROM tab1 AS cor0
----
24
27
40

query I rowsort
SELECT DISTINCT 63 FROM tab0, tab0 AS cor0, tab2, tab2 AS cor1
----
63

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + tab0.col2 col0 FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to 6a43e7f15194af73fe1c83385e6ebebc

query I rowsort
SELECT ALL 21 * - tab1.col0 * + 37 FROM tab1
----
-2331
-49728
-62160

query I rowsort
SELECT ALL - cor0.col0 + - 97 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to c43d88ce6fbb149e27d792eab049906f

query I rowsort
SELECT ALL - - col1 * col1 * - 67 AS col1 FROM tab1 cor0
----
-11323
-45292
-6700

query I rowsort
SELECT ALL col0 * + col0 + + col1 FROM tab0 AS cor0
----
1322
662
8012

query I rowsort
SELECT ALL + 44 * col2 AS col2 FROM tab0 AS cor0
----
1452
3608
44

query I rowsort
SELECT ALL 42 FROM tab2, tab0 cor0, tab0 AS cor1
----
27 values hashing to 325aada2239b6fe1fe2d843515ae8c5e

query I rowsort
SELECT col0 + - tab1.col1 * - ( 5 ) FROM tab1
----
114
133
145

query I rowsort
SELECT + - 10 + 10 AS col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT - ( col1 ) * col1 AS col1 FROM tab2 cor0
----
-289
-3481
-961

query I rowsort
SELECT + - col0 + col1 + cor0.col1 AS col2 FROM tab2 AS cor0
----
-45
40
55

query I rowsort
SELECT DISTINCT cor0.col0 * cor0.col0 FROM tab0 AS cor0
----
1225
576
7921

query I rowsort
SELECT + col1 + ( col2 * + col1 ) FROM tab0 AS cor0
----
194
2924
7553

query I rowsort
SELECT col2 - 71 * + cor0.col1 FROM tab2 AS cor0
----
-1169
-2174
-4163

query I rowsort
SELECT - - col2 * 96 FROM tab0 AS cor0
----
3168
7872
96

query I rowsort
SELECT + 72 + 81 * - col0 FROM tab2 cor0
----
-495
-6246
-6327

query I rowsort
SELECT col2 * 37 * 35 FROM tab0
----
106190
1295
42735

query I rowsort
SELECT + tab2.col0 + - col1 * + 64 AS col0 FROM tab2
----
-1009
-1977
-3698

query I rowsort
SELECT + ( + col0 ) + - cor0.col1 FROM tab1 AS cor0
----
-23
54
67

query I rowsort
SELECT - ( col2 ) + cor0.col2 * - 14 FROM tab0 cor0
----
-1230
-15
-495

onlyif mysql # use DIV operator for integer division
query I rowsort label-9657
SELECT - col2 DIV cor0.col1 AS col1 FROM tab2 cor0
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-9657
SELECT - col2 / cor0.col1 AS col1 FROM tab2 cor0
----
-2
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9658
SELECT - CAST( cor0.col1 AS SIGNED ) * col1 * - col0 FROM tab0 AS cor0
----
177504
329315
737009

skipif mysql # not compatible
query I rowsort label-9658
SELECT - CAST ( cor0.col1 AS INTEGER ) * col1 * - col0 FROM tab0 AS cor0
----
177504
329315
737009

query I rowsort
SELECT + + ( - cor0.col1 ) FROM tab1 AS cor0
----
-10
-13
-26

query I rowsort
SELECT - col0 + - cor0.col0 AS col0 FROM tab0 AS cor0
----
-178
-48
-70

query I rowsort
SELECT - ( + 34 ) AS col2 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 5b88331e40da4796cc4826c442aa45f7

query I rowsort
SELECT ALL - tab2.col2 * 43 * col1 FROM tab2
----
-27778
-35991
-65962

query I rowsort
SELECT ALL 23 * col2 AS col1 FROM tab2
----
598
621
874

query I rowsort
SELECT - + cor0.col2 - - col1 AS col2 FROM tab1 AS cor0
----
-28
-47
-83

onlyif mysql # use DIV operator for integer division
query I rowsort label-9665
SELECT + col2 + - ( col2 ) DIV - col1 FROM tab2 AS cor0
----
26
27
40

skipif mysql # not compatible
query I rowsort label-9665
SELECT + col2 + - ( col2 ) / - col1 FROM tab2 AS cor0
----
26
27
40

query I rowsort
SELECT DISTINCT - 40 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
-40

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9667
SELECT + + CAST( NULL AS SIGNED ) col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9667
SELECT + + CAST ( NULL AS INTEGER ) col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT ALL + 74 FROM tab1, tab2 AS cor0
----
9 values hashing to 2ccf8ef3f477e1a1a3e30c8b8154ff31

query I rowsort
SELECT ALL tab2.col1 * - col2 AS col0 FROM tab2
----
-1534
-646
-837

onlyif mysql # use DIV operator for integer division
query I rowsort label-9670
SELECT DISTINCT + col1 + - 3 DIV 9 FROM tab1
----
10
13
26

skipif mysql # not compatible
query I rowsort label-9670
SELECT DISTINCT + col1 + - 3 / 9 FROM tab1
----
10
13
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 93 * - 48 col2 FROM tab0, tab2 AS cor0
----
9 values hashing to d2b734f202c530378588e2ba73d97f2a

query I rowsort
SELECT ALL col1 + - ( ( + tab2.col1 ) ) AS col2 FROM tab2
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - cor0.col2 + col2 col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + col0 + col2 AS col0 FROM tab1 cor0
----
121
176
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + + 66 col1 FROM tab2 AS cor0
----
28
39
40

query I rowsort
SELECT DISTINCT + cor0.col1 * col2 - + col1 AS col0 FROM tab1 cor0
----
1235
1378
560

query I rowsort
SELECT + col1 - + 0 FROM tab0 AS cor0
----
86
91
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-9678
SELECT DISTINCT col2 + 69 DIV - cor0.col1 AS col0 FROM tab2 AS cor0
----
25
34

skipif mysql # not compatible
query I rowsort label-9678
SELECT DISTINCT col2 + 69 / - cor0.col1 AS col0 FROM tab2 AS cor0
----
25
34

onlyif mysql # use DIV operator for integer division
query I rowsort label-9679
SELECT col2 DIV + col1 - + col0 FROM tab1
----
-1
-59
-73

skipif mysql # not compatible
query I rowsort label-9679
SELECT col2 / + col1 - + col0 FROM tab1
----
-1
-59
-73

query I rowsort
SELECT ALL + 26 FROM tab1, tab2 AS cor0
----
9 values hashing to 2d1c3129ed17fd721d4876b21c035584

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 25 * + col2 col2 FROM tab0
----
2050
25
825

query I rowsort
SELECT + col0 + - col2 + col1 * tab2.col0 FROM tab2
----
1384
197
4654

onlyif mysql # use DIV operator for integer division
query I rowsort label-9683
SELECT ( col1 ) DIV + col1 - + col1 FROM tab2
----
-16
-30
-58

skipif mysql # not compatible
query I rowsort label-9683
SELECT ( col1 ) / + col1 - + col1 FROM tab2
----
-16
-30
-58

query I rowsort
SELECT - col2 + + col1 + col0 * + col1 FROM tab2
----
1322
221
4635

query I rowsort
SELECT col0 * 37 + + col0 * - tab1.col1 + col1 * col1 AS col2 FROM tab1
----
1828
2089
709

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9686
SELECT CAST( NULL AS SIGNED ) + col2 - + col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9686
SELECT CAST ( NULL AS INTEGER ) + col2 - + col2 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9687
SELECT DISTINCT CAST( NULL AS SIGNED ) - + col1 * col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9687
SELECT DISTINCT CAST ( NULL AS INTEGER ) - + col1 * col0 FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT ( 52 * col1 ) - + col2 FROM tab1
----
1298
463
580

onlyif mysql # use DIV operator for integer division
query I rowsort label-9689
SELECT ALL + - 83 DIV + col1 + - col1 AS col0 FROM tab2 AS cor0
----
-21
-33
-60

skipif mysql # not compatible
query I rowsort label-9689
SELECT ALL + - 83 / + col1 + - col1 AS col0 FROM tab2 AS cor0
----
-21
-33
-60

query I rowsort
SELECT - - ( + col1 ) * col2 + col1 FROM tab2 cor0
----
1593
663
868

query I rowsort
SELECT DISTINCT + 23 * - col0 AS col2 FROM tab1
----
-1472
-1840
-69

query I rowsort
SELECT - col1 + cor0.col2 * ( col1 ) AS col2 FROM tab2 AS cor0
----
1475
629
806

onlyif mysql # use DIV operator for integer division
query I rowsort label-9693
SELECT + - cor0.col2 + col2 + + col0 DIV col2 FROM tab0 AS cor0
----
0
1
35

skipif mysql # not compatible
query I rowsort label-9693
SELECT + - cor0.col2 + col2 + + col0 / col2 FROM tab0 AS cor0
----
0
1
35

query I rowsort
SELECT ALL + col0 - - col2 AS col2 FROM tab1 cor0
----
121
176
57

onlyif mysql # use DIV operator for integer division
query I rowsort label-9695
SELECT DISTINCT - col0 * 88 + col1 DIV + col0 AS col0 FROM tab2 AS cor0
----
-612
-6864
-6952

skipif mysql # not compatible
query I rowsort label-9695
SELECT DISTINCT - col0 * 88 + col1 / + col0 AS col0 FROM tab2 AS cor0
----
-612
-6864
-6952

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col1 + ( cor0.col1 ) col2 FROM tab0 AS cor0
----
172
182
194

query I rowsort
SELECT col0 * 31 FROM tab2 AS cor0
----
217
2418
2449

query I rowsort
SELECT ALL - + col2 + - col0 * + 64 AS col2 FROM tab0 AS cor0
----
-1569
-2241
-5778

query I rowsort
SELECT ALL 59 + col1 AS col0 FROM tab1 AS cor0
----
69
72
85

query I rowsort
SELECT col1 * col2 - + tab2.col1 AS col2 FROM tab2
----
1475
629
806

query I rowsort
SELECT DISTINCT + col1 + col0 * col0 AS col2 FROM tab1 AS cor0
----
35
4106
6413

query I rowsort
SELECT col1 + - col2 * col0 AS col1 FROM tab0
----
-706
-7207
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + - col1 + + 99 col1 FROM tab2
----
99
99
99

onlyif mysql # use DIV operator for integer division
query I rowsort label-9704
SELECT ALL + col2 * ( + col2 ) DIV - col0 FROM tab2 AS cor0
----
-104
-18
-8

skipif mysql # not compatible
query I rowsort label-9704
SELECT ALL + col2 * ( + col2 ) / - col0 FROM tab2 AS cor0
----
-104
-18
-8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 * 65 + - col1 col0 FROM tab2 AS cor0
----
1631
1724
2453

query I rowsort
SELECT DISTINCT 44 AS col1 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
44

onlyif mysql # use DIV operator for integer division
query I rowsort label-9707
SELECT col2 DIV - col2 + - CAST( ( col1 ) AS SIGNED ) FROM tab0
----
-87
-92
-98

skipif mysql # not compatible
query I rowsort label-9707
SELECT col2 / - col2 + - CAST ( ( col1 ) AS INTEGER ) FROM tab0
----
-87
-92
-98

query I rowsort
SELECT 71 * col2 FROM tab2
----
1846
1917
2698

query I rowsort
SELECT ALL cor0.col2 * + 32 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 50979d93e65eb2e0eb8da5d863ba5138

query I rowsort
SELECT col2 + + col0 * + 79 AS col2 FROM tab0
----
1929
2766
7113

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * col0 + - 29 + + col2 col1 FROM tab2
----
47
6081
6250

query I rowsort
SELECT + - col2 * - col0 * + cor0.col1 + cor0.col0 * + 79 AS col2 FROM tab1 AS cor0
----
106160
41536
4449

onlyif mysql # use DIV operator for integer division
query I rowsort label-9713
SELECT ALL 16 * 10 + col1 + col0 DIV - cor0.col1 AS col0 FROM tab2 cor0
----
173
191
218

skipif mysql # not compatible
query I rowsort label-9713
SELECT ALL 16 * 10 + col1 + col0 / - cor0.col1 AS col0 FROM tab2 cor0
----
173
191
218

query I rowsort
SELECT - cor0.col0 * col0 AS col2 FROM tab1 cor0
----
-4096
-6400
-9

query I rowsort
SELECT DISTINCT + col2 * - cor0.col0 - - col0 AS col1 FROM tab0 AS cor0
----
-7209
-768
0

query I rowsort
SELECT ALL - col2 - 61 AS col2 FROM tab1 AS cor0
----
-115
-118
-157

query I rowsort
SELECT DISTINCT col2 + - cor0.col1 * - col1 AS col1 FROM tab2 AS cor0
----
327
3507
988

query I rowsort
SELECT - col0 * - ( col2 ) AS col1 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT ALL - ( + 99 ) - col0 * + 65 AS col2 FROM tab1 AS cor0
----
-294
-4259
-5299

query I rowsort
SELECT DISTINCT - - 88 * 53 + - col0 * - cor0.col2 AS col1 FROM tab0 AS cor0
----
11962
4699
5456

query I rowsort
SELECT DISTINCT col1 + 99 * - tab1.col0 FROM tab1
----
-271
-6326
-7907

query I rowsort
SELECT ALL tab1.col1 * + col2 + tab1.col0 FROM tab1
----
1328
1407
634

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col2 + - col1 col0 FROM tab2 AS cor0
----
-33
-4
21

query I rowsort
SELECT DISTINCT + - 3 * col0 + col2 AS col2 FROM tab1 cor0
----
-135
-144
45

query I rowsort
SELECT ALL + 24 * - col1 FROM tab1
----
-240
-312
-624

query I rowsort
SELECT ALL 70 FROM tab2, tab0, tab0 AS cor0
----
27 values hashing to c76157a7a7ec18de56823b2058b49f32

query I rowsort
SELECT + + 44 * + cor0.col2 FROM tab0 AS cor0
----
1452
3608
44

query I rowsort
SELECT ( + tab1.col1 ) * tab1.col2 FROM tab1
----
1248
1404
570

onlyif mysql # use DIV operator for integer division
query I rowsort label-9729
SELECT DISTINCT + cor0.col1 DIV + 49 col1 FROM tab2 AS cor0
----
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9729
SELECT DISTINCT + cor0.col1 / + 49 col1 FROM tab2 AS cor0
----
0
1

query I rowsort
SELECT 70 + col1 AS col0 FROM tab2 cor0
----
101
129
87

query I rowsort
SELECT col2 + + col0 * col2 AS col0 FROM tab1 AS cor0
----
216
3705
7776

query I rowsort
SELECT + col2 * + cor0.col2 + - cor0.col2 FROM tab0 AS cor0
----
0
1056
6642

query I rowsort
SELECT - 92 * + col0 + col2 * col2 * col1 AS col0 FROM tab0
----
-3123
603696
91446

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9734
SELECT ALL - CAST( col1 AS SIGNED ) AS col2 FROM tab2
----
-17
-31
-59

skipif mysql # not compatible
query I rowsort label-9734
SELECT ALL - CAST ( col1 AS INTEGER ) AS col2 FROM tab2
----
-17
-31
-59

query I rowsort
SELECT DISTINCT cor0.col1 AS col0 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
17
31
59

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9736
SELECT - ( col1 + - col0 ) * CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9736
SELECT - ( col1 + - col0 ) * CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - + cor0.col2 * + col2 AS col2 FROM tab2 AS cor0
----
-1444
-676
-729

query I rowsort
SELECT - 41 * - cor0.col0 AS col2 FROM tab1 AS cor0
----
123
2624
3280

query I rowsort
SELECT DISTINCT + 55 * - col2 + cor0.col0 + + col2 * cor0.col0 FROM tab0 AS cor0
----
-999
15
2877

query I rowsort
SELECT ALL - + col0 + col1 + 72 FROM tab2 AS cor0
----
10
53
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * col0 + 84 col1 FROM tab1 AS cor0
----
4180
6484
93

query I rowsort
SELECT ALL + + ( + col1 ) * + col1 + col2 FROM tab1 AS cor0
----
157
265
730

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + col2 col2 FROM tab0 AS cor0
----
119
173
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + + col0 col2 FROM tab2 AS cor0
----
14
156
158

query I rowsort
SELECT DISTINCT + - 61 * col2 FROM tab0 AS cor0
----
-2013
-5002
-61

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + col2 * cor0.col2 col0 FROM tab0 AS cor0
----
1122
2
6806

onlyif mysql # use DIV operator for integer division
query I rowsort label-9747
SELECT ALL + col2 * col1 DIV 15 FROM tab0 AS cor0
----
189
497
6

skipif mysql # not compatible
query I rowsort label-9747
SELECT ALL + col2 * col1 / 15 FROM tab0 AS cor0
----
189
497
6

query I rowsort
SELECT - cor0.col2 - col2 FROM tab2 cor0
----
-52
-54
-76

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9749
SELECT ALL col0 + CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9749
SELECT ALL col0 + CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + + col0 * - ( col2 ) AS col0 FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT col2 + col2 * col2 AS col0 FROM tab0 AS cor0
----
1122
2
6806

onlyif mysql # use DIV operator for integer division
query I rowsort label-9752
SELECT DISTINCT + - cor0.col1 * + col0 DIV + col0 FROM tab1 AS cor0
----
-10
-13
-26

skipif mysql # not compatible
query I rowsort label-9752
SELECT DISTINCT + - cor0.col1 * + col0 / + col0 FROM tab1 AS cor0
----
-10
-13
-26

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9753
SELECT ALL + col1 * CAST( - 18 AS SIGNED ) + col1 FROM tab2 AS cor0
----
-1003
-289
-527

skipif mysql # not compatible
query I rowsort label-9753
SELECT ALL + col1 * CAST ( - 18 AS INTEGER ) + col1 FROM tab2 AS cor0
----
-1003
-289
-527

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9754
SELECT - - col0 * CAST( NULL AS SIGNED ) - - cor0.col0 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9754
SELECT - - col0 * CAST ( NULL AS INTEGER ) - - cor0.col0 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - + cor0.col0 * col2 AS col1 FROM tab0 AS cor0
----
-35
-7298
-792

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9756
SELECT DISTINCT - col2 * - CAST( + col2 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
2916
3249
9216

skipif mysql # not compatible
query I rowsort label-9756
SELECT DISTINCT - col2 * - CAST ( + col2 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
2916
3249
9216

query I rowsort
SELECT 40 + + col1 * + col1 AS col1 FROM tab0 AS cor0
----
7436
8321
9449

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9758
SELECT + CAST( + col2 AS SIGNED ) * col2 + - col2 FROM tab0 cor0
----
0
1056
6642

skipif mysql # not compatible
query I rowsort label-9758
SELECT + CAST ( + col2 AS INTEGER ) * col2 + - col2 FROM tab0 cor0
----
0
1056
6642

query I rowsort
SELECT ALL + col2 * - 96 AS col0 FROM tab0 AS cor0
----
-3168
-7872
-96

query I rowsort
SELECT ALL col2 + ( + cor0.col2 ) FROM tab1 AS cor0
----
108
114
192

query I rowsort
SELECT ALL ( + cor0.col2 ) FROM tab0 cor0
----
1
33
82

query I rowsort
SELECT cor1.col1 AS col2 FROM tab2, tab1 AS cor0, tab1, tab1 cor1
----
81 values hashing to d7d3fabcafbed14f0d6ffd37195c971c

query I rowsort
SELECT DISTINCT col0 * + col1 + col1 FROM tab1
----
104
1053
650

query I rowsort
SELECT - col2 * ( - col2 ) FROM tab2
----
1444
676
729

query I rowsort
SELECT ALL col1 * - ( - col1 + - col0 ) FROM tab0 AS cor0
----
12804
16380
9460

query I rowsort
SELECT + cor0.col1 + + col1 * col0 + - col2 AS col2 FROM tab0 AS cor0
----
2117
3491
8108

query I rowsort
SELECT + cor0.col2 * + col2 * col0 FROM tab2 AS cor0
----
114076
5103
52728

onlyif mysql # use DIV operator for integer division
query I rowsort label-9768
SELECT - - col2 - - ( + ( col0 ) ) * 33 DIV + col0 AS col1 FROM tab2 AS cor0
----
59
60
71

skipif mysql # not compatible
query I rowsort label-9768
SELECT - - col2 - - ( + ( col0 ) ) * 33 / + col0 AS col1 FROM tab2 AS cor0
----
59
60
71

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + 22 - col2 col0 FROM tab0 cor0
----
22
22
22

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9770
SELECT - - col0 + CAST( NULL AS DECIMAL ) - + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9770
SELECT - - col0 + CAST ( NULL AS REAL ) - + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - ( col1 ) * cor0.col1 * ( col2 * - col1 ) - 78 AS col2 FROM tab0 AS cor0
----
20989770
61792744
912595

query I rowsort
SELECT DISTINCT - - cor0.col0 - + cor0.col1 FROM tab2 AS cor0
----
-24
19
62

query I rowsort
SELECT 16 * + col2 FROM tab0 AS cor0
----
1312
16
528

query I rowsort
SELECT - 9 * - col1 AS col2 FROM tab2 AS cor0
----
153
279
531

query I rowsort
SELECT DISTINCT col0 + col2 AS col0 FROM tab1 cor0
----
121
176
57

query I rowsort
SELECT col0 + col1 * + col0 FROM tab0 AS cor0
----
2088
3430
8188

query III rowsort
SELECT * FROM tab1 WHERE NOT col0 IN ( tab1.col1 * - col1 + + col1 / + tab1.col0 )
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d

query I rowsort
SELECT + 40 * + cor0.col1 AS col1 FROM tab2 AS cor0
----
1240
2360
680

query I rowsort
SELECT 85 + col2 FROM tab0
----
118
167
86

query I rowsort
SELECT ALL - ( + col2 + tab0.col2 ) FROM tab0
----
-164
-2
-66

onlyif mysql # use DIV operator for integer division
query I rowsort label-9781
SELECT tab1.col0 + col1 DIV tab1.col2 FROM tab1
----
3
64
80

skipif mysql # not compatible
query I rowsort label-9781
SELECT tab1.col0 + col1 / tab1.col2 FROM tab1
----
3
64
80

query I rowsort
SELECT + col2 + - cor0.col2 * - 65 AS col0 FROM tab2 AS cor0
----
1716
1782
2508

query I rowsort
SELECT ( col2 ) + + 47 * col1 AS col0 FROM tab2
----
1484
2799
837

onlyif mysql # use DIV operator for integer division
query I rowsort label-9784
SELECT col2 * + col1 + - col0 DIV + col0 AS col2 FROM tab2
----
1533
645
836

skipif mysql # not compatible
query I rowsort label-9784
SELECT col2 * + col1 + - col0 / + col0 AS col2 FROM tab2
----
1533
645
836

query I rowsort
SELECT col1 + + 93 AS col1 FROM tab0 AS cor0
----
179
184
190

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col1 * - col1 col1 FROM tab1 AS cor0
----
100
169
676

query I rowsort
SELECT DISTINCT + - col0 * ( - col1 ) * + col0 FROM tab2 AS cor0
----
106097
1519
358956

query I rowsort
SELECT + 2 * 17 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 1146d159f0b9b4378a8b738b963f7039

query I rowsort
SELECT ALL col0 + - col2 * + col1 FROM tab1 cor0
----
-1168
-1401
-506

query I rowsort
SELECT + 22 * col1 AS col2 FROM tab1
----
220
286
572

query I rowsort
SELECT tab0.col2 * ( col2 ) FROM tab0
----
1
1089
6724

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 65 col0 FROM tab2
----
65
65
65

query I rowsort
SELECT + col1 * - col2 * - cor0.col0 + col2 AS col1 FROM tab1 AS cor0
----
36537
4266
99936

query I rowsort
SELECT col1 * - tab2.col0 * - col0 AS col1 FROM tab2
----
106097
1519
358956

query I rowsort
SELECT - col1 * - ( + col2 ) AS col2 FROM tab0
----
2838
7462
97

query I rowsort
SELECT - ( cor0.col0 ) + + 13 AS col0 FROM tab1 AS cor0
----
-51
-67
10

query I rowsort
SELECT col1 + - cor0.col1 AS col1 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9798
SELECT - - ( - col1 ) * CAST( - col1 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
289
3481
961

skipif mysql # not compatible
query I rowsort label-9798
SELECT - - ( - col1 ) * CAST ( - col1 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
289
3481
961

query I rowsort
SELECT + + 42 + - cor0.col1 AS col0 FROM tab1 AS cor0
----
16
29
32

query I rowsort
SELECT - - col2 + col1 * - col1 FROM tab2 cor0
----
-251
-3455
-934

query I rowsort
SELECT - + col2 + col2 * + col1 AS col0 FROM tab2 AS cor0
----
1508
608
810

query I rowsort
SELECT col1 + col1 * col2 * + tab0.col2 FROM tab0
----
194
611975
93740

onlyif mysql # use DIV operator for integer division
query I rowsort label-9803
SELECT col1 + - col1 DIV col0 FROM tab0
----
83
90
95

skipif mysql # not compatible
query I rowsort label-9803
SELECT col1 + - col1 / col0 FROM tab0
----
83
90
95

query I rowsort
SELECT + col1 + col2 * - col0 FROM tab2
----
-158
-1969
-2985

onlyif mysql # use DIV operator for integer division
query I rowsort label-9805
SELECT + col0 + - col1 DIV + cor0.col0 AS col1 FROM tab2 AS cor0
----
3
78
79

skipif mysql # not compatible
query I rowsort label-9805
SELECT + col0 + - col1 / + cor0.col0 AS col1 FROM tab2 AS cor0
----
3
78
79

onlyif mysql # use DIV operator for integer division
query I rowsort label-9806
SELECT + + col2 DIV + col0 + col1 FROM tab2 AS cor0
----
17
34
59

skipif mysql # not compatible
query I rowsort label-9806
SELECT + + col2 / + col0 + col1 FROM tab2 AS cor0
----
17
34
59

query I rowsort
SELECT ALL - col1 * col1 + col0 AS col0 FROM tab1 cor0
----
-36
-673
-89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 * + col0 col2 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT - + col0 * - cor0.col0 FROM tab2 cor0
----
49
6084
6241

query I rowsort
SELECT ALL - + col0 * cor0.col2 * col0 AS col1 FROM tab1 AS cor0
----
-233472
-486
-614400

query I rowsort
SELECT DISTINCT - col1 * col0 + - col1 * col1 * col1 AS col2 FROM tab0 cor0
----
-638120
-761670
-916068

onlyif mysql # use DIV operator for integer division
query I rowsort label-9812
SELECT ALL col1 + - cor0.col2 DIV + col1 AS col0 FROM tab0 AS cor0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-9812
SELECT ALL col1 + - cor0.col2 / + col1 AS col0 FROM tab0 AS cor0
----
86
91
97

query IIIIII rowsort
SELECT ALL * FROM tab1, tab1 AS cor0 WHERE NULL <= ( NULL )
----

query I rowsort
SELECT 6 + col2 FROM tab2 cor0
----
32
33
44

query I rowsort
SELECT DISTINCT 31 + col0 + + col1 AS col0 FROM tab1 AS cor0
----
105
124
60

query I rowsort
SELECT ALL - 60 + col2 - cor0.col1 * col0 * col1 AS col0 FROM tab1 cor0
----
-13484
-2034
-6403

query I rowsort
SELECT 97 * col0 + cor0.col2 FROM tab2 AS cor0
----
706
7592
7701

query I rowsort
SELECT ALL 73 * cor0.col1 FROM tab1 AS cor0
----
1898
730
949

query I rowsort
SELECT DISTINCT + ( + col1 ) * + col1 + + col0 * - col2 FROM tab1 AS cor0
----
-3548
-7511
514

query I rowsort
SELECT - col1 + cor0.col0 * - col2 + + col0 FROM tab1 AS cor0
----
-185
-3594
-7613

query I rowsort
SELECT - - col1 * col1 * + col1 + col1 AS col2 FROM tab2 AS cor0
----
205438
29822
4930

query I rowsort
SELECT DISTINCT + 40 + col2 * + col1 FROM tab1 AS cor0
----
1288
1444
610

query I rowsort
SELECT DISTINCT - 40 - - col2 AS col1 FROM tab1 AS cor0
----
14
17
56

query I rowsort
SELECT ALL + - cor0.col1 * col0 AS col1 FROM tab2 AS cor0
----
-1343
-217
-4602

onlyif mysql # use DIV operator for integer division
query I rowsort label-9825
SELECT 79 DIV col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9825
SELECT 79 / col1 FROM tab0
----
0
0
0

query I rowsort
SELECT DISTINCT 44 + - col2 FROM tab1 AS cor0
----
-10
-13
-52

query I rowsort
SELECT DISTINCT - - 4 FROM tab1 cor0
----
4

query I rowsort
SELECT ALL + col1 + + cor0.col0 AS col0 FROM tab2 AS cor0
----
137
38
96

query I rowsort
SELECT + col0 * - col2 + + cor0.col2 * + col1 AS col0 FROM tab0 AS cor0
----
164
2046
62

query I rowsort
SELECT DISTINCT + 81 * col0 + tab0.col1 FROM tab0
----
2030
2932
7300

query I rowsort
SELECT + col2 * col2 + col2 AS col2 FROM tab1
----
2970
3306
9312

query I rowsort
SELECT DISTINCT 61 + - col2 + + col0 FROM tab1
----
10
45
68

query I rowsort
SELECT col2 * + col2 + col2 * col0 AS col0 FROM tab2
----
2704
4446
918

query I rowsort
SELECT DISTINCT - col2 FROM tab0 WHERE NOT NULL IN ( col2 )
----

query I rowsort
SELECT DISTINCT - col2 * - col2 * col0 FROM tab1
----
207936
737280
8748

onlyif mysql # use DIV operator for integer division
query I rowsort label-9836
SELECT col1 DIV - col1 + - col2 - + tab0.col2 * col2 FROM tab0
----
-1123
-3
-6807

skipif mysql # not compatible
query I rowsort label-9836
SELECT col1 / - col1 + - col2 - + tab0.col2 * col2 FROM tab0
----
-1123
-3
-6807

onlyif mysql # use DIV operator for integer division
query I rowsort label-9837
SELECT DISTINCT + tab2.col2 * col0 DIV + tab2.col0 + col0 * - col0 col2 FROM tab2
----
-22
-6058
-6203

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9837
SELECT DISTINCT + tab2.col2 * col0 / + tab2.col0 + col0 * - col0 col2 FROM tab2
----
-22
-6058
-6203

query I rowsort
SELECT DISTINCT + col1 * col1 * + col0 FROM tab1
----
13520
2028
6400

query I rowsort
SELECT - tab0.col2 * + col2 * col0 AS col0 FROM tab0
----
-26136
-35
-598436

query I rowsort
SELECT ALL - col2 * col1 * col0 AS col2 FROM tab2
----
-119652
-51034
-5859

query I rowsort
SELECT ALL + col1 FROM tab2 WHERE col2 + col2 BETWEEN ( + col2 ) AND NULL
----

query I rowsort
SELECT + col1 * col2 * col0 AS col2 FROM tab1
----
36480
4212
99840

query I rowsort
SELECT ALL + tab1.col2 FROM tab1 WHERE NOT + col2 * + col1 + + col1 > ( NULL )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-9844
SELECT DISTINCT - col2 DIV - col1 - - col1 * col1 FROM tab1
----
105
176
678

skipif mysql # not compatible
query I rowsort label-9844
SELECT DISTINCT - col2 / - col1 - - col1 * col1 FROM tab1
----
105
176
678

query I rowsort
SELECT col2 + col0 * tab1.col1 FROM tab1
----
1136
132
697

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL > col0 / col2
----

query I rowsort
SELECT - col2 AS col1 FROM tab0 WHERE NOT ( NULL ) BETWEEN NULL AND NULL
----

query I rowsort
SELECT - col0 - - col2 * col2 AS col1 FROM tab0
----
-34
1065
6635

onlyif mysql # use DIV operator for integer division
query I rowsort label-9849
SELECT ALL + col1 DIV - col2 - + col1 FROM tab1
----
-10
-13
-26

skipif mysql # not compatible
query I rowsort label-9849
SELECT ALL + col1 / - col2 - + col1 FROM tab1
----
-10
-13
-26

query I rowsort
SELECT ALL col0 * col0 + + col0 FROM tab0
----
1260
600
8010

query I rowsort
SELECT - col0 AS col1 FROM tab2 WHERE NOT col2 IN ( + col0 * tab2.col1 + col2 )
----
-7
-78
-79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + - col0 * col0 col0 FROM tab0
----
-1226
-609
-8003

query I rowsort
SELECT DISTINCT col2 * tab0.col0 + col2 AS col1 FROM tab0
----
36
7380
825

onlyif mysql # use DIV operator for integer division
query I rowsort label-9854
SELECT ALL + col1 + col0 DIV + tab0.col1 AS col0 FROM tab0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-9854
SELECT ALL + col1 + col0 / + tab0.col1 AS col0 FROM tab0
----
86
91
97

query I rowsort
SELECT ALL + tab2.col1 - col2 * tab2.col1 FROM tab2
----
-1475
-629
-806

query I rowsort
SELECT + + col0 + cor0.col2 * + col0 AS col1 FROM tab2 cor0
----
196
2106
3081

onlyif mysql # use DIV operator for integer division
query I rowsort label-9857
SELECT col2 DIV col0 + col0 AS col0 FROM tab2
----
10
78
79

skipif mysql # not compatible
query I rowsort label-9857
SELECT col2 / col0 + col0 AS col0 FROM tab2
----
10
78
79

onlyif mysql # use DIV operator for integer division
query I rowsort label-9858
SELECT DISTINCT cor0.col1 DIV - col1 + - col2 * + col2 + col1 AS col1 FROM tab0 AS cor0
----
-1004
-6634
95

skipif mysql # not compatible
query I rowsort label-9858
SELECT DISTINCT cor0.col1 / - col1 + - col2 * + col2 + col1 AS col1 FROM tab0 AS cor0
----
-1004
-6634
95

onlyif mysql # use DIV operator for integer division
query I rowsort label-9859
SELECT ALL + cor0.col1 * cor0.col1 + + cor0.col0 * col2 + - col2 DIV - col1 AS col1 FROM tab1 AS cor0
----
3753
7856
840

skipif mysql # not compatible
query I rowsort label-9859
SELECT ALL + cor0.col1 * cor0.col1 + + cor0.col0 * col2 + - col2 / - col1 AS col1 FROM tab1 AS cor0
----
3753
7856
840

onlyif mysql # use DIV operator for integer division
query I rowsort label-9860
SELECT DISTINCT + col0 DIV + col0 + + cor0.col0 AS col0 FROM tab1 cor0
----
4
65
81

skipif mysql # not compatible
query I rowsort label-9860
SELECT DISTINCT + col0 / + col0 + + cor0.col0 AS col0 FROM tab1 cor0
----
4
65
81

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL >= + col1 - col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * - col1 - col2 col0 FROM tab2 AS cor0
----
-1381
-244
-4628

query I rowsort
SELECT DISTINCT col0 + col2 AS col2 FROM tab0 cor0 WHERE NOT NULL IN ( - col2 )
----

query I rowsort
SELECT DISTINCT + - col1 * + col1 + + col0 FROM tab2 cor0
----
-210
-3403
-954

query I rowsort
SELECT - col0 + cor0.col2 AS col2 FROM tab0 cor0
----
-34
-7
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - tab2.col2 * ( + col2 ) col0 FROM tab2
----
-1444
-676
-729

query I rowsort
SELECT ALL ( ( + col0 ) + + col1 ) AS col1 FROM tab2
----
137
38
96

query I rowsort
SELECT ( col2 + + col2 ) FROM tab0
----
164
2
66

query I rowsort
SELECT - ( col2 + - col1 ) AS col1 FROM tab2
----
-21
33
4

query I rowsort
SELECT ALL 3 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 3cf1e377a943589897b8d431a834f1ba

query I rowsort
SELECT + 67 AS col1 FROM tab2 AS cor0
----
67
67
67

query I rowsort
SELECT ALL col1 * - 79 FROM tab2
----
-1343
-2449
-4661

query I rowsort
SELECT ALL + col2 + + 17 FROM tab2 AS cor0
----
43
44
55

query I rowsort
SELECT - - col0 + + ( col0 ) AS col0 FROM tab1 AS cor0
----
128
160
6

query I rowsort
SELECT + col2 * - 65 AS col2 FROM tab2
----
-1690
-1755
-2470

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 90 * - 10 col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 2009361ff305b7ea116c18d2877caea9

query I rowsort
SELECT + col0 * - 5 + - 14 FROM tab0 cor0
----
-134
-189
-459

query I rowsort
SELECT DISTINCT - col0 * ( + col0 ) - col2 * col1 FROM tab1 AS cor0
----
-1413
-4666
-7648

query I rowsort
SELECT ( - 96 ) + col2 FROM tab2 AS cor0
----
-58
-69
-70

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9880
SELECT + + CAST( NULL AS SIGNED ) + cor0.col1 * - col2 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-9880
SELECT + + CAST ( NULL AS INTEGER ) + cor0.col1 * - col2 col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + ( col0 ) - + col1 AS col1 FROM tab1
----
-23
54
67

query I rowsort
SELECT ALL ( col2 ) * - col2 + - col1 FROM tab1
----
-2942
-3259
-9229

onlyif mysql # use DIV operator for integer division
query I rowsort label-9883
SELECT ALL - - col1 DIV 59 col2 FROM tab0 cor0
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9883
SELECT ALL - - col1 / 59 col2 FROM tab0 cor0
----
1
1
1

query I rowsort
SELECT DISTINCT + ( - 87 ) + - col1 FROM tab0 AS cor0
----
-173
-178
-184

query I rowsort
SELECT - + ( col1 ) * - col0 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT ALL + - 21 * col1 FROM tab0 cor0
----
-1806
-1911
-2037

query I rowsort
SELECT - 49 * cor0.col1 * cor0.col0 + 56 + col1 * col2 AS col1 FROM tab0 AS cor0
----
-166202
-389333
-98242

query I rowsort
SELECT ( 31 ) * col0 AS col1 FROM tab1 AS cor0
----
1984
2480
93

query I rowsort
SELECT DISTINCT col0 * cor0.col2 * + cor0.col1 AS col0 FROM tab0 AS cor0
----
3395
664118
68112

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + cor0.col0 col1 FROM tab1 AS cor0
----
-3
-64
-80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9891
SELECT ALL CAST( NULL AS SIGNED ) AS col1 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-9891
SELECT ALL CAST ( NULL AS INTEGER ) AS col1 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT - - cor0.col2 * + cor0.col2 * + 73 FROM tab1 cor0
----
212868
237177
672768

query I rowsort
SELECT ALL 19 * 96 FROM tab2
----
1824
1824
1824

query I rowsort
SELECT 69 + + 43 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 121b64fd841a20f87520daa7774d37c9

onlyif mysql # use DIV operator for integer division
query I rowsort label-9895
SELECT col1 DIV - col0 - ( col2 ) AS col1 FROM tab2 AS cor0
----
-26
-31
-38

skipif mysql # not compatible
query I rowsort label-9895
SELECT col1 / - col0 - ( col2 ) AS col1 FROM tab2 AS cor0
----
-26
-31
-38

query I rowsort
SELECT - col2 * 57 + + ( col0 ) AS col1 FROM tab2 AS cor0
----
-1404
-1532
-2087

query I rowsort
SELECT DISTINCT 28 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
28

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + + col2 + col2 col0 FROM tab0 AS cor0
----
246
3
99

query I rowsort
SELECT DISTINCT + ( 58 ) FROM tab1, tab1 AS cor0
----
58

query I rowsort
SELECT col1 * 52 FROM tab2
----
1612
3068
884

query I rowsort
SELECT ALL - - 48 + col0 * col1 AS col1 FROM tab2 AS cor0
----
1391
265
4650

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * ( col2 ) * + 82 col1 FROM tab1 AS cor0
----
13284
299136
629760

onlyif mysql # use DIV operator for integer division
query I rowsort label-9903
SELECT ALL + col0 DIV 15 AS col1 FROM tab0
----
1
2
5

skipif mysql # not compatible
query I rowsort label-9903
SELECT ALL + col0 / 15 AS col1 FROM tab0
----
1
2
5

query I rowsort
SELECT DISTINCT col2 + ( col0 ) + tab0.col2 * + col1 AS col0 FROM tab0
----
133
2895
7633

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - tab0.col2 col0 FROM tab0
----
-35
-7298
-792

onlyif mysql # use DIV operator for integer division
query I rowsort label-9906
SELECT + col1 DIV - 2 - + tab2.col1 FROM tab2
----
-25
-46
-88

skipif mysql # not compatible
query I rowsort label-9906
SELECT + col1 / - 2 - + tab2.col1 FROM tab2
----
-25
-46
-88

query I rowsort
SELECT DISTINCT - col2 + + col0 * + col1 AS col0 FROM tab2
----
1305
190
4576

query I rowsort
SELECT DISTINCT col2 * - ( tab1.col1 ) * + tab1.col2 FROM tab1
----
-119808
-32490
-75816

query I rowsort
SELECT ALL - col2 * ( col1 ) - tab0.col2 FROM tab0
----
-2871
-7544
-98

query I rowsort
SELECT DISTINCT - col1 + col2 * - 37 FROM tab2
----
-1021
-1030
-1423

query I rowsort
SELECT cor0.col2 * + 1 FROM tab2 AS cor0
----
26
27
38

query I rowsort
SELECT - + col2 * + col1 + - col1 FROM tab2 AS cor0
----
-1593
-663
-868

query I rowsort
SELECT ALL + 68 - + cor0.col1 AS col1 FROM tab2 AS cor0
----
37
51
9

query I rowsort
SELECT 61 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 8d4dfe649433a599fc4b10830cc7ce55

query I rowsort
SELECT DISTINCT + col2 * ( - col0 ) - + col1 * + col2 AS col0 FROM tab2 AS cor0
----
-1026
-3562
-3648

query I rowsort
SELECT ALL cor0.col0 + 88 * 32 FROM tab0 cor0
----
2840
2851
2905

query I rowsort
SELECT ALL - col2 * - ( + col0 * + col1 ) AS col2 FROM tab2 AS cor0
----
119652
51034
5859

query I rowsort
SELECT + + col2 + 12 FROM tab1 AS cor0
----
108
66
69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * cor0.col2 + - col2 col2 FROM tab0 AS cor0
----
34
7216
759

query I rowsort
SELECT + col1 + ( col0 + - col1 * 84 ) AS col1 FROM tab2 AS cor0
----
-1332
-2566
-4819

query I rowsort
SELECT DISTINCT - col2 + - ( - col0 ) * cor0.col0 FROM tab2 AS cor0
----
22
6058
6203

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9922
SELECT - CAST( NULL AS DECIMAL ) * + tab0.col2 * + col0 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9922
SELECT - CAST ( NULL AS REAL ) * + tab0.col2 * + col0 AS col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT - ( - 29 ) * + col2 + tab2.col0 AS col0 FROM tab2
----
1181
790
832

query I rowsort
SELECT - col0 * + col1 + - col1 * - col0 + + col2 * - col0 FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT ALL 86 + + tab0.col2 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to 3890a8f389fb3e3059dab2e2733a990b

query I rowsort
SELECT DISTINCT + 58 - col2 AS col2 FROM tab2
----
20
31
32

query I rowsort
SELECT 36 + col1 * - col0 + tab0.col1 AS col0 FROM tab0
----
-1942
-3262
-7972

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9928
SELECT CAST( NULL AS SIGNED ) * col0 + col2 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9928
SELECT CAST ( NULL AS INTEGER ) * col0 + col2 AS col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + ( - col1 ) * + col2 FROM tab0 cor0
----
-2838
-7462
-97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9930
SELECT DISTINCT - + CAST( + ( col0 ) AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-3
-64
-80

skipif mysql # not compatible
query I rowsort label-9930
SELECT DISTINCT - + CAST ( + ( col0 ) AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-3
-64
-80

query I rowsort
SELECT - - ( col2 ) + + col0 FROM tab2 AS cor0
----
104
117
34

query I rowsort
SELECT + 39 + - 62 * col0 FROM tab1 AS cor0
----
-147
-3929
-4921

query I rowsort
SELECT DISTINCT - col2 * - cor0.col1 * col0 FROM tab0 AS cor0
----
3395
664118
68112

query I rowsort
SELECT col2 + ( - col2 ) FROM tab2 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 + - col2 * 25 col1 FROM tab2 AS cor0
----
-676
-702
-988

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 14 col2 FROM tab0 cor0
----
14
14
14

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * col2 col2 FROM tab2 cor0
----
1534
646
837

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9938
SELECT - cor0.col0 + - col0 + CAST( col1 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-141
-97
17

skipif mysql # not compatible
query I rowsort label-9938
SELECT - cor0.col0 + - col0 + CAST ( col1 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-141
-97
17

query I rowsort
SELECT DISTINCT + col2 * col2 * + col1 FROM tab1 AS cor0
----
119808
32490
75816

query I rowsort
SELECT ALL cor0.col2 + col0 * - col0 AS col2 FROM tab2 AS cor0
----
-22
-6058
-6203

query I rowsort
SELECT ALL 4 * + cor0.col2 AS col2 FROM tab2 cor0
----
104
108
152

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 64 - + col2 col0 FROM tab0
----
-18
31
63

query I rowsort
SELECT - 13 * col0 AS col1 FROM tab2
----
-1014
-1027
-91

query I rowsort
SELECT DISTINCT - + 17 * - cor0.col1 * + col0 + - 31 - col0 FROM tab1 cor0
----
10785
1292
17569

query I rowsort
SELECT - + 43 * col1 + + ( - cor0.col0 ) FROM tab1 AS cor0
----
-1121
-494
-639

query I rowsort
SELECT ALL + col2 * - col0 + col2 * + cor0.col2 FROM tab2 AS cor0
----
-1352
-1558
540

query I rowsort
SELECT DISTINCT + col2 * col2 - 20 FROM tab1 AS cor0
----
2896
3229
9196

query I rowsort
SELECT ALL + ( - col2 ) * + 11 AS col0 FROM tab0 AS cor0
----
-11
-363
-902

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col2 * col2 col0 FROM tab0 AS cor0
----
-1
-1089
-6724

query I rowsort
SELECT DISTINCT - 78 AS col1 FROM tab0, tab2, tab2 AS cor0
----
-78

query I rowsort
SELECT - 30 + col2 * - 42 - 16 FROM tab0 AS cor0
----
-1432
-3490
-88

onlyif mysql # use DIV operator for integer division
query I rowsort label-9952
SELECT - - col0 + - col0 DIV CAST( 93 AS SIGNED ) FROM tab0 AS cor0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-9952
SELECT - - col0 + - col0 / CAST ( 93 AS INTEGER ) FROM tab0 AS cor0
----
24
35
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 62 * cor0.col0 + col2 + col1 col1 FROM tab1 cor0
----
-106
-3901
-4851

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9954
SELECT + + col1 + + col1 * - CAST( cor0.col2 * + col1 AS SIGNED ) - - cor0.col2 col2 FROM tab0 AS cor0
----
-243949
-678869
-9311

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9954
SELECT + + col1 + + col1 * - CAST ( cor0.col2 * + col1 AS INTEGER ) - - cor0.col2 col2 FROM tab0 AS cor0
----
-243949
-678869
-9311

query I rowsort
SELECT - + col0 * + col1 + + 14 - col2 FROM tab1 AS cor0
----
-1122
-118
-683

query I rowsort
SELECT - col2 * 96 FROM tab0 AS cor0
----
-3168
-7872
-96

query I rowsort
SELECT + - col2 * ( 1 ) + col0 AS col1 FROM tab1 AS cor0
----
-16
-51
7

query I rowsort
SELECT col1 * col2 + + 23 - col1 FROM tab0 AS cor0
----
23
2775
7394

onlyif mysql # use DIV operator for integer division
query I rowsort label-9959
SELECT + + col2 * + col1 + cor0.col2 DIV - col1 AS col2 FROM tab2 AS cor0
----
1534
644
837

skipif mysql # not compatible
query I rowsort label-9959
SELECT + + col2 * + col1 + cor0.col2 / - col1 AS col2 FROM tab2 AS cor0
----
1534
644
837

query I rowsort
SELECT col1 * col2 * - 67 FROM tab1 AS cor0
----
-38190
-83616
-94068

query I rowsort
SELECT - col2 * - 89 FROM tab2 AS cor0
----
2314
2403
3382

query I rowsort
SELECT ALL ( col0 ) + col1 * - 11 FROM tab1
----
-283
-46
-63

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col1 + cor0.col2 col1 FROM tab2, tab0, tab2 cor0
----
27 values hashing to 0a66faf44289070d88fd26bbc9bf34e3

query I rowsort
SELECT DISTINCT 36 + col2 FROM tab2
----
62
63
74

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9965
SELECT col1 + col0 + - CAST( NULL AS SIGNED ) * tab1.col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9965
SELECT col1 + col0 + - CAST ( NULL AS INTEGER ) * tab1.col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT + 57 AS col2 FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to 220a93709e207779b34ef74b544764a5

query I rowsort
SELECT + ( 28 ) * col1 + - col2 AS col1 FROM tab0 AS cor0
----
2375
2466
2715

query I rowsort
SELECT DISTINCT - col0 + + col0 + col1 AS col0 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT 98 + 23 * cor0.col0 FROM tab2 AS cor0
----
1892
1915
259

query I rowsort
SELECT DISTINCT + + cor0.col2 * ( col1 ) AS col1 FROM tab0 cor0
----
2838
7462
97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9971
SELECT ALL + - CAST( NULL AS SIGNED ) * ( + col1 ) + ( 47 ) * cor0.col1 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9971
SELECT ALL + - CAST ( NULL AS INTEGER ) * ( + col1 ) + ( 47 ) * cor0.col1 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + - col2 * + cor0.col2 + + col0 FROM tab0 AS cor0
----
-1065
-6635
34

query I rowsort
SELECT - - col1 * col2 * col1 FROM tab0 AS cor0
----
244068
679042
9409

query I rowsort
SELECT ALL + cor0.col0 * + 34 + - col2 AS col0 FROM tab0 cor0
----
1189
2944
783

onlyif mysql # use DIV operator for integer division
query I rowsort label-9975
SELECT DISTINCT + - col2 DIV ( col0 ) + - 48 AS col2 FROM tab0 AS cor0
----
-48
-49

skipif mysql # not compatible
query I rowsort label-9975
SELECT DISTINCT + - col2 / ( col0 ) + - 48 AS col2 FROM tab0 AS cor0
----
-48
-49

query I rowsort
SELECT 56 * col2 * cor0.col2 AS col0 FROM tab2 cor0
----
37856
40824
80864

onlyif mysql # use DIV operator for integer division
query I rowsort label-9977
SELECT col1 DIV - ( cor0.col2 * + CAST( col0 AS SIGNED ) ) FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9977
SELECT col1 / - ( cor0.col2 * + CAST ( col0 AS INTEGER ) ) FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - + col0 + - ( col0 ) AS col1 FROM tab0 AS cor0
----
-178
-48
-70

query I rowsort
SELECT DISTINCT + 9 * - 21 FROM tab2 AS cor0
----
-189

query I rowsort
SELECT ALL + - 18 * - col0 + - col0 AS col2 FROM tab2 AS cor0
----
119
1326
1343

query I rowsort
SELECT + col1 * col0 * - 35 + + col1 * + col2 AS col0 FROM tab1 AS cor0
----
-1326
-21830
-35152

onlyif mysql # use DIV operator for integer division
query I rowsort label-9982
SELECT col0 + ( + 85 ) DIV - col1 + + col0 FROM tab0 AS cor0
----
178
48
70

skipif mysql # not compatible
query I rowsort label-9982
SELECT col0 + ( + 85 ) / - col1 + + col0 FROM tab0 AS cor0
----
178
48
70

onlyif mysql # use DIV operator for integer division
query I rowsort label-9983
SELECT col2 DIV + col2 + col0 * cor0.col0 FROM tab1 AS cor0
----
10
4097
6401

skipif mysql # not compatible
query I rowsort label-9983
SELECT col2 / + col2 + col0 * cor0.col0 FROM tab1 AS cor0
----
10
4097
6401

query I rowsort
SELECT - 41 * col0 AS col0 FROM tab2
----
-287
-3198
-3239

query I rowsort
SELECT DISTINCT + 1 FROM tab2, tab1, tab1 AS cor0
----
1

query I rowsort
SELECT - col2 + + col1 + + 2 * col2 FROM tab2 AS cor0
----
55
58
85

onlyif mysql # use DIV operator for integer division
query I rowsort label-9987
SELECT - col2 + - col0 DIV + col2 FROM tab0 AS cor0
----
-33
-36
-83

skipif mysql # not compatible
query I rowsort label-9987
SELECT - col2 + - col0 / + col2 FROM tab0 AS cor0
----
-33
-36
-83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 1 col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 001554c2952f1a80506b182ee04686f5

query I rowsort
SELECT DISTINCT - 4 + cor0.col1 * col2 AS col2 FROM tab2 AS cor0
----
1530
642
833

query I rowsort
SELECT - + 88 * cor0.col2 AS col0 FROM tab0 AS cor0
----
-2904
-7216
-88

query I rowsort
SELECT - col2 * - 48 - col2 FROM tab0
----
1551
3854
47

onlyif mysql # use DIV operator for integer division
query I rowsort label-9992
SELECT DISTINCT col2 DIV 72 FROM tab0
----
0
1

skipif mysql # not compatible
query I rowsort label-9992
SELECT DISTINCT col2 / 72 FROM tab0
----
0
1

query I rowsort
SELECT DISTINCT - 49 + + col1 * tab0.col2 * ( col1 ) FROM tab0
----
244019
678993
9360

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9994
SELECT DISTINCT CAST( NULL AS SIGNED ) * - col2 + - col2 AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9994
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - col2 + - col2 AS col0 FROM tab0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-9995
SELECT ALL + ( col0 ) DIV - col0 - - ( + ( - col2 ) ) * col1 AS col2 FROM tab1 AS cor0
----
-1249
-1405
-571

skipif mysql # not compatible
query I rowsort label-9995
SELECT ALL + ( col0 ) / - col0 - - ( + ( - col2 ) ) * col1 AS col2 FROM tab1 AS cor0
----
-1249
-1405
-571

query I rowsort
SELECT DISTINCT + - col1 - col0 FROM tab1 AS cor0
----
-29
-74
-93

query I rowsort
SELECT - + 52 AS col0 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to e8a5cb10c0973a78554f344d4f6e7e74

query I rowsort
SELECT ALL - - 83 + col0 FROM tab0 cor0
----
107
118
172

query I rowsort
SELECT DISTINCT col0 * - col0 + + 84 FROM tab1 AS cor0
----
-4012
-6316
75

