sqllogictest
Artifact Content
Not logged in

Artifact 60a078bc18387abe60a38ab12e75472dba041cb3:


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 DISTINCT + 99 + cor0.col2 AS col2 FROM tab1 AS cor0
----
153
156
195

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

query I rowsort
SELECT - 75 + - col1 * col0 * 47 FROM tab0 AS cor0
----
-159640
-380728
-97083

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

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

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 + col1 + + 56 col1 FROM tab0 AS cor0
----
142
147
153

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

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

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-10
SELECT ALL + cor0.col0 + 10 DIV + col0 FROM tab1 cor0
----
6
64
80

skipif mysql # not compatible
query I rowsort label-10
SELECT ALL + cor0.col0 + 10 / + col0 FROM tab1 cor0
----
6
64
80

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

query I rowsort
SELECT + - 90 + col1 FROM tab0 AS cor0
----
-4
1
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + + col0 * col1 * col0 + + col2 col2 FROM tab0 AS cor0
----
118923
49655
720984

query I rowsort
SELECT + col1 * col0 * + cor0.col0 - col1 * + col0 AS col1 FROM tab2 AS cor0
----
104754
1302
354354

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

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

query I rowsort
SELECT 78 + + 16 * + col2 AS col2 FROM tab2 AS cor0
----
494
510
686

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

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

query I rowsort
SELECT + col0 * col1 * - col1 FROM tab2 cor0
----
-22831
-271518
-6727

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-22
SELECT DISTINCT - - 54 DIV col1 AS col1 FROM tab2 AS cor0
----
0
1
3

skipif mysql # not compatible
query I rowsort label-22
SELECT DISTINCT - - 54 / col1 AS col1 FROM tab2 AS cor0
----
0
1
3

query I rowsort
SELECT - 81 * + col1 AS col2 FROM tab2 cor0
----
-1377
-2511
-4779

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

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

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

skipif mysql # not compatible
query I rowsort label-26
SELECT DISTINCT + + col2 / col2 FROM tab0 AS cor0
----
1

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

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

query I rowsort
SELECT ALL 61 + 10 FROM tab1
----
71
71
71

query I rowsort
SELECT ALL col0 + - col2 * col0 * 29 AS col1 FROM tab2 AS cor0
----
-5474
-58734
-86979

onlyif mysql # use DIV operator for integer division
query I rowsort label-31
SELECT + - col0 DIV - col2 + 72 FROM tab1 AS cor0
----
72
72
73

skipif mysql # not compatible
query I rowsort label-31
SELECT + - col0 / - col2 + 72 FROM tab1 AS cor0
----
72
72
73

query I rowsort
SELECT + - cor0.col1 * col0 + 36 * + 84 + + col0 AS col0 FROM tab2 cor0
----
-1500
1760
2814

onlyif mysql # use DIV operator for integer division
query I rowsort label-33
SELECT ALL col0 * col2 + 58 DIV - col1 + + col1 AS col2 FROM tab1 AS cor0
----
186
3653
7689

skipif mysql # not compatible
query I rowsort label-33
SELECT ALL col0 * col2 + 58 / - col1 + + col1 AS col2 FROM tab1 AS cor0
----
186
3653
7689

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

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

query I rowsort
SELECT - 55 * 93 AS col2 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 1121b8954938da0903614816ce872d89

query I rowsort
SELECT ALL - ( + 68 ) FROM tab0, tab2 AS cor0
----
9 values hashing to 5febf382d36d6e0191889c41b928786f

query I rowsort
SELECT + col0 * + col0 * 75 + - col2 * col2 AS col0 FROM tab1
----
-2241
303951
470784

onlyif mysql # use DIV operator for integer division
query I rowsort label-38
SELECT - + col2 * col1 DIV - col0 AS col2 FROM tab1 AS cor0
----
15
468
8

skipif mysql # not compatible
query I rowsort label-38
SELECT - + col2 * col1 / - col0 AS col2 FROM tab1 AS cor0
----
15
468
8

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

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

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

query I rowsort
SELECT + - col2 * 67 AS col1 FROM tab2 AS cor0
----
-1742
-1809
-2546

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

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

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

query I rowsort
SELECT ALL tab2.col1 * + 53 AS col1 FROM tab2
----
1643
3127
901

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

query I rowsort
SELECT ( - col1 ) * - col0 FROM tab0
----
2064
3395
8099

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-48
SELECT 10 DIV - col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-48
SELECT 10 / - col1 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT + - 35 * + col2 + + col1 FROM tab2 AS cor0
----
-1313
-851
-914

query I rowsort
SELECT ALL + cor0.col2 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5

onlyif mysql # use DIV operator for integer division
query I rowsort label-51
SELECT DISTINCT + 72 DIV - cor0.col1 FROM tab1 cor0
----
-2
-5
-7

skipif mysql # not compatible
query I rowsort label-51
SELECT DISTINCT + 72 / - cor0.col1 FROM tab1 cor0
----
-2
-5
-7

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

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

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 70 * - col1 - col2 col1 FROM tab1 AS cor0
----
-1006
-1874
-757

query I rowsort
SELECT ALL 22 - - 56 FROM tab0
----
78
78
78

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

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + CAST ( tab1.col2 AS REAL ) AS col0 FROM tab1, tab2, tab1 cor0
----
54
57
96

query I rowsort
SELECT ALL col1 + 74 FROM tab0 AS cor0
----
160
165
171

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

query I rowsort
SELECT - - ( ( - col0 ) ) - col0 FROM tab0 AS cor0
----
-178
-48
-70

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

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

query I rowsort
SELECT - 57 AS col2 FROM tab2, tab1 AS cor0, tab0 AS cor1, tab2 AS cor2
----
81 values hashing to 1b1b58f936aab250d5d6d3f1065ea6dd

query I rowsort
SELECT ALL - 26 AS col0 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to 4e49eac022daeae6f88f610644ba3754

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

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

query I rowsort
SELECT ALL 31 * - col1 FROM tab1
----
-310
-403
-806

query I rowsort
SELECT DISTINCT cor1.col0 AS col0 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
7
78
79

query I rowsort
SELECT - + col1 + 28 * + ( + col0 ) AS col1 FROM tab0 cor0
----
2401
586
883

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

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

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

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

query I rowsort
SELECT ALL + cor0.col1 + col1 * + 51 FROM tab2 cor0
----
1612
3068
884

query I rowsort
SELECT ALL + - cor0.col2 * - 19 AS col0 FROM tab1 AS cor0
----
1026
1083
1824

query I rowsort
SELECT col2 * + col0 + - 69 FROM tab2 AS cor0
----
120
1959
2933

query I rowsort
SELECT DISTINCT - col2 * 45 AS col1 FROM tab2 AS cor0
----
-1170
-1215
-1710

onlyif mysql # use DIV operator for integer division
query I rowsort label-80
SELECT ALL + 39 DIV 10 FROM tab0 AS cor0
----
3
3
3

skipif mysql # not compatible
query I rowsort label-80
SELECT ALL + 39 / 10 FROM tab0 AS cor0
----
3
3
3

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

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

query I rowsort
SELECT DISTINCT cor0.col0 + - col0 - col1 FROM tab1 AS cor0
----
-10
-13
-26

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

query I rowsort
SELECT DISTINCT + + 49 * col1 AS col0 FROM tab1 AS cor0
----
1274
490
637

query I rowsort
SELECT ALL - 34 - 47 FROM tab0 AS cor0
----
-81
-81
-81

query I rowsort
SELECT 55 * + 15 FROM tab2 AS cor0
----
825
825
825

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-88
SELECT - tab2.col0 + col2 * 75 DIV - col0 FROM tab2
----
-103
-115
-296

skipif mysql # not compatible
query I rowsort label-88
SELECT - tab2.col0 + col2 * 75 / - col0 FROM tab2
----
-103
-115
-296

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

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

skipif mysql # not compatible
query I rowsort label-90
SELECT 19 / col2 FROM tab0 AS cor0
----
0
0
19

query I rowsort
SELECT ALL - + col0 * + col1 * - ( col2 ) + col0 * col2 AS col1 FROM tab1 cor0
----
107520
40128
4374

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * + col0 col1 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT - col1 * + col2 + + col2 + col2 * - col2 FROM tab1 AS cor0
----
-10368
-3762
-4266

onlyif mysql # use DIV operator for integer division
query I rowsort label-95
SELECT ALL + col2 DIV + col2 + + 88 FROM tab1 cor0
----
89
89
89

skipif mysql # not compatible
query I rowsort label-95
SELECT ALL + col2 / + col2 + + 88 FROM tab1 cor0
----
89
89
89

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

query I rowsort
SELECT ALL 3 * - col0 AS col1 FROM tab0 AS cor0
----
-105
-267
-72

onlyif mysql # use DIV operator for integer division
query I rowsort label-98
SELECT ALL + 48 * col0 DIV col0 AS col1 FROM tab0 AS cor0
----
48
48
48

skipif mysql # not compatible
query I rowsort label-98
SELECT ALL + 48 * col0 / col0 AS col1 FROM tab0 AS cor0
----
48
48
48

query I rowsort
SELECT + 19 * - cor0.col1 + - 4 AS col1 FROM tab1 AS cor0
----
-194
-251
-498

onlyif mysql # use DIV operator for integer division
query I rowsort label-100
SELECT DISTINCT - - col0 * cor0.col2 + col0 DIV col1 AS col1 FROM tab0 AS cor0
----
35
7298
792

skipif mysql # not compatible
query I rowsort label-100
SELECT DISTINCT - - col0 * cor0.col2 + col0 / col1 AS col1 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT + 7 + col0 FROM tab2 AS cor0
----
14
85
86

query I rowsort
SELECT - 47 + col0 FROM tab1 AS cor0
----
-44
17
33

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-104
SELECT - col1 + - 0 DIV col1 AS col1 FROM tab2
----
-17
-31
-59

skipif mysql # not compatible
query I rowsort label-104
SELECT - col1 + - 0 / col1 AS col1 FROM tab2
----
-17
-31
-59

query I rowsort
SELECT ALL ( 8 * + col2 ) FROM tab2
----
208
216
304

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT CAST ( + col2 AS REAL ) col2 FROM tab2
----
26
27
38

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

query I rowsort
SELECT DISTINCT ( - col2 * col2 ) AS col2 FROM tab1
----
-2916
-3249
-9216

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * + col2 + col1 col1 FROM tab0
----
1175
6815
98

query I rowsort
SELECT ALL - - 79 * + col2 AS col0 FROM tab1 AS cor0
----
4266
4503
7584

query I rowsort
SELECT DISTINCT + col0 * col2 * 3 + 82 * col2 FROM tab2 cor0
----
12122
2781
8216

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT col0 + - cor0.col0 * CAST ( + col1 AS REAL ) FROM tab2 AS cor0
----
-1264
-210
-4524

query I rowsort
SELECT DISTINCT - - ( + col0 ) + + ( 22 ) AS col1 FROM tab0 AS cor0
----
111
46
57

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

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

query I rowsort
SELECT - col1 + col0 * + 29 AS col1 FROM tab0 cor0
----
2490
610
918

query I rowsort
SELECT ALL - + 69 + col0 * + col0 FROM tab2 cor0
----
-20
6015
6172

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-117
SELECT - - cor0.col2 * - col1 + CAST( cor0.col1 AS SIGNED ) FROM tab2 AS cor0
----
-1475
-629
-806

skipif mysql # not compatible
query I rowsort label-117
SELECT - - cor0.col2 * - col1 + CAST ( cor0.col1 AS INTEGER ) FROM tab2 AS cor0
----
-1475
-629
-806

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

query I rowsort
SELECT DISTINCT - 36 * + col2 + ( - col1 ) FROM tab0 AS cor0
----
-1274
-133
-3043

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

query I rowsort
SELECT + col2 + col2 * 87 FROM tab2 AS cor0
----
2288
2376
3344

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-122
SELECT ALL col2 + ( ( - col1 ) ) * col2 * col1 + + tab2.col2 * - CAST( ( col1 ) + 85 AS SIGNED ) * + tab2.col0 FROM tab2
----
-317148
-382512
-47844

skipif mysql # not compatible
query I rowsort label-122
SELECT ALL col2 + ( ( - col1 ) ) * col2 * col1 + + tab2.col2 * - CAST ( ( col1 ) + 85 AS INTEGER ) * + tab2.col0 FROM tab2
----
-317148
-382512
-47844

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

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

query I rowsort
SELECT - cor0.col1 * - 22 FROM tab1 AS cor0
----
220
286
572

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

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

skipif mysql # not compatible
query I rowsort label-127
SELECT ALL col0 / + 74 AS col2 FROM tab2 AS cor0
----
0
1
1

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

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

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

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

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

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

query I rowsort
SELECT cor0.col1 * col0 * 63 AS col1 FROM tab2 AS cor0
----
13671
289926
84609

query I rowsort
SELECT - col0 * ( col2 + + col2 ) FROM tab2 cor0
----
-378
-4056
-6004

query I rowsort
SELECT DISTINCT col1 + col0 * col0 FROM tab1 AS cor0
----
35
4106
6413

query I rowsort
SELECT ALL + 39 + col2 AS col0 FROM tab2 AS cor0
----
65
66
77

query I rowsort
SELECT DISTINCT cor1.col1 FROM tab1, tab0 AS cor0, tab1 AS cor1, tab1 AS cor2
----
10
13
26

query I rowsort
SELECT DISTINCT 47 * col2 + cor0.col0 AS col0 FROM tab0 AS cor0
----
1575
3943
82

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

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

query I rowsort
SELECT - + col2 * 35 AS col0 FROM tab0 AS cor0
----
-1155
-2870
-35

query I rowsort
SELECT + 68 * - 33 + - col0 FROM tab2 AS cor0
----
-2251
-2322
-2323

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-145
SELECT col0 DIV + 7 + col0 FROM tab0
----
101
27
40

skipif mysql # not compatible
query I rowsort label-145
SELECT col0 / + 7 + col0 FROM tab0
----
101
27
40

onlyif mysql # use DIV operator for integer division
query I rowsort label-146
SELECT DISTINCT col0 + ( col2 ) * - col0 + 14 * col1 DIV col2 AS col2 FROM tab1
----
-153
-3582
-7599

skipif mysql # not compatible
query I rowsort label-146
SELECT DISTINCT col0 + ( col2 ) * - col0 + 14 * col1 / col2 AS col2 FROM tab1
----
-153
-3582
-7599

query I rowsort
SELECT + col1 + - col0 + + 75 AS col1 FROM tab2
----
13
56
99

query I rowsort
SELECT - + 6 * - 26 * cor0.col0 + col0 + + cor0.col1 AS col0 FROM tab1 AS cor0
----
10058
12573
497

query I rowsort
SELECT + col2 * - col2 + - col1 + - col2 AS col1 FROM tab2 AS cor0
----
-1499
-761
-787

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

query I rowsort
SELECT - + 55 + + col2 * col2 AS col0 FROM tab0 AS cor0
----
-54
1034
6669

query I rowsort
SELECT + - 54 * - col0 AS col0 FROM tab2 AS cor0
----
378
4212
4266

query I rowsort
SELECT DISTINCT ( 76 ) * + col2 FROM tab1 AS cor0
----
4104
4332
7296

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

query I rowsort
SELECT - tab1.col1 + 16 * 54 AS col0 FROM tab1
----
838
851
854

query I rowsort
SELECT DISTINCT col0 * col0 + 58 AS col1 FROM tab2
----
107
6142
6299

query I rowsort
SELECT + 23 + col1 * col0 * - col0 + ( col0 ) AS col2 FROM tab1 AS cor0
----
-208
-40873
-83097

query I rowsort
SELECT + 87 * col2 + + col1 * col2 + 83 FROM tab2 AS cor0
----
3269
3879
4035

query I rowsort
SELECT ALL tab0.col0 FROM tab0, tab0 cor0
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63

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

query I rowsort
SELECT ( - col0 ) + tab0.col0 FROM tab0
----
0
0
0

query I rowsort
SELECT + 2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 84dbfaf9bc17dd097f15bc36b4186261

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + + 47 * 5 col2 FROM tab0 cor0
----
321
326
332

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

skipif mysql # not compatible
query I rowsort label-165
SELECT + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT 96 + + col2 FROM tab0
----
129
178
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-167
SELECT - col0 DIV + 99 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-167
SELECT - col0 / + 99 FROM tab1
----
0
0
0

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

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

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

query I rowsort
SELECT DISTINCT col2 + + 15 FROM tab2
----
41
42
53

onlyif mysql # use DIV operator for integer division
query I rowsort label-171
SELECT ALL col0 * col2 + - cor0.col0 DIV col2 AS col1 FROM tab1 AS cor0
----
162
3647
7680

skipif mysql # not compatible
query I rowsort label-171
SELECT ALL col0 * col2 + - cor0.col0 / col2 AS col1 FROM tab1 AS cor0
----
162
3647
7680

query I rowsort
SELECT + col1 * cor0.col0 + 44 FROM tab0 AS cor0
----
2108
3439
8143

onlyif mysql # use DIV operator for integer division
query I rowsort label-173
SELECT DISTINCT + - col1 DIV col1 + cor0.col2 * col1 DIV + 13 FROM tab2 cor0
----
117
48
63

skipif mysql # not compatible
query I rowsort label-173
SELECT DISTINCT + - col1 / col1 + cor0.col2 * col1 / + 13 FROM tab2 cor0
----
117
48
63

query I rowsort
SELECT ALL 20 * 70 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 4f1f2c1f20c5d728d98a23a56f938ef4

query I rowsort
SELECT + col2 * - ( 11 ) FROM tab0 AS cor0
----
-11
-363
-902

query I rowsort
SELECT col1 * - 17 FROM tab2 cor0
----
-1003
-289
-527

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

query I rowsort
SELECT DISTINCT cor0.col2 * + 52 AS col0 FROM tab1 cor0
----
2808
2964
4992

query I rowsort
SELECT + col1 * 28 AS col1 FROM tab0 AS cor0
----
2408
2548
2716

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

query I rowsort
SELECT + + col2 * - ( - col0 ) * col2 AS col2 FROM tab2 cor0
----
114076
5103
52728

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

query I rowsort
SELECT DISTINCT ( 6 ) FROM tab2, tab1 AS cor0, tab1 AS cor1
----
6

query I rowsort
SELECT col1 + cor0.col0 FROM tab2 cor0
----
137
38
96

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

query I rowsort
SELECT ALL + cor0.col1 * + 54 * - cor0.col2 AS col0 FROM tab1 AS cor0
----
-30780
-67392
-75816

query I rowsort
SELECT ALL cor0.col0 * + 91 FROM tab2 AS cor0
----
637
7098
7189

query I rowsort
SELECT + col1 + col0 * 78 AS col2 FROM tab1 cor0
----
260
5002
6253

onlyif mysql # use DIV operator for integer division
query I rowsort label-189
SELECT DISTINCT col0 DIV tab2.col1 AS col2 FROM tab2
----
0
1
4

skipif mysql # not compatible
query I rowsort label-189
SELECT DISTINCT col0 / tab2.col1 AS col2 FROM tab2
----
0
1
4

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

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

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

query I rowsort
SELECT - 20 * 39 AS col0 FROM tab0, tab2 AS cor0 CROSS JOIN tab1
----
27 values hashing to 531177cf111e12425b092453caace406

query I rowsort
SELECT DISTINCT + tab1.col0 + tab1.col0 + - col2 FROM tab1
----
-48
64
71

query I rowsort
SELECT DISTINCT - col1 * col1 + - ( col2 ) + col0 AS col0 FROM tab2
----
-248
-3429
-981

query I rowsort
SELECT - 76 FROM tab1
----
-76
-76
-76

query I rowsort
SELECT col1 * cor0.col2 * + cor0.col1 + + col2 * col2 FROM tab2 AS cor0
----
12426
26676
91182

query I rowsort
SELECT + - 66 AS col0 FROM tab1 cor0
----
-66
-66
-66

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

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

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

query I rowsort
SELECT ALL - col1 + 88 * + col1 FROM tab0 AS cor0
----
7482
7917
8439

query I rowsort
SELECT - 72 - - col0 AS col1 FROM tab1
----
-69
-8
8

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

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

query I rowsort
SELECT cor0.col1 + col0 * - col1 AS col2 FROM tab0 AS cor0
----
-1978
-3298
-8008

query I rowsort
SELECT ALL + 65 * - cor0.col1 FROM tab0 AS cor0
----
-5590
-5915
-6305

query I rowsort
SELECT - + 13 + col2 AS col0 FROM tab1 cor0
----
41
44
83

onlyif mysql # use DIV operator for integer division
query I rowsort label-206
SELECT DISTINCT ( + cor0.col1 ) + col1 DIV ( + cor0.col1 ) FROM tab0 cor0
----
87
92
98

skipif mysql # not compatible
query I rowsort label-206
SELECT DISTINCT ( + cor0.col1 ) + col1 / ( + cor0.col1 ) FROM tab0 cor0
----
87
92
98

query I rowsort
SELECT + + 15 * col0 - - ( - 90 ) * col1 AS col2 FROM tab1 AS cor0
----
-2295
30
60

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-209
SELECT ALL + col0 * - CAST( - ( col1 ) + + col0 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-1482
-4898
168

skipif mysql # not compatible
query I rowsort label-209
SELECT ALL + col0 * - CAST ( - ( col1 ) + + col0 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-1482
-4898
168

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col2 col2 FROM tab1, tab0 cor0, tab1 AS cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475

onlyif mysql # use DIV operator for integer division
query I rowsort label-211
SELECT ALL - col2 DIV - 1 FROM tab2
----
26
27
38

skipif mysql # not compatible
query I rowsort label-211
SELECT ALL - col2 / - 1 FROM tab2
----
26
27
38

query I rowsort
SELECT ALL + tab0.col2 FROM tab0, tab2 AS cor0
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8

query I rowsort
SELECT ALL tab1.col0 * - 5 FROM tab1
----
-15
-320
-400

onlyif mysql # use DIV operator for integer division
query I rowsort label-214
SELECT DISTINCT cor0.col1 * 50 + col1 DIV + col2 FROM tab0 AS cor0
----
4302
4551
4947

skipif mysql # not compatible
query I rowsort label-214
SELECT DISTINCT cor0.col1 * 50 + col1 / + col2 FROM tab0 AS cor0
----
4302
4551
4947

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

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

query I rowsort
SELECT DISTINCT + col1 + col2 * col0 + - col2 FROM tab0 AS cor0
----
131
7307
845

query I rowsort
SELECT - col1 * + col2 + 59 * col0 * col0 FROM tab0 AS cor0
----
31146
459877
72178

query I rowsort
SELECT ALL - col2 + + 73 AS col1 FROM tab1 AS cor0
----
-23
16
19

query I rowsort
SELECT DISTINCT + + col0 * - 47 FROM tab0 AS cor0
----
-1128
-1645
-4183

query I rowsort
SELECT ALL + col2 * cor0.col2 + + col2 + col1 AS col0 FROM tab1 AS cor0
----
2996
3316
9325

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

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

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

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-227
SELECT DISTINCT - - col0 * col1 DIV + col1 AS col1 FROM tab2 AS cor0
----
7
78
79

skipif mysql # not compatible
query I rowsort label-227
SELECT DISTINCT - - col0 * col1 / + col1 AS col1 FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT ALL - - cor0.col1 * col1 - - col1 * 9 FROM tab2 AS cor0
----
1240
4012
442

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

query I rowsort
SELECT DISTINCT 56 * + col1 * + col0 + - 37 FROM tab1 AS cor0
----
35803
4331
58203

query I rowsort
SELECT ALL + cor0.col1 * - col1 - 48 AS col0 FROM tab2 AS cor0
----
-1009
-337
-3529

query I rowsort
SELECT cor0.col2 + - col1 * - col0 * - col0 AS col1 FROM tab0 AS cor0
----
-118824
-49503
-720729

query I rowsort
SELECT DISTINCT col1 + + col1 * - col0 AS col2 FROM tab0 AS cor0
----
-1978
-3298
-8008

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

skipif mysql # not compatible
query I rowsort label-234
SELECT ALL - - col2 / col2 AS col1 FROM tab0 AS cor0
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + col1 col0 FROM tab0 AS cor0
----
172
182
194

query I rowsort
SELECT DISTINCT col1 * col0 + 21 AS col1 FROM tab0 AS cor0
----
2085
3416
8120

query I rowsort
SELECT - 50 * col1 + - 89 FROM tab2 AS cor0
----
-1639
-3039
-939

query I rowsort
SELECT DISTINCT col1 * - col1 + col0 * - col2 AS col1 FROM tab0 AS cor0
----
-15579
-8188
-9444

query I rowsort
SELECT ALL - ( 90 ) - col0 FROM tab0
----
-114
-125
-179

query I rowsort
SELECT ALL - 36 + + col2 AS col2 FROM tab0 cor0
----
-3
-35
46

query I rowsort
SELECT DISTINCT + 36 - + col2 FROM tab0 cor0
----
-46
3
35

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

query I rowsort
SELECT + 30 * - col0 AS col1 FROM tab1
----
-1920
-2400
-90

query I rowsort
SELECT DISTINCT ( ( col1 ) ) * tab2.col2 * + 27 AS col1 FROM tab2
----
17442
22599
41418

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab2 cor0, tab0 AS cor1, tab2 cor2
----
972 values hashing to e486ce227b61d9db6f8414f9d6361094

query I rowsort
SELECT DISTINCT - ( - col2 ) * col2 + 55 AS col2 FROM tab1 AS cor0
----
2971
3304
9271

query I rowsort
SELECT 92 + - 36 FROM tab0 AS cor0
----
56
56
56

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

query I rowsort
SELECT - - 31 + - col1 FROM tab2 AS cor0
----
-28
0
14

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

query I rowsort
SELECT ALL + 17 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 43298e43365fccb5146ea32003753c92

query I rowsort
SELECT col1 * + ( col0 + + tab0.col2 ) AS col0 FROM tab0
----
15561
3492
4902

query I rowsort
SELECT ALL 24 * col2 AS col2 FROM tab2
----
624
648
912

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + - tab2.col0 col0 FROM tab2
----
-41
-52
20

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

query I rowsort
SELECT DISTINCT 5 FROM tab2, tab2 AS cor0
----
5

onlyif mysql # use DIV operator for integer division
query I rowsort label-258
SELECT - CAST( col0 AS SIGNED ) DIV col2 AS col2 FROM tab0 AS cor0
----
-1
-35
0

skipif mysql # not compatible
query I rowsort label-258
SELECT - CAST ( col0 AS INTEGER ) / col2 AS col2 FROM tab0 AS cor0
----
-1
-35
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 41 * tab2.col1 col0 FROM tab2
----
-1271
-2419
-697

query I rowsort
SELECT + + col1 + ( col0 ) * + col2 + + col2 FROM tab1 AS cor0
----
242
3715
7789

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * - col1 + + 57 col1 FROM tab1 AS cor0
----
-112
-43
-619

query I rowsort
SELECT ALL - 68 + col2 AS col2 FROM tab1 AS cor0
----
-11
-14
28

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

query I rowsort
SELECT - col1 * col2 + col0 * col2 AS col2 FROM tab1
----
-1242
3078
6432

query I rowsort
SELECT ALL + 99 AS col2 FROM tab1
----
99
99
99

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

query I rowsort
SELECT col0 + col1 + cor0.col2 FROM tab2 AS cor0
----
134
163
65

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * 67 col0 FROM tab1 AS cor0
----
201
4288
5360

onlyif mysql # use DIV operator for integer division
query I rowsort label-271
SELECT ALL + col1 + + 81 + 56 DIV cor0.col1 FROM tab1 AS cor0
----
109
96
98

skipif mysql # not compatible
query I rowsort label-271
SELECT ALL + col1 + + 81 + 56 / cor0.col1 FROM tab1 AS cor0
----
109
96
98

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

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

query I rowsort
SELECT ALL - - col0 + + 28 AS col0 FROM tab1 AS cor0
----
108
31
92

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

skipif mysql # not compatible
query I rowsort label-275
SELECT col2 * CAST ( + col0 * col0 AS INTEGER ) + col0 * col0 FROM tab2 AS cor0
----
1372
164268
243399

onlyif mysql # use DIV operator for integer division
query I rowsort label-276
SELECT DISTINCT col2 + ( 86 ) DIV - col0 AS col2 FROM tab0 AS cor0
----
-1
30
82

skipif mysql # not compatible
query I rowsort label-276
SELECT DISTINCT col2 + ( 86 ) / - col0 AS col2 FROM tab0 AS cor0
----
-1
30
82

query I rowsort
SELECT - cor0.col1 * - 90 FROM tab0 AS cor0
----
7740
8190
8730

query I rowsort
SELECT DISTINCT 46 AS col2 FROM tab1, tab2 AS cor0
----
46

onlyif mysql # use DIV operator for integer division
query I rowsort label-279
SELECT + col1 DIV 35 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-279
SELECT + col1 / 35 FROM tab1
----
0
0
0

query I rowsort
SELECT + col1 * ( + col1 ) FROM tab1 cor0
----
100
169
676

query I rowsort
SELECT - col1 * 21 + col1 AS col2 FROM tab1 AS cor0
----
-200
-260
-520

query I rowsort
SELECT DISTINCT col2 + + col0 - - col1 AS col0 FROM tab2
----
134
163
65

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

skipif mysql # not compatible
query I rowsort label-283
SELECT + CAST ( 83 AS INTEGER ) * col1 + ( col2 + col0 ) AS col1 FROM tab1 AS cor0
----
1255
2215
951

onlyif mysql # use DIV operator for integer division
query I rowsort label-284
SELECT DISTINCT + + cor0.col2 DIV + 21 + + col0 col0 FROM tab1 AS cor0
----
5
66
84

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-284
SELECT DISTINCT + + cor0.col2 / + 21 + + col0 col0 FROM tab1 AS cor0
----
5
66
84

query I rowsort
SELECT 3 FROM tab2, tab0 AS cor0
----
9 values hashing to 3cf1e377a943589897b8d431a834f1ba

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

query I rowsort
SELECT col0 * 12 + + col1 * col0 AS col2 FROM tab0 AS cor0
----
2352
3815
9167

query I rowsort
SELECT + col1 * 93 + - cor0.col1 FROM tab1 AS cor0
----
1196
2392
920

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

query I rowsort
SELECT DISTINCT + ( + col0 ) + - 10 FROM tab1 AS cor0
----
-7
54
70

query I rowsort
SELECT ALL - - 23 * cor0.col2 - 30 AS col1 FROM tab2 AS cor0
----
568
591
844

query I rowsort
SELECT + + cor0.col1 * + col1 FROM tab2 cor0
----
289
3481
961

onlyif mysql # use DIV operator for integer division
query I rowsort label-293
SELECT 94 DIV + col2 FROM tab1 cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-293
SELECT 94 / + col2 FROM tab1 cor0
----
0
1
1

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

query I rowsort
SELECT - + 17 AS col1 FROM tab0 AS cor0
----
-17
-17
-17

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-297
SELECT col2 + - CAST( col1 AS SIGNED ) FROM tab0 AS cor0
----
-53
-9
-96

skipif mysql # not compatible
query I rowsort label-297
SELECT col2 + - CAST ( col1 AS INTEGER ) FROM tab0 AS cor0
----
-53
-9
-96

onlyif mysql # use DIV operator for integer division
query I rowsort label-298
SELECT ALL + 78 DIV + 71 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 001554c2952f1a80506b182ee04686f5

skipif mysql # not compatible
query I rowsort label-298
SELECT ALL + 78 / + 71 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 001554c2952f1a80506b182ee04686f5

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + + 47 col1 FROM tab1
----
101
104
143

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + + 13 col0 FROM tab0 AS cor0
----
104
110
99

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-306
SELECT ALL + col2 * + 32 + cor0.col0 * - 62 - cor0.col1 * col1 DIV CAST( cor0.col0 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-1890
-2145
1317

skipif mysql # not compatible
query I rowsort label-306
SELECT ALL + col2 * + 32 + cor0.col0 * - 62 - cor0.col1 * col1 / CAST ( cor0.col0 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-1890
-2145
1317

query I rowsort
SELECT col2 + + 90 + + cor0.col1 AS col1 FROM tab0 AS cor0
----
188
209
263

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

query I rowsort
SELECT + cor0.col0 * + 92 AS col0 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 9272e88f1fbff6838fd84ea0bf70dd23

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

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

query IIIIIIIIIIII rowsort
SELECT * FROM tab1, tab2 cor0, tab2, tab1 cor1
----
972 values hashing to 980274175fafec015a83080672486a9a

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

query I rowsort
SELECT + col1 * + ( + col1 + - col2 ) * - col2 AS col0 FROM tab1 AS cor0
----
103584
26790
39312

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

query I rowsort
SELECT ALL - + cor0.col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 7b5938124253798426fbf09c18e1fd75

query I rowsort
SELECT 62 * 71 + cor1.col0 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to a0dbc05689a7b915ec4edb66d81dace5

query I rowsort
SELECT + col0 * - 77 + col2 + col0 FROM tab0 AS cor0
----
-1791
-2659
-6682

query I rowsort
SELECT DISTINCT - + col2 * + col2 * col0 FROM tab1 AS cor0
----
-207936
-737280
-8748

query I rowsort
SELECT + col0 * + col1 * + 71 AS col0 FROM tab1
----
45440
5538
73840

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

query I rowsort
SELECT ALL - 89 - col0 AS col2 FROM tab2 AS cor0
----
-167
-168
-96

query I rowsort
SELECT col0 * + col0 + + col2 AS col2 FROM tab1
----
4153
63
6496

query I rowsort
SELECT - col1 * 19 - + cor0.col0 FROM tab1 AS cor0
----
-254
-327
-497

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

query I rowsort
SELECT ALL col1 * 44 FROM tab2 AS cor0
----
1364
2596
748

query I rowsort
SELECT ( + 66 ) * col2 AS col1 FROM tab2 cor0
----
1716
1782
2508

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

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

query I rowsort
SELECT DISTINCT - - 73 * cor0.col2 AS col1 FROM tab2 AS cor0
----
1898
1971
2774

onlyif mysql # use DIV operator for integer division
query I rowsort label-331
SELECT col0 + + tab1.col2 - col2 DIV - col0 AS col0 FROM tab1
----
121
177
75

skipif mysql # not compatible
query I rowsort label-331
SELECT col0 + + tab1.col2 - col2 / - col0 AS col0 FROM tab1
----
121
177
75

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-333
SELECT DISTINCT ( + tab1.col2 ) DIV - col2 + col1 + col0 DIV - col1 FROM tab1
----
25
3
6

skipif mysql # not compatible
query I rowsort label-333
SELECT DISTINCT ( + tab1.col2 ) / - col2 + col1 + col0 / - col1 FROM tab1
----
25
3
6

query I rowsort
SELECT tab0.col2 * + col2 * - col1 + col0 FROM tab0
----
-611795
-62
-93630

query I rowsort
SELECT ALL - 26 + col2 + + col2 AS col1 FROM tab1
----
166
82
88

query I rowsort
SELECT col1 + 32 + - col1 AS col1 FROM tab1
----
32
32
32

skipif mysql # not compatible
query I rowsort
SELECT CAST ( col1 AS REAL ) * + tab1.col2 * col1 FROM tab1
----
16224
36504
5700

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

skipif mysql # not compatible
query I rowsort label-338
SELECT - CAST ( - col1 + col1 AS INTEGER ) * 94 FROM tab2
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-339
SELECT DISTINCT 92 + col1 DIV + col0 FROM tab2
----
92
96

skipif mysql # not compatible
query I rowsort label-339
SELECT DISTINCT 92 + col1 / + col0 FROM tab2
----
92
96

query I rowsort
SELECT ALL 76 - + cor0.col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 5bc1c7e8a9caf4e18ac70a4eb167fa24

query I rowsort
SELECT 39 + + col2 AS col0 FROM tab0
----
121
40
72

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + cor0.col2 + - 2 col1 FROM tab0 AS cor0
----
-1
31
80

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-345
SELECT CAST ( 72 AS INTEGER ) col1 FROM tab2, tab2 AS cor0, tab1 cor1, tab1 AS cor2
----
81 values hashing to e1618abfe12be6a950cc575d695639b7

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

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

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

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

query I rowsort
SELECT + 9 AS col0 FROM tab2, tab2 cor0, tab2 AS cor1
----
27 values hashing to ebef7303942834ca1e6ca8604ec18a07

query I rowsort
SELECT - 52 + col2 FROM tab0
----
-19
-51
30

query I rowsort
SELECT DISTINCT - ( + cor1.col2 ) FROM tab0, tab1 AS cor0, tab2 AS cor1
----
-26
-27
-38

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

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

query I rowsort
SELECT ALL + col0 * - ( + cor0.col0 ) * cor0.col1 + + col1 FROM tab1 cor0
----
-208
-40950
-83187

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

query I rowsort
SELECT DISTINCT col2 + + cor0.col2 + - col2 * - col1 AS col2 FROM tab1 AS cor0
----
1440
1512
684

onlyif mysql # use DIV operator for integer division
query I rowsort label-357
SELECT DISTINCT - + col2 DIV 58 + + col1 DIV - col1 + + ( col1 ) * col0 * cor0.col1 FROM tab0 AS cor0
----
177503
329314
737007

skipif mysql # not compatible
query I rowsort label-357
SELECT DISTINCT - + col2 / 58 + + col1 / - col1 + + ( col1 ) * col0 * cor0.col1 FROM tab0 AS cor0
----
177503
329314
737007

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

query I rowsort
SELECT ALL col0 * 4 - 96 * col2 * - col0 FROM tab0 AS cor0
----
3500
700964
76128

query I rowsort
SELECT DISTINCT + + col0 * 30 - 64 AS col1 FROM tab1 AS cor0
----
1856
2336
26

query I rowsort
SELECT DISTINCT - + col2 * col0 * - col2 AS col0 FROM tab0 cor0
----
26136
35
598436

query I rowsort
SELECT DISTINCT col0 * - cor0.col1 + + col1 FROM tab0 AS cor0
----
-1978
-3298
-8008

query I rowsort
SELECT ALL - cor0.col0 + 68 AS col0 FROM tab1 AS cor0
----
-12
4
65

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 82 - cor0.col1 col1 FROM tab2 AS cor0
----
-113
-141
-99

query I rowsort
SELECT ALL col2 + col1 * + col0 * + col1 AS col1 FROM tab2 AS cor0
----
22869
271544
6754

query I rowsort
SELECT ALL - 93 FROM tab0 cor0
----
-93
-93
-93

query I rowsort
SELECT ALL - - 11 FROM tab2, tab0, tab2 cor0
----
27 values hashing to 69116737f3f57e2e3273f6dbb04d036c

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

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

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

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

query I rowsort
SELECT - 89 * col2 * + cor0.col2 + ( cor0.col1 ) * + 17 - + col2 FROM tab1 AS cor0
----
-259136
-289048
-820099

query I rowsort
SELECT - + cor0.col0 + ( col1 * - col0 ) FROM tab2 AS cor0
----
-1422
-224
-4680

query I rowsort
SELECT ALL col0 * + tab2.col2 * + 28 + - col0 FROM tab2
----
5285
56706
83977

query I rowsort
SELECT col1 - 87 AS col1 FROM tab2 AS cor0
----
-28
-56
-70

query I rowsort
SELECT + - col2 * col1 * col2 + col1 AS col2 FROM tab0 AS cor0
----
-611793
-93568
0

query I rowsort
SELECT + ( col1 + - 5 ) FROM tab2
----
12
26
54

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

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

query I rowsort
SELECT 13 * col1 AS col0 FROM tab0
----
1118
1183
1261

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-381
SELECT DISTINCT col0 + + col0 * col0 DIV col1 + - col2 * + col1 * + tab0.col2 FROM tab0
----
-50
-611708
-93624

skipif mysql # not compatible
query I rowsort label-381
SELECT DISTINCT col0 + + col0 * col0 / col1 + - col2 * + col1 * + tab0.col2 FROM tab0
----
-50
-611708
-93624

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-383
SELECT - col1 DIV + 61 AS col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-383
SELECT - col1 / + 61 AS col2 FROM tab1 AS cor0
----
0
0
0

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

query I rowsort
SELECT - - col1 * 64 * + col2 AS col1 FROM tab2 cor0
----
41344
53568
98176

query I rowsort
SELECT + col1 + - 41 * - col2 FROM tab2 AS cor0
----
1125
1138
1575

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-388
SELECT DISTINCT + - 61 DIV + 55 AS col0 FROM tab1 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-388
SELECT DISTINCT + - 61 / + 55 AS col0 FROM tab1 cor0
----
-1

query I rowsort
SELECT DISTINCT - 10 * + cor0.col0 FROM tab1, tab1 AS cor0
----
-30
-640
-800

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

query I rowsort
SELECT + 58 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 9ee363c6ac19cfdb8a50c7dfd5cc2b8a

query I rowsort
SELECT - 97 FROM tab2, tab0 AS cor0
----
9 values hashing to e4a6bd848a69226cbb7ad3d154be321b

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col1 col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
86
91
97

query I rowsort
SELECT ALL - ( - col1 ) + col1 * + 61 FROM tab1 AS cor0
----
1612
620
806

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col1 * - col0 + + col2 + ( + col1 * col0 + + 70 ) col2 FROM tab2 AS cor0
----
108
96
97

query I rowsort
SELECT DISTINCT + 7 + + col2 AS col1 FROM tab1 AS cor0
----
103
61
64

query I rowsort
SELECT DISTINCT - 60 * + 83 FROM tab1 cor0
----
-4980

query I rowsort
SELECT DISTINCT col1 + col0 * cor0.col1 + col1 AS col1 FROM tab1 AS cor0
----
1066
130
660

query I rowsort
SELECT DISTINCT + 38 FROM tab0, tab0 AS cor0
----
38

onlyif mysql # use DIV operator for integer division
query I rowsort label-400
SELECT + 61 + col2 DIV col2 FROM tab1 AS cor0
----
62
62
62

skipif mysql # not compatible
query I rowsort label-400
SELECT + 61 + col2 / col2 FROM tab1 AS cor0
----
62
62
62

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

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

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

skipif mysql # not compatible
query I rowsort label-402
SELECT DISTINCT - CAST ( NULL AS REAL ) * ( - col1 * 67 + + col2 ) FROM tab1
----
NULL

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

skipif mysql # not compatible
query I rowsort label-403
SELECT CAST ( + 69 AS INTEGER ) FROM tab0
----
69
69
69

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-405
SELECT DISTINCT 85 DIV cor0.col0 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
1
12

skipif mysql # not compatible
query I rowsort label-405
SELECT DISTINCT 85 / cor0.col0 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
1
12

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

query I rowsort
SELECT - col0 * cor0.col0 + 15 FROM tab0 AS cor0
----
-1210
-561
-7906

query I rowsort
SELECT - col1 + col0 * 84 AS col1 FROM tab0 AS cor0
----
1930
2843
7385

query I rowsort
SELECT col2 + + ( 78 ) FROM tab1 cor0
----
132
135
174

query I rowsort
SELECT col1 + + 80 * - col1 + col1 * + col0 * col0 AS col0 FROM tab2 AS cor0
----
-930
104754
354295

query I rowsort
SELECT + col1 + + ( cor0.col1 ) AS col1 FROM tab2 AS cor0
----
118
34
62

query I rowsort
SELECT DISTINCT - col2 * - ( + col0 + + col0 ) FROM tab0 cor0
----
14596
1584
70

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

query I rowsort
SELECT ALL - col2 + - 2 FROM tab0 AS cor0
----
-3
-35
-84

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

query I rowsort
SELECT col2 + + ( 82 ) AS col1 FROM tab0
----
115
164
83

query I rowsort
SELECT ALL - 20 * - col2 * ( 90 * col1 ) - col1 FROM tab0
----
13431509
174503
5108314

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-418
SELECT ALL + col1 / + 8 - + col0 col1 FROM tab2 AS cor0
----
-4
-71
-77

query I rowsort
SELECT DISTINCT - - col1 + - 38 * - col2 FROM tab2 cor0
----
1047
1057
1461

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 * col0 + + 77 col1 FROM tab1 AS cor0
----
-1
-563
-963

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + 14 * - 97 col0 FROM tab1 AS cor0
----
-1412
-1415
-1454

query I rowsort
SELECT ALL 90 * + col0 AS col2 FROM tab1
----
270
5760
7200

onlyif mysql # use DIV operator for integer division
query I rowsort label-423
SELECT - 2 * col1 DIV - col0 col1 FROM tab0
----
2
5
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-423
SELECT - 2 * col1 / - col0 col1 FROM tab0
----
2
5
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab0.col1 col2 FROM tab0, tab1, tab0 AS cor0
----
86
91
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-425
SELECT + col1 + col2 DIV - col1 col1 FROM tab1 AS cor0
----
24
5
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-425
SELECT + col1 + col2 / - col1 col1 FROM tab1 AS cor0
----
24
5
6

query I rowsort
SELECT + col1 + col0 + 76 * - col0 FROM tab2 AS cor0
----
-494
-5791
-5908

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab1.col1 * + 96 + - col2 col0 FROM tab1
----
1152
2442
903

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-429
SELECT + - col1 DIV + col1 + col2 * + col1 FROM tab2 AS cor0
----
1533
645
836

skipif mysql # not compatible
query I rowsort label-429
SELECT + - col1 / + col1 + col2 * + col1 FROM tab2 AS cor0
----
1533
645
836

query I rowsort
SELECT ALL col2 * 49 FROM tab2 AS cor0
----
1274
1323
1862

query I rowsort
SELECT DISTINCT + + cor0.col0 AS col0 FROM tab2 cor0
----
7
78
79

query I rowsort
SELECT ALL - col0 * 61 + 79 * + col0 FROM tab2 AS cor0
----
126
1404
1422

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - cor0.col1 + + 23 + - cor0.col1 * - ( 7 ) col1 FROM tab1 cor0
----
-547
-926
127

onlyif mysql # use DIV operator for integer division
query I rowsort label-436
SELECT - col1 * + col0 + col1 DIV + cor0.col2 FROM tab1 cor0
----
-1040
-640
-78

skipif mysql # not compatible
query I rowsort label-436
SELECT - col1 * + col0 + col1 / + cor0.col2 FROM tab1 cor0
----
-1040
-640
-78

query I rowsort
SELECT cor0.col1 * 42 FROM tab0, tab0 AS cor0 CROSS JOIN tab1
----
27 values hashing to 075b0bd456eac5567dc2e9c4391fd26b

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

query I rowsort
SELECT - 17 * + 16 AS col0 FROM tab0 AS cor0
----
-272
-272
-272

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 20 * + col0 col1 FROM tab1 AS cor0
----
1280
1600
60

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

query I rowsort
SELECT - col0 + col1 * 49 AS col2 FROM tab2 AS cor0
----
1512
2813
754

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-444
SELECT DISTINCT - - col0 DIV col0 - 61 AS col0 FROM tab1 AS cor0
----
-60

skipif mysql # not compatible
query I rowsort label-444
SELECT DISTINCT - - col0 / col0 - 61 AS col0 FROM tab1 AS cor0
----
-60

query I rowsort
SELECT ALL 32 * col1 AS col0 FROM tab1 AS cor0
----
320
416
832

query I rowsort
SELECT col2 - - col0 * + col1 * col1 AS col2 FROM tab2 AS cor0
----
22869
271544
6754

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

query I rowsort
SELECT + cor1.col0 AS col0 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63

onlyif mysql # use DIV operator for integer division
query I rowsort label-449
SELECT DISTINCT - col1 DIV col1 + 94 + + cor0.col2 col2 FROM tab2 AS cor0
----
119
120
131

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-449
SELECT DISTINCT - col1 / col1 + 94 + + cor0.col2 col2 FROM tab2 AS cor0
----
119
120
131

query I rowsort
SELECT ALL - + 40 + col2 - - ( - cor0.col0 ) AS col1 FROM tab1 AS cor0
----
-24
-47
11

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 79 * + col1 col0 FROM tab0 cor0
----
6794
7189
7663

query I rowsort
SELECT DISTINCT col2 * cor0.col0 + + col2 FROM tab0 AS cor0
----
36
7380
825

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

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

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

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

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

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

query I rowsort
SELECT - 66 * + cor0.col2 FROM tab2 AS cor0
----
-1716
-1782
-2508

query I rowsort
SELECT - - 68 * - col2 * col1 AS col2 FROM tab1 AS cor0
----
-38760
-84864
-95472

query I rowsort
SELECT DISTINCT + - 83 + col2 * col0 FROM tab0 AS cor0
----
-48
709
7215

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

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

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

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

query I rowsort
SELECT + col2 * - col2 * 86 FROM tab0 AS cor0
----
-578264
-86
-93654

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-466
SELECT ALL + col1 + col1 DIV col0 AS col1 FROM tab0 AS cor0
----
89
92
99

skipif mysql # not compatible
query I rowsort label-466
SELECT ALL + col1 + col1 / col0 AS col1 FROM tab0 AS cor0
----
89
92
99

query I rowsort
SELECT ALL + 61 * + cor0.col2 FROM tab1 AS cor0
----
3294
3477
5856

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

query I rowsort
SELECT ALL + ( + 71 ) + - col2 * col0 FROM tab0 AS cor0
----
-721
-7227
36

query I rowsort
SELECT DISTINCT + ( - 84 ) * + col0 FROM tab0 cor0
----
-2016
-2940
-7476

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

query I rowsort
SELECT DISTINCT + 89 * - 19 AS col1 FROM tab1
----
-1691

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-473
SELECT + 73 + col0 * col0 * + CAST( 55 + col0 * col1 AS SIGNED ) FROM tab2
----
13401
28333261
8724991

skipif mysql # not compatible
query I rowsort label-473
SELECT + 73 + col0 * col0 * + CAST ( 55 + col0 * col1 AS INTEGER ) FROM tab2
----
13401
28333261
8724991

query I rowsort
SELECT + tab2.col2 + + 99 AS col1 FROM tab2
----
125
126
137

query I rowsort
SELECT 1 - col0 FROM tab2
----
-6
-77
-78

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

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

query I rowsort
SELECT ALL + 31 * col0 FROM tab2
----
217
2418
2449

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

query I rowsort
SELECT DISTINCT col0 * 31 * col1 AS col1 FROM tab1 AS cor0
----
19840
2418
32240

query I rowsort
SELECT - cor0.col0 + + 60 FROM tab1 AS cor0
----
-20
-4
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + cor0.col2 + cor0.col0 col2 FROM tab1 AS cor0
----
-16
-51
7

query I rowsort
SELECT - col1 * - cor0.col0 * + col1 FROM tab1 AS cor0
----
13520
2028
6400

query I rowsort
SELECT DISTINCT - col0 * + col2 * - col2 - col2 FROM tab0 AS cor0
----
26103
34
598354

onlyif mysql # use DIV operator for integer division
query I rowsort label-484
SELECT + - 95 DIV - col1 - col1 col0 FROM tab1 AS cor0
----
-1
-23
-6

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-484
SELECT + - 95 / - col1 - col1 col0 FROM tab1 AS cor0
----
-1
-23
-6

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

query I rowsort
SELECT ALL + ( - 60 ) FROM tab2, tab0 AS cor0, tab1 AS cor1, tab1 AS cor2
----
81 values hashing to 17ea60db8bdc9b534fe91b7fd55df3f9

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

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

query I rowsort
SELECT ALL - 44 AS col1 FROM tab2, tab1 cor0
----
9 values hashing to 07457d9e571e036a9a3a0f5a5a2e1ef2

query I rowsort
SELECT ALL 40 + col0 * col2 AS col0 FROM tab0 AS cor0
----
7338
75
832

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

skipif mysql # not compatible
query I rowsort label-491
SELECT DISTINCT - + col1 * col0 + + CAST ( ( + col1 ) + col2 * + col0 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
110
3018
6653

query I rowsort
SELECT + col1 + + col1 + - col2 AS col0 FROM tab0 AS cor0
----
100
139
193

query I rowsort
SELECT - 36 + cor0.col1 AS col0 FROM tab2 AS cor0
----
-19
-5
23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - cor0.col2 col0 FROM tab0 AS cor0
----
1
33
82

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

query I rowsort
SELECT - cor0.col1 + cor0.col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 318a6997409c5decbbc3333c9d493ad3

query I rowsort
SELECT tab1.col1 + col1 * 64 FROM tab1
----
1690
650
845

query I rowsort
SELECT ALL - ( 1 ) AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 60fdd6924bb763d6aca00ba74935ef4b

onlyif mysql # use DIV operator for integer division
query I rowsort label-499
SELECT - cor0.col1 DIV - 8 AS col0 FROM tab1 AS cor0
----
1
1
3

skipif mysql # not compatible
query I rowsort label-499
SELECT - cor0.col1 / - 8 AS col0 FROM tab1 AS cor0
----
1
1
3

query I rowsort
SELECT + col2 * + ( + col2 + + col2 ) AS col0 FROM tab1 cor0
----
18432
5832
6498

onlyif mysql # use DIV operator for integer division
query I rowsort label-501
SELECT DISTINCT 83 DIV tab0.col2 FROM tab0
----
1
2
83

skipif mysql # not compatible
query I rowsort label-501
SELECT DISTINCT 83 / tab0.col2 FROM tab0
----
1
2
83

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

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

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

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

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

query I rowsort
SELECT ALL 60 AS col1 FROM tab1 cor0
----
60
60
60

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-506
SELECT ALL + CAST( col2 AS SIGNED ) + + col0 * ( + 88 ) FROM tab1 AS cor0
----
318
5689
7136

skipif mysql # not compatible
query I rowsort label-506
SELECT ALL + CAST ( col2 AS INTEGER ) + + col0 * ( + 88 ) FROM tab1 AS cor0
----
318
5689
7136

onlyif mysql # use DIV operator for integer division
query I rowsort label-507
SELECT ALL 9 + - col1 DIV - col2 AS col0 FROM tab0 cor0
----
10
106
11

skipif mysql # not compatible
query I rowsort label-507
SELECT ALL 9 + - col1 / - col2 AS col0 FROM tab0 cor0
----
10
106
11

query I rowsort
SELECT ALL col2 + 94 AS col1 FROM tab0 AS cor0
----
127
176
95

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

query I rowsort
SELECT 21 + + 6 FROM tab1, tab2 AS cor0
----
9 values hashing to 701bf12d86392cb1585d9e4f3c72e9a8

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

query I rowsort
SELECT 99 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 05ea182fd6036c7f5e0ea08fc061cc67

query I rowsort
SELECT cor0.col1 + + col1 + + cor0.col2 * - col1 * - col1 AS col2 FROM tab0 AS cor0
----
244240
679224
9603

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

query I rowsort
SELECT DISTINCT + 1 AS col1 FROM tab0
----
1

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

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

query I rowsort
SELECT + cor0.col0 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 31 * + cor0.col1 + col2 + - col2 col2 FROM tab2 AS cor0
----
-1829
-527
-961

query I rowsort
SELECT 11 * col0 FROM tab0 cor0
----
264
385
979

query I rowsort
SELECT ALL - 66 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to a408108d423d7784b7d610cb779e515a

query I rowsort
SELECT - + 26 * - cor0.col1 AS col1 FROM tab0 cor0
----
2236
2366
2522

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col2 + cor0.col2 col0 FROM tab0 AS cor0
----
164
2
66

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

query I rowsort
SELECT ALL - - cor0.col2 + - col1 * col2 * + col1 AS col2 FROM tab2 AS cor0
----
-10944
-25920
-90480

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col0 + + cor0.col2 * col2 * col2 col0 FROM tab0 AS cor0
----
35961
36
551457

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

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

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

query I rowsort
SELECT col1 - col0 * col0 AS col0 FROM tab1
----
-4086
-6387
17

query I rowsort
SELECT + col1 + - col2 + + col2 AS col0 FROM tab1
----
10
13
26

onlyif mysql # use DIV operator for integer division
query I rowsort label-532
SELECT DISTINCT col2 + - col2 * - col0 + col0 DIV - tab1.col1 FROM tab1
----
216
3699
7770

skipif mysql # not compatible
query I rowsort label-532
SELECT DISTINCT col2 + - col2 * - col0 + col0 / - tab1.col1 FROM tab1
----
216
3699
7770

query I rowsort
SELECT DISTINCT - col0 - col0 * tab0.col0 AS col0 FROM tab0
----
-1260
-600
-8010

onlyif mysql # use DIV operator for integer division
query I rowsort label-534
SELECT - col0 + - col0 DIV + col2 FROM tab1 cor0
----
-3
-65
-80

skipif mysql # not compatible
query I rowsort label-534
SELECT - col0 + - col0 / + col2 FROM tab1 cor0
----
-3
-65
-80

onlyif mysql # use DIV operator for integer division
query I rowsort label-535
SELECT col2 DIV + col2 - - col1 AS col0 FROM tab0 AS cor0
----
87
92
98

skipif mysql # not compatible
query I rowsort label-535
SELECT col2 / + col2 - - col1 AS col0 FROM tab0 AS cor0
----
87
92
98

query I rowsort
SELECT - col0 + col1 + col0 * col0 FROM tab2
----
6065
6179
73

query I rowsort
SELECT + col2 * col0 * - col0 + tab0.col1 AS col0 FROM tab0
----
-1128
-18922
-649431

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + col2 * col1 + - col0 col1 FROM tab0 AS cor0
----
3360
664029
68088

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * col0 * - cor0.col0 col2 FROM tab2 AS cor0
----
-106097
-1519
-358956

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

query I rowsort
SELECT col2 - tab2.col2 FROM tab2
----
0
0
0

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

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

query I rowsort
SELECT DISTINCT - + col2 * col2 + col2 - - col0 AS col1 FROM tab0 AS cor0
----
-1032
-6553
35

query I rowsort
SELECT DISTINCT cor0.col1 + cor0.col0 * + col1 + + cor0.col0 FROM tab1 AS cor0
----
107
1133
714

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

query III rowsort
SELECT * FROM tab1 WHERE NOT ( + col0 ) <> ( NULL )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE ( col1 ) >= ( NULL )
----

query I rowsort
SELECT + tab0.col2 FROM tab0 WHERE NOT ( NULL ) < - tab0.col0
----

query I rowsort
SELECT col0 * - col0 - col0 * + col0 FROM tab0 WHERE ( col0 ) IN ( - col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * col1 + col0 col1 FROM tab2
----
3559
368
968

query III rowsort
SELECT * FROM tab2 WHERE NOT - col2 IN ( col0 * + col1 )
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col1 IN ( - col1 * col0 )
----

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

query III rowsort
SELECT * FROM tab1 WHERE NULL BETWEEN - col0 * + col1 + - col0 AND NULL
----

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

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

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

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

query I rowsort
SELECT - tab2.col0 * + col1 * col1 FROM tab2 WHERE NOT - col1 * + col2 = ( NULL )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-561
SELECT DISTINCT - - cor0.col1 DIV + col0 + - CAST( + 57 AS SIGNED ) FROM tab0 cor0
----
-54
-55
-56

skipif mysql # not compatible
query I rowsort label-561
SELECT DISTINCT - - cor0.col1 / + col0 + - CAST ( + 57 AS INTEGER ) FROM tab0 cor0
----
-54
-55
-56

query I rowsort
SELECT ALL - - col2 * - col0 - + ( cor0.col1 * - col2 ) AS col2 FROM tab2 AS cor0
----
-2356
-494
648

query I rowsort
SELECT DISTINCT - col0 * cor0.col2 * - 71 FROM tab1 AS cor0
----
11502
259008
545280

query III rowsort
SELECT * FROM tab1 WHERE NULL IN ( - col0 * - col2 )
----

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

query I rowsort
SELECT - tab2.col0 + col1 * + col1 + + col1 FROM tab2
----
227
3462
985

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

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

query I rowsort
SELECT + tab0.col0 AS col2 FROM tab0 WHERE col1 * col0 + col1 + col1 NOT IN ( + col0 * - col0 )
----
24
35
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col2 * col2 col0 FROM tab0 AS cor0
----
-1
-1089
-6724

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col0 / - col2 IN ( col1 )
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL <= ( NULL )
----

query IIIIII rowsort
SELECT * FROM tab1, tab2 AS cor0 WHERE NULL BETWEEN ( NULL ) AND ( NULL )
----

query I rowsort
SELECT + col1 * col2 * + tab1.col2 + + col0 FROM tab1
----
119888
32554
75819

query I rowsort
SELECT ALL - col2 - - col0 AS col0 FROM tab1 WHERE - col2 NOT IN ( col2 * col0 * col2 + tab1.col1 )
----
-16
-51
7

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

skipif mysql # not compatible
query I rowsort label-576
SELECT - col2 + tab2.col1 / - col0 AS col2 FROM tab2
----
-26
-31
-38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 - col0 col0 FROM tab1
----
-7
16
51

query I rowsort
SELECT ALL col0 * col2 * + col2 FROM tab2
----
114076
5103
52728

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-580
SELECT + col1 * + col2 + col1 + + col0 * col0 DIV col1 FROM tab1
----
1430
1753
989

skipif mysql # not compatible
query I rowsort label-580
SELECT + col1 * + col2 + col1 + + col0 * col0 / col1 FROM tab1
----
1430
1753
989

query I rowsort
SELECT ALL col2 * col2 * + col2 FROM tab2
----
17576
19683
54872

query I rowsort
SELECT - col1 + - tab0.col0 * col1 + col0 * - col2 * col2 AS col0 FROM tab0
----
-28286
-3527
-606626

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

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

query I rowsort
SELECT - - 98 * - cor1.col1 FROM tab0, tab1 cor0, tab1, tab0 cor1
----
81 values hashing to 49fc7d21129be234b87b37cc09346f3c

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

query I rowsort
SELECT DISTINCT + 64 * - col0 AS col1 FROM tab1
----
-192
-4096
-5120

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

query I rowsort
SELECT 95 + col2 AS col0 FROM tab2 AS cor0
----
121
122
133

query I rowsort
SELECT ALL - + 96 * cor0.col2 FROM tab2 AS cor0
----
-2496
-2592
-3648

query I rowsort
SELECT ALL - 72 + col1 * col1 AS col1 FROM tab1 AS cor0
----
28
604
97

query I rowsort
SELECT + col2 * - 1 FROM tab1
----
-54
-57
-96

query I rowsort
SELECT 66 + 19 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to aafa8e5cfb9e02cea8717833e7581f7b

query I rowsort
SELECT + col0 * col0 + - 35 FROM tab0
----
1190
541
7886

onlyif mysql # use DIV operator for integer division
query I rowsort label-595
SELECT col0 * 35 DIV - col2 col1 FROM tab0
----
-1225
-25
-37

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-595
SELECT col0 * 35 / - col2 col1 FROM tab0
----
-1225
-25
-37

onlyif mysql # use DIV operator for integer division
query I rowsort label-596
SELECT + tab0.col0 + + CAST( - 23 AS SIGNED ) DIV tab0.col2 AS col0 FROM tab0
----
12
24
89

skipif mysql # not compatible
query I rowsort label-596
SELECT + tab0.col0 + + CAST ( - 23 AS INTEGER ) / tab0.col2 AS col0 FROM tab0
----
12
24
89

query I rowsort
SELECT ALL 17 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to e0dd9155e4d67132637a04c18ef46b2a

query I rowsort
SELECT ALL + col2 + 77 AS col2 FROM tab1
----
131
134
173

query I rowsort
SELECT 79 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 40a2261caa2c5cdbfd80965d7df1231f

query I rowsort
SELECT DISTINCT + col1 + + 29 * 36 AS col0 FROM tab2
----
1061
1075
1103

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-602
SELECT - + cor0.col0 DIV col0 - + 60 * - col1 DIV col1 AS col2 FROM tab1 cor0
----
59
59
59

skipif mysql # not compatible
query I rowsort label-602
SELECT - + cor0.col0 / col0 - + 60 * - col1 / col1 AS col2 FROM tab1 cor0
----
59
59
59

query I rowsort
SELECT DISTINCT + col1 - 92 FROM tab0 AS cor0
----
-1
-6
5

query IIIIII rowsort
SELECT * FROM tab1, tab1 AS cor0 WHERE NULL = NULL
----

query I rowsort
SELECT + col2 * + cor0.col2 - 60 * col1 AS col2 FROM tab1 cor0
----
1356
2649
8436

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

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

query I rowsort
SELECT DISTINCT + - col0 * 36 - col2 * cor0.col0 FROM tab1 AS cor0
----
-10560
-270
-5952

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 32 + + col0 col2 FROM tab2 AS cor0
----
110
111
39

query I rowsort
SELECT + - col1 * + 56 AS col2 FROM tab1 AS cor0
----
-1456
-560
-728

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT - col2 * - cor0.col2 + cor0.col0 AS col2 FROM tab2 AS cor0
----
1523
736
754

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

query I rowsort
SELECT - 89 + col2 FROM tab0 AS cor0
----
-56
-7
-88

onlyif mysql # use DIV operator for integer division
query I rowsort label-620
SELECT - col1 * + col0 + col1 DIV 3 AS col0 FROM tab1 AS cor0
----
-1036
-637
-70

skipif mysql # not compatible
query I rowsort label-620
SELECT - col1 * + col0 + col1 / 3 AS col0 FROM tab1 AS cor0
----
-1036
-637
-70

query I rowsort
SELECT ALL + col0 * 82 * col1 + col0 FROM tab1
----
52544
6399
85360

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

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

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

query I rowsort
SELECT col2 + - 78 FROM tab2 AS cor0
----
-40
-51
-52

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

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

query I rowsort
SELECT ALL + ( 95 * - col2 ) FROM tab2
----
-2470
-2565
-3610

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

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

query I rowsort
SELECT + 86 * - 34 FROM tab0 AS cor0
----
-2924
-2924
-2924

query I rowsort
SELECT - col0 * - cor0.col0 + col2 AS col0 FROM tab1 cor0
----
4153
63
6496

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 59 + - col1 * col0 col2 FROM tab0 AS cor0
----
-2005
-3336
-8040

query I rowsort
SELECT DISTINCT 61 + cor0.col0 AS col0 FROM tab2 AS cor0
----
139
140
68

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

skipif mysql # not compatible
query I rowsort label-634
SELECT ALL + col2 + col2 / - col1 AS col1 FROM tab2 cor0
----
26
27
36

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

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

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

query I rowsort
SELECT - - 97 * + col1 + col1 FROM tab0 AS cor0
----
8428
8918
9506

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

query I rowsort
SELECT ALL 31 - cor0.col1 AS col0 FROM tab1 AS cor0
----
18
21
5

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

query I rowsort
SELECT + 18 + col2 + - col0 FROM tab0
----
-16
11
27

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

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

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

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

query I rowsort
SELECT ALL + 59 FROM tab0
----
59
59
59

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 4 col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 5784540a5af6ca2be84399d314acd2fd

query I rowsort
SELECT ALL + col2 * - 38 * col0 AS col1 FROM tab1 AS cor0
----
-138624
-291840
-6156

query I rowsort
SELECT 51 + cor0.col0 * cor0.col0 FROM tab0, tab0 AS cor0
----
9 values hashing to d94c1046ce6709dc55d14b80b6c4e877

query I rowsort
SELECT ALL + 54 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 81150d59d6c3fc48b4ef5a4a5495bc7a

query I rowsort
SELECT - + col0 + - 99 - + col1 AS col2 FROM tab2 AS cor0
----
-137
-195
-236

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-652
SELECT DISTINCT + + col2 DIV - col0 + + 40 FROM tab1 AS cor0
----
22
39
40

skipif mysql # not compatible
query I rowsort label-652
SELECT DISTINCT + + col2 / - col0 + + 40 FROM tab1 AS cor0
----
22
39
40

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

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

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

skipif mysql # not compatible
query I rowsort label-655
SELECT ALL col1 * - CAST ( NULL AS REAL ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT 13 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 184e52d7aa5aa66591291e39c67a3dfb

query I rowsort
SELECT ALL - 86 AS col2 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 9d2e1e8eda15b3b83dd7136dfc4f19af

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-658
SELECT DISTINCT col2 + - CAST( col0 AS SIGNED ) AS col2 FROM tab1 cor0
----
-7
16
51

skipif mysql # not compatible
query I rowsort label-658
SELECT DISTINCT col2 + - CAST ( col0 AS INTEGER ) AS col2 FROM tab1 cor0
----
-7
16
51

query I rowsort
SELECT ALL + col0 * 87 + - 67 * - col0 FROM tab0 AS cor0
----
13706
3696
5390

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

query I rowsort
SELECT DISTINCT cor0.col0 * + ( 27 ) - + col0 AS col0 FROM tab1 AS cor0
----
1664
2080
78

query I rowsort
SELECT ALL - - 16 + col2 FROM tab0 AS cor0
----
17
49
98

query I rowsort
SELECT cor0.col1 * 14 AS col2 FROM tab2 AS cor0
----
238
434
826

query I rowsort
SELECT + 41 FROM tab1 cor0
----
41
41
41

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( + col1 ) + col0 col2 FROM tab0 AS cor0
----
110
132
180

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

query I rowsort
SELECT ALL + col1 + + 83 AS col1 FROM tab1 AS cor0
----
109
93
96

query I rowsort
SELECT ALL - col0 * - 30 FROM tab0 AS cor0
----
1050
2670
720

query I rowsort
SELECT ALL 81 + 46 FROM tab2 AS cor0
----
127
127
127

query I rowsort
SELECT col2 - 6 * + col2 FROM tab1
----
-270
-285
-480

query I rowsort
SELECT + 76 FROM tab2, tab2 AS cor0
----
9 values hashing to 30b8941a700cffd5b983116383bd42d5

onlyif mysql # use DIV operator for integer division
query I rowsort label-672
SELECT + tab1.col0 DIV col2 - col1 * - col1 FROM tab1
----
101
169
676

skipif mysql # not compatible
query I rowsort label-672
SELECT + tab1.col0 / col2 - col1 * - col1 FROM tab1
----
101
169
676

onlyif mysql # use DIV operator for integer division
query I rowsort label-673
SELECT tab2.col0 DIV - col1 - col0 FROM tab2
----
-7
-79
-83

skipif mysql # not compatible
query I rowsort label-673
SELECT tab2.col0 / - col1 - col0 FROM tab2
----
-7
-79
-83

query I rowsort
SELECT ALL - col0 - + col0 * + 71 FROM tab0 AS cor0
----
-1728
-2520
-6408

query I rowsort
SELECT DISTINCT ( + col1 ) + - ( + col1 ) AS col2 FROM tab1 AS cor0
----
0

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

query I rowsort
SELECT + col1 + - col1 + col2 * - col2 * col1 AS col2 FROM tab1 cor0
----
-119808
-32490
-75816

onlyif mysql # use DIV operator for integer division
query I rowsort label-678
SELECT DISTINCT - col1 DIV col0 FROM tab0 cor0
----
-1
-2
-3

skipif mysql # not compatible
query I rowsort label-678
SELECT DISTINCT - col1 / col0 FROM tab0 cor0
----
-1
-2
-3

query I rowsort
SELECT + - 51 + col0 + + 84 FROM tab0 AS cor0
----
122
57
68

query I rowsort
SELECT DISTINCT - 11 * col1 * 14 FROM tab0 AS cor0
----
-13244
-14014
-14938

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

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

skipif mysql # not compatible
query I rowsort
SELECT ALL col2 + + col0 * CAST ( + col0 AS REAL ) FROM tab0 AS cor0
----
1226
609
8003

query I rowsort
SELECT 29 * - cor0.col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 2f8c0124c2f3e70e2fd3f07596e28df0

query I rowsort
SELECT + col1 * col1 * + col0 FROM tab1
----
13520
2028
6400

query I rowsort
SELECT - 73 * col0 AS col0 FROM tab1
----
-219
-4672
-5840

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

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

skipif mysql # not compatible
query I rowsort label-687
SELECT - + col1 / + col1 + ( col0 ) FROM tab0 AS cor0
----
23
34
88

query I rowsort
SELECT DISTINCT + 77 * 24 FROM tab2
----
1848

onlyif mysql # use DIV operator for integer division
query I rowsort label-689
SELECT ALL col0 DIV - 44 FROM tab0
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-689
SELECT ALL col0 / - 44 FROM tab0
----
-2
0
0

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

query I rowsort
SELECT 39 + + col2 + ( - 15 + col2 ) AS col1 FROM tab1 AS cor0
----
132
138
216

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

query I rowsort
SELECT ALL - col0 + + col2 * col2 FROM tab2
----
1365
598
722

query I rowsort
SELECT + col2 + ( + col2 + col2 ) FROM tab0 AS cor0
----
246
3
99

onlyif mysql # use DIV operator for integer division
query I rowsort label-695
SELECT ALL + col1 + + col0 DIV 30 AS col0 FROM tab2 AS cor0
----
19
31
61

skipif mysql # not compatible
query I rowsort label-695
SELECT ALL + col1 + + col0 / 30 AS col0 FROM tab2 AS cor0
----
19
31
61

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

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

query I rowsort
SELECT DISTINCT - col0 + col1 * ( 51 + - col0 ) * + ( + col2 ) AS col1 FROM tab0
----
-283645
1517
76602

query I rowsort
SELECT DISTINCT 5 + col2 + + tab2.col0 AS col2 FROM tab2
----
109
122
39

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

query I rowsort
SELECT ( - col0 ) + 60 * + col0 AS col2 FROM tab2
----
413
4602
4661

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-703
SELECT col2 DIV + col2 + - ( col1 ) * - col1 * + tab0.col2 FROM tab0
----
244069
679043
9410

skipif mysql # not compatible
query I rowsort label-703
SELECT col2 / + col2 + - ( col1 ) * - col1 * + tab0.col2 FROM tab0
----
244069
679043
9410

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

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

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

query I rowsort
SELECT ALL + col0 * col0 + + 35 * col2 FROM tab0 AS cor0
----
10791
1260
1731

query I rowsort
SELECT + col1 * - col1 + cor0.col2 * + col2 FROM tab1 AS cor0
----
2240
3149
9047

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

query I rowsort
SELECT + 52 * + col0 FROM tab2
----
364
4056
4108

query I rowsort
SELECT 95 FROM tab1, tab0 AS cor0, tab0, tab1 AS cor1
----
81 values hashing to 9896fbc7c98abe84cb585e6f5f25b58a

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

query I rowsort
SELECT DISTINCT + 25 + cor0.col0 FROM tab0 AS cor0
----
114
49
60

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

skipif mysql # not compatible
query I rowsort label-713
SELECT ALL - col1 + col2 + cor0.col1 / 6 AS col1 FROM tab2 AS cor0
----
-24
1
23

query I rowsort
SELECT ALL + col0 + + 74 * + col2 AS col0 FROM tab0 AS cor0
----
109
2466
6157

query I rowsort
SELECT DISTINCT + col1 + + 43 AS col0 FROM tab1
----
53
56
69

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

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

query I rowsort
SELECT ALL 4 + col0 FROM tab2 AS cor0
----
11
82
83

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

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

query I rowsort
SELECT DISTINCT + col0 * + cor0.col0 + - col0 + - col1 AS col0 FROM tab2 AS cor0
----
11
5947
6145

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

query I rowsort
SELECT ALL - 10 AS col2 FROM tab2, tab2 AS cor0, tab1, tab2 AS cor1
----
81 values hashing to d02dd3860bad8257b8dc483efe370af0

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

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

query I rowsort
SELECT - + col2 + 65 FROM tab1 cor0
----
-31
11
8

query I rowsort
SELECT - col1 + - 17 FROM tab0 AS cor0
----
-103
-108
-114

query I rowsort
SELECT + col0 * 89 + cor0.col1 * col1 AS col1 FROM tab1 cor0
----
5796
7289
943

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-730
SELECT - - 78 DIV + col1 + col0 + + ( cor0.col2 ) FROM tab2 AS cor0
----
105
121
36

skipif mysql # not compatible
query I rowsort label-730
SELECT - - 78 / + col1 + col0 + + ( cor0.col2 ) FROM tab2 AS cor0
----
105
121
36

query I rowsort
SELECT 1 + + cor0.col0 AS col1 FROM tab0 AS cor0
----
25
36
90

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

query I rowsort
SELECT DISTINCT 54 AS col2 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
54

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

skipif mysql # not compatible
query I rowsort label-734
SELECT + CAST ( NULL AS INTEGER ) AS col2 FROM tab2, tab1 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT col0 + 59 FROM tab2 AS cor0
----
137
138
66

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

query I rowsort
SELECT 59 * col2 AS col2 FROM tab1
----
3186
3363
5664

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + - ( cor0.col0 ) col0 FROM tab0 AS cor0
----
-110
-132
-180

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-742
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-742
SELECT + col0 / + col2 col1 FROM tab0
----
0
1
35

query I rowsort
SELECT + col0 * 36 FROM tab1
----
108
2304
2880

query I rowsort
SELECT 22 * + 51 FROM tab0, tab0 AS cor0
----
9 values hashing to 9e4fec9af1f83add2933ea3b2539d298

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

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

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

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

query I rowsort
SELECT - col1 * + 66 AS col0 FROM tab0 cor0
----
-5676
-6006
-6402

query I rowsort
SELECT ALL + col0 * - ( ( + col2 ) * 27 ) FROM tab1
----
-207360
-4374
-98496

query I rowsort
SELECT - col2 * - ( col0 ) - cor0.col2 FROM tab0 cor0
----
34
7216
759

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

query I rowsort
SELECT ALL ( 92 ) * col0 * 25 FROM tab2 AS cor0
----
16100
179400
181700

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

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

query I rowsort
SELECT DISTINCT col0 + - 27 FROM tab1
----
-24
37
53

query I rowsort
SELECT ALL ( ( - col1 ) ) * 15 + - col1 FROM tab1
----
-160
-208
-416

query I rowsort
SELECT ALL col2 * - col1 * col2 - col2 FROM tab0
----
-611966
-93687
-98

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

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

query I rowsort
SELECT DISTINCT - col1 * - col2 * + col0 + col1 * - 89 * col2 FROM tab0 AS cor0
----
-184470
-5238
0

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

skipif mysql # not compatible
query I rowsort label-760
SELECT DISTINCT + CAST ( col2 AS INTEGER ) AS col2 FROM tab2 cor0
----
26
27
38

query I rowsort
SELECT col0 + - 70 * cor0.col1 * ( + col1 * col0 ) AS col1 FROM tab2 AS cor0
----
-1598091
-19006182
-470883

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

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

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

query I rowsort
SELECT - 18 + + col0 FROM tab2 AS cor0
----
-11
60
61

query I rowsort
SELECT ALL + col1 + + 54 * - col0 FROM tab2 AS cor0
----
-347
-4153
-4249

query I rowsort
SELECT ALL + col2 * cor0.col0 * - 36 + col2 FROM tab1 AS cor0
----
-131271
-276384
-5778

query I rowsort
SELECT col0 * col1 + tab1.col0 * ( col0 ) FROM tab1
----
4736
7440
87

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

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

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

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

skipif mysql # not compatible
query I rowsort label-771
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - 57 FROM tab2
----
NULL

query I rowsort
SELECT ALL - ( col0 ) + col0 * - 69 AS col2 FROM tab2
----
-490
-5460
-5530

query I rowsort
SELECT - col1 - + ( + col0 * - ( col1 ) ) AS col0 FROM tab0
----
1978
3298
8008

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 25 + - col0 col1 FROM tab1 AS cor0
----
-105
-28
-89

query I rowsort
SELECT - - 77 + col2 * col2 FROM tab1 AS cor0
----
2993
3326
9293

query I rowsort
SELECT ALL + 28 * col1 AS col0 FROM tab2 AS cor0
----
1652
476
868

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-778
SELECT - ( - cor0.col1 ) * col2 DIV col0 FROM tab2 AS cor0
----
119
19
8

skipif mysql # not compatible
query I rowsort label-778
SELECT - ( - cor0.col1 ) * col2 / col0 FROM tab2 AS cor0
----
119
19
8

query I rowsort
SELECT + 96 + col2 * + 43 AS col1 FROM tab2 cor0
----
1214
1257
1730

query I rowsort
SELECT ALL + col2 * col1 + + col1 + + col0 AS col0 FROM tab2 AS cor0
----
1671
742
875

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-784
SELECT ALL + cor0.col0 + col0 + + 75 DIV + col1 AS col2 FROM tab1 AS cor0
----
135
165
8

skipif mysql # not compatible
query I rowsort label-784
SELECT ALL + cor0.col0 + col0 + + 75 / + col1 AS col2 FROM tab1 AS cor0
----
135
165
8

query I rowsort
SELECT ALL 58 AS col1 FROM tab1 AS cor0
----
58
58
58

onlyif mysql # use DIV operator for integer division
query I rowsort label-786
SELECT col1 DIV - col1 AS col2 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-786
SELECT col1 / - col1 AS col2 FROM tab2 AS cor0
----
-1
-1
-1

query I rowsort
SELECT ALL col1 + col2 * - 65 * cor0.col0 FROM tab1 AS cor0
----
-10504
-237110
-499187

query I rowsort
SELECT ALL + ( - ( + col0 ) ) FROM tab2
----
-7
-78
-79

query I rowsort
SELECT ALL - col2 * col0 + col1 * - 74 FROM tab1 AS cor0
----
-2086
-4388
-8642

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-792
SELECT ALL ( - col2 ) DIV 61 + + col0 + + col1 * + 12 AS col0 FROM tab1 AS cor0
----
184
235
315

skipif mysql # not compatible
query I rowsort label-792
SELECT ALL ( - col2 ) / 61 + + col0 + + col1 * + 12 AS col0 FROM tab1 AS cor0
----
184
235
315

query I rowsort
SELECT ALL col2 * + cor0.col0 + + ( + col2 * + col0 ) + 91 AS col0 FROM tab0 AS cor0
----
14687
161
1675

query I rowsort
SELECT - - col1 * 14 + + col0 FROM tab2 AS cor0
----
317
441
904

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 * col2 col0 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT col0 - - ( col0 ) * col0 * col0 FROM tab1 cor0
----
262208
30
512080

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

query I rowsort
SELECT col2 * + ( col2 ) - col0 AS col1 FROM tab1 AS cor0
----
2913
3185
9136

onlyif mysql # use DIV operator for integer division
query I rowsort label-800
SELECT + tab0.col1 * col0 DIV + col1 FROM tab0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-800
SELECT + tab0.col1 * col0 / + col1 FROM tab0
----
24
35
89

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

query I rowsort
SELECT - col0 * - 63 AS col0 FROM tab0 AS cor0
----
1512
2205
5607

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-803
SELECT DISTINCT - col0 / - 33 col1 FROM tab1 AS cor0
----
0
1
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + col2 - col0 col0 FROM tab1 AS cor0
----
159
3584
7600

query I rowsort
SELECT DISTINCT + + ( - 93 ) + col1 FROM tab1 AS cor0
----
-67
-80
-83

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

query I rowsort
SELECT + 86 FROM tab1, tab2 AS cor0
----
9 values hashing to 2d8c3a0d19ea51447f83cd18b49fee19

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

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

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

query I rowsort
SELECT + 15 * + col0 + col2 AS col1 FROM tab1 AS cor0
----
1017
1296
99

onlyif mysql # use DIV operator for integer division
query I rowsort label-812
SELECT col2 DIV 76 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-812
SELECT col2 / 76 FROM tab0
----
0
0
1

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

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

query I rowsort
SELECT - + 12 + col1 AS col1 FROM tab2 AS cor0
----
19
47
5

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

query I rowsort
SELECT - col2 - - 35 AS col2 FROM tab2 AS cor0
----
-3
8
9

query I rowsort
SELECT ALL - + 24 * cor0.col0 * - col0 FROM tab2 AS cor0
----
1176
146016
149784

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

query I rowsort
SELECT DISTINCT 94 AS col2 FROM tab0 AS cor0
----
94

query I rowsort
SELECT ALL - - 30 * + 72 + + cor0.col2 FROM tab0 AS cor0
----
2161
2193
2242

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

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

query I rowsort
SELECT ALL - ( col1 ) + + col0 * 27 + ( cor0.col0 ) FROM tab0 cor0
----
2401
586
883

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

query I rowsort
SELECT col0 * col2 - col2 * + cor0.col0 * - cor0.col0 FROM tab0 AS cor0
----
1260
19800
656820

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

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

query I rowsort
SELECT ALL col2 * - 17 - col0 FROM tab2
----
-466
-520
-725

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-830
SELECT - CAST( + cor0.col1 AS SIGNED ) + col0 * + col2 AS col0 FROM tab0 AS cor0
----
-62
706
7207

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

query I rowsort
SELECT ALL + col0 + col2 - - 1 FROM tab2
----
105
118
35

query I rowsort
SELECT DISTINCT col2 - + 97 FROM tab2
----
-59
-70
-71

onlyif mysql # use DIV operator for integer division
query I rowsort label-833
SELECT ALL + 96 + - col0 DIV - col1 FROM tab2
----
100
96
97

skipif mysql # not compatible
query I rowsort label-833
SELECT ALL + 96 + - col0 / - col1 FROM tab2
----
100
96
97

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

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

query I rowsort
SELECT cor0.col1 + 79 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to cd413d7e11a2eca19f67dcffd0e3ef36

query I rowsort
SELECT ALL - cor0.col1 * - 8 + - col0 AS col2 FROM tab2 cor0
----
241
394
57

query I rowsort
SELECT - col2 + - 50 FROM tab0 AS cor0
----
-132
-51
-83

query I rowsort
SELECT ALL + 29 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 1e7120ba8e9191084172ddced17e5eb2

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

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

query I rowsort
SELECT DISTINCT 36 FROM tab0, tab0 AS cor0
----
36

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-844
SELECT ALL col0 DIV + col1 + + col0 AS col0 FROM tab2
----
7
79
83

skipif mysql # not compatible
query I rowsort label-844
SELECT ALL col0 / + col1 + + col0 AS col0 FROM tab2
----
7
79
83

onlyif mysql # use DIV operator for integer division
query I rowsort label-845
SELECT ALL + col0 * - col1 + - col0 DIV tab0.col1 FROM tab0
----
-2064
-3395
-8099

skipif mysql # not compatible
query I rowsort label-845
SELECT ALL + col0 * - col1 + - col0 / tab0.col1 FROM tab0
----
-2064
-3395
-8099

query I rowsort
SELECT ALL + col2 + - 42 * + col0 AS col1 FROM tab2
----
-267
-3250
-3280

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

query I rowsort
SELECT DISTINCT col1 * 6 + col2 AS col2 FROM tab2 AS cor0
----
140
213
380

query I rowsort
SELECT DISTINCT - + col1 * ( + 27 * cor0.col1 ) + col1 FROM tab0 AS cor0
----
-199606
-223496
-253946

query I rowsort
SELECT + 84 AS col0 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to e8cd683fe8cea77b4326d9b80f21c74a

query I rowsort
SELECT DISTINCT - col0 * ( + 59 ) FROM tab2 AS cor0
----
-413
-4602
-4661

query I rowsort
SELECT ALL + + col2 + + ( 12 ) * - col1 AS col2 FROM tab0 AS cor0
----
-1010
-1163
-999

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

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

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

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

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

query I rowsort
SELECT + 98 * + col0 FROM tab1 AS cor0
----
294
6272
7840

onlyif mysql # use DIV operator for integer division
query I rowsort label-859
SELECT ALL 92 * col0 DIV + 18 + col2 * - col1 AS col1 FROM tab0 AS cor0
----
-2716
-7008
81

skipif mysql # not compatible
query I rowsort label-859
SELECT ALL 92 * col0 / + 18 + col2 * - col1 AS col1 FROM tab0 AS cor0
----
-2716
-7008
81

query I rowsort
SELECT DISTINCT - col2 * - cor0.col1 - ( col1 * - col1 ) AS col1 FROM tab2 AS cor0
----
1798
5015
935

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

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

query I rowsort
SELECT + col0 * 22 + col0 * + col1 FROM tab2 AS cor0
----
3081
371
6318

query I rowsort
SELECT DISTINCT + + cor1.col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
7
78
79

query I rowsort
SELECT - + col2 * - col2 + col2 AS col1 FROM tab0 AS cor0
----
1122
2
6806

query I rowsort
SELECT - col0 + - col2 + 92 AS col1 FROM tab2
----
-12
-25
58

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

skipif mysql # not compatible
query I rowsort label-867
SELECT ALL - 66 + + col1 + col0 / CAST ( NULL AS REAL ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 43 * 98 AS col0 FROM tab1 AS cor0
----
4214
4214
4214

skipif mysql # not compatible
query I rowsort
SELECT - + CAST ( col1 AS REAL ) * col2 FROM tab1 AS cor0
----
-1248
-1404
-570

onlyif mysql # use DIV operator for integer division
query I rowsort label-870
SELECT cor0.col0 DIV - cor0.col0 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 60fdd6924bb763d6aca00ba74935ef4b

skipif mysql # not compatible
query I rowsort label-870
SELECT cor0.col0 / - cor0.col0 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 60fdd6924bb763d6aca00ba74935ef4b

query I rowsort
SELECT ALL + cor0.col0 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83

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

skipif mysql # not compatible
query I rowsort label-872
SELECT ALL - 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-873
SELECT - CAST( + col1 AS SIGNED ) + + col0 AS col1 FROM tab0 AS cor0
----
-2
-62
-62

skipif mysql # not compatible
query I rowsort label-873
SELECT - CAST ( + col1 AS INTEGER ) + + col0 AS col1 FROM tab0 AS cor0
----
-2
-62
-62

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

query I rowsort
SELECT ALL - ( + col0 ) - + col2 AS col1 FROM tab1 AS cor0
----
-121
-176
-57

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

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

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

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

query I rowsort
SELECT ALL tab0.col2 * 85 FROM tab0
----
2805
6970
85

query I rowsort
SELECT - - 1 * - col1 * 43 FROM tab2 AS cor0
----
-1333
-2537
-731

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

query I rowsort
SELECT ALL - + 79 * col0 FROM tab0 AS cor0
----
-1896
-2765
-7031

query I rowsort
SELECT 69 * col1 AS col2 FROM tab0 AS cor0
----
5934
6279
6693

query I rowsort
SELECT - 10 * + col2 FROM tab0
----
-10
-330
-820

query I rowsort
SELECT ALL - 72 AS col1 FROM tab2, tab0, tab0 AS cor0
----
27 values hashing to b7689a8218ac9df1cca20d2ba5c53888

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

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

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

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

query I rowsort
SELECT DISTINCT tab1.col1 * tab1.col0 * - ( - col1 ) AS col2 FROM tab1
----
13520
2028
6400

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-891
SELECT ALL + col0 DIV 9 AS col0 FROM tab1
----
0
7
8

skipif mysql # not compatible
query I rowsort label-891
SELECT ALL + col0 / 9 AS col0 FROM tab1
----
0
7
8

query I rowsort
SELECT ALL - cor1.col0 AS col2 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to c82df1de3cb666224690a83f3d790d79

query I rowsort
SELECT ALL - 59 + + col1 FROM tab2 AS cor0
----
-28
-42
0

query I rowsort
SELECT 76 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 30b8941a700cffd5b983116383bd42d5

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

query I rowsort
SELECT - 80 + - ( + tab0.col1 ) AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to d8760058b99f5541923a93062749d14a

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

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

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

query I rowsort
SELECT + ( + col1 ) * + col2 * 92 FROM tab0 AS cor0
----
261096
686504
8924

query I rowsort
SELECT ALL + col0 * + col1 + tab2.col1 FROM tab2
----
1360
248
4661

query I rowsort
SELECT - 12 + + col0 AS col1 FROM tab0 AS cor0
----
12
23
77

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

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

query I rowsort
SELECT ALL - - col1 * + cor0.col2 * col1 FROM tab0 AS cor0
----
244068
679042
9409

query I rowsort
SELECT + cor0.col0 * col1 + + col0 + cor0.col0 FROM tab1 AS cor0
----
1200
768
84

query I rowsort
SELECT - col1 * + col2 + + col0 * col1 + - col2 * - tab2.col2 FROM tab2
----
109
2141
3744

query I rowsort
SELECT - ( - col1 + col2 ) * + col0 FROM tab1
----
-3008
-6640
-84

query I rowsort
SELECT - 61 * - col1 * col2 AS col0 FROM tab0
----
173118
455182
5917

onlyif mysql # use DIV operator for integer division
query I rowsort label-909
SELECT DISTINCT - 79 DIV col1 - + col2 FROM tab2
----
-27
-29
-42

skipif mysql # not compatible
query I rowsort label-909
SELECT DISTINCT - 79 / col1 - + col2 FROM tab2
----
-27
-29
-42

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab0.col1 + col2 + col0 * + col0 col2 FROM tab0
----
1323
695
8094

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

query I rowsort
SELECT + col1 + tab0.col2 + col2 AS col2 FROM tab0
----
152
255
99

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

query I rowsort
SELECT DISTINCT - col0 * col2 + - col0 + - col2 FROM tab0
----
-71
-7469
-849

query IIIIIIIII rowsort
SELECT * FROM tab2, tab0, tab2 AS cor0 WHERE NULL < ( NULL )
----

query I rowsort
SELECT col1 * + col1 + - col1 + col1 AS col0 FROM tab0
----
7396
8281
9409

query I rowsort
SELECT - col0 * - col1 * col0 - - col0 AS col2 FROM tab0 cor0
----
118860
49560
720900

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

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

query I rowsort
SELECT DISTINCT - tab2.col1 * + col1 * col1 FROM tab2
----
-205379
-29791
-4913

onlyif mysql # use DIV operator for integer division
query I rowsort label-921
SELECT + 55 DIV col1 - - col2 * - col0 FROM tab0
----
-35
-7298
-792

skipif mysql # not compatible
query I rowsort label-921
SELECT + 55 / col1 - - col2 * - col0 FROM tab0
----
-35
-7298
-792

query I rowsort
SELECT ( 63 + col0 ) FROM tab0
----
152
87
98

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

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

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

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

skipif mysql # not compatible
query I rowsort label-926
SELECT + col0 / 53 + + col2 FROM tab0
----
1
33
83

onlyif mysql # use DIV operator for integer division
query I rowsort label-927
SELECT + tab1.col2 DIV col2 + - col2 FROM tab1
----
-53
-56
-95

skipif mysql # not compatible
query I rowsort label-927
SELECT + tab1.col2 / col2 + - col2 FROM tab1
----
-53
-56
-95

query I rowsort
SELECT 51 AS col1 FROM tab1 cor0
----
51
51
51

onlyif mysql # use DIV operator for integer division
query I rowsort label-929
SELECT ALL + 12 DIV + cor0.col2 AS col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-929
SELECT ALL + 12 / + cor0.col2 AS col1 FROM tab1 AS cor0
----
0
0
0

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

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

query I rowsort
SELECT + cor0.col2 * + col0 * - col2 - col0 * + col1 AS col1 FROM tab0 AS cor0
----
-28200
-3430
-606535

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-934
SELECT col0 DIV - col1 + + col1 * - cor0.col2 * + col2 FROM tab2 AS cor0
----
-22599
-24552
-39885

skipif mysql # not compatible
query I rowsort label-934
SELECT col0 / - col1 + + col1 * - cor0.col2 * + col2 FROM tab2 AS cor0
----
-22599
-24552
-39885

query I rowsort
SELECT - 98 * - col1 - col0 * col1 AS col2 FROM tab1 AS cor0
----
234
2470
340

query I rowsort
SELECT DISTINCT + 28 * + cor0.col1 FROM tab0 AS cor0
----
2408
2548
2716

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-938
SELECT DISTINCT - col0 * col1 + col1 DIV col0 AS col1 FROM tab0 AS cor0
----
-2061
-3393
-8098

skipif mysql # not compatible
query I rowsort label-938
SELECT DISTINCT - col0 * col1 + col1 / col0 AS col1 FROM tab0 AS cor0
----
-2061
-3393
-8098

query I rowsort
SELECT ALL + - 66 * + col1 + - col1 FROM tab2 AS cor0
----
-1139
-2077
-3953

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

query I rowsort
SELECT DISTINCT col2 * - cor0.col0 FROM tab1 cor0
----
-162
-3648
-7680

query I rowsort
SELECT + 25 + + col2 + - col1 AS col0 FROM tab0 AS cor0
----
-28
-71
16

query I rowsort
SELECT + 1 + - col1 * col0 FROM tab0 cor0
----
-2063
-3394
-8098

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

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

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

skipif mysql # not compatible
query I rowsort label-945
SELECT ALL + - col0 / + col1 + col0 AS col1 FROM tab2 AS cor0
----
7
75
77

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-949
SELECT ALL + cor0.col1 + + col1 * col2 DIV - col0 FROM tab0 AS cor0
----
-32
8
95

skipif mysql # not compatible
query I rowsort label-949
SELECT ALL + cor0.col1 + + col1 * col2 / - col0 FROM tab0 AS cor0
----
-32
8
95

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-952
SELECT col0 * col1 DIV - col0 FROM tab1
----
-10
-13
-26

skipif mysql # not compatible
query I rowsort label-952
SELECT col0 * col1 / - col0 FROM tab1
----
-10
-13
-26

query III rowsort
SELECT * FROM tab0 WHERE - col2 * - col0 - - col2 <= NULL
----

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

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

query I rowsort
SELECT DISTINCT - col0 AS col0 FROM tab0 WHERE NOT NULL NOT IN ( col0 + tab0.col2 )
----

query I rowsort
SELECT + col2 + col2 + col1 FROM tab1
----
124
134
205

query I rowsort
SELECT col2 * tab0.col1 * - tab0.col1 FROM tab0
----
-244068
-679042
-9409

query I rowsort
SELECT DISTINCT - col1 FROM tab1 WHERE NULL IN ( + tab1.col2 * col1 )
----

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

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

query III rowsort
SELECT * FROM tab2 WHERE ( - col1 - - col1 ) >= NULL
----

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

query I rowsort
SELECT ALL col1 * + col2 - - col0 FROM tab2
----
1612
725
844

onlyif mysql # use DIV operator for integer division
query I rowsort label-963
SELECT DISTINCT + tab0.col0 DIV col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-963
SELECT DISTINCT + tab0.col0 / col1 FROM tab0
----
0

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-966
SELECT + col0 * tab1.col1 * + col2 + col1 DIV col1 + col1 * col0 FROM tab1
----
100881
37121
4291

skipif mysql # not compatible
query I rowsort label-966
SELECT + col0 * tab1.col1 * + col2 + col1 / col1 + col1 * col0 FROM tab1
----
100881
37121
4291

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

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

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

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

query I rowsort
SELECT ALL - cor0.col1 + - col0 FROM tab1 AS cor0
----
-29
-74
-93

query I rowsort
SELECT DISTINCT col1 - - col2 FROM tab1 cor0
----
109
67
80

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + col2 * + cor0.col0 col2 FROM tab1 AS cor0
----
188
3658
7693

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

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

query I rowsort
SELECT DISTINCT col1 * cor0.col1 * - col2 AS col0 FROM tab2 AS cor0
----
-10982
-25947
-90506

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-977
SELECT ALL + + col1 / + col0 col0 FROM tab2 AS cor0
----
0
0
4

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-980
SELECT ALL col1 DIV col2 + col0 * col0 col1 FROM tab1
----
4096
6400
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-980
SELECT ALL col1 / col2 + col0 * col0 col1 FROM tab1
----
4096
6400
9

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

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

query I rowsort
SELECT ALL - cor0.col0 FROM tab0 AS cor0 CROSS JOIN tab2
----
9 values hashing to 09d8a912de1b8ab762e5ffbe028ce99e

query I rowsort
SELECT col0 + col0 * + col0 * col0 AS col1 FROM tab1
----
262208
30
512080

query I rowsort
SELECT 60 * col2 AS col1 FROM tab1 AS cor0
----
3240
3420
5760

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

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

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

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

query I rowsort
SELECT col1 + col2 * - col2 - - col1 FROM tab0
----
-6542
-917
193

query I rowsort
SELECT ALL 58 * - tab2.col2 FROM tab2
----
-1508
-1566
-2204

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

query I rowsort
SELECT col2 * 4 * + col0 AS col1 FROM tab0 AS cor0
----
140
29192
3168

query I rowsort
SELECT + ( - 7 ) FROM tab0 cor0
----
-7
-7
-7

query I rowsort
SELECT + ( + col0 ) * - col1 * + 77 FROM tab1 AS cor0
----
-49280
-6006
-80080

query I rowsort
SELECT DISTINCT ( tab1.col0 ) AS col2 FROM tab1
----
3
64
80

query I rowsort
SELECT tab2.col1 * 38 FROM tab2, tab0 AS cor0
----
9 values hashing to c5f745592994a35294fe308c2884baa9

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

query I rowsort
SELECT - 89 AS col2 FROM tab2 cor0
----
-89
-89
-89

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1001
SELECT ALL col2 + - col1 DIV ( 46 ) FROM tab1 AS cor0
----
54
57
96

skipif mysql # not compatible
query I rowsort label-1001
SELECT ALL col2 + - col1 / ( 46 ) FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT - 0 + - col2 FROM tab0 AS cor0
----
-1
-33
-82

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

query I rowsort
SELECT DISTINCT + ( - col2 ) * - col2 + col2 FROM tab0 AS cor0
----
1122
2
6806

query I rowsort
SELECT cor0.col1 * 80 AS col2 FROM tab0 AS cor0
----
6880
7280
7760

query I rowsort
SELECT - - col1 + + 39 * col1 * - col2 FROM tab0 AS cor0
----
-110596
-290927
-3686

query I rowsort
SELECT ALL col2 + + 6 AS col0 FROM tab2
----
32
33
44

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

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

skipif mysql # not compatible
query I rowsort label-1009
SELECT DISTINCT + - col1 - CAST ( col2 AS INTEGER ) FROM tab0 cor0
----
-119
-173
-98

query I rowsort
SELECT + + col2 + 64 FROM tab2 cor0
----
102
90
91

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

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

query I rowsort
SELECT + col0 + col0 * 43 FROM tab1 AS cor0
----
132
2816
3520

query I rowsort
SELECT ALL + col1 + cor0.col2 + 26 AS col1 FROM tab2 AS cor0
----
111
81
84

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

query I rowsort
SELECT + 38 * 6 FROM tab0 cor0
----
228
228
228

onlyif mysql # use DIV operator for integer division
query I rowsort label-1017
SELECT + 17 + 66 DIV - col2 FROM tab1 AS cor0
----
16
16
17

skipif mysql # not compatible
query I rowsort label-1017
SELECT + 17 + 66 / - col2 FROM tab1 AS cor0
----
16
16
17

query I rowsort
SELECT DISTINCT - 29 * + col2 + cor0.col0 FROM tab0 AS cor0
----
-2289
-933
6

query I rowsort
SELECT - + 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-1020
SELECT ALL + CAST( col0 AS SIGNED ) * col0 + col2 * col1 + + col2 * col1 AS col1 FROM tab2 AS cor0
----
1723
7533
9152

skipif mysql # not compatible
query I rowsort label-1020
SELECT ALL + CAST ( col0 AS INTEGER ) * col0 + col2 * col1 + + col2 * col1 AS col1 FROM tab2 AS cor0
----
1723
7533
9152

query I rowsort
SELECT DISTINCT col0 * - col1 * - col1 + col0 FROM tab2 AS cor0
----
22910
271596
6734

query I rowsort
SELECT 32 + - ( + cor0.col2 ) AS col2 FROM tab1 AS cor0
----
-22
-25
-64

query I rowsort
SELECT ALL 87 - col0 FROM tab2 AS cor0
----
8
80
9

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

query I rowsort
SELECT DISTINCT + + cor1.col0 AS col2 FROM tab2 cor0 CROSS JOIN tab1 cor1
----
3
64
80

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

query I rowsort
SELECT col0 * col2 + cor0.col1 + col0 AS col2 FROM tab1 AS cor0
----
191
3722
7773

query I rowsort
SELECT ALL - 48 + 76 FROM tab1, tab0 AS cor0
----
9 values hashing to aad32232c428b3ecb5ada63f7e9b0a97

query I rowsort
SELECT ALL + + 64 FROM tab0, tab0 AS cor0
----
9 values hashing to 60ab040e931c5c85db7ba19364eacc8e

query I rowsort
SELECT - - 35 * + col2 AS col2 FROM tab2 AS cor0
----
1330
910
945

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

query I rowsort
SELECT DISTINCT col2 * col0 + - col2 + col1 * - col1 AS col2 FROM tab2 AS cor0
----
-1479
-799
2675

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

skipif mysql # not compatible
query I rowsort label-1033
SELECT - + col2 + col1 / col0 FROM tab2 cor0
----
-23
-26
-38

query I rowsort
SELECT DISTINCT - 47 + cor0.col1 * - cor0.col1 AS col1 FROM tab1 AS cor0
----
-147
-216
-723

query I rowsort
SELECT - - col1 + + cor0.col1 * ( 16 ) AS col1 FROM tab0 AS cor0
----
1462
1547
1649

query I rowsort
SELECT - 68 * - col0 FROM tab1
----
204
4352
5440

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

query I rowsort
SELECT - + col0 * 75 + - col1 FROM tab2 AS cor0
----
-556
-5909
-5942

query I rowsort
SELECT + 16 * 63 AS col0 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to f4346f5d840d73599bf55274a12451e0

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

query I rowsort
SELECT ALL - col0 - col1 AS col2 FROM tab2
----
-137
-38
-96

onlyif mysql # use DIV operator for integer division
query I rowsort label-1042
SELECT ALL + 66 DIV - cor0.col1 + 19 - ( cor0.col1 ) AS col1 FROM tab1 AS cor0
----
-9
1
3

skipif mysql # not compatible
query I rowsort label-1042
SELECT ALL + 66 / - cor0.col1 + 19 - ( cor0.col1 ) AS col1 FROM tab1 AS cor0
----
-9
1
3

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

query I rowsort
SELECT + 84 * col1 AS col0 FROM tab2 AS cor0
----
1428
2604
4956

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

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

query I rowsort
SELECT DISTINCT - 52 * col1 - 92 FROM tab2 AS cor0
----
-1704
-3160
-976

query I rowsort
SELECT DISTINCT + 62 + + col0 AS col1 FROM tab0 AS cor0
----
151
86
97

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

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

skipif mysql # not compatible
query I rowsort label-1050
SELECT DISTINCT - - col1 / - cor0.col1 AS col1 FROM tab0 AS cor0
----
-1

query I rowsort
SELECT + + col1 + + 50 AS col2 FROM tab1 AS cor0
----
60
63
76

query I rowsort
SELECT - col0 * + ( col1 ) * col2 AS col0 FROM tab2 AS cor0
----
-119652
-51034
-5859

onlyif mysql # use DIV operator for integer division
query I rowsort label-1053
SELECT 21 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-1053
SELECT 21 / col1 col2 FROM tab0
----
0
0
0

query I rowsort
SELECT ALL + 96 + + col0 FROM tab2
----
103
174
175

query I rowsort
SELECT DISTINCT 81 + col0 FROM tab1
----
145
161
84

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

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

query I rowsort
SELECT ALL 41 FROM tab0, tab2 AS cor0
----
9 values hashing to 5b18986bb294412b3d9f07b7e6fc821e

query I rowsort
SELECT DISTINCT + - ( 10 ) * - col2 FROM tab0 AS cor0
----
10
330
820

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

skipif mysql # not compatible
query I rowsort label-1060
SELECT DISTINCT + col2 / + col2 AS col2 FROM tab0 AS cor0
----
1

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * + 53 * col2 + ( col1 ) col1 FROM tab1 cor0
----
-30200
-66131
-74386

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

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

query I rowsort
SELECT 35 * + cor0.col1 FROM tab0 AS cor0
----
3010
3185
3395

query I rowsort
SELECT DISTINCT - col1 * + 42 * col2 + col0 AS col1 FROM tab1
----
-23876
-52336
-58965

query I rowsort
SELECT col0 + + col0 * 59 * + tab0.col1 FROM tab0
----
121800
200340
477930

query I rowsort
SELECT - col0 + 84 AS col1 FROM tab0
----
-5
49
60

query I rowsort
SELECT DISTINCT 28 AS col2 FROM tab1, tab2 AS cor0
----
28

onlyif mysql # use DIV operator for integer division
query I rowsort label-1070
SELECT DISTINCT 9 DIV - 57 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1070
SELECT DISTINCT 9 / - 57 FROM tab1 AS cor0
----
0

query I rowsort
SELECT DISTINCT + ( col0 ) * + col0 + col2 AS col2 FROM tab1 AS cor0
----
4153
63
6496

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( 45 ) col1 FROM tab0 AS cor0
----
45
45
45

query I rowsort
SELECT DISTINCT - 61 * - 35 AS col0 FROM tab1 AS cor0
----
2135

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

skipif mysql # not compatible
query I rowsort label-1075
SELECT + + 12 / - col1 FROM tab0 AS cor0
----
0
0
0

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

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

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1078
SELECT ALL - CAST( 21 AS SIGNED ) + - col1 AS col1 FROM tab0 AS cor0
----
-107
-112
-118

skipif mysql # not compatible
query I rowsort label-1078
SELECT ALL - CAST ( 21 AS INTEGER ) + - col1 AS col1 FROM tab0 AS cor0
----
-107
-112
-118

onlyif mysql # use DIV operator for integer division
query I rowsort label-1079
SELECT DISTINCT + ( - 78 ) * - col2 DIV col2 AS col1 FROM tab1
----
78

skipif mysql # not compatible
query I rowsort label-1079
SELECT DISTINCT + ( - 78 ) * - col2 / col2 AS col1 FROM tab1
----
78

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

skipif mysql # not compatible
query I rowsort label-1080
SELECT 72 / - 28 + col2 * + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - 82 + + col1 * + col1 FROM tab2
----
207
3399
879

query I rowsort
SELECT ALL + 0 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

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

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

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

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

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

query I rowsort
SELECT - 28 * + col1 * 52 FROM tab0 AS cor0
----
-125216
-132496
-141232

query I rowsort
SELECT DISTINCT + 45 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
45

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

query I rowsort
SELECT ALL + 30 * + col0 AS col0 FROM tab0 AS cor0
----
1050
2670
720

query I rowsort
SELECT ALL + 29 * col2 AS col0 FROM tab0 AS cor0
----
2378
29
957

onlyif mysql # use DIV operator for integer division
query I rowsort label-1093
SELECT + 22 DIV + cor0.col1 AS col2 FROM tab2 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-1093
SELECT + 22 / + cor0.col1 AS col2 FROM tab2 AS cor0
----
0
0
1

query I rowsort
SELECT + + 94 * col2 + col1 FROM tab2 AS cor0
----
2503
2569
3589

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * 61 col2 FROM tab1 AS cor0
----
183
3904
4880

query I rowsort
SELECT DISTINCT + cor0.col0 * col0 * ( - cor0.col0 ) AS col0 FROM tab0 AS cor0
----
-13824
-42875
-704969

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

query I rowsort
SELECT - 79 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 1b7b0b34fe3431fb409719624d12791f

onlyif mysql # use DIV operator for integer division
query I rowsort label-1099
SELECT DISTINCT - col1 DIV - col2 - - col2 FROM tab1 cor0
----
54
57
96

skipif mysql # not compatible
query I rowsort label-1099
SELECT DISTINCT - col1 / - col2 - - col2 FROM tab1 cor0
----
54
57
96

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

query I rowsort
SELECT - + col0 * 62 + - col0 FROM tab1 AS cor0
----
-189
-4032
-5040

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT cor0.col2 + + CAST ( col1 AS REAL ) FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT + col0 + col0 * - 12 * col0 AS col0 FROM tab2 AS cor0
----
-581
-72930
-74813

query I rowsort
SELECT ALL + col0 * - 77 AS col2 FROM tab2 AS cor0
----
-539
-6006
-6083

query I rowsort
SELECT DISTINCT - - col2 * + 20 AS col1 FROM tab0 AS cor0
----
1640
20
660

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

query I rowsort
SELECT ALL + - col0 + + col1 * ( cor0.col2 * col2 ) AS col1 FROM tab2 AS cor0
----
22592
24469
39806

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

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

query I rowsort
SELECT ALL + + 52 + - cor0.col1 * col0 AS col2 FROM tab0 AS cor0
----
-2012
-3343
-8047

query I rowsort
SELECT DISTINCT + 74 * - col0 + - cor0.col0 FROM tab1 AS cor0
----
-225
-4800
-6000

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1114
SELECT - + col0 DIV col0 + col2 FROM tab0 cor0
----
0
32
81

skipif mysql # not compatible
query I rowsort label-1114
SELECT - + col0 / col0 + col2 FROM tab0 cor0
----
0
32
81

query I rowsort
SELECT DISTINCT 46 + col1 FROM tab1 AS cor0
----
56
59
72

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

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

query I rowsort
SELECT - 92 * - cor0.col1 AS col0 FROM tab1 AS cor0
----
1196
2392
920

query I rowsort
SELECT col2 * + 21 FROM tab0 AS cor0
----
1722
21
693

query I rowsort
SELECT ALL - 14 * + col2 + col1 * - col1 FROM tab1 cor0
----
-1432
-1513
-898

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

skipif mysql # not compatible
query I rowsort label-1120
SELECT col2 * CAST ( 61 * + col2 AS INTEGER ) FROM tab0 AS cor0
----
410164
61
66429

query I rowsort
SELECT - col0 * 12 AS col1 FROM tab1 AS cor0
----
-36
-768
-960

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

query I rowsort
SELECT + col2 + col1 * 49 FROM tab0 AS cor0
----
4247
4541
4754

query I rowsort
SELECT + - col2 * - ( - 56 ) AS col0 FROM tab1 AS cor0
----
-3024
-3192
-5376

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1126
SELECT - col2 DIV - col1 + - 6 AS col1 FROM tab1 AS cor0
----
-1
-4
1

skipif mysql # not compatible
query I rowsort label-1126
SELECT - col2 / - col1 + - 6 AS col1 FROM tab1 AS cor0
----
-1
-4
1

query I rowsort
SELECT + 30 FROM tab0 cor0 CROSS JOIN tab0 cor1
----
9 values hashing to da5de0c411a2c0f445400f1b63ea9f89

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

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

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

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

query I rowsort
SELECT ALL - col0 AS col2 FROM tab2 WHERE col2 + col1 NOT IN ( - col2 - tab2.col1 )
----
-7
-78
-79

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col2 * - col2 + - col2 <= NULL
----

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

query I rowsort
SELECT ALL col1 * - col1 * - col2 FROM tab1
----
16224
36504
5700

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

query I rowsort
SELECT DISTINCT + col2 * col1 * col1 - col1 FROM tab2
----
10965
25916
90447

query I rowsort
SELECT DISTINCT col0 FROM tab2 WHERE NOT NULL < ( NULL )
----

query I rowsort
SELECT - tab0.col1 - + col1 AS col0 FROM tab0
----
-172
-182
-194

query I rowsort
SELECT DISTINCT tab2.col2 - col0 AS col0 FROM tab2
----
-41
-52
20

query I rowsort
SELECT - tab0.col1 AS col0 FROM tab0 WHERE ( col0 ) NOT BETWEEN NULL AND - col2
----
-86
-91
-97

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1143
SELECT tab1.col0 * + col2 + - col2 DIV - col2 AS col2 FROM tab1
----
163
3649
7681

skipif mysql # not compatible
query I rowsort label-1143
SELECT tab1.col0 * + col2 + - col2 / - col2 AS col2 FROM tab1
----
163
3649
7681

query I rowsort
SELECT - + col0 * col1 + 57 FROM tab2 AS cor0
----
-1286
-160
-4545

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

query I rowsort
SELECT + + ( + col0 ) * + col0 + col2 + col2 FROM tab2 AS cor0
----
103
6136
6317

query I rowsort
SELECT - - col0 + + col1 * + 49 FROM tab2 AS cor0
----
1526
2969
912

query I rowsort
SELECT 86 FROM tab0, tab2 AS cor0, tab1 cor1
----
27 values hashing to ed1a39c2752ca3723602e4a92c54bbc4

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

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

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

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

query I rowsort
SELECT + - ( cor0.col0 ) * + col0 * col2 + - cor0.col2 AS col2 FROM tab2 AS cor0
----
-1350
-158210
-237196

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

query I rowsort
SELECT + + 98 * + col0 - col0 AS col1 FROM tab1 AS cor0
----
291
6208
7760

onlyif mysql # use DIV operator for integer division
query I rowsort label-1154
SELECT DISTINCT - 24 DIV cor0.col0 AS col1 FROM tab1, tab1 AS cor0
----
-8
0

skipif mysql # not compatible
query I rowsort label-1154
SELECT DISTINCT - 24 / cor0.col0 AS col1 FROM tab1, tab1 AS cor0
----
-8
0

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

query I rowsort
SELECT col0 + 74 FROM tab1 AS cor0
----
138
154
77

query I rowsort
SELECT + col1 + 26 AS col0 FROM tab2 AS cor0
----
43
57
85

query I rowsort
SELECT + 36 * col1 AS col2 FROM tab1 AS cor0
----
360
468
936

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

skipif mysql # not compatible
query I rowsort label-1159
SELECT CAST ( + 44 AS INTEGER ) FROM tab0
----
44
44
44

skipif mysql # not compatible
query I rowsort
SELECT ALL - CAST ( col2 + col1 AS REAL ) * 42 * col1 AS col1 FROM tab1
----
-28140
-59514
-87360

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

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

query I rowsort
SELECT - col0 * - ( col0 ) AS col0 FROM tab1 AS cor0
----
4096
6400
9

query I rowsort
SELECT 87 AS col0 FROM tab2 AS cor0
----
87
87
87

query I rowsort
SELECT - col1 + col1 * - 5 FROM tab0 AS cor0
----
-516
-546
-582

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

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

query I rowsort
SELECT DISTINCT + 28 + col2 FROM tab2 AS cor0
----
54
55
66

query I rowsort
SELECT ALL - col2 * col2 + - 47 + 51 FROM tab1 AS cor0
----
-2912
-3245
-9212

query I rowsort
SELECT - + 77 + + cor0.col2 FROM tab0 AS cor0
----
-44
-76
5

query I rowsort
SELECT DISTINCT - col1 * - col0 - - col2 FROM tab2 AS cor0
----
1381
244
4628

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

query I rowsort
SELECT + 93 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to e64105dfaa9fbd201adbb1f3f6968bde

query I rowsort
SELECT ALL col0 * + col1 + + 17 AS col0 FROM tab1 AS cor0
----
1057
657
95

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

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

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

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

query I rowsort
SELECT DISTINCT - cor0.col1 - 33 FROM tab1 AS cor0
----
-43
-46
-59

query I rowsort
SELECT col0 + + col0 * - col0 AS col2 FROM tab0 cor0
----
-1190
-552
-7832

query I rowsort
SELECT ALL col2 * + 28 AS col2 FROM tab2 AS cor0
----
1064
728
756

query I rowsort
SELECT ALL - + col0 + col0 + + col1 * cor0.col1 FROM tab1 AS cor0
----
100
169
676

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1183
SELECT ALL + - cor0.col0 * ( col2 ) DIV cor0.col2 + - col2 * col1 AS col1 FROM tab0 AS cor0
----
-132
-2862
-7551

skipif mysql # not compatible
query I rowsort label-1183
SELECT ALL + - cor0.col0 * ( col2 ) / cor0.col2 + - col2 * col1 AS col1 FROM tab0 AS cor0
----
-132
-2862
-7551

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 37 * + col0 col1 FROM tab1 AS cor0
----
111
2368
2960

onlyif mysql # use DIV operator for integer division
query I rowsort label-1185
SELECT ALL - 90 DIV col0 FROM tab1 cor0
----
-1
-1
-30

skipif mysql # not compatible
query I rowsort label-1185
SELECT ALL - 90 / col0 FROM tab1 cor0
----
-1
-1
-30

query I rowsort
SELECT ALL cor1.col0 + 51 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 194322b6d611ee2420ea0689996457a0

query I rowsort
SELECT DISTINCT + - cor0.col2 + 64 FROM tab1 AS cor0
----
-32
10
7

query I rowsort
SELECT ALL col0 * cor0.col1 + + col2 * - 83 AS col2 FROM tab0 AS cor0
----
-675
1293
3312

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

query I rowsort
SELECT DISTINCT 90 + - 43 FROM tab1 AS cor0
----
47

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1192
SELECT - - col0 DIV + 45 FROM tab2 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-1192
SELECT - - col0 / + 45 FROM tab2 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort
SELECT + CAST ( - ( - col0 ) AS REAL ) * + 77 AS col1 FROM tab1 AS cor0
----
231
4928
6160

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

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

query I rowsort
SELECT DISTINCT + col2 * - col2 * - ( col2 ) AS col0 FROM tab0 AS cor0
----
1
35937
551368

query I rowsort
SELECT ALL - col2 * col0 * 64 + col1 * + col1 + ( col1 ) * col2 AS col2 FROM tab0 AS cor0
----
-40454
-451329
7266

query I rowsort
SELECT 69 * - col0 AS col0 FROM tab0 AS cor0
----
-1656
-2415
-6141

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

query I rowsort
SELECT DISTINCT 18 + + col2 + col2 * - 97 * col0 FROM tab2 AS cor0
----
-18288
-196672
-291138

query I rowsort
SELECT DISTINCT - 73 FROM tab0 cor0
----
-73

query I rowsort
SELECT ALL col0 * col1 + col2 FROM tab2 AS cor0
----
1381
244
4628

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * - cor0.col2 + - cor0.col1 * col2 col1 FROM tab0 AS cor0
----
-1749
-738
-96

onlyif mysql # use DIV operator for integer division
query I rowsort label-1205
SELECT ALL - col1 DIV ( col1 ) + col1 - - col1 col2 FROM tab1 AS cor0
----
19
25
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1205
SELECT ALL - col1 / ( col1 ) + col1 - - col1 col2 FROM tab1 AS cor0
----
19
25
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + - 90 + - col1 col1 FROM tab0 AS cor0
----
-200
-222
-270

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

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

query I rowsort
SELECT DISTINCT ( col1 ) * + 73 + tab2.col2 * - col0 AS col2 FROM tab2
----
-1761
2074
2279

query I rowsort
SELECT + 48 + + col2 + col2 AS col1 FROM tab0
----
114
212
50

query I rowsort
SELECT DISTINCT - tab1.col1 * - col0 + - 48 * col2 FROM tab1
----
-2096
-2514
-3568

onlyif mysql # use DIV operator for integer division
query I rowsort label-1211
SELECT ALL + 22 + + col1 DIV ( col1 ) FROM tab0
----
23
23
23

skipif mysql # not compatible
query I rowsort label-1211
SELECT ALL + 22 + + col1 / ( col1 ) FROM tab0
----
23
23
23

query I rowsort
SELECT ALL ( + col1 ) + 33 * - col1 AS col1 FROM tab0
----
-2752
-2912
-3104

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

query I rowsort
SELECT + 5 * + cor1.col2 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 823472bf54551366136818d08149d04e

onlyif mysql # use DIV operator for integer division
query I rowsort label-1215
SELECT col0 + 99 DIV col0 AS col2 FROM tab0 AS cor0
----
28
37
90

skipif mysql # not compatible
query I rowsort label-1215
SELECT col0 + 99 / col0 AS col2 FROM tab0 AS cor0
----
28
37
90

query I rowsort
SELECT + 72 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 92cc3d5daa550304e96c1542787691c7

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

skipif mysql # not compatible
query I rowsort label-1217
SELECT + col1 / ( cor0.col1 * cor0.col1 ) + - 61 AS col1 FROM tab1 AS cor0
----
-61
-61
-61

query I rowsort
SELECT - col1 * col1 + - cor0.col2 * col2 FROM tab2 cor0
----
-1690
-1733
-4157

query I rowsort
SELECT - 52 FROM tab0, tab2 cor0
----
9 values hashing to 9500afe5646d620d5e8943351a29d082

query I rowsort
SELECT ALL 77 FROM tab0, tab2 cor0
----
9 values hashing to 051bf10c50e061d74ad0a4d205a1c622

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * ( - ( + col0 ) ) col1 FROM tab0
----
-1225
-576
-7921

query I rowsort
SELECT DISTINCT + 60 - 16 AS col0 FROM tab0
----
44

query I rowsort
SELECT + - 76 * cor0.col2 + col2 + col2 * col0 FROM tab1 AS cor0
----
-3888
-627
480

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

query I rowsort
SELECT DISTINCT 17 * - col0 AS col1 FROM tab2
----
-119
-1326
-1343

query I rowsort
SELECT - ( 33 ) * + cor0.col0 + cor0.col1 AS col0 FROM tab1 cor0
----
-2102
-2627
-73

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

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

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

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

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

query I rowsort
SELECT ALL + 32 AS col2 FROM tab2 AS cor0
----
32
32
32

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

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

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

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

query I rowsort
SELECT + 65 * - col1 FROM tab2 AS cor0
----
-1105
-2015
-3835

query I rowsort
SELECT - 75 + + cor0.col1 AS col1 FROM tab1 AS cor0
----
-49
-62
-65

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

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

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

query I rowsort
SELECT + - col1 * col1 + + col2 + col2 * - col1 FROM tab1 AS cor0
----
-1321
-2026
-613

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

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

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

query I rowsort
SELECT ALL ( 56 ) + col1 FROM tab0
----
142
147
153

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + + col0 col0 FROM tab0 AS cor0
----
178
48
70

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

query I rowsort
SELECT - 34 + - col2 AS col1 FROM tab1 AS cor0
----
-130
-88
-91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( col2 ) * col0 col2 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT ALL - + 65 AS col1 FROM tab1 AS cor0
----
-65
-65
-65

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 5 + - col1 col2 FROM tab0 AS cor0
----
-81
-86
-92

query I rowsort
SELECT + col1 * + 60 FROM tab0
----
5160
5460
5820

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

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

query I rowsort
SELECT DISTINCT - 85 + 66 FROM tab2 AS cor0
----
-19

query I rowsort
SELECT col1 * + 56 FROM tab2
----
1736
3304
952

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

query I rowsort
SELECT - + col1 + 94 AS col1 FROM tab2 AS cor0
----
35
63
77

query I rowsort
SELECT + + col2 * cor0.col2 + - 63 AS col2 FROM tab2 AS cor0
----
1381
613
666

query I rowsort
SELECT - + 24 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 797d0f7c145f8ac623924448c714bbcc

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1262
SELECT - + ( - col0 ) DIV col0 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-1262
SELECT - + ( - col0 ) / col0 FROM tab2 AS cor0
----
1
1
1

query I rowsort
SELECT ALL + col0 + + 32 * - col0 * col2 AS col0 FROM tab0 AS cor0
----
-1085
-233447
-25320

query I rowsort
SELECT DISTINCT - col2 * + ( col1 ) + - cor0.col1 * cor0.col0 FROM tab2 AS cor0
----
-1054
-1989
-6136

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1266
SELECT - col1 + + cor0.col1 DIV col2 - + 49 * - col0 FROM tab1 cor0
----
121
3126
3907

skipif mysql # not compatible
query I rowsort label-1266
SELECT - col1 + + cor0.col1 / col2 - + 49 * - col0 FROM tab1 cor0
----
121
3126
3907

query I rowsort
SELECT DISTINCT ( - col0 ) AS col0 FROM tab1 cor0
----
-3
-64
-80

query I rowsort
SELECT ALL + - ( col1 ) AS col2 FROM tab0 AS cor0
----
-86
-91
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-1269
SELECT + + col2 * + col1 + col0 DIV - ( col0 ) AS col1 FROM tab2 AS cor0
----
1533
645
836

skipif mysql # not compatible
query I rowsort label-1269
SELECT + + col2 * + col1 + col0 / - ( col0 ) AS col1 FROM tab2 AS cor0
----
1533
645
836

query I rowsort
SELECT + col0 * 36 + col2 FROM tab0 AS cor0
----
1261
3286
897

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 - - 54 col0 FROM tab1
----
108
111
150

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

query I rowsort
SELECT + 20 AS col0 FROM tab1, tab1 cor0
----
9 values hashing to 2fdd942fe0307a6ff66b63004ef102c4

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1275
SELECT 17 + 24 DIV - col1 + - col0 FROM tab2
----
-61
-63
10

skipif mysql # not compatible
query I rowsort label-1275
SELECT 17 + 24 / - col1 + - col0 FROM tab2
----
-61
-63
10

query I rowsort
SELECT DISTINCT - ( col2 ) + col0 * - 30 - tab0.col0 AS col2 FROM tab0
----
-1086
-2841
-777

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

query I rowsort
SELECT col0 * col1 - + col2 * ( col2 ) FROM tab1 AS cor0
----
-2609
-2838
-8176

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

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

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

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

query I rowsort
SELECT DISTINCT 69 + + ( + col0 + - col0 ) * + col2 AS col2 FROM tab0
----
69

query I rowsort
SELECT - ( 68 ) FROM tab1 AS cor0
----
-68
-68
-68

query I rowsort
SELECT + col1 * - 11 * - tab2.col1 + + 68 AS col1 FROM tab2
----
10639
3247
38359

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

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

query I rowsort
SELECT 7 AS col1 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 4e72e9e33dacac757f48d0ce46094607

query I rowsort
SELECT + - 57 * col0 FROM tab1 AS cor0
----
-171
-3648
-4560

query I rowsort
SELECT tab1.col1 - + 99 FROM tab1
----
-73
-86
-89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * ( - col1 * - col1 + + col1 ) col1 FROM tab0
----
246906
686504
9506

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1292
SELECT - col1 DIV cor0.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-1292
SELECT - col1 / cor0.col0 col1 FROM tab2 AS cor0
----
-4
0
0

query I rowsort
SELECT - - col1 * 79 * col2 FROM tab1 AS cor0
----
110916
45030
98592

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

query I rowsort
SELECT col0 * tab0.col1 + - col2 * + 17 + col0 AS col1 FROM tab0
----
1527
3413
6794

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1297
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col0 FROM tab0, tab0 AS cor0 CROSS JOIN tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-1297
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col0 FROM tab0, tab0 AS cor0 CROSS JOIN tab2
----
NULL

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

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

query I rowsort
SELECT DISTINCT - col2 + + 22 FROM tab2 AS cor0
----
-16
-4
-5

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1302
SELECT ALL - col1 DIV - col1 + col1 * + col0 AS col2 FROM tab0 AS cor0
----
2065
3396
8100

skipif mysql # not compatible
query I rowsort label-1302
SELECT ALL - col1 / - col1 + col1 * + col0 AS col2 FROM tab0 AS cor0
----
2065
3396
8100

query I rowsort
SELECT DISTINCT + col2 * - col0 + ( + 59 ) * col2 AS col2 FROM tab1 AS cor0
----
-2016
-285
3024

query I rowsort
SELECT + + 93 + col2 * - ( + col0 * - col2 ) AS col2 FROM tab1 AS cor0
----
208029
737373
8841

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

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

skipif mysql # not compatible
query I rowsort label-1306
SELECT ( + cor0.col1 ) / col0 AS col2 FROM tab2 AS cor0
----
0
0
4

query I rowsort
SELECT ALL 49 + cor0.col1 FROM tab2 AS cor0
----
108
66
80

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

query I rowsort
SELECT + 76 AS col0 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 7b2b08dd3f1adef028d3f40ef7c716da

query I rowsort
SELECT DISTINCT 41 AS col2 FROM tab1 AS cor0
----
41

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

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

query I rowsort
SELECT DISTINCT + col2 + 4 AS col2 FROM tab1
----
100
58
61

query I rowsort
SELECT ALL + col0 + cor0.col1 - + 65 AS col2 FROM tab1 AS cor0
----
-36
28
9

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

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

query I rowsort
SELECT DISTINCT + col0 * ( col2 + + col2 ) FROM tab2 AS cor0
----
378
4056
6004

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

query I rowsort
SELECT DISTINCT - 33 * cor0.col0 AS col1 FROM tab0 AS cor0
----
-1155
-2937
-792

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1320
SELECT ( 75 ) / - col1 col1 FROM tab1 AS cor0
----
-2
-5
-7

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

query I rowsort
SELECT ALL + 89 * col1 AS col0 FROM tab1 AS cor0
----
1157
2314
890

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1323
SELECT - CAST( - col2 AS SIGNED ) * col2 FROM tab0 AS cor0
----
1
1089
6724

skipif mysql # not compatible
query I rowsort label-1323
SELECT - CAST ( - col2 AS INTEGER ) * col2 FROM tab0 AS cor0
----
1
1089
6724

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

query I rowsort
SELECT + col0 * - 83 + col0 - + 97 AS col2 FROM tab0 AS cor0
----
-2065
-2967
-7395

query I rowsort
SELECT cor0.col0 * + cor0.col0 + - cor0.col1 FROM tab0 AS cor0
----
1128
490
7830

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

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

query I rowsort
SELECT + 3 * + col1 AS col2 FROM tab2 AS cor0
----
177
51
93

onlyif mysql # use DIV operator for integer division
query I rowsort label-1329
SELECT ( - col0 ) DIV + col0 - - ( 69 ) * - col1 AS col2 FROM tab0 AS cor0
----
-5935
-6280
-6694

skipif mysql # not compatible
query I rowsort label-1329
SELECT ( - col0 ) / + col0 - - ( 69 ) * - col1 AS col2 FROM tab0 AS cor0
----
-5935
-6280
-6694

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

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

query I rowsort
SELECT DISTINCT - tab1.col0 * 5 - col2 FROM tab1
----
-377
-496
-69

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

query I rowsort
SELECT ALL + 99 AS col2 FROM tab0 AS cor0
----
99
99
99

query I rowsort
SELECT ALL - col0 * + col0 + + col1 * + col0 FROM tab0 AS cor0
----
1488
178
2170

query I rowsort
SELECT DISTINCT - - 45 AS col1 FROM tab0 cor0
----
45

query I rowsort
SELECT DISTINCT - cor0.col2 * col0 AS col1 FROM tab1 cor0
----
-162
-3648
-7680

query I rowsort
SELECT col1 + 91 * + 71 FROM tab1
----
6471
6474
6487

query I rowsort
SELECT + + 54 - - col1 FROM tab0 AS cor0
----
140
145
151

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( ( col0 ) ) + cor0.col0 col0 FROM tab0 AS cor0
----
178
48
70

query I rowsort
SELECT - tab0.col1 * - tab0.col1 AS col0 FROM tab0
----
7396
8281
9409

query I rowsort
SELECT DISTINCT - 40 FROM tab0
----
-40

query I rowsort
SELECT DISTINCT + col2 * 5 + - col2 FROM tab2 AS cor0
----
104
108
152

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1344
SELECT DISTINCT - CAST ( 3 AS INTEGER ) col0 FROM tab1 AS cor0
----
-3

onlyif mysql # use DIV operator for integer division
query I rowsort label-1345
SELECT - 97 DIV + col0 + cor0.col0 AS col0 FROM tab1 AS cor0
----
-29
63
79

skipif mysql # not compatible
query I rowsort label-1345
SELECT - 97 / + col0 + cor0.col0 AS col0 FROM tab1 AS cor0
----
-29
63
79

query I rowsort
SELECT - col2 * cor0.col2 - - cor0.col1 AS col2 FROM tab1 AS cor0
----
-2890
-3239
-9203

query I rowsort
SELECT col1 + col1 + col2 * 59 FROM tab2
----
1652
1655
2276

query I rowsort
SELECT col1 + - col0 * + col1 AS col1 FROM tab1 AS cor0
----
-1027
-52
-630

skipif mysql # not compatible
query I rowsort
SELECT CAST ( + col0 AS REAL ) * col0 FROM tab2
----
49
6084
6241

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

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

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

query I rowsort
SELECT + 38 AS col1 FROM tab1
----
38
38
38

query I rowsort
SELECT - ( col2 ) + - col2 * + 79 AS col0 FROM tab2
----
-2080
-2160
-3040

query I rowsort
SELECT - ( col0 + - col2 ) * + 82 AS col2 FROM tab2
----
-3362
-4264
1640

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

query I rowsort
SELECT ALL col1 * - 2 FROM tab1 AS cor0
----
-20
-26
-52

query I rowsort
SELECT DISTINCT 80 AS col1 FROM tab0
----
80

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1359
SELECT ALL ( + cor1.col1 ) DIV cor1.col0 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 1fc9d366516f04208797907945465f57

skipif mysql # not compatible
query I rowsort label-1359
SELECT ALL ( + cor1.col1 ) / cor1.col0 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 1fc9d366516f04208797907945465f57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * tab2.col1 + 52 col1 FROM tab2
----
1586
698
889

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

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

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

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

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

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

query I rowsort
SELECT + 11 * + col1 * col1 FROM tab0
----
103499
81356
91091

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

query I rowsort
SELECT - + 19 FROM tab2, tab0, tab0 AS cor0
----
27 values hashing to 0fbbff28a7b63c37b01cf369f9325662

query I rowsort
SELECT DISTINCT - 27 * col0 * - col2 AS col0 FROM tab2
----
5103
54756
81054

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1372
SELECT - col1 DIV - col2 AS col0 FROM tab0
----
1
2
97

skipif mysql # not compatible
query I rowsort label-1372
SELECT - col1 / - col2 AS col0 FROM tab0
----
1
2
97

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

query I rowsort
SELECT tab0.col1 * + col2 * 18 AS col1 FROM tab0
----
134316
1746
51084

query I rowsort
SELECT + 46 * - cor0.col0 + col1 AS col0 FROM tab1 AS cor0
----
-112
-2934
-3667

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1377
SELECT col2 + CAST ( col1 AS INTEGER ) * + cor0.col2 + col1 col1 FROM tab1 AS cor0
----
1357
1484
637

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1379
SELECT + cor0.col0 DIV col0 + - 25 * col0 * ( col1 ) + + col2 AS col0 FROM tab1 AS cor0
----
-15942
-1895
-25903

skipif mysql # not compatible
query I rowsort label-1379
SELECT + cor0.col0 / col0 + - 25 * col0 * ( col1 ) + + col2 AS col0 FROM tab1 AS cor0
----
-15942
-1895
-25903

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1380
SELECT ALL - cor0.col0 * CAST( - col0 AS SIGNED ) + + col0 FROM tab0 AS cor0
----
1260
600
8010

skipif mysql # not compatible
query I rowsort label-1380
SELECT ALL - cor0.col0 * CAST ( - col0 AS INTEGER ) + + col0 FROM tab0 AS cor0
----
1260
600
8010

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

skipif mysql # not compatible
query I rowsort label-1381
SELECT DISTINCT - col0 + - col2 + + CAST ( NULL AS REAL ) AS col1 FROM tab1
----
NULL

query I rowsort
SELECT ALL + - col0 * - 43 FROM tab2 AS cor0
----
301
3354
3397

onlyif mysql # use DIV operator for integer division
query I rowsort label-1383
SELECT + - col0 * - ( - col2 ) + col2 DIV - 28 + + cor0.col2 FROM tab0 cor0
----
-34
-7218
-760

skipif mysql # not compatible
query I rowsort label-1383
SELECT + - col0 * - ( - col2 ) + col2 / - 28 + + cor0.col2 FROM tab0 cor0
----
-34
-7218
-760

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + col0 * col1 + col1 * 30 col0 FROM tab1 AS cor0
----
1526
912
997

query I rowsort
SELECT DISTINCT + 5 - cor0.col2 FROM tab1 AS cor0
----
-49
-52
-91

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

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

query I rowsort
SELECT 58 AS col0 FROM tab0 AS cor0
----
58
58
58

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( col2 ) * cor0.col2 col2 FROM tab0 AS cor0
----
-1
-1089
-6724

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

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

query I rowsort
SELECT DISTINCT + - 90 * + col1 + ( 47 ) AS col2 FROM tab2 AS cor0
----
-1483
-2743
-5263

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

query I rowsort
SELECT + 39 AS col1 FROM tab2 cor0
----
39
39
39

onlyif mysql # use DIV operator for integer division
query I rowsort label-1395
SELECT DISTINCT - col1 + col0 DIV - col1 AS col2 FROM tab2 AS cor0
----
-21
-31
-60

skipif mysql # not compatible
query I rowsort label-1395
SELECT DISTINCT - col1 + col0 / - col1 AS col2 FROM tab2 AS cor0
----
-21
-31
-60

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * - col1 - - col0 * - cor0.col1 col1 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1397
SELECT - 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-1397
SELECT - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT + - col0 * + 85 FROM tab2 AS cor0
----
-595
-6630
-6715

query I rowsort
SELECT DISTINCT - col1 * col1 AS col0 FROM tab0 AS cor0
----
-7396
-8281
-9409

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

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

query I rowsort
SELECT DISTINCT ( - ( + col1 ) ) + + 35 FROM tab1 AS cor0
----
22
25
9

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

query I rowsort
SELECT ALL - cor0.col0 + 19 FROM tab1 AS cor0
----
-45
-61
16

query I rowsort
SELECT DISTINCT + 46 FROM tab2 cor0
----
46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( 99 ) + - col2 col1 FROM tab1 AS cor0
----
3
42
45

query I rowsort
SELECT DISTINCT + tab0.col0 * + 17 * - col0 FROM tab0
----
-134657
-20825
-9792

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

query I rowsort
SELECT ALL - 96 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to c89b545346f99713888a7934e4caa539

query I rowsort
SELECT DISTINCT + col0 + 63 FROM tab2
----
141
142
70

query I rowsort
SELECT DISTINCT 34 * tab0.col2 FROM tab0
----
1122
2788
34

query I rowsort
SELECT - - 95 * - col0 AS col2 FROM tab1 AS cor0
----
-285
-6080
-7600

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

query I rowsort
SELECT 46 FROM tab1, tab1 cor0
----
9 values hashing to 31818c9d4d325eb248735c97cb1dce39

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 52 col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 7f4ae30893ab330784829711032ae599

query I rowsort
SELECT + - col1 * - 16 FROM tab2 AS cor0
----
272
496
944

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

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

query I rowsort
SELECT DISTINCT + ( - cor0.col0 ) * cor0.col2 + ( + 64 ) * + col2 FROM tab1 AS cor0
----
-1536
0
3294

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

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

query I rowsort
SELECT DISTINCT + + 80 + cor0.col0 * cor0.col0 AS col2 FROM tab2 AS cor0
----
129
6164
6321

query I rowsort
SELECT ALL - - ( - 82 ) - col0 FROM tab2 cor0
----
-160
-161
-89

query I rowsort
SELECT DISTINCT + 28 * - 71 - col0 FROM tab0 AS cor0
----
-2012
-2023
-2077

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

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

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

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

query I rowsort
SELECT DISTINCT - col2 * 23 + - col1 AS col1 FROM tab1
----
-1268
-1321
-2221

skipif mysql # not compatible
query I rowsort
SELECT + CAST ( + col1 AS REAL ) + col0 AS col2 FROM tab2 AS cor0
----
137
38
96

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

query I rowsort
SELECT ALL col1 - + 79 * + ( tab2.col0 ) FROM tab2
----
-522
-6103
-6224

query I rowsort
SELECT ALL - 36 + + col0 FROM tab0
----
-1
-12
53

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

query I rowsort
SELECT tab0.col2 + col1 * col1 AS col2 FROM tab0
----
7429
8363
9410

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

query I rowsort
SELECT ALL + 52 * - col1 FROM tab0 cor0
----
-4472
-4732
-5044

onlyif mysql # use DIV operator for integer division
query I rowsort label-1436
SELECT - - 5 + 96 DIV + col2 FROM tab0 AS cor0
----
101
6
7

skipif mysql # not compatible
query I rowsort label-1436
SELECT - - 5 + 96 / + col2 FROM tab0 AS cor0
----
101
6
7

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

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

query I rowsort
SELECT - col1 * col1 * - 16 + 81 * col2 FROM tab2
----
17563
57802
7702

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

query I rowsort
SELECT ALL + col0 + col1 - col1 * - col1 FROM tab0 AS cor0
----
7506
8461
9541

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

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

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

skipif mysql # not compatible
query I rowsort
SELECT col2 * + CAST ( col0 AS REAL ) AS col0 FROM tab2 AS cor0
----
189
2028
3002

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

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

query I rowsort
SELECT col1 + 80 * col0 AS col1 FROM tab0 AS cor0
----
2006
2897
7211

query I rowsort
SELECT ALL - - col2 + 25 FROM tab2 AS cor0
----
51
52
63

query I rowsort
SELECT DISTINCT - col2 - + 1 AS col0 FROM tab0 AS cor0
----
-2
-34
-83

query I rowsort
SELECT 97 AS col2 FROM tab2, tab0 cor0, tab2 AS cor1
----
27 values hashing to c73fa6978df8525c99d6bc792bb27123

query I rowsort
SELECT - - col0 * - 80 AS col2 FROM tab0 AS cor0
----
-1920
-2800
-7120

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

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

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

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

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

query I rowsort
SELECT DISTINCT - - col1 + + col0 * + ( - col2 * cor0.col2 ) FROM tab1 AS cor0
----
-207926
-737267
-8722

query I rowsort
SELECT DISTINCT + cor0.col1 * + ( - col1 * col0 ) AS col1 FROM tab1 AS cor0
----
-13520
-2028
-6400

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

query I rowsort
SELECT + 42 + tab1.col2 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to b79250ac0beecf5d6e7e155859e64225

query I rowsort
SELECT - 68 + - col0 * col2 FROM tab0 AS cor0
----
-103
-7366
-860

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

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

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

query I rowsort
SELECT - + 48 * 28 FROM tab2 AS cor0
----
-1344
-1344
-1344

query I rowsort
SELECT DISTINCT + 56 AS col2 FROM tab1 AS cor0
----
56

query I rowsort
SELECT - 43 AS col1 FROM tab0, tab2 AS cor0, tab1 cor1
----
27 values hashing to 2f72bd9cab68c8d8c38874510a290a3c

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

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

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

query I rowsort
SELECT ALL - cor0.col1 * cor0.col2 + - col0 + 98 FROM tab0 cor0
----
-2764
-34
-7453

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1472
SELECT DISTINCT col0 * - col0 DIV col0 AS col0 FROM tab0
----
-24
-35
-89

skipif mysql # not compatible
query I rowsort label-1472
SELECT DISTINCT col0 * - col0 / col0 AS col0 FROM tab0
----
-24
-35
-89

query I rowsort
SELECT 74 AS col1 FROM tab0, tab1 AS cor0, tab0 AS cor1, tab2 AS cor2
----
81 values hashing to 22fe261d6995563c0767a5087aea05b1

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

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

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

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col1 > NULL
----

query I rowsort
SELECT - 15 AS col1 FROM tab0 AS cor0
----
-15
-15
-15

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1481
SELECT ALL col1 - col0 * col1 DIV + col2 col1 FROM tab0
----
-3298
-7
24

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1481
SELECT ALL col1 - col0 * col1 / + col2 col1 FROM tab0
----
-3298
-7
24

query I rowsort
SELECT col1 - - col0 AS col1 FROM tab1
----
29
74
93

query I rowsort
SELECT col0 * + col2 + - col2 FROM tab0
----
34
7216
759

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

skipif mysql # not compatible
query I rowsort label-1484
SELECT ALL tab2.col2 - - col1 / - tab2.col0 FROM tab2
----
23
26
38

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( - col1 + - col1 ) <> ( NULL )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( - col1 * col1 ) IN ( + col1 )
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1488
SELECT + col0 DIV tab2.col1 + col0 * + col2 + col2 FROM tab2
----
2055
216
3044

skipif mysql # not compatible
query I rowsort label-1488
SELECT + col0 / tab2.col1 + col0 * + col2 + col2 FROM tab2
----
2055
216
3044

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

query I rowsort
SELECT ALL + tab1.col2 + - col1 AS col0 FROM tab1 WHERE NOT NULL NOT IN ( + col2 )
----

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

skipif mysql # not compatible
query I rowsort label-1491
SELECT + tab1.col2 / + col2 FROM tab1
----
1
1
1

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

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

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

query I rowsort
SELECT DISTINCT col0 * - tab0.col1 FROM tab0 WHERE NOT + col0 * + col2 BETWEEN NULL AND ( + col1 + - col0 )
----
-2064
-8099

query I rowsort
SELECT col1 + + col2 * - col1 AS col2 FROM tab1 WHERE - col0 <= ( NULL )
----

query I rowsort
SELECT - col2 * - col2 + tab0.col2 + - col1 * - col1 FROM tab0
----
15087
8518
9411

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

query I rowsort
SELECT - tab2.col2 FROM tab2, tab0, tab1 AS cor0, tab1
----
81 values hashing to c569638e8a09ff819458d62ddbde994c

query I rowsort
SELECT DISTINCT - 6 + - col1 FROM tab2
----
-23
-37
-65

onlyif mysql # use DIV operator for integer division
query I rowsort label-1500
SELECT col0 - + tab0.col0 DIV col0 FROM tab0
----
23
34
88

skipif mysql # not compatible
query I rowsort label-1500
SELECT col0 - + tab0.col0 / col0 FROM tab0
----
23
34
88

query I rowsort
SELECT DISTINCT + 21 + - col0 * col1 FROM tab0
----
-2043
-3374
-8078

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

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

skipif mysql # not compatible
query I rowsort label-1503
SELECT ALL ( 7 ) / - col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT col1 + + col0 * col1 AS col0 FROM tab2 AS cor0
----
1360
248
4661

query I rowsort
SELECT DISTINCT - - col1 * col2 + 24 AS col0 FROM tab2 AS cor0
----
1558
670
861

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

query I rowsort
SELECT ALL - - 46 * col2 + col2 FROM tab1 AS cor0
----
2538
2679
4512

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

query I rowsort
SELECT DISTINCT + + col1 + + col1 AS col0 FROM tab2 cor0
----
118
34
62

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1511
SELECT - col0 * col1 DIV col2 + - cor0.col2 FROM tab0 AS cor0
----
-180
-3396
-95

skipif mysql # not compatible
query I rowsort label-1511
SELECT - col0 * col1 / col2 + - cor0.col2 FROM tab0 AS cor0
----
-180
-3396
-95

query I rowsort
SELECT ALL + 7 + + col1 FROM tab2
----
24
38
66

query I rowsort
SELECT - 81 FROM tab2, tab1 AS cor0
----
9 values hashing to 205b3ff2d7b1817c98d7980b8c17e6c1

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

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

query I rowsort
SELECT DISTINCT - 86 + - col0 * col0 AS col1 FROM tab2 AS cor0
----
-135
-6170
-6327

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

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

query I rowsort
SELECT - col1 * col2 + 32 AS col0 FROM tab0 AS cor0
----
-2806
-65
-7430

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + 74 - 62 col0 FROM tab0 AS cor0
----
6302
6672
7116

query I rowsort
SELECT DISTINCT - + col2 + col2 * - col1 * cor0.col0 AS col0 FROM tab2 AS cor0
----
-119678
-51072
-5886

query I rowsort
SELECT - col0 * 45 + col1 AS col2 FROM tab1 cor0
----
-109
-2870
-3587

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

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

query I rowsort
SELECT DISTINCT col0 * 94 * + cor0.col2 + col2 + - col0 FROM tab0 cor0
----
3256
686005
74457

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1527
SELECT DISTINCT + 88 DIV col0 FROM tab1 AS cor0
----
1
29

skipif mysql # not compatible
query I rowsort label-1527
SELECT DISTINCT + 88 / col0 FROM tab1 AS cor0
----
1
29

onlyif mysql # use DIV operator for integer division
query I rowsort label-1528
SELECT ALL 48 + - cor0.col1 DIV - col0 AS col1 FROM tab1 AS cor0
----
48
48
56

skipif mysql # not compatible
query I rowsort label-1528
SELECT ALL 48 + - cor0.col1 / - col0 AS col1 FROM tab1 AS cor0
----
48
48
56

query I rowsort
SELECT DISTINCT - col2 * col2 + tab1.col1 * - col2 FROM tab1
----
-10464
-3819
-4320

query I rowsort
SELECT ALL 20 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 2fdd942fe0307a6ff66b63004ef102c4

onlyif mysql # use DIV operator for integer division
query I rowsort label-1531
SELECT + tab0.col0 DIV col2 + - col2 * col1 + + col2 AS col2 FROM tab0
----
-2805
-61
-7379

skipif mysql # not compatible
query I rowsort label-1531
SELECT + tab0.col0 / col2 + - col2 * col1 + + col2 AS col2 FROM tab0
----
-2805
-61
-7379

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

query I rowsort
SELECT ALL 0 * + col0 + 64 FROM tab1 AS cor0
----
64
64
64

query I rowsort
SELECT DISTINCT col0 + + col2 * cor0.col2 + col2 AS col0 FROM tab0 AS cor0
----
1146
37
6895

query I rowsort
SELECT ALL + + ( + col1 ) * 57 FROM tab0 cor0
----
4902
5187
5529

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1536
SELECT + col2 * + col0 * CAST( 2 AS SIGNED ) col2 FROM tab0 AS cor0
----
14596
1584
70

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1536
SELECT + col2 * + col0 * CAST ( 2 AS INTEGER ) col2 FROM tab0 AS cor0
----
14596
1584
70

query I rowsort
SELECT DISTINCT - 98 * - col0 FROM tab1 cor0
----
294
6272
7840

query I rowsort
SELECT + ( tab1.col0 * + col2 + 21 ) AS col2 FROM tab1
----
183
3669
7701

query I rowsort
SELECT 98 * - col0 FROM tab0 AS cor0
----
-2352
-3430
-8722

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1541
SELECT DISTINCT 48 DIV + col0 + - 60 FROM tab1 AS cor0
----
-44
-60

skipif mysql # not compatible
query I rowsort label-1541
SELECT DISTINCT 48 / + col0 + - 60 FROM tab1 AS cor0
----
-44
-60

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

query I rowsort
SELECT + - col1 + - col1 * 96 AS col1 FROM tab0 AS cor0
----
-8342
-8827
-9409

query I rowsort
SELECT DISTINCT - + col1 * - col2 + - ( col2 + col1 ) * - col1 AS col0 FROM tab1 AS cor0
----
1240
2665
3484

query I rowsort
SELECT DISTINCT + + 5 * col0 + 57 AS col2 FROM tab0 cor0
----
177
232
502

query I rowsort
SELECT DISTINCT - 87 * + col2 + col0 AS col0 FROM tab1 AS cor0
----
-4695
-4895
-8272

query I rowsort
SELECT DISTINCT 99 + col2 * - col0 FROM tab2 AS cor0
----
-1929
-2903
-90

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

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

query I rowsort
SELECT + col0 + 49 FROM tab0 AS cor0
----
138
73
84

query I rowsort
SELECT ALL 62 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 51dd2771d516ceb935483eded78a5fa0

query I rowsort
SELECT col0 + col1 + + ( + col2 + - col0 ) * 92 * + tab0.col0 FROM tab0
----
-109348
-57136
19982

query I rowsort
SELECT - col1 * - col2 + + col1 * + tab0.col2 AS col2 FROM tab0
----
14924
194
5676

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1554
SELECT + + CAST( + col1 AS SIGNED ) col2 FROM tab1 AS cor0
----
10
13
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1554
SELECT + + CAST ( + col1 AS INTEGER ) col2 FROM tab1 AS cor0
----
10
13
26

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

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

query I rowsort
SELECT DISTINCT + ( + 98 ) + - col0 FROM tab2 AS cor0
----
19
20
91

query I rowsort
SELECT - 71 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to e72f95c346714d3065a96d67a6fd5062

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 44 + - col1 col1 FROM tab2 AS cor0
----
-15
13
27

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

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

query I rowsort
SELECT - 35 + col1 AS col2 FROM tab2 AS cor0
----
-18
-4
24

query I rowsort
SELECT DISTINCT + 22 - cor0.col1 AS col0 FROM tab0 cor0
----
-64
-69
-75

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

query I rowsort
SELECT DISTINCT - ( col0 + + tab2.col1 ) * ( col2 ) FROM tab2
----
-1026
-3562
-3648

query I rowsort
SELECT + ( col0 * col2 ) + + col0 * - 30 FROM tab0
----
-1015
4628
72

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

query I rowsort
SELECT ALL - ( + cor0.col2 ) + - cor0.col0 * + col0 FROM tab2 AS cor0
----
-6110
-6279
-76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 27 col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 701bf12d86392cb1585d9e4f3c72e9a8

query I rowsort
SELECT ( - cor0.col1 ) + + cor0.col2 AS col2 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 546a494e1798cb1c65d1510d48d04dff

query I rowsort
SELECT ALL + 39 FROM tab0, tab1 cor0
----
9 values hashing to 5ecc4d3de68ae828a2d522dff8571cbf

query I rowsort
SELECT ALL - tab1.col1 * col0 * col2 AS col2 FROM tab1
----
-36480
-4212
-99840

query I rowsort
SELECT 84 + - col0 * 64 AS col2 FROM tab2 AS cor0
----
-364
-4908
-4972

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

skipif mysql # not compatible
query I rowsort label-1573
SELECT - col1 / col1 AS col1 FROM tab1 AS cor0
----
-1
-1
-1

query I rowsort
SELECT ALL col2 + + col1 * + col2 AS col0 FROM tab1 AS cor0
----
1344
1458
627

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

query I rowsort
SELECT - 75 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to c0722b1d77ac0ed13c0f2691a5751c59

query I rowsort
SELECT + 86 FROM tab2, tab2 AS cor0
----
9 values hashing to 2d8c3a0d19ea51447f83cd18b49fee19

query I rowsort
SELECT DISTINCT col2 * - ( - ( + col2 ) ) + - 34 AS col1 FROM tab1
----
2882
3215
9182

query I rowsort
SELECT - + col0 + - col0 + - 41 FROM tab2 AS cor0
----
-197
-199
-55

query I rowsort
SELECT ALL cor0.col0 + col1 AS col2 FROM tab1 AS cor0
----
29
74
93

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

query I rowsort
SELECT DISTINCT + + col1 * - ( col1 ) + + col0 FROM tab2 cor0
----
-210
-3403
-954

query I rowsort
SELECT col2 * 68 * col0 + col1 AS col2 FROM tab1 AS cor0
----
11042
248074
522253

query I rowsort
SELECT cor0.col0 * - col1 + + col0 * - 3 AS col2 FROM tab0 AS cor0
----
-2136
-3500
-8366

query I rowsort
SELECT - col2 * col0 * + col2 + col1 * col0 * + col1 FROM tab2 cor0
----
-91245
1624
218790

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

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

skipif mysql # not compatible
query I rowsort label-1587
SELECT - - 57 / 31 + col0 * CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

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

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

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1591
SELECT ALL + 41 * cor0.col2 DIV col1 FROM tab1 AS cor0
----
233
302
85

skipif mysql # not compatible
query I rowsort label-1591
SELECT ALL + 41 * cor0.col2 / col1 FROM tab1 AS cor0
----
233
302
85

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

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

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

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

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

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

query I rowsort
SELECT - 18 * - col1 * col1 FROM tab1 AS cor0
----
12168
1800
3042

query I rowsort
SELECT + 52 + + cor0.col1 AS col0 FROM tab1 AS cor0
----
62
65
78

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

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

query I rowsort
SELECT ALL + 81 AS col1 FROM tab1
----
81
81
81

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

query I rowsort
SELECT ALL cor0.col2 * - 30 + + col1 AS col1 FROM tab0 AS cor0
----
-2369
-904
67

onlyif mysql # use DIV operator for integer division
query I rowsort label-1603
SELECT ALL - col0 DIV - col2 + + col2 - col2 * CAST( + 59 AS SIGNED ) * col2 FROM tab0 cor0
----
-23
-396633
-64218

skipif mysql # not compatible
query I rowsort label-1603
SELECT ALL - col0 / - col2 + + col2 - col2 * CAST ( + 59 AS INTEGER ) * col2 FROM tab0 cor0
----
-23
-396633
-64218

query I rowsort
SELECT DISTINCT - 85 + + 69 FROM tab1 AS cor0
----
-16

query I rowsort
SELECT DISTINCT + 83 - 36 * - col0 FROM tab0 cor0
----
1343
3287
947

query I rowsort
SELECT - ( - col1 ) + col2 AS col2 FROM tab0 AS cor0
----
119
173
98

query I rowsort
SELECT DISTINCT - + col2 * - col2 * col1 + - col0 * - 6 FROM tab1 AS cor0
----
120288
32874
75834

query I rowsort
SELECT DISTINCT ( + col2 ) + cor0.col2 * - 18 FROM tab0 AS cor0
----
-1394
-17
-561

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

query I rowsort
SELECT ALL + 88 * ( col1 * + col2 + + col0 ) AS col1 FROM tab0 AS cor0
----
11616
251856
664488

query I rowsort
SELECT col1 - + col1 * - col0 AS col1 FROM tab2
----
1360
248
4661

onlyif mysql # use DIV operator for integer division
query I rowsort label-1612
SELECT col1 DIV 95 + col2 FROM tab0
----
2
33
82

skipif mysql # not compatible
query I rowsort label-1612
SELECT col1 / 95 + col2 FROM tab0
----
2
33
82

query I rowsort
SELECT 34 * - col1 AS col0 FROM tab1 AS cor0
----
-340
-442
-884

query I rowsort
SELECT 95 * col0 + ( + col0 ) FROM tab0 AS cor0
----
2304
3360
8544

query I rowsort
SELECT col2 * col0 * col0 + col2 + col2 FROM tab2 AS cor0
----
1377
158236
237234

onlyif mysql # use DIV operator for integer division
query I rowsort label-1616
SELECT + col1 DIV 99 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1616
SELECT + col1 / 99 FROM tab2
----
0
0
0

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

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

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

query I rowsort
SELECT ALL 89 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 5c8428e9f1e7de3d09cb0814b4cc1743

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

query I rowsort
SELECT - 80 * col1 + ( 80 ) AS col2 FROM tab1 AS cor0
----
-2000
-720
-960

query I rowsort
SELECT - 97 + col1 AS col0 FROM tab2 AS cor0
----
-38
-66
-80

query I rowsort
SELECT - 16 + col1 * + col0 FROM tab0 AS cor0
----
2048
3379
8083

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

query I rowsort
SELECT - 57 * col2 AS col1 FROM tab2
----
-1482
-1539
-2166

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1627
SELECT ALL tab2.col0 - col0 DIV 98 AS col2 FROM tab2
----
7
78
79

skipif mysql # not compatible
query I rowsort label-1627
SELECT ALL tab2.col0 - col0 / 98 AS col2 FROM tab2
----
7
78
79

query I rowsort
SELECT ALL - col0 * 76 * - col0 AS col0 FROM tab1 AS cor0
----
311296
486400
684

query I rowsort
SELECT DISTINCT - col0 * + 12 AS col0 FROM tab0 AS cor0
----
-1068
-288
-420

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1630
SELECT col0 + + CAST( col1 AS SIGNED ) + + cor0.col1 * - 10 FROM tab2 AS cor0
----
-272
-453
-74

skipif mysql # not compatible
query I rowsort label-1630
SELECT col0 + + CAST ( col1 AS INTEGER ) + + cor0.col1 * - 10 FROM tab2 AS cor0
----
-272
-453
-74

query I rowsort
SELECT col1 * col2 * col2 - col0 FROM tab1 AS cor0
----
119728
32426
75813

query I rowsort
SELECT col1 - col0 * + cor0.col0 FROM tab0 AS cor0
----
-1128
-490
-7830

onlyif mysql # use DIV operator for integer division
query I rowsort label-1633
SELECT ALL + col1 + col1 - CAST( + col1 AS SIGNED ) DIV col2 AS col0 FROM tab1
----
20
26
52

skipif mysql # not compatible
query I rowsort label-1633
SELECT ALL + col1 + col1 - CAST ( + col1 AS INTEGER ) / col2 AS col0 FROM tab1
----
20
26
52

query I rowsort
SELECT + 50 AS col2 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 314aace40e704c20a6be06204a329f80

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

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1638
SELECT ALL - cor0.col0 + + col0 DIV + col1 AS col1 FROM tab0 cor0
----
-24
-35
-89

skipif mysql # not compatible
query I rowsort label-1638
SELECT ALL - cor0.col0 + + col0 / + col1 AS col1 FROM tab0 cor0
----
-24
-35
-89

query I rowsort
SELECT DISTINCT col1 * 39 AS col2 FROM tab2 cor0
----
1209
2301
663

onlyif mysql # use DIV operator for integer division
query I rowsort label-1640
SELECT ALL + col1 + - 43 DIV + col1 AS col0 FROM tab2 AS cor0
----
15
30
59

skipif mysql # not compatible
query I rowsort label-1640
SELECT ALL + col1 + - 43 / + col1 AS col0 FROM tab2 AS cor0
----
15
30
59

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1641
SELECT + col2 * - CAST( 87 AS SIGNED ) + col1 FROM tab2 AS cor0
----
-2203
-2318
-3289

skipif mysql # not compatible
query I rowsort label-1641
SELECT + col2 * - CAST ( 87 AS INTEGER ) + col1 FROM tab2 AS cor0
----
-2203
-2318
-3289

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

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

query I rowsort
SELECT col2 * - ( col1 ) + cor0.col2 FROM tab0 AS cor0
----
-2805
-7380
-96

query I rowsort
SELECT 43 + col1 AS col2 FROM tab0
----
129
134
140

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

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

query I rowsort
SELECT ALL ( - col1 ) + + col2 * - col2 FROM tab0 AS cor0
----
-1175
-6815
-98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + 43 ) + col2 * + col2 col2 FROM tab2 AS cor0
----
1487
719
772

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

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

query I rowsort
SELECT - col0 * - col1 + - col2 * + ( + cor0.col2 ) AS col2 FROM tab2 cor0
----
-101
-512
3926

query I rowsort
SELECT + + 89 FROM tab1 AS cor0
----
89
89
89

query I rowsort
SELECT ALL - col0 * col0 * 84 AS col0 FROM tab2 cor0
----
-4116
-511056
-524244

query I rowsort
SELECT ALL - 82 * + col1 AS col1 FROM tab1 AS cor0
----
-1066
-2132
-820

query I rowsort
SELECT ALL + 85 + cor0.col1 FROM tab2 AS cor0
----
102
116
144

query I rowsort
SELECT - 61 FROM tab2, tab2 cor0, tab2 AS cor1
----
27 values hashing to c91d7b51e91f33d302e697913fb438b6

query I rowsort
SELECT DISTINCT - + col1 * + col0 * - 67 FROM tab2 AS cor0
----
14539
308334
89981

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

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

query I rowsort
SELECT + ( + 86 ) AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 2d8c3a0d19ea51447f83cd18b49fee19

query I rowsort
SELECT DISTINCT - col1 * - 53 FROM tab1
----
1378
530
689

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1662
SELECT DISTINCT 4 DIV - 29 col0 FROM tab0, tab0 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1662
SELECT DISTINCT 4 / - 29 col0 FROM tab0, tab0 AS cor0
----
0

query I rowsort
SELECT DISTINCT - col1 * 72 * - tab0.col2 FROM tab0
----
204336
537264
6984

query I rowsort
SELECT ALL 82 AS col0 FROM tab2, tab1 cor0
----
9 values hashing to f318fd9dac2de7af4b82cc7574bbca2c

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

skipif mysql # not compatible
query I rowsort label-1665
SELECT - + cor0.col1 * - ( ( + col0 ) ) / + ( col0 ) AS col2 FROM tab2 AS cor0
----
17
31
59

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

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

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

query I rowsort
SELECT tab2.col1 + 85 * - 14 FROM tab2
----
-1131
-1159
-1173

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

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

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

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

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

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

query I rowsort
SELECT cor0.col1 + + 19 * - col1 FROM tab2 AS cor0
----
-1062
-306
-558

query I rowsort
SELECT - + 46 * + ( col1 ) FROM tab0 AS cor0
----
-3956
-4186
-4462

query I rowsort
SELECT + ( 98 ) * + col0 * col1 AS col1 FROM tab2 AS cor0
----
131614
21266
450996

query I rowsort
SELECT ( - 62 ) FROM tab0 AS cor0
----
-62
-62
-62

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

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

query I rowsort
SELECT - col1 * col2 + + col2 FROM tab0 AS cor0
----
-2805
-7380
-96

query I rowsort
SELECT + + 42 + col1 * + col1 FROM tab2 AS cor0
----
1003
331
3523

query I rowsort
SELECT DISTINCT + 90 + - col1 FROM tab2 AS cor0
----
31
59
73

query I rowsort
SELECT ALL - 4 + col1 + ( - 21 ) FROM tab2
----
-8
34
6

query I rowsort
SELECT - col0 * col0 + - col0 + col2 FROM tab2 AS cor0
----
-29
-6136
-6282

onlyif mysql # use DIV operator for integer division
query I rowsort label-1684
SELECT ALL + - col0 DIV col1 + + col2 + 6 * col1 * col1 AS col0 FROM tab2 AS cor0
----
1768
20911
5793

skipif mysql # not compatible
query I rowsort label-1684
SELECT ALL + - col0 / col1 + + col2 + 6 * col1 * col1 AS col0 FROM tab2 AS cor0
----
1768
20911
5793

query I rowsort
SELECT DISTINCT + + 1 + col2 * 66 AS col1 FROM tab1 AS cor0
----
3565
3763
6337

query I rowsort
SELECT DISTINCT - col2 + col2 * ( + col2 + - col0 ) FROM tab2 AS cor0
----
-1378
-1596
513

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

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

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

query I rowsort
SELECT ALL 73 + + col1 - 64 * col0 AS col1 FROM tab1 cor0
----
-4013
-5034
-93

query I rowsort
SELECT + - col0 * col2 + + 38 FROM tab2 cor0
----
-151
-1990
-2964

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

skipif mysql # not compatible
query I rowsort label-1691
SELECT ALL - col1 / cor0.col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT + 39 + - col0 * col2 - - col1 FROM tab2 AS cor0
----
-119
-1930
-2946

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

query I rowsort
SELECT DISTINCT 74 FROM tab2 AS cor0
----
74

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

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

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

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

query I rowsort
SELECT ALL - col0 + + 50 * col2 AS col2 FROM tab1 cor0
----
2697
2786
4720

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

query I rowsort
SELECT DISTINCT col1 + - col0 + + col2 FROM tab1
----
29
3
77

query I rowsort
SELECT col0 + + col0 * col1 FROM tab1 AS cor0
----
1120
704
81

query I rowsort
SELECT + cor0.col2 * 44 + col0 * col0 * - col1 AS col1 FROM tab2 AS cor0
----
-104425
-331
-357812

query I rowsort
SELECT - col0 * + col0 + - col1 FROM tab1 AS cor0
----
-35
-4106
-6413

onlyif mysql # use DIV operator for integer division
query I rowsort label-1704
SELECT ALL 4 + col0 DIV + col0 FROM tab0
----
5
5
5

skipif mysql # not compatible
query I rowsort label-1704
SELECT ALL 4 + col0 / + col0 FROM tab0
----
5
5
5

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

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

query I rowsort
SELECT - 29 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 0cc9ddad93fc783055518ae4b6be054b

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + 8 ) col0 FROM tab1, tab0 AS cor0
----
9 values hashing to ffc5b4c98b57ae546521175995c49c57

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

query I rowsort
SELECT - - col1 * - cor0.col2 * col0 - + 99 FROM tab0 cor0
----
-3494
-664217
-68211

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( col1 ) * 46 col1 FROM tab2
----
1426
2714
782

query I rowsort
SELECT tab0.col2 * - col2 AS col1 FROM tab0
----
-1
-1089
-6724

onlyif mysql # use DIV operator for integer division
query I rowsort label-1714
SELECT DISTINCT - col1 + + tab1.col2 DIV + ( + ( - col2 ) ) AS col1 FROM tab1
----
-11
-14
-27

skipif mysql # not compatible
query I rowsort label-1714
SELECT DISTINCT - col1 + + tab1.col2 / + ( + ( - col2 ) ) AS col1 FROM tab1
----
-11
-14
-27

onlyif mysql # use DIV operator for integer division
query I rowsort label-1715
SELECT DISTINCT + - 3 DIV - col0 + - col0 AS col1 FROM tab0 AS cor0
----
-24
-35
-89

skipif mysql # not compatible
query I rowsort label-1715
SELECT DISTINCT + - 3 / - col0 + - col0 AS col1 FROM tab0 AS cor0
----
-24
-35
-89

query I rowsort
SELECT - + 74 - col1 FROM tab2 AS cor0
----
-105
-133
-91

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

query I rowsort
SELECT - - 16 * col2 + - col0 FROM tab0 cor0
----
-19
1223
504

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

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

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

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

query I rowsort
SELECT cor0.col0 * + col1 + + ( cor0.col2 ) AS col2 FROM tab2 cor0
----
1381
244
4628

query I rowsort
SELECT - 17 * - col0 AS col1 FROM tab1 AS cor0
----
1088
1360
51

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

query I rowsort
SELECT - ( - ( + cor0.col2 ) ) - - ( + 58 ) FROM tab1, tab1 cor0, tab2 cor1
----
27 values hashing to d723485b8f9f13fc88475a17696f9da9

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

query I rowsort
SELECT ALL - 0 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1729
SELECT - 90 * + col0 / 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-1729
SELECT - 90 * + col0 / CAST ( NULL AS INTEGER ) col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col1 * col1 * cor0.col1 + + cor0.col2 FROM tab0 cor0
----
-636023
-753489
-912672

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

query I rowsort
SELECT - cor0.col0 * + col0 + col1 * - col0 FROM tab2 AS cor0
----
-10686
-266
-7584

query I rowsort
SELECT - col1 + col0 - col2 FROM tab2
----
-51
-7
24

query I rowsort
SELECT DISTINCT + tab1.col1 * - col2 - ( - col1 ) AS col2 FROM tab1
----
-1235
-1378
-560

query I rowsort
SELECT - tab2.col1 AS col0 FROM tab2, tab0, tab2 cor0
----
27 values hashing to 6e0b7d583bc2c53842166d3e6ba2d6d2

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

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

query I rowsort
SELECT DISTINCT + 14 * ( - col2 ) + cor0.col0 AS col2 FROM tab2 AS cor0
----
-286
-371
-453

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

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

query I rowsort
SELECT DISTINCT 96 + + cor0.col1 + + col2 AS col0 FROM tab0 AS cor0
----
194
215
269

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1742
SELECT + col2 DIV + col1 AS col0 FROM tab1
----
2
5
7

skipif mysql # not compatible
query I rowsort label-1742
SELECT + col2 / + col1 AS col0 FROM tab1
----
2
5
7

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

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

query I rowsort
SELECT - ( 87 ) - + col1 * - 20 * col0 AS col0 FROM tab2 AS cor0
----
26773
4253
91953

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

skipif mysql # not compatible
query I rowsort label-1745
SELECT - col0 * CAST ( NULL AS INTEGER ) * 51 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-1746
SELECT DISTINCT - tab0.col0 DIV + col0 AS col2 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-1746
SELECT DISTINCT - tab0.col0 / + col0 AS col2 FROM tab0
----
-1

query I rowsort
SELECT DISTINCT col1 * 51 FROM tab0
----
4386
4641
4947

query I rowsort
SELECT col1 * 92 AS col0 FROM tab1
----
1196
2392
920

onlyif mysql # use DIV operator for integer division
query I rowsort label-1749
SELECT col2 * ( - col0 + col0 ) DIV - 64 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1749
SELECT col2 * ( - col0 + col0 ) / - 64 FROM tab1
----
0
0
0

query I rowsort
SELECT + 2 - 44 AS col0 FROM tab0 AS cor0
----
-42
-42
-42

query I rowsort
SELECT ALL cor0.col2 + 57 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to e4e0d28d0cf714c65cf04593ae67aa98

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

skipif mysql # not compatible
query I rowsort
SELECT ALL + - col2 * col1 + col2 * + cor0.col2 - ( col0 * CAST ( 15 AS REAL ) ) FROM tab0 AS cor0
----
-2073
-2109
-621

query I rowsort
SELECT 74 - cor0.col0 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 377b91d64b7b93ed30d0426381c602ee

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1755
SELECT + CAST( 99 AS SIGNED ) * + col1 FROM tab0 AS cor0
----
8514
9009
9603

skipif mysql # not compatible
query I rowsort label-1755
SELECT + CAST ( 99 AS INTEGER ) * + col1 FROM tab0 AS cor0
----
8514
9009
9603

query I rowsort
SELECT ALL 3 * col2 + col0 + + 23 AS col0 FROM tab1 cor0
----
188
258
391

query I rowsort
SELECT DISTINCT - 88 * 88 - + col1 AS col1 FROM tab0 AS cor0
----
-7830
-7835
-7841

query I rowsort
SELECT ALL - 25 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 40ac8fd000b2e49317aed2411077839e

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

skipif mysql # not compatible
query I rowsort label-1759
SELECT - + CAST ( 80 AS INTEGER ) FROM tab1 cor0
----
-80
-80
-80

onlyif mysql # use DIV operator for integer division
query I rowsort label-1760
SELECT DISTINCT - - col0 DIV col1 + col0 * - 67 FROM tab0 cor0
----
-1608
-2345
-5963

skipif mysql # not compatible
query I rowsort label-1760
SELECT DISTINCT - - col0 / col1 + col0 * - 67 FROM tab0 cor0
----
-1608
-2345
-5963

query I rowsort
SELECT ALL col0 - col1 * tab0.col0 AS col2 FROM tab0
----
-2040
-3360
-8010

query I rowsort
SELECT ALL - tab2.col0 * + col2 * tab2.col0 - col1 AS col1 FROM tab2
----
-1354
-158243
-237175

query I rowsort
SELECT - + 11 + - col2 * ( 97 ) AS col1 FROM tab1 AS cor0
----
-5249
-5540
-9323

query I rowsort
SELECT ALL 41 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 5b18986bb294412b3d9f07b7e6fc821e

onlyif mysql # use DIV operator for integer division
query I rowsort label-1765
SELECT + col2 * - col0 DIV + col0 AS col0 FROM tab1
----
-54
-57
-96

skipif mysql # not compatible
query I rowsort label-1765
SELECT + col2 * - col0 / + col0 AS col0 FROM tab1
----
-54
-57
-96

query I rowsort
SELECT ALL col0 + - 27 AS col1 FROM tab1
----
-24
37
53

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

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

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

query I rowsort
SELECT ALL col2 + + 89 * - col1 AS col0 FROM tab0
----
-7621
-8017
-8632

onlyif mysql # use DIV operator for integer division
query I rowsort label-1771
SELECT ALL - ( + 6 ) * col2 + + col1 DIV col2 AS col0 FROM tab1
----
-324
-342
-576

skipif mysql # not compatible
query I rowsort label-1771
SELECT ALL - ( + 6 ) * col2 + + col1 / col2 AS col0 FROM tab1
----
-324
-342
-576

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1773
SELECT DISTINCT - - col1 + CAST( col1 AS SIGNED ) * col1 col1 FROM tab1 AS cor0
----
110
182
702

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1773
SELECT DISTINCT - - col1 + CAST ( col1 AS INTEGER ) * col1 col1 FROM tab1 AS cor0
----
110
182
702

query I rowsort
SELECT ALL col1 * + col1 * col0 FROM tab1 AS cor0
----
13520
2028
6400

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

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

skipif mysql # not compatible
query I rowsort label-1776
SELECT DISTINCT + col2 / - col1 + col2 AS col0 FROM tab2
----
26
27
36

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

query I rowsort
SELECT - tab0.col2 * - tab0.col2 FROM tab0
----
1
1089
6724

query I rowsort
SELECT ALL col0 * col0 * - ( col0 * col2 ) + + tab1.col2 * - ( - col1 ) FROM tab1
----
-14941638
-49150752
-54

query I rowsort
SELECT ALL - col0 * + col1 + - col2 FROM tab1
----
-1136
-132
-697

query I rowsort
SELECT ALL col1 * 16 AS col2 FROM tab2
----
272
496
944

query I rowsort
SELECT ALL + + col1 - 2 * col1 * col2 AS col0 FROM tab0 AS cor0
----
-14833
-5590
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col2 * + col0 col0 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT DISTINCT + - col2 * 97 + - cor0.col0 AS col0 FROM tab0 cor0
----
-132
-3225
-8043

query I rowsort
SELECT DISTINCT - col1 + + 73 FROM tab1 cor0
----
47
60
63

query I rowsort
SELECT DISTINCT + col1 + - col1 * + 86 AS col0 FROM tab0 AS cor0
----
-7310
-7735
-8245

query I rowsort
SELECT DISTINCT col0 * + 45 + col2 * col1 + ( 23 ) AS col2 FROM tab0 AS cor0
----
11490
1695
3941

query I rowsort
SELECT ALL - - col0 * 48 - - 85 AS col1 FROM tab0 AS cor0
----
1237
1765
4357

query I rowsort
SELECT - col1 * + 91 FROM tab2 AS cor0
----
-1547
-2821
-5369

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

query I rowsort
SELECT ALL col0 + - col0 * col0 + + col2 AS col2 FROM tab1 AS cor0
----
-3975
-6224
48

query I rowsort
SELECT DISTINCT - col0 * - 35 - col0 FROM tab1 AS cor0
----
102
2176
2720

query I rowsort
SELECT ALL col1 * 40 FROM tab2 AS cor0
----
1240
2360
680

query I rowsort
SELECT ALL - ( - col2 ) + col2 + - col1 FROM tab2
----
-7
23
59

query I rowsort
SELECT ALL cor0.col1 * cor1.col2 AS col1 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to ae9e2bb55fd656eb6c7fb22bc2bb0f90

query I rowsort
SELECT ALL + col0 + - tab0.col0 * + col0 AS col1 FROM tab0
----
-1190
-552
-7832

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

query I rowsort
SELECT DISTINCT 9 + col1 * - col0 FROM tab1
----
-1031
-631
-69

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

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

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

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

query I rowsort
SELECT + col1 + 80 + + col2 FROM tab2
----
135
138
165

query I rowsort
SELECT ( + col1 ) * + col0 + - col2 FROM tab0
----
2031
3394
8017

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

query I rowsort
SELECT ALL - col1 * - col0 + + col0 * - col2 AS col1 FROM tab0
----
1272
3360
801

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

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

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

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

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

query I rowsort
SELECT + 96 * - col2 * - col2 AS col0 FROM tab2 AS cor0
----
138624
64896
69984

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col0 + + cor0.col2 col2 FROM tab2 cor0
----
104
117
34

query I rowsort
SELECT - 29 AS col1 FROM tab0 AS cor0
----
-29
-29
-29

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

query I rowsort
SELECT ALL - col2 + cor0.col2 * - col0 FROM tab0 AS cor0
----
-36
-7380
-825

query I rowsort
SELECT ALL + col0 + + col1 - - cor0.col0 AS col2 FROM tab1 AS cor0
----
138
173
32

onlyif mysql # use DIV operator for integer division
query I rowsort label-1818
SELECT - tab2.col2 * + ( + 66 ) + col2 + - col2 DIV - col0 FROM tab2
----
-1690
-1752
-2470

skipif mysql # not compatible
query I rowsort label-1818
SELECT - tab2.col2 * + ( + 66 ) + col2 + - col2 / - col0 FROM tab2
----
-1690
-1752
-2470

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

query I rowsort
SELECT DISTINCT cor0.col0 * - 93 FROM tab0 AS cor0
----
-2232
-3255
-8277

query I rowsort
SELECT + + col0 + - 79 * col1 FROM tab2 AS cor0
----
-1264
-2442
-4583

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col2 * - cor0.col0 col1 FROM tab2 AS cor0
----
189
2028
3002

onlyif mysql # use DIV operator for integer division
query I rowsort label-1824
SELECT col1 + - col2 DIV + 98 + cor0.col2 AS col0 FROM tab2 AS cor0
----
55
58
85

skipif mysql # not compatible
query I rowsort label-1824
SELECT col1 + - col2 / + 98 + cor0.col2 AS col0 FROM tab2 AS cor0
----
55
58
85

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

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

query I rowsort
SELECT ALL 92 AS col1 FROM tab0 AS cor0
----
92
92
92

query I rowsort
SELECT + cor0.col2 + col1 + + col1 AS col0 FROM tab2 AS cor0
----
144
72
89

query I rowsort
SELECT ALL 32 * col0 AS col0 FROM tab2 AS cor0
----
224
2496
2528

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

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

query I rowsort
SELECT DISTINCT 35 + - 98 * + col2 FROM tab0 cor0
----
-3199
-63
-8001

query I rowsort
SELECT - 24 + cor0.col2 AS col1 FROM tab2 AS cor0
----
14
2
3

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

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

query I rowsort
SELECT + 35 * col0 + col2 + + cor0.col1 * col2 FROM tab2 AS cor0
----
1109
3449
4290

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( col0 + + col1 - - col1 ) <> - col2 / col0 + col1
----

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

query I rowsort
SELECT + col2 AS col1 FROM tab2 WHERE col0 * col1 NOT IN ( col2 * + col1 )
----
26
27
38

onlyif mysql # use DIV operator for integer division
query I rowsort label-1838
SELECT + col0 DIV + col2 - - col0 * col0 AS col1 FROM tab0 AS cor0
----
1260
576
7922

skipif mysql # not compatible
query I rowsort label-1838
SELECT + col0 / + col2 - - col0 * col0 AS col1 FROM tab0 AS cor0
----
1260
576
7922

query I rowsort
SELECT - col2 * col0 + cor0.col1 + cor0.col2 AS col2 FROM tab1 cor0
----
-3581
-7571
-82

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

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

query I rowsort
SELECT + cor0.col2 + cor0.col0 * - col1 FROM tab0 AS cor0
----
-2031
-3394
-8017

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

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

query I rowsort
SELECT DISTINCT + + col0 * - col2 - - col0 FROM tab0 AS cor0
----
-7209
-768
0

query I rowsort
SELECT ALL + col0 + col0 + col2 * + cor0.col0 * cor0.col0 AS col2 FROM tab0 AS cor0
----
1295
19056
649700

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

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

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

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

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

query I rowsort
SELECT - col2 - - col2 FROM tab1 cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * 12 + col0 * col1 * col2 col2 FROM tab0 cor0
----
2231
663026
67080

query I rowsort
SELECT ALL - col2 * col0 * col2 FROM tab2 AS cor0
----
-114076
-5103
-52728

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1855
SELECT ALL col2 - - CAST( 16 AS SIGNED ) AS col2 FROM tab2
----
42
43
54

skipif mysql # not compatible
query I rowsort label-1855
SELECT ALL col2 - - CAST ( 16 AS INTEGER ) AS col2 FROM tab2
----
42
43
54

query I rowsort
SELECT ALL col1 + 82 AS col2 FROM tab0
----
168
173
179

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

query I rowsort
SELECT ALL col1 * 0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT + - cor0.col0 * 87 FROM tab1 AS cor0
----
-261
-5568
-6960

query I rowsort
SELECT + 43 + ( col0 ) AS col1 FROM tab1
----
107
123
46

onlyif mysql # use DIV operator for integer division
query I rowsort label-1861
SELECT ALL - ( 51 ) DIV - col1 AS col0 FROM tab1
----
1
3
5

skipif mysql # not compatible
query I rowsort label-1861
SELECT ALL - ( 51 ) / - col1 AS col0 FROM tab1
----
1
3
5

onlyif mysql # use DIV operator for integer division
query I rowsort label-1862
SELECT 62 DIV - col1 FROM tab2 AS cor0
----
-1
-2
-3

skipif mysql # not compatible
query I rowsort label-1862
SELECT 62 / - col1 FROM tab2 AS cor0
----
-1
-2
-3

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

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

query I rowsort
SELECT + - 63 * cor0.col1 AS col0 FROM tab0 AS cor0
----
-5418
-5733
-6111

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

skipif mysql # not compatible
query I rowsort label-1866
SELECT + ( col2 ) + - CAST ( col2 AS INTEGER ) FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT 23 * cor0.col2 FROM tab2 cor0
----
598
621
874

query I rowsort
SELECT ( - 78 ) AS col2 FROM tab0
----
-78
-78
-78

query I rowsort
SELECT ALL 85 * - cor0.col1 FROM tab2, tab1 AS cor0
----
9 values hashing to b16e9457aef5b95bde054b096035f5db

query I rowsort
SELECT - 79 AS col1 FROM tab1 AS cor0
----
-79
-79
-79

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

skipif mysql # not compatible
query I rowsort label-1871
SELECT + - col0 / - cor0.col0 AS col0 FROM tab2 AS cor0
----
1
1
1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1872
SELECT ALL - ( + col0 ) * CAST( + col0 AS SIGNED ) + + col1 * col1 FROM tab0 AS cor0
----
360
6820
8184

skipif mysql # not compatible
query I rowsort label-1872
SELECT ALL - ( + col0 ) * CAST ( + col0 AS INTEGER ) + + col1 * col1 FROM tab0 AS cor0
----
360
6820
8184

query I rowsort
SELECT + ( col1 + col2 ) AS col0 FROM tab1
----
109
67
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-1874
SELECT tab2.col2 + col2 * col0 DIV + tab2.col1 FROM tab2
----
214
33
60

skipif mysql # not compatible
query I rowsort label-1874
SELECT tab2.col2 + col2 * col0 / + tab2.col1 FROM tab2
----
214
33
60

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 93 * + col2 + - col1 + + col2 col0 FROM tab0 AS cor0
----
-3
3016
7617

query I rowsort
SELECT DISTINCT + 16 + col0 + col1 FROM tab1 AS cor0
----
109
45
90

query I rowsort
SELECT DISTINCT - 57 + + col0 AS col1 FROM tab1 AS cor0
----
-54
23
7

query I rowsort
SELECT DISTINCT - col0 + col1 FROM tab2 cor0
----
-19
-62
24

query I rowsort
SELECT DISTINCT - - col0 * + col2 AS col0 FROM tab1 AS cor0
----
162
3648
7680

onlyif mysql # use DIV operator for integer division
query I rowsort label-1880
SELECT ALL + + col0 + + 6 DIV - col0 FROM tab2 AS cor0
----
7
78
79

skipif mysql # not compatible
query I rowsort label-1880
SELECT ALL + + col0 + + 6 / - col0 FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT ALL - - col0 + 43 * col0 AS col1 FROM tab1 AS cor0
----
132
2816
3520

query I rowsort
SELECT ALL + - col1 * - col0 - + 94 FROM tab2 AS cor0
----
123
1249
4508

query I rowsort
SELECT DISTINCT - - cor0.col1 * + 59 FROM tab0 AS cor0
----
5074
5369
5723

query I rowsort
SELECT DISTINCT + + cor0.col2 + ( col2 ) FROM tab0 AS cor0
----
164
2
66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 * - ( - 97 ) col2 FROM tab2 AS cor0
----
-679
-7566
-7663

query I rowsort
SELECT DISTINCT - cor0.col0 + 23 FROM tab1 AS cor0
----
-41
-57
20

query I rowsort
SELECT DISTINCT 62 AS col0 FROM tab1, tab2, tab2 cor0
----
62

query I rowsort
SELECT + 77 + - col2 FROM tab2
----
39
50
51

query I rowsort
SELECT tab1.col0 * + col2 + + col1 FROM tab1
----
188
3658
7693

query I rowsort
SELECT ALL - col1 + 58 * - col0 FROM tab1 cor0
----
-200
-3722
-4653

query I rowsort
SELECT - 1 * 2 FROM tab0 cor0
----
-2
-2
-2

query I rowsort
SELECT ALL + - ( col0 ) * col2 AS col1 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT 59 * - col2 AS col1 FROM tab1 AS cor0
----
-3186
-3363
-5664

query I rowsort
SELECT ALL + col2 + 0 AS col2 FROM tab0 AS cor0
----
1
33
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 31 col2 FROM tab1 AS cor0
----
-31
-31
-31

query I rowsort
SELECT DISTINCT - 60 * 29 AS col2 FROM tab1 cor0
----
-1740

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1897
SELECT + CAST( + ( col0 ) AS SIGNED ) AS col0 FROM tab0 AS cor0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-1897
SELECT + CAST ( + ( col0 ) AS INTEGER ) AS col0 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT DISTINCT 73 * + col1 + + col0 + + cor0.col2 * col0 FROM tab1 AS cor0
----
2063
4442
8709

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col2 - + col1 col0 FROM tab1 cor0
----
28
47
83

query I rowsort
SELECT + cor0.col0 + col2 AS col1 FROM tab0 AS cor0
----
171
36
57

query I rowsort
SELECT ALL - col1 + - cor0.col2 * col2 FROM tab2 AS cor0
----
-1461
-735
-760

query I rowsort
SELECT - + col1 * - col0 AS col1 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT - 77 * col2 + col0 + + cor0.col2 * col2 AS col2 FROM tab1 AS cor0
----
-1076
-1239
1904

query I rowsort
SELECT - ( col2 ) * - col2 AS col2 FROM tab0 AS cor0
----
1
1089
6724

query I rowsort
SELECT ALL col0 + col1 * - col1 FROM tab1 AS cor0
----
-36
-673
-89

query I rowsort
SELECT DISTINCT + col2 + - col0 * - col1 + + col0 FROM tab2 AS cor0
----
1460
251
4706

query I rowsort
SELECT 43 * + cor1.col1 AS col1 FROM tab2, tab2 AS cor0, tab1 cor1
----
27 values hashing to afcccd61fde1b03de416c9f10db2de82

query I rowsort
SELECT col0 * + tab0.col0 FROM tab0
----
1225
576
7921

query I rowsort
SELECT - tab1.col0 + col1 AS col2 FROM tab1
----
-54
-67
23

query I rowsort
SELECT + + 8 + - col1 FROM tab0 AS cor0
----
-78
-83
-89

query I rowsort
SELECT col1 - ( - col2 ) AS col2 FROM tab1
----
109
67
80

query I rowsort
SELECT + col0 + col2 * - col1 FROM tab0 AS cor0
----
-2814
-62
-7373

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1913
SELECT DISTINCT CAST( + col0 AS SIGNED ) + col0 * ( - col2 + - col0 ) AS col0 FROM tab2
----
-231
-8034
-9164

skipif mysql # not compatible
query I rowsort label-1913
SELECT DISTINCT CAST ( + col0 AS INTEGER ) + col0 * ( - col2 + - col0 ) AS col0 FROM tab2
----
-231
-8034
-9164

query I rowsort
SELECT ( cor0.col2 ) AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8

query I rowsort
SELECT 20 - + col2 FROM tab2 cor0
----
-18
-6
-7

query I rowsort
SELECT DISTINCT 61 AS col1 FROM tab1
----
61

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1917
SELECT - CAST( col2 AS SIGNED ) * + col0 AS col1 FROM tab2
----
-189
-2028
-3002

skipif mysql # not compatible
query I rowsort label-1917
SELECT - CAST ( col2 AS INTEGER ) * + col0 AS col1 FROM tab2
----
-189
-2028
-3002

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1918
SELECT DISTINCT - CAST( 2 AS SIGNED ) + - col2 AS col1 FROM tab2 AS cor0
----
-28
-29
-40

skipif mysql # not compatible
query I rowsort label-1918
SELECT DISTINCT - CAST ( 2 AS INTEGER ) + - col2 AS col1 FROM tab2 AS cor0
----
-28
-29
-40

query I rowsort
SELECT + col0 - - cor0.col1 * col1 FROM tab0 AS cor0
----
7420
8370
9444

query I rowsort
SELECT DISTINCT + - 97 + cor0.col0 FROM tab2 AS cor0
----
-18
-19
-90

query I rowsort
SELECT col0 * + ( ( tab1.col1 ) ) AS col1 FROM tab1
----
1040
640
78

query I rowsort
SELECT - 65 + + col1 FROM tab2 AS cor0
----
-34
-48
-6

query I rowsort
SELECT 44 + cor0.col1 FROM tab2 AS cor0
----
103
61
75

query I rowsort
SELECT cor0.col0 + + cor0.col0 AS col0 FROM tab0 cor0
----
178
48
70

onlyif mysql # use DIV operator for integer division
query I rowsort label-1925
SELECT + col2 + + col2 DIV 69 FROM tab0 AS cor0
----
1
33
83

skipif mysql # not compatible
query I rowsort label-1925
SELECT + col2 + + col2 / 69 FROM tab0 AS cor0
----
1
33
83

query I rowsort
SELECT + - 31 AS col0 FROM tab0 AS cor0
----
-31
-31
-31

query I rowsort
SELECT - 7 * col1 AS col0 FROM tab0
----
-602
-637
-679

query I rowsort
SELECT DISTINCT - ( col1 ) * col2 AS col1 FROM tab1
----
-1248
-1404
-570

onlyif mysql # use DIV operator for integer division
query I rowsort label-1929
SELECT DISTINCT col2 DIV + col1 AS col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-1929
SELECT DISTINCT col2 / + col1 AS col0 FROM tab0
----
0

query I rowsort
SELECT - - col2 * - 15 * col2 FROM tab1 AS cor0
----
-138240
-43740
-48735

query I rowsort
SELECT - col2 * 39 FROM tab2 cor0
----
-1014
-1053
-1482

query I rowsort
SELECT - col2 + - ( + col2 ) * + col1 FROM tab1 cor0
----
-1344
-1458
-627

query I rowsort
SELECT + col1 * - 60 FROM tab1 AS cor0
----
-1560
-600
-780

onlyif mysql # use DIV operator for integer division
query I rowsort label-1934
SELECT DISTINCT col2 * cor0.col1 DIV + col2 - - col0 DIV 78 AS col1 FROM tab1 cor0
----
10
14
26

skipif mysql # not compatible
query I rowsort label-1934
SELECT DISTINCT col2 * cor0.col1 / + col2 - - col0 / 78 AS col1 FROM tab1 cor0
----
10
14
26

query I rowsort
SELECT DISTINCT + col1 + 39 AS col1 FROM tab0 AS cor0
----
125
130
136

query I rowsort
SELECT - col0 * 53 FROM tab2 AS cor0
----
-371
-4134
-4187

query I rowsort
SELECT ALL + col2 * + col0 + - 83 + col2 FROM tab2 AS cor0
----
133
1971
2957

query I rowsort
SELECT ALL + - col1 + col0 + - col0 AS col0 FROM tab1 AS cor0
----
-10
-13
-26

query I rowsort
SELECT + 54 AS col2 FROM tab1
----
54
54
54

query I rowsort
SELECT DISTINCT + ( col2 ) AS col0 FROM tab2
----
26
27
38

query I rowsort
SELECT col2 + tab1.col2 AS col1 FROM tab1
----
108
114
192

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 63 col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 5a7845ef6e239561caf9a17a28e274b5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + + 96 col1 FROM tab0
----
120
131
185

query I rowsort
SELECT DISTINCT + - cor0.col2 * cor0.col1 AS col1 FROM tab0 AS cor0
----
-2838
-7462
-97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1945
SELECT DISTINCT + col0 * + CAST( col2 AS SIGNED ) + - col0 * + col1 FROM tab2 AS cor0
----
-2574
-28
1659

skipif mysql # not compatible
query I rowsort label-1945
SELECT DISTINCT + col0 * + CAST ( col2 AS INTEGER ) + - col0 * + col1 FROM tab2 AS cor0
----
-2574
-28
1659

query I rowsort
SELECT ALL + col2 + cor0.col0 + + col2 AS col0 FROM tab1 AS cor0
----
111
178
272

query I rowsort
SELECT ALL - col0 + + col2 AS col1 FROM tab1 cor0
----
-7
16
51

query I rowsort
SELECT DISTINCT col1 * - ( col0 ) AS col1 FROM tab0 AS cor0
----
-2064
-3395
-8099

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1949
SELECT DISTINCT col0 * CAST( NULL AS SIGNED ) + - col2 / col0 + 52 AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1949
SELECT DISTINCT col0 * CAST ( NULL AS INTEGER ) + - col2 / col0 + 52 AS col0 FROM tab2 AS cor0
----
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1950
SELECT ALL col2 * CAST( col1 AS SIGNED ) * col2 FROM tab0
----
611884
93654
97

skipif mysql # not compatible
query I rowsort label-1950
SELECT ALL col2 * CAST ( col1 AS INTEGER ) * col2 FROM tab0
----
611884
93654
97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1951
SELECT ALL CAST( NULL AS SIGNED ) * 56 FROM tab0, tab2, tab0 AS cor0, tab1
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c

skipif mysql # not compatible
query I rowsort label-1951
SELECT ALL CAST ( NULL AS INTEGER ) * 56 FROM tab0, tab2, tab0 AS cor0, tab1
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c

query I rowsort
SELECT ALL + 10 * col2 AS col2 FROM tab1 AS cor0
----
540
570
960

query I rowsort
SELECT DISTINCT - - tab1.col1 FROM tab1, tab0, tab0 AS cor0
----
10
13
26

query I rowsort
SELECT ( 36 ) AS col0 FROM tab2, tab1 cor0
----
9 values hashing to eee96a85519f92856a7500dc8b6cf752

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1955
SELECT - ( + col1 ) + - col0 * + CAST( - 44 AS SIGNED ) + + col0 * CAST( NULL AS DECIMAL ) AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1955
SELECT - ( + col1 ) + - col0 * + CAST ( - 44 AS INTEGER ) + + col0 * CAST ( NULL AS REAL ) AS col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-1956
SELECT - 72 - + col2 DIV + col1 AS col0 FROM tab1 AS cor0
----
-74
-77
-79

skipif mysql # not compatible
query I rowsort label-1956
SELECT - 72 - + col2 / + col1 AS col0 FROM tab1 AS cor0
----
-74
-77
-79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 61 * - tab1.col0 - + col0 col1 FROM tab1
----
-186
-3968
-4960

query I rowsort
SELECT DISTINCT 82 AS col1 FROM tab2, tab1 AS cor0
----
82

query I rowsort
SELECT + 99 * + col1 + - col2 FROM tab2 cor0
----
1645
3042
5815

query I rowsort
SELECT - cor0.col0 - cor0.col2 FROM tab2 cor0
----
-104
-117
-34

query I rowsort
SELECT - col2 + col0 * - col2 AS col0 FROM tab0 AS cor0
----
-36
-7380
-825

query I rowsort
SELECT - - ( - cor0.col0 ) + col0 * 89 FROM tab1 cor0
----
264
5632
7040

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 7 col2 FROM tab1 AS cor0
----
7
7
7

query I rowsort
SELECT + 23 * + ( col1 ) + - 38 AS col2 FROM tab1 AS cor0
----
192
261
560

query I rowsort
SELECT ALL + 70 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 9758da65ae4711e3e8c8def2fe026911

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1966
SELECT col0 * col1 + CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1966
SELECT col0 * col1 + CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 98 + col1 AS col1 FROM tab0 AS cor0
----
184
189
195

query I rowsort
SELECT ALL + + 31 * + col2 + col0 FROM tab1 cor0
----
1677
1831
3056

query I rowsort
SELECT col1 * col1 + 76 FROM tab0 AS cor0
----
7472
8357
9485

onlyif mysql # use DIV operator for integer division
query I rowsort label-1970
SELECT + col0 DIV col0 FROM tab1 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-1970
SELECT + col0 / col0 FROM tab1 cor0
----
1
1
1

query I rowsort
SELECT - - col2 * + ( col1 ) AS col0 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT ALL 84 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to e8cd683fe8cea77b4326d9b80f21c74a

onlyif mysql # use DIV operator for integer division
query I rowsort label-1973
SELECT + col2 + col2 * 59 DIV + col1 FROM tab1 cor0
----
176
393
531

skipif mysql # not compatible
query I rowsort label-1973
SELECT + col2 + col2 * 59 / + col1 FROM tab1 cor0
----
176
393
531

query I rowsort
SELECT + col1 + ( 60 ) FROM tab0 AS cor0
----
146
151
157

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + cor0.col2 + col1 * ( - col2 * cor0.col2 ) col1 FROM tab2 AS cor0
----
-22626
-24586
-39910

query I rowsort
SELECT ALL col2 + - col1 * - col0 * col2 FROM tab2 AS cor0
----
119678
51072
5886

query I rowsort
SELECT DISTINCT + - col1 * + col2 + - col1 FROM tab2 AS cor0
----
-1593
-663
-868

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - cor0.col2 + col2 col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + ( col2 ) - - 56 * + 53 * + col0 FROM tab0 AS cor0
----
103881
264234
71265

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 14 * col2 col2 FROM tab0 AS cor0
----
1148
14
462

query I rowsort
SELECT ALL + - col0 * col2 * - col0 + col0 AS col2 FROM tab2 AS cor0
----
1330
158262
237237

query I rowsort
SELECT ALL + - col0 - col2 AS col2 FROM tab0 cor0
----
-171
-36
-57

query I rowsort
SELECT DISTINCT col0 * col0 - col1 * col1 AS col0 FROM tab2 AS cor0
----
-912
2603
5952

query I rowsort
SELECT 99 * col2 FROM tab0 AS cor0
----
3267
8118
99

onlyif mysql # use DIV operator for integer division
query I rowsort label-1985
SELECT DISTINCT - col0 DIV col1 AS col0 FROM tab2 AS cor0
----
-1
-4
0

skipif mysql # not compatible
query I rowsort label-1985
SELECT DISTINCT - col0 / col1 AS col0 FROM tab2 AS cor0
----
-1
-4
0

query I rowsort
SELECT ALL + ( + col1 ) AS col2 FROM tab2 cor0
----
17
31
59

query I rowsort
SELECT ALL - 4 * col1 AS col2 FROM tab0
----
-344
-364
-388

onlyif mysql # use DIV operator for integer division
query I rowsort label-1988
SELECT DISTINCT + col0 - + col2 DIV - col2 col0 FROM tab0 AS cor0
----
25
36
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1988
SELECT DISTINCT + col0 - + col2 / - col2 col0 FROM tab0 AS cor0
----
25
36
90

query I rowsort
SELECT ALL - col1 + + cor0.col0 * + cor0.col1 AS col0 FROM tab2 AS cor0
----
1326
186
4543

onlyif mysql # use DIV operator for integer division
query I rowsort label-1990
SELECT - cor0.col1 + 82 DIV + col2 FROM tab1 AS cor0
----
-13
-25
-9

skipif mysql # not compatible
query I rowsort label-1990
SELECT - cor0.col1 + 82 / + col2 FROM tab1 AS cor0
----
-13
-25
-9

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1991
SELECT CAST( NULL AS SIGNED ) * + 35 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-1991
SELECT CAST ( NULL AS INTEGER ) * + 35 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT DISTINCT col2 + + col1 AS col0 FROM tab2
----
55
58
85

query I rowsort
SELECT ALL col2 * ( 97 ) * - tab1.col2 FROM tab1
----
-282852
-315153
-893952

query I rowsort
SELECT ALL 43 AS col1 FROM tab0
----
43
43
43

query I rowsort
SELECT col1 * col1 + col1 * - ( col1 * col1 ) AS col0 FROM tab1
----
-16900
-2028
-900

query I rowsort
SELECT 49 + tab2.col0 * + col0 AS col0 FROM tab2
----
6133
6290
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * col2 + col2 col1 FROM tab1
----
1344
1458
627

query I rowsort
SELECT DISTINCT 29 * - col1 + + col1 + col2 AS col2 FROM tab0
----
-2375
-2466
-2715

query I rowsort
SELECT - - col1 * col2 + + col2 FROM tab2 AS cor0
----
1560
684
864

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 67 col1 FROM tab1 cor0
----
-67

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2001
SELECT ALL CAST( NULL AS SIGNED ) * col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2001
SELECT ALL CAST ( NULL AS INTEGER ) * col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 76 * col2 FROM tab0 AS cor0
----
-2508
-6232
-76

onlyif mysql # use DIV operator for integer division
query I rowsort label-2003
SELECT ALL + ( col2 ) DIV col2 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2003
SELECT ALL + ( col2 ) / col2 FROM tab1 AS cor0
----
1
1
1

query I rowsort
SELECT DISTINCT - 20 + + col0 AS col0 FROM tab2 AS cor0
----
-13
58
59

query I rowsort
SELECT ALL - - 8 - + col2 FROM tab2 AS cor0
----
-18
-19
-30

query I rowsort
SELECT ALL - 62 * + col0 - - cor0.col1 AS col0 FROM tab1 AS cor0
----
-160
-3958
-4947

query I rowsort
SELECT DISTINCT - - 59 + col1 FROM tab0 AS cor0
----
145
150
156

query I rowsort
SELECT - col1 + + tab2.col1 * col2 FROM tab2
----
1475
629
806

query I rowsort
SELECT + 75 AS col0 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to e61b59795204c348103a58c0a8e4ce16

query I rowsort
SELECT ALL - tab2.col2 AS col0 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to f9d4bb8677db7b98c7ed89d06e6e8cd6

query I rowsort
SELECT ALL + - col2 * + col0 + - col1 * cor0.col2 FROM tab0 AS cor0
----
-132
-14760
-3630

query I rowsort
SELECT DISTINCT + cor0.col2 - + col2 AS col2 FROM tab0 AS cor0
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-2013
SELECT ALL - 74 + + col0 * col1 DIV ( + 86 * col0 ) AS col1 FROM tab1 AS cor0
----
-74
-74
-74

skipif mysql # not compatible
query I rowsort label-2013
SELECT ALL - 74 + + col0 * col1 / ( + 86 * col0 ) AS col1 FROM tab1 AS cor0
----
-74
-74
-74

query I rowsort
SELECT - 51 * ( + col1 * col1 ) + col2 * + col2 + + ( + col0 ) * col0 AS col2 FROM tab0 AS cor0
----
-375531
-407686
-478633

query I rowsort
SELECT col1 * cor0.col1 * - col0 FROM tab1 AS cor0
----
-13520
-2028
-6400

query I rowsort
SELECT ALL + 57 FROM tab0 cor0
----
57
57
57

query I rowsort
SELECT - + cor0.col0 + + ( + col0 ) * - col0 + col2 FROM tab2 cor0
----
-29
-6136
-6282

query I rowsort
SELECT ALL + + ( - 46 ) * + col1 + + cor0.col1 FROM tab1 AS cor0
----
-1170
-450
-585

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2019
SELECT DISTINCT - - CAST( - 37 AS SIGNED ) FROM tab2 AS cor0
----
-37

skipif mysql # not compatible
query I rowsort label-2019
SELECT DISTINCT - - CAST ( - 37 AS INTEGER ) FROM tab2 AS cor0
----
-37

query I rowsort
SELECT - cor0.col0 + + 59 * col2 + cor0.col0 FROM tab0 AS cor0
----
1947
4838
59

onlyif mysql # use DIV operator for integer division
query I rowsort label-2021
SELECT + - col0 DIV 54 FROM tab0 cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-2021
SELECT + - col0 / 54 FROM tab0 cor0
----
-1
0
0

query I rowsort
SELECT ALL - col0 * 17 FROM tab0 AS cor0
----
-1513
-408
-595

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2023
SELECT DISTINCT + CAST( + 44 AS SIGNED ) * col0 FROM tab1 AS cor0
----
132
2816
3520

skipif mysql # not compatible
query I rowsort label-2023
SELECT DISTINCT + CAST ( + 44 AS INTEGER ) * col0 FROM tab1 AS cor0
----
132
2816
3520

query I rowsort
SELECT - ( - cor0.col2 ) * cor0.col2 * col2 + col0 * + col0 * - 72 + col2 FROM tab2 cor0
----
-394442
-420446
16182

query I rowsort
SELECT DISTINCT col0 - - tab2.col0 * + col0 AS col0 FROM tab2
----
56
6162
6320

query I rowsort
SELECT DISTINCT - col1 - - col0 FROM tab2
----
-24
19
62

query I rowsort
SELECT col2 * + col1 - - 38 FROM tab1
----
1286
1442
608

query I rowsort
SELECT ALL - - col1 * col2 AS col0 FROM tab0 cor0
----
2838
7462
97

query I rowsort
SELECT ALL + ( col2 ) * + cor0.col0 + 4 + - col0 AS col2 FROM tab0 AS cor0
----
4
7213
772

query I rowsort
SELECT DISTINCT col1 * - col2 + col1 * col2 - 65 FROM tab1
----
-65

query I rowsort
SELECT + - 45 * cor0.col2 + 40 FROM tab2, tab0, tab0 cor0
----
27 values hashing to c117d4dd97fa4eb0f55d9a0c3f0c5615

query I rowsort
SELECT ALL col1 * + col1 * + cor0.col2 FROM tab0 AS cor0
----
244068
679042
9409

query I rowsort
SELECT DISTINCT col1 + - col2 * - col0 + + col1 FROM tab2 cor0
----
2146
251
3036

query I rowsort
SELECT + 73 * cor0.col1 AS col2 FROM tab2 AS cor0
----
1241
2263
4307

onlyif mysql # use DIV operator for integer division
query I rowsort label-2035
SELECT col2 * col1 DIV - 83 FROM tab2 AS cor0
----
-10
-18
-7

skipif mysql # not compatible
query I rowsort label-2035
SELECT col2 * col1 / - 83 FROM tab2 AS cor0
----
-10
-18
-7

query I rowsort
SELECT ALL + - col1 + - cor0.col0 FROM tab0 cor0
----
-110
-132
-180

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col1 + + col1 * + col2 col2 FROM tab1 AS cor0
----
1235
1378
560

query I rowsort
SELECT DISTINCT - + ( cor0.col1 ) * + col0 + col1 AS col2 FROM tab2 AS cor0
----
-1326
-186
-4543

query I rowsort
SELECT - ( 0 ) FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2

query I rowsort
SELECT col1 + cor0.col1 + - 82 AS col1 FROM tab1 AS cor0
----
-30
-56
-62

query I rowsort
SELECT + col0 * - ( - cor0.col1 ) * - col0 AS col2 FROM tab2 AS cor0
----
-106097
-1519
-358956

onlyif mysql # use DIV operator for integer division
query I rowsort label-2042
SELECT - - cor0.col0 * - 77 + col2 * - col2 DIV + col2 + col0 * - cor0.col0 AS col1 FROM tab1 AS cor0
----
-12656
-294
-9081

skipif mysql # not compatible
query I rowsort label-2042
SELECT - - cor0.col0 * - 77 + col2 * - col2 / + col2 + col0 * - cor0.col0 AS col1 FROM tab1 AS cor0
----
-12656
-294
-9081

query I rowsort
SELECT DISTINCT + cor0.col0 * - col2 AS col2 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT - col0 * - col2 * - 84 - col2 AS col1 FROM tab0 AS cor0
----
-2941
-613114
-66561

query I rowsort
SELECT DISTINCT - cor0.col0 * + 0 FROM tab2 AS cor0
----
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2046
SELECT col1 * 47 + + col2 + col0 * - CAST( NULL AS DECIMAL ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2046
SELECT col1 * 47 + + col2 + col0 * - CAST ( NULL AS REAL ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-2047
SELECT - - col1 + ( + 22 ) DIV - col1 AS col1 FROM tab1 AS cor0
----
12
26
8

skipif mysql # not compatible
query I rowsort label-2047
SELECT - - col1 + ( + 22 ) / - col1 AS col1 FROM tab1 AS cor0
----
12
26
8

query I rowsort
SELECT ALL - col0 + col1 * 81 + col1 AS col0 FROM tab2
----
1315
2535
4760

onlyif mysql # use DIV operator for integer division
query I rowsort label-2049
SELECT col1 DIV + col0 AS col0 FROM tab0
----
1
2
3

skipif mysql # not compatible
query I rowsort label-2049
SELECT col1 / + col0 AS col0 FROM tab0
----
1
2
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 + - 77 col0 FROM tab2 AS cor0
----
-18
-46
-60

query I rowsort
SELECT + + col2 * 25 + col0 AS col2 FROM tab2 AS cor0
----
1029
682
728

query I rowsort
SELECT - + col0 * 17 FROM tab2 AS cor0
----
-119
-1326
-1343

query I rowsort
SELECT 74 + col2 + tab0.col1 AS col0 FROM tab0
----
172
193
247

query I rowsort
SELECT DISTINCT - - 98 AS col0 FROM tab1 cor0
----
98

query I rowsort
SELECT DISTINCT + cor0.col2 + 35 FROM tab0 cor0
----
117
36
68

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2056
SELECT ALL + CAST( NULL AS SIGNED ) * col0 + - col1 + - col1 * col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2056
SELECT ALL + CAST ( NULL AS INTEGER ) * col0 + - col1 + - col1 * col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - + 47 AS col1 FROM tab1 AS cor0
----
-47
-47
-47

query I rowsort
SELECT ALL 69 + - cor0.col0 * - cor0.col0 FROM tab0 AS cor0
----
1294
645
7990

query I rowsort
SELECT ALL + col1 - 82 AS col0 FROM tab1 AS cor0
----
-56
-69
-72

query I rowsort
SELECT DISTINCT - cor0.col2 + - 14 * cor0.col0 * col2 + + 57 AS col0 FROM tab1 AS cor0
----
-107559
-2265
-51072

query I rowsort
SELECT ALL col2 + 10 * - cor0.col1 AS col0 FROM tab1 AS cor0
----
-206
-34
-43

onlyif mysql # use DIV operator for integer division
query I rowsort label-2062
SELECT DISTINCT col0 + col2 * + col1 DIV col1 FROM tab2 AS cor0
----
104
117
34

skipif mysql # not compatible
query I rowsort label-2062
SELECT DISTINCT col0 + col2 * + col1 / col1 FROM tab2 AS cor0
----
104
117
34

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2063
SELECT DISTINCT + CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2063
SELECT DISTINCT + CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT ALL + CAST ( col1 AS REAL ) + col2 / + col1 col2 FROM tab2 AS cor0
----
19
31
59

query I rowsort
SELECT - + col2 + - 73 * col2 AS col0 FROM tab1 AS cor0
----
-3996
-4218
-7104

onlyif mysql # use DIV operator for integer division
query I rowsort label-2066
SELECT ALL col0 + + col0 DIV - col1 FROM tab1
----
3
58
74

skipif mysql # not compatible
query I rowsort label-2066
SELECT ALL col0 + + col0 / - col1 FROM tab1
----
3
58
74

query I rowsort
SELECT ALL - 65 + + 92 FROM tab2 AS cor0
----
27
27
27

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2068
SELECT DISTINCT + + CAST( NULL AS SIGNED ) + col2 - col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2068
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) + col2 - col1 FROM tab2 AS cor0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-2069
SELECT + + col2 + col2 DIV - col0 FROM tab0 AS cor0
----
1
32
82

skipif mysql # not compatible
query I rowsort label-2069
SELECT + + col2 + col2 / - col0 FROM tab0 AS cor0
----
1
32
82

query I rowsort
SELECT - col2 * - 97 + col1 AS col2 FROM tab2 cor0
----
2581
2650
3703

onlyif mysql # use DIV operator for integer division
query I rowsort label-2071
SELECT DISTINCT + cor0.col0 DIV col0 AS col1 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-2071
SELECT DISTINCT + cor0.col0 / col0 AS col1 FROM tab1 AS cor0
----
1

query I rowsort
SELECT DISTINCT - cor0.col2 * + cor0.col1 FROM tab2, tab2 AS cor0
----
-1534
-646
-837

query IIIIIIIII rowsort
SELECT ALL * FROM tab2, tab0 AS cor0 CROSS JOIN tab0 cor1
----
243 values hashing to 021da207cdc2a046fb0a79bf7cfc38ae

query I rowsort
SELECT + + cor0.col0 * - col1 AS col2 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT 46 * + col2 AS col1 FROM tab0 cor0
----
1518
3772
46

query I rowsort
SELECT ALL - 8 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 47f43f23dcd23959d97d8e3b0aab692e

query I rowsort
SELECT DISTINCT ( 27 ) FROM tab2
----
27

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 79 col2 FROM tab2, tab2 AS cor0
----
79

query I rowsort
SELECT - 39 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 504d14939d58aeb4a14f31c80de5b53e

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + ( + col1 ) ) col0 FROM tab2
----
17
31
59

query I rowsort
SELECT ( col1 + col2 ) FROM tab1
----
109
67
80

query I rowsort
SELECT + col0 + col0 * ( col0 ) AS col1 FROM tab1 AS cor0
----
12
4160
6480

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 26 col0 FROM tab1 AS cor0
----
26
26
26

query I rowsort
SELECT DISTINCT - 52 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
-52

query I rowsort
SELECT + 43 FROM tab1, tab2 AS cor0
----
9 values hashing to 199105619049271147956de52e7f5ed4

onlyif mysql # use DIV operator for integer division
query I rowsort label-2086
SELECT + col1 + + 8 + + col2 DIV ( col0 ) AS col1 FROM tab1 AS cor0
----
18
22
52

skipif mysql # not compatible
query I rowsort label-2086
SELECT + col1 + + 8 + + col2 / ( col0 ) AS col1 FROM tab1 AS cor0
----
18
22
52

query I rowsort
SELECT ALL - col1 + + ( 27 ) * + col0 FROM tab1 cor0
----
1718
2147
55

query I rowsort
SELECT ALL 82 FROM tab0, tab2 AS cor0
----
9 values hashing to f318fd9dac2de7af4b82cc7574bbca2c

query I rowsort
SELECT DISTINCT + 16 AS col1 FROM tab1 cor0
----
16

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 84 + + 38 col1 FROM tab2 AS cor0
----
-46
-46
-46

query I rowsort
SELECT - - 19 AS col0 FROM tab1 AS cor0
----
19
19
19

query I rowsort
SELECT - 8 FROM tab2, tab0 cor0
----
9 values hashing to 47f43f23dcd23959d97d8e3b0aab692e

query I rowsort
SELECT - 55 AS col1 FROM tab2
----
-55
-55
-55

query I rowsort
SELECT + col0 + - col0 * - cor0.col2 FROM tab2 AS cor0
----
196
2106
3081

onlyif mysql # use DIV operator for integer division
query I rowsort label-2095
SELECT - col2 DIV col1 + + ( col2 ) FROM tab0 AS cor0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-2095
SELECT - col2 / col1 + + ( col2 ) FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT + - col0 * - col0 + - 91 * - col0 AS col0 FROM tab2 AS cor0
----
13182
13430
686

query I rowsort
SELECT - col0 + ( col2 * col2 ) AS col1 FROM tab1 AS cor0
----
2913
3185
9136

query I rowsort
SELECT DISTINCT - cor0.col1 * ( - 55 ) + cor0.col0 FROM tab2 AS cor0
----
1014
1712
3323

query I rowsort
SELECT + + col0 + 18 * + col2 FROM tab2 AS cor0
----
493
546
763

onlyif mysql # use DIV operator for integer division
query I rowsort label-2100
SELECT DISTINCT + col2 DIV + col2 AS col0 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-2100
SELECT DISTINCT + col2 / + col2 AS col0 FROM tab0 AS cor0
----
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-2101
SELECT DISTINCT - col2 * + col0 + + 92 DIV + col1 col0 FROM tab1 AS cor0
----
-159
-3639
-7673

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2101
SELECT DISTINCT - col2 * + col0 + + 92 / + col1 col0 FROM tab1 AS cor0
----
-159
-3639
-7673

query I rowsort
SELECT - + col1 + - cor0.col0 * col2 FROM tab2 AS cor0
----
-2087
-220
-3019

query I rowsort
SELECT ALL + - col1 + - col1 * + col0 * + 12 AS col2 FROM tab0 AS cor0
----
-24854
-40837
-97279

onlyif mysql # use DIV operator for integer division
query I rowsort label-2104
SELECT DISTINCT + + col2 * col2 + col1 DIV 44 FROM tab2 AS cor0
----
1444
677
729

skipif mysql # not compatible
query I rowsort label-2104
SELECT DISTINCT + + col2 * col2 + col1 / 44 FROM tab2 AS cor0
----
1444
677
729

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * cor0.col1 col0 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT - ( + 89 ) * col1 AS col2 FROM tab0 AS cor0
----
-7654
-8099
-8633

onlyif mysql # use DIV operator for integer division
query I rowsort label-2107
SELECT ALL + + 58 DIV - 29 + - cor0.col1 DIV + col2 FROM tab0 AS cor0
----
-3
-4
-99

skipif mysql # not compatible
query I rowsort label-2107
SELECT ALL + + 58 / - 29 + - cor0.col1 / + col2 FROM tab0 AS cor0
----
-3
-4
-99

query I rowsort
SELECT ALL - 87 * cor0.col1 + + col0 FROM tab2 AS cor0
----
-1400
-2690
-5055

query I rowsort
SELECT - 32 * - col1 AS col1 FROM tab2 cor0
----
1888
544
992

query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab0 AS cor0 CROSS JOIN tab0 cor1
----
243 values hashing to 021da207cdc2a046fb0a79bf7cfc38ae

query I rowsort
SELECT + 30 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to da5de0c411a2c0f445400f1b63ea9f89

query I rowsort
SELECT col0 * + cor0.col2 + + ( + 41 + + col2 * + cor0.col1 ) FROM tab0 AS cor0
----
14801
173
3671

query I rowsort
SELECT DISTINCT col0 + ( col0 ) AS col0 FROM tab2 AS cor0
----
14
156
158

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + - ( 60 * col2 ) col0 FROM tab2 AS cor0
----
-1619
-1651
-2297

query I rowsort
SELECT DISTINCT - col2 * 51 * ( col2 ) AS col1 FROM tab0 AS cor0
----
-342924
-51
-55539

query I rowsort
SELECT DISTINCT 48 AS col0 FROM tab1
----
48

query I rowsort
SELECT ALL - 59 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to 582c5aa5e5b4fc3f2ea27e7637992d1f

query I rowsort
SELECT ALL 23 + col0 FROM tab2
----
101
102
30

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + tab2.col1 ) + 43 col2 FROM tab2
----
102
60
74

query I rowsort
SELECT col0 + 60 * + col2 * col0 AS col2 FROM tab2 AS cor0
----
11347
121758
180199

query I rowsort
SELECT + + col1 * 55 AS col1 FROM tab1 AS cor0
----
1430
550
715

onlyif mysql # use DIV operator for integer division
query I rowsort label-2122
SELECT DISTINCT col0 DIV + 33 AS col2 FROM tab1 AS cor0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-2122
SELECT DISTINCT col0 / + 33 AS col2 FROM tab1 AS cor0
----
0
1
2

query I rowsort
SELECT 78 FROM tab2, tab1 cor0, tab2 AS cor1
----
27 values hashing to d8e5ef4db3419fc251e82c50ba04e048

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2124
SELECT ALL col0 * col2 - CAST( + 82 AS SIGNED ) * tab0.col0 FROM tab0
----
-1176
-2835
0

skipif mysql # not compatible
query I rowsort label-2124
SELECT ALL col0 * col2 - CAST ( + 82 AS INTEGER ) * tab0.col0 FROM tab0
----
-1176
-2835
0

query I rowsort
SELECT ALL col2 + - ( col2 ) AS col1 FROM tab1
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2126
SELECT ALL tab2.col1 + - CAST( NULL AS SIGNED ) * + col0 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2126
SELECT ALL tab2.col1 + - CAST ( NULL AS INTEGER ) * + col0 AS col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2127
SELECT col2 + CAST( NULL AS SIGNED ) + col0 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2127
SELECT col2 + CAST ( NULL AS INTEGER ) + col0 AS col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2128
SELECT ALL + col1 + - CAST( - col0 AS SIGNED ) FROM tab2
----
137
38
96

skipif mysql # not compatible
query I rowsort label-2128
SELECT ALL + col1 + - CAST ( - col0 AS INTEGER ) FROM tab2
----
137
38
96

query I rowsort
SELECT + + col1 + ( + col1 * col0 ) FROM tab1 AS cor0
----
104
1053
650

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * - col0 col1 FROM tab2 AS cor0
----
-49
-6084
-6241

query I rowsort
SELECT ALL + col2 + - col0 * - col0 + cor0.col1 FROM tab0 AS cor0
----
1323
695
8094

query I rowsort
SELECT + col2 + + 41 FROM tab0
----
123
42
74

onlyif mysql # use DIV operator for integer division
query I rowsort label-2133
SELECT + tab0.col0 * + col0 + - col1 DIV - ( col2 ) AS col0 FROM tab0
----
1322
578
7922

skipif mysql # not compatible
query I rowsort label-2133
SELECT + tab0.col0 * + col0 + - col1 / - ( col2 ) AS col0 FROM tab0
----
1322
578
7922

query I rowsort
SELECT - cor1.col2 AS col1 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 44fdcd7cd603352d4d127811d164cc1e

query I rowsort
SELECT DISTINCT + ( + col1 ) * - tab2.col1 FROM tab2
----
-289
-3481
-961

query I rowsort
SELECT ALL - ( 27 ) * col0 AS col2 FROM tab0
----
-2403
-648
-945

query I rowsort
SELECT ALL 98 * - tab0.col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 94bc430bd5adda020c5b1d339af2e248

query I rowsort
SELECT DISTINCT - 29 * 75 AS col0 FROM tab2
----
-2175

query I rowsort
SELECT + col0 * + col0 * col0 AS col2 FROM tab0 AS cor0
----
13824
42875
704969

query I rowsort
SELECT DISTINCT - 13 * 90 FROM tab1
----
-1170

query I rowsort
SELECT 34 + + tab0.col1 FROM tab0
----
120
125
131

query I rowsort
SELECT ALL - - 24 FROM tab2 cor0
----
24
24
24

query I rowsort
SELECT col1 + + cor0.col2 AS col2 FROM tab0 cor0
----
119
173
98

query I rowsort
SELECT DISTINCT - ( col1 ) * + cor0.col0 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT - col2 - + col2 AS col2 FROM tab2 AS cor0
----
-52
-54
-76

query I rowsort
SELECT ALL + col1 * col1 AS col2 FROM tab0 cor0
----
7396
8281
9409

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 31 * + col0 col2 FROM tab0 AS cor0
----
1085
2759
744

query I rowsort
SELECT ALL - + 1 AS col0 FROM tab1 AS cor0
----
-1
-1
-1

query I rowsort
SELECT DISTINCT col2 * - col1 AS col0 FROM tab2 cor0
----
-1534
-646
-837

query I rowsort
SELECT DISTINCT cor0.col0 * + cor0.col1 AS col1 FROM tab1 cor0
----
1040
640
78

query I rowsort
SELECT - - col2 - + col2 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + - ( + col2 ) + + col2 * col1 FROM tab0 AS cor0
----
2805
7380
96

query I rowsort
SELECT col1 + - col1 - col1 AS col2 FROM tab0 AS cor0
----
-86
-91
-97

query I rowsort
SELECT ALL + col0 * - col0 AS col2 FROM tab0 AS cor0
----
-1225
-576
-7921

query I rowsort
SELECT ALL + cor1.col0 AS col2 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f

query I rowsort
SELECT - col1 + + 89 FROM tab0
----
-2
-8
3

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2157
SELECT + - CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2157
SELECT + - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 77 AS col1 FROM tab1 cor0
----
-77
-77
-77

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2159
SELECT ALL CAST( + col1 AS SIGNED ) FROM tab2
----
17
31
59

skipif mysql # not compatible
query I rowsort label-2159
SELECT ALL CAST ( + col1 AS INTEGER ) FROM tab2
----
17
31
59

query I rowsort
SELECT 94 FROM tab0, tab0 AS cor0
----
9 values hashing to b0ffb7527f4fbf44f30945e1ccb58c24

query I rowsort
SELECT tab2.col1 + cor0.col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 07a9fa96c94913f866af2be611e89dab

query I rowsort
SELECT + col2 + - col0 + col2 AS col0 FROM tab1
----
105
112
50

query I rowsort
SELECT DISTINCT + col1 * - col1 * 62 FROM tab0
----
-458552
-513422
-583358

query I rowsort
SELECT DISTINCT + ( + col2 ) + col0 * col2 * + col1 FROM tab2
----
119678
51072
5886

query I rowsort
SELECT DISTINCT + 89 AS col1 FROM tab1 AS cor0
----
89

query I rowsort
SELECT + col1 + - col2 * 43 AS col2 FROM tab1 AS cor0
----
-2296
-2441
-4115

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 85 * col0 col0 FROM tab2
----
-595
-6630
-6715

query I rowsort
SELECT cor0.col0 AS col1 FROM tab2, tab1 cor0, tab2 AS cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f

query I rowsort
SELECT - - col2 + + col1 * + 28 AS col2 FROM tab2 AS cor0
----
1678
514
895

query I rowsort
SELECT DISTINCT + cor0.col2 + + col0 FROM tab0 cor0
----
171
36
57

query I rowsort
SELECT ALL - - col1 * col1 AS col0 FROM tab2 AS cor0
----
289
3481
961

query I rowsort
SELECT - col0 + - cor0.col0 AS col1 FROM tab2 AS cor0
----
-14
-156
-158

query I rowsort
SELECT ALL - + col1 + - 67 * + 50 FROM tab1 AS cor0
----
-3360
-3363
-3376

query I rowsort
SELECT + col2 * + 55 FROM tab1 AS cor0
----
2970
3135
5280

query I rowsort
SELECT DISTINCT cor0.col1 * col0 AS col2 FROM tab2 AS cor0
----
1343
217
4602

onlyif mysql # use DIV operator for integer division
query I rowsort label-2176
SELECT col2 DIV + 91 + - 24 * cor0.col0 + - col2 FROM tab0 AS cor0
----
-2218
-609
-841

skipif mysql # not compatible
query I rowsort label-2176
SELECT col2 / + 91 + - 24 * cor0.col0 + - col2 FROM tab0 AS cor0
----
-2218
-609
-841

onlyif mysql # use DIV operator for integer division
query I rowsort label-2177
SELECT + + col1 DIV col0 AS col0 FROM tab2 AS cor0
----
0
0
4

skipif mysql # not compatible
query I rowsort label-2177
SELECT + + col1 / col0 AS col0 FROM tab2 AS cor0
----
0
0
4

query I rowsort
SELECT ALL + col2 * col1 + + col1 FROM tab1
----
1261
1430
580

query I rowsort
SELECT + - col1 + ( - cor0.col1 ) FROM tab1 cor0
----
-20
-26
-52

onlyif mysql # use DIV operator for integer division
query I rowsort label-2180
SELECT ALL + col0 DIV + col2 AS col1 FROM tab0
----
0
1
35

skipif mysql # not compatible
query I rowsort label-2180
SELECT ALL + col0 / + col2 AS col1 FROM tab0
----
0
1
35

query I rowsort
SELECT ALL + col2 * - col0 + col2 AS col1 FROM tab0
----
-34
-7216
-759

onlyif mysql # use DIV operator for integer division
query I rowsort label-2182
SELECT + cor0.col1 DIV - col2 + + cor0.col1 FROM tab0 AS cor0
----
0
84
90

skipif mysql # not compatible
query I rowsort label-2182
SELECT + cor0.col1 / - col2 + + cor0.col1 FROM tab0 AS cor0
----
0
84
90

query I rowsort
SELECT + col2 * - col2 + col2 * + col1 FROM tab1 cor0
----
-1512
-2679
-7968

query I rowsort
SELECT col2 * - col2 + + col1 AS col2 FROM tab1 cor0
----
-2890
-3239
-9203

query I rowsort
SELECT + - col1 + col1 * col2 AS col0 FROM tab1 cor0
----
1235
1378
560

query I rowsort
SELECT DISTINCT - + col1 * col0 + + col0 AS col2 FROM tab0 AS cor0
----
-2040
-3360
-8010

query I rowsort
SELECT + col2 * col1 * + col0 AS col0 FROM tab1 cor0
----
36480
4212
99840

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 * + cor0.col2 col2 FROM tab0 AS cor0
----
-2838
-7462
-97

query III rowsort
SELECT ALL * FROM tab0 WHERE col1 <= + col0 AND NULL NOT BETWEEN + col2 + col0 + col1 AND col2
----

query I rowsort
SELECT DISTINCT - col2 * tab0.col2 FROM tab0
----
-1
-1089
-6724

query I rowsort
SELECT ALL tab0.col2 * - tab0.col0 AS col1 FROM tab0
----
-35
-7298
-792

query I rowsort
SELECT + tab2.col0 * col0 AS col2 FROM tab2
----
49
6084
6241

onlyif mysql # use DIV operator for integer division
query I rowsort label-2193
SELECT + + cor0.col2 * + col0 - col1 * col1 DIV col0 FROM tab1 AS cor0
----
-63
3647
7678

skipif mysql # not compatible
query I rowsort label-2193
SELECT + + cor0.col2 * + col0 - col1 * col1 / col0 FROM tab1 AS cor0
----
-63
3647
7678

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + + cor0.col0 col0 FROM tab2 AS cor0
----
104
117
34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( cor0.col1 ) - - col1 col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT - 45 * - col0 + + col2 FROM tab0 AS cor0
----
1113
1576
4087

query I rowsort
SELECT 77 AS col0 FROM tab2
----
77
77
77

query I rowsort
SELECT 65 * tab0.col0 + - col2 AS col1 FROM tab0
----
1527
2274
5703

query I rowsort
SELECT + ( cor0.col1 ) AS col1 FROM tab0 AS cor0
----
86
91
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col1 + - col2 col2 FROM tab2 AS cor0
----
-55
-58
-85

query I rowsort
SELECT ALL - col2 + - col2 * + cor0.col1 + cor0.col1 FROM tab2 AS cor0
----
-1501
-667
-833

query I rowsort
SELECT 61 + tab2.col2 AS col0 FROM tab2
----
87
88
99

onlyif mysql # use DIV operator for integer division
query I rowsort label-2203
SELECT ALL col2 DIV + 22 + + tab0.col0 * + col0 FROM tab0
----
1225
577
7924

skipif mysql # not compatible
query I rowsort label-2203
SELECT ALL col2 / + 22 + + tab0.col0 * + col0 FROM tab0
----
1225
577
7924

query I rowsort
SELECT - 29 + - col1 AS col1 FROM tab2
----
-46
-60
-88

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 70 + col1 col0 FROM tab0
----
156
161
167

query I rowsort
SELECT DISTINCT ( col2 ) * col2 + + col0 * - col0 FROM tab0 AS cor0
----
-1197
-1224
513

query I rowsort
SELECT DISTINCT + ( col2 ) * col1 - - col2 * col2 AS col1 FROM tab1 AS cor0
----
10464
3819
4320

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - col1 + - col0 col0 FROM tab2 AS cor0
----
-1612
-725
-844

query I rowsort
SELECT ALL - + 49 + - col0 AS col1 FROM tab1 AS cor0
----
-113
-129
-52

query I rowsort
SELECT 55 * - col1 AS col0 FROM tab1
----
-1430
-550
-715

query I rowsort
SELECT + tab0.col2 + tab0.col2 * + 85 FROM tab0
----
2838
7052
86

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 * + col0 + 65 * + col2 + + col0 * + cor0.col1 col0 FROM tab2 AS cor0
----
1690
1755
2470

query I rowsort
SELECT + col1 * col1 + col0 * + 84 AS col0 FROM tab1 AS cor0
----
5476
6889
928

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 78 * + col0 + col0 * + 25 col1 FROM tab1 cor0
----
-159
-3392
-4240

query I rowsort
SELECT DISTINCT - col2 + + col1 - - 24 AS col2 FROM tab2 AS cor0
----
28
3
57

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2216
SELECT - - col1 * + col2 + - CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2216
SELECT - - col1 * + col2 + - 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-2217
SELECT - col0 * + col2 + - CAST( - col0 AS SIGNED ) DIV + col0 FROM tab0 cor0
----
-34
-7297
-791

skipif mysql # not compatible
query I rowsort label-2217
SELECT - col0 * + col2 + - CAST ( - col0 AS INTEGER ) / + col0 FROM tab0 cor0
----
-34
-7297
-791

query I rowsort
SELECT DISTINCT - 9 AS col2 FROM tab2 cor0
----
-9

query I rowsort
SELECT DISTINCT + col2 * col1 * 22 FROM tab2 AS cor0
----
14212
18414
33748

query I rowsort
SELECT + 7 * cor0.col0 * + col0 FROM tab1 cor0
----
28672
44800
63

query I rowsort
SELECT 60 * col1 + - 73 + - 27 * col0 * - 76 FROM tab0 cor0
----
188015
54335
77567

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2222
SELECT ALL col1 * + CAST( col1 AS SIGNED ) FROM tab1
----
100
169
676

skipif mysql # not compatible
query I rowsort label-2222
SELECT ALL col1 * + CAST ( col1 AS INTEGER ) FROM tab1
----
100
169
676

query I rowsort
SELECT ALL col0 - col0 * + col0 FROM tab1
----
-4032
-6
-6320

query I rowsort
SELECT - col0 * - 81 FROM tab1 AS cor0
----
243
5184
6480

query I rowsort
SELECT cor0.col1 + cor0.col2 * col2 FROM tab1 AS cor0
----
2942
3259
9229

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2226
SELECT + col2 + + CAST( + 17 AS SIGNED ) * col0 * + col1 AS col2 FROM tab0 AS cor0
----
137765
35121
57716

skipif mysql # not compatible
query I rowsort label-2226
SELECT + col2 + + CAST ( + 17 AS INTEGER ) * col0 * + col1 AS col2 FROM tab0 AS cor0
----
137765
35121
57716

query I rowsort
SELECT + col1 + 33 FROM tab1 AS cor0
----
43
46
59

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2228
SELECT + + col0 / CAST( NULL AS SIGNED ) AS col1 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2228
SELECT + + col0 / CAST ( NULL AS INTEGER ) AS col1 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT ( ( - col1 ) ) FROM tab0 AS cor0
----
-86
-91
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * col2 * - col0 col0 FROM tab2 AS cor0
----
-119652
-51034
-5859

onlyif mysql # use DIV operator for integer division
query I rowsort label-2231
SELECT cor0.col2 * - 46 + + cor0.col0 DIV col1 + + 58 FROM tab2 AS cor0
----
-1137
-1184
-1686

skipif mysql # not compatible
query I rowsort label-2231
SELECT cor0.col2 * - 46 + + cor0.col0 / col1 + + 58 FROM tab2 AS cor0
----
-1137
-1184
-1686

query I rowsort
SELECT ALL cor0.col2 * cor0.col1 FROM tab1, tab1 cor0
----
9 values hashing to 16ae0e1090cb09b93854a4788f17716b

query I rowsort
SELECT ALL cor0.col2 * - cor0.col2 AS col1 FROM tab1 AS cor0
----
-2916
-3249
-9216

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 61 col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 51f53697966a79d306a4570537cd91a1

query I rowsort
SELECT ALL ( col0 ) * - col2 * + 41 FROM tab2 cor0
----
-123082
-7749
-83148

query I rowsort
SELECT + col0 * - col1 + col1 * + col1 FROM tab0 AS cor0
----
182
5332
6014

query I rowsort
SELECT DISTINCT + col1 * 8 AS col2 FROM tab2 AS cor0
----
136
248
472

query I rowsort
SELECT - cor0.col0 * - ( - col1 ) FROM tab0 AS cor0
----
-2064
-3395
-8099

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 31 col0 FROM tab0 AS cor0
----
31
31
31

query I rowsort
SELECT DISTINCT - 51 * + cor0.col1 AS col0 FROM tab0 AS cor0
----
-4386
-4641
-4947

query I rowsort
SELECT DISTINCT ( + 7 ) * - cor0.col1 AS col0 FROM tab1 AS cor0
----
-182
-70
-91

onlyif mysql # use DIV operator for integer division
query I rowsort label-2242
SELECT DISTINCT + col0 DIV ( + col2 + - 22 ) FROM tab2 AS cor0
----
1
19
4

skipif mysql # not compatible
query I rowsort label-2242
SELECT DISTINCT + col0 / ( + col2 + - 22 ) FROM tab2 AS cor0
----
1
19
4

query I rowsort
SELECT + col0 + 96 FROM tab0 AS cor0
----
120
131
185

query I rowsort
SELECT DISTINCT - 10 FROM tab2, tab2 AS cor0
----
-10

query I rowsort
SELECT - ( + 80 ) * col2 AS col2 FROM tab0 AS cor0
----
-2640
-6560
-80

onlyif mysql # use DIV operator for integer division
query I rowsort label-2246
SELECT - ( 13 ) + - col2 DIV + 77 AS col2 FROM tab0 AS cor0
----
-13
-13
-14

skipif mysql # not compatible
query I rowsort label-2246
SELECT - ( 13 ) + - col2 / + 77 AS col2 FROM tab0 AS cor0
----
-13
-13
-14

onlyif mysql # use DIV operator for integer division
query I rowsort label-2247
SELECT ALL 65 DIV col2 + cor0.col0 FROM tab0 AS cor0
----
100
25
89

skipif mysql # not compatible
query I rowsort label-2247
SELECT ALL 65 / col2 + cor0.col0 FROM tab0 AS cor0
----
100
25
89

onlyif mysql # use DIV operator for integer division
query I rowsort label-2248
SELECT ALL - + cor0.col2 + col2 DIV + col2 FROM tab0 AS cor0
----
-32
-81
0

skipif mysql # not compatible
query I rowsort label-2248
SELECT ALL - + cor0.col2 + col2 / + col2 FROM tab0 AS cor0
----
-32
-81
0

query I rowsort
SELECT + 87 + col1 FROM tab2 AS cor0
----
104
118
146

query I rowsort
SELECT ALL + ( col1 ) + + col0 * col0 FROM tab2 AS cor0
----
6143
6258
80

query I rowsort
SELECT DISTINCT 22 * + col1 AS col1 FROM tab0 AS cor0
----
1892
2002
2134

query I rowsort
SELECT - 2 * col0 + col1 + + col0 FROM tab1 AS cor0
----
-54
-67
23

onlyif mysql # use DIV operator for integer division
query I rowsort label-2253
SELECT - ( - col1 ) DIV + col1 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2253
SELECT - ( - col1 ) / + col1 FROM tab0
----
1
1
1

query I rowsort
SELECT DISTINCT - 21 + 0 + col2 AS col1 FROM tab1
----
33
36
75

skipif mysql # not compatible
query I rowsort
SELECT ALL - CAST ( col2 * + col2 AS REAL ) + + col2 FROM tab1
----
-2862
-3192
-9120

query I rowsort
SELECT ALL col0 - col1 AS col2 FROM tab1 AS cor0
----
-23
54
67

query I rowsort
SELECT ALL col0 * - 4 + - 3 AS col2 FROM tab2 AS cor0
----
-31
-315
-319

query I rowsort
SELECT ALL - col1 * 0 AS col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL 77 AS col0 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to d7b027bca5d37c67e29013904def8125

query I rowsort
SELECT DISTINCT col2 * + 42 + + col0 * - col0 * - col1 AS col0 FROM tab0 AS cor0
----
118867
50922
724255

query I rowsort
SELECT DISTINCT - col1 + ( 49 ) FROM tab2 AS cor0
----
-10
18
32

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2262
SELECT - + cor0.col0 + - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2262
SELECT - + cor0.col0 + - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + + cor0.col1 - + col0 * col0 AS col2 FROM tab1 AS cor0
----
-4086
-6387
17

onlyif mysql # use DIV operator for integer division
query I rowsort label-2264
SELECT col2 DIV col1 - col1 col0 FROM tab2
----
-15
-31
-59

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2264
SELECT col2 / col1 - col1 col0 FROM tab2
----
-15
-31
-59

query I rowsort
SELECT DISTINCT + 42 + tab1.col0 FROM tab1
----
106
122
45

query I rowsort
SELECT - col1 * col1 + col1 FROM tab1
----
-156
-650
-90

query I rowsort
SELECT col0 + - 77 AS col1 FROM tab0
----
-42
-53
12

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2268
SELECT ALL - col0 * - CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2268
SELECT ALL - col0 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col1 * 89 FROM tab2 cor0
----
-1513
-2759
-5251

query I rowsort
SELECT DISTINCT + ( col0 ) + col2 AS col2 FROM tab0
----
171
36
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col2 * + 60 col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
1560
1620
2280

query I rowsort
SELECT 27 * tab1.col2 FROM tab1
----
1458
1539
2592

query I rowsort
SELECT tab2.col2 + - col0 * 67 FROM tab2
----
-442
-5200
-5255

query I rowsort
SELECT + tab1.col0 * + 97 FROM tab1
----
291
6208
7760

query I rowsort
SELECT col1 + - ( + 66 ) AS col0 FROM tab1
----
-40
-53
-56

onlyif mysql # use DIV operator for integer division
query I rowsort label-2276
SELECT - col0 + col1 DIV + 29 AS col0 FROM tab2
----
-6
-76
-79

skipif mysql # not compatible
query I rowsort label-2276
SELECT - col0 + col1 / + 29 AS col0 FROM tab2
----
-6
-76
-79

query I rowsort
SELECT ALL - col2 * + col0 * + 60 FROM tab1 AS cor0
----
-218880
-460800
-9720

query I rowsort
SELECT ALL + 0 AS col2 FROM tab1, tab0 cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query I rowsort
SELECT + 28 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 8a39580587f2831072e93c319ff94bbf

query I rowsort
SELECT + 42 FROM tab0, tab2, tab2 AS cor0, tab1
----
81 values hashing to 4d49d5ffe533e92cf06d98cb59a19b10

query I rowsort
SELECT - 76 + + 55 FROM tab1
----
-21
-21
-21

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + cor0.col2 col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT - col2 * col0 + 17 FROM tab2 AS cor0
----
-172
-2011
-2985

query I rowsort
SELECT cor0.col2 + cor0.col0 * col1 FROM tab1 AS cor0
----
1136
132
697

onlyif mysql # use DIV operator for integer division
query I rowsort label-2285
SELECT + 86 DIV - col2 + - 55 AS col2 FROM tab0 AS cor0
----
-141
-56
-57

skipif mysql # not compatible
query I rowsort label-2285
SELECT + 86 / - col2 + - 55 AS col2 FROM tab0 AS cor0
----
-141
-56
-57

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2286
SELECT ALL CAST( NULL AS SIGNED ) * + col1 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2286
SELECT ALL CAST ( NULL AS INTEGER ) * + col1 AS col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 3 * - col0 + - col0 * + 74 + col2 FROM tab1
----
-177
-4871
-6064

query I rowsort
SELECT DISTINCT 7 + + col1 FROM tab2 AS cor0
----
24
38
66

query I rowsort
SELECT cor0.col0 - col1 FROM tab1 AS cor0
----
-23
54
67

query I rowsort
SELECT + - 63 * cor0.col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to e98d72559b8b24c59a844d803a968582

query I rowsort
SELECT - 32 AS col0 FROM tab2 AS cor0
----
-32
-32
-32

query I rowsort
SELECT - col0 + col2 * col0 AS col0 FROM tab2 AS cor0
----
182
1950
2923

query I rowsort
SELECT - + cor0.col0 + cor0.col1 FROM tab1 cor0
----
-54
-67
23

onlyif mysql # use DIV operator for integer division
query I rowsort label-2294
SELECT ALL col0 DIV - col2 AS col2 FROM tab0 AS cor0
----
-1
-35
0

skipif mysql # not compatible
query I rowsort label-2294
SELECT ALL col0 / - col2 AS col2 FROM tab0 AS cor0
----
-1
-35
0

query I rowsort
SELECT + 92 * col2 AS col2 FROM tab0
----
3036
7544
92

query I rowsort
SELECT 34 * col1 * 47 AS col2 FROM tab0
----
137428
145418
155006

query I rowsort
SELECT - col2 * col1 - col0 FROM tab2 AS cor0
----
-1612
-725
-844

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 33 * + col2 col1 FROM tab1
----
-1782
-1881
-3168

onlyif mysql # use DIV operator for integer division
query I rowsort label-2299
SELECT DISTINCT ( + col0 ) - col0 * col1 DIV col0 col0 FROM tab1
----
-23
54
67

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2299
SELECT DISTINCT ( + col0 ) - col0 * col1 / col0 col0 FROM tab1
----
-23
54
67

query I rowsort
SELECT + + col1 * col2 + + 53 * - col1 + - col0 FROM tab0 AS cor0
----
-1744
-5079
2550

query I rowsort
SELECT col0 + col0 * cor0.col1 AS col2 FROM tab1 cor0
----
1120
704
81

query IIIIIIIIIIII rowsort
SELECT * FROM tab2 cor0 CROSS JOIN tab1, tab2 AS cor1, tab0 cor2
----
972 values hashing to 58757c5bbbd4217c03cf2ac0b6126e55

query I rowsort
SELECT col1 + - ( + 36 ) * - col1 FROM tab1 AS cor0
----
370
481
962

query I rowsort
SELECT + cor0.col1 + + col2 + col1 AS col0 FROM tab1 AS cor0
----
106
122
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + + col0 * - 32 col0 FROM tab2 AS cor0
----
-197
-2470
-2490

query I rowsort
SELECT ALL + col2 * ( col2 * + cor0.col2 ) - - cor0.col2 FROM tab0 AS cor0
----
2
35970
551450

query I rowsort
SELECT cor0.col0 - + col2 FROM tab2 AS cor0
----
-20
41
52

query I rowsort
SELECT - - col0 - ( + col1 ) FROM tab2 cor0
----
-24
19
62

onlyif mysql # use DIV operator for integer division
query I rowsort label-2309
SELECT - + col2 * col0 DIV - 99 - cor0.col1 * 49 FROM tab1 AS cor0
----
-1273
-454
-560

skipif mysql # not compatible
query I rowsort label-2309
SELECT - + col2 * col0 / - 99 - cor0.col1 * 49 FROM tab1 AS cor0
----
-1273
-454
-560

query I rowsort
SELECT DISTINCT + cor1.col1 * 45 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
3870
4095
4365

query I rowsort
SELECT + 95 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to e57d8ed879dfd04d04aae87725c970d3

onlyif mysql # use DIV operator for integer division
query I rowsort label-2312
SELECT - 22 DIV + col1 AS col0 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2312
SELECT - 22 / + col1 AS col0 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-2313
SELECT - ( - col2 ) + col1 DIV + col2 AS col1 FROM tab0 AS cor0
----
35
83
98

skipif mysql # not compatible
query I rowsort label-2313
SELECT - ( - col2 ) + col1 / + col2 AS col1 FROM tab0 AS cor0
----
35
83
98

query I rowsort
SELECT - - 22 + 2 FROM tab2 AS cor0
----
24
24
24

onlyif mysql # use DIV operator for integer division
query I rowsort label-2315
SELECT - ( cor0.col2 ) DIV col2 AS col0 FROM tab1 cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2315
SELECT - ( cor0.col2 ) / col2 AS col0 FROM tab1 cor0
----
-1
-1
-1

onlyif mysql # use DIV operator for integer division
query I rowsort label-2316
SELECT + col0 + col2 * col2 DIV - 54 AS col0 FROM tab0 AS cor0
----
-35
35
4

skipif mysql # not compatible
query I rowsort label-2316
SELECT + col0 + col2 * col2 / - 54 AS col0 FROM tab0 AS cor0
----
-35
35
4

query I rowsort
SELECT + - 15 * - col1 FROM tab0 AS cor0
----
1290
1365
1455

query I rowsort
SELECT DISTINCT cor1.col2 * 45 * + 50 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
121500
128250
216000

query I rowsort
SELECT + tab2.col0 FROM tab2, tab0 AS cor0, tab2 cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83

query I rowsort
SELECT DISTINCT + col2 FROM tab2 WHERE col2 >= ( + col0 * col1 * col1 - - col1 / col0 )
----

query I rowsort
SELECT + col2 FROM tab1 WHERE NULL <= NULL
----

query I rowsort
SELECT DISTINCT tab2.col1 * - col2 * - col2 FROM tab2
----
22599
24548
39884

query I rowsort
SELECT DISTINCT + col1 * - col1 AS col0 FROM tab0
----
-7396
-8281
-9409

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( - col0 ) NOT IN ( - col0 * col1 + col2 )
----

query I rowsort
SELECT - col1 AS col2 FROM tab1 WHERE col1 NOT IN ( col0 )
----
-10
-13
-26

query III rowsort
SELECT ALL * FROM tab0 WHERE ( + col2 ) = NULL
----

query I rowsort
SELECT DISTINCT col1 + + col2 AS col2 FROM tab1 WHERE NOT ( NULL ) >= - col0
----

query I rowsort
SELECT ALL col2 - - col0 * + col1 FROM tab1
----
1136
132
697

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * - col1 col2 FROM tab1
----
-100
-169
-676

onlyif mysql # use DIV operator for integer division
query I rowsort label-2330
SELECT ALL tab1.col0 DIV col0 + col0 + - col2 FROM tab1 WHERE ( + col0 * + col0 + col1 ) NOT IN ( col0 - col0 )
----
-15
-50
8

skipif mysql # not compatible
query I rowsort label-2330
SELECT ALL tab1.col0 / col0 + col0 + - col2 FROM tab1 WHERE ( + col0 * + col0 + col1 ) NOT IN ( col0 - col0 )
----
-15
-50
8

query I rowsort
SELECT DISTINCT + col0 * col2 * + col0 AS col2 FROM tab2
----
1323
158184
237158

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - col1 col2 FROM tab0
----
-2838
-7462
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-2333
SELECT tab0.col1 * col2 DIV col0 + - col0 FROM tab0
----
-33
-6
94

skipif mysql # not compatible
query I rowsort label-2333
SELECT tab0.col1 * col2 / col0 + - col0 FROM tab0
----
-33
-6
94

query I rowsort
SELECT ALL - col2 AS col2 FROM tab1 WHERE NOT NULL IN ( - col0 * tab1.col1 + + col2 )
----

query I rowsort
SELECT ALL col1 + - col0 * + col1 * + col0 + tab1.col1 FROM tab1
----
-182
-40940
-83174

query I rowsort
SELECT ALL tab2.col0 + tab2.col0 + col1 * - col1 AS col2 FROM tab2
----
-131
-3325
-947

query I rowsort
SELECT + col0 * + col0 + col1 FROM tab0
----
1322
662
8012

onlyif mysql # use DIV operator for integer division
query I rowsort label-2338
SELECT DISTINCT tab1.col1 DIV col2 + + tab1.col2 * col0 + col0 FROM tab1
----
165
3712
7760

skipif mysql # not compatible
query I rowsort label-2338
SELECT DISTINCT tab1.col1 / col2 + + tab1.col2 * col0 + col0 FROM tab1
----
165
3712
7760

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - col1 * col2 col1 FROM tab1
----
-36480
-4212
-99840

query I rowsort
SELECT DISTINCT + col0 * + col2 + - col2 - tab0.col1 * col1 * + col2 AS col2 FROM tab0
----
-243309
-671826
-9375

query I rowsort
SELECT ALL - col1 + col2 * col2 - + col0 AS col1 FROM tab2
----
1348
539
691

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( NULL ) NOT IN ( - col1 * col0 )
----

query I rowsort
SELECT - col0 * col1 - col2 * - col2 FROM tab0
----
-1375
-3394
-975

query I rowsort
SELECT tab2.col2 * + col2 * col0 FROM tab2
----
114076
5103
52728

query I rowsort
SELECT DISTINCT tab0.col0 + col2 AS col2 FROM tab0
----
171
36
57

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( - col0 * - col1 ) BETWEEN NULL AND NULL
----

query I rowsort
SELECT col0 * + col1 + + col0 * + col0 FROM tab1
----
4736
7440
87

onlyif mysql # use DIV operator for integer division
query I rowsort label-2348
SELECT ALL + col2 DIV + col0 - cor0.col2 FROM tab0 AS cor0
----
-1
-32
-82

skipif mysql # not compatible
query I rowsort label-2348
SELECT ALL + col2 / + col0 - cor0.col2 FROM tab0 AS cor0
----
-1
-32
-82

query I rowsort
SELECT ALL - col0 + + col0 FROM tab1 WHERE NOT ( - col0 * col0 ) IN ( - col2 - col0 )
----
0
0
0

query I rowsort
SELECT DISTINCT col1 AS col1 FROM tab2 cor0 WHERE NOT NULL NOT IN ( + col1 ) OR NOT NULL IN ( cor0.col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col0 BETWEEN NULL AND NULL OR - col0 <> - col1
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d

query I rowsort
SELECT + col2 * + col1 * col2 FROM tab0 AS cor0
----
611884
93654
97

query I rowsort
SELECT ALL col2 * col1 * - col2 FROM tab1
----
-119808
-32490
-75816

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col1 + cor0.col1 + - col0 col0 FROM tab0 AS cor0 WHERE NULL = - col2 * col1 * - col0
----

query I rowsort
SELECT DISTINCT - col2 FROM tab0 WHERE NOT ( NULL ) IN ( + col2 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-2356
SELECT ALL col0 * col0 - col2 DIV - col2 FROM tab0 AS cor0
----
1226
577
7922

skipif mysql # not compatible
query I rowsort label-2356
SELECT ALL col0 * col0 - col2 / - col2 FROM tab0 AS cor0
----
1226
577
7922

query IIIIII rowsort
SELECT * FROM tab1, tab1 AS cor0 WHERE NOT NULL > NULL
----

query I rowsort
SELECT ALL col0 FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( + col1 + + col0 * col0 )
----

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab2, tab2 AS cor1, tab1 AS cor2
----
972 values hashing to 980274175fafec015a83080672486a9a

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * col2 * 69 col1 FROM tab1 AS cor0
----
201204
224181
635904

query I rowsort
SELECT col1 + + 27 * 87 FROM tab2 AS cor0
----
2366
2380
2408

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * 22 col2 FROM tab2 AS cor0
----
154
1716
1738

query I rowsort
SELECT ALL - col1 * - cor0.col1 + col2 AS col2 FROM tab0 AS cor0
----
7429
8363
9410

query I rowsort
SELECT ALL + col2 * 64 FROM tab0 AS cor0
----
2112
5248
64

query I rowsort
SELECT DISTINCT - col0 + + col1 AS col0 FROM tab0 AS cor0
----
2
62

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2366
SELECT DISTINCT col1 * + CAST( col0 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
1040
640
78

skipif mysql # not compatible
query I rowsort label-2366
SELECT DISTINCT col1 * + CAST ( col0 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
1040
640
78

skipif mysql # not compatible
query I rowsort
SELECT - col1 * + CAST ( + col2 AS REAL ) AS col0 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT DISTINCT col0 * - 28 + + col2 FROM tab2 AS cor0
----
-169
-2158
-2174

query I rowsort
SELECT DISTINCT - + col1 + + col2 + - 13 FROM tab0 AS cor0
----
-109
-22
-66

skipif mysql # not compatible
query I rowsort
SELECT col1 * CAST ( - col2 AS REAL ) + + col2 AS col0 FROM tab2 AS cor0
----
-1508
-608
-810

query I rowsort
SELECT ALL cor0.col2 * + 27 AS col2 FROM tab0 AS cor0
----
2214
27
891

query I rowsort
SELECT ALL + + 53 AS col1 FROM tab1 AS cor0
----
53
53
53

query I rowsort
SELECT + 13 * 7 + + col0 FROM tab1 AS cor0
----
155
171
94

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab0 AS cor0, tab2 cor1, tab2 AS cor2
----
972 values hashing to 617c9545df26d6d983e3967864e8e9e4

query I rowsort
SELECT ALL - col1 * col0 + col0 AS col2 FROM tab1 cor0
----
-576
-75
-960

query I rowsort
SELECT ALL 3 * + col2 FROM tab0 cor0
----
246
3
99

query I rowsort
SELECT - - col2 * + col0 * - col1 AS col0 FROM tab1 AS cor0
----
-36480
-4212
-99840

onlyif mysql # use DIV operator for integer division
query I rowsort label-2378
SELECT + 99 DIV cor0.col1 FROM tab1 AS cor0
----
3
7
9

skipif mysql # not compatible
query I rowsort label-2378
SELECT + 99 / cor0.col1 FROM tab1 AS cor0
----
3
7
9

query I rowsort
SELECT - + ( - 12 ) * + col1 * + 92 AS col0 FROM tab0 AS cor0
----
100464
107088
94944

query I rowsort
SELECT ALL 11 * col2 * - col2 FROM tab1 AS cor0
----
-101376
-32076
-35739

query I rowsort
SELECT + 0 * - tab0.col1 AS col2 FROM tab0
----
0
0
0

query I rowsort
SELECT col0 * col0 + ( - col2 ) * - col0 FROM tab0
----
1260
1368
15219

query I rowsort
SELECT DISTINCT 29 * col1 AS col0 FROM tab0 cor0
----
2494
2639
2813

query I rowsort
SELECT DISTINCT 69 * col2 AS col2 FROM tab0 cor0
----
2277
5658
69

query I rowsort
SELECT - 34 AS col0 FROM tab1 cor0
----
-34
-34
-34

query I rowsort
SELECT ALL + col2 * col0 - col0 AS col2 FROM tab0 AS cor0
----
0
7209
768

onlyif mysql # use DIV operator for integer division
query I rowsort label-2387
SELECT + col2 DIV - col0 + + col1 * - col0 AS col1 FROM tab2
----
-1343
-220
-4602

skipif mysql # not compatible
query I rowsort label-2387
SELECT + col2 / - col0 + + col1 * - col0 AS col1 FROM tab2
----
-1343
-220
-4602

query I rowsort
SELECT DISTINCT + + 28 * - col0 + + cor0.col0 FROM tab0 AS cor0
----
-2403
-648
-945

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + col0 col0 FROM tab2 AS cor0
----
14
156
158

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 48 + + col0 + col0 col1 FROM tab0 cor0
----
118
226
96

query I rowsort
SELECT tab0.col2 + + col2 AS col2 FROM tab0
----
164
2
66

query I rowsort
SELECT + + col1 + col1 * col0 AS col2 FROM tab0 AS cor0
----
2150
3492
8190

query I rowsort
SELECT - col1 * + 97 FROM tab0 AS cor0
----
-8342
-8827
-9409

query I rowsort
SELECT ALL col2 + tab0.col0 FROM tab0
----
171
36
57

query I rowsort
SELECT ALL - col2 * col0 * 22 AS col2 FROM tab2
----
-4158
-44616
-66044

query I rowsort
SELECT DISTINCT 43 * - tab2.col0 * + ( - col0 ) FROM tab2
----
2107
261612
268363

onlyif mysql # use DIV operator for integer division
query I rowsort label-2397
SELECT DISTINCT + col1 DIV - col0 AS col0 FROM tab0
----
-1
-2
-3

skipif mysql # not compatible
query I rowsort label-2397
SELECT DISTINCT + col1 / - col0 AS col0 FROM tab0
----
-1
-2
-3

query I rowsort
SELECT + tab0.col2 FROM tab0, tab2, tab2 AS cor0
----
27 values hashing to 7786718bd8042022537378d40ec87475

query I rowsort
SELECT DISTINCT 78 * col0 + + col2 FROM tab0
----
1905
2731
7024

query I rowsort
SELECT ( col2 * - 91 ) AS col2 FROM tab0
----
-3003
-7462
-91

query I rowsort
SELECT ALL + col2 + - col0 * + col1 AS col0 FROM tab1 AS cor0
----
-24
-583
-944

query I rowsort
SELECT - cor0.col1 + col1 + col2 AS col1 FROM tab2 AS cor0
----
26
27
38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - col2 + col1 ) * ( col2 ) * col0 col1 FROM tab2
----
-63042
66924
756

query I rowsort
SELECT col1 * - col0 * - col2 - - ( col1 ) FROM tab0 cor0
----
3492
664209
68198

query I rowsort
SELECT + 35 - col1 AS col2 FROM tab1 cor0
----
22
25
9

query I rowsort
SELECT - - ( + col0 ) * cor0.col2 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT - ( - col0 ) * + cor0.col1 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT + col1 * + 88 - cor0.col1 AS col0 FROM tab1 AS cor0
----
1131
2262
870

query I rowsort
SELECT + - 73 FROM tab2 AS cor0
----
-73
-73
-73

query I rowsort
SELECT - col2 * col0 + + col2 AS col0 FROM tab2 AS cor0
----
-162
-2002
-2964

query I rowsort
SELECT ALL - ( 91 ) FROM tab1, tab2 AS cor0
----
9 values hashing to 745d1c3a09d935465cad552325c5c945

query I rowsort
SELECT DISTINCT + col2 * 76 * col1 AS col2 FROM tab0
----
215688
567112
7372

query I rowsort
SELECT DISTINCT - cor0.col2 * 76 FROM tab0, tab0 AS cor0, tab1 cor1, tab1, tab1 cor2
----
-2508
-6232
-76

query I rowsort
SELECT cor0.col0 * 96 + + col2 AS col1 FROM tab2 AS cor0
----
699
7514
7622

query I rowsort
SELECT DISTINCT + cor0.col2 * 64 + + col2 FROM tab0 AS cor0
----
2145
5330
65

query I rowsort
SELECT ALL - + col0 + + col2 AS col2 FROM tab1 AS cor0
----
-7
16
51

query I rowsort
SELECT + col0 * - 40 FROM tab0 AS cor0
----
-1400
-3560
-960

query I rowsort
SELECT + - cor0.col2 * col0 AS col1 FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT + + 79 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 40a2261caa2c5cdbfd80965d7df1231f

query I rowsort
SELECT - 65 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 4ca93c42a91c7dff917e7b7090ba9e57

onlyif mysql # use DIV operator for integer division
query I rowsort label-2421
SELECT col2 + - col0 DIV col1 + col0 AS col1 FROM tab1
----
115
170
57

skipif mysql # not compatible
query I rowsort label-2421
SELECT col2 + - col0 / col1 + col0 AS col1 FROM tab1
----
115
170
57

query I rowsort
SELECT + col2 * - 69 + + col2 + col1 FROM tab0
----
-2158
-5485
29

query I rowsort
SELECT - + 12 * + col2 + cor0.col1 + - cor0.col0 FROM tab0 AS cor0
----
-334
-982
50

query I rowsort
SELECT ( col0 ) - col1 FROM tab2 AS cor0
----
-24
19
62

query I rowsort
SELECT cor0.col0 FROM tab0, tab1, tab0 cor0
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd

onlyif mysql # use DIV operator for integer division
query I rowsort label-2426
SELECT DISTINCT cor0.col0 DIV 3 + col2 FROM tab0 AS cor0
----
111
12
41

skipif mysql # not compatible
query I rowsort label-2426
SELECT DISTINCT cor0.col0 / 3 + col2 FROM tab0 AS cor0
----
111
12
41

query I rowsort
SELECT ALL + col2 * 6 - - cor0.col1 FROM tab0 AS cor0
----
103
284
583

onlyif mysql # use DIV operator for integer division
query I rowsort label-2428
SELECT DISTINCT 80 DIV cor0.col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
1
11

skipif mysql # not compatible
query I rowsort label-2428
SELECT DISTINCT 80 / cor0.col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
1
11

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab2, tab1 cor1, tab0 cor2
----
972 values hashing to 9b91cf9fcc064ee1c13074a678b72ac7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab1.col1 + - 41 col1 FROM tab1
----
-15
-28
-31

query I rowsort
SELECT - 39 * - col2 FROM tab0
----
1287
3198
39

query I rowsort
SELECT DISTINCT - 89 AS col1 FROM tab0, tab2 AS cor0
----
-89

query I rowsort
SELECT - 92 + cor0.col2 AS col0 FROM tab2 AS cor0
----
-54
-65
-66

query I rowsort
SELECT 66 * - col1 FROM tab0
----
-5676
-6006
-6402

query I rowsort
SELECT DISTINCT - col1 * + col2 * - 84 AS col2 FROM tab0
----
238392
626808
8148

query I rowsort
SELECT DISTINCT ( + tab0.col1 * 92 ) AS col0 FROM tab0
----
7912
8372
8924

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2437
SELECT ALL - - col2 + + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2437
SELECT ALL - - col2 + + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-2438
SELECT DISTINCT - col0 DIV + 74 AS col1 FROM tab0 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-2438
SELECT DISTINCT - col0 / + 74 AS col1 FROM tab0 AS cor0
----
-1
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2439
SELECT ALL + - col2 + CAST( col2 + col1 AS SIGNED ) FROM tab0 AS cor0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-2439
SELECT ALL + - col2 + CAST ( col2 + col1 AS INTEGER ) FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT - col0 * + 13 FROM tab2 cor0
----
-1014
-1027
-91

query I rowsort
SELECT - - col1 + + col0 AS col1 FROM tab2 AS cor0
----
137
38
96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2442
SELECT + CAST( NULL AS SIGNED ) AS col2 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-2442
SELECT + CAST ( NULL AS INTEGER ) AS col2 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT col0 + + 88 FROM tab0 AS cor0
----
112
123
177

query I rowsort
SELECT ALL - col1 * + col1 + ( + col2 ) AS col2 FROM tab2 AS cor0
----
-251
-3455
-934

query I rowsort
SELECT + col0 * 54 AS col0 FROM tab2 AS cor0
----
378
4212
4266

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2446
SELECT ALL - col2 + col2 * + CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2446
SELECT ALL - col2 + col2 * + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col0 * - cor0.col1 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT DISTINCT 31 * - col2 AS col0 FROM tab2
----
-1178
-806
-837

query I rowsort
SELECT ALL + col1 + cor0.col1 AS col0 FROM tab2 AS cor0
----
118
34
62

query I rowsort
SELECT DISTINCT - 47 + - col1 FROM tab1 AS cor0
----
-57
-60
-73

query I rowsort
SELECT ALL - 56 * cor0.col1 AS col0 FROM tab0, tab0 AS cor0, tab1 cor1
----
27 values hashing to 1c7c5e5e55b32d461a0e3b2cbf7afb5d

query I rowsort
SELECT col0 + + cor0.col2 * col0 AS col0 FROM tab2 AS cor0
----
196
2106
3081

onlyif mysql # use DIV operator for integer division
query I rowsort label-2453
SELECT ALL - col1 DIV 44 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2453
SELECT ALL - col1 / 44 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT - cor0.col0 * col1 * - 43 FROM tab1 AS cor0
----
27520
3354
44720

query I rowsort
SELECT - col2 * 61 FROM tab2 AS cor0
----
-1586
-1647
-2318

query I rowsort
SELECT ALL + col1 * 75 AS col0 FROM tab2 AS cor0
----
1275
2325
4425

query I rowsort
SELECT - - col2 - + col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT + col0 * - 93 + + ( cor0.col2 ) * - ( col1 + col1 ) FROM tab2 AS cor0
----
-10322
-2325
-8639

query I rowsort
SELECT cor0.col0 * ( col1 ) AS col1 FROM tab1 AS cor0
----
1040
640
78

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2460
SELECT DISTINCT + col0 * CAST( col2 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
189
2028
3002

skipif mysql # not compatible
query I rowsort label-2460
SELECT DISTINCT + col0 * CAST ( col2 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
189
2028
3002

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 90 * + col2 col2 FROM tab0
----
2970
7380
90

query I rowsort
SELECT 94 + - tab1.col0 FROM tab1, tab0, tab0 AS cor0
----
27 values hashing to 3deb687a63a9a1866bb53f2d9c2c87f3

query I rowsort
SELECT + 55 FROM tab2, tab0, tab0 AS cor0
----
27 values hashing to 832128adb1ddc65c3105e29cc2c8b3a3

query I rowsort
SELECT DISTINCT + 42 FROM tab2
----
42

query I rowsort
SELECT DISTINCT + cor0.col2 * + 63 AS col2 FROM tab2, tab0 AS cor0
----
2079
5166
63

skipif mysql # not compatible
query I rowsort
SELECT - col1 * col0 - CAST ( col0 + col2 AS REAL ) FROM tab1
----
-1216
-135
-761

query I rowsort
SELECT + 24 FROM tab1 cor0
----
24
24
24

query I rowsort
SELECT DISTINCT - col0 * - col2 + - col2 FROM tab2 AS cor0
----
162
2002
2964

query I rowsort
SELECT ALL - ( col1 ) + - col0 AS col1 FROM tab0 AS cor0
----
-110
-132
-180

query I rowsort
SELECT DISTINCT - ( col0 ) + - cor0.col0 AS col2 FROM tab0 AS cor0
----
-178
-48
-70

onlyif mysql # use DIV operator for integer division
query I rowsort label-2471
SELECT - 94 + col2 DIV col0 col1 FROM tab0 AS cor0
----
-93
-94
-94

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2471
SELECT - 94 + col2 / col0 col1 FROM tab0 AS cor0
----
-93
-94
-94

query I rowsort
SELECT ALL + cor0.col2 + - col0 * - cor0.col2 FROM tab2 AS cor0
----
2054
216
3040

onlyif mysql # use DIV operator for integer division
query I rowsort label-2473
SELECT DISTINCT + 1 DIV + col0 AS col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2473
SELECT DISTINCT + 1 / + col0 AS col2 FROM tab0 AS cor0
----
0

query I rowsort
SELECT DISTINCT + + 9 FROM tab1 AS cor0
----
9

onlyif mysql # use DIV operator for integer division
query I rowsort label-2475
SELECT DISTINCT - col1 DIV 15 + - col0 FROM tab2 cor0
----
-80
-81
-9

skipif mysql # not compatible
query I rowsort label-2475
SELECT DISTINCT - col1 / 15 + - col0 FROM tab2 cor0
----
-80
-81
-9

query I rowsort
SELECT - 46 * col0 + cor0.col2 AS col0 FROM tab0 AS cor0
----
-1071
-1609
-4012

query I rowsort
SELECT ALL + 19 * + col2 AS col2 FROM tab0 AS cor0
----
1558
19
627

query I rowsort
SELECT DISTINCT col1 + + col1 * col2 + + 18 AS col2 FROM tab0 AS cor0
----
212
2942
7571

query I rowsort
SELECT DISTINCT col1 * col1 * col0 - 73 AS col2 FROM tab0 AS cor0
----
177431
329242
736936

query I rowsort
SELECT + ( 73 ) + col1 FROM tab1
----
83
86
99

query I rowsort
SELECT 9 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 03b93b53107e36cf7d524e48c509b17b

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2482
SELECT DISTINCT - CAST( col0 AS SIGNED ) + + col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-2482
SELECT DISTINCT - CAST ( col0 AS INTEGER ) + + col0 FROM tab2
----
0

query I rowsort
SELECT + tab1.col0 - - col0 AS col0 FROM tab1
----
128
160
6

query I rowsort
SELECT DISTINCT + + col2 * col0 AS col1 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT - - col0 * - cor0.col1 AS col0 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT 99 * col1 AS col1 FROM tab1
----
1287
2574
990

query I rowsort
SELECT - col1 + col1 * - col0 + 15 AS col2 FROM tab2 AS cor0
----
-1345
-233
-4646

query I rowsort
SELECT - - col2 + cor0.col1 * + cor0.col0 FROM tab2 AS cor0
----
1381
244
4628

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT CAST ( - 23 AS REAL ) col0 FROM tab1, tab2, tab2 AS cor0
----
27 values hashing to 9bd721f99d79dce21b1de2860fd51ed5

query I rowsort
SELECT ALL 84 + + ( col1 * 38 ) AS col1 FROM tab2
----
1262
2326
730

query I rowsort
SELECT ( col0 ) * - col2 AS col0 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT DISTINCT 1 * - col2 * - col2 FROM tab0
----
1
1089
6724

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2493
SELECT DISTINCT CAST( col2 AS SIGNED ) FROM tab1
----
54
57
96

skipif mysql # not compatible
query I rowsort label-2493
SELECT DISTINCT CAST ( col2 AS INTEGER ) FROM tab1
----
54
57
96

query I rowsort
SELECT ALL - col1 + + 50 AS col2 FROM tab0
----
-36
-41
-47

query I rowsort
SELECT DISTINCT - ( tab1.col0 ) * col0 AS col1 FROM tab1
----
-4096
-6400
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 17 col0 FROM tab2
----
17
17
17

query I rowsort
SELECT DISTINCT - col1 + - col1 - col1 AS col2 FROM tab0 AS cor0
----
-258
-273
-291

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2498
SELECT ALL 26 * col2 * CAST( col2 AS SIGNED ) + col2 AS col2 FROM tab0 AS cor0
----
174906
27
28347

skipif mysql # not compatible
query I rowsort label-2498
SELECT ALL 26 * col2 * CAST ( col2 AS INTEGER ) + col2 AS col2 FROM tab0 AS cor0
----
174906
27
28347

onlyif mysql # use DIV operator for integer division
query I rowsort label-2499
SELECT - + ( + col0 ) DIV ( col2 ) + - col2 FROM tab0 AS cor0
----
-33
-36
-83

skipif mysql # not compatible
query I rowsort label-2499
SELECT - + ( + col0 ) / ( col2 ) + - col2 FROM tab0 AS cor0
----
-33
-36
-83

query I rowsort
SELECT ALL 59 AS col2 FROM tab2 AS cor0
----
59
59
59

onlyif mysql # use DIV operator for integer division
query I rowsort label-2501
SELECT + cor0.col0 * - col1 + ( 91 ) DIV col0 FROM tab0 AS cor0
----
-2061
-3393
-8098

skipif mysql # not compatible
query I rowsort label-2501
SELECT + cor0.col0 * - col1 + ( 91 ) / col0 FROM tab0 AS cor0
----
-2061
-3393
-8098

query I rowsort
SELECT ALL - + col0 + + col2 FROM tab0 AS cor0
----
-34
-7
9

query I rowsort
SELECT DISTINCT + col1 - cor0.col0 FROM tab0 AS cor0
----
2
62

query I rowsort
SELECT DISTINCT - col2 * col0 + - ( cor0.col0 * col1 ) AS col0 FROM tab1 AS cor0
----
-240
-4288
-8720

query I rowsort
SELECT DISTINCT + - col0 + col2 - col0 AS col1 FROM tab2 AS cor0
----
-120
-130
13

query I rowsort
SELECT - col0 * - col0 + col2 + col2 * + 75 FROM tab1
----
13696
4113
8428

onlyif mysql # use DIV operator for integer division
query I rowsort label-2507
SELECT + col1 DIV 20 FROM tab0
----
4
4
4

skipif mysql # not compatible
query I rowsort label-2507
SELECT + col1 / 20 FROM tab0
----
4
4
4

query I rowsort
SELECT - 17 AS col2 FROM tab0, tab1 cor0
----
9 values hashing to 490d008f3fb5b70d3971cfc6d84503f4

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab1, tab1 AS cor1, tab2 AS cor2, tab1 AS cor3
----
3645 values hashing to 35707ade138fec4b370f5140a4cd2963

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab0 cor0, tab0, tab2 cor1
----
972 values hashing to 1e9d01970ae508486ddabec967bb176c

query I rowsort
SELECT + col0 * - ( col2 ) FROM tab2
----
-189
-2028
-3002

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2512
SELECT col0 + CAST( + col2 + col1 AS SIGNED ) col1 FROM tab1 cor0
----
131
189
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2512
SELECT col0 + CAST ( + col2 + col1 AS INTEGER ) col1 FROM tab1 cor0
----
131
189
83

query I rowsort
SELECT ALL col1 + ( ( col1 ) ) * col1 FROM tab2 AS cor0
----
306
3540
992

query I rowsort
SELECT col0 - - 97 * + 77 AS col2 FROM tab1 AS cor0
----
7472
7533
7549

query I rowsort
SELECT - cor0.col1 * col2 + col2 * + col0 * - 43 FROM tab2 cor0
----
-129732
-88738
-8964

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * col0 - col0 col0 FROM tab0 AS cor0
----
0
7209
768

query I rowsort
SELECT - cor0.col1 + - ( + 54 ) FROM tab2 AS cor0
----
-113
-71
-85

query I rowsort
SELECT ALL - col0 * 90 FROM tab1 AS cor0
----
-270
-5760
-7200

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2519
SELECT + col1 * + ( 29 ) - - col1 * CAST( NULL AS DECIMAL ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2519
SELECT + col1 * + ( 29 ) - - col1 * CAST ( NULL AS REAL ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col0 + col2 + - 89 AS col2 FROM tab0
----
-32
-53
82

query I rowsort
SELECT DISTINCT + ( - col1 ) * + col0 + col1 FROM tab2 cor0
----
-1326
-186
-4543

query I rowsort
SELECT - - 64 * + 95 + col2 FROM tab0 cor0
----
6081
6113
6162

query I rowsort
SELECT + 93 AS col2 FROM tab2 AS cor0
----
93
93
93

query I rowsort
SELECT DISTINCT - ( ( col0 ) ) * cor0.col1 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT - - 34 * - 8 AS col0 FROM tab0 cor0
----
-272
-272
-272

query I rowsort
SELECT DISTINCT + + 45 * col1 FROM tab2 AS cor0
----
1395
2655
765

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + col0 ) * + col1 col0 FROM tab0
----
2064
3395
8099

query I rowsort
SELECT ALL + 80 * - col0 - cor0.col2 FROM tab0 AS cor0
----
-1953
-2801
-7202

query I rowsort
SELECT DISTINCT + col0 * + 8 AS col1 FROM tab0 AS cor0
----
192
280
712

query I rowsort
SELECT + - col0 + - 67 * col0 + col1 FROM tab2 AS cor0
----
-445
-5245
-5355

query I rowsort
SELECT ALL cor0.col1 * - col1 AS col1 FROM tab2 AS cor0
----
-289
-3481
-961

query I rowsort
SELECT ALL - 91 * cor0.col1 FROM tab2 AS cor0
----
-1547
-2821
-5369

query I rowsort
SELECT - 6 * - col0 + col1 + 30 AS col1 FROM tab2 AS cor0
----
103
521
557

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2534
SELECT DISTINCT CAST( - col0 AS SIGNED ) * - col2 + + 41 FROM tab0 AS cor0
----
7339
76
833

skipif mysql # not compatible
query I rowsort label-2534
SELECT DISTINCT CAST ( - col0 AS INTEGER ) * - col2 + + 41 FROM tab0 AS cor0
----
7339
76
833

query I rowsort
SELECT ALL 44 * + col0 * + col0 AS col0 FROM tab2 AS cor0
----
2156
267696
274604

query I rowsort
SELECT ALL + + col1 + col2 + col0 FROM tab0 AS cor0
----
133
143
262

query I rowsort
SELECT ALL col1 * col1 AS col1 FROM tab0 cor0
----
7396
8281
9409

query I rowsort
SELECT DISTINCT - - col2 - - cor0.col2 * - col2 AS col1 FROM tab2 AS cor0
----
-1406
-650
-702

query I rowsort
SELECT + col2 - cor0.col2 AS col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT - + col0 * + col0 AS col1 FROM tab2 AS cor0
----
-49
-6084
-6241

query I rowsort
SELECT DISTINCT - col1 * ( - col0 ) FROM tab0
----
2064
3395
8099

query I rowsort
SELECT - col2 * 83 FROM tab2 AS cor0
----
-2158
-2241
-3154

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2543
SELECT + - col2 - + CAST( + col1 + + col2 AS SIGNED ) * + col0 FROM tab2 AS cor0
----
-433
-4383
-6656

skipif mysql # not compatible
query I rowsort label-2543
SELECT + - col2 - + CAST ( + col1 + + col2 AS INTEGER ) * + col0 FROM tab2 AS cor0
----
-433
-4383
-6656

query I rowsort
SELECT DISTINCT + + 10 AS col0 FROM tab0, tab0 AS cor0
----
10

query I rowsort
SELECT ALL col2 * 69 AS col0 FROM tab1 AS cor0
----
3726
3933
6624

query I rowsort
SELECT ALL col1 * 42 AS col1 FROM tab1
----
1092
420
546

query I rowsort
SELECT + cor0.col2 + col0 * col0 AS col1 FROM tab0 AS cor0
----
1226
609
8003

onlyif mysql # use DIV operator for integer division
query I rowsort label-2548
SELECT + ( cor0.col0 ) DIV + col0 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2548
SELECT + ( cor0.col0 ) / + col0 FROM tab1 AS cor0
----
1
1
1

query I rowsort
SELECT DISTINCT + + col0 * col2 + - cor0.col0 AS col0 FROM tab2 AS cor0
----
182
1950
2923

query I rowsort
SELECT - 68 + 46 AS col1 FROM tab0 AS cor0
----
-22
-22
-22

query I rowsort
SELECT 37 + + cor0.col0 FROM tab1 AS cor0
----
101
117
40

query I rowsort
SELECT + - col2 * col2 AS col0 FROM tab1 cor0
----
-2916
-3249
-9216

query I rowsort
SELECT + ( + col0 ) FROM tab1 cor0
----
3
64
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 10 col0 FROM tab1
----
-10
-10
-10

query I rowsort
SELECT DISTINCT col2 * - 95 AS col2 FROM tab2
----
-2470
-2565
-3610

query I rowsort
SELECT DISTINCT ( - tab0.col2 ) * - col0 AS col0 FROM tab0
----
35
7298
792

query I rowsort
SELECT col0 * tab1.col0 + - col0 AS col1 FROM tab1
----
4032
6
6320

query I rowsort
SELECT 4 - col1 AS col2 FROM tab2
----
-13
-27
-55

query I rowsort
SELECT + 33 * col2 * + ( col2 ) FROM tab0 AS cor0
----
221892
33
35937

query I rowsort
SELECT DISTINCT - + 55 + col0 * - 15 + + ( + col0 ) * col0 AS col0 FROM tab1 AS cor0
----
-91
3081
5145

query I rowsort
SELECT ALL + 24 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to aeeac431d22528188e8a5a2a60d2d080

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 11 col0 FROM tab2 cor0
----
11
11
11

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 36 + cor0.col0 * + col0 * col2 col1 FROM tab0 cor0
----
1189
18972
649486

query I rowsort
SELECT ALL + col1 + - col2 AS col1 FROM tab2 cor0
----
-21
33
4

onlyif mysql # use DIV operator for integer division
query I rowsort label-2565
SELECT DISTINCT - col0 * col1 - col2 DIV - col2 FROM tab0 AS cor0
----
-2063
-3394
-8098

skipif mysql # not compatible
query I rowsort label-2565
SELECT DISTINCT - col0 * col1 - col2 / - col2 FROM tab0 AS cor0
----
-2063
-3394
-8098

onlyif mysql # use DIV operator for integer division
query I rowsort label-2566
SELECT ALL + col1 DIV - tab0.col1 AS col1 FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2566
SELECT ALL + col1 / - tab0.col1 AS col1 FROM tab0
----
-1
-1
-1

query I rowsort
SELECT col0 + 63 * + col0 FROM tab0 AS cor0
----
1536
2240
5696

query I rowsort
SELECT DISTINCT + + cor0.col2 + col2 FROM tab1 AS cor0
----
108
114
192

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab0.col1 * + col0 * col0 col0 FROM tab0
----
118825
49536
720811

query I rowsort
SELECT ALL 52 FROM tab0
----
52
52
52

query I rowsort
SELECT ALL + col0 + + ( col2 ) + + 5 FROM tab2 AS cor0
----
109
122
39

query I rowsort
SELECT ALL + + col1 - 5 AS col2 FROM tab2 AS cor0
----
12
26
54

query I rowsort
SELECT + col2 * 98 + col2 AS col2 FROM tab0 AS cor0
----
3267
8118
99

query I rowsort
SELECT col2 * ( + 96 ) AS col0 FROM tab1
----
5184
5472
9216

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 42 * cor0.col2 + col2 col2 FROM tab2 cor0
----
1118
1161
1634

query I rowsort
SELECT - col1 + - ( - cor0.col0 ) * - col0 AS col2 FROM tab0 AS cor0
----
-1322
-662
-8012

query I rowsort
SELECT + + ( + 27 ) + - col2 AS col1 FROM tab2 AS cor0
----
-11
0
1

query I rowsort
SELECT + tab1.col2 + 42 AS col1 FROM tab1
----
138
96
99

query I rowsort
SELECT ALL 42 FROM tab0, tab2 AS cor0
----
9 values hashing to 64c29db9f1cd7ed4ddeb1735e3e0d442

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + col0 col2 FROM tab2
----
137
38
96

query I rowsort
SELECT ALL col1 + - 90 + + col1 AS col0 FROM tab1
----
-38
-64
-70

query I rowsort
SELECT ALL - cor0.col0 * + 6 FROM tab2 AS cor0
----
-42
-468
-474

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col0 * + ( - col2 ) col0 FROM tab1 AS cor0
----
-162
-3648
-7680

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col0 * col0 col2 FROM tab1 AS cor0
----
4096
6400
9

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2585
SELECT + cor0.col2 * CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2585
SELECT + cor0.col2 * CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-2586
SELECT col2 + + col2 DIV col1 FROM tab0 AS cor0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-2586
SELECT col2 + + col2 / col1 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT DISTINCT - ( 70 ) + + col2 AS col0 FROM tab2 cor0
----
-32
-43
-44

query I rowsort
SELECT ALL - + 85 AS col1 FROM tab0 AS cor0
----
-85
-85
-85

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2589
SELECT ( + col2 ) * col0 + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2589
SELECT ( + col2 ) * col0 + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + + col1 * + col2 AS col1 FROM tab0 cor0
----
2838
7462
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 83 * col0 col1 FROM tab2 cor0
----
-581
-6474
-6557

query I rowsort
SELECT DISTINCT + + ( 62 ) + + col0 FROM tab1 AS cor0
----
126
142
65

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2593
SELECT ALL - CAST( - cor0.col1 AS SIGNED ) + - col2 + cor0.col1 * + col1 AS col0 FROM tab2 AS cor0
----
268
3514
965

skipif mysql # not compatible
query I rowsort label-2593
SELECT ALL - CAST ( - cor0.col1 AS INTEGER ) + - col2 + cor0.col1 * + col1 AS col0 FROM tab2 AS cor0
----
268
3514
965

query I rowsort
SELECT + ( 37 ) AS col0 FROM tab1 AS cor0
----
37
37
37

query I rowsort
SELECT ALL col1 - col0 AS col1 FROM tab2 cor0
----
-19
-62
24

query I rowsort
SELECT DISTINCT + - ( - col2 ) * col1 AS col0 FROM tab0 AS cor0
----
2838
7462
97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2597
SELECT ALL CAST( col0 AS SIGNED ) + col1 FROM tab1 AS cor0
----
29
74
93

skipif mysql # not compatible
query I rowsort label-2597
SELECT ALL CAST ( col0 AS INTEGER ) + col1 FROM tab1 AS cor0
----
29
74
93

query I rowsort
SELECT DISTINCT 77 * + col0 + cor0.col2 * 34 FROM tab2 cor0
----
1457
6890
7375

onlyif mysql # use DIV operator for integer division
query I rowsort label-2599
SELECT - col0 DIV + cor0.col2 + col0 FROM tab1 AS cor0
----
3
63
80

skipif mysql # not compatible
query I rowsort label-2599
SELECT - col0 / + cor0.col2 + col0 FROM tab1 AS cor0
----
3
63
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 73 col0 FROM tab2 AS cor0
----
-73
-73
-73

query I rowsort
SELECT - 41 FROM tab0, tab2 cor0
----
9 values hashing to 4ba0c102091f9cbc9fe9439b04584e70

query I rowsort
SELECT + - 36 * + 33 AS col1 FROM tab2 AS cor0
----
-1188
-1188
-1188

query I rowsort
SELECT DISTINCT - 87 * + col1 FROM tab1 AS cor0
----
-1131
-2262
-870

query I rowsort
SELECT - - col0 * - 14 FROM tab0 AS cor0
----
-1246
-336
-490

query I rowsort
SELECT - - 47 * col0 * + col2 AS col0 FROM tab2 AS cor0
----
141094
8883
95316

query I rowsort
SELECT DISTINCT ( + col1 ) * + col0 FROM tab2 AS cor0
----
1343
217
4602

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 91 * ( - cor0.col2 ) col0 FROM tab1 cor0
----
-4914
-5187
-8736

query I rowsort
SELECT DISTINCT + cor0.col2 * col0 AS col1 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT + 81 * col0 + - col0 + 45 FROM tab1 AS cor0
----
285
5165
6445

onlyif mysql # use DIV operator for integer division
query I rowsort label-2610
SELECT + col0 * col2 + col2 - + col1 DIV + col0 FROM tab1 cor0
----
208
3705
7776

skipif mysql # not compatible
query I rowsort label-2610
SELECT + col0 * col2 + col2 - + col1 / + col0 FROM tab1 cor0
----
208
3705
7776

query I rowsort
SELECT ALL - 54 + col2 * - 56 FROM tab1 cor0
----
-3078
-3246
-5430

query I rowsort
SELECT 30 * - col2 AS col1 FROM tab0 AS cor0
----
-2460
-30
-990

query I rowsort
SELECT - ( col1 ) AS col2 FROM tab1 cor0
----
-10
-13
-26

query I rowsort
SELECT DISTINCT + 43 * - col1 FROM tab2 cor0
----
-1333
-2537
-731

query I rowsort
SELECT ALL + col2 + - cor0.col1 * cor0.col0 + 86 FROM tab0 AS cor0
----
-1945
-3308
-7931

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2616
SELECT + cor0.col1 * + col1 * + CAST( + 37 * - col0 AS SIGNED ) + + col1 FROM tab1 cor0
----
-236790
-500227
-75010

skipif mysql # not compatible
query I rowsort label-2616
SELECT + cor0.col1 * + col1 * + CAST ( + 37 * - col0 AS INTEGER ) + + col1 FROM tab1 cor0
----
-236790
-500227
-75010

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2617
SELECT ALL - 9 / + col0 + CAST( NULL AS SIGNED ) * cor0.col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2617
SELECT ALL - 9 / + col0 + CAST ( NULL AS INTEGER ) * cor0.col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2618
SELECT - + cor0.col0 * - col2 + - CAST( NULL AS DECIMAL ) FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2618
SELECT - + cor0.col0 * - col2 + - CAST ( NULL AS REAL ) FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col0 + col2 * cor0.col2 AS col0 FROM tab2 cor0
----
1365
598
722

query I rowsort
SELECT DISTINCT 52 * + col0 - + 80 FROM tab0 AS cor0
----
1168
1740
4548

query I rowsort
SELECT + - col1 + + 25 AS col0 FROM tab1 AS cor0
----
-1
12
15

query I rowsort
SELECT - col0 + - 19 * + cor0.col2 FROM tab0 AS cor0
----
-1647
-54
-651

query I rowsort
SELECT ALL - col2 * + col1 * - col2 AS col2 FROM tab2 AS cor0
----
22599
24548
39884

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col0 * + cor0.col2 col1 FROM tab2 AS cor0
----
189
2028
3002

onlyif mysql # use DIV operator for integer division
query I rowsort label-2625
SELECT - col2 DIV + tab1.col1 + col0 + col0 AS col2 FROM tab1
----
123
153
4

skipif mysql # not compatible
query I rowsort label-2625
SELECT - col2 / + tab1.col1 + col0 + col0 AS col2 FROM tab1
----
123
153
4

query I rowsort
SELECT ALL col2 * - col1 * - col0 + + 95 AS col1 FROM tab1
----
36575
4307
99935

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2627
SELECT DISTINCT + col1 * CAST( NULL AS SIGNED ) + + cor0.col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2627
SELECT DISTINCT + col1 * CAST ( NULL AS INTEGER ) + + cor0.col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT + col1 - col2 FROM tab2 cor0
----
-21
33
4

onlyif mysql # use DIV operator for integer division
query I rowsort label-2629
SELECT ALL + col0 DIV col2 + + cor0.col1 AS col2 FROM tab0 AS cor0
----
132
86
92

skipif mysql # not compatible
query I rowsort label-2629
SELECT ALL + col0 / col2 + + cor0.col1 AS col2 FROM tab0 AS cor0
----
132
86
92

query I rowsort
SELECT DISTINCT + + col2 + - col2 * cor0.col2 AS col1 FROM tab1 AS cor0
----
-2862
-3192
-9120

query I rowsort
SELECT - - col1 + - ( - col2 + col2 ) AS col1 FROM tab0 AS cor0
----
86
91
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * col0 + col2 col2 FROM tab1 AS cor0
----
-108
-3591
-7584

query I rowsort
SELECT + + col2 * + col1 - + col1 FROM tab2 AS cor0
----
1475
629
806

query I rowsort
SELECT ALL + col1 * - col0 + cor0.col1 * col2 FROM tab1 AS cor0
----
-70
1326
208

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2635
SELECT DISTINCT + col1 / + CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2635
SELECT DISTINCT + col1 / + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-2636
SELECT - cor0.col1 DIV + 79 AS col0 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2636
SELECT - cor0.col1 / + 79 AS col0 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort
SELECT col2 + CAST ( col0 AS REAL ) * + col2 FROM tab0 AS cor0
----
36
7380
825

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2638
SELECT ALL - + col0 + - CAST( - col1 AS SIGNED ) * col1 AS col2 FROM tab2 AS cor0
----
210
3403
954

skipif mysql # not compatible
query I rowsort label-2638
SELECT ALL - + col0 + - CAST ( - col1 AS INTEGER ) * col1 AS col2 FROM tab2 AS cor0
----
210
3403
954

onlyif mysql # use DIV operator for integer division
query I rowsort label-2639
SELECT col0 DIV col0 - + col1 FROM tab2
----
-16
-30
-58

skipif mysql # not compatible
query I rowsort label-2639
SELECT col0 / col0 - + col1 FROM tab2
----
-16
-30
-58

query I rowsort
SELECT ALL + col2 * - col0 * + 32 + col0 FROM tab0
----
-1085
-233447
-25320

onlyif mysql # use DIV operator for integer division
query I rowsort label-2641
SELECT - tab0.col2 * col0 DIV col2 AS col2 FROM tab0
----
-24
-35
-89

skipif mysql # not compatible
query I rowsort label-2641
SELECT - tab0.col2 * col0 / col2 AS col2 FROM tab0
----
-24
-35
-89

onlyif mysql # use DIV operator for integer division
query I rowsort label-2642
SELECT DISTINCT col2 DIV + col1 + col1 FROM tab1
----
15
20
28

skipif mysql # not compatible
query I rowsort label-2642
SELECT DISTINCT col2 / + col1 + col1 FROM tab1
----
15
20
28

query I rowsort
SELECT ALL + 99 + col1 FROM tab2
----
116
130
158

query I rowsort
SELECT + + col1 + col1 * + col2 FROM tab1 AS cor0
----
1261
1430
580

onlyif mysql # use DIV operator for integer division
query I rowsort label-2645
SELECT DISTINCT col2 - + col0 DIV - col0 FROM tab2
----
27
28
39

skipif mysql # not compatible
query I rowsort label-2645
SELECT DISTINCT col2 - + col0 / - col0 FROM tab2
----
27
28
39

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2646
SELECT + col1 + + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2646
SELECT + col1 + + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT tab1.col1 + - col2 + col0 FROM tab1
----
-25
-3
17

query I rowsort
SELECT DISTINCT 2 + + tab0.col2 AS col1 FROM tab0, tab1 AS cor0
----
3
35
84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + cor0.col0 col0 FROM tab0 cor0
----
178
48
70

query I rowsort
SELECT ALL + col2 + + 83 * + col0 * col0 AS col1 FROM tab0 cor0
----
101676
47841
657525

query I rowsort
SELECT - + 14 FROM tab2 AS cor0
----
-14
-14
-14

query I rowsort
SELECT DISTINCT + 86 * - col1 AS col2 FROM tab2 AS cor0
----
-1462
-2666
-5074

query I rowsort
SELECT 37 * + col2 + col1 FROM tab0 AS cor0
----
1307
134
3125

query I rowsort
SELECT ALL + col0 * + col0 * col1 AS col0 FROM tab2
----
106097
1519
358956

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + col0 * col2 ) + + 69 col0 FROM tab0
----
104
7367
861

query I rowsort
SELECT 33 * tab1.col0 * - 66 AS col2 FROM tab1
----
-139392
-174240
-6534

query I rowsort
SELECT ALL 21 * + col1 + - col1 AS col0 FROM tab0
----
1720
1820
1940

query I rowsort
SELECT ALL col2 * + tab2.col1 + - col0 FROM tab2
----
1456
567
830

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( + cor0.col2 ) + 0 col1 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT DISTINCT col1 + col1 + 95 AS col0 FROM tab0 AS cor0
----
267
277
289

query I rowsort
SELECT ALL + cor0.col0 * col0 + cor0.col0 AS col1 FROM tab2 AS cor0
----
56
6162
6320

query I rowsort
SELECT + ( col1 ) - + col0 FROM tab0 cor0
----
2
62
62

query I rowsort
SELECT + col2 * - col0 + 78 AS col1 FROM tab0 cor0
----
-714
-7220
43

query I rowsort
SELECT + ( - col2 + + col1 ) FROM tab1
----
-28
-47
-83

query I rowsort
SELECT ALL + col1 + - col0 * - 3 AS col2 FROM tab0 AS cor0
----
158
202
358

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 79 * col1 + col2 col0 FROM tab1
----
1123
2108
847

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2667
SELECT CAST( NULL AS DECIMAL ) FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-2667
SELECT CAST ( NULL AS REAL ) FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT + - 38 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to e571541ae40cb0ddaca16e11f4359507

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 64 col1 FROM tab0
----
64
64
64

query I rowsort
SELECT DISTINCT - col0 * - col0 + - col2 AS col2 FROM tab1
----
-45
4039
6304

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab1, tab0 cor1, tab0 AS cor2
----
972 values hashing to 8420206d6932c454f05a38de634b3cb5

query I rowsort
SELECT + col0 * col2 + col2 FROM tab0 AS cor0
----
36
7380
825

query I rowsort
SELECT - - ( + col2 ) + col1 AS col0 FROM tab1 AS cor0
----
109
67
80

query I rowsort
SELECT DISTINCT + col1 * - 97 AS col0 FROM tab2 AS cor0
----
-1649
-3007
-5723

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1, tab1 AS cor1, tab0 AS cor2, tab2 AS cor3
----
3645 values hashing to 773bb916e463ebc075d701108532badb

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 85 col2 FROM tab1
----
85
85
85

query I rowsort
SELECT + - 85 AS col2 FROM tab0 AS cor0
----
-85
-85
-85

query I rowsort
SELECT DISTINCT - 22 AS col0 FROM tab2
----
-22

query I rowsort
SELECT - - col2 * 97 FROM tab1 AS cor0
----
5238
5529
9312

query I rowsort
SELECT ALL + col0 + tab2.col0 AS col1 FROM tab2
----
14
156
158

query I rowsort
SELECT ( col0 ) * col0 + col2 * - col2 + col2 FROM tab2
----
-653
4835
5434

onlyif mysql # use DIV operator for integer division
query I rowsort label-2682
SELECT col2 DIV - col1 + - col2 * col2 * 13 + - col1 AS col2 FROM tab2 AS cor0
----
-18791
-8847
-9508

skipif mysql # not compatible
query I rowsort label-2682
SELECT col2 / - col1 + - col2 * col2 * 13 + - col1 AS col2 FROM tab2 AS cor0
----
-18791
-8847
-9508

query I rowsort
SELECT + col1 + + col2 + col2 AS col0 FROM tab0 AS cor0
----
152
255
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * col0 + col1 + col1 col1 FROM tab0 AS cor0
----
-620
-7116
159

onlyif mysql # use DIV operator for integer division
query I rowsort label-2685
SELECT + col1 + col1 + col1 DIV col0 FROM tab2 AS cor0
----
118
34
66

skipif mysql # not compatible
query I rowsort label-2685
SELECT + col1 + col1 + col1 / col0 FROM tab2 AS cor0
----
118
34
66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 74 col2 FROM tab1, tab1 cor0
----
9 values hashing to 2ccf8ef3f477e1a1a3e30c8b8154ff31

query I rowsort
SELECT - 52 - + col0 FROM tab0 AS cor0
----
-141
-76
-87

query I rowsort
SELECT ALL - 2 * 36 AS col1 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to b7689a8218ac9df1cca20d2ba5c53888

query I rowsort
SELECT DISTINCT - ( + col2 ) AS col2 FROM tab1
----
-54
-57
-96

query I rowsort
SELECT 34 + col0 + - col2 FROM tab0 AS cor0
----
25
41
68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col1 + col2 col0 FROM tab2 cor0
----
55
58
85

query I rowsort
SELECT DISTINCT + col2 + col2 * + ( - col2 ) AS col2 FROM tab0 AS cor0
----
-1056
-6642
0

query I rowsort
SELECT DISTINCT + cor1.col0 AS col1 FROM tab0, tab2 AS cor0, tab1 cor1
----
3
64
80

query I rowsort
SELECT DISTINCT + col0 - 74 FROM tab2
----
-67
4
5

query I rowsort
SELECT - col0 * col2 * + 70 AS col2 FROM tab2 AS cor0
----
-13230
-141960
-210140

query I rowsort
SELECT + 6 + 60 * col0 * col1 + col2 AS col1 FROM tab2 AS cor0
----
13053
276152
80624

onlyif mysql # use DIV operator for integer division
query I rowsort label-2697
SELECT + - col2 * col1 DIV col1 + + col1 + - col1 AS col2 FROM tab1 cor0
----
-54
-57
-96

skipif mysql # not compatible
query I rowsort label-2697
SELECT + - col2 * col1 / col1 + + col1 + - col1 AS col2 FROM tab1 cor0
----
-54
-57
-96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2698
SELECT DISTINCT + CAST( + 95 AS SIGNED ) col0 FROM tab2 cor0
----
95

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2698
SELECT DISTINCT + CAST ( + 95 AS INTEGER ) col0 FROM tab2 cor0
----
95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col2 * - col0 col2 FROM tab1 AS cor0
----
-162
-3648
-7680

onlyif mysql # use DIV operator for integer division
query I rowsort label-2700
SELECT - CAST( - ( + col2 ) AS SIGNED ) + col2 DIV 5 + col1 FROM tab2 AS cor0
----
62
63
90

skipif mysql # not compatible
query I rowsort label-2700
SELECT - CAST ( - ( + col2 ) AS INTEGER ) + col2 / 5 + col1 FROM tab2 AS cor0
----
62
63
90

query I rowsort
SELECT ALL + + ( cor0.col1 ) AS col2 FROM tab2 AS cor0
----
17
31
59

query I rowsort
SELECT DISTINCT - col2 + col1 * col1 FROM tab0 AS cor0
----
7363
8199
9408

onlyif mysql # use DIV operator for integer division
query I rowsort label-2703
SELECT DISTINCT + 88 + cor0.col0 DIV tab1.col1 AS col2 FROM tab1, tab0 AS cor0
----
88
89
90
91
94
96

skipif mysql # not compatible
query I rowsort label-2703
SELECT DISTINCT + 88 + cor0.col0 / tab1.col1 AS col2 FROM tab1, tab0 AS cor0
----
88
89
90
91
94
96

query I rowsort
SELECT + tab2.col2 + col0 AS col2 FROM tab2
----
104
117
34

query I rowsort
SELECT col0 * col1 * - col2 AS col1 FROM tab1
----
-36480
-4212
-99840

onlyif mysql # use DIV operator for integer division
query I rowsort label-2706
SELECT ALL col0 DIV - 70 col2 FROM tab2
----
-1
-1
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2706
SELECT ALL col0 / - 70 col2 FROM tab2
----
-1
-1
0

query I rowsort
SELECT - col0 * + col0 * + col0 FROM tab1
----
-262144
-27
-512000

query I rowsort
SELECT DISTINCT + ( + 93 ) FROM tab0, tab1 cor0
----
93

query I rowsort
SELECT ALL - tab1.col0 FROM tab2, tab2 AS cor0 CROSS JOIN tab1
----
27 values hashing to 729c1edda9332398299f39cd174ed840

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL >= col1 * col1
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-2711
SELECT ALL col2 + col2 DIV col2 FROM tab1
----
55
58
97

skipif mysql # not compatible
query I rowsort label-2711
SELECT ALL col2 + col2 / col2 FROM tab1
----
55
58
97

query I rowsort
SELECT DISTINCT + col2 + col0 * col2 AS col0 FROM tab1
----
216
3705
7776

query I rowsort
SELECT - col1 AS col0 FROM tab0 WHERE ( + col2 ) NOT BETWEEN NULL AND ( NULL )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-2714
SELECT col1 * col2 + + col2 DIV col1 col0 FROM tab2
----
1534
648
837

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2714
SELECT col1 * col2 + + col2 / col1 col0 FROM tab2
----
1534
648
837

query I rowsort
SELECT tab1.col1 * col1 * + col0 FROM tab1 WHERE NOT col1 BETWEEN col1 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - col0 <> NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-2717
SELECT col2 DIV + col0 col1 FROM tab2
----
0
0
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2717
SELECT col2 / + col0 col1 FROM tab2
----
0
0
3

query I rowsort
SELECT ALL col1 * - tab0.col2 FROM tab0
----
-2838
-7462
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col0 * col1 col2 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT ALL col1 + - cor0.col1 FROM tab1 cor0
----
0
0
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL NOT IN ( - col1 * cor0.col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * col0 + - col2 col0 FROM tab0
----
1224
543
7839

query I rowsort
SELECT - col2 * - col0 AS col1 FROM tab2 WHERE ( + col1 ) NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL - col0 * cor0.col1 * col1 FROM tab1 AS cor0
----
-13520
-2028
-6400

query I rowsort
SELECT ALL col1 * col1 * col2 AS col1 FROM tab2 AS cor0
----
10982
25947
90506

query I rowsort
SELECT - tab2.col0 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 3000337dd3f11e9cfd5a312b01ef3f8b

query I rowsort
SELECT - col1 + + col0 * + col0 AS col2 FROM tab0
----
1128
490
7830

query I rowsort
SELECT tab0.col2 * + col0 - - col1 FROM tab0
----
132
7389
878

onlyif mysql # use DIV operator for integer division
query I rowsort label-2729
SELECT col0 - col1 DIV tab0.col0 FROM tab0
----
21
33
88

skipif mysql # not compatible
query I rowsort label-2729
SELECT col0 - col1 / tab0.col0 FROM tab0
----
21
33
88

query I rowsort
SELECT + col2 + - col1 * + col2 AS col0 FROM tab1
----
-1152
-1350
-513

query I rowsort
SELECT DISTINCT col1 * - col0 * col0 AS col1 FROM tab2
----
-106097
-1519
-358956

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col0 - col1 col0 FROM tab1 cor0
----
-29
-74
-93

query I rowsort
SELECT col2 * col0 + cor0.col1 * + col0 FROM tab1 AS cor0
----
240
4288
8720

onlyif mysql # use DIV operator for integer division
query I rowsort label-2734
SELECT col1 + col0 + col2 DIV + col2 FROM tab0
----
111
133
181

skipif mysql # not compatible
query I rowsort label-2734
SELECT col1 + col0 + col2 / + col2 FROM tab0
----
111
133
181

onlyif mysql # use DIV operator for integer division
query I rowsort label-2735
SELECT ALL + + col2 DIV - cor0.col0 - col1 * col0 FROM tab1 AS cor0
----
-1041
-640
-96

skipif mysql # not compatible
query I rowsort label-2735
SELECT ALL + + col2 / - cor0.col0 - col1 * col0 FROM tab1 AS cor0
----
-1041
-640
-96

query I rowsort
SELECT ALL + col2 * - col1 * col1 FROM tab0 AS cor0
----
-244068
-679042
-9409

query I rowsort
SELECT ALL col1 + + col2 * col0 AS col0 FROM tab0 AS cor0
----
132
7389
878

query I rowsort
SELECT col1 + + col1 - - col2 FROM tab1 AS cor0
----
106
122
77

query I rowsort
SELECT DISTINCT col0 * + col1 + col2 FROM tab1 cor0
----
1136
132
697

query I rowsort
SELECT + - col2 - - col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - col1 * + col1 - - col2 FROM tab0 AS cor0
----
-7363
-8199
-9408

query I rowsort
SELECT ALL + col2 * col2 * - ( - col1 + + tab0.col1 ) AS col1 FROM tab0
----
0
0
0

query I rowsort
SELECT - 81 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to d0bfe8494f52235d9fcafb5ac5de3f81

query I rowsort
SELECT ALL - col0 * + tab0.col0 + + ( col2 ) FROM tab0
----
-1224
-543
-7839

query I rowsort
SELECT ALL col0 + col2 + col0 FROM tab2
----
182
196
41

query I rowsort
SELECT ALL + 94 * + col0 + 88 AS col0 FROM tab2 AS cor0
----
7420
746
7514

query I rowsort
SELECT - + 6 AS col0 FROM tab2 AS cor0
----
-6
-6
-6

query I rowsort
SELECT DISTINCT 5 * col2 AS col0 FROM tab0 AS cor0
----
165
410
5

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2, tab2 AS cor0, tab1 AS cor1, tab1, tab0 cor2
----
3645 values hashing to f99537dcc805430f79ac82ef70a4bd59

query I rowsort
SELECT - 51 * col1 FROM tab0 AS cor0
----
-4386
-4641
-4947

query I rowsort
SELECT DISTINCT - + ( + col0 ) AS col1 FROM tab2 AS cor0
----
-7
-78
-79

query I rowsort
SELECT + col2 + - ( col0 ) * col2 FROM tab0 cor0
----
-34
-7216
-759

query I rowsort
SELECT DISTINCT col1 * - 44 - + col0 AS col0 FROM tab2 cor0
----
-1371
-2674
-827

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + - col0 col0 FROM tab0 cor0
----
-178
-48
-70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + col0 * col1 col1 FROM tab0 cor0
----
2150
3492
8190

onlyif mysql # use DIV operator for integer division
query I rowsort label-2756
SELECT DISTINCT col1 DIV col1 + ( - 93 ) + + col1 * col2 AS col2 FROM tab1
----
1156
1312
478

skipif mysql # not compatible
query I rowsort label-2756
SELECT DISTINCT col1 / col1 + ( - 93 ) + + col1 * col2 AS col2 FROM tab1
----
1156
1312
478

query I rowsort
SELECT ( + col0 ) * + 90 FROM tab0
----
2160
3150
8010

onlyif mysql # use DIV operator for integer division
query I rowsort label-2758
SELECT + col1 * 9 - + col1 DIV col1 FROM tab0 AS cor0
----
773
818
872

skipif mysql # not compatible
query I rowsort label-2758
SELECT + col1 * 9 - + col1 / col1 FROM tab0 AS cor0
----
773
818
872

query I rowsort
SELECT + col2 * + ( col0 ) AS col1 FROM tab0 AS cor0
----
35
7298
792

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-2761
SELECT - col1 * - CAST( col1 AS SIGNED ) + col2 FROM tab0 AS cor0
----
7429
8363
9410

skipif mysql # not compatible
query I rowsort label-2761
SELECT - col1 * - CAST ( col1 AS INTEGER ) + col2 FROM tab0 AS cor0
----
7429
8363
9410

query I rowsort
SELECT ALL - tab2.col1 * + col1 - - tab2.col0 FROM tab2
----
-210
-3403
-954

query III rowsort
SELECT * FROM tab0 WHERE NOT ( - col0 * col1 ) NOT IN ( col0 / col2 - tab0.col0 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-2764
SELECT col1 + col0 DIV + col1 FROM tab0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-2764
SELECT col1 + col0 / + col1 FROM tab0
----
86
91
97

query III rowsort
SELECT * FROM tab2 WHERE NOT ( col2 ) IN ( - col0 )
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45

query I rowsort
SELECT col2 + + tab1.col0 FROM tab1 WHERE NULL NOT BETWEEN + col1 AND - col2 * - col2 + col2
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-2767
SELECT - col2 * col1 * col2 + col0 - + tab0.col0 DIV + col0 FROM tab0
----
-611796
-63
-93631

skipif mysql # not compatible
query I rowsort label-2767
SELECT - col2 * col1 * col2 + col0 - + tab0.col0 / + col0 FROM tab0
----
-611796
-63
-93631

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * + col1 col0 FROM tab0
----
2838
7462
97

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL <= ( col2 * col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + col2 col1 FROM tab2
----
189
2028
3002

onlyif mysql # use DIV operator for integer division
query I rowsort label-2771
SELECT col1 + col0 DIV col1 FROM tab1
----
16
19
26

skipif mysql # not compatible
query I rowsort label-2771
SELECT col1 + col0 / col1 FROM tab1
----
16
19
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 - - tab0.col2 col2 FROM tab0 WHERE NOT NULL <= col1 / col2
----

query I rowsort
SELECT ALL + col1 * + col0 + col2 * col2 FROM tab2
----
2787
5278
946

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL < col0
----

query I rowsort
SELECT DISTINCT col2 - + col2 AS col0 FROM tab1
----
0

query I rowsort
SELECT DISTINCT + col1 AS col1 FROM tab0 WHERE NOT ( NULL ) >= NULL
----

query I rowsort
SELECT ALL + col2 - col2 * - col0 FROM tab0
----
36
7380
825

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab0.col1 * + col2 col2 FROM tab0
----
-2838
-7462
-97

query I rowsort
SELECT ALL + col0 * col2 * col1 + + col1 FROM tab2
----
119711
51051
5890

query I rowsort
SELECT col2 - col2 * col0 FROM tab1
----
-108
-3591
-7584

onlyif mysql # use DIV operator for integer division
query I rowsort label-2781
SELECT + - cor0.col2 + 84 DIV col2 FROM tab1 AS cor0
----
-53
-56
-96

skipif mysql # not compatible
query I rowsort label-2781
SELECT + - cor0.col2 + 84 / col2 FROM tab1 AS cor0
----
-53
-56
-96

query I rowsort
SELECT + + col2 * 17 * ( + col0 ) AS col0 FROM tab1 AS cor0
----
130560
2754
62016

onlyif mysql # use DIV operator for integer division
query I rowsort label-2783
SELECT - col2 DIV col0 col1 FROM tab0 AS cor0
----
-1
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2783
SELECT - col2 / col0 col1 FROM tab0 AS cor0
----
-1
0
0

query I rowsort
SELECT + col0 * col2 + - col2 * + col2 FROM tab0 AS cor0
----
-297
34
574

query I rowsort
SELECT ALL + col2 * + col1 + ( col2 ) * - col1 AS col0 FROM tab0
----
0
0
0

query I rowsort
SELECT - cor0.col2 + - col0 * col0 FROM tab2 cor0
----
-6110
-6279
-76

query I rowsort
SELECT col1 * cor0.col1 + - cor0.col0 FROM tab0 cor0
----
7372
8192
9374

query I rowsort
SELECT - col1 + 22 AS col2 FROM tab1 AS cor0
----
-4
12
9

query I rowsort
SELECT + + col2 * col1 + col2 * cor0.col0 AS col2 FROM tab2 cor0
----
1026
3562
3648

query I rowsort
SELECT col2 + col1 * col1 * col2 FROM tab2 AS cor0
----
11020
25974
90532

onlyif mysql # use DIV operator for integer division
query I rowsort label-2791
SELECT ALL col1 DIV + 88 AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2791
SELECT ALL col1 / + 88 AS col2 FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT 2 FROM tab0, tab1 cor0
----
2

query I rowsort
SELECT - + ( + col2 ) AS col2 FROM tab2 cor0
----
-26
-27
-38

query I rowsort
SELECT col1 * col0 * col2 AS col2 FROM tab0
----
3395
664118
68112

query I rowsort
SELECT + 42 AS col1 FROM tab0
----
42
42
42

query I rowsort
SELECT + 44 + col0 * col1 AS col1 FROM tab0
----
2108
3439
8143

query I rowsort
SELECT - - ( + col0 ) + col2 * + col1 AS col1 FROM tab2 AS cor0
----
1612
725
844

query I rowsort
SELECT - - 97 AS col1 FROM tab0 AS cor0
----
97
97
97

query I rowsort
SELECT DISTINCT 45 + - 35 AS col1 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
10

query I rowsort
SELECT cor0.col2 + + cor0.col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 5484e660e65aa37f29a1eca3fc30f5cc

query I rowsort
SELECT + - col0 * - ( - col0 ) + - col1 AS col2 FROM tab2 AS cor0
----
-6143
-6258
-80

query I rowsort
SELECT ALL + col0 + col1 * + col0 FROM tab0 AS cor0
----
2088
3430
8188

query I rowsort
SELECT col2 * + 39 + 55 FROM tab0 AS cor0
----
1342
3253
94

query I rowsort
SELECT DISTINCT + - cor0.col1 * 99 AS col2 FROM tab2 AS cor0
----
-1683
-3069
-5841

query I rowsort
SELECT DISTINCT - cor0.col1 + col1 AS col0 FROM tab1 AS cor0
----
0

query I rowsort
SELECT ALL 13 * col2 + col0 - 60 FROM tab2
----
298
356
513

query I rowsort
SELECT DISTINCT - ( col0 ) * tab2.col1 AS col0 FROM tab2
----
-1343
-217
-4602

query I rowsort
SELECT ALL col1 + 45 FROM tab0
----
131
136
142

query I rowsort
SELECT ALL col1 + - 31 FROM tab1
----
-18
-21
-5

query I rowsort
SELECT + col2 + - ( - 33 ) AS col2 FROM tab0 cor0
----
115
34
66

query I rowsort
SELECT ALL + col2 * + 22 + - col1 FROM tab0
----
-75
1713
640

onlyif mysql # use DIV operator for integer division
query I rowsort label-2812
SELECT DISTINCT + col2 * 48 DIV - 46 AS col0 FROM tab1 cor0
----
-100
-56
-59

skipif mysql # not compatible
query I rowsort label-2812
SELECT DISTINCT + col2 * 48 / - 46 AS col0 FROM tab1 cor0
----
-100
-56
-59

query I rowsort
SELECT DISTINCT - + col2 * + 0 FROM tab0 AS cor0
----
0

query I rowsort
SELECT - 70 FROM tab2, tab0 AS cor0
----
9 values hashing to 35707a5d99c98b2657c084a50ff1b073

query I rowsort
SELECT + - col1 * col1 - 17 FROM tab1 AS cor0
----
-117
-186
-693

query I rowsort
SELECT ALL + 94 * col1 FROM tab1
----
1222
2444
940

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 44 col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 07457d9e571e036a9a3a0f5a5a2e1ef2

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2818
SELECT ALL - CAST( - 74 AS SIGNED ) FROM tab2
----
74
74
74

skipif mysql # not compatible
query I rowsort label-2818
SELECT ALL - CAST ( - 74 AS INTEGER ) FROM tab2
----
74
74
74

query I rowsort
SELECT ALL + ( + 48 ) * - tab2.col0 AS col1 FROM tab2
----
-336
-3744
-3792

query I rowsort
SELECT 8 AS col2 FROM tab0, tab0 cor0
----
9 values hashing to ffc5b4c98b57ae546521175995c49c57

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2821
SELECT + CAST( + col0 AS SIGNED ) * - col1 FROM tab0 cor0
----
-2064
-3395
-8099

skipif mysql # not compatible
query I rowsort label-2821
SELECT + CAST ( + col0 AS INTEGER ) * - col1 FROM tab0 cor0
----
-2064
-3395
-8099

query I rowsort
SELECT DISTINCT - col2 * - col1 * - col2 FROM tab0
----
-611884
-93654
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-2823
SELECT - col0 DIV 57 FROM tab1 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-2823
SELECT - col0 / 57 FROM tab1 AS cor0
----
-1
-1
0

query I rowsort
SELECT + 91 * col1 FROM tab1 AS cor0
----
1183
2366
910

query I rowsort
SELECT + 50 * col0 AS col0 FROM tab2 AS cor0
----
350
3900
3950

query I rowsort
SELECT ALL - + 87 AS col0 FROM tab2 cor0
----
-87
-87
-87

query I rowsort
SELECT ALL 57 * - 32 * col1 FROM tab2
----
-107616
-31008
-56544

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2828
SELECT + - ( + col0 ) * CAST( col2 AS SIGNED ) FROM tab2 AS cor0
----
-189
-2028
-3002

skipif mysql # not compatible
query I rowsort label-2828
SELECT + - ( + col0 ) * CAST ( col2 AS INTEGER ) FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT ALL + + ( col2 ) * 63 FROM tab2 AS cor0
----
1638
1701
2394

query I rowsort
SELECT ALL + 18 * col1 * + 74 FROM tab2 cor0
----
22644
41292
78588

query I rowsort
SELECT - ( - col0 ) + 77 * 12 AS col1 FROM tab2 AS cor0
----
1002
1003
931

query I rowsort
SELECT DISTINCT - 67 AS col0 FROM tab0 AS cor0
----
-67

query I rowsort
SELECT ALL + + ( + col1 ) AS col2 FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT ALL + - cor0.col1 + ( - col2 * 1 ) FROM tab1 AS cor0
----
-109
-67
-80

query I rowsort
SELECT - + 29 * 51 - col2 AS col0 FROM tab1 AS cor0
----
-1533
-1536
-1575

query I rowsort
SELECT DISTINCT 5 AS col0 FROM tab1 AS cor0
----
5

query I rowsort
SELECT + - 51 + col2 - + col0 * col2 AS col0 FROM tab2 AS cor0
----
-2053
-213
-3015

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2838
SELECT - - CAST( NULL AS DECIMAL ) AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2838
SELECT - - CAST ( NULL AS REAL ) AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT cor1.col2 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475

query I rowsort
SELECT 67 + - col0 * + col2 AS col2 FROM tab2
----
-122
-1961
-2935

query I rowsort
SELECT cor0.col0 + + col0 - - 46 AS col1 FROM tab1 AS cor0
----
174
206
52

query I rowsort
SELECT - 11 FROM tab2, tab2 cor0
----
9 values hashing to 05cc989122d7724c7abefaba9625ef3d

query I rowsort
SELECT ALL + 82 + col1 AS col2 FROM tab1
----
108
92
95

query I rowsort
SELECT ALL 79 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 40a2261caa2c5cdbfd80965d7df1231f

query I rowsort
SELECT ALL 92 * 26 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to 917d0fed4f509c38f9e504a67d48c47d

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2846
SELECT ALL + col2 + col0 * col2 * CAST( ( + col1 ) AS SIGNED ) FROM tab1 AS cor0
----
36537
4266
99936

skipif mysql # not compatible
query I rowsort label-2846
SELECT ALL + col2 + col0 * col2 * CAST ( ( + col1 ) AS INTEGER ) FROM tab1 AS cor0
----
36537
4266
99936

query IIIIIIIIIIII rowsort
SELECT * FROM tab1, tab2, tab1 AS cor0, tab0 cor1
----
972 values hashing to 9b91cf9fcc064ee1c13074a678b72ac7

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2848
SELECT ALL - cor0.col2 * CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2848
SELECT ALL - cor0.col2 * CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col0 + - ( + 97 ) FROM tab0 cor0
----
-121
-132
-186

query I rowsort
SELECT DISTINCT + col2 + 28 * 4 AS col1 FROM tab1 cor0
----
166
169
208

query I rowsort
SELECT DISTINCT + ( - 70 ) AS col2 FROM tab1, tab0 AS cor0, tab2 cor1
----
-70

query I rowsort
SELECT cor0.col1 AS col2 FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to 7599b480125de521efed71b5b2413c7d

query I rowsort
SELECT DISTINCT - cor0.col2 * col2 + + col1 AS col2 FROM tab0 AS cor0
----
-1003
-6633
96

query I rowsort
SELECT ALL - - col2 + 12 FROM tab1 AS cor0
----
108
66
69

query I rowsort
SELECT ALL + + col2 * - 72 AS col0 FROM tab1 AS cor0
----
-3888
-4104
-6912

query I rowsort
SELECT DISTINCT + col1 + - 26 * col1 FROM tab0 AS cor0
----
-2150
-2275
-2425

query I rowsort
SELECT - col2 * 34 + - 33 AS col2 FROM tab1 AS cor0
----
-1869
-1971
-3297

onlyif mysql # use DIV operator for integer division
query I rowsort label-2858
SELECT ALL - cor0.col2 DIV - col0 col2 FROM tab0 AS cor0
----
0
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2858
SELECT ALL - cor0.col2 / - col0 col2 FROM tab0 AS cor0
----
0
0
1

query I rowsort
SELECT 69 FROM tab1, tab2, tab1 AS cor0
----
27 values hashing to 2810c3097fe4771e273cfff903357b40

query I rowsort
SELECT 25 * - col1 FROM tab2
----
-1475
-425
-775

query I rowsort
SELECT ALL col2 + col0 * col0 FROM tab0 AS cor0
----
1226
609
8003

query I rowsort
SELECT - - col0 + col0 * col2 AS col0 FROM tab0 cor0
----
70
7387
816

query I rowsort
SELECT DISTINCT + - col2 - + col0 FROM tab1 cor0
----
-121
-176
-57

query I rowsort
SELECT - col1 + 7 FROM tab0 AS cor0
----
-79
-84
-90

query I rowsort
SELECT ALL col2 + - 33 * cor0.col2 FROM tab0 AS cor0
----
-1056
-2624
-32

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + - 31 col2 FROM tab2 AS cor0
----
-57
-58
-69

onlyif mysql # use DIV operator for integer division
query I rowsort label-2867
SELECT ALL + col2 + + col1 DIV 26 FROM tab2 AS cor0
----
28
28
38

skipif mysql # not compatible
query I rowsort label-2867
SELECT ALL + col2 + + col1 / 26 FROM tab2 AS cor0
----
28
28
38

query I rowsort
SELECT col1 + - ( - col1 ) FROM tab1 AS cor0
----
20
26
52

query I rowsort
SELECT col0 + ( + col0 ) AS col0 FROM tab0
----
178
48
70

query I rowsort
SELECT + - ( + col2 ) * col0 AS col2 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT col2 + + 90 * col2 AS col0 FROM tab2
----
2366
2457
3458

query I rowsort
SELECT DISTINCT - 88 AS col0 FROM tab2, tab1 AS cor0
----
-88

onlyif mysql # use DIV operator for integer division
query I rowsort label-2873
SELECT DISTINCT - col0 + + col0 * - col0 DIV - col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2873
SELECT DISTINCT - col0 + + col0 * - col0 / - col0 FROM tab0 AS cor0
----
0

query I rowsort
SELECT DISTINCT - 91 FROM tab1, tab1 AS cor0
----
-91

onlyif mysql # use DIV operator for integer division
query I rowsort label-2875
SELECT + col2 + CAST( 20 AS SIGNED ) DIV + col0 FROM tab2
----
26
29
38

skipif mysql # not compatible
query I rowsort label-2875
SELECT + col2 + CAST ( 20 AS INTEGER ) / + col0 FROM tab2
----
26
29
38

query I rowsort
SELECT ( 49 ) AS col2 FROM tab0 cor0
----
49
49
49

query I rowsort
SELECT DISTINCT + + col0 + - col1 + - col0 FROM tab2 AS cor0
----
-17
-31
-59

onlyif mysql # use DIV operator for integer division
query I rowsort label-2878
SELECT DISTINCT + 58 * 52 + cor0.col0 DIV - ( col1 * col1 ) + col0 AS col1 FROM tab0 AS cor0
----
3040
3051
3105

skipif mysql # not compatible
query I rowsort label-2878
SELECT DISTINCT + 58 * 52 + cor0.col0 / - ( col1 * col1 ) + col0 AS col1 FROM tab0 AS cor0
----
3040
3051
3105

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * col1 col0 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT - + col2 + 16 AS col1 FROM tab0 AS cor0
----
-17
-66
15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + cor0.col1 ) col2 FROM tab1 AS cor0
----
10
13
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 21 col2 FROM tab2 AS cor0
----
21
21
21

query I rowsort
SELECT ALL + - col1 * - ( col0 * + 45 ) + + col0 - col1 * ( col1 ) AS col0 FROM tab0 AS cor0
----
143401
356263
85508

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2884
SELECT DISTINCT - - CAST( NULL AS DECIMAL ) + - 19 * - col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2884
SELECT DISTINCT - - CAST ( NULL AS REAL ) + - 19 * - col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT 64 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to c8b19f4c3ff38700cd2bb8a077bf29b9

query I rowsort
SELECT DISTINCT - + 94 + cor0.col0 AS col1 FROM tab1 cor0
----
-14
-30
-91

query I rowsort
SELECT ALL - cor0.col2 * - col1 FROM tab2 cor0
----
1534
646
837

query I rowsort
SELECT DISTINCT - 62 * - col0 + + ( - col2 ) FROM tab2 AS cor0
----
407
4810
4860

onlyif mysql # use DIV operator for integer division
query I rowsort label-2889
SELECT + + cor0.col2 DIV + cor0.col2 + col2 FROM tab0 AS cor0
----
2
34
83

skipif mysql # not compatible
query I rowsort label-2889
SELECT + + cor0.col2 / + cor0.col2 + col2 FROM tab0 AS cor0
----
2
34
83

query I rowsort
SELECT ALL + - 4 + col1 AS col1 FROM tab0 AS cor0
----
82
87
93

query I rowsort
SELECT DISTINCT + 84 * + cor0.col1 + - 31 * col1 FROM tab1 cor0
----
1378
530
689

query I rowsort
SELECT ALL - - col2 + - col1 AS col1 FROM tab1 AS cor0
----
28
47
83

onlyif mysql # use DIV operator for integer division
query I rowsort label-2893
SELECT 13 DIV col0 col1 FROM tab0 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2893
SELECT 13 / col0 col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - 52 * cor0.col1 FROM tab2 AS cor0
----
-1612
-3068
-884

query I rowsort
SELECT - col2 * col1 + + col1 AS col1 FROM tab2 AS cor0
----
-1475
-629
-806

query I rowsort
SELECT - col0 * col2 + col0 AS col0 FROM tab0 cor0
----
-7209
-768
0

query I rowsort
SELECT ALL + + col0 + + 29 * col2 FROM tab0 AS cor0
----
2467
64
981

query I rowsort
SELECT DISTINCT tab2.col2 - 56 AS col2 FROM tab2, tab2 cor0
----
-18
-29
-30

query I rowsort
SELECT - cor0.col1 * 30 + + 79 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to c7e32264fd263d5bfd6a4ce78e390800

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2900
SELECT CAST( - 72 AS SIGNED ) * + col1 AS col1 FROM tab1
----
-1872
-720
-936

skipif mysql # not compatible
query I rowsort label-2900
SELECT CAST ( - 72 AS INTEGER ) * + col1 AS col1 FROM tab1
----
-1872
-720
-936

query I rowsort
SELECT + ( 40 * - col0 ) FROM tab0
----
-1400
-3560
-960

query I rowsort
SELECT - 22 FROM tab1, tab2 AS cor0
----
9 values hashing to fae46f8148b02964f7145eb6ed5819f9

onlyif mysql # use DIV operator for integer division
query I rowsort label-2903
SELECT + col1 + + cor0.col2 DIV cor0.col1 FROM tab0 AS cor0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-2903
SELECT + col1 + + cor0.col2 / cor0.col1 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT ALL 39 FROM tab1, tab2 AS cor0
----
9 values hashing to 5ecc4d3de68ae828a2d522dff8571cbf

query I rowsort
SELECT - ( - 48 ) * col2 AS col0 FROM tab0
----
1584
3936
48

query I rowsort
SELECT DISTINCT cor1.col0 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
7
78
79

query I rowsort
SELECT - - cor0.col2 * + col2 + col2 AS col0 FROM tab0 AS cor0
----
1122
2
6806

query I rowsort
SELECT DISTINCT 30 * - col0 FROM tab0 cor0
----
-1050
-2670
-720

query I rowsort
SELECT + - col1 * col1 + col1 AS col1 FROM tab1 AS cor0
----
-156
-650
-90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * - col1 col2 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT + 34 - + col1 FROM tab1 AS cor0
----
21
24
8

query I rowsort
SELECT + + col1 * ( + 74 ) AS col1 FROM tab0 AS cor0
----
6364
6734
7178

query I rowsort
SELECT col2 * 3 FROM tab0 AS cor0
----
246
3
99

query I rowsort
SELECT - cor0.col2 * 29 FROM tab1 AS cor0
----
-1566
-1653
-2784

query I rowsort
SELECT cor0.col2 * + col0 * - col1 FROM tab1 AS cor0
----
-36480
-4212
-99840

query I rowsort
SELECT + cor0.col1 * 78 * col1 FROM tab2 AS cor0
----
22542
271518
74958

query I rowsort
SELECT + col2 + - col0 * - col2 AS col0 FROM tab2 AS cor0
----
2054
216
3040

onlyif mysql # use DIV operator for integer division
query I rowsort label-2918
SELECT + + cor0.col0 DIV - cor0.col1 AS col2 FROM tab1 AS cor0
----
-6
-6
0

skipif mysql # not compatible
query I rowsort label-2918
SELECT + + cor0.col0 / - cor0.col1 AS col2 FROM tab1 AS cor0
----
-6
-6
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2919
SELECT - + CAST( - col2 AS SIGNED ) * cor0.col2 * 91 FROM tab1 AS cor0
----
265356
295659
838656

skipif mysql # not compatible
query I rowsort label-2919
SELECT - + CAST ( - col2 AS INTEGER ) * cor0.col2 * 91 FROM tab1 AS cor0
----
265356
295659
838656

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2920
SELECT ALL - ( - col2 ) + cor0.col0 * + CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2920
SELECT ALL - ( - col2 ) + cor0.col0 * + CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + + ( col2 ) * - col0 AS col0 FROM tab0 AS cor0
----
-35
-7298
-792

onlyif mysql # use DIV operator for integer division
query I rowsort label-2922
SELECT - 4 DIV col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2922
SELECT - 4 / col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT tab0.col0 * + col0 AS col2 FROM tab0
----
1225
576
7921

query I rowsort
SELECT - 11 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 05cc989122d7724c7abefaba9625ef3d

onlyif mysql # use DIV operator for integer division
query I rowsort label-2925
SELECT DISTINCT + 36 DIV 49 AS col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2925
SELECT DISTINCT + 36 / 49 AS col2 FROM tab0 AS cor0
----
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2926
SELECT ALL - CAST( NULL AS SIGNED ) + 32 * cor0.col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2926
SELECT ALL - CAST ( NULL AS INTEGER ) + 32 * cor0.col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT cor0.col0 + 59 * + col1 AS col0 FROM tab2 AS cor0
----
1082
1836
3559

query I rowsort
SELECT ALL - ( + col0 ) + col1 FROM tab2 AS cor0
----
-19
-62
24

query I rowsort
SELECT ALL 96 AS col1 FROM tab2 AS cor0
----
96
96
96

query I rowsort
SELECT DISTINCT col2 * 77 AS col0 FROM tab1 cor0
----
4158
4389
7392

query I rowsort
SELECT ALL + + ( - cor0.col1 ) AS col2 FROM tab0 AS cor0
----
-86
-91
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * - col2 * col0 col2 FROM tab0 AS cor0
----
-1225
-19008
-649522

query I rowsort
SELECT + ( + ( col2 ) ) FROM tab0 cor0
----
1
33
82

query I rowsort
SELECT DISTINCT col2 + + 6 * col1 * 65 + 44 * col2 FROM tab0 AS cor0
----
35025
37875
39180

query I rowsort
SELECT 75 * + col0 FROM tab2 AS cor0
----
525
5850
5925

query I rowsort
SELECT - 85 FROM tab2, tab2 AS cor0
----
9 values hashing to 8ebc8ffafb1517ea04e3a6fc4059d88a

query I rowsort
SELECT ALL col0 * col0 * col2 + ( + 65 ) * + col2 AS col2 FROM tab2 AS cor0
----
159874
239628
3078

onlyif mysql # use DIV operator for integer division
query I rowsort label-2938
SELECT DISTINCT - + col2 DIV - 40 AS col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2938
SELECT DISTINCT - + col2 / - 40 AS col2 FROM tab2 AS cor0
----
0

query I rowsort
SELECT + 8 * - col1 FROM tab1 AS cor0
----
-104
-208
-80

onlyif mysql # use DIV operator for integer division
query I rowsort label-2940
SELECT + + 57 DIV + 75 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2940
SELECT + + 57 / + 75 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2941
SELECT DISTINCT - - CAST( 51 AS SIGNED ) * cor0.col1 + - cor0.col2 col2 FROM tab0 AS cor0
----
4353
4559
4946

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2941
SELECT DISTINCT - - CAST ( 51 AS INTEGER ) * cor0.col1 + - cor0.col2 col2 FROM tab0 AS cor0
----
4353
4559
4946

query I rowsort
SELECT DISTINCT col2 + + col2 * col0 AS col2 FROM tab2 AS cor0
----
2054
216
3040

query I rowsort
SELECT ( + 80 ) AS col0 FROM tab1 AS cor0
----
80
80
80

query I rowsort
SELECT - + col2 * col0 AS col0 FROM tab2 cor0
----
-189
-2028
-3002

onlyif mysql # use DIV operator for integer division
query I rowsort label-2945
SELECT + col1 DIV + col1 + col0 DIV 52 FROM tab2 AS cor0
----
1
2
2

skipif mysql # not compatible
query I rowsort label-2945
SELECT + col1 / + col1 + col0 / 52 FROM tab2 AS cor0
----
1
2
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 * col0 + 16 + cor0.col2 * col1 * col0 col0 FROM tab2 AS cor0
----
125752
57291
5924

skipif mysql # not compatible
query I rowsort
SELECT - CAST ( - 36 AS REAL ) + col0 * + col0 FROM tab1
----
4132
45
6436

query I rowsort
SELECT ALL + ( + 65 + col2 ) * 27 AS col0 FROM tab2
----
2457
2484
2781

query I rowsort
SELECT ALL - col1 * col2 + 99 + + col1 FROM tab1 AS cor0
----
-1136
-1279
-461

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2950
SELECT ALL + - col2 * CAST( + ( col2 ) AS SIGNED ) + + 41 + + col1 FROM tab0 AS cor0
----
-6592
-962
137

skipif mysql # not compatible
query I rowsort label-2950
SELECT ALL + - col2 * CAST ( + ( col2 ) AS INTEGER ) + + 41 + + col1 FROM tab0 AS cor0
----
-6592
-962
137

query I rowsort
SELECT ALL 51 AS col1 FROM tab1
----
51
51
51

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2952
SELECT ALL + col1 * col2 * col2 + + col1 * + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2952
SELECT ALL + col1 * col2 * col2 + + col1 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ( cor0.col2 ) + cor0.col0 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 8733ba2dd568938e338b27ad757d3e3b

query I rowsort
SELECT DISTINCT 72 + col1 AS col2 FROM tab2
----
103
131
89

query I rowsort
SELECT ALL - + 74 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 5a567947d14593676e3825756f8e6130

query I rowsort
SELECT ALL + col0 * + col1 AS col1 FROM tab0
----
2064
3395
8099

onlyif mysql # use DIV operator for integer division
query I rowsort label-2957
SELECT ALL + col1 * col2 DIV col0 FROM tab1
----
15
468
8

skipif mysql # not compatible
query I rowsort label-2957
SELECT ALL + col1 * col2 / col0 FROM tab1
----
15
468
8

query I rowsort
SELECT col0 + - col0 * col1 * - tab2.col1 AS col2 FROM tab2
----
22910
271596
6734

query I rowsort
SELECT - - cor0.col0 * col2 AS col0 FROM tab0 AS cor0
----
35
7298
792

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2960
SELECT DISTINCT - + col2 * col2 * CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2960
SELECT DISTINCT - + col2 * col2 * CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL

query I rowsort
SELECT DISTINCT 56 AS col0 FROM tab1 AS cor0
----
56

query I rowsort
SELECT 35 * + col0 AS col1 FROM tab0 AS cor0
----
1225
3115
840

query I rowsort
SELECT DISTINCT 47 * col1 FROM tab1 AS cor0
----
1222
470
611

query I rowsort
SELECT + ( - col2 ) * col2 FROM tab1 AS cor0
----
-2916
-3249
-9216

query I rowsort
SELECT DISTINCT - col0 + + 56 * col1 - - col2 AS col0 FROM tab2 AS cor0
----
1756
3252
911

query I rowsort
SELECT DISTINCT - col1 + + col2 + - ( + col1 ) AS col2 FROM tab1 AS cor0
----
2
37
70

query I rowsort
SELECT DISTINCT - col2 - - ( col1 ) AS col2 FROM tab1 cor0
----
-28
-47
-83

query I rowsort
SELECT DISTINCT - + cor0.col1 * + cor0.col1 AS col1 FROM tab1 AS cor0
----
-100
-169
-676

query I rowsort
SELECT - - col1 - col0 * + col2 AS col1 FROM tab0 AS cor0
----
-706
-7207
62

query I rowsort
SELECT ALL + 95 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 14faa6dda52e3dfe1f5db2579c274a7e

query I rowsort
SELECT DISTINCT + 38 * - 97 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-3686

query I rowsort
SELECT 71 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 95a6ff35b7b8f00868fb58bcaa32d0c2

query I rowsort
SELECT + - col0 + + 50 FROM tab1 AS cor0
----
-14
-30
47

query I rowsort
SELECT - 0 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query I rowsort
SELECT ALL + col0 * + col0 * col1 AS col1 FROM tab1 cor0
----
234
40960
83200

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( - 33 ) * + col0 col1 FROM tab0 cor0
----
1155
2937
792

query I rowsort
SELECT - 18 * col2 FROM tab0 AS cor0
----
-1476
-18
-594

query I rowsort
SELECT ALL + col2 * 59 + + col0 AS col1 FROM tab1 cor0
----
3189
3427
5744

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * + col2 col0 FROM tab0 cor0
----
-2838
-7462
-97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2980
SELECT DISTINCT CAST( NULL AS SIGNED ) + + 71 * col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2980
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + 71 * col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL - ( - col2 ) + + col1 + + col0 AS col1 FROM tab0
----
133
143
262

query I rowsort
SELECT - 54 + - col2 FROM tab2 AS cor0
----
-80
-81
-92

query I rowsort
SELECT ALL col0 * col2 + 47 * 69 FROM tab0 AS cor0
----
10541
3278
4035

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * + cor0.col0 - + col2 col1 FROM tab0 AS cor0
----
-2097
-3396
-8181

query I rowsort
SELECT 1 + col1 FROM tab0 AS cor0
----
87
92
98

query I rowsort
SELECT DISTINCT + - col0 + - col0 * col2 FROM tab1 AS cor0
----
-165
-3712
-7760

query I rowsort
SELECT ALL + ( ( - col0 ) ) * + ( col2 + col2 ) AS col1 FROM tab1
----
-15360
-324
-7296

query I rowsort
SELECT ALL ( - 36 ) + col2 AS col1 FROM tab2
----
-10
-9
2

query I rowsort
SELECT ALL + col2 * + col0 + col1 + + tab0.col1 * col1 AS col0 FROM tab0
----
15670
8274
9541

query I rowsort
SELECT ALL - col2 * col0 * + tab1.col1 FROM tab1
----
-36480
-4212
-99840

query I rowsort
SELECT - + col1 + + col1 AS col1 FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT - 89 + col1 * + col2 * - col0 FROM tab0 AS cor0
----
-3484
-664207
-68201

query I rowsort
SELECT - col2 + col2 * + col0 AS col2 FROM tab2 AS cor0
----
162
2002
2964

query IIIIIIIIIIII rowsort
SELECT * FROM tab1, tab2 cor0, tab0, tab2 cor1
----
972 values hashing to 42e69ecdafb3c81046bc5cb4c98b1666

query I rowsort
SELECT ( - 16 * col0 + tab2.col0 ) FROM tab2
----
-105
-1170
-1185

query I rowsort
SELECT ( col0 ) * + 82 FROM tab1 AS cor0
----
246
5248
6560

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 10 * - col1 col1 FROM tab2
----
-170
-310
-590

query I rowsort
SELECT - 8 + + cor0.col0 FROM tab2, tab1, tab1 cor0
----
27 values hashing to bbc45023b19510a0a324441fed15e084

query I rowsort
SELECT DISTINCT tab1.col1 AS col2 FROM tab1, tab1 cor0
----
10
13
26

query I rowsort
SELECT DISTINCT - col0 * col1 * tab1.col1 FROM tab1
----
-13520
-2028
-6400

query I rowsort
SELECT + tab2.col1 AS col1 FROM tab2, tab0 AS cor0, tab0 cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d

query I rowsort
SELECT + 95 AS col2 FROM tab2
----
95
95
95

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3003
SELECT + cor0.col0 * CAST( NULL AS SIGNED ) + 55 FROM tab1, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-3003
SELECT + cor0.col0 * CAST ( NULL AS INTEGER ) + 55 FROM tab1, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3004
SELECT DISTINCT 65 * tab0.col1 + CAST( ( + tab0.col0 ) AS SIGNED ) FROM tab0, tab2, tab2 AS cor0
----
5614
6004
6340

skipif mysql # not compatible
query I rowsort label-3004
SELECT DISTINCT 65 * tab0.col1 + CAST ( ( + tab0.col0 ) AS INTEGER ) FROM tab0, tab2, tab2 AS cor0
----
5614
6004
6340

query I rowsort
SELECT col2 + 8 AS col1 FROM tab2
----
34
35
46

query I rowsort
SELECT + col1 * - 54 + col1 FROM tab1
----
-1378
-530
-689

query I rowsort
SELECT - col1 + + col1 * + col2 AS col0 FROM tab0 AS cor0
----
0
2752
7371

query I rowsort
SELECT - ( + 17 ) * col2 FROM tab2 AS cor0
----
-442
-459
-646

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + col0 * - col0 col0 FROM tab0 AS cor0
----
-1190
-552
-7832

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 2 + 19 col1 FROM tab2 AS cor0
----
21
21
21

query I rowsort
SELECT - col0 + + col0 - col1 * - col2 AS col0 FROM tab2
----
1534
646
837

query I rowsort
SELECT col2 + col1 + - col1 FROM tab1
----
54
57
96

query I rowsort
SELECT ALL col1 + col2 * - 78 FROM tab1
----
-4186
-4436
-7475

query I rowsort
SELECT - tab0.col1 * 91 AS col2 FROM tab0
----
-7826
-8281
-8827

query I rowsort
SELECT ALL col1 * + ( + tab1.col2 * col2 ) FROM tab1
----
119808
32490
75816

query I rowsort
SELECT DISTINCT - col1 * - col0 + + col2 AS col0 FROM tab0
----
2097
3396
8181

query I rowsort
SELECT + col0 + + 24 FROM tab1 AS cor0
----
104
27
88

query I rowsort
SELECT 69 + - 39 FROM tab1 AS cor0
----
30
30
30

query I rowsort
SELECT DISTINCT - ( cor0.col2 ) + col0 * + cor0.col1 FROM tab2 AS cor0
----
1305
190
4576

query I rowsort
SELECT - cor1.col2 AS col0 FROM tab2, tab0 cor0 CROSS JOIN tab1, tab2 AS cor1
----
81 values hashing to c569638e8a09ff819458d62ddbde994c

query I rowsort
SELECT ( col0 ) * col1 AS col2 FROM tab0
----
2064
3395
8099

query I rowsort
SELECT - 67 + 24 FROM tab1 AS cor0
----
-43
-43
-43

query I rowsort
SELECT - + 16 * + cor0.col1 - col2 AS col1 FROM tab0 AS cor0
----
-1409
-1538
-1553

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3024
SELECT DISTINCT CAST( col2 AS SIGNED ) * - col1 + - ( - 88 ) AS col2 FROM tab1 AS cor0
----
-1160
-1316
-482

skipif mysql # not compatible
query I rowsort label-3024
SELECT DISTINCT CAST ( col2 AS INTEGER ) * - col1 + - ( - 88 ) AS col2 FROM tab1 AS cor0
----
-1160
-1316
-482

query I rowsort
SELECT DISTINCT + cor0.col0 + 23 * col1 * 78 FROM tab2 AS cor0
----
105924
30577
55621

query I rowsort
SELECT DISTINCT - - ( 25 ) + col2 * 50 FROM tab1 AS cor0
----
2725
2875
4825

query I rowsort
SELECT ALL - col1 * ( cor0.col0 + + col0 ) * col2 AS col1 FROM tab2 AS cor0
----
-102068
-11718
-239304

query I rowsort
SELECT ALL + - ( - 93 ) - + cor0.col0 AS col0 FROM tab1 cor0
----
13
29
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 83 col2 FROM tab1 AS cor0
----
-83

query I rowsort
SELECT DISTINCT - - col0 + - cor0.col0 * col1 AS col2 FROM tab1 AS cor0
----
-576
-75
-960

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3031
SELECT ALL + ( col0 + + CAST( NULL AS SIGNED ) ) AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3031
SELECT ALL + ( col0 + + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col2 * ( cor0.col2 ) FROM tab0 AS cor0
----
1
1089
6724

query I rowsort
SELECT ALL - + col1 + + col1 AS col0 FROM tab2 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * - ( - col1 ) + col1 + col0 col0 FROM tab1 cor0
----
174
262
705

onlyif mysql # use DIV operator for integer division
query I rowsort label-3035
SELECT ALL + col1 * col0 DIV ( col2 ) FROM tab0
----
3395
62
98

skipif mysql # not compatible
query I rowsort label-3035
SELECT ALL + col1 * col0 / ( col2 ) FROM tab0
----
3395
62
98

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3036
SELECT - col1 * + CAST( col2 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-1534
-646
-837

skipif mysql # not compatible
query I rowsort label-3036
SELECT - col1 * + CAST ( col2 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-1534
-646
-837

onlyif mysql # use DIV operator for integer division
query I rowsort label-3037
SELECT + col2 * - 76 * + 48 + - cor0.col1 DIV col0 FROM tab1 AS cor0
----
-197000
-207936
-350208

skipif mysql # not compatible
query I rowsort label-3037
SELECT + col2 * - 76 * + 48 + - cor0.col1 / col0 FROM tab1 AS cor0
----
-197000
-207936
-350208

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + col1 col0 FROM tab1 AS cor0
----
20
26
52

query I rowsort
SELECT + + 11 + col1 AS col2 FROM tab0 AS cor0
----
102
108
97

query I rowsort
SELECT 10 + + cor0.col1 + col1 FROM tab0 AS cor0
----
182
192
204

query I rowsort
SELECT cor0.col0 * + col2 + col1 + col1 FROM tab0 AS cor0
----
229
7480
964

query I rowsort
SELECT - - col0 * + col1 + col2 AS col2 FROM tab2 AS cor0
----
1381
244
4628

query I rowsort
SELECT ALL + ( - ( + cor0.col1 ) ) FROM tab2 AS cor0
----
-17
-31
-59

query I rowsort
SELECT DISTINCT + - 26 * col2 FROM tab2 AS cor0
----
-676
-702
-988

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col0 col2 FROM tab1 cor0
----
3
64
80

query I rowsort
SELECT - col1 * 37 FROM tab0 AS cor0
----
-3182
-3367
-3589

query I rowsort
SELECT 63 * col2 - + col0 FROM tab1
----
3399
3527
5968

query I rowsort
SELECT - col0 + col1 * 55 * cor0.col1 AS col2 FROM tab1 AS cor0
----
37177
5436
9215

query I rowsort
SELECT DISTINCT + 19 AS col1 FROM tab1, tab1 AS cor0
----
19

query I rowsort
SELECT DISTINCT + 46 * - tab1.col1 * - col1 AS col0 FROM tab1
----
31096
4600
7774

query I rowsort
SELECT + + col1 + + col1 * cor0.col0 * cor0.col1 FROM tab1 AS cor0
----
13533
2054
6410

query I rowsort
SELECT ALL + - ( + col1 ) AS col0 FROM tab1 cor0
----
-10
-13
-26

query I rowsort
SELECT ALL - + col0 * col1 * - col2 + col1 AS col0 FROM tab0 cor0
----
3492
664209
68198

query I rowsort
SELECT cor0.col2 + - col0 AS col1 FROM tab2 AS cor0
----
-41
-52
20

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 50 + col2 col1 FROM tab2 AS cor0
----
76
77
88

query I rowsort
SELECT + + col1 * + col0 + + col0 FROM tab1 AS cor0
----
1120
704
81

onlyif mysql # use DIV operator for integer division
query I rowsort label-3057
SELECT + 26 * + cor0.col0 DIV col0 AS col1 FROM tab2 AS cor0
----
26
26
26

skipif mysql # not compatible
query I rowsort label-3057
SELECT + 26 * + cor0.col0 / col0 AS col1 FROM tab2 AS cor0
----
26
26
26

query I rowsort
SELECT + ( col0 ) * - cor0.col2 FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT ALL + - 25 FROM tab1 cor0
----
-25
-25
-25

onlyif mysql # use DIV operator for integer division
query I rowsort label-3060
SELECT + 0 DIV + col0 AS col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3060
SELECT + 0 / + col0 AS col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - col0 + + col0 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT DISTINCT cor0.col2 + - col0 * col0 FROM tab0 AS cor0
----
-1224
-543
-7839

query I rowsort
SELECT ALL - - cor0.col2 * col1 - col2 AS col1 FROM tab0 AS cor0
----
2805
7380
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-3064
SELECT DISTINCT - col1 * + cor0.col1 - + col1 DIV + col0 AS col2 FROM tab0 AS cor0
----
-7399
-8282
-9411

skipif mysql # not compatible
query I rowsort label-3064
SELECT DISTINCT - col1 * + cor0.col1 - + col1 / + col0 AS col2 FROM tab0 AS cor0
----
-7399
-8282
-9411

onlyif mysql # use DIV operator for integer division
query I rowsort label-3065
SELECT col0 * col2 - col0 DIV - col1 FROM tab2
----
189
2029
3006

skipif mysql # not compatible
query I rowsort label-3065
SELECT col0 * col2 - col0 / - col1 FROM tab2
----
189
2029
3006

query I rowsort
SELECT - 45 AS col2 FROM tab2
----
-45
-45
-45

onlyif mysql # use DIV operator for integer division
query I rowsort label-3067
SELECT + ( - col1 ) DIV col1 FROM tab2 cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-3067
SELECT + ( - col1 ) / col1 FROM tab2 cor0
----
-1
-1
-1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3068
SELECT ALL CAST( NULL AS SIGNED ) * col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3068
SELECT ALL CAST ( NULL AS INTEGER ) * col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-3069
SELECT - col1 * + col0 DIV col0 AS col0 FROM tab2 AS cor0
----
-17
-31
-59

skipif mysql # not compatible
query I rowsort label-3069
SELECT - col1 * + col0 / col0 AS col0 FROM tab2 AS cor0
----
-17
-31
-59

onlyif mysql # use DIV operator for integer division
query I rowsort label-3070
SELECT - col1 DIV + col1 AS col2 FROM tab1 cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-3070
SELECT - col1 / + col1 AS col2 FROM tab1 cor0
----
-1
-1
-1

query I rowsort
SELECT cor1.col0 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 87 + col1 * + col1 col0 FROM tab2 cor0
----
1048
3568
376

onlyif mysql # use DIV operator for integer division
query I rowsort label-3073
SELECT - + col2 + + col2 DIV col2 AS col1 FROM tab1 AS cor0
----
-53
-56
-95

skipif mysql # not compatible
query I rowsort label-3073
SELECT - + col2 + + col2 / col2 AS col1 FROM tab1 AS cor0
----
-53
-56
-95

query I rowsort
SELECT DISTINCT + col2 * col0 + + col1 FROM tab1 cor0
----
188
3658
7693

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3075
SELECT DISTINCT CAST( NULL AS SIGNED ) / - col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3075
SELECT DISTINCT CAST ( NULL AS INTEGER ) / - col2 FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT 43 * - col0 AS col2 FROM tab0
----
-1032
-1505
-3827

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3077
SELECT - CAST( - 1 AS SIGNED ) * col0 col0 FROM tab0
----
24
35
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3077
SELECT - CAST ( - 1 AS INTEGER ) * col0 col0 FROM tab0
----
24
35
89

query I rowsort
SELECT - ( + 68 ) AS col0 FROM tab2
----
-68
-68
-68

query I rowsort
SELECT DISTINCT + - col2 * col2 * + col0 AS col2 FROM tab2 AS cor0
----
-114076
-5103
-52728

query I rowsort
SELECT ( col0 ) * - col2 FROM tab1
----
-162
-3648
-7680

query I rowsort
SELECT + 42 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 64c29db9f1cd7ed4ddeb1735e3e0d442

query I rowsort
SELECT ALL + 24 + ( - col2 ) * tab2.col1 AS col2 FROM tab2
----
-1510
-622
-813

query I rowsort
SELECT DISTINCT + col1 * + ( col1 ) + + tab0.col1 + + col2 FROM tab0
----
7515
8454
9507

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 21 col2 FROM tab0, tab2 cor0
----
9 values hashing to c5272facdaaa11f884c8cc0d9d4f41c7

query I rowsort
SELECT + - 99 * 86 FROM tab1 AS cor0
----
-8514
-8514
-8514

query I rowsort
SELECT DISTINCT + col2 * - cor0.col0 FROM tab0 cor0
----
-35
-7298
-792

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3087
SELECT ALL + cor0.col1 * + CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3087
SELECT ALL + cor0.col1 * + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col0 + - cor0.col0 * 90 AS col1 FROM tab1 AS cor0
----
-267
-5696
-7120

query I rowsort
SELECT DISTINCT + - col1 * 73 AS col0 FROM tab0 AS cor0
----
-6278
-6643
-7081

query I rowsort
SELECT + col0 + + 34 * + col0 FROM tab1
----
105
2240
2800

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 36 col1 FROM tab2, tab1 AS cor0, tab0 cor1, tab2 AS cor2
----
81 values hashing to aea3eb70e9270b660d4c81f39b11409b

query I rowsort
SELECT DISTINCT + + col0 * + col1 + + col0 AS col2 FROM tab1 AS cor0
----
1120
704
81

query I rowsort
SELECT ALL - + 81 + col0 FROM tab0 AS cor0
----
-46
-57
8

query I rowsort
SELECT DISTINCT 84 * + 28 - + cor0.col2 FROM tab0 AS cor0
----
2270
2319
2351

query I rowsort
SELECT - + 45 * - col1 FROM tab1 AS cor0
----
1170
450
585

query I rowsort
SELECT DISTINCT cor1.col2 AS col0 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
26
27
38

query I rowsort
SELECT DISTINCT - col2 - 40 * cor0.col1 FROM tab0 AS cor0
----
-3473
-3722
-3881

query I rowsort
SELECT ALL ( col2 ) * 67 + 35 AS col0 FROM tab2
----
1777
1844
2581

query I rowsort
SELECT ALL - tab2.col0 AS col0 FROM tab2, tab0 cor0
----
9 values hashing to 3000337dd3f11e9cfd5a312b01ef3f8b

query I rowsort
SELECT tab0.col2 + col2 * col2 + 9 AS col0 FROM tab0
----
11
1131
6815

onlyif mysql # use DIV operator for integer division
query I rowsort label-3101
SELECT - col1 + - col1 * 36 DIV + col0 AS col0 FROM tab0 AS cor0
----
-127
-196
-215

skipif mysql # not compatible
query I rowsort label-3101
SELECT - col1 + - col1 * 36 / + col0 AS col0 FROM tab0 AS cor0
----
-127
-196
-215

query I rowsort
SELECT DISTINCT + 51 + col1 AS col1 FROM tab1 AS cor0
----
61
64
77

query I rowsort
SELECT DISTINCT + - 66 * col0 AS col1 FROM tab0 cor0
----
-1584
-2310
-5874

onlyif mysql # use DIV operator for integer division
query I rowsort label-3104
SELECT - 51 - col1 * CAST( + col0 + - col2 AS SIGNED ) DIV + col2 FROM tab0 AS cor0
----
-28
-3349
-58

skipif mysql # not compatible
query I rowsort label-3104
SELECT - 51 - col1 * CAST ( + col0 + - col2 AS INTEGER ) / + col2 FROM tab0 AS cor0
----
-28
-3349
-58

query I rowsort
SELECT DISTINCT - + 26 FROM tab0 AS cor0
----
-26

query I rowsort
SELECT DISTINCT + col0 + - col0 * col1 FROM tab1 cor0
----
-576
-75
-960

query I rowsort
SELECT + - col0 + - ( + 90 ) * col1 FROM tab0 cor0
----
-7764
-8279
-8765

query I rowsort
SELECT + - cor0.col0 * col0 + - col1 AS col2 FROM tab2 AS cor0
----
-6143
-6258
-80

query I rowsort
SELECT ALL cor0.col0 * + col2 + - 5 - - cor0.col1 FROM tab0 AS cor0
----
127
7384
873

query I rowsort
SELECT ALL cor0.col2 + - col1 AS col1 FROM tab1 AS cor0
----
28
47
83

query I rowsort
SELECT DISTINCT - cor0.col0 + 33 - + 2 AS col2 FROM tab1 AS cor0
----
-33
-49
28

query I rowsort
SELECT col2 + + 71 FROM tab0 cor0
----
104
153
72

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3113
SELECT ALL col2 * - CAST( + col2 AS SIGNED ) - + cor0.col0 FROM tab0 AS cor0
----
-1113
-36
-6813

skipif mysql # not compatible
query I rowsort label-3113
SELECT ALL col2 * - CAST ( + col2 AS INTEGER ) - + cor0.col0 FROM tab0 AS cor0
----
-1113
-36
-6813

query I rowsort
SELECT + cor0.col2 + col1 * + col2 * - col2 AS col2 FROM tab2 AS cor0
----
-22572
-24510
-39858

query I rowsort
SELECT DISTINCT + col1 * 65 + - 68 AS col1 FROM tab0 AS cor0
----
5522
5847
6237

query I rowsort
SELECT DISTINCT + ( col0 ) * + ( col2 ) + + col2 + - col0 FROM tab2
----
1976
209
2961

query I rowsort
SELECT DISTINCT col0 * col1 + ( - 22 ) * - col2 FROM tab2
----
2179
5174
811

query I rowsort
SELECT DISTINCT + 39 FROM tab0, tab1, tab2 AS cor0
----
39

query I rowsort
SELECT DISTINCT - col1 + - col0 * 99 + - tab0.col2 AS col1 FROM tab0
----
-2495
-3563
-8984

query I rowsort
SELECT + col2 - + tab0.col1 AS col0 FROM tab0
----
-53
-9
-96

query I rowsort
SELECT + 30 - col2 FROM tab1
----
-24
-27
-66

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab2, tab2 cor0, tab1 AS cor1
----
972 values hashing to 980274175fafec015a83080672486a9a

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3123
SELECT + + col0 + + CAST( + col0 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
128
160
6

skipif mysql # not compatible
query I rowsort label-3123
SELECT + + col0 + + CAST ( + col0 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
128
160
6

query I rowsort
SELECT - cor0.col1 * col0 + + col1 + cor0.col2 FROM tab0 AS cor0
----
-1945
-3297
-7926

query I rowsort
SELECT - 89 + - col1 FROM tab0
----
-175
-180
-186

query I rowsort
SELECT 94 * col2 FROM tab0
----
3102
7708
94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col1 + + 30 col0 FROM tab2 AS cor0
----
47
61
89

query I rowsort
SELECT tab2.col0 * - col0 AS col0 FROM tab2
----
-49
-6084
-6241

onlyif mysql # use DIV operator for integer division
query I rowsort label-3129
SELECT DISTINCT - col0 + - 43 DIV 24 col1 FROM tab2 AS cor0
----
-79
-8
-80

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3129
SELECT DISTINCT - col0 + - 43 / 24 col1 FROM tab2 AS cor0
----
-79
-8
-80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3130
SELECT - col1 * cor0.col0 * - col1 + cor0.col0 * - CAST( NULL AS SIGNED ) - - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3130
SELECT - col1 * cor0.col0 * - col1 + cor0.col0 * - CAST ( NULL AS INTEGER ) - - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 * + 35 col0 FROM tab1 AS cor0
----
-1890
-1995
-3360

query I rowsort
SELECT - col0 * col2 * 45 AS col2 FROM tab0 AS cor0
----
-1575
-328410
-35640

query I rowsort
SELECT + - cor0.col2 * col1 * + cor0.col2 + + 21 * 77 AS col0 FROM tab0 AS cor0
----
-610267
-92037
1520

onlyif mysql # use DIV operator for integer division
query I rowsort label-3134
SELECT - + col0 DIV col1 + col0 AS col2 FROM tab2 AS cor0
----
7
75
77

skipif mysql # not compatible
query I rowsort label-3134
SELECT - + col0 / col1 + col0 AS col2 FROM tab2 AS cor0
----
7
75
77

query I rowsort
SELECT col1 * - 83 + col1 AS col1 FROM tab1
----
-1066
-2132
-820

query I rowsort
SELECT - + 14 * col0 + + cor0.col1 AS col2 FROM tab0 cor0
----
-1155
-250
-393

query I rowsort
SELECT + ( col2 ) * col1 FROM tab0 cor0
----
2838
7462
97

query I rowsort
SELECT ( col2 ) * - col2 AS col2 FROM tab2 AS cor0
----
-1444
-676
-729

onlyif mysql # use DIV operator for integer division
query I rowsort label-3139
SELECT DISTINCT tab1.col1 DIV - tab1.col2 AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-3139
SELECT DISTINCT tab1.col1 / - tab1.col2 AS col2 FROM tab1
----
0

query I rowsort
SELECT + 5 FROM tab2, tab1 AS cor0, tab0 cor1
----
27 values hashing to 6797d40099023779b89feb627d94a3e7

query I rowsort
SELECT ALL + col0 + + col2 * col2 AS col1 FROM tab2
----
1523
736
754

query I rowsort
SELECT ALL + tab2.col2 * 86 FROM tab2
----
2236
2322
3268

query I rowsort
SELECT - 19 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 339c9d62143bf2f7566b89a1b56eeeb4

query I rowsort
SELECT + 75 * col2 FROM tab1 AS cor0
----
4050
4275
7200

query I rowsort
SELECT - col2 * + col2 + col0 FROM tab1 AS cor0
----
-2913
-3185
-9136

query I rowsort
SELECT DISTINCT - - col2 + + cor0.col1 * col2 FROM tab2 AS cor0
----
1560
684
864

query I rowsort
SELECT col2 + + col1 * cor0.col1 AS col2 FROM tab2 AS cor0
----
327
3507
988

query I rowsort
SELECT DISTINCT - - ( + col1 ) * + 84 AS col2 FROM tab1 AS cor0
----
1092
2184
840

query I rowsort
SELECT + ( col2 * col2 ) FROM tab2
----
1444
676
729

query I rowsort
SELECT DISTINCT + 27 AS col2 FROM tab2, tab2 AS cor0
----
27

query I rowsort
SELECT ALL + col2 + - col1 + - col2 * - col2 AS col1 FROM tab0
----
-95
1036
6715

query I rowsort
SELECT DISTINCT - 16 + - col1 * - col2 * - ( col0 ) FROM tab0 cor0
----
-3411
-664134
-68128

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 88 + + col1 * - col0 col1 FROM tab2 cor0
----
-1255
-129
-4514

query I rowsort
SELECT + col1 + col1 * - col2 AS col1 FROM tab1 AS cor0
----
-1235
-1378
-560

query I rowsort
SELECT DISTINCT + cor0.col1 * col0 + - 13 FROM tab2 AS cor0
----
1330
204
4589

query I rowsort
SELECT ALL - 23 - - col0 FROM tab1 AS cor0
----
-20
41
57

onlyif mysql # use DIV operator for integer division
query I rowsort label-3157
SELECT - ( - col2 ) DIV - 61 AS col2 FROM tab1
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-3157
SELECT - ( - col2 ) / - 61 AS col2 FROM tab1
----
-1
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-3158
SELECT + 27 DIV col0 AS col2 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-3158
SELECT + 27 / col0 AS col2 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort
SELECT ( col0 ) * - CAST ( col0 AS REAL ) - col2 AS col2 FROM tab1
----
-4153
-63
-6496

query I rowsort
SELECT DISTINCT col2 * tab2.col0 AS col0 FROM tab2
----
189
2028
3002

query I rowsort
SELECT ALL + 5 + col0 * - col2 FROM tab0 cor0
----
-30
-7293
-787

query I rowsort
SELECT DISTINCT - 8 * + col1 AS col1 FROM tab2 AS cor0
----
-136
-248
-472

query I rowsort
SELECT 95 FROM tab0, tab1 AS cor0, tab2, tab1 cor1
----
81 values hashing to 9896fbc7c98abe84cb585e6f5f25b58a

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3164
SELECT DISTINCT + cor0.col0 + + col2 * CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3164
SELECT DISTINCT + cor0.col0 + + col2 * CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-3165
SELECT DISTINCT - 4 DIV col0 AS col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3165
SELECT DISTINCT - 4 / col0 AS col0 FROM tab0 AS cor0
----
0

query I rowsort
SELECT - col1 * + col2 AS col1 FROM tab2 cor0
----
-1534
-646
-837

query I rowsort
SELECT ALL cor0.col2 * + 26 + col2 - cor0.col2 FROM tab0 AS cor0
----
2132
26
858

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 8 col0 FROM tab0
----
-8
-8
-8

query I rowsort
SELECT + + cor0.col2 * 32 FROM tab1 AS cor0
----
1728
1824
3072

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3170
SELECT DISTINCT col0 * CAST( - 45 AS SIGNED ) FROM tab0 cor0
----
-1080
-1575
-4005

skipif mysql # not compatible
query I rowsort label-3170
SELECT DISTINCT col0 * CAST ( - 45 AS INTEGER ) FROM tab0 cor0
----
-1080
-1575
-4005

query I rowsort
SELECT + col2 * + 54 AS col0 FROM tab0 AS cor0
----
1782
4428
54

query I rowsort
SELECT ALL - 58 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to a38440572743ed8a3d8af7b49a5388c9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * - tab0.col0 col1 FROM tab0
----
-35
-7298
-792

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 7 col0 FROM tab1
----
-7
-7
-7

query I rowsort
SELECT DISTINCT 13 * 86 + - col1 AS col0 FROM tab1 cor0
----
1092
1105
1108

query I rowsort
SELECT DISTINCT ( - cor0.col0 ) * col2 * col0 AS col0 FROM tab0 cor0
----
-1225
-19008
-649522

onlyif mysql # use DIV operator for integer division
query I rowsort label-3177
SELECT col0 DIV + ( - col0 ) AS col0 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-3177
SELECT col0 / + ( - col0 ) AS col0 FROM tab2 AS cor0
----
-1
-1
-1

query I rowsort
SELECT + cor0.col1 + - col1 * - col1 + 61 AS col0 FROM tab0 AS cor0
----
7543
8433
9567

query I rowsort
SELECT ALL 1 + + cor0.col2 FROM tab2 AS cor0
----
27
28
39

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3180
SELECT DISTINCT - CAST( NULL AS SIGNED ) * 61 + cor0.col2 * col0 AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3180
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * 61 + cor0.col2 * col0 AS col2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT - + 52 + + col0 FROM tab2 AS cor0
----
-45
26
27

query I rowsort
SELECT tab1.col1 * 22 FROM tab1
----
220
286
572

query I rowsort
SELECT ALL - 69 + cor0.col0 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 1370bb7931960b042e18e06757a20c7c

query I rowsort
SELECT + 72 AS col2 FROM tab0 AS cor0
----
72
72
72

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( col2 ) + - col1 * ( - cor0.col1 ) col1 FROM tab2 AS cor0
----
251
3455
934

query I rowsort
SELECT - col2 * col2 - col1 * tab2.col0 FROM tab2
----
-2787
-5278
-946

query I rowsort
SELECT ALL cor2.col2 FROM tab2, tab2 AS cor0 CROSS JOIN tab0, tab1 AS cor1, tab2 AS cor2
----
243 values hashing to 3dcd863493ac16ce594c62d4ac8b0412

query I rowsort
SELECT 70 + col1 FROM tab2 AS cor0
----
101
129
87

query I rowsort
SELECT + col0 * 45 + - col1 FROM tab1
----
109
2870
3587

query I rowsort
SELECT ( col2 + col0 ) * ( col0 ) FROM tab1
----
14080
171
7744

query I rowsort
SELECT ALL 3 + col2 + 41 AS col0 FROM tab1 AS cor0
----
101
140
98

query I rowsort
SELECT ALL - + cor0.col1 - + col2 FROM tab0 AS cor0
----
-119
-173
-98

query I rowsort
SELECT DISTINCT + + ( - cor0.col1 ) - 79 AS col1 FROM tab2 AS cor0
----
-110
-138
-96

query I rowsort
SELECT ALL - col1 * col1 + 79 AS col1 FROM tab2 AS cor0
----
-210
-3402
-882

query I rowsort
SELECT ALL + - 69 - + col1 FROM tab2 cor0
----
-100
-128
-86

query I rowsort
SELECT ALL + col1 + tab0.col2 AS col0 FROM tab0
----
119
173
98

query I rowsort
SELECT DISTINCT + + col2 + + col0 * col1 FROM tab2 AS cor0
----
1381
244
4628

query I rowsort
SELECT ALL - col2 * + col0 FROM tab0 cor0
----
-35
-7298
-792

query I rowsort
SELECT DISTINCT - + col0 + + col2 + + col1 AS col2 FROM tab2 AS cor0
----
-24
51
7

query I rowsort
SELECT - col1 + - col1 * col1 AS col0 FROM tab2 AS cor0
----
-306
-3540
-992

query I rowsort
SELECT ALL + cor0.col1 * col1 + 53 AS col2 FROM tab1 AS cor0
----
153
222
729

query I rowsort
SELECT ALL + + col0 - - col1 AS col0 FROM tab2 cor0
----
137
38
96

query I rowsort
SELECT + 86 + col1 FROM tab2 AS cor0
----
103
117
145

query I rowsort
SELECT ALL - + col2 + col0 + col2 * - cor0.col1 AS col0 FROM tab1 AS cor0
----
-1264
-1455
-563

query I rowsort
SELECT DISTINCT + 69 * - col0 AS col0 FROM tab2 AS cor0
----
-483
-5382
-5451

query I rowsort
SELECT ( - cor0.col2 ) + + 80 * - 4 AS col0 FROM tab0 AS cor0
----
-321
-353
-402

query I rowsort
SELECT ALL col1 * - col0 + ( - 45 ) AS col2 FROM tab2 AS cor0
----
-1388
-262
-4647

query I rowsort
SELECT DISTINCT - - cor0.col2 + - col2 AS col2 FROM tab1 AS cor0
----
0

query I rowsort
SELECT ALL col0 - 68 FROM tab1
----
-4
-65
12

query I rowsort
SELECT + col2 + - 66 * col0 FROM tab0 AS cor0
----
-1551
-2309
-5792

query I rowsort
SELECT ALL + + cor0.col0 + ( col0 ) FROM tab1 AS cor0
----
128
160
6

query I rowsort
SELECT + - col2 * col0 AS col2 FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT - - 33 AS col2 FROM tab2 cor0
----
33
33
33

query I rowsort
SELECT ALL + col2 * col1 - - col0 FROM tab1 AS cor0
----
1328
1407
634

query I rowsort
SELECT DISTINCT + col1 * col1 * col2 AS col2 FROM tab0 AS cor0
----
244068
679042
9409

skipif mysql # not compatible
query I rowsort
SELECT - CAST ( 94 AS REAL ) FROM tab1 AS cor0
----
-94
-94
-94

query I rowsort
SELECT DISTINCT - - 78 FROM tab1 AS cor0
----
78

query I rowsort
SELECT ALL + 79 FROM tab0, tab2 AS cor0
----
9 values hashing to 40a2261caa2c5cdbfd80965d7df1231f

query I rowsort
SELECT ALL + ( + 10 ) * col0 FROM tab1 AS cor0
----
30
640
800

query I rowsort
SELECT DISTINCT + + col0 + 85 FROM tab2 AS cor0
----
163
164
92

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3221
SELECT ALL - + col1 + CAST( col1 AS SIGNED ) * col1 AS col1 FROM tab2 AS cor0
----
272
3422
930

skipif mysql # not compatible
query I rowsort label-3221
SELECT ALL - + col1 + CAST ( col1 AS INTEGER ) * col1 AS col1 FROM tab2 AS cor0
----
272
3422
930

onlyif mysql # use DIV operator for integer division
query I rowsort label-3222
SELECT col1 DIV col0 + + 91 - + cor0.col2 FROM tab0 AS cor0
----
10
61
92

skipif mysql # not compatible
query I rowsort label-3222
SELECT col1 / col0 + + 91 - + cor0.col2 FROM tab0 AS cor0
----
10
61
92

onlyif mysql # use DIV operator for integer division
query I rowsort label-3223
SELECT DISTINCT + - col0 DIV - 22 AS col1 FROM tab1 AS cor0
----
0
2
3

skipif mysql # not compatible
query I rowsort label-3223
SELECT DISTINCT + - col0 / - 22 AS col1 FROM tab1 AS cor0
----
0
2
3

onlyif mysql # use DIV operator for integer division
query I rowsort label-3224
SELECT - + col2 DIV + 68 + + 39 AS col2 FROM tab2 cor0
----
39
39
39

skipif mysql # not compatible
query I rowsort label-3224
SELECT - + col2 / + 68 + + 39 AS col2 FROM tab2 cor0
----
39
39
39

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3225
SELECT - col0 + CAST( col2 AS SIGNED ) FROM tab0 AS cor0
----
-34
-7
9

skipif mysql # not compatible
query I rowsort label-3225
SELECT - col0 + CAST ( col2 AS INTEGER ) FROM tab0 AS cor0
----
-34
-7
9

query I rowsort
SELECT - col2 * col2 + ( col0 ) + 3 AS col1 FROM tab0 AS cor0
----
-1062
-6632
37

query I rowsort
SELECT DISTINCT + col1 + ( - col0 ) AS col2 FROM tab1 AS cor0
----
-54
-67
23

onlyif mysql # use DIV operator for integer division
query I rowsort label-3228
SELECT DISTINCT - col1 DIV - 92 + + col2 FROM tab2 cor0
----
26
27
38

skipif mysql # not compatible
query I rowsort label-3228
SELECT DISTINCT - col1 / - 92 + + col2 FROM tab2 cor0
----
26
27
38

query I rowsort
SELECT col2 + ( + 56 ) AS col0 FROM tab2 AS cor0
----
82
83
94

onlyif mysql # use DIV operator for integer division
query I rowsort label-3230
SELECT ALL + col0 DIV - col2 AS col1 FROM tab0 AS cor0
----
-1
-35
0

skipif mysql # not compatible
query I rowsort label-3230
SELECT ALL + col0 / - col2 AS col1 FROM tab0 AS cor0
----
-1
-35
0

query I rowsort
SELECT ALL - col1 * 73 FROM tab0 AS cor0
----
-6278
-6643
-7081

query I rowsort
SELECT ALL + col1 + + col0 * + col1 FROM tab2 cor0
----
1360
248
4661

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col1 * + col0 + col0 col1 FROM tab0 AS cor0
----
2088
3430
8188

onlyif mysql # use DIV operator for integer division
query I rowsort label-3234
SELECT col0 DIV col1 + col2 - col0 AS col0 FROM tab2
----
-37
-51
20

skipif mysql # not compatible
query I rowsort label-3234
SELECT col0 / col1 + col2 - col0 AS col0 FROM tab2
----
-37
-51
20

query I rowsort
SELECT DISTINCT + tab1.col1 AS col1 FROM tab1, tab2 cor0
----
10
13
26

query I rowsort
SELECT 35 FROM tab1, tab2, tab2 AS cor0
----
27 values hashing to 0d13dfd4c4a9d51ace3582c31cadcdbc

query I rowsort
SELECT DISTINCT - col0 + - col2 * tab2.col1 * - 39 AS col0 FROM tab2
----
25115
32636
59748

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * col1 * col2 + col2 col1 FROM tab2 AS cor0
----
119678
51072
5886

query I rowsort
SELECT + 37 AS col2 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to c023509f63faa044d654943e6df55ca2

query I rowsort
SELECT DISTINCT - col1 + + 89 * col2 AS col1 FROM tab2
----
2255
2372
3365

query I rowsort
SELECT 55 + + 30 FROM tab0
----
85
85
85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor1.col2 + - cor1.col2 col1 FROM tab2, tab1 cor0, tab2 cor1
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2

onlyif mysql # use DIV operator for integer division
query I rowsort label-3243
SELECT ALL 91 * + col0 - 92 DIV + col2 AS col1 FROM tab0 AS cor0
----
2182
3093
8098

skipif mysql # not compatible
query I rowsort label-3243
SELECT ALL 91 * + col0 - 92 / + col2 AS col1 FROM tab0 AS cor0
----
2182
3093
8098

query I rowsort
SELECT - ( - col0 ) + col0 FROM tab0 cor0
----
178
48
70

query I rowsort
SELECT DISTINCT 94 * - col1 AS col0 FROM tab1 cor0
----
-1222
-2444
-940

query I rowsort
SELECT + 65 AS col1 FROM tab1
----
65
65
65

query I rowsort
SELECT - 95 FROM tab1, tab1 AS cor0
----
9 values hashing to 1c7934db0632c123332c43f17b661d6c

query I rowsort
SELECT ALL - col1 + + tab2.col0 * 78 AS col0 FROM tab2
----
515
6025
6145

onlyif mysql # use DIV operator for integer division
query I rowsort label-3249
SELECT - 50 DIV 35 FROM tab1, tab0 AS cor0
----
9 values hashing to 60fdd6924bb763d6aca00ba74935ef4b

skipif mysql # not compatible
query I rowsort label-3249
SELECT - 50 / 35 FROM tab1, tab0 AS cor0
----
9 values hashing to 60fdd6924bb763d6aca00ba74935ef4b

query I rowsort
SELECT DISTINCT + 75 * + col2 + - ( col1 ) FROM tab2 AS cor0
----
1891
1994
2833

query I rowsort
SELECT - 48 + col2 FROM tab2 AS cor0
----
-10
-21
-22

query I rowsort
SELECT DISTINCT - + cor0.col2 * + col1 + 3 AS col1 FROM tab2 cor0
----
-1531
-643
-834

query I rowsort
SELECT + + col0 - - col1 AS col2 FROM tab1 AS cor0
----
29
74
93

onlyif mysql # use DIV operator for integer division
query I rowsort label-3254
SELECT ALL + 29 DIV - col0 + - 44 FROM tab0 cor0
----
-44
-44
-45

skipif mysql # not compatible
query I rowsort label-3254
SELECT ALL + 29 / - col0 + - 44 FROM tab0 cor0
----
-44
-44
-45

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col1 col0 FROM tab2, tab2 AS cor0, tab2 AS cor1, tab2 AS cor2
----
81 values hashing to a5b6acb471910ea4ad7f31cae3b818f7

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3256
SELECT ALL CAST( cor1.col2 AS SIGNED ) col1 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3256
SELECT ALL CAST ( cor1.col2 AS INTEGER ) col1 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79

query I rowsort
SELECT col1 + - col0 * - col0 FROM tab1
----
35
4106
6413

query I rowsort
SELECT + cor0.col0 - - col0 AS col0 FROM tab2 cor0
----
14
156
158

query I rowsort
SELECT ALL 95 + + cor0.col0 FROM tab1, tab2 AS cor0
----
9 values hashing to d7c1326958b06597d824bcd99d4d3719

query I rowsort
SELECT + col2 * + 52 - + 23 AS col0 FROM tab1 AS cor0
----
2785
2941
4969

query I rowsort
SELECT col2 * 9 - + col1 FROM tab2
----
175
212
325

query I rowsort
SELECT - col0 + col2 * col2 AS col2 FROM tab2
----
1365
598
722

query I rowsort
SELECT col1 * + 51 + + 44 FROM tab0 AS cor0
----
4430
4685
4991

query I rowsort
SELECT DISTINCT + cor0.col0 * 57 AS col2 FROM tab2, tab0 AS cor0, tab0 cor1
----
1368
1995
5073

query I rowsort
SELECT DISTINCT + ( - ( + col2 ) ) AS col2 FROM tab1 AS cor0
----
-54
-57
-96

query I rowsort
SELECT DISTINCT + 14 * 51 FROM tab2 AS cor0
----
714

query I rowsort
SELECT + cor0.col1 * + cor0.col0 AS col0 FROM tab1 AS cor0
----
1040
640
78

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3268
SELECT DISTINCT CAST( - 33 + col0 AS SIGNED ) * 71 FROM tab0
----
-639
142
3976

skipif mysql # not compatible
query I rowsort label-3268
SELECT DISTINCT CAST ( - 33 + col0 AS INTEGER ) * 71 FROM tab0
----
-639
142
3976

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3269
SELECT ALL - col2 + CAST( col0 * col1 AS SIGNED ) AS col2 FROM tab2
----
1305
190
4576

skipif mysql # not compatible
query I rowsort label-3269
SELECT ALL - col2 + CAST ( col0 * col1 AS INTEGER ) AS col2 FROM tab2
----
1305
190
4576

onlyif mysql # use DIV operator for integer division
query I rowsort label-3270
SELECT ALL - col1 DIV + ( - col1 * + col2 ) + + CAST( 94 AS SIGNED ) FROM tab0
----
94
94
95

skipif mysql # not compatible
query I rowsort label-3270
SELECT ALL - col1 / + ( - col1 * + col2 ) + + CAST ( 94 AS INTEGER ) FROM tab0
----
94
94
95

query I rowsort
SELECT DISTINCT 6 FROM tab0, tab1 AS cor0
----
6

query I rowsort
SELECT DISTINCT - 38 FROM tab2, tab0 AS cor0
----
-38

query I rowsort
SELECT - col2 * ( ( + col1 ) ) + + 89 AS col2 FROM tab0 AS cor0
----
-2749
-7373
-8

query I rowsort
SELECT + col1 + 46 * 39 FROM tab2 AS cor0
----
1811
1825
1853

query I rowsort
SELECT + ( 97 ) + col2 * + ( - col0 ) AS col1 FROM tab0 AS cor0
----
-695
-7201
62

query I rowsort
SELECT DISTINCT + col2 + 51 FROM tab1 AS cor0
----
105
108
147

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3277
SELECT DISTINCT + CAST( NULL AS SIGNED ) + col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3277
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + col0 FROM tab0 AS cor0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-3278
SELECT ALL col2 DIV col1 AS col0 FROM tab1 cor0
----
2
5
7

skipif mysql # not compatible
query I rowsort label-3278
SELECT ALL col2 / col1 AS col0 FROM tab1 cor0
----
2
5
7

query I rowsort
SELECT - ( - 73 ) AS col2 FROM tab1 AS cor0
----
73
73
73

query I rowsort
SELECT col1 * + 17 AS col1 FROM tab1
----
170
221
442

query I rowsort
SELECT - col2 * - col0 * col1 FROM tab1 AS cor0
----
36480
4212
99840

query I rowsort
SELECT ALL - ( - col1 ) - + col0 AS col0 FROM tab2 AS cor0
----
-19
-62
24

query I rowsort
SELECT + 18 * col1 + col2 FROM tab1 AS cor0
----
237
330
522

query I rowsort
SELECT ALL + 41 * + cor0.col2 AS col1 FROM tab1 AS cor0
----
2214
2337
3936

query I rowsort
SELECT col0 * - col1 - - 70 AS col1 FROM tab0 AS cor0
----
-1994
-3325
-8029

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3286
SELECT - col2 / + col0 + - CAST( NULL AS DECIMAL ) + + col1 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3286
SELECT - col2 / + col0 + - CAST ( NULL AS REAL ) + + col1 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col2 + col1 * + ( col2 ) FROM tab0 AS cor0
----
2871
7544
98

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3288
SELECT - col1 * col0 + CAST( NULL AS SIGNED ) + + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3288
SELECT - col1 * col0 + CAST ( NULL AS INTEGER ) + + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 52 + + col2 FROM tab1 AS cor0
----
106
109
148

query I rowsort
SELECT ALL + 1 * tab0.col2 FROM tab0, tab1, tab2 AS cor0, tab2
----
81 values hashing to e938777ebffc2e3e9c0cdfaa4f732c05

query I rowsort
SELECT ALL - 3 * col0 FROM tab0 AS cor0
----
-105
-267
-72

query I rowsort
SELECT DISTINCT - ( - 45 + - col0 ) FROM tab2
----
123
124
52

query I rowsort
SELECT - col0 * col1 - + 17 FROM tab0 AS cor0
----
-2081
-3412
-8116

query I rowsort
SELECT col2 + col2 + ( + col2 ) FROM tab1 AS cor0
----
162
171
288

query I rowsort
SELECT col1 * - 20 + - col0 FROM tab0 AS cor0
----
-1744
-1909
-1975

query I rowsort
SELECT + col1 * 72 FROM tab0 AS cor0
----
6192
6552
6984

query I rowsort
SELECT + col2 + - 59 * cor0.col0 FROM tab0 AS cor0
----
-1383
-2064
-5169

onlyif mysql # use DIV operator for integer division
query I rowsort label-3298
SELECT ALL - ( - tab2.col1 ) DIV col1 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3298
SELECT ALL - ( - tab2.col1 ) / col1 FROM tab2
----
1
1
1

query I rowsort
SELECT DISTINCT - cor0.col1 * - 11 AS col2 FROM tab1, tab0 AS cor0
----
1001
1067
946

query I rowsort
SELECT - col1 * + 48 + + ( col0 * col1 ) - 85 FROM tab1 AS cor0
----
-1255
331
75

query I rowsort
SELECT col0 + col2 - 25 FROM tab2 cor0
----
79
9
92

query I rowsort
SELECT DISTINCT - + col1 + ( 53 ) * col1 + - col1 FROM tab1 cor0
----
1326
510
663

query I rowsort
SELECT + col2 + ( cor0.col2 ) AS col2 FROM tab2 AS cor0
----
52
54
76

query I rowsort
SELECT DISTINCT + col1 * col1 * 19 + - col0 * + ( + ( + col0 ) * + col0 ) AS col2 FROM tab2 AS cor0
----
-408413
-487548
17916

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col2 * 7 + col0 * + cor0.col1 col1 FROM tab1 AS cor0
----
-300
241
368

query I rowsort
SELECT DISTINCT + + col1 - + col0 FROM tab2 AS cor0
----
-19
-62
24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * - col1 col2 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT + col2 * + col0 * + 68 - + col2 * col0 AS col2 FROM tab0 AS cor0
----
2345
488966
53064

query I rowsort
SELECT DISTINCT col0 * - 33 + col0 FROM tab2 cor0
----
-224
-2496
-2528

query I rowsort
SELECT - + col1 + cor0.col1 AS col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT col1 + 99 AS col2 FROM tab1 AS cor0
----
109
112
125

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 + - col0 col1 FROM tab2 AS cor0
----
-137
-38
-96

query I rowsort
SELECT DISTINCT - + col0 + 51 FROM tab1 cor0
----
-13
-29
48

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 - - col2 * - 24 * + 50 col2 FROM tab2
----
-31278
-32407
-45679

query I rowsort
SELECT cor1.col1 AS col1 FROM tab0, tab2 AS cor0, tab1, tab2 AS cor1
----
81 values hashing to a5b6acb471910ea4ad7f31cae3b818f7

query I rowsort
SELECT DISTINCT col1 * - 67 + col0 + + col2 AS col0 FROM tab0
----
-5705
-5926
-6463

query I rowsort
SELECT + + col1 + 66 FROM tab2 AS cor0
----
125
83
97

query I rowsort
SELECT DISTINCT + - col1 * + ( + 75 ) AS col1 FROM tab2 AS cor0
----
-1275
-2325
-4425

query I rowsort
SELECT DISTINCT - col0 + + col2 * - col1 FROM tab0 AS cor0
----
-132
-2862
-7551

onlyif mysql # use DIV operator for integer division
query I rowsort label-3320
SELECT + cor0.col1 * - ( col1 ) + - col0 DIV - col0 FROM tab2 AS cor0
----
-288
-3480
-960

skipif mysql # not compatible
query I rowsort label-3320
SELECT + cor0.col1 * - ( col1 ) + - col0 / - col0 FROM tab2 AS cor0
----
-288
-3480
-960

query I rowsort
SELECT DISTINCT - col0 + 73 * - col2 + - col1 * + col0 FROM tab1 AS cor0
----
-4023
-4865
-8128

query I rowsort
SELECT DISTINCT col0 + + col1 * - col1 + col2 AS col1 FROM tab1
----
-619
21
7

query I rowsort
SELECT ALL ( 63 ) * cor0.col0 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 3eadb7476105ce17c2616cae257b117a

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 90 col2 FROM tab0
----
90
90
90

query I rowsort
SELECT 18 + + col2 * col0 AS col1 FROM tab2 AS cor0
----
2046
207
3020

query I rowsort
SELECT DISTINCT 50 AS col0 FROM tab1
----
50

onlyif mysql # use DIV operator for integer division
query I rowsort label-3327
SELECT col2 DIV + col0 + + ( + 20 ) * col2 FROM tab1
----
1098
1140
1921

skipif mysql # not compatible
query I rowsort label-3327
SELECT col2 / + col0 + + ( + 20 ) * col2 FROM tab1
----
1098
1140
1921

query I rowsort
SELECT col1 - - col1 * col1 FROM tab1
----
110
182
702

query I rowsort
SELECT 33 + col1 FROM tab1
----
43
46
59

query I rowsort
SELECT DISTINCT + + cor0.col2 - + col2 * + ( col1 ) FROM tab1 AS cor0
----
-1152
-1350
-513

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( - cor0.col2 ) * 50 col1 FROM tab0 cor0
----
-1650
-4100
-50

query I rowsort
SELECT ALL + col1 * - col1 * - col2 + - ( cor0.col0 ) FROM tab2 AS cor0
----
10903
25940
90428

query I rowsort
SELECT - + col0 * + cor0.col1 AS col0 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT ALL - 72 + col2 * + col0 FROM tab1 AS cor0
----
3576
7608
90

query I rowsort
SELECT DISTINCT + col0 + col1 * ( col0 ) AS col2 FROM tab1 AS cor0
----
1120
704
81

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3336
SELECT DISTINCT + + CAST( 91 AS SIGNED ) FROM tab0 cor0
----
91

skipif mysql # not compatible
query I rowsort label-3336
SELECT DISTINCT + + CAST ( 91 AS INTEGER ) FROM tab0 cor0
----
91

query I rowsort
SELECT + ( + col2 ) * - col2 + + ( cor0.col1 * + col0 ) FROM tab1 AS cor0
----
-2609
-2838
-8176

query I rowsort
SELECT DISTINCT + col0 * - 87 AS col2 FROM tab2 AS cor0
----
-609
-6786
-6873

query I rowsort
SELECT col2 + 14 + cor0.col1 AS col0 FROM tab1 AS cor0
----
123
81
94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( + cor0.col0 ) * col0 col2 FROM tab0 cor0
----
1225
576
7921

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab2 AS cor0 CROSS JOIN tab1, tab2 AS cor1, tab0 AS cor2
----
3645 values hashing to 5acb69cde71208fe580e10b8b669428e

query I rowsort
SELECT DISTINCT col2 + col1 * cor0.col2 AS col0 FROM tab0 cor0
----
2871
7544
98

query I rowsort
SELECT - + ( + ( - cor0.col2 ) ) AS col2 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT col2 * - 1 FROM tab0 AS cor0
----
-1
-33
-82

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3345
SELECT CAST( NULL AS SIGNED ) * col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3345
SELECT CAST ( NULL AS INTEGER ) * col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - + col2 * 26 FROM tab0 AS cor0
----
-2132
-26
-858

query I rowsort
SELECT + col0 + col2 * col1 FROM tab2 cor0
----
1612
725
844

onlyif mysql # use DIV operator for integer division
query I rowsort label-3348
SELECT - cor0.col1 * - cor0.col0 + col0 DIV 27 AS col0 FROM tab1 AS cor0
----
1042
642
78

skipif mysql # not compatible
query I rowsort label-3348
SELECT - cor0.col1 * - cor0.col0 + col0 / 27 AS col0 FROM tab1 AS cor0
----
1042
642
78

query I rowsort
SELECT DISTINCT + col1 * col2 * ( - col2 ) FROM tab2 AS cor0
----
-22599
-24548
-39884

query I rowsort
SELECT - col1 * + cor0.col2 + - col2 + - ( col0 ) FROM tab1 AS cor0
----
-1424
-1461
-691

onlyif mysql # use DIV operator for integer division
query I rowsort label-3351
SELECT ALL + col1 + - ( - ( - col1 DIV + 85 ) ) * - 89 DIV + col1 FROM tab2 AS cor0
----
17
31
59

skipif mysql # not compatible
query I rowsort label-3351
SELECT ALL + col1 + - ( - ( - col1 / + 85 ) ) * - 89 / + col1 FROM tab2 AS cor0
----
17
31
59

query I rowsort
SELECT ALL + col0 * - col1 + 38 AS col1 FROM tab0 cor0
----
-2026
-3357
-8061

query I rowsort
SELECT ALL + - col1 + + col2 AS col1 FROM tab2 AS cor0
----
-33
-4
21

query I rowsort
SELECT - - col2 * + 0 + + col1 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT ALL - col2 * cor0.col2 + col2 FROM tab0 AS cor0
----
-1056
-6642
0

query I rowsort
SELECT ALL cor0.col0 * ( - col0 + col1 ) AS col0 FROM tab0 cor0
----
1488
178
2170

query I rowsort
SELECT col0 * - tab2.col1 + - col2 * + 1 FROM tab2
----
-1381
-244
-4628

query I rowsort
SELECT ALL ( - col2 * col2 + col0 ) FROM tab1
----
-2913
-3185
-9136

onlyif mysql # use DIV operator for integer division
query I rowsort label-3359
SELECT col0 DIV 21 FROM tab2 AS cor0
----
0
3
3

skipif mysql # not compatible
query I rowsort label-3359
SELECT col0 / 21 FROM tab2 AS cor0
----
0
3
3

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3360
SELECT + CAST( NULL AS SIGNED ) + + cor0.col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-3360
SELECT + CAST ( NULL AS INTEGER ) + + cor0.col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT ALL 93 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 85ef191bf1b307f300b3fd49992fcae7

onlyif mysql # use DIV operator for integer division
query I rowsort label-3362
SELECT col1 * - col0 * + 16 + - col0 DIV col2 AS col0 FROM tab0
----
-129585
-33024
-54355

skipif mysql # not compatible
query I rowsort label-3362
SELECT col1 * - col0 * + 16 + - col0 / col2 AS col0 FROM tab0
----
-129585
-33024
-54355

query I rowsort
SELECT DISTINCT tab0.col2 * cor0.col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 9f4d33c2594156f40c1a77ce18b06bc3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 96 col0 FROM tab2, tab0 cor0, tab0 AS cor1
----
27 values hashing to f1d978c2d5bfc6f26e0907ac777be83e

query I rowsort
SELECT + col1 * - 50 + ( + tab0.col0 ) FROM tab0
----
-4276
-4461
-4815

onlyif mysql # use DIV operator for integer division
query I rowsort label-3366
SELECT ALL + - col0 + + cor0.col2 * ( col2 ) + + col0 DIV + col0 AS col2 FROM tab0 AS cor0
----
-33
1066
6636

skipif mysql # not compatible
query I rowsort label-3366
SELECT ALL + - col0 + + cor0.col2 * ( col2 ) + + col0 / + col0 AS col2 FROM tab0 AS cor0
----
-33
1066
6636

query I rowsort
SELECT - col1 + ( - 5 ) FROM tab2 AS cor0
----
-22
-36
-64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 61 col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 51f53697966a79d306a4570537cd91a1

query I rowsort
SELECT ALL - cor0.col1 * + cor0.col1 AS col1 FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to 0456bcedc217ad4d7d255310d4eb4931

query I rowsort
SELECT DISTINCT cor0.col1 * 63 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
5418
5733
6111

query I rowsort
SELECT ALL - 84 AS col0 FROM tab1
----
-84
-84
-84

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3372
SELECT - - CAST( NULL AS SIGNED ) * col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3372
SELECT - - CAST ( NULL AS INTEGER ) * col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3373
SELECT ALL + CAST( 93 AS SIGNED ) * cor0.col0 + 85 FROM tab1 AS cor0
----
364
6037
7525

skipif mysql # not compatible
query I rowsort label-3373
SELECT ALL + CAST ( 93 AS INTEGER ) * cor0.col0 + 85 FROM tab1 AS cor0
----
364
6037
7525

query I rowsort
SELECT DISTINCT - ( + col2 * 25 ) FROM tab0
----
-2050
-25
-825

query I rowsort
SELECT ALL + cor0.col1 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892

query I rowsort
SELECT ALL + 69 AS col2 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 2810c3097fe4771e273cfff903357b40

query I rowsort
SELECT + 4 * col1 FROM tab0 AS cor0
----
344
364
388

query I rowsort
SELECT tab1.col2 * + tab1.col1 FROM tab1
----
1248
1404
570

query I rowsort
SELECT DISTINCT - col2 * - col0 * 28 AS col2 FROM tab1
----
102144
215040
4536

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 56 col2 FROM tab1 AS cor0
----
-56
-56
-56

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col0 * cor0.col1 + - col0 + col0 col0 FROM tab1 cor0
----
1040
640
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + cor0.col1 col0 FROM tab2 cor0
----
-17
-31
-59

query I rowsort
SELECT DISTINCT col2 * 73 + + 24 * col2 FROM tab2 AS cor0
----
2522
2619
3686

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3384
SELECT ALL col2 + CAST( - 94 AS SIGNED ) * col0 FROM tab2 AS cor0
----
-631
-7306
-7388

skipif mysql # not compatible
query I rowsort label-3384
SELECT ALL col2 + CAST ( - 94 AS INTEGER ) * col0 FROM tab2 AS cor0
----
-631
-7306
-7388

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + col0 + + col0 col2 FROM tab1 AS cor0
----
-4032
-6
-6320

query I rowsort
SELECT - - col1 + cor0.col1 * col2 AS col0 FROM tab2 AS cor0
----
1593
663
868

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3387
SELECT + CAST( NULL AS SIGNED ) * ( - col1 + + 30 ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3387
SELECT + CAST ( NULL AS INTEGER ) * ( - col1 + + 30 ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - + 51 + + col2 FROM tab2 AS cor0
----
-13
-24
-25

query I rowsort
SELECT DISTINCT + + 17 + + cor0.col1 * + col1 AS col1 FROM tab0 AS cor0
----
7413
8298
9426

query I rowsort
SELECT + col0 * - col2 + - col0 AS col0 FROM tab2 AS cor0
----
-196
-2106
-3081

query I rowsort
SELECT ALL col0 - + col1 AS col2 FROM tab2
----
-24
19
62

query I rowsort
SELECT ALL col0 - tab0.col0 FROM tab0
----
0
0
0

query I rowsort
SELECT ALL - 47 + col2 AS col2 FROM tab0
----
-14
-46
35

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3394
SELECT DISTINCT col2 + col2 * - CAST( + col2 AS SIGNED ) * - col2 AS col2 FROM tab2
----
17602
19710
54910

skipif mysql # not compatible
query I rowsort label-3394
SELECT DISTINCT col2 + col2 * - CAST ( + col2 AS INTEGER ) * - col2 AS col2 FROM tab2
----
17602
19710
54910

query I rowsort
SELECT col0 * tab1.col2 + col2 AS col0 FROM tab1
----
216
3705
7776

query I rowsort
SELECT 83 + + tab0.col0 FROM tab0
----
107
118
172

query I rowsort
SELECT - tab0.col1 + - tab0.col2 + 82 * col2 AS col2 FROM tab0
----
-16
2587
6551

query I rowsort
SELECT - - 37 FROM tab2 AS cor0
----
37
37
37

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * col0 col0 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT + 54 * tab2.col1 FROM tab0, tab1, tab0 cor0, tab2
----
81 values hashing to 72c37b84ea7476007c0eea67edbeb14d

query I rowsort
SELECT ALL + col2 * + 1 AS col0 FROM tab1
----
54
57
96

query I rowsort
SELECT + cor0.col0 * - col2 AS col1 FROM tab0 cor0
----
-35
-7298
-792

query I rowsort
SELECT - col0 + - 97 FROM tab1 cor0
----
-100
-161
-177

query I rowsort
SELECT ALL 90 + col1 AS col0 FROM tab2 AS cor0
----
107
121
149

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3405
SELECT - + CAST( NULL AS SIGNED ) * + ( col0 ) + + 30 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3405
SELECT - + CAST ( NULL AS INTEGER ) * + ( col0 ) + + 30 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 18 + - 78 FROM tab0 AS cor0
----
-96
-96
-96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3407
SELECT DISTINCT + CAST( NULL AS SIGNED ) * col0 col1 FROM tab2 cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3407
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * col0 col1 FROM tab2 cor0
----
NULL

query I rowsort
SELECT ALL + 16 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 3fdb08ec2e3d4b642dd4594778cca8b3

query I rowsort
SELECT DISTINCT 10 + col2 FROM tab0 AS cor0
----
11
43
92

query I rowsort
SELECT ALL col1 - 94 * col2 FROM tab1 AS cor0
----
-5050
-5348
-9011

query I rowsort
SELECT ALL - 28 * cor0.col2 AS col0 FROM tab0 AS cor0
----
-2296
-28
-924

query I rowsort
SELECT DISTINCT - - cor0.col2 * + col2 FROM tab2 AS cor0
----
1444
676
729

skipif mysql # not compatible
query I rowsort
SELECT - CAST ( - col0 AS REAL ) FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT ALL + - ( + cor0.col1 ) + col2 * - col1 + - col2 AS col2 FROM tab2 cor0
----
-1619
-701
-895

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + 9 ) col2 FROM tab1 cor0
----
9
9
9

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3416
SELECT + - CAST( col0 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-7
-78
-79

skipif mysql # not compatible
query I rowsort label-3416
SELECT + - CAST ( col0 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-7
-78
-79

query I rowsort
SELECT ALL 16 * 65 + col2 * 35 AS col0 FROM tab1 AS cor0
----
2930
3035
4400

query I rowsort
SELECT DISTINCT col1 * col0 + + col1 FROM tab0 AS cor0
----
2150
3492
8190

query I rowsort
SELECT ALL - cor0.col0 + + 13 AS col0 FROM tab1 AS cor0
----
-51
-67
10

query I rowsort
SELECT - ( + cor0.col1 ) FROM tab2, tab1 AS cor0
----
9 values hashing to b234798d4706314ba14eaad539d0aa88

query I rowsort
SELECT - 23 + col0 * + col0 AS col2 FROM tab2 AS cor0
----
26
6061
6218

query I rowsort
SELECT DISTINCT - col1 - + 97 AS col1 FROM tab1 AS cor0
----
-107
-110
-123

query I rowsort
SELECT 4 + col0 FROM tab1
----
68
7
84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 88 * tab0.col1 + + tab0.col0 col2 FROM tab0
----
-7544
-7919
-8501

query I rowsort
SELECT DISTINCT ( + col0 ) * + col1 * + tab0.col2 FROM tab0
----
3395
664118
68112

onlyif mysql # use DIV operator for integer division
query I rowsort label-3426
SELECT DISTINCT col0 DIV 80 col0 FROM tab0
----
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3426
SELECT DISTINCT col0 / 80 col0 FROM tab0
----
0
1

query I rowsort
SELECT ALL + + col0 * cor0.col2 AS col0 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT ALL + 10 AS col0 FROM tab1, tab0 cor0
----
9 values hashing to a47194429f3e0358a3aebffd5f050113

query I rowsort
SELECT DISTINCT cor0.col0 * - col0 * - col2 FROM tab2 cor0
----
1323
158184
237158

query I rowsort
SELECT + + col2 * cor0.col2 AS col0 FROM tab1 AS cor0
----
2916
3249
9216

query I rowsort
SELECT - 2 * + col1 FROM tab2 AS cor0
----
-118
-34
-62

query I rowsort
SELECT ALL - + 87 FROM tab2 cor0
----
-87
-87
-87

query I rowsort
SELECT ALL + + ( - col2 ) * - col1 * col1 FROM tab1 AS cor0
----
16224
36504
5700

query I rowsort
SELECT ALL + col2 * cor0.col0 + - col1 AS col2 FROM tab0 AS cor0
----
-62
706
7207

query I rowsort
SELECT DISTINCT 77 * col2 AS col0 FROM tab1 cor0
----
4158
4389
7392

onlyif mysql # use DIV operator for integer division
query I rowsort label-3436
SELECT - 36 - + col2 DIV cor0.col0 FROM tab2 AS cor0
----
-36
-36
-39

skipif mysql # not compatible
query I rowsort label-3436
SELECT - 36 - + col2 / cor0.col0 FROM tab2 AS cor0
----
-36
-36
-39

query I rowsort
SELECT DISTINCT 59 * + col0 * col1 FROM tab2 AS cor0
----
12803
271518
79237

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 97 * col0 col2 FROM tab2 AS cor0
----
679
7566
7663

query I rowsort
SELECT DISTINCT + col1 + - col2 * - col2 AS col2 FROM tab2 AS cor0
----
1461
735
760

onlyif mysql # use DIV operator for integer division
query I rowsort label-3440
SELECT - col2 DIV col2 + col1 * cor0.col2 col2 FROM tab1 AS cor0
----
1247
1403
569

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3440
SELECT - col2 / col2 + col1 * cor0.col2 col2 FROM tab1 AS cor0
----
1247
1403
569

query I rowsort
SELECT + - col1 * + col0 - col0 FROM tab0 AS cor0
----
-2088
-3430
-8188

query I rowsort
SELECT - col1 + + col2 * - cor0.col2 FROM tab2 AS cor0
----
-1461
-735
-760

query I rowsort
SELECT 25 + col1 FROM tab0
----
111
116
122

query I rowsort
SELECT + 39 + ( - col2 ) * - col0 FROM tab0
----
7337
74
831

query I rowsort
SELECT DISTINCT + col1 * + 68 FROM tab2
----
1156
2108
4012

query I rowsort
SELECT ALL - cor0.col2 * + 16 AS col2 FROM tab0 cor0
----
-1312
-16
-528

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3447
SELECT DISTINCT + + cor0.col1 * - CAST( + col0 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-1040
-640
-78

skipif mysql # not compatible
query I rowsort label-3447
SELECT DISTINCT + + cor0.col1 * - CAST ( + col0 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-1040
-640
-78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * ( col0 ) + + col1 col0 FROM tab1 AS cor0
----
-4086
-6387
17

onlyif mysql # use DIV operator for integer division
query I rowsort label-3449
SELECT col1 DIV + col1 + - col1 FROM tab0 AS cor0
----
-85
-90
-96

skipif mysql # not compatible
query I rowsort label-3449
SELECT col1 / + col1 + - col1 FROM tab0 AS cor0
----
-85
-90
-96

query I rowsort
SELECT ALL - col0 * - 33 FROM tab0 cor0
----
1155
2937
792

query I rowsort
SELECT DISTINCT col0 + 71 * col0 FROM tab0 AS cor0
----
1728
2520
6408

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3452
SELECT ALL + col2 * + CAST( col2 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
1
1089
6724

skipif mysql # not compatible
query I rowsort label-3452
SELECT ALL + col2 * + CAST ( col2 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
1
1089
6724

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * - col1 + cor0.col0 col1 FROM tab1 AS cor0
----
-36
-673
-89

query I rowsort
SELECT + col0 + - ( col2 ) * cor0.col2 FROM tab2 AS cor0
----
-1365
-598
-722

query I rowsort
SELECT DISTINCT + col0 + - col0 * - 5 FROM tab1 cor0
----
18
384
480

query I rowsort
SELECT col1 + + 52 FROM tab0 cor0
----
138
143
149

query I rowsort
SELECT - col2 * ( col0 ) + col0 FROM tab1 AS cor0
----
-159
-3584
-7600

query I rowsort
SELECT DISTINCT - - col1 + - cor0.col2 AS col1 FROM tab0 AS cor0
----
53
9
96

query I rowsort
SELECT - 12 * - col0 AS col0 FROM tab2
----
84
936
948

query I rowsort
SELECT col0 * - ( + col2 ) + col2 FROM tab0 AS cor0
----
-34
-7216
-759

onlyif mysql # use DIV operator for integer division
query I rowsort label-3461
SELECT ALL + cor0.col1 + 60 DIV col0 FROM tab0 AS cor0
----
88
91
98

skipif mysql # not compatible
query I rowsort label-3461
SELECT ALL + cor0.col1 + 60 / col0 FROM tab0 AS cor0
----
88
91
98

query I rowsort
SELECT DISTINCT - 16 + 95 * col2 AS col1 FROM tab1 AS cor0
----
5114
5399
9104

query I rowsort
SELECT DISTINCT + 19 * - cor0.col1 AS col0 FROM tab2 AS cor0
----
-1121
-323
-589

query I rowsort
SELECT DISTINCT - ( - tab1.col1 ) FROM tab1, tab1 AS cor0
----
10
13
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + col1 col2 FROM tab2
----
-19
-62
24

query I rowsort
SELECT + 43 AS col1 FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to ee5108f6248be48c54e069545f81c5d9

query I rowsort
SELECT DISTINCT 5 * - tab0.col0 FROM tab0
----
-120
-175
-445

query I rowsort
SELECT ALL + + cor0.col0 * - col2 AS col1 FROM tab0 AS cor0
----
-35
-7298
-792

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 75 col1 FROM tab0 cor0
----
75
75
75

query I rowsort
SELECT ALL - + cor0.col1 + + col1 AS col1 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3471
SELECT ALL col0 * + CAST( - 18 AS SIGNED ) - col0 AS col1 FROM tab0 AS cor0
----
-1691
-456
-665

skipif mysql # not compatible
query I rowsort label-3471
SELECT ALL col0 * + CAST ( - 18 AS INTEGER ) - col0 AS col1 FROM tab0 AS cor0
----
-1691
-456
-665

query I rowsort
SELECT DISTINCT + - col2 * col0 + col1 FROM tab2 AS cor0
----
-158
-1969
-2985

query I rowsort
SELECT DISTINCT - col1 + - ( - 92 ) * col2 AS col1 FROM tab0 AS cor0
----
-5
2950
7453

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3474
SELECT ALL col2 + - CAST( NULL AS DECIMAL ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3474
SELECT ALL col2 + - 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-3475
SELECT + - col2 + - col1 * - col1 DIV col1 AS col2 FROM tab1 AS cor0
----
-28
-47
-83

skipif mysql # not compatible
query I rowsort label-3475
SELECT + - col2 + - col1 * - col1 / col1 AS col2 FROM tab1 AS cor0
----
-28
-47
-83

query I rowsort
SELECT ALL + col1 * - col1 + + col2 * col2 AS col1 FROM tab1 AS cor0
----
2240
3149
9047

query I rowsort
SELECT 60 + cor0.col0 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 729fc58fdb9e2d56b98ea4e583d5ab03

query I rowsort
SELECT ALL + col0 * col1 + + 95 FROM tab2 AS cor0
----
1438
312
4697

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1, tab1 AS cor0 CROSS JOIN tab2, tab1 AS cor1, tab0 AS cor2
----
3645 values hashing to ac17da4547aa356439ff11568174588c

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3480
SELECT DISTINCT col0 * col1 + - col0 / - CAST( NULL AS SIGNED ) col1 FROM tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3480
SELECT DISTINCT col0 * col1 + - col0 / - CAST ( NULL AS INTEGER ) col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT + col1 + 39 AS col2 FROM tab0
----
125
130
136

onlyif mysql # use DIV operator for integer division
query I rowsort label-3482
SELECT DISTINCT + col0 + cor0.col0 DIV col1 AS col0 FROM tab1 AS cor0
----
3
70
86

skipif mysql # not compatible
query I rowsort label-3482
SELECT DISTINCT + col0 + cor0.col0 / col1 AS col0 FROM tab1 AS cor0
----
3
70
86

query I rowsort
SELECT + ( - ( + col1 ) ) + col2 AS col0 FROM tab0 AS cor0
----
-53
-9
-96

query I rowsort
SELECT - + 47 * ( + col0 * + 83 ) + 16 AS col2 FROM tab0 AS cor0
----
-136519
-347173
-93608

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3485
SELECT ALL CAST( NULL AS SIGNED ) * col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3485
SELECT ALL CAST ( NULL AS INTEGER ) * col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - - col0 * + 25 + col0 + - col1 FROM tab2 AS cor0
----
151
1969
2037

query I rowsort
SELECT DISTINCT - 17 * + col0 AS col1 FROM tab1 AS cor0
----
-1088
-1360
-51

query I rowsort
SELECT DISTINCT - 1 * - ( cor0.col1 ) AS col2 FROM tab2 AS cor0
----
17
31
59

onlyif mysql # use DIV operator for integer division
query I rowsort label-3489
SELECT ALL - col0 + + cor0.col2 - col0 DIV + col0 col0 FROM tab2 AS cor0
----
-42
-53
19

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3489
SELECT ALL - col0 + + cor0.col2 - col0 / + col0 col0 FROM tab2 AS cor0
----
-42
-53
19

query I rowsort
SELECT DISTINCT 46 AS col2 FROM tab1 AS cor0
----
46

query I rowsort
SELECT + 87 * - col0 + + col2 AS col2 FROM tab0 AS cor0
----
-2055
-3044
-7661

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3492
SELECT - 50 * - col0 + CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3492
SELECT - 50 * - col0 + CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3493
SELECT DISTINCT + - cor0.col0 * col1 + CAST( NULL AS SIGNED ) * + col0 * cor0.col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3493
SELECT DISTINCT + - cor0.col0 * col1 + CAST ( NULL AS INTEGER ) * + col0 * cor0.col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ( 63 ) * - col1 + col2 FROM tab2
----
-1033
-1926
-3691

query I rowsort
SELECT DISTINCT + + 91 + cor0.col1 FROM tab1, tab0 AS cor0
----
177
182
188

query I rowsort
SELECT - 20 + col2 AS col2 FROM tab1 AS cor0
----
34
37
76

onlyif mysql # use DIV operator for integer division
query I rowsort label-3497
SELECT col0 * col1 DIV 35 FROM tab1 AS cor0
----
18
2
29

skipif mysql # not compatible
query I rowsort label-3497
SELECT col0 * col1 / 35 FROM tab1 AS cor0
----
18
2
29

query I rowsort
SELECT + col1 * + col2 + - col0 * + 37 FROM tab1 AS cor0
----
-1712
-1798
1293

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + - col2 + col0 col0 FROM tab1 cor0
----
3
64
80

query I rowsort
SELECT ALL + 83 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 18f405c31a0fb47ce3cc9f7effa8855c

onlyif mysql # use DIV operator for integer division
query I rowsort label-3501
SELECT + col2 DIV - ( col1 ) FROM tab2
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-3501
SELECT + col2 / - ( col1 ) FROM tab2
----
-2
0
0

query I rowsort
SELECT DISTINCT - 38 AS col0 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
-38

query I rowsort
SELECT DISTINCT 22 * + col1 FROM tab0
----
1892
2002
2134

query I rowsort
SELECT - 78 AS col2 FROM tab1, tab2, tab2 AS cor0
----
27 values hashing to c4f3c63f98c3c08f2848f46850a476d4

onlyif mysql # use DIV operator for integer division
query I rowsort label-3505
SELECT + col2 * col1 + + col1 - ( col0 ) DIV + col0 FROM tab1 AS cor0
----
1260
1429
579

skipif mysql # not compatible
query I rowsort label-3505
SELECT + col2 * col1 + + col1 - ( col0 ) / + col0 FROM tab1 AS cor0
----
1260
1429
579

query I rowsort
SELECT + 10 * 52 * - cor0.col2 - + 25 AS col2 FROM tab0 AS cor0
----
-17185
-42665
-545

query I rowsort
SELECT ALL 50 FROM tab0, tab2 cor0
----
9 values hashing to dea2d1b74e0cdf67806af8c417324f52

query I rowsort
SELECT DISTINCT - 41 AS col1 FROM tab0 AS cor0
----
-41

query I rowsort
SELECT 25 AS col0 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 2c77240b60ac01c717a5ed5d0165f450

query I rowsort
SELECT + 9 FROM tab2, tab0 AS cor0
----
9 values hashing to 03b93b53107e36cf7d524e48c509b17b

query I rowsort
SELECT DISTINCT + + ( + 71 ) * col2 * ( cor0.col0 ) FROM tab0 AS cor0
----
2485
518158
56232

query I rowsort
SELECT DISTINCT col2 - - col0 AS col1 FROM tab1
----
121
176
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 - - col2 col1 FROM tab2
----
-41
-52
20

onlyif mysql # use DIV operator for integer division
query I rowsort label-3514
SELECT ( col1 ) DIV - col0 AS col1 FROM tab1
----
-8
0
0

skipif mysql # not compatible
query I rowsort label-3514
SELECT ( col1 ) / - col0 AS col1 FROM tab1
----
-8
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + col1 * - col2 col1 FROM tab0
----
244068
679042
9409

onlyif mysql # use DIV operator for integer division
query I rowsort label-3516
SELECT 58 DIV 67 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3516
SELECT 58 / 67 FROM tab0
----
0
0
0

query I rowsort
SELECT col1 * col1 - - col1 AS col2 FROM tab0 AS cor0
----
7482
8372
9506

query I rowsort
SELECT + 50 + - col2 AS col0 FROM tab1 AS cor0
----
-4
-46
-7

onlyif mysql # use DIV operator for integer division
query I rowsort label-3519
SELECT + tab0.col2 + - col1 * col1 * col0 + tab0.col2 DIV col0 col1 FROM tab0
----
-177470
-329314
-736927

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3519
SELECT + tab0.col2 + - col1 * col1 * col0 + tab0.col2 / col0 col1 FROM tab0
----
-177470
-329314
-736927

query I rowsort
SELECT DISTINCT ( - col2 ) - col0 FROM tab2
----
-104
-117
-34

query I rowsort
SELECT ALL - col2 * col1 - + col0 * + 28 AS col1 FROM tab2
----
-1033
-2858
-3718

query I rowsort
SELECT + 52 AS col1 FROM tab1
----
52
52
52

query I rowsort
SELECT DISTINCT col0 * + col2 + ( - col0 ) AS col2 FROM tab2 AS cor0
----
182
1950
2923

query I rowsort
SELECT ALL - col1 * + col0 * col2 + col0 - 62 FROM tab2 AS cor0
----
-119636
-51017
-5914

query I rowsort
SELECT ALL - col0 * col1 + 24 FROM tab2
----
-1319
-193
-4578

query I rowsort
SELECT + col2 - + tab0.col0 FROM tab0
----
-34
-7
9

query I rowsort
SELECT ALL 51 AS col2 FROM tab1
----
51
51
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * col2 * col2 col2 FROM tab0
----
26136
35
598436

query I rowsort
SELECT ALL 68 FROM tab2, tab0 AS cor0, tab1 cor1
----
27 values hashing to 10aa25f1c6b97582c34521ac6452e0b4

query I rowsort
SELECT ALL + col2 - 38 FROM tab2 cor0
----
-11
-12
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * col0 col1 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT ALL - col1 * + col0 AS col2 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT + col1 * col0 + + 70 FROM tab2 AS cor0
----
1413
287
4672

query I rowsort
SELECT col2 + + 86 AS col2 FROM tab1 AS cor0
----
140
143
182

query I rowsort
SELECT - 61 FROM tab1, tab1 cor0, tab2 AS cor1
----
27 values hashing to c91d7b51e91f33d302e697913fb438b6

query I rowsort
SELECT - col2 * ( - 15 ) AS col1 FROM tab1 cor0
----
1440
810
855

query I rowsort
SELECT 11 * + 26 AS col0 FROM tab2 cor0
----
286
286
286

query I rowsort
SELECT DISTINCT col1 * + cor0.col2 + col0 AS col1 FROM tab1 AS cor0
----
1328
1407
634

query I rowsort
SELECT DISTINCT - + cor0.col1 + col0 AS col1 FROM tab2 AS cor0
----
-24
19
62

query I rowsort
SELECT - 34 * + col1 AS col1 FROM tab1 AS cor0
----
-340
-442
-884

onlyif mysql # use DIV operator for integer division
query I rowsort label-3541
SELECT DISTINCT + + 14 DIV col0 FROM tab2 AS cor0
----
0
2

skipif mysql # not compatible
query I rowsort label-3541
SELECT DISTINCT + + 14 / col0 FROM tab2 AS cor0
----
0
2

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3542
SELECT DISTINCT - - CAST( NULL AS SIGNED ) / + cor0.col2 + col1 * 62 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3542
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) / + cor0.col2 + col1 * 62 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL - 39 * col0 + col2 AS col2 FROM tab0 cor0
----
-1364
-3389
-903

query I rowsort
SELECT ALL - + 24 - + ( + col2 ) FROM tab2 AS cor0
----
-50
-51
-62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 88 * col2 col1 FROM tab1 AS cor0
----
-4752
-5016
-8448

query I rowsort
SELECT ALL + 75 + col2 FROM tab2 cor0
----
101
102
113

query I rowsort
SELECT 28 * cor0.col0 + - cor0.col1 AS col0 FROM tab2 AS cor0
----
165
2125
2195

query I rowsort
SELECT DISTINCT 33 * + col2 AS col0 FROM tab1 AS cor0
----
1782
1881
3168

query I rowsort
SELECT DISTINCT - - 73 AS col2 FROM tab0 AS cor0
----
73

query I rowsort
SELECT - - 27 * - col0 FROM tab2 AS cor0
----
-189
-2106
-2133

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3551
SELECT DISTINCT + - CAST( - col0 AS SIGNED ) * + col1 + cor0.col0 AS col2 FROM tab0 cor0
----
2088
3430
8188

skipif mysql # not compatible
query I rowsort label-3551
SELECT DISTINCT + - CAST ( - col0 AS INTEGER ) * + col1 + cor0.col0 AS col2 FROM tab0 cor0
----
2088
3430
8188

query I rowsort
SELECT - - 80 + 4 FROM tab2 AS cor0
----
84
84
84

query I rowsort
SELECT ALL - + col0 * cor0.col2 AS col0 FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT ALL + + ( - col0 ) * col0 + - ( col1 ) * col1 FROM tab1 AS cor0
----
-4196
-6569
-685

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3555
SELECT - CAST( NULL AS SIGNED ) AS col0 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3555
SELECT - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - - col0 - - col1 AS col0 FROM tab0 AS cor0
----
110
132
180

query I rowsort
SELECT ALL - col0 * col0 * col0 FROM tab1 AS cor0
----
-262144
-27
-512000

onlyif mysql # use DIV operator for integer division
query I rowsort label-3558
SELECT + 3 DIV - tab1.col1 col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3558
SELECT + 3 / - tab1.col1 col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query I rowsort
SELECT ALL col1 * col1 * cor0.col1 + ( col2 ) AS col0 FROM tab2 cor0
----
205405
29818
4951

query I rowsort
SELECT DISTINCT col1 + col2 * + col1 * ( + 34 ) + + col2 FROM tab1 AS cor0
----
19447
42541
47816

query I rowsort
SELECT ( cor0.col0 ) * col0 + cor0.col2 AS col2 FROM tab2 AS cor0
----
6110
6279
76

query I rowsort
SELECT DISTINCT - ( - col2 ) * cor0.col1 AS col2 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT ALL + + cor0.col0 - + col2 FROM tab2 AS cor0
----
-20
41
52

query I rowsort
SELECT DISTINCT + - 60 FROM tab2 AS cor0
----
-60

query I rowsort
SELECT ALL - 47 + 35 FROM tab2 cor0
----
-12
-12
-12

query I rowsort
SELECT + col2 * + col2 + 31 AS col1 FROM tab2 AS cor0
----
1475
707
760

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3567
SELECT + - col1 * - col2 + + CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3567
SELECT + - col1 * - col2 + + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 56 AS col1 FROM tab1 cor0
----
56
56
56

query I rowsort
SELECT DISTINCT - ( - tab2.col0 ) + col0 * col0 FROM tab2
----
56
6162
6320

query I rowsort
SELECT DISTINCT - col1 * + col0 + - ( col2 ) + - col1 FROM tab1
----
-1149
-158
-707

query I rowsort
SELECT DISTINCT + - col0 * + cor0.col1 FROM tab0 cor0
----
-2064
-3395
-8099

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3572
SELECT cor0.col1 * col2 * + col2 + + col2 + + col1 * CAST( col0 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
3493
620065
95751

skipif mysql # not compatible
query I rowsort label-3572
SELECT cor0.col1 * col2 * + col2 + + col2 + + col1 * CAST ( col0 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
3493
620065
95751

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + cor0.col0 - col2 * + col1 * col2 col1 FROM tab1 AS cor0
----
-119888
-32554
-75819

query I rowsort
SELECT DISTINCT - 12 * col1 AS col1 FROM tab0 AS cor0
----
-1032
-1092
-1164

query I rowsort
SELECT 61 + col2 + cor0.col1 FROM tab1 cor0
----
128
141
170

query I rowsort
SELECT ALL - ( - 56 ) * col1 AS col1 FROM tab0
----
4816
5096
5432

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3577
SELECT ALL cor0.col0 + col2 * CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3577
SELECT ALL cor0.col0 + col2 * CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - ( - col2 ) - 79 FROM tab0 AS cor0
----
-46
-78
3

query I rowsort
SELECT ALL + - col0 * + col1 + + 2 AS col2 FROM tab0 AS cor0
----
-2062
-3393
-8097

query I rowsort
SELECT DISTINCT col0 + ( col0 ) * col1 * + 97 FROM tab0 cor0
----
200232
329350
785692

query I rowsort
SELECT DISTINCT + col2 - + 50 * - 64 * cor0.col2 AS col1 FROM tab1 AS cor0
----
172854
182457
307296

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 * - col2 + + col1 * col0 col2 FROM tab2 AS cor0
----
1054
1989
6136

query I rowsort
SELECT - - cor0.col2 * + col0 + + col1 FROM tab1 cor0
----
188
3658
7693

onlyif mysql # use DIV operator for integer division
query I rowsort label-3584
SELECT col1 * + ( + 3 ) + + cor0.col0 * 67 DIV col2 AS col0 FROM tab1 AS cor0
----
105
81
94

skipif mysql # not compatible
query I rowsort label-3584
SELECT col1 * + ( + 3 ) + + cor0.col0 * 67 / col2 AS col0 FROM tab1 AS cor0
----
105
81
94

query I rowsort
SELECT ALL - col2 + 81 * col2 FROM tab0 AS cor0
----
2640
6560
80

query I rowsort
SELECT DISTINCT 4 + col2 * + 53 + + tab2.col1 AS col0 FROM tab2
----
1441
1466
2035

query I rowsort
SELECT 46 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 31818c9d4d325eb248735c97cb1dce39

query I rowsort
SELECT ALL 53 + tab2.col2 + col1 AS col0 FROM tab2
----
108
111
138

query I rowsort
SELECT ALL - col1 * col1 * - col1 + + col2 FROM tab2
----
205405
29818
4951

query I rowsort
SELECT - - col1 + col1 AS col0 FROM tab0 cor0
----
172
182
194

query I rowsort
SELECT + col0 * col2 * col0 FROM tab2
----
1323
158184
237158

query I rowsort
SELECT col2 * col0 + col2 AS col0 FROM tab2
----
2054
216
3040

query I rowsort
SELECT DISTINCT cor0.col1 + col1 * + col0 FROM tab2 cor0
----
1360
248
4661

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + + cor0.col0 * + col0 col1 FROM tab0 AS cor0
----
1322
662
8012

query I rowsort
SELECT DISTINCT col0 + cor0.col1 * - col0 AS col2 FROM tab0 AS cor0
----
-2040
-3360
-8010

query I rowsort
SELECT DISTINCT + - col1 * col0 + col2 + col1 FROM tab2 cor0
----
-1288
-159
-4517

onlyif mysql # use DIV operator for integer division
query I rowsort label-3597
SELECT ALL + + col1 DIV cor0.col0 + col2 FROM tab2 AS cor0
----
26
31
38

skipif mysql # not compatible
query I rowsort label-3597
SELECT ALL + + col1 / cor0.col0 + col2 FROM tab2 AS cor0
----
26
31
38

query I rowsort
SELECT DISTINCT col2 * - col2 AS col2 FROM tab2
----
-1444
-676
-729

onlyif mysql # use DIV operator for integer division
query I rowsort label-3599
SELECT + col2 + col2 DIV cor0.col2 FROM tab1 AS cor0
----
55
58
97

skipif mysql # not compatible
query I rowsort label-3599
SELECT + col2 + col2 / cor0.col2 FROM tab1 AS cor0
----
55
58
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-3600
SELECT DISTINCT + col1 DIV col2 + col0 + + col0 AS col1 FROM tab0 AS cor0
----
167
179
50

skipif mysql # not compatible
query I rowsort label-3600
SELECT DISTINCT + col1 / col2 + col0 + + col0 AS col1 FROM tab0 AS cor0
----
167
179
50

query I rowsort
SELECT DISTINCT ( + tab1.col1 ) + col1 FROM tab1
----
20
26
52

query I rowsort
SELECT + 85 + tab2.col1 + - col0 AS col2 FROM tab2
----
109
23
66

onlyif mysql # use DIV operator for integer division
query I rowsort label-3603
SELECT DISTINCT + col1 * + col2 + - col1 * + col1 DIV col1 AS col2 FROM tab2 AS cor0
----
1475
629
806

skipif mysql # not compatible
query I rowsort label-3603
SELECT DISTINCT + col1 * + col2 + - col1 * + col1 / col1 AS col2 FROM tab2 AS cor0
----
1475
629
806

query I rowsort
SELECT - - cor0.col1 * col2 AS col2 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT ALL + col2 - col1 * + col0 AS col0 FROM tab2 cor0
----
-1305
-190
-4576

query I rowsort
SELECT - - 88 + + col2 FROM tab1 AS cor0
----
142
145
184

query I rowsort
SELECT ALL + col1 * + col1 + col0 AS col1 FROM tab0 AS cor0
----
7420
8370
9444

query I rowsort
SELECT - cor0.col2 * - col0 AS col1 FROM tab0 AS cor0
----
35
7298
792

onlyif mysql # use DIV operator for integer division
query I rowsort label-3609
SELECT 37 DIV col1 AS col2 FROM tab1
----
1
2
3

skipif mysql # not compatible
query I rowsort label-3609
SELECT 37 / col1 AS col2 FROM tab1
----
1
2
3

query I rowsort
SELECT DISTINCT - col1 + + tab1.col0 FROM tab1
----
-23
54
67

onlyif mysql # use DIV operator for integer division
query I rowsort label-3611
SELECT ALL col1 DIV - col0 AS col0 FROM tab1 AS cor0
----
-8
0
0

skipif mysql # not compatible
query I rowsort label-3611
SELECT ALL col1 / - col0 AS col0 FROM tab1 AS cor0
----
-8
0
0

query I rowsort
SELECT - col1 * col2 * col2 AS col2 FROM tab0
----
-611884
-93654
-97

query I rowsort
SELECT ALL - - col2 * cor0.col1 * - col1 + col0 FROM tab2 AS cor0
----
-10903
-25940
-90428

onlyif mysql # use DIV operator for integer division
query I rowsort label-3614
SELECT ALL + col2 DIV col2 col1 FROM tab0 AS cor0
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3614
SELECT ALL + col2 / col2 col1 FROM tab0 AS cor0
----
1
1
1

query I rowsort
SELECT DISTINCT + - col2 * - col2 + col2 FROM tab2 AS cor0
----
1482
702
756

query I rowsort
SELECT + col1 * - col2 + + col1 AS col1 FROM tab1 AS cor0
----
-1235
-1378
-560

query III rowsort
SELECT * FROM tab1 WHERE NOT col1 NOT IN ( col1 * col0 + col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * col1 * col1 + col2 col2 FROM tab2
----
-10944
-25920
-90480

query I rowsort
SELECT + col2 + - col0 * col2 AS col1 FROM tab0
----
-34
-7216
-759

query I rowsort
SELECT DISTINCT + col0 / col2 FROM tab1 WHERE + col1 = ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab0.col2 - - col1 * + col2 col0 FROM tab0
----
2871
7544
98

query I rowsort
SELECT - col0 * col1 + + col0 AS col1 FROM tab2
----
-1264
-210
-4524

query I rowsort
SELECT ALL col0 - + col1 FROM tab0
----
-2
-62
-62

query I rowsort
SELECT - col1 * col0 * col2 FROM tab0
----
-3395
-664118
-68112

onlyif mysql # use DIV operator for integer division
query I rowsort label-3625
SELECT ALL - col2 DIV + col2 AS col2 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-3625
SELECT ALL - col2 / + col2 AS col2 FROM tab1
----
-1
-1
-1

onlyif mysql # use DIV operator for integer division
query I rowsort label-3626
SELECT - tab0.col0 * col0 DIV col1 AS col1 FROM tab0
----
-12
-6
-87

skipif mysql # not compatible
query I rowsort label-3626
SELECT - tab0.col0 * col0 / col1 AS col1 FROM tab0
----
-12
-6
-87

onlyif mysql # use DIV operator for integer division
query I rowsort label-3627
SELECT DISTINCT - tab0.col1 DIV col2 AS col0 FROM tab0
----
-1
-2
-97

skipif mysql # not compatible
query I rowsort label-3627
SELECT DISTINCT - tab0.col1 / col2 AS col0 FROM tab0
----
-1
-2
-97

query I rowsort
SELECT DISTINCT col2 + col0 - - tab2.col2 AS col0 FROM tab2
----
130
155
61

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT IN ( - col1 )
----

query I rowsort
SELECT DISTINCT col0 + - col0 + col1 FROM tab0
----
86
91
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-3631
SELECT DISTINCT col1 DIV - col0 col1 FROM tab2
----
-4
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3631
SELECT DISTINCT col1 / - col0 col1 FROM tab2
----
-4
0

query I rowsort
SELECT col0 * col0 + 83 AS col2 FROM tab0 AS cor0
----
1308
659
8004

onlyif mysql # use DIV operator for integer division
query I rowsort label-3633
SELECT + col2 DIV col1 + col2 AS col0 FROM tab2
----
26
27
40

skipif mysql # not compatible
query I rowsort label-3633
SELECT + col2 / col1 + col2 AS col0 FROM tab2
----
26
27
40

onlyif mysql # use DIV operator for integer division
query I rowsort label-3634
SELECT DISTINCT col2 DIV - col0 + + col1 FROM tab0
----
85
91
97

skipif mysql # not compatible
query I rowsort label-3634
SELECT DISTINCT col2 / - col0 + + col1 FROM tab0
----
85
91
97

query I rowsort
SELECT + col2 * - col1 * - col0 FROM tab1 AS cor0
----
36480
4212
99840

onlyif mysql # use DIV operator for integer division
query I rowsort label-3636
SELECT col1 * col1 DIV col0 AS col1 FROM tab0 AS cor0
----
268
308
93

skipif mysql # not compatible
query I rowsort label-3636
SELECT col1 * col1 / col0 AS col1 FROM tab0 AS cor0
----
268
308
93

query I rowsort
SELECT DISTINCT col0 FROM tab2 AS cor0 WHERE NOT - col2 * + col0 + - col2 + col0 >= ( NULL )
----

query I rowsort
SELECT ALL col0 * col2 * col2 AS col1 FROM tab1
----
207936
737280
8748

query I rowsort
SELECT DISTINCT tab1.col0 * + col2 * + col0 AS col2 FROM tab1
----
233472
486
614400

query I rowsort
SELECT DISTINCT col0 * - tab2.col2 * + col2 FROM tab2
----
-114076
-5103
-52728

query I rowsort
SELECT ALL - col2 * tab2.col1 FROM tab2
----
-1534
-646
-837

query I rowsort
SELECT DISTINCT col1 * + tab1.col0 AS col1 FROM tab1
----
1040
640
78

query I rowsort
SELECT + col1 * - col2 - col1 AS col1 FROM tab1
----
-1261
-1430
-580

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * + col0 + col2 * col1 - - col0 * - col2 col1 FROM tab2
----
-6578
-8597
599

query I rowsort
SELECT col2 * col0 + + col1 AS col0 FROM tab1
----
188
3658
7693

query I rowsort
SELECT + col2 - - tab2.col1 AS col1 FROM tab2 WHERE NULL IN ( col2 * + col2 * + tab2.col0 )
----

query I rowsort
SELECT ALL - tab2.col0 + - col1 FROM tab2
----
-137
-38
-96

query I rowsort
SELECT DISTINCT - col2 / - col2 AS col2 FROM tab0 WHERE NOT col2 + + col1 NOT BETWEEN col2 AND ( col1 )
----

query I rowsort
SELECT - 50 * col2 + + col0 * col1 FROM tab2
----
-1133
-557
3302

query I rowsort
SELECT ALL + + 38 + + cor0.col0 FROM tab1 cor0
----
102
118
41

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3651
SELECT DISTINCT ( col0 ) * CAST( - 11 AS SIGNED ) FROM tab2 AS cor0
----
-77
-858
-869

skipif mysql # not compatible
query I rowsort label-3651
SELECT DISTINCT ( col0 ) * CAST ( - 11 AS INTEGER ) FROM tab2 AS cor0
----
-77
-858
-869

query I rowsort
SELECT ALL + + col1 + - col0 FROM tab0 AS cor0
----
2
62
62

query I rowsort
SELECT + + col0 + - col0 AS col2 FROM tab2 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col0 col2 FROM tab1 cor0
----
-3
-64
-80

query I rowsort
SELECT - col2 * - col2 + 1 AS col2 FROM tab2 cor0
----
1445
677
730

query I rowsort
SELECT 31 AS col1 FROM tab2 AS cor0
----
31
31
31

query I rowsort
SELECT ( col1 ) * + col1 AS col1 FROM tab0 cor0
----
7396
8281
9409

query I rowsort
SELECT DISTINCT - + cor0.col2 AS col0 FROM tab2 cor0
----
-26
-27
-38

query I rowsort
SELECT + cor0.col1 * col0 FROM tab2 cor0
----
1343
217
4602

query I rowsort
SELECT DISTINCT - col1 * - cor0.col0 + - col0 FROM tab0 AS cor0
----
2040
3360
8010

onlyif mysql # use DIV operator for integer division
query I rowsort label-3661
SELECT DISTINCT col1 * 52 + col1 * col2 * col2 + col0 DIV - col1 FROM tab0 AS cor0
----
5141
616616
98126

skipif mysql # not compatible
query I rowsort label-3661
SELECT DISTINCT col1 * 52 + col1 * col2 * col2 + col0 / - col1 FROM tab0 AS cor0
----
5141
616616
98126

query I rowsort
SELECT DISTINCT col0 * + ( 99 ) - - col2 AS col2 FROM tab2 AS cor0
----
720
7748
7859

query I rowsort
SELECT - + col0 + col1 * col2 FROM tab0 AS cor0
----
2814
62
7373

query I rowsort
SELECT + 18 * + col2 + tab1.col0 * col0 AS col0 FROM tab1
----
5122
8128
981

query I rowsort
SELECT DISTINCT - col0 * 3 FROM tab2 AS cor0
----
-21
-234
-237

query I rowsort
SELECT + 10 * col0 AS col0 FROM tab1 AS cor0
----
30
640
800

query I rowsort
SELECT cor0.col2 * - 47 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to a19046e89e1a318ab449feea3ce043a7

query I rowsort
SELECT + + col2 + ( col2 ) FROM tab1 AS cor0
----
108
114
192

query I rowsort
SELECT tab1.col2 * 19 * col2 AS col1 FROM tab1
----
175104
55404
61731

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3670
SELECT ALL col0 / + CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3670
SELECT ALL col0 / + CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT ( cor0.col2 ) AS col1 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT ALL + 67 * col2 AS col2 FROM tab1 AS cor0
----
3618
3819
6432

query I rowsort
SELECT col2 * + 66 * - col2 FROM tab2
----
-44616
-48114
-95304

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - col1 col2 FROM tab2
----
-1343
-217
-4602

skipif mysql # not compatible
query I rowsort
SELECT CAST ( + col0 AS REAL ) FROM tab2
----
7
78
79

query I rowsort
SELECT ALL - col2 + - col2 * ( + col0 ) * - col1 FROM tab2 AS cor0
----
119626
50996
5832

onlyif mysql # use DIV operator for integer division
query I rowsort label-3677
SELECT ALL - col1 DIV - col1 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3677
SELECT ALL - col1 / - col1 FROM tab1 AS cor0
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 81 * + 65 col0 FROM tab2
----
5265
5265
5265

onlyif mysql # use DIV operator for integer division
query I rowsort label-3679
SELECT ALL + col1 DIV + 5 + - col2 FROM tab0
----
-16
-64
18

skipif mysql # not compatible
query I rowsort label-3679
SELECT ALL + col1 / + 5 + - col2 FROM tab0
----
-16
-64
18

query I rowsort
SELECT - - cor0.col1 FROM tab0, tab2 AS cor0
----
9 values hashing to c61d27a0022e6d022371dc58819ab272

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 16 + - col0 col2 FROM tab2
----
-62
-63
9

onlyif mysql # use DIV operator for integer division
query I rowsort label-3682
SELECT ALL 21 DIV col0 + col2 * - col2 AS col2 FROM tab1
----
-2909
-3249
-9216

skipif mysql # not compatible
query I rowsort label-3682
SELECT ALL 21 / col0 + col2 * - col2 AS col2 FROM tab1
----
-2909
-3249
-9216

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 50 - + col0 col0 FROM tab2
----
-28
-29
43

query I rowsort
SELECT DISTINCT + 97 AS col2 FROM tab0, tab0 AS cor0
----
97

query I rowsort
SELECT ALL - 78 * col0 FROM tab1 cor0
----
-234
-4992
-6240

query I rowsort
SELECT DISTINCT + + col0 * col0 * + 27 + col2 FROM tab1 AS cor0
----
110649
172896
297

query I rowsort
SELECT DISTINCT - + 59 * - col1 FROM tab1 AS cor0
----
1534
590
767

query I rowsort
SELECT DISTINCT ( 88 ) + + col0 + + ( 43 ) FROM tab2
----
138
209
210

query I rowsort
SELECT 64 * + col0 FROM tab0
----
1536
2240
5696

onlyif mysql # use DIV operator for integer division
query I rowsort label-3690
SELECT + col1 + + col2 * ( col2 + col0 ) DIV + 16 AS col0 FROM tab1 AS cor0
----
1069
218
441

skipif mysql # not compatible
query I rowsort label-3690
SELECT + col1 + + col2 * ( col2 + col0 ) / + 16 AS col0 FROM tab1 AS cor0
----
1069
218
441

query I rowsort
SELECT DISTINCT + - 90 * col2 AS col2 FROM tab2 AS cor0
----
-2340
-2430
-3420

query I rowsort
SELECT ALL + - col0 * - cor0.col0 FROM tab0 AS cor0
----
1225
576
7921

query I rowsort
SELECT - col0 * - col2 * col1 AS col1 FROM tab0 AS cor0
----
3395
664118
68112

onlyif mysql # use DIV operator for integer division
query I rowsort label-3694
SELECT + tab0.col2 DIV + 95 + + col2 + tab0.col2 AS col1 FROM tab0
----
164
2
66

skipif mysql # not compatible
query I rowsort label-3694
SELECT + tab0.col2 / + 95 + + col2 + tab0.col2 AS col1 FROM tab0
----
164
2
66

onlyif mysql # use DIV operator for integer division
query I rowsort label-3695
SELECT ALL + - col1 + - ( col0 ) DIV + col0 + ( - col0 ) AS col1 FROM tab1 cor0
----
-30
-75
-94

skipif mysql # not compatible
query I rowsort label-3695
SELECT ALL + - col1 + - ( col0 ) / + col0 + ( - col0 ) AS col1 FROM tab1 cor0
----
-30
-75
-94

query I rowsort
SELECT DISTINCT + col1 * ( - cor0.col2 ) - + col0 FROM tab2 AS cor0
----
-1612
-725
-844

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + col2 * col2 * + 77 col0 FROM tab2 AS cor0
----
111226
52078
56160

query I rowsort
SELECT DISTINCT + col1 * col0 + col2 AS col2 FROM tab0 AS cor0
----
2097
3396
8181

query I rowsort
SELECT DISTINCT - ( 29 ) AS col1 FROM tab1 AS cor0
----
-29

query I rowsort
SELECT DISTINCT 76 + col0 * col1 AS col1 FROM tab1 AS cor0
----
1116
154
716

query I rowsort
SELECT + ( ( - col0 ) ) FROM tab0 AS cor0
----
-24
-35
-89

query I rowsort
SELECT - + 87 * col1 + + col2 AS col2 FROM tab2 cor0
----
-1441
-2670
-5107

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3703
SELECT - CAST( NULL AS SIGNED ) + col0 - - col2 * - 95 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-3703
SELECT - CAST ( NULL AS INTEGER ) + col0 - - col2 * - 95 col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + ( 17 ) + + col1 * - col1 AS col0 FROM tab1 AS cor0
----
-152
-659
-83

query I rowsort
SELECT DISTINCT col0 * cor0.col1 + + cor0.col0 * 63 + - cor0.col0 FROM tab1 AS cor0
----
264
4608
6000

query I rowsort
SELECT + ( col2 ) + + col0 AS col1 FROM tab0 cor0
----
171
36
57

query I rowsort
SELECT ALL - + ( 59 ) * col1 + + 25 * 41 + col1 AS col0 FROM tab1 AS cor0
----
-483
271
445

query I rowsort
SELECT + 29 AS col2 FROM tab0 AS cor0
----
29
29
29

query I rowsort
SELECT DISTINCT + col0 + - col2 * - col1 + + col0 FROM tab2 cor0
----
1690
804
851

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3710
SELECT DISTINCT - + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3710
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 2 col2 FROM tab1 AS cor0
----
-2
-2
-2

query I rowsort
SELECT ALL - col1 + + col0 * + col0 FROM tab0 AS cor0
----
1128
490
7830

query I rowsort
SELECT col2 - - 80 FROM tab0 cor0
----
113
162
81

query I rowsort
SELECT ALL + + 29 + col2 * - col2 FROM tab1 AS cor0
----
-2887
-3220
-9187

onlyif mysql # use DIV operator for integer division
query I rowsort label-3715
SELECT ALL + + 82 DIV col0 col0 FROM tab0 AS cor0
----
0
2
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3715
SELECT ALL + + 82 / col0 col0 FROM tab0 AS cor0
----
0
2
3

query I rowsort
SELECT + - cor0.col1 + col1 * cor0.col2 + col0 AS col1 FROM tab2 AS cor0
----
1553
708
813

query I rowsort
SELECT DISTINCT + + col1 * - col2 AS col2 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT ALL col2 + - 20 FROM tab1 AS cor0
----
34
37
76

query I rowsort
SELECT - - 85 + - 7 FROM tab0 AS cor0
----
78
78
78

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3720
SELECT ALL - CAST( - col2 AS SIGNED ) FROM tab2 cor0
----
26
27
38

skipif mysql # not compatible
query I rowsort label-3720
SELECT ALL - CAST ( - col2 AS INTEGER ) FROM tab2 cor0
----
26
27
38

query I rowsort
SELECT DISTINCT + 26 AS col1 FROM tab0 AS cor0
----
26

query I rowsort
SELECT ALL col2 * + col0 AS col1 FROM tab0 cor0
----
35
7298
792

query I rowsort
SELECT ALL 57 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 220a93709e207779b34ef74b544764a5

query I rowsort
SELECT DISTINCT col0 * tab0.col2 AS col2 FROM tab0
----
35
7298
792

query I rowsort
SELECT - + col1 + col2 + col1 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT + col0 + - 30 AS col1 FROM tab0 AS cor0
----
-6
5
59

skipif mysql # not compatible
query I rowsort
SELECT - CAST ( - col2 AS REAL ) + + col1 + - col2 AS col2 FROM tab2 AS cor0
----
17
31
59

query I rowsort
SELECT 69 FROM tab2 cor0
----
69
69
69

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3729
SELECT CAST( NULL AS DECIMAL ) / col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3729
SELECT CAST ( NULL AS REAL ) / col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col0 * 84 FROM tab0
----
2016
2940
7476

query I rowsort
SELECT + 58 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to ef6e63aeed2581a168f07646d258f666

query I rowsort
SELECT ALL + ( col1 ) * + col1 + col0 AS col0 FROM tab2 AS cor0
----
3559
368
968

query I rowsort
SELECT DISTINCT - + 40 + cor0.col2 * + cor0.col1 FROM tab2 AS cor0
----
1494
606
797

onlyif mysql # use DIV operator for integer division
query I rowsort label-3734
SELECT DISTINCT col1 DIV - 60 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-3734
SELECT DISTINCT col1 / - 60 FROM tab2
----
0

query I rowsort
SELECT - 25 FROM tab1, tab1 AS cor0
----
9 values hashing to 40ac8fd000b2e49317aed2411077839e

onlyif mysql # use DIV operator for integer division
query I rowsort label-3736
SELECT + col1 * 8 + col2 * 14 DIV col1 FROM tab0
----
693
740
776

skipif mysql # not compatible
query I rowsort label-3736
SELECT + col1 * 8 + col2 * 14 / col1 FROM tab0
----
693
740
776

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3737
SELECT ALL + CAST( NULL AS SIGNED ) * + col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3737
SELECT ALL + CAST ( NULL AS INTEGER ) * + col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT - 56 * + tab1.col2 * 66 FROM tab1
----
-199584
-210672
-354816

query I rowsort
SELECT DISTINCT col0 + + col1 + ( col0 ) AS col0 FROM tab2
----
175
215
45

query I rowsort
SELECT cor0.col1 AS col0 FROM tab0, tab1 cor0
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775

query I rowsort
SELECT ALL col1 * + col0 + 33 + - col0 FROM tab2
----
1297
243
4557

query I rowsort
SELECT col0 + + col1 + + 78 AS col0 FROM tab2 AS cor0
----
116
174
215

query I rowsort
SELECT ALL + + col0 + + col1 * - col2 AS col1 FROM tab1 cor0
----
-1168
-1401
-506

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3744
SELECT ALL CAST( NULL AS SIGNED ) col2 FROM tab2 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-3744
SELECT ALL CAST ( NULL AS INTEGER ) col2 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT - - col2 + ( 67 ) * - col1 AS col0 FROM tab1 cor0
----
-1688
-613
-775

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - cor0.col0 col2 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT DISTINCT - col0 * - ( col2 ) + - col2 FROM tab0 AS cor0
----
34
7216
759

query I rowsort
SELECT DISTINCT - 61 AS col2 FROM tab0
----
-61

query I rowsort
SELECT - + col1 * - col2 - 28 FROM tab0 AS cor0
----
2810
69
7434

onlyif mysql # use DIV operator for integer division
query I rowsort label-3750
SELECT DISTINCT - + cor0.col0 * + col0 + - col0 * col1 DIV 88 FROM tab0 AS cor0
----
-1263
-599
-8013

skipif mysql # not compatible
query I rowsort label-3750
SELECT DISTINCT - + cor0.col0 * + col0 + - col0 * col1 / 88 FROM tab0 AS cor0
----
-1263
-599
-8013

query I rowsort
SELECT + col1 * - col0 + col0 FROM tab1 AS cor0
----
-576
-75
-960

query I rowsort
SELECT ALL + + col1 + 86 AS col2 FROM tab1 cor0
----
112
96
99

query I rowsort
SELECT DISTINCT col0 * + 6 FROM tab1 AS cor0
----
18
384
480

query I rowsort
SELECT ALL + - col1 + - col0 * + col1 FROM tab2 AS cor0
----
-1360
-248
-4661

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + - col1 + col0 col2 FROM tab1 AS cor0
----
111
163
31

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3756
SELECT ALL ( col0 * - CAST( NULL AS SIGNED ) ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3756
SELECT ALL ( col0 * - CAST ( NULL AS INTEGER ) ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT 11 AS col1 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 69116737f3f57e2e3273f6dbb04d036c

query I rowsort
SELECT DISTINCT + ( cor1.col2 ) + - 2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
24
25
36

query I rowsort
SELECT ALL + col1 - tab0.col2 AS col0 FROM tab0
----
53
9
96

query I rowsort
SELECT DISTINCT + + 11 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
11

onlyif mysql # use DIV operator for integer division
query I rowsort label-3761
SELECT + col1 DIV 69 - + cor0.col1 AS col0 FROM tab0 AS cor0
----
-85
-90
-96

skipif mysql # not compatible
query I rowsort label-3761
SELECT + col1 / 69 - + cor0.col1 AS col0 FROM tab0 AS cor0
----
-85
-90
-96

query I rowsort
SELECT - - col1 * ( ( col1 ) ) + 44 + - 14 FROM tab1 AS cor0
----
130
199
706

query I rowsort
SELECT + cor0.col2 * + col0 * + col1 AS col1 FROM tab1 AS cor0
----
36480
4212
99840

query I rowsort
SELECT ALL ( 79 ) AS col2 FROM tab2
----
79
79
79

query I rowsort
SELECT col1 + - 94 * col1 FROM tab1 AS cor0
----
-1209
-2418
-930

query I rowsort
SELECT - + cor0.col0 + col0 AS col1 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT + cor0.col0 + - 32 FROM tab1 AS cor0
----
-29
32
48

query I rowsort
SELECT + ( col0 ) + col2 AS col0 FROM tab0 AS cor0
----
171
36
57

query I rowsort
SELECT - ( cor1.col1 ) FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to c7890469eabb2c6fc81454b35d2333b6

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3770
SELECT DISTINCT + CAST( NULL AS SIGNED ) + cor0.col2 AS col1 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-3770
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + cor0.col2 AS col1 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
NULL

query I rowsort
SELECT ALL - cor1.col2 FROM tab2, tab2 cor0, tab2 AS cor1
----
27 values hashing to f9d4bb8677db7b98c7ed89d06e6e8cd6

query I rowsort
SELECT 24 AS col2 FROM tab0 cor0
----
24
24
24

query I rowsort
SELECT DISTINCT + - col1 + - col2 + - ( 26 + - cor0.col0 ) FROM tab0 AS cor0
----
-110
-121
-89

onlyif mysql # use DIV operator for integer division
query I rowsort label-3774
SELECT ALL + - col2 DIV + col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3774
SELECT ALL + - col2 / + col1 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-3775
SELECT - cor0.col0 + ( + col0 ) * col2 DIV col1 AS col1 FROM tab0 AS cor0
----
-15
-35
-9

skipif mysql # not compatible
query I rowsort label-3775
SELECT - cor0.col0 + ( + col0 ) * col2 / col1 AS col1 FROM tab0 AS cor0
----
-15
-35
-9

query I rowsort
SELECT - col2 * + 69 FROM tab2 AS cor0
----
-1794
-1863
-2622

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3777
SELECT - - cor0.col2 + - CAST( NULL AS SIGNED ) / + col2 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3777
SELECT - - cor0.col2 + - CAST ( NULL AS INTEGER ) / + col2 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col1 * + 66 * + col2 + tab1.col0 AS col1 FROM tab1
----
37684
82448
92667

query I rowsort
SELECT - 15 * + col2 AS col0 FROM tab1 AS cor0
----
-1440
-810
-855

query I rowsort
SELECT + ( cor0.col0 ) FROM tab2, tab1 AS cor0
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870

query I rowsort
SELECT ALL - 36 AS col0 FROM tab2 cor0
----
-36
-36
-36

query I rowsort
SELECT + ( - 29 ) AS col1 FROM tab0 AS cor0
----
-29
-29
-29

query I rowsort
SELECT DISTINCT - col2 + col0 * - cor0.col0 * + col1 - col0 AS col0 FROM tab1 AS cor0
----
-291
-41081
-83376

query I rowsort
SELECT DISTINCT + col1 * col2 * + col0 + + col1 AS col2 FROM tab0 AS cor0
----
3492
664209
68198

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab2 AS cor0, tab1 cor1, tab1, tab0 AS cor2
----
3645 values hashing to f99537dcc805430f79ac82ef70a4bd59

query I rowsort
SELECT 46 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 31818c9d4d325eb248735c97cb1dce39

query I rowsort
SELECT - ( col1 ) * col1 + 82 FROM tab0 AS cor0
----
-7314
-8199
-9327

query I rowsort
SELECT 55 * - col2 * col0 + 17 AS col1 FROM tab2 AS cor0
----
-10378
-111523
-165093

query I rowsort
SELECT ALL + 17 * + col2 + - col2 AS col0 FROM tab0 AS cor0
----
1312
16
528

query I rowsort
SELECT + ( + col1 ) - - 59 FROM tab2 cor0
----
118
76
90

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3791
SELECT - + col1 * - col0 - CAST( col1 AS SIGNED ) FROM tab2 AS cor0
----
1326
186
4543

skipif mysql # not compatible
query I rowsort label-3791
SELECT - + col1 * - col0 - CAST ( col1 AS INTEGER ) FROM tab2 AS cor0
----
1326
186
4543

query I rowsort
SELECT DISTINCT - col2 - + col1 FROM tab0
----
-119
-173
-98

query I rowsort
SELECT DISTINCT tab1.col0 AS col2 FROM tab1, tab2, tab2 cor0
----
3
64
80

query I rowsort
SELECT - col1 * + col1 + + col2 + col1 AS col2 FROM tab1
----
-33
-596
-60

query I rowsort
SELECT DISTINCT col1 * + tab2.col0 + col2 * col2 - - tab2.col2 FROM tab2
----
2825
5304
973

query I rowsort
SELECT ALL 33 * col1 * + 74 FROM tab2 AS cor0
----
144078
41514
75702

onlyif mysql # use DIV operator for integer division
query I rowsort label-3797
SELECT DISTINCT + + cor0.col2 DIV col0 AS col2 FROM tab1 AS cor0
----
0
1
18

skipif mysql # not compatible
query I rowsort label-3797
SELECT DISTINCT + + cor0.col2 / col0 AS col2 FROM tab1 AS cor0
----
0
1
18

query I rowsort
SELECT - col1 * - col1 - - col0 AS col0 FROM tab2 AS cor0
----
3559
368
968

query I rowsort
SELECT + - 43 * - col0 AS col0 FROM tab1 AS cor0
----
129
2752
3440

query I rowsort
SELECT - + cor0.col0 + - col1 * col0 AS col2 FROM tab1 AS cor0
----
-1120
-704
-81

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3801
SELECT - col0 - - CAST( - col2 AS SIGNED ) FROM tab1 AS cor0
----
-121
-176
-57

skipif mysql # not compatible
query I rowsort label-3801
SELECT - col0 - - CAST ( - col2 AS INTEGER ) FROM tab1 AS cor0
----
-121
-176
-57

onlyif mysql # use DIV operator for integer division
query I rowsort label-3802
SELECT ALL - col2 DIV + 9 FROM tab2 AS cor0
----
-2
-3
-4

skipif mysql # not compatible
query I rowsort label-3802
SELECT ALL - col2 / + 9 FROM tab2 AS cor0
----
-2
-3
-4

query I rowsort
SELECT DISTINCT - cor0.col0 * col2 FROM tab2 cor0
----
-189
-2028
-3002

query I rowsort
SELECT + + cor0.col2 * 23 FROM tab2 AS cor0
----
598
621
874

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + - 85 col2 FROM tab2 AS cor0
----
-6
-7
-78

query I rowsort
SELECT ALL + - cor0.col2 * - 72 FROM tab1 cor0
----
3888
4104
6912

onlyif mysql # use DIV operator for integer division
query I rowsort label-3807
SELECT col0 DIV + tab2.col1 AS col0 FROM tab2
----
0
1
4

skipif mysql # not compatible
query I rowsort label-3807
SELECT col0 / + tab2.col1 AS col0 FROM tab2
----
0
1
4

query I rowsort
SELECT DISTINCT - cor0.col0 * ( col1 ) + + col2 FROM tab1 AS cor0
----
-24
-583
-944

query I rowsort
SELECT DISTINCT - col2 * + ( + col1 ) AS col1 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT + col0 * + 30 AS col2 FROM tab2 AS cor0
----
210
2340
2370

query I rowsort
SELECT DISTINCT + col2 + + 22 * 1 FROM tab0 cor0
----
104
23
55

query I rowsort
SELECT ALL - col2 + col1 * 54 AS col2 FROM tab0 AS cor0
----
4611
4832
5237

query I rowsort
SELECT cor0.col1 + col1 * 72 * col1 AS col1 FROM tab1 AS cor0
----
12181
48698
7210

query I rowsort
SELECT ALL - col1 + col1 * ( col1 ) FROM tab0 AS cor0
----
7310
8190
9312

query I rowsort
SELECT DISTINCT 78 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
78

query I rowsort
SELECT - col1 * + col0 * + col0 - col2 FROM tab2
----
-106135
-1546
-358982

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col2 * + 27 * 42 col1 FROM tab2 AS cor0
----
29484
30618
43092

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3818
SELECT + col1 * CAST( NULL AS DECIMAL ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3818
SELECT + col1 * CAST ( NULL AS REAL ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col1 * + 98 * col2 + tab1.col0 * - col2 FROM tab1
----
114624
137430
52212

query I rowsort
SELECT + col0 * col2 + tab2.col0 + - col0 * col1 FROM tab2
----
-21
-2496
1738

onlyif mysql # use DIV operator for integer division
query I rowsort label-3821
SELECT + col1 DIV + col0 + col0 * col1 * col0 FROM tab1
----
242
40960
83200

skipif mysql # not compatible
query I rowsort label-3821
SELECT + col1 / + col0 + col0 * col1 * col0 FROM tab1
----
242
40960
83200

query I rowsort
SELECT 42 + - col2 * col1 * 72 FROM tab0 AS cor0
----
-204294
-537222
-6942

query I rowsort
SELECT DISTINCT - col2 * 99 + col1 FROM tab0
----
-2
-3181
-8027

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab0.col2 + - 59 col1 FROM tab0
----
-26
-58
23

onlyif mysql # use DIV operator for integer division
query I rowsort label-3825
SELECT ALL col2 * + 62 * col1 + + col0 DIV ( col0 * - tab2.col0 ) AS col0 FROM tab2
----
40052
51894
95108

skipif mysql # not compatible
query I rowsort label-3825
SELECT ALL col2 * + 62 * col1 + + col0 / ( col0 * - tab2.col0 ) AS col0 FROM tab2
----
40052
51894
95108

query I rowsort
SELECT ALL + 67 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to b56f8a4f1fcebc9802481256df61e97c

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3827
SELECT tab2.col0 * CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3827
SELECT tab2.col0 * CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col0 + + 57 AS col0 FROM tab0
----
-32
22
33

query I rowsort
SELECT 13 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to a90d0f37cec603ae1bc0a60dc7fbaeed

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 15 + col0 col2 FROM tab0 AS cor0
----
104
39
50

query I rowsort
SELECT DISTINCT - cor0.col1 - col2 * col1 AS col1 FROM tab0 AS cor0
----
-194
-2924
-7553

onlyif mysql # use DIV operator for integer division
query I rowsort label-3832
SELECT ALL col2 * col2 DIV col1 AS col0 FROM tab0
----
0
12
73

skipif mysql # not compatible
query I rowsort label-3832
SELECT ALL col2 * col2 / col1 AS col0 FROM tab0
----
0
12
73

query I rowsort
SELECT DISTINCT + 80 * col2 + cor0.col2 AS col1 FROM tab1 AS cor0
----
4374
4617
7776

query I rowsort
SELECT ALL - + col1 * col0 + + 92 * + col0 AS col2 FROM tab1 AS cor0
----
198
5248
6320

query I rowsort
SELECT DISTINCT - col0 + col0 AS col2 FROM tab2 cor0
----
0

query I rowsort
SELECT ALL ( col2 ) + + 4 * col1 FROM tab0 AS cor0
----
377
389
446

query I rowsort
SELECT DISTINCT + + col1 * - col0 * col0 AS col0 FROM tab0 AS cor0
----
-118825
-49536
-720811

query I rowsort
SELECT ALL + ( 38 ) FROM tab2
----
38
38
38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + - col2 * - col0 col0 FROM tab2
----
162
2002
2964

query I rowsort
SELECT ALL ( - col2 + col2 ) * + ( tab0.col2 ) AS col2 FROM tab0
----
0
0
0

query I rowsort
SELECT DISTINCT + col0 * cor0.col2 + ( col0 ) FROM tab1 cor0
----
165
3712
7760

query I rowsort
SELECT ALL - - 68 * col2 AS col0 FROM tab1 AS cor0
----
3672
3876
6528

onlyif mysql # use DIV operator for integer division
query I rowsort label-3843
SELECT ALL + col2 DIV col0 AS col0 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-3843
SELECT ALL + col2 / col0 AS col0 FROM tab0 AS cor0
----
0
0
1

query I rowsort
SELECT ALL 5 + - col0 * + ( col1 ) FROM tab0 AS cor0
----
-2059
-3390
-8094

query I rowsort
SELECT - - col0 * col1 AS col0 FROM tab0 cor0
----
2064
3395
8099

onlyif mysql # use DIV operator for integer division
query I rowsort label-3846
SELECT ALL + cor0.col0 DIV col1 AS col2 FROM tab1 AS cor0
----
0
6
6

skipif mysql # not compatible
query I rowsort label-3846
SELECT ALL + cor0.col0 / col1 AS col2 FROM tab1 AS cor0
----
0
6
6

query I rowsort
SELECT 6 AS col1 FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to f1e8f0199f3714ee8fcc24ce0cc3ea04

query I rowsort
SELECT 5 * + col1 FROM tab0
----
430
455
485

onlyif mysql # use DIV operator for integer division
query I rowsort label-3849
SELECT ALL + ( - col2 * col2 ) + ( - 20 ) DIV - col0 AS col2 FROM tab1
----
-2910
-3249
-9216

skipif mysql # not compatible
query I rowsort label-3849
SELECT ALL + ( - col2 * col2 ) + ( - 20 ) / - col0 AS col2 FROM tab1
----
-2910
-3249
-9216

onlyif mysql # use DIV operator for integer division
query I rowsort label-3850
SELECT DISTINCT + col1 * - col1 * col1 + ( + 98 ) DIV col0 FROM tab1
----
-17544
-2196
-999

skipif mysql # not compatible
query I rowsort label-3850
SELECT DISTINCT + col1 * - col1 * col1 + ( + 98 ) / col0 FROM tab1
----
-17544
-2196
-999

query I rowsort
SELECT ALL 65 + - tab2.col0 FROM tab2
----
-13
-14
58

query I rowsort
SELECT ALL - col1 + - col2 - col0 AS col0 FROM tab0 AS cor0
----
-133
-143
-262

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2, tab2 cor0, tab2 AS cor1, tab1, tab1 cor2
----
3645 values hashing to fb3687512d3714969d7c6afc5561ed79

query I rowsort
SELECT col2 * 68 AS col0 FROM tab2 cor0
----
1768
1836
2584

query I rowsort
SELECT DISTINCT col1 * - col0 + col1 * col1 - col1 * + cor0.col2 AS col0 FROM tab2 AS cor0
----
-1700
-2655
-93

query I rowsort
SELECT DISTINCT ( 26 ) * col1 + col1 + - cor0.col0 AS col0 FROM tab2 AS cor0
----
1515
380
830

query I rowsort
SELECT - col1 - - col0 * + cor0.col1 AS col1 FROM tab0 cor0
----
1978
3298
8008

query I rowsort
SELECT - 68 - col2 FROM tab1 AS cor0
----
-122
-125
-164

query I rowsort
SELECT ALL col1 * - cor0.col2 AS col0 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT - col0 * - col0 + col1 AS col0 FROM tab0 AS cor0
----
1322
662
8012

query I rowsort
SELECT ALL - 83 FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to 77a48ad722db122f51d5ef36604ad843

onlyif mysql # use DIV operator for integer division
query I rowsort label-3862
SELECT DISTINCT 76 + - col1 DIV col2 col2 FROM tab1
----
76

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3862
SELECT DISTINCT 76 + - col1 / col2 col2 FROM tab1
----
76

query I rowsort
SELECT DISTINCT + col0 * + col2 * + col2 + col2 AS col2 FROM tab2
----
114114
5130
52754

query I rowsort
SELECT col0 * - cor0.col0 + - col1 AS col0 FROM tab2 AS cor0
----
-6143
-6258
-80

query I rowsort
SELECT 1 + + col2 * ( 49 * - cor0.col1 ) AS col1 FROM tab0 cor0
----
-139061
-365637
-4752

onlyif mysql # use DIV operator for integer division
query I rowsort label-3866
SELECT - col2 + + col2 * 83 DIV 79 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3866
SELECT - col2 + + col2 * 83 / 79 FROM tab2 AS cor0
----
1
1
1

query I rowsort
SELECT ALL col2 * - col0 + + col1 AS col0 FROM tab1 AS cor0
----
-136
-3638
-7667

query I rowsort
SELECT DISTINCT - col1 * - col2 AS col2 FROM tab1 cor0
----
1248
1404
570

onlyif mysql # use DIV operator for integer division
query I rowsort label-3869
SELECT DISTINCT col1 + + 30 DIV + ( col2 ) FROM tab0 AS cor0
----
127
86
91

skipif mysql # not compatible
query I rowsort label-3869
SELECT DISTINCT col1 + + 30 / + ( col2 ) FROM tab0 AS cor0
----
127
86
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col2 - - 57 col1 FROM tab1 AS cor0
----
111
114
153

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col1 * 39 col0 FROM tab2 cor0
----
1209
2301
663

query I rowsort
SELECT + - col2 + + 22 * col0 FROM tab1 AS cor0
----
12
1351
1664

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3873
SELECT DISTINCT CAST( NULL AS DECIMAL ) * 14 AS col0 FROM tab2, tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3873
SELECT DISTINCT CAST ( NULL AS REAL ) * 14 AS col0 FROM tab2, tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * 72 * col1 col1 FROM tab1
----
46080
5616
74880

onlyif mysql # use DIV operator for integer division
query I rowsort label-3875
SELECT - + col0 DIV - 67 FROM tab2 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-3875
SELECT - + col0 / - 67 FROM tab2 AS cor0
----
0
1
1

query I rowsort
SELECT col1 * ( 79 ) FROM tab1 AS cor0
----
1027
2054
790

query I rowsort
SELECT col1 * - ( col0 * cor0.col1 ) FROM tab1 AS cor0
----
-13520
-2028
-6400

query I rowsort
SELECT ALL + col0 * 83 + cor0.col1 * + col0 AS col2 FROM tab2 AS cor0
----
11076
7900
798

query I rowsort
SELECT DISTINCT + col2 + col0 * - col2 AS col2 FROM tab0
----
-34
-7216
-759

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - ( col2 ) * - col0 col2 FROM tab2 AS cor0
----
1323
158184
237158

query I rowsort
SELECT cor0.col1 * + cor0.col0 AS col2 FROM tab1 cor0
----
1040
640
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + + col0 * 66 col1 FROM tab2 AS cor0
----
493
5207
5231

query I rowsort
SELECT - - col2 * + 25 FROM tab2 AS cor0
----
650
675
950

query I rowsort
SELECT 73 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to e5fbf5d129b181bacd6113bbc8732496

query I rowsort
SELECT + col1 + + 84 * + col2 AS col1 FROM tab1 AS cor0
----
4562
4798
8077

query IIIIIIIIIIII rowsort
SELECT * FROM tab1 cor0 CROSS JOIN tab0, tab1 AS cor1, tab1 AS cor2
----
972 values hashing to 0be13143d898cc667fe1a2dd93b34703

query I rowsort
SELECT - - ( - 78 ) AS col0 FROM tab2 cor0
----
-78
-78
-78

query I rowsort
SELECT - col2 + col2 * - col2 FROM tab1 AS cor0
----
-2970
-3306
-9312

query I rowsort
SELECT - col1 * 59 FROM tab1 AS cor0
----
-1534
-590
-767

query I rowsort
SELECT + col0 + - 0 * col2 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT col1 * cor0.col1 AS col2 FROM tab1 AS cor0
----
100
169
676

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 90 col2 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 5d25a546acf3ae171e731e50adc0112e

query I rowsort
SELECT DISTINCT - 11 FROM tab1, tab2 AS cor0
----
-11

query I rowsort
SELECT - + col0 + - 29 * + col1 AS col1 FROM tab0 AS cor0
----
-2518
-2728
-2848

onlyif mysql # use DIV operator for integer division
query I rowsort label-3895
SELECT ALL col1 * 15 DIV 61 FROM tab2
----
14
4
7

skipif mysql # not compatible
query I rowsort label-3895
SELECT ALL col1 * 15 / 61 FROM tab2
----
14
4
7

query I rowsort
SELECT - + ( + 80 ) * + col0 FROM tab1 AS cor0
----
-240
-5120
-6400

query I rowsort
SELECT ALL + 6 * + col0 FROM tab0
----
144
210
534

query I rowsort
SELECT 73 AS col0 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to e5fbf5d129b181bacd6113bbc8732496

query I rowsort
SELECT col1 * 76 + - col1 * col0 FROM tab0 AS cor0
----
-1183
3977
4472

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col1 * - cor0.col2 + col2 col1 FROM tab2 AS cor0
----
-1508
-608
-810

query I rowsort
SELECT ALL 81 AS col2 FROM tab2
----
81
81
81

query I rowsort
SELECT + tab0.col1 * ( col2 ) AS col1 FROM tab0
----
2838
7462
97

query I rowsort
SELECT - 9 FROM tab0, tab0 AS cor0
----
9 values hashing to caf28657beb43049740febe1fa9ded5a

query I rowsort
SELECT + col1 + - col1 + - 94 * col2 AS col2 FROM tab0 AS cor0
----
-3102
-7708
-94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 - + col1 * ( + col1 ) col0 FROM tab2 AS cor0
----
-272
-3422
-930

query I rowsort
SELECT ALL - cor0.col2 * 17 AS col2 FROM tab1 AS cor0
----
-1632
-918
-969

query I rowsort
SELECT DISTINCT col1 * + cor0.col1 + 96 AS col0 FROM tab0 AS cor0
----
7492
8377
9505

query I rowsort
SELECT DISTINCT + col0 * ( 8 ) + + col2 FROM tab0 AS cor0
----
225
281
794

query I rowsort
SELECT - col1 * 11 FROM tab2 AS cor0
----
-187
-341
-649

query I rowsort
SELECT - col0 * - col0 + + col0 + col1 AS col0 FROM tab0 AS cor0
----
1357
686
8101

query I rowsort
SELECT DISTINCT ( col1 ) - 8 AS col2 FROM tab0
----
78
83
89

query I rowsort
SELECT ALL col1 * + col0 + + tab2.col0 - 41 FROM tab2
----
1381
183
4639

query I rowsort
SELECT DISTINCT + + cor0.col1 * - 41 FROM tab2 AS cor0
----
-1271
-2419
-697

query I rowsort
SELECT ALL + col2 + ( - tab0.col0 ) + + col2 FROM tab0
----
-33
42
75

query I rowsort
SELECT DISTINCT - cor0.col1 * + 26 AS col2 FROM tab1 AS cor0
----
-260
-338
-676

query I rowsort
SELECT - col1 + 51 + 33 * + col1 AS col1 FROM tab0 AS cor0
----
2803
2963
3155

onlyif mysql # use DIV operator for integer division
query I rowsort label-3917
SELECT + + col2 DIV + 14 + + col2 AS col1 FROM tab2 AS cor0
----
27
28
40

skipif mysql # not compatible
query I rowsort label-3917
SELECT + + col2 / + 14 + + col2 AS col1 FROM tab2 AS cor0
----
27
28
40

query I rowsort
SELECT ALL - col1 * col0 + + col2 AS col0 FROM tab0 AS cor0
----
-2031
-3394
-8017

onlyif mysql # use DIV operator for integer division
query I rowsort label-3919
SELECT - col1 * 27 + col0 - + col2 DIV - col1 FROM tab2 cor0
----
-1515
-378
-830

skipif mysql # not compatible
query I rowsort label-3919
SELECT - col1 * 27 + col0 - + col2 / - col1 FROM tab2 cor0
----
-1515
-378
-830

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3920
SELECT ALL CAST( NULL AS DECIMAL ) FROM tab2 AS cor0 CROSS JOIN tab1, tab2 AS cor1, tab2 AS cor2
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c

skipif mysql # not compatible
query I rowsort label-3920
SELECT ALL CAST ( NULL AS REAL ) FROM tab2 AS cor0 CROSS JOIN tab1, tab2 AS cor1, tab2 AS cor2
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab2.col1 + col1 col2 FROM tab2
----
0
0
0

query I rowsort
SELECT + tab1.col1 + col0 * col0 * col0 + + tab1.col0 FROM tab1
----
262218
512093
56

query III rowsort
SELECT * FROM tab2 WHERE ( NULL ) IN ( + col0 * tab2.col0 * col1 )
----

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3924
SELECT CAST( NULL AS SIGNED ) FROM tab0, tab0 cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-3924
SELECT CAST ( NULL AS INTEGER ) FROM tab0, tab0 cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * col1 + col2 col2 FROM tab0 WHERE col1 >= ( col2 )
----
2871
7544
98

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( + col2 ) NOT IN ( - tab0.col2 * - col2 * - col0 + - col1 * + col0 )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL BETWEEN NULL AND col1 * col0
----

query I rowsort
SELECT col1 * - col0 FROM tab2 WHERE NULL NOT IN ( - col1 * col2 + + col0 )
----

query I rowsort
SELECT col0 + col1 + - col1 FROM tab0
----
24
35
89

query I rowsort
SELECT DISTINCT col2 FROM tab1 WHERE ( - col1 / + col2 ) > ( NULL )
----

query I rowsort
SELECT DISTINCT col1 FROM tab2 WHERE NOT - col0 = col1
----
17
31
59

query I rowsort
SELECT - 73 + col0 AS col0 FROM tab2 AS cor0
----
-66
5
6

query I rowsort
SELECT 30 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 6c98840ed134c765d56389f4150075f0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3934
SELECT DISTINCT 7 - col2 * + CAST( tab1.col0 + col2 AS SIGNED ) * ( + col2 ) FROM tab1
----
-1622009
-166205
-393122

skipif mysql # not compatible
query I rowsort label-3934
SELECT DISTINCT 7 - col2 * + CAST ( tab1.col0 + col2 AS INTEGER ) * ( + col2 ) FROM tab1
----
-1622009
-166205
-393122

query I rowsort
SELECT - col1 * + tab1.col0 + + 79 AS col1 FROM tab1
----
-561
-961
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-3936
SELECT tab2.col1 * - tab2.col2 + col2 DIV 8 AS col1 FROM tab2
----
-1531
-642
-834

skipif mysql # not compatible
query I rowsort label-3936
SELECT tab2.col1 * - tab2.col2 + col2 / 8 AS col1 FROM tab2
----
-1531
-642
-834

query I rowsort
SELECT ALL - col2 + - cor0.col2 AS col2 FROM tab2 AS cor0
----
-52
-54
-76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col1 + col1 * - ( - col1 ) col1 FROM tab1 AS cor0
----
110
182
702

query I rowsort
SELECT ALL - 37 * col1 AS col0 FROM tab2 AS cor0
----
-1147
-2183
-629

query I rowsort
SELECT - 38 FROM tab2 cor0
----
-38
-38
-38

query I rowsort
SELECT DISTINCT + - col0 + col2 FROM tab1 cor0
----
-7
16
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col1 * + col1 * col0 col2 FROM tab0 AS cor0
----
-177504
-329315
-737009

query I rowsort
SELECT ALL 82 * col1 + ( col0 ) * - col2 + col2 FROM tab0 AS cor0
----
246
6293
7920

query I rowsort
SELECT ALL - 4 + - col0 AS col2 FROM tab2 AS cor0
----
-11
-82
-83

onlyif mysql # use DIV operator for integer division
query I rowsort label-3945
SELECT DISTINCT col1 * col2 - 90 DIV 17 AS col0 FROM tab1 AS cor0
----
1243
1399
565

skipif mysql # not compatible
query I rowsort label-3945
SELECT DISTINCT col1 * col2 - 90 / 17 AS col0 FROM tab1 AS cor0
----
1243
1399
565

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col1 + col1 col1 FROM tab0 AS cor0
----
0

query I rowsort
SELECT DISTINCT - + ( col2 ) * col0 AS col0 FROM tab1 cor0
----
-162
-3648
-7680

onlyif mysql # use DIV operator for integer division
query I rowsort label-3948
SELECT ALL - + cor0.col0 - 39 DIV - col2 AS col2 FROM tab0 AS cor0
----
-23
-89
4

skipif mysql # not compatible
query I rowsort label-3948
SELECT ALL - + cor0.col0 - 39 / - col2 AS col2 FROM tab0 AS cor0
----
-23
-89
4

onlyif mysql # use DIV operator for integer division
query I rowsort label-3949
SELECT DISTINCT col1 DIV col2 + - col0 + col2 AS col0 FROM tab1 AS cor0
----
-7
16
51

skipif mysql # not compatible
query I rowsort label-3949
SELECT DISTINCT col1 / col2 + - col0 + col2 AS col0 FROM tab1 AS cor0
----
-7
16
51

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3950
SELECT + cor0.col1 - CAST( NULL AS SIGNED ) * - col1 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3950
SELECT + cor0.col1 - CAST ( NULL AS INTEGER ) * - col1 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + - 42 FROM tab0 AS cor0
----
-42
-42
-42

query I rowsort
SELECT ( 72 ) FROM tab2
----
72
72
72

onlyif mysql # use DIV operator for integer division
query I rowsort label-3953
SELECT DISTINCT col1 DIV col0 FROM tab0 cor0
----
1
2
3

skipif mysql # not compatible
query I rowsort label-3953
SELECT DISTINCT col1 / col0 FROM tab0 cor0
----
1
2
3

query I rowsort
SELECT DISTINCT - - ( - col1 ) AS col1 FROM tab2 AS cor0
----
-17
-31
-59

query I rowsort
SELECT 20 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 2fdd942fe0307a6ff66b63004ef102c4

query I rowsort
SELECT + col0 * + col0 + col0 AS col0 FROM tab2 AS cor0
----
56
6162
6320

query I rowsort
SELECT ALL + col0 + 23 FROM tab0 AS cor0
----
112
47
58

query I rowsort
SELECT DISTINCT - 74 * col0 AS col2 FROM tab0 AS cor0
----
-1776
-2590
-6586

query I rowsort
SELECT - 4 + - col2 AS col0 FROM tab0 AS cor0
----
-37
-5
-86

query I rowsort
SELECT DISTINCT 27 + - 34 AS col1 FROM tab0 AS cor0
----
-7

query I rowsort
SELECT ALL col0 * ( cor0.col1 ) + - col0 FROM tab2 AS cor0
----
1264
210
4524

query I rowsort
SELECT DISTINCT + + ( + col0 ) + + col0 FROM tab0 AS cor0
----
178
48
70

query I rowsort
SELECT ALL - ( col1 ) - col1 AS col1 FROM tab0 cor0
----
-172
-182
-194

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 * - col1 col1 FROM tab1 cor0
----
-1040
-640
-78

query I rowsort
SELECT - 8 * - col1 * tab1.col0 + col2 AS col2 FROM tab1
----
5177
678
8416

onlyif mysql # use DIV operator for integer division
query I rowsort label-3966
SELECT DISTINCT - col2 DIV col0 - ( - 25 * + col2 ) AS col0 FROM tab1 AS cor0
----
1332
1425
2399

skipif mysql # not compatible
query I rowsort label-3966
SELECT DISTINCT - col2 / col0 - ( - 25 * + col2 ) AS col0 FROM tab1 AS cor0
----
1332
1425
2399

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - cor0.col0 * col2 * ( col1 ) col1 FROM tab1 AS cor0
----
-36480
-4212
-99840

query I rowsort
SELECT ALL - col1 * col0 - + 72 * col0 AS col1 FROM tab0 AS cor0
----
-14507
-3792
-5915

query I rowsort
SELECT DISTINCT - col2 + + col2 * 20 AS col2 FROM tab1 AS cor0
----
1026
1083
1824

query I rowsort
SELECT - cor0.col1 * + cor0.col1 * + col2 FROM tab0 AS cor0
----
-244068
-679042
-9409

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3971
SELECT - - col2 + + col2 * + CAST( NULL AS DECIMAL ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3971
SELECT - - col2 + + col2 * + CAST ( NULL AS REAL ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-3972
SELECT + col0 DIV - col2 FROM tab1 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-3972
SELECT + col0 / - col2 FROM tab1 AS cor0
----
-1
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-3973
SELECT - + col1 + - col1 DIV - col1 AS col2 FROM tab2 AS cor0
----
-16
-30
-58

skipif mysql # not compatible
query I rowsort label-3973
SELECT - + col1 + - col1 / - col1 AS col2 FROM tab2 AS cor0
----
-16
-30
-58

query I rowsort
SELECT DISTINCT - 1 * col1 AS col2 FROM tab2
----
-17
-31
-59

query I rowsort
SELECT - cor0.col1 FROM tab1, tab0, tab0 AS cor0
----
27 values hashing to d4c673b7444eb9927ec63175b43c6b84

onlyif mysql # use DIV operator for integer division
query I rowsort label-3976
SELECT ALL tab1.col1 DIV + col1 AS col2 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3976
SELECT ALL tab1.col1 / + col1 AS col2 FROM tab1
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + col2 * + cor0.col0 col1 FROM tab2 AS cor0
----
119652
51034
5859

query I rowsort
SELECT + + col0 + col1 * + col2 FROM tab0 AS cor0
----
132
2862
7551

onlyif mysql # use DIV operator for integer division
query I rowsort label-3979
SELECT + col0 DIV col2 + + col0 * + col0 AS col2 FROM tab0
----
1260
576
7922

skipif mysql # not compatible
query I rowsort label-3979
SELECT + col0 / col2 + + col0 * + col0 AS col2 FROM tab0
----
1260
576
7922

query I rowsort
SELECT DISTINCT 12 AS col0 FROM tab1
----
12

query I rowsort
SELECT ALL ( + 90 ) AS col1 FROM tab1
----
90
90
90

query I rowsort
SELECT ALL 63 AS col1 FROM tab1
----
63
63
63

query I rowsort
SELECT DISTINCT col1 * + cor0.col2 * - col1 AS col2 FROM tab2 AS cor0
----
-10982
-25947
-90506

query I rowsort
SELECT DISTINCT - + cor0.col0 * 50 AS col1 FROM tab1 AS cor0
----
-150
-3200
-4000

query I rowsort
SELECT - ( col0 ) * - tab1.col0 FROM tab1
----
4096
6400
9

query I rowsort
SELECT ALL cor0.col1 * + cor0.col2 + + col1 FROM tab1 AS cor0
----
1261
1430
580

query I rowsort
SELECT - 22 * col1 AS col1 FROM tab1 cor0
----
-220
-286
-572

query I rowsort
SELECT ALL col0 * + col1 + col1 AS col2 FROM tab2 AS cor0
----
1360
248
4661

query I rowsort
SELECT ALL + col2 + col0 * + col0 AS col2 FROM tab0 cor0
----
1226
609
8003

query I rowsort
SELECT + 21 * - col2 + col2 FROM tab1 AS cor0
----
-1080
-1140
-1920

query I rowsort
SELECT + 50 + col1 + cor0.col0 AS col0 FROM tab1 AS cor0
----
124
143
79

query I rowsort
SELECT + col0 * col0 + - col1 AS col1 FROM tab2 cor0
----
18
6025
6224

query I rowsort
SELECT col0 * col1 + col2 / + tab0.col0 AS col1 FROM tab0 WHERE NULL IN ( tab0.col0 + col1 * - col1 )
----

query I rowsort
SELECT ALL + tab1.col1 - - col0 * - col0 * col2 FROM tab1
----
-233462
-460
-614387

onlyif mysql # use DIV operator for integer division
query I rowsort label-3995
SELECT - tab1.col1 DIV - col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3995
SELECT - tab1.col1 / - col2 FROM tab1
----
0
0
0

query I rowsort
SELECT + col0 + - col1 * + col2 + col0 AS col0 FROM tab2
----
-1378
-488
-823

query I rowsort
SELECT col2 FROM tab0 AS cor0 WHERE ( NULL ) BETWEEN + col0 * - col2 AND ( + col0 * col2 )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE col2 * col1 BETWEEN ( col0 ) AND + col1 + - col2
----

query I rowsort
SELECT DISTINCT col2 * col0 * col2 FROM tab1
----
207936
737280
8748

query I rowsort
SELECT ALL - col1 * col2 * col0 AS col2 FROM tab1
----
-36480
-4212
-99840

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL = ( NULL )
----

query I rowsort
SELECT - col2 * - col0 + col2 - + col2 FROM tab2
----
189
2028
3002

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NULL ) IN ( cor0.col0 )
----

query IIIIII rowsort
SELECT DISTINCT * FROM tab2, tab0 AS cor0 WHERE NULL > NULL
----

query I rowsort
SELECT col1 * col0 * col2 + col2 AS col0 FROM tab0 AS cor0
----
3396
664200
68145

query I rowsort
SELECT DISTINCT col0 FROM tab1 AS cor0 WHERE ( NULL ) NOT IN ( col2 * + cor0.col0 / - col1 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( col1 ) NOT IN ( col2 )
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45

query I rowsort
SELECT - col2 + col2 * col0 AS col0 FROM tab2
----
162
2002
2964

query I rowsort
SELECT DISTINCT - col0 - - col0 AS col1 FROM tab0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab1.col0 - col0 * - col1 col2 FROM tab1
----
1120
704
81

query I rowsort
SELECT - col0 + tab2.col2 AS col2 FROM tab2
----
-41
-52
20

query I rowsort
SELECT - col0 - col2 * - col2 FROM tab0
----
-34
1065
6635

query III rowsort
SELECT * FROM tab1 WHERE ( NULL ) <> - col2 * col1
----

query I rowsort
SELECT - col0 - col0 * - col0 FROM tab0
----
1190
552
7832

query I rowsort
SELECT col1 + col2 FROM tab2 WHERE ( + col0 ) IN ( col2 - col1 )
----

query I rowsort
SELECT ALL col1 / col0 FROM tab1 WHERE NOT ( - col0 ) NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL + col2 + col1 AS col2 FROM tab0
----
119
173
98

query III rowsort
SELECT * FROM tab2 WHERE ( col1 ) >= NULL
----

query I rowsort
SELECT + col0 * col2 * col2 - col1 AS col1 FROM tab2 AS cor0
----
114059
5072
52669

query I rowsort
SELECT - col0 * + col1 - - col1 FROM tab0 AS cor0
----
-1978
-3298
-8008

query I rowsort
SELECT - col0 + cor0.col0 + + cor0.col1 AS col1 FROM tab2 cor0
----
17
31
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab0.col0 * - col2 col0 FROM tab0
----
-35
-7298
-792

query I rowsort
SELECT ALL - col1 * + col1 + tab2.col2 FROM tab2
----
-251
-3455
-934

query I rowsort
SELECT - tab2.col1 FROM tab2, tab1, tab2 cor0
----
27 values hashing to 6e0b7d583bc2c53842166d3e6ba2d6d2

query I rowsort
SELECT col2 * col2 * col1 AS col2 FROM tab0
----
611884
93654
97

query I rowsort
SELECT col0 - col0 AS col2 FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT + - col2 * + col2 - col2 AS col1 FROM tab0 AS cor0
----
-1122
-2
-6806

query I rowsort
SELECT ALL + col0 * - col2 * + tab2.col1 FROM tab2
----
-119652
-51034
-5859

query I rowsort
SELECT DISTINCT col0 / col0 + col1 FROM tab2 AS cor0 WHERE NULL IN ( + col1 )
----

query I rowsort
SELECT - col2 + - col0 + col2 FROM tab0
----
-24
-35
-89

query I rowsort
SELECT ALL - col0 - col1 * col0 AS col2 FROM tab0
----
-2088
-3430
-8188

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col2 + col0 * col0 > col0
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * - 49 col0 FROM tab1 AS cor0
----
-1274
-490
-637

query I rowsort
SELECT ALL col0 * ( col1 ) + + 25 AS col2 FROM tab2 AS cor0
----
1368
242
4627

query I rowsort
SELECT + - col2 * - ( + col1 ) FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT ALL - + cor0.col2 + - col1 FROM tab2 AS cor0
----
-55
-58
-85

query I rowsort
SELECT DISTINCT - 51 FROM tab2 AS cor0
----
-51

onlyif mysql # use DIV operator for integer division
query I rowsort label-4038
SELECT ALL col2 DIV col0 + col1 * - ( col0 ) FROM tab0 cor0
----
-2063
-3395
-8099

skipif mysql # not compatible
query I rowsort label-4038
SELECT ALL col2 / col0 + col1 * - ( col0 ) FROM tab0 cor0
----
-2063
-3395
-8099

query I rowsort
SELECT - + col0 * + col2 AS col0 FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT + ( cor0.col2 ) + col2 AS col0 FROM tab2 AS cor0
----
52
54
76

query I rowsort
SELECT - - 45 * - 17 AS col1 FROM tab2 AS cor0
----
-765
-765
-765

query I rowsort
SELECT DISTINCT - 70 * + cor0.col0 AS col0 FROM tab2 AS cor0
----
-490
-5460
-5530

query I rowsort
SELECT DISTINCT + ( 14 ) * col1 - + col2 * + col2 FROM tab0 AS cor0
----
-5450
115
1357

query I rowsort
SELECT + + col1 * col1 * - col0 FROM tab2 AS cor0
----
-22831
-271518
-6727

query I rowsort
SELECT DISTINCT + + ( col0 ) * + col2 AS col0 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT ALL - 32 FROM tab2 AS cor0
----
-32
-32
-32

onlyif mysql # use DIV operator for integer division
query I rowsort label-4047
SELECT ALL + + 28 DIV - col1 FROM tab1 cor0
----
-1
-2
-2

skipif mysql # not compatible
query I rowsort label-4047
SELECT ALL + + 28 / - col1 FROM tab1 cor0
----
-1
-2
-2

query I rowsort
SELECT col0 * - col2 AS col2 FROM tab2 cor0
----
-189
-2028
-3002

query I rowsort
SELECT ALL + - 87 AS col1 FROM tab1 AS cor0
----
-87
-87
-87

query I rowsort
SELECT DISTINCT 14 - col2 AS col1 FROM tab1
----
-40
-43
-82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col2 + col2 + ( col1 + - col2 ) col1 FROM tab1 AS cor0
----
-28
-47
-83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * col0 col1 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT DISTINCT + - col1 * col0 AS col2 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT + - col2 + col1 * - col2 FROM tab0 AS cor0
----
-2871
-7544
-98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - cor0.col0 ) * + col0 col2 FROM tab0 AS cor0
----
-1225
-576
-7921

query I rowsort
SELECT ALL - + col2 * - cor0.col1 FROM tab0 cor0
----
2838
7462
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - ( + col2 ) * - 30 col2 FROM tab2 AS cor0
----
-1140
-780
-810

query I rowsort
SELECT ALL + - col1 * - col0 + ( - col1 ) FROM tab2 AS cor0
----
1326
186
4543

query I rowsort
SELECT 14 FROM tab2, tab2 AS cor0, tab0 cor1
----
27 values hashing to 409c1790b702540dd9dc067c1965b7c0

query I rowsort
SELECT ALL + col1 + - ( + col1 ) * + cor0.col1 * - col0 FROM tab1 AS cor0
----
13533
2054
6410

onlyif mysql # use DIV operator for integer division
query I rowsort label-4061
SELECT col1 DIV 49 + + col0 FROM tab2 AS cor0
----
7
79
79

skipif mysql # not compatible
query I rowsort label-4061
SELECT col1 / 49 + + col0 FROM tab2 AS cor0
----
7
79
79

query I rowsort
SELECT - - col0 + ( - col1 ) AS col0 FROM tab0 AS cor0
----
-2
-62
-62

query I rowsort
SELECT ALL col1 + - 6 * + ( - col1 ) FROM tab2 AS cor0
----
119
217
413

query I rowsort
SELECT DISTINCT - - col1 + cor0.col1 AS col1 FROM tab2 AS cor0
----
118
34
62

query I rowsort
SELECT col0 + col1 * 59 FROM tab2 cor0
----
1082
1836
3559

query I rowsort
SELECT DISTINCT - col0 + + col1 + col2 FROM tab1 AS cor0
----
29
3
77

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1, tab2 AS cor0, tab0 AS cor1, tab0, tab1 cor2
----
3645 values hashing to 25b043ae64f25e8f205735b09d2d3d6a

query I rowsort
SELECT - col1 - - col2 AS col2 FROM tab0
----
-53
-9
-96

query I rowsort
SELECT - ( tab1.col2 ) FROM tab1, tab0 AS cor0
----
9 values hashing to 0dc9bbe392d52df93d2a115d7f622dba

query I rowsort
SELECT ALL col1 * - ( col0 ) + col2 FROM tab1 AS cor0
----
-24
-583
-944

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4071
SELECT + + col1 * CAST( NULL AS SIGNED ) * - ( - cor0.col2 ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4071
SELECT + + col1 * CAST ( NULL AS INTEGER ) * - ( - cor0.col2 ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - cor2.col0 FROM tab1, tab0 AS cor0, tab0 AS cor1, tab0, tab0 AS cor2
----
-24
-35
-89

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2 cor0 CROSS JOIN tab1, tab2 AS cor1, tab1 AS cor2
----
972 values hashing to 4c0813b2179303fdf58f082d81d6d03c

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab2 cor0, tab2 cor1, tab2 cor2
----
972 values hashing to a47a9db07c7de4927c7c28efb4cd13f2

query I rowsort
SELECT + col0 * + ( + col1 ) + + cor0.col1 FROM tab0 AS cor0
----
2150
3492
8190

query I rowsort
SELECT ALL - - col1 * - ( col1 ) + col1 * - col1 + ( + col2 * + col1 ) FROM tab2 AS cor0
----
-1085
-5428
68

query IIIIIIIIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0, tab1 AS cor1, tab1 cor2
----
972 values hashing to 7864aada86bf5bf5e1621c7905de8dcd

query I rowsort
SELECT DISTINCT + - 74 + 62 AS col1 FROM tab2 AS cor0
----
-12

query I rowsort
SELECT ALL 23 * col2 FROM tab1 AS cor0
----
1242
1311
2208

query I rowsort
SELECT - cor1.col0 AS col1 FROM tab2, tab2 cor0, tab2 AS cor1
----
27 values hashing to c82df1de3cb666224690a83f3d790d79

query I rowsort
SELECT - col2 * tab1.col1 + - col1 FROM tab1
----
-1261
-1430
-580

onlyif mysql # use DIV operator for integer division
query I rowsort label-4082
SELECT DISTINCT + col0 + col2 DIV col2 AS col2 FROM tab1 cor0
----
4
65
81

skipif mysql # not compatible
query I rowsort label-4082
SELECT DISTINCT + col0 + col2 / col2 AS col2 FROM tab1 cor0
----
4
65
81

query I rowsort
SELECT ALL 56 FROM tab1 cor0
----
56
56
56

query I rowsort
SELECT DISTINCT - col2 + 72 * col1 FROM tab2 AS cor0
----
1186
2205
4222

query I rowsort
SELECT DISTINCT cor1.col1 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
10
13
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * cor0.col1 col2 FROM tab0 cor0
----
2838
7462
97

query I rowsort
SELECT DISTINCT - - col2 + col1 + col0 AS col2 FROM tab2 AS cor0
----
134
163
65

onlyif mysql # use DIV operator for integer division
query I rowsort label-4088
SELECT + 69 DIV + ( - col0 + - col2 ) FROM tab1 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-4088
SELECT + 69 / + ( - col0 + - col2 ) FROM tab1 AS cor0
----
-1
0
0

query I rowsort
SELECT col0 + col1 * 29 + col2 FROM tab0
----
2551
2810
2849

query I rowsort
SELECT ALL + + 96 * cor0.col1 FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to a747cbe21fbc08bf737f4fd46a295847

query I rowsort
SELECT ALL + col0 + col1 * col2 * + col1 AS col1 FROM tab0
----
244092
679131
9444

query I rowsort
SELECT DISTINCT - col1 * col2 + - tab2.col1 FROM tab2
----
-1593
-663
-868

query I rowsort
SELECT DISTINCT ( + cor0.col2 ) * - col0 AS col2 FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT ALL + 91 * col0 FROM tab0 AS cor0
----
2184
3185
8099

query I rowsort
SELECT + col1 - col1 FROM tab1 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col0 col1 FROM tab2 cor0
----
-7
-78
-79

query I rowsort
SELECT - col0 * 85 + + col1 AS col1 FROM tab0 AS cor0
----
-1954
-2878
-7474

query I rowsort
SELECT DISTINCT - col1 - ( col0 ) FROM tab0 AS cor0
----
-110
-132
-180

query I rowsort
SELECT + - cor0.col0 + + 0 * col1 AS col1 FROM tab2 cor0
----
-7
-78
-79

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4100
SELECT DISTINCT - + col1 * + CAST( col2 AS SIGNED ) FROM tab0 AS cor0
----
-2838
-7462
-97

skipif mysql # not compatible
query I rowsort label-4100
SELECT DISTINCT - + col1 * + CAST ( col2 AS INTEGER ) FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT - col0 * - col1 + - col1 FROM tab1 AS cor0
----
1027
52
630

query I rowsort
SELECT DISTINCT + col2 + + 52 AS col2 FROM tab0 AS cor0
----
134
53
85

onlyif mysql # use DIV operator for integer division
query I rowsort label-4103
SELECT ALL col2 * col0 DIV - 16 - col2 FROM tab1 AS cor0
----
-285
-576
-64

skipif mysql # not compatible
query I rowsort label-4103
SELECT ALL col2 * col0 / - 16 - col2 FROM tab1 AS cor0
----
-285
-576
-64

query I rowsort
SELECT cor0.col2 + - 61 FROM tab2 cor0
----
-23
-34
-35

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col1 + - col0 * + ( + col1 ) + + 63 * ( col0 ) col0 FROM tab0 AS cor0
----
-1093
-2401
-466

query I rowsort
SELECT DISTINCT + col0 + + col1 * col0 AS col1 FROM tab2
----
1422
224
4680

query I rowsort
SELECT tab1.col1 + col1 + 87 FROM tab1
----
107
113
139

query I rowsort
SELECT col0 * col2 - + 65 AS col2 FROM tab0
----
-30
7233
727

query I rowsort
SELECT ALL + - col2 + - ( ( + col2 ) ) + col1 AS col0 FROM tab2 cor0
----
-23
-59
7

query I rowsort
SELECT ALL cor0.col2 * col0 * col2 FROM tab1 AS cor0
----
207936
737280
8748

query I rowsort
SELECT DISTINCT + cor0.col2 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
26
27
38

query I rowsort
SELECT DISTINCT - 46 FROM tab2, tab2 cor0, tab1 AS cor1
----
-46

query I rowsort
SELECT + cor0.col2 * cor0.col2 + + ( + col2 * + col2 + - ( col0 ) ) AS col2 FROM tab1 AS cor0
----
18352
5829
6434

query I rowsort
SELECT ALL - cor0.col2 + - tab1.col0 - cor0.col2 AS col0 FROM tab1, tab2 cor0
----
9 values hashing to a95c9dda772081cb970d59d514fb356e

query I rowsort
SELECT ALL + col2 * - col0 AS col2 FROM tab0
----
-35
-7298
-792

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 38 col0 FROM tab2 AS cor0
----
-38
-38
-38

query I rowsort
SELECT DISTINCT - 49 * + col0 * col1 FROM tab2
----
-10633
-225498
-65807

query I rowsort
SELECT ALL 87 FROM tab2 AS cor0
----
87
87
87

onlyif mysql # use DIV operator for integer division
query I rowsort label-4119
SELECT DISTINCT - cor1.col2 DIV 30 AS col0 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
-1
-3

skipif mysql # not compatible
query I rowsort label-4119
SELECT DISTINCT - cor1.col2 / 30 AS col0 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
-1
-3

query I rowsort
SELECT col0 + 77 AS col2 FROM tab1
----
141
157
80

query I rowsort
SELECT + col2 * col1 + + 66 + col2 AS col1 FROM tab2
----
1626
750
930

query I rowsort
SELECT col2 * - 14 FROM tab1
----
-1344
-756
-798

onlyif mysql # use DIV operator for integer division
query I rowsort label-4123
SELECT DISTINCT + col2 DIV - col1 + - col0 * col1 AS col0 FROM tab0
----
-2064
-3395
-8099

skipif mysql # not compatible
query I rowsort label-4123
SELECT DISTINCT + col2 / - col1 + - col0 * col1 AS col0 FROM tab0
----
-2064
-3395
-8099

query I rowsort
SELECT + + col0 * - ( - col0 ) + - col0 * col2 FROM tab2 AS cor0
----
-140
3239
4056

query I rowsort
SELECT col1 * 37 + col2 AS col0 FROM tab0 AS cor0
----
3215
3449
3590

query I rowsort
SELECT ALL + tab0.col2 + col1 * col1 + + col2 AS col1 FROM tab0
----
7462
8445
9411

query I rowsort
SELECT + col1 * tab1.col2 + + col1 + - col0 FROM tab1
----
1181
1427
516

query I rowsort
SELECT DISTINCT + 43 FROM tab2, tab0 AS cor0
----
43

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4129
SELECT ALL col1 + CAST( NULL AS SIGNED ) + + col2 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4129
SELECT ALL col1 + CAST ( NULL AS INTEGER ) + + col2 AS col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT cor0.col2 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8

query I rowsort
SELECT ALL ( col0 * - col2 ) FROM tab1
----
-162
-3648
-7680

query I rowsort
SELECT + - cor0.col2 * + 87 FROM tab1 AS cor0
----
-4698
-4959
-8352

query I rowsort
SELECT ALL 54 * col0 FROM tab1 cor0
----
162
3456
4320

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 94 col2 FROM tab0, tab0 AS cor0
----
9 values hashing to b0ffb7527f4fbf44f30945e1ccb58c24

query I rowsort
SELECT ALL + 0 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query I rowsort
SELECT - ( col2 ) - col2 FROM tab2 AS cor0
----
-52
-54
-76

query I rowsort
SELECT + ( + col2 ) * - cor0.col1 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT col0 + col1 - col2 FROM tab2
----
11
111
58

query I rowsort
SELECT + ( - col0 + col1 * + 26 ) AS col0 FROM tab0
----
2212
2277
2487

query I rowsort
SELECT DISTINCT tab0.col1 * 85 - - col2 FROM tab0
----
7343
7817
8246

query I rowsort
SELECT + 36 FROM tab0, tab2, tab2 AS cor0
----
27 values hashing to 4d1892e880125dc90345721151acb22c

onlyif mysql # use DIV operator for integer division
query I rowsort label-4142
SELECT + col0 - col0 DIV col1 FROM tab0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-4142
SELECT + col0 - col0 / col1 FROM tab0
----
24
35
89

query I rowsort
SELECT 76 + - col1 FROM tab2
----
17
45
59

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4144
SELECT - tab1.col2 * col2 * tab1.col2 - CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4144
SELECT - tab1.col2 * col2 * tab1.col2 - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + col2 col2 FROM tab0 AS cor0
----
171
36
57

query I rowsort
SELECT - 22 * col2 FROM tab1 cor0
----
-1188
-1254
-2112

query I rowsort
SELECT + - col1 + col1 AS col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - 31 + col0 * cor0.col0 FROM tab0 AS cor0
----
1194
545
7890

query I rowsort
SELECT ALL col2 * cor0.col2 + + 58 FROM tab1 cor0
----
2974
3307
9274

query I rowsort
SELECT ALL - ( tab1.col1 ) AS col2 FROM tab1
----
-10
-13
-26

query I rowsort
SELECT - + ( + col0 ) + - 36 AS col2 FROM tab0 AS cor0
----
-125
-60
-71

query I rowsort
SELECT + col0 * - col1 + 19 FROM tab0 AS cor0
----
-2045
-3376
-8080

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col0 + col0 col2 FROM tab1 AS cor0
----
128
160
6

query I rowsort
SELECT DISTINCT - col2 * col0 * col1 FROM tab0 AS cor0
----
-3395
-664118
-68112

onlyif mysql # use DIV operator for integer division
query I rowsort label-4155
SELECT ALL col2 + + col0 DIV - col1 FROM tab1 AS cor0
----
51
54
90

skipif mysql # not compatible
query I rowsort label-4155
SELECT ALL col2 + + col0 / - col1 FROM tab1 AS cor0
----
51
54
90

query I rowsort
SELECT ALL - 27 * - col2 AS col1 FROM tab1 AS cor0
----
1458
1539
2592

query I rowsort
SELECT col2 * + ( 74 ) AS col1 FROM tab1 AS cor0
----
3996
4218
7104

query I rowsort
SELECT - col2 * ( col0 ) AS col1 FROM tab0 AS cor0
----
-35
-7298
-792

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * + ( col0 ) col2 FROM tab1 AS cor0
----
1040
640
78

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4160
SELECT - CAST( NULL AS SIGNED ) * 58 + - col2 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4160
SELECT - CAST ( NULL AS INTEGER ) * 58 + - col2 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col0 + + ( col1 ) AS col0 FROM tab1 AS cor0
----
-54
-67
23

query I rowsort
SELECT + cor0.col0 FROM tab1, tab1 cor0
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870

query I rowsort
SELECT ALL - 59 + + cor0.col2 * 45 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 278a2858187828eac575cc988bdbd87a

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab0.col1 col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 58ed467a9a332e4d7bfaa9abdbbd063f

query I rowsort
SELECT - tab0.col1 * 33 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 5e81a6d7135dd541c06e6c3052ffc950

query I rowsort
SELECT - 37 AS col0 FROM tab1, tab0, tab0 AS cor0
----
27 values hashing to 395d44ccbce08828bc493e93ec3d9207

query I rowsort
SELECT DISTINCT - 44 AS col2 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
-44

query I rowsort
SELECT DISTINCT + + 33 AS col0 FROM tab1 AS cor0
----
33

onlyif mysql # use DIV operator for integer division
query I rowsort label-4169
SELECT DISTINCT - cor0.col2 + + col2 DIV + ( col2 ) AS col1 FROM tab1 AS cor0
----
-53
-56
-95

skipif mysql # not compatible
query I rowsort label-4169
SELECT DISTINCT - cor0.col2 + + col2 / + ( col2 ) AS col1 FROM tab1 AS cor0
----
-53
-56
-95

query I rowsort
SELECT ALL - 89 FROM tab2 AS cor0
----
-89
-89
-89

query I rowsort
SELECT DISTINCT - col1 * + 47 FROM tab2 AS cor0
----
-1457
-2773
-799

onlyif mysql # use DIV operator for integer division
query I rowsort label-4172
SELECT ALL - - col2 DIV col2 + + 75 FROM tab0 AS cor0
----
76
76
76

skipif mysql # not compatible
query I rowsort label-4172
SELECT ALL - - col2 / col2 + + 75 FROM tab0 AS cor0
----
76
76
76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col2 + + ( - col1 ) col0 FROM tab1 AS cor0
----
28
47
83

query I rowsort
SELECT DISTINCT - cor0.col2 * - col2 + + cor0.col1 * col2 FROM tab2 AS cor0
----
1566
2090
2210

query I rowsort
SELECT DISTINCT - - cor0.col0 * col0 - + col1 * col0 FROM tab2 AS cor0
----
-168
1482
4898

query I rowsort
SELECT + + col1 * + 75 AS col1 FROM tab0 AS cor0
----
6450
6825
7275

onlyif mysql # use DIV operator for integer division
query I rowsort label-4177
SELECT DISTINCT - - col2 DIV - 22 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-4177
SELECT DISTINCT - - col2 / - 22 FROM tab2 AS cor0
----
-1

query I rowsort
SELECT DISTINCT + 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-4179
SELECT ALL col1 * - CAST( col0 AS SIGNED ) + col0 FROM tab0 AS cor0
----
-2040
-3360
-8010

skipif mysql # not compatible
query I rowsort label-4179
SELECT ALL col1 * - CAST ( col0 AS INTEGER ) + col0 FROM tab0 AS cor0
----
-2040
-3360
-8010

query I rowsort
SELECT + + col1 * - ( + 65 ) AS col2 FROM tab2 AS cor0
----
-1105
-2015
-3835

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4181
SELECT - col1 * CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4181
SELECT - col1 * CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 16 + col0 FROM tab2
----
23
94
95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col2 + + col2 col2 FROM tab1 AS cor0
----
0

query I rowsort
SELECT + cor0.col0 * + 32 FROM tab2 AS cor0
----
224
2496
2528

query I rowsort
SELECT ALL + - col2 * + ( col0 ) FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT + col2 * + col1 AS col0 FROM tab2 cor0
----
1534
646
837

onlyif mysql # use DIV operator for integer division
query I rowsort label-4187
SELECT - col1 DIV 43 FROM tab2 cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-4187
SELECT - col1 / 43 FROM tab2 cor0
----
-1
0
0

query I rowsort
SELECT ALL col2 * 10 AS col0 FROM tab2 AS cor0
----
260
270
380

query I rowsort
SELECT + col0 + + 85 * + col0 * ( + col0 ) AS col1 FROM tab0 AS cor0
----
104160
48984
673374

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4190
SELECT - - CAST( NULL AS SIGNED ) + ( + cor0.col2 ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4190
SELECT - - CAST ( NULL AS INTEGER ) + ( + cor0.col2 ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4191
SELECT - ( col2 ) + col0 + - CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4191
SELECT - ( col2 ) + col0 + - CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - ( - col0 ) * col0 AS col1 FROM tab1 AS cor0
----
4096
6400
9

query I rowsort
SELECT + 60 + - col0 AS col1 FROM tab0
----
-29
25
36

query I rowsort
SELECT ALL - col2 + col0 AS col2 FROM tab0 cor0
----
-9
34
7

query I rowsort
SELECT + + col1 + cor0.col0 * col0 AS col2 FROM tab1 AS cor0
----
35
4106
6413

query I rowsort
SELECT ALL - + 64 * col2 + col2 AS col1 FROM tab0 AS cor0
----
-2079
-5166
-63

onlyif mysql # use DIV operator for integer division
query I rowsort label-4197
SELECT DISTINCT ( col0 ) DIV col1 - 66 FROM tab1 AS cor0
----
-60
-66

skipif mysql # not compatible
query I rowsort label-4197
SELECT DISTINCT ( col0 ) / col1 - 66 FROM tab1 AS cor0
----
-60
-66

query I rowsort
SELECT 37 + col2 AS col2 FROM tab0 AS cor0
----
119
38
70

query I rowsort
SELECT ALL - 21 * + col1 * col0 AS col0 FROM tab1 AS cor0
----
-13440
-1638
-21840

query I rowsort
SELECT ALL ( - 34 ) * col0 FROM tab0 AS cor0
----
-1190
-3026
-816

query I rowsort
SELECT ALL + + col1 * + col1 - col2 FROM tab0 cor0
----
7363
8199
9408

query I rowsort
SELECT - col1 * + col2 + + cor0.col2 AS col0 FROM tab1 AS cor0
----
-1152
-1350
-513

query I rowsort
SELECT + - ( 92 ) + - col0 + + col0 FROM tab1 AS cor0
----
-92
-92
-92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + + 47 col1 FROM tab1 AS cor0
----
57
60
73

query I rowsort
SELECT DISTINCT + - 74 FROM tab0 AS cor0
----
-74

query I rowsort
SELECT DISTINCT - 5 * - col0 FROM tab1 AS cor0
----
15
320
400

query I rowsort
SELECT DISTINCT ( col2 ) * cor0.col1 * col2 FROM tab0 AS cor0
----
611884
93654
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 - + col1 col1 FROM tab1 AS cor0
----
-23
54
67

query I rowsort
SELECT ALL - - col2 * 0 + - col2 * 93 + 10 * col1 FROM tab0 cor0
----
-2209
-6716
877

onlyif mysql # use DIV operator for integer division
query I rowsort label-4210
SELECT DISTINCT + col2 + cor0.col0 DIV - col0 FROM tab1 AS cor0
----
53
56
95

skipif mysql # not compatible
query I rowsort label-4210
SELECT DISTINCT + col2 + cor0.col0 / - col0 FROM tab1 AS cor0
----
53
56
95

query I rowsort
SELECT DISTINCT + col1 * cor0.col0 - + cor0.col2 FROM tab1 AS cor0
----
24
583
944

query I rowsort
SELECT - - col0 * + 0 + col1 FROM tab0 AS cor0
----
86
91
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col2 col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17

query I rowsort
SELECT ALL + col1 * col2 - + col0 FROM tab1 AS cor0
----
1168
1401
506

query I rowsort
SELECT col1 * col0 * + col0 FROM tab2
----
106097
1519
358956

skipif mysql # not compatible
query I rowsort
SELECT ALL + col1 + + col2 * CAST ( - col0 AS REAL ) * col2 FROM tab2 AS cor0
----
-114059
-5072
-52669

onlyif mysql # use DIV operator for integer division
query I rowsort label-4217
SELECT DISTINCT col2 * col0 + CAST( cor0.col1 AS SIGNED ) DIV + col0 AS col1 FROM tab1 AS cor0
----
170
3648
7680

skipif mysql # not compatible
query I rowsort label-4217
SELECT DISTINCT col2 * col0 + CAST ( cor0.col1 AS INTEGER ) / + col0 AS col1 FROM tab1 AS cor0
----
170
3648
7680

query I rowsort
SELECT ALL + - col0 - - col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT + 80 AS col2 FROM tab0 AS cor0
----
80
80
80

query I rowsort
SELECT DISTINCT - + 49 * col0 AS col0 FROM tab0 AS cor0
----
-1176
-1715
-4361

query I rowsort
SELECT - col2 + - col2 + - col1 AS col1 FROM tab0 AS cor0
----
-152
-255
-99

onlyif mysql # use DIV operator for integer division
query I rowsort label-4222
SELECT ALL - - col1 DIV col1 AS col2 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4222
SELECT ALL - - col1 / col1 AS col2 FROM tab1 AS cor0
----
1
1
1

query I rowsort
SELECT + + col2 + col0 * - 23 AS col2 FROM tab0 AS cor0
----
-1965
-519
-804

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4224
SELECT CAST( NULL AS SIGNED ) - + col2 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4224
SELECT CAST ( NULL AS INTEGER ) - + col2 AS col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT + col2 + col1 + - cor0.col1 * + col0 FROM tab2 AS cor0
----
-1288
-159
-4517

query I rowsort
SELECT - + cor0.col1 + cor0.col1 + col0 * col2 AS col0 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT 41 + + col0 FROM tab0 AS cor0
----
130
65
76

query I rowsort
SELECT + 42 + + col1 AS col1 FROM tab0
----
128
133
139

query I rowsort
SELECT - + col2 + col2 AS col1 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT + col0 * - 23 AS col0 FROM tab0 AS cor0
----
-2047
-552
-805

query I rowsort
SELECT DISTINCT 73 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
73

query I rowsort
SELECT + 85 + col2 AS col1 FROM tab1 cor0
----
139
142
181

query I rowsort
SELECT ALL - ( col2 + col1 ) AS col1 FROM tab2
----
-55
-58
-85

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4234
SELECT - CAST( NULL AS SIGNED ) + + ( col0 ) + ( + col0 ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4234
SELECT - CAST ( NULL AS INTEGER ) + + ( col0 ) + ( + col0 ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 15 + 39 * col0 AS col0 FROM tab0 AS cor0
----
1380
3486
951

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4236
SELECT 97 + col2 * col0 + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4236
SELECT 97 + col2 * col0 + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - cor0.col0 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0, tab0 AS cor1
----
27 values hashing to c3ebf1695ca74567bdc173dbe15186a8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( col1 ) + col2 col1 FROM tab2
----
55
58
85

query I rowsort
SELECT ALL + 61 + cor0.col0 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to f72b84ee025cffc63e1109f9f21c35c4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * tab2.col2 + tab2.col2 col1 FROM tab2
----
1482
702
756

query I rowsort
SELECT ALL col0 + 9 * - col2 + col0 * tab0.col2 FROM tab0
----
519
61
6649

query I rowsort
SELECT ALL - 93 * - 16 FROM tab1
----
1488
1488
1488

query I rowsort
SELECT ALL tab2.col0 * + col1 + col2 FROM tab2
----
1381
244
4628

query I rowsort
SELECT + col0 + 61 * col2 + 27 * - ( + col0 ) FROM tab0
----
-849
1389
2688

query I rowsort
SELECT + 85 + - col1 FROM tab2
----
26
54
68

query I rowsort
SELECT ALL - 18 * col1 * - cor0.col1 FROM tab1 AS cor0
----
12168
1800
3042

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( - cor0.col1 ) * + cor0.col2 col2 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT ALL - + cor0.col1 * col2 AS col1 FROM tab1 AS cor0
----
-1248
-1404
-570

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT CAST ( col1 AS REAL ) * + col2 + ( - col2 + col2 ) * - col1 AS col2 FROM tab2 AS cor0
----
1534
646
837

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * col0 + + col0 col2 FROM tab0 AS cor0
----
1260
600
8010

query I rowsort
SELECT - ( cor0.col1 ) * + cor0.col1 - - ( col1 ) FROM tab1 AS cor0
----
-156
-650
-90

query I rowsort
SELECT + 2 * - tab2.col0 + - cor0.col1 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 51353cf3d9aa3e5db2e8aa5e028b712b

query I rowsort
SELECT + - col0 + - 94 FROM tab2 AS cor0
----
-101
-172
-173

query I rowsort
SELECT col2 * - 64 AS col0 FROM tab1 AS cor0
----
-3456
-3648
-6144

query I rowsort
SELECT col2 * 79 + + col0 AS col0 FROM tab1 AS cor0
----
4269
4567
7664

query I rowsort
SELECT 98 AS col1 FROM tab1, tab2 AS cor0, tab2 AS cor1, tab0 AS cor2
----
81 values hashing to 6624b1f09c0594f5576803ac29f4499d

query I rowsort
SELECT - 61 AS col0 FROM tab1 cor0
----
-61
-61
-61

onlyif mysql # use DIV operator for integer division
query I rowsort label-4258
SELECT + ( - 42 ) + col2 * cor0.col1 DIV col1 FROM tab0 AS cor0
----
-41
-9
40

skipif mysql # not compatible
query I rowsort label-4258
SELECT + ( - 42 ) + col2 * cor0.col1 / col1 FROM tab0 AS cor0
----
-41
-9
40

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - cor0.col2 ) col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3

query I rowsort
SELECT ALL col2 * col0 + col0 + col0 FROM tab2 AS cor0
----
203
2184
3160

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 38 * + col1 + col1 col0 FROM tab1 AS cor0
----
1014
390
507

query I rowsort
SELECT - 37 * col2 AS col0 FROM tab1 cor0
----
-1998
-2109
-3552

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + ( + col0 ) col0 FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT 83 FROM tab1, tab2 cor0, tab0 AS cor1
----
27 values hashing to 002a717a3d902d97220759065fb107c3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 57 col1 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 220a93709e207779b34ef74b544764a5

onlyif mysql # use DIV operator for integer division
query I rowsort label-4266
SELECT 82 DIV tab0.col2 AS col1 FROM tab0
----
1
2
82

skipif mysql # not compatible
query I rowsort label-4266
SELECT 82 / tab0.col2 AS col1 FROM tab0
----
1
2
82

query I rowsort
SELECT col1 - - ( + 74 ) FROM tab1 AS cor0
----
100
84
87

onlyif mysql # use DIV operator for integer division
query I rowsort label-4268
SELECT col1 DIV + col0 - - col0 FROM tab1 AS cor0
----
11
64
80

skipif mysql # not compatible
query I rowsort label-4268
SELECT col1 / + col0 - - col0 FROM tab1 AS cor0
----
11
64
80

query I rowsort
SELECT DISTINCT col0 + col1 + 33 * ( col0 ) AS col2 FROM tab2
----
269
2703
2711

query I rowsort
SELECT - 34 * tab1.col1 FROM tab1
----
-340
-442
-884

query I rowsort
SELECT DISTINCT col2 * + col2 AS col0 FROM tab0 AS cor0
----
1
1089
6724

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col2 * + col0 col2 FROM tab1 AS cor0
----
162
3648
7680

onlyif mysql # use DIV operator for integer division
query I rowsort label-4273
SELECT ALL col1 DIV col1 FROM tab2 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4273
SELECT ALL col1 / col1 FROM tab2 cor0
----
1
1
1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4274
SELECT + col0 + - CAST( NULL AS SIGNED ) * col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4274
SELECT + col0 + - CAST ( NULL AS INTEGER ) * col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - - col1 * 77 AS col0 FROM tab2 AS cor0
----
1309
2387
4543

query I rowsort
SELECT DISTINCT - col0 + ( - cor0.col1 ) FROM tab1 AS cor0
----
-29
-74
-93

query I rowsort
SELECT ALL + col0 * + col0 * col0 AS col0 FROM tab2 cor0
----
343
474552
493039

query I rowsort
SELECT DISTINCT + - cor0.col1 * + col1 FROM tab2 AS cor0
----
-289
-3481
-961

onlyif mysql # use DIV operator for integer division
query I rowsort label-4279
SELECT DISTINCT + col2 + col0 DIV col0 - + col1 FROM tab2
----
-3
-32
22

skipif mysql # not compatible
query I rowsort label-4279
SELECT DISTINCT + col2 + col0 / col0 - + col1 FROM tab2
----
-3
-32
22

query I rowsort
SELECT + col2 + + col1 + - col1 * col2 FROM tab0
----
-2719
-7289
1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4281
SELECT - col0 * CAST( col1 * + col1 AS SIGNED ) AS col2 FROM tab0
----
-177504
-329315
-737009

skipif mysql # not compatible
query I rowsort label-4281
SELECT - col0 * CAST ( col1 * + col1 AS INTEGER ) AS col2 FROM tab0
----
-177504
-329315
-737009

onlyif mysql # use DIV operator for integer division
query I rowsort label-4282
SELECT col0 + - 51 + col2 DIV - col0 FROM tab0
----
-16
-28
38

skipif mysql # not compatible
query I rowsort label-4282
SELECT col0 + - 51 + col2 / - col0 FROM tab0
----
-16
-28
38

query I rowsort
SELECT DISTINCT col0 * - 52 + tab2.col2 - + tab2.col0 * + tab2.col1 FROM tab2
----
-5413
-554
-8632

query I rowsort
SELECT col1 * ( + ( + col2 ) ) + tab2.col0 + + col2 * col0 FROM tab2
----
1033
3640
3727

query I rowsort
SELECT DISTINCT - col1 * ( col2 ) - - col0 FROM tab2
----
-1456
-567
-830

query I rowsort
SELECT col0 * + col2 * - 97 + col1 AS col1 FROM tab0
----
-3298
-707815
-76738

onlyif mysql # use DIV operator for integer division
query I rowsort label-4287
SELECT DISTINCT tab1.col0 - + col2 DIV + col0 AS col1 FROM tab1
----
-15
64
79

skipif mysql # not compatible
query I rowsort label-4287
SELECT DISTINCT tab1.col0 - + col2 / + col0 AS col1 FROM tab1
----
-15
64
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 86 + tab0.col1 col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 453099f61985034558b645a8c6eda789

query I rowsort
SELECT ALL 65 AS col2 FROM tab2 AS cor0
----
65
65
65

query I rowsort
SELECT DISTINCT - + 57 * col2 + + col0 + + 15 FROM tab2 cor0
----
-1389
-1517
-2072

onlyif mysql # use DIV operator for integer division
query I rowsort label-4291
SELECT col1 DIV - 59 - + col1 FROM tab0
----
-87
-92
-98

skipif mysql # not compatible
query I rowsort label-4291
SELECT col1 / - 59 - + col1 FROM tab0
----
-87
-92
-98

onlyif mysql # use DIV operator for integer division
query I rowsort label-4292
SELECT ALL ( + col2 ) + + col2 + col0 DIV 8 FROM tab1
----
108
122
202

skipif mysql # not compatible
query I rowsort label-4292
SELECT ALL ( + col2 ) + + col2 + col0 / 8 FROM tab1
----
108
122
202

query I rowsort
SELECT DISTINCT ( col2 ) * - 82 AS col2 FROM tab1
----
-4428
-4674
-7872

query I rowsort
SELECT + cor0.col1 * + col2 AS col1 FROM tab1 AS cor0
----
1248
1404
570

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 * col0 col0 FROM tab0 AS cor0
----
-1225
-576
-7921

query I rowsort
SELECT + 41 * + col1 AS col2 FROM tab2 cor0
----
1271
2419
697

query I rowsort
SELECT + cor0.col0 * + col1 AS col0 FROM tab2 AS cor0
----
1343
217
4602

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + col1 * col0 col0 FROM tab0
----
2150
3492
8190

onlyif mysql # use DIV operator for integer division
query I rowsort label-4299
SELECT DISTINCT col0 + - ( 24 ) DIV - tab0.col1 FROM tab0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-4299
SELECT DISTINCT col0 + - ( 24 ) / - tab0.col1 FROM tab0
----
24
35
89

query I rowsort
SELECT ALL 56 * ( + col0 ) AS col1 FROM tab2 AS cor0
----
392
4368
4424

query I rowsort
SELECT - cor0.col2 + 7 AS col1 FROM tab2 cor0
----
-19
-20
-31

query I rowsort
SELECT DISTINCT - - 12 * 82 + col1 AS col2 FROM tab0 AS cor0
----
1070
1075
1081

query I rowsort
SELECT ALL - 45 * - col0 AS col2 FROM tab2 AS cor0
----
315
3510
3555

query I rowsort
SELECT + + col2 + + 26 AS col1 FROM tab1 AS cor0
----
122
80
83

query I rowsort
SELECT DISTINCT + 44 + col2 FROM tab2 AS cor0
----
70
71
82

query I rowsort
SELECT tab0.col0 * + 68 AS col0 FROM tab0
----
1632
2380
6052

query I rowsort
SELECT DISTINCT + 40 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
40

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4308
SELECT DISTINCT col2 + + CAST( col1 AS SIGNED ) + - col0 * - 74 FROM tab2
----
576
5857
5901

skipif mysql # not compatible
query I rowsort label-4308
SELECT DISTINCT col2 + + CAST ( col1 AS INTEGER ) + - col0 * - 74 FROM tab2
----
576
5857
5901

query I rowsort
SELECT DISTINCT + col1 + + col1 + - ( - col2 ) FROM tab0
----
195
205
264

query I rowsort
SELECT ALL - col1 * col1 + - 57 AS col1 FROM tab0
----
-7453
-8338
-9466

query I rowsort
SELECT ALL - - ( col1 ) + col0 AS col1 FROM tab1 AS cor0
----
29
74
93

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4312
SELECT DISTINCT + - CAST( NULL AS SIGNED ) * - col0 AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4312
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) * - col0 AS col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + + 22 + - col2 * - cor0.col0 FROM tab0 AS cor0
----
57
7320
814

query I rowsort
SELECT - 1 * + col0 AS col2 FROM tab0 AS cor0
----
-24
-35
-89

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4315
SELECT ALL + CAST( NULL AS DECIMAL ) + + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4315
SELECT ALL + CAST ( NULL AS REAL ) + + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - ( col2 ) * col2 AS col2 FROM tab1 AS cor0
----
-2916
-3249
-9216

query I rowsort
SELECT + - ( + col0 ) + col0 * col1 FROM tab2 AS cor0
----
1264
210
4524

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4318
SELECT + CAST( NULL AS SIGNED ) + col2 / col0 AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4318
SELECT + CAST ( NULL AS INTEGER ) + col2 / col0 AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT cor0.col2 * + col0 AS col1 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT + ( col1 ) AS col2 FROM tab2 cor0
----
17
31
59

query I rowsort
SELECT ALL - ( 74 ) FROM tab1 AS cor0
----
-74
-74
-74

query I rowsort
SELECT ( - 98 ) * col0 AS col1 FROM tab0 AS cor0
----
-2352
-3430
-8722

query I rowsort
SELECT DISTINCT - col2 + cor0.col0 FROM tab1 cor0
----
-16
-51
7

query I rowsort
SELECT ALL col1 - col0 * + tab0.col1 FROM tab0
----
-1978
-3298
-8008

query I rowsort
SELECT DISTINCT 67 - - tab0.col0 * + col0 AS col0 FROM tab0
----
1292
643
7988

query I rowsort
SELECT DISTINCT - ( + col0 ) + - col2 FROM tab2 AS cor0
----
-104
-117
-34

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4327
SELECT ALL - cor0.col2 + + col2 * CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4327
SELECT ALL - cor0.col2 + + col2 * CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - - ( col1 ) * ( col2 ) FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT ALL col1 - col0 FROM tab0 cor0
----
2
62
62

query I rowsort
SELECT DISTINCT + + 72 AS col2 FROM tab1 AS cor0
----
72

onlyif mysql # use DIV operator for integer division
query I rowsort label-4331
SELECT ALL + col1 DIV + tab0.col2 + col2 AS col1 FROM tab0
----
35
83
98

skipif mysql # not compatible
query I rowsort label-4331
SELECT ALL + col1 / + tab0.col2 + col2 AS col1 FROM tab0
----
35
83
98

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4332
SELECT ALL col0 + + CAST( col2 AS SIGNED ) FROM tab2 AS cor0
----
104
117
34

skipif mysql # not compatible
query I rowsort label-4332
SELECT ALL col0 + + CAST ( col2 AS INTEGER ) FROM tab2 AS cor0
----
104
117
34

query I rowsort
SELECT DISTINCT + - cor0.col2 + + 33 AS col1 FROM tab0 AS cor0
----
-49
0
32

query I rowsort
SELECT DISTINCT col2 * + 28 + col1 AS col1 FROM tab1 AS cor0
----
1538
1606
2701

query I rowsort
SELECT - + col0 + 40 AS col2 FROM tab2 AS cor0
----
-38
-39
33

query I rowsort
SELECT cor0.col2 * + 29 FROM tab1 AS cor0
----
1566
1653
2784

query I rowsort
SELECT ALL + col0 * + ( 36 ) AS col2 FROM tab2 AS cor0
----
252
2808
2844

query I rowsort
SELECT + - col1 * 90 + - col0 AS col1 FROM tab0 AS cor0
----
-7764
-8279
-8765

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4339
SELECT - + col0 * - CAST( 0 AS SIGNED ) + + col0 FROM tab1 AS cor0
----
3
64
80

skipif mysql # not compatible
query I rowsort label-4339
SELECT - + col0 * - CAST ( 0 AS INTEGER ) + + col0 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT + col0 + + 71 FROM tab0 AS cor0
----
106
160
95

query I rowsort
SELECT + + cor0.col1 + col1 * - col0 AS col0 FROM tab2 AS cor0
----
-1326
-186
-4543

query I rowsort
SELECT ALL + - col2 * - col0 FROM tab0 AS cor0
----
35
7298
792

onlyif mysql # use DIV operator for integer division
query I rowsort label-4343
SELECT + col2 - + 68 DIV 82 AS col1 FROM tab1 cor0
----
54
57
96

skipif mysql # not compatible
query I rowsort label-4343
SELECT + col2 - + 68 / 82 AS col1 FROM tab1 cor0
----
54
57
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-4344
SELECT ALL col0 DIV + 50 AS col0 FROM tab1 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-4344
SELECT ALL col0 / + 50 AS col0 FROM tab1 AS cor0
----
0
1
1

query I rowsort
SELECT DISTINCT + + cor0.col2 * col0 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT DISTINCT + 87 FROM tab1, tab0 AS cor0
----
87

query I rowsort
SELECT col0 * ( + col1 ) + col1 * cor0.col1 FROM tab0 AS cor0
----
12804
16380
9460

query I rowsort
SELECT - col0 + ( - col1 ) AS col2 FROM tab1 cor0
----
-29
-74
-93

query I rowsort
SELECT DISTINCT - + col0 * 27 + cor0.col2 AS col2 FROM tab1 AS cor0
----
-1671
-2064
-27

query I rowsort
SELECT DISTINCT + col2 + ( 88 ) * col2 - cor0.col1 AS col2 FROM tab1 AS cor0
----
4780
5063
8531

query I rowsort
SELECT DISTINCT + col2 + 85 FROM tab0 AS cor0
----
118
167
86

query I rowsort
SELECT + col2 - ( 33 ) AS col0 FROM tab2 AS cor0
----
-6
-7
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + 42 * - col0 * + col0 col2 FROM tab0 cor0
----
-24106
-332591
-51353

query I rowsort
SELECT + ( + col2 ) + cor0.col2 + - cor0.col2 FROM tab2 AS cor0
----
26
27
38

query I rowsort
SELECT 91 + - col0 * col0 AS col2 FROM tab1 AS cor0
----
-4005
-6309
82

query I rowsort
SELECT DISTINCT col0 * col1 + + cor0.col2 + col2 AS col0 FROM tab1 AS cor0
----
1232
186
754

query I rowsort
SELECT - + col0 * + cor0.col2 FROM tab1 cor0
----
-162
-3648
-7680

query I rowsort
SELECT DISTINCT + col0 + tab2.col0 * - col1 FROM tab2
----
-1264
-210
-4524

onlyif mysql # use DIV operator for integer division
query I rowsort label-4359
SELECT - tab0.col2 DIV col2 FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-4359
SELECT - tab0.col2 / col2 FROM tab0
----
-1
-1
-1

onlyif mysql # use DIV operator for integer division
query I rowsort label-4360
SELECT col2 DIV 51 AS col1 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4360
SELECT col2 / 51 AS col1 FROM tab1
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * + col1 col1 FROM tab0 AS cor0
----
-7396
-8281
-9409

onlyif mysql # use DIV operator for integer division
query I rowsort label-4362
SELECT - col2 * col0 DIV - CAST( 68 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
2
29
44

skipif mysql # not compatible
query I rowsort label-4362
SELECT - col2 * col0 / - CAST ( 68 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
2
29
44

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col2 * + col0 col2 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT DISTINCT - - 95 * col0 AS col1 FROM tab2 AS cor0
----
665
7410
7505

query I rowsort
SELECT + tab1.col0 + 70 AS col0 FROM tab1
----
134
150
73

onlyif mysql # use DIV operator for integer division
query I rowsort label-4366
SELECT col1 DIV - col2 + col0 FROM tab0
----
-62
22
88

skipif mysql # not compatible
query I rowsort label-4366
SELECT col1 / - col2 + col0 FROM tab0
----
-62
22
88

query I rowsort
SELECT - col0 + ( + ( col2 ) ) * col0 * - col0 AS col1 FROM tab1 cor0
----
-233536
-489
-614480

query I rowsort
SELECT - 81 + - tab2.col0 AS col1 FROM tab2
----
-159
-160
-88

query IIIIIIIII rowsort
SELECT ALL * FROM tab1, tab2, tab0 AS cor0 WHERE ( NULL ) < NULL
----

query I rowsort
SELECT ALL + 63 * + cor0.col1 AS col1 FROM tab2 AS cor0
----
1071
1953
3717

query I rowsort
SELECT ALL 49 * + col0 AS col1 FROM tab0 cor0
----
1176
1715
4361

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 - + tab1.col1 AS col2 FROM tab1, tab2, tab1 cor0
----
27 values hashing to c7890469eabb2c6fc81454b35d2333b6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + - 53 * col1 col1 FROM tab1 AS cor0
----
-1352
-520
-676

query I rowsort
SELECT + ( tab1.col1 ) FROM tab1
----
10
13
26

query I rowsort
SELECT - ( col0 ) AS col0 FROM tab1 cor0
----
-3
-64
-80

query I rowsort
SELECT DISTINCT + ( col2 ) * - 13 FROM tab1
----
-1248
-702
-741

query I rowsort
SELECT DISTINCT + col2 * - col2 AS col1 FROM tab0
----
-1
-1089
-6724

onlyif mysql # use DIV operator for integer division
query I rowsort label-4379
SELECT + 65 * - tab1.col0 + - col1 DIV col0 - col0 AS col0 FROM tab1
----
-206
-4224
-5280

skipif mysql # not compatible
query I rowsort label-4379
SELECT + 65 * - tab1.col0 + - col1 / col0 - col0 AS col0 FROM tab1
----
-206
-4224
-5280

onlyif mysql # use DIV operator for integer division
query I rowsort label-4380
SELECT DISTINCT col2 DIV tab2.col0 - - col0 AS col1 FROM tab2
----
10
78
79

skipif mysql # not compatible
query I rowsort label-4380
SELECT DISTINCT col2 / tab2.col0 - - col0 AS col1 FROM tab2
----
10
78
79

query I rowsort
SELECT 26 + - col2 FROM tab2
----
-1
-12
0

query I rowsort
SELECT - - cor0.col0 + - col2 AS col1 FROM tab2 AS cor0
----
-20
41
52

query I rowsort
SELECT + col1 + cor0.col2 FROM tab0 cor0
----
119
173
98

query I rowsort
SELECT - + col0 * + col1 + - ( 19 ) AS col2 FROM tab0 AS cor0
----
-2083
-3414
-8118

onlyif mysql # use DIV operator for integer division
query I rowsort label-4385
SELECT + 71 DIV cor0.col2 FROM tab0, tab0 AS cor0
----
9 values hashing to a420c2e576d0bac27f2578323c19969e

skipif mysql # not compatible
query I rowsort label-4385
SELECT + 71 / cor0.col2 FROM tab0, tab0 AS cor0
----
9 values hashing to a420c2e576d0bac27f2578323c19969e

query I rowsort
SELECT - 89 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to c36e597b7bc5727536f5bb580e6cebbc

query I rowsort
SELECT - + cor0.col2 * col2 AS col2 FROM tab2 AS cor0
----
-1444
-676
-729

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 62 + - cor0.col2 col1 FROM tab0 AS cor0
----
-20
29
61

onlyif mysql # use DIV operator for integer division
query I rowsort label-4389
SELECT 43 DIV 67 - - cor0.col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3

skipif mysql # not compatible
query I rowsort label-4389
SELECT 43 / 67 - - cor0.col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4390
SELECT + CAST( - col0 AS SIGNED ) * - col2 + cor0.col2 AS col1 FROM tab0 AS cor0
----
36
7380
825

skipif mysql # not compatible
query I rowsort label-4390
SELECT + CAST ( - col0 AS INTEGER ) * - col2 + cor0.col2 AS col1 FROM tab0 AS cor0
----
36
7380
825

query I rowsort
SELECT - + col0 + - cor0.col2 * - col1 AS col2 FROM tab0 AS cor0
----
2814
62
7373

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4392
SELECT DISTINCT + CAST( + cor1.col0 AS SIGNED ) FROM tab1, tab1 AS cor0, tab2 cor1, tab1 AS cor2
----
7
78
79

skipif mysql # not compatible
query I rowsort label-4392
SELECT DISTINCT + CAST ( + cor1.col0 AS INTEGER ) FROM tab1, tab1 AS cor0, tab2 cor1, tab1 AS cor2
----
7
78
79

query IIIIII rowsort
SELECT DISTINCT * FROM tab0, tab2 AS cor0 WHERE NOT NULL <= NULL
----

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4394
SELECT + CAST( + col0 AS SIGNED ) * - col2 AS col2 FROM tab2 AS cor0
----
-189
-2028
-3002

skipif mysql # not compatible
query I rowsort label-4394
SELECT + CAST ( + col0 AS INTEGER ) * - col2 AS col2 FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT DISTINCT 42 * 3 + + col2 AS col1 FROM tab0 AS cor0
----
127
159
208

query I rowsort
SELECT - tab1.col1 * - ( 89 ) AS col0 FROM tab1
----
1157
2314
890

query I rowsort
SELECT 33 FROM tab2, tab0 AS cor0
----
9 values hashing to 620d384286e82d1c6c8b1b2b109a7da5

query I rowsort
SELECT ALL - - ( col1 ) - col0 FROM tab0 AS cor0
----
2
62
62

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4399
SELECT ALL - + CAST( + col2 AS SIGNED ) * cor0.col0 - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4399
SELECT ALL - + CAST ( + col2 AS INTEGER ) * cor0.col0 - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 57 + cor0.col1 AS col2 FROM tab1 AS cor0
----
-31
-44
-47

query I rowsort
SELECT + 79 FROM tab2, tab2 cor0
----
9 values hashing to 40a2261caa2c5cdbfd80965d7df1231f

query I rowsort
SELECT ALL ( + col1 ) + col1 AS col1 FROM tab0 cor0
----
172
182
194

query I rowsort
SELECT DISTINCT + + col2 + - col0 + cor0.col1 * - col1 AS col1 FROM tab0 AS cor0
----
-7387
-8288
-9443

query I rowsort
SELECT DISTINCT + col0 * + col0 - - col0 * + 68 AS col1 FROM tab2 AS cor0
----
11388
11613
525

query I rowsort
SELECT + + 51 * + col2 FROM tab0 AS cor0
----
1683
4182
51

query I rowsort
SELECT ALL + col2 * col1 + - ( - col1 ) FROM tab1 AS cor0
----
1261
1430
580

query I rowsort
SELECT DISTINCT - - cor0.col1 * cor0.col2 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT - col0 * col0 * tab2.col2 + - col1 FROM tab2
----
-1354
-158243
-237175

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 40 col1 FROM tab0
----
-40
-40
-40

query I rowsort
SELECT ALL col0 + - col0 + - col2 AS col2 FROM tab2 AS cor0
----
-26
-27
-38

query I rowsort
SELECT + col2 * 88 + col2 AS col2 FROM tab2 AS cor0
----
2314
2403
3382

query I rowsort
SELECT - + col1 + - col0 * ( + col2 ) * + 38 FROM tab1 cor0
----
-138634
-291853
-6182

query I rowsort
SELECT + + col0 * col2 + 88 FROM tab2 cor0
----
2116
277
3090

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4414
SELECT - col1 * 81 * - 89 + col2 * + CAST( 95 AS SIGNED ) FROM tab1 cor0
----
102837
192564
77505

skipif mysql # not compatible
query I rowsort label-4414
SELECT - col1 * 81 * - 89 + col2 * + CAST ( 95 AS INTEGER ) FROM tab1 cor0
----
102837
192564
77505

query I rowsort
SELECT - + col0 + + 69 FROM tab0 AS cor0
----
-20
34
45

query I rowsort
SELECT 47 * - col1 AS col2 FROM tab1
----
-1222
-470
-611

query I rowsort
SELECT ALL ( col1 ) * - col2 * - col1 FROM tab1
----
16224
36504
5700

query I rowsort
SELECT DISTINCT + col0 * ( + 64 ) FROM tab2
----
448
4992
5056

query I rowsort
SELECT DISTINCT + cor1.col1 AS col2 FROM tab1 cor0 CROSS JOIN tab2, tab1 cor1
----
10
13
26

query I rowsort
SELECT col0 * - col0 * + col1 FROM tab2 cor0
----
-106097
-1519
-358956

onlyif mysql # use DIV operator for integer division
query I rowsort label-4421
SELECT + col0 DIV - cor0.col1 + col0 AS col0 FROM tab2 AS cor0
----
7
75
77

skipif mysql # not compatible
query I rowsort label-4421
SELECT + col0 / - cor0.col1 + col0 AS col0 FROM tab2 AS cor0
----
7
75
77

query I rowsort
SELECT DISTINCT col0 * - col1 + + 43 FROM tab0
----
-2021
-3352
-8056

query I rowsort
SELECT DISTINCT + col2 * col0 + + col1 AS col1 FROM tab2
----
2087
220
3019

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4424
SELECT col0 - + CAST( NULL AS SIGNED ) * cor0.col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4424
SELECT col0 - + CAST ( NULL AS INTEGER ) * cor0.col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4425
SELECT - col0 - CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4425
SELECT - col0 - CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col0 * - 61 FROM tab1 AS cor0
----
183
3904
4880

query I rowsort
SELECT DISTINCT + 34 AS col1 FROM tab0, tab2 cor0
----
34

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab2 cor0, tab0 AS cor1, tab1 cor2
----
972 values hashing to 0210050fb1701e2797a9b17e1ebac91e

query I rowsort
SELECT DISTINCT - cor0.col2 AS col0 FROM tab1 cor0 CROSS JOIN tab2 cor1
----
-54
-57
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col0 * + 52 col0 FROM tab1 AS cor0
----
156
3328
4160

query I rowsort
SELECT - col1 * + ( col2 ) + cor0.col1 + - col0 FROM tab2 cor0
----
-1553
-708
-813

query I rowsort
SELECT 79 + - 82 FROM tab0, tab2 AS cor0
----
9 values hashing to 95b6b9b4aae5cc2d9545db9f8940b2dc

query I rowsort
SELECT col1 - - 34 AS col1 FROM tab1
----
44
47
60

onlyif mysql # use DIV operator for integer division
query I rowsort label-4434
SELECT col0 DIV 78 AS col1 FROM tab2
----
0
1
1

skipif mysql # not compatible
query I rowsort label-4434
SELECT col0 / 78 AS col1 FROM tab2
----
0
1
1

query I rowsort
SELECT tab1.col1 * 39 + - 1 FROM tab1
----
1013
389
506

query I rowsort
SELECT - col2 * - col1 + col2 FROM tab1 AS cor0
----
1344
1458
627

query I rowsort
SELECT - col2 * col1 + - col2 AS col2 FROM tab1 AS cor0
----
-1344
-1458
-627

onlyif mysql # use DIV operator for integer division
query I rowsort label-4438
SELECT ALL + tab0.col0 DIV col1 + - col2 FROM tab0
----
-1
-33
-82

skipif mysql # not compatible
query I rowsort label-4438
SELECT ALL + tab0.col0 / col1 + - col2 FROM tab0
----
-1
-33
-82

query I rowsort
SELECT ALL 16 FROM tab1, tab2 AS cor0
----
9 values hashing to 3fdb08ec2e3d4b642dd4594778cca8b3

query I rowsort
SELECT DISTINCT + col2 + 64 FROM tab2
----
102
90
91

query I rowsort
SELECT - col1 * col1 * + col1 FROM tab1
----
-1000
-17576
-2197

query I rowsort
SELECT DISTINCT + 40 * + cor0.col1 AS col1 FROM tab2 AS cor0
----
1240
2360
680

query I rowsort
SELECT ALL 20 + col2 AS col2 FROM tab1 AS cor0
----
116
74
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col2 * + col1 col0 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT ALL + - col1 + col0 AS col0 FROM tab1 cor0
----
-23
54
67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + cor0.col1 * col0 col1 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT ( col1 ) * col1 + ( - cor0.col1 ) * 47 FROM tab0 AS cor0
----
3354
4004
4850

onlyif mysql # use DIV operator for integer division
query I rowsort label-4448
SELECT DISTINCT - - col2 DIV col1 AS col1 FROM tab2 AS cor0
----
0
2

skipif mysql # not compatible
query I rowsort label-4448
SELECT DISTINCT - - col2 / col1 AS col1 FROM tab2 AS cor0
----
0
2

query I rowsort
SELECT ALL 42 FROM tab0 cor0
----
42
42
42

query I rowsort
SELECT ALL 82 AS col0 FROM tab1
----
82
82
82

query I rowsort
SELECT ALL 79 * + 92 * - col2 AS col0 FROM tab0
----
-239844
-595976
-7268

query I rowsort
SELECT col0 * col0 + - col2 AS col1 FROM tab2
----
22
6058
6203

query I rowsort
SELECT ALL col0 * + 22 AS col2 FROM tab0
----
1958
528
770

query I rowsort
SELECT DISTINCT + cor1.col2 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
26
27
38

query I rowsort
SELECT + cor0.col0 + - col1 AS col0 FROM tab1 AS cor0
----
-23
54
67

onlyif mysql # use DIV operator for integer division
query I rowsort label-4456
SELECT ALL - + col2 DIV col0 AS col1 FROM tab0 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-4456
SELECT ALL - + col2 / col0 AS col1 FROM tab0 AS cor0
----
-1
0
0

query I rowsort
SELECT ALL + + 46 * cor0.col2 FROM tab0 AS cor0
----
1518
3772
46

onlyif mysql # use DIV operator for integer division
query I rowsort label-4458
SELECT + 8 DIV col1 AS col2 FROM tab0 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4458
SELECT + 8 / col1 AS col2 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT - - 70 * + col1 FROM tab2 AS cor0
----
1190
2170
4130

query I rowsort
SELECT col2 * - col1 + + tab0.col1 FROM tab0
----
-2752
-7371
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + - tab0.col2 col1 FROM tab0
----
53
9
96

query I rowsort
SELECT DISTINCT - col1 * + col2 AS col2 FROM tab2
----
-1534
-646
-837

query I rowsort
SELECT DISTINCT + tab2.col0 AS col2 FROM tab2, tab0 AS cor0
----
7
78
79

query I rowsort
SELECT DISTINCT + col1 * cor0.col0 AS col1 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT + - 17 + tab2.col1 FROM tab2, tab0, tab0 AS cor0
----
27 values hashing to 9a3d3cad621404eb2ae64b7477c31fd8

query I rowsort
SELECT - + cor0.col1 * - 27 FROM tab1 AS cor0
----
270
351
702

query I rowsort
SELECT ALL - col2 * - ( col2 ) FROM tab0 AS cor0
----
1
1089
6724

query I rowsort
SELECT DISTINCT + col0 + col2 * 0 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT ALL + col2 * - 69 * + col0 AS col1 FROM tab1 AS cor0
----
-11178
-251712
-529920

query I rowsort
SELECT DISTINCT + col1 + - 82 AS col0 FROM tab1 cor0
----
-56
-69
-72

query I rowsort
SELECT DISTINCT + cor1.col2 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1, tab0 AS cor1, tab1 AS cor2
----
1
33
82

onlyif mysql # use DIV operator for integer division
query I rowsort label-4472
SELECT + col2 DIV ( - col0 ) FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-4472
SELECT + col2 / ( - col0 ) FROM tab0
----
-1
0
0

query I rowsort
SELECT - col2 + 70 * col0 FROM tab2 AS cor0
----
463
5434
5492

query I rowsort
SELECT col2 + ( ( col1 ) ) FROM tab1 AS cor0
----
109
67
80

query IIIIIIIIIIIIIIIIII rowsort
SELECT * FROM tab2, tab2 AS cor0 CROSS JOIN tab0, tab2 AS cor1, tab1, tab0 AS cor2
----
13122 values hashing to 2d394ad7bc188d0705abdad442acf3ca

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4476
SELECT ALL - CAST( NULL AS SIGNED ) + + cor0.col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4476
SELECT ALL - CAST ( NULL AS INTEGER ) + + cor0.col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 60 + col1 AS col1 FROM tab2
----
119
77
91

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4478
SELECT DISTINCT ( ( col2 ) ) + - CAST( NULL AS DECIMAL ) * col1 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4478
SELECT DISTINCT ( ( col2 ) ) + - CAST ( NULL AS REAL ) * col1 FROM tab2 cor0
----
NULL

query I rowsort
SELECT ALL - col0 * col0 + col2 FROM tab0 AS cor0
----
-1224
-543
-7839

query I rowsort
SELECT DISTINCT + - ( - col0 ) + col1 FROM tab1 AS cor0
----
29
74
93

query I rowsort
SELECT + - col1 + 0 FROM tab2 AS cor0
----
-17
-31
-59

query I rowsort
SELECT ALL 6 - - cor0.col1 FROM tab2 AS cor0
----
23
37
65

query I rowsort
SELECT - + 74 AS col0 FROM tab1 AS cor0
----
-74
-74
-74

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT + CAST ( - col1 AS REAL ) + col2 * 15 col1 FROM tab2 AS cor0
----
331
374
553

query I rowsort
SELECT DISTINCT + col0 * - ( - col2 * ( - col1 ) ) FROM tab1 AS cor0
----
-36480
-4212
-99840

query I rowsort
SELECT DISTINCT + - col0 + + col2 * - col2 FROM tab0 AS cor0
----
-1113
-36
-6813

query I rowsort
SELECT ALL + 11 * - col2 FROM tab2 cor0
----
-286
-297
-418

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 67 * cor0.col2 col0 FROM tab2 AS cor0
----
1742
1809
2546

query I rowsort
SELECT - 51 * cor0.col2 * cor0.col2 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to e85244c0766b26c44976280704162f45

query I rowsort
SELECT - + 65 + col2 FROM tab1 AS cor0
----
-11
-8
31

query I rowsort
SELECT col2 * col1 + + 82 AS col0 FROM tab2 AS cor0
----
1616
728
919

query I rowsort
SELECT ALL + cor0.col2 * + col1 + + 21 FROM tab2 AS cor0
----
1555
667
858

query I rowsort
SELECT ALL col0 + col0 + 18 * + 2 AS col0 FROM tab2 cor0
----
192
194
50

query I rowsort
SELECT + col0 + - 21 * + col0 FROM tab1 AS cor0
----
-1280
-1600
-60

query I rowsort
SELECT col2 * cor0.col1 * cor0.col1 AS col1 FROM tab2 AS cor0
----
10982
25947
90506

query I rowsort
SELECT ALL - - cor0.col1 FROM tab1 cor0
----
10
13
26

query I rowsort
SELECT - 86 + - col0 AS col2 FROM tab0 AS cor0
----
-110
-121
-175

query I rowsort
SELECT + col2 + 34 * cor0.col2 FROM tab1 AS cor0
----
1890
1995
3360

query I rowsort
SELECT ALL + 10 + 80 * col1 AS col2 FROM tab0 AS cor0
----
6890
7290
7770

query I rowsort
SELECT col1 * + col2 - - col2 FROM tab1
----
1344
1458
627

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - col0 + ( col1 ) col2 FROM tab0 AS cor0
----
-1978
-3298
-8008

onlyif mysql # use DIV operator for integer division
query I rowsort label-4502
SELECT - col0 + + ( + col2 ) DIV - col1 FROM tab1 AS cor0
----
-5
-69
-87

skipif mysql # not compatible
query I rowsort label-4502
SELECT - col0 + + ( + col2 ) / - col1 FROM tab1 AS cor0
----
-5
-69
-87

query I rowsort
SELECT - - 2 AS col2 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 84dbfaf9bc17dd097f15bc36b4186261

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4504
SELECT DISTINCT col0 * + CAST( NULL AS SIGNED ) * + 9 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4504
SELECT DISTINCT col0 * + CAST ( NULL AS INTEGER ) * + 9 FROM tab0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab0.col1 - 69 * - col1 col0 FROM tab0
----
6020
6370
6790

query I rowsort
SELECT ALL + col1 + + col1 * - col0 * col2 + 38 AS col0 FROM tab1
----
-36432
-4148
-99789

query I rowsort
SELECT DISTINCT - cor0.col0 AS col2 FROM tab1, tab2, tab2 AS cor0
----
-7
-78
-79

onlyif mysql # use DIV operator for integer division
query I rowsort label-4508
SELECT - + col0 DIV - col0 AS col2 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4508
SELECT - + col0 / - col0 AS col2 FROM tab2 AS cor0
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * 50 + col0 * - col1 col0 FROM tab2
----
-5293
-567
-8502

onlyif mysql # use DIV operator for integer division
query I rowsort label-4510
SELECT - col0 DIV + 44 FROM tab2 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-4510
SELECT - col0 / + 44 FROM tab2 AS cor0
----
-1
-1
0

query I rowsort
SELECT col2 * - 90 + - col0 FROM tab1 AS cor0
----
-4863
-5194
-8720

query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab1 cor0 CROSS JOIN tab0, tab1 cor1
----
243 values hashing to 70c6a01760d7239f3003db4da92180a4

onlyif mysql # use DIV operator for integer division
query I rowsort label-4513
SELECT - - col0 DIV col1 AS col0 FROM tab0 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4513
SELECT - - col0 / col1 AS col0 FROM tab0 cor0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4514
SELECT + col1 + CAST( - col1 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4514
SELECT + col1 + CAST ( - col1 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 28 col1 FROM tab0, tab2 AS cor0
----
9 values hashing to aad32232c428b3ecb5ada63f7e9b0a97

query I rowsort
SELECT - cor0.col2 * ( col2 ) + + col0 AS col2 FROM tab2 AS cor0
----
-1365
-598
-722

onlyif mysql # use DIV operator for integer division
query I rowsort label-4517
SELECT - + 76 DIV 41 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-4517
SELECT - + 76 / 41 FROM tab1 AS cor0
----
-1
-1
-1

onlyif mysql # use DIV operator for integer division
query I rowsort label-4518
SELECT - ( + col2 ) DIV + col0 FROM tab0 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-4518
SELECT - ( + col2 ) / + col0 FROM tab0 AS cor0
----
-1
0
0

query I rowsort
SELECT DISTINCT - ( 14 ) * + col1 + 46 + col0 AS col1 FROM tab0 AS cor0
----
-1134
-1139
-1277

query I rowsort
SELECT ALL 93 AS col0 FROM tab0
----
93
93
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * + 73 col1 FROM tab1
----
3942
4161
7008

query I rowsort
SELECT + 24 + col1 * col1 AS col1 FROM tab2 AS cor0
----
313
3505
985

query I rowsort
SELECT DISTINCT - - ( col0 ) AS col0 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT DISTINCT - - col2 * col0 + - col2 AS col1 FROM tab0 AS cor0
----
34
7216
759

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + - cor0.col2 + - col1 col0 FROM tab2 cor0
----
-51
-7
24

query I rowsort
SELECT DISTINCT + 40 + + 38 * - col2 AS col1 FROM tab0 cor0
----
-1214
-3076
2

query I rowsort
SELECT ALL col0 * col2 + cor0.col1 * + col2 AS col1 FROM tab0 AS cor0
----
132
14760
3630

onlyif mysql # use DIV operator for integer division
query I rowsort label-4528
SELECT - + col2 DIV - col1 - - col1 * col0 FROM tab1 AS cor0
----
1047
645
80

skipif mysql # not compatible
query I rowsort label-4528
SELECT - + col2 / - col1 - - col1 * col0 FROM tab1 AS cor0
----
1047
645
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-4529
SELECT DISTINCT - col1 * col0 - 99 * col0 DIV col0 FROM tab1
----
-1139
-177
-739

skipif mysql # not compatible
query I rowsort label-4529
SELECT DISTINCT - col1 * col0 - 99 * col0 / col0 FROM tab1
----
-1139
-177
-739

query I rowsort
SELECT ALL tab2.col1 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to 7599b480125de521efed71b5b2413c7d

query I rowsort
SELECT col0 * col2 + col2 + col1 FROM tab2
----
2113
247
3057

query I rowsort
SELECT - + col1 * - col0 + - 70 FROM tab2 AS cor0
----
1273
147
4532

query I rowsort
SELECT + 20 * col1 AS col2 FROM tab2 AS cor0
----
1180
340
620

query I rowsort
SELECT + col2 * + cor0.col1 + - col0 - col0 AS col2 FROM tab2 cor0
----
1378
488
823

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + ( col1 ) * cor0.col1 col1 FROM tab1 AS cor0
----
164
249
679

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * col0 + - 52 * col0 col1 FROM tab2 cor0
----
-147
-2765
546

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4537
SELECT DISTINCT col0 + - CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4537
SELECT DISTINCT col0 + - CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col0 * + col2 - col0 col1 FROM tab0 AS cor0
----
0
7209
768

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 + 7 col0 FROM tab2 AS cor0
----
33
34
45

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4540
SELECT + col2 - CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4540
SELECT + col2 - CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col0 + 2 * - 43 AS col1 FROM tab1 AS cor0
----
-150
-166
-89

query I rowsort
SELECT ALL - + col2 * col2 + col0 AS col1 FROM tab0 AS cor0
----
-1065
-6635
34

query I rowsort
SELECT DISTINCT + col0 + + 73 FROM tab2 cor0
----
151
152
80

query I rowsort
SELECT ALL - col0 * + 54 FROM tab2 AS cor0
----
-378
-4212
-4266

query I rowsort
SELECT - col0 * 38 FROM tab0 cor0
----
-1330
-3382
-912

query I rowsort
SELECT DISTINCT + col2 * ( col1 ) + - col1 FROM tab0 AS cor0
----
0
2752
7371

query I rowsort
SELECT ALL - 52 AS col1 FROM tab2
----
-52
-52
-52

query I rowsort
SELECT ALL 42 FROM tab1, tab2, tab2 AS cor0
----
27 values hashing to 325aada2239b6fe1fe2d843515ae8c5e

query I rowsort
SELECT 19 FROM tab2, tab1 AS cor0, tab1 cor1
----
27 values hashing to 86c53e8567a17c8d91fc5aff119e0498

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4550
SELECT ALL + CAST( + col0 AS SIGNED ) + - col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4550
SELECT ALL + CAST ( + col0 AS INTEGER ) + - col0 FROM tab2 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * col0 + col0 col2 FROM tab1
----
12
4160
6480

query I rowsort
SELECT ALL - - 18 + col0 FROM tab2 cor0
----
25
96
97

query I rowsort
SELECT DISTINCT + cor0.col2 * 40 AS col1 FROM tab0 AS cor0
----
1320
3280
40

query I rowsort
SELECT col0 + ( col1 ) FROM tab2 AS cor0
----
137
38
96

query I rowsort
SELECT DISTINCT - cor0.col2 - 87 FROM tab1 AS cor0
----
-141
-144
-183

query I rowsort
SELECT + ( - 34 ) AS col0 FROM tab1 cor0
----
-34
-34
-34

query I rowsort
SELECT ALL - + col2 * 36 + - col0 FROM tab1 AS cor0
----
-1947
-2116
-3536

onlyif mysql # use DIV operator for integer division
query I rowsort label-4558
SELECT DISTINCT - - col0 DIV + col2 + + col0 * + 51 AS col1 FROM tab1 AS cor0
----
153
3265
4080

skipif mysql # not compatible
query I rowsort label-4558
SELECT DISTINCT - - col0 / + col2 + + col0 * + 51 AS col1 FROM tab1 AS cor0
----
153
3265
4080

query I rowsort
SELECT + cor0.col2 - col2 AS col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - col2 * + col0 + + col0 * - col0 FROM tab2 AS cor0
----
-238
-8112
-9243

query I rowsort
SELECT + col2 * - col1 - col1 FROM tab0 AS cor0
----
-194
-2924
-7553

query I rowsort
SELECT DISTINCT + col0 * - cor0.col2 + col0 FROM tab1 AS cor0
----
-159
-3584
-7600

query I rowsort
SELECT DISTINCT - col2 * col0 + 29 * - col1 * + col2 + col0 FROM tab2 AS cor0
----
-21657
-24455
-46436

query I rowsort
SELECT + - 56 + - col1 AS col2 FROM tab0 AS cor0
----
-142
-147
-153

query I rowsort
SELECT DISTINCT + + col0 * - 16 FROM tab0 AS cor0
----
-1424
-384
-560

query I rowsort
SELECT ALL + col2 * 19 FROM tab1 cor0
----
1026
1083
1824

query I rowsort
SELECT DISTINCT + + col2 + 69 * 43 FROM tab2 AS cor0
----
2993
2994
3005

query I rowsort
SELECT - - col2 * col2 * + col0 FROM tab1 AS cor0
----
207936
737280
8748

query I rowsort
SELECT DISTINCT col2 + - ( ( - col1 ) ) FROM tab0 AS cor0
----
119
173
98

query I rowsort
SELECT ALL + - col0 * + 53 FROM tab1 AS cor0
----
-159
-3392
-4240

query I rowsort
SELECT - cor0.col0 * - col1 + + col1 * - col1 FROM tab1 AS cor0
----
-598
540
871

query I rowsort
SELECT DISTINCT - + col0 + - 91 * col0 FROM tab1 AS cor0
----
-276
-5888
-7360

query I rowsort
SELECT DISTINCT - + cor0.col1 + 21 FROM tab1 AS cor0
----
-5
11
8

query I rowsort
SELECT + col0 * col1 * - col0 AS col0 FROM tab0 AS cor0
----
-118825
-49536
-720811

query I rowsort
SELECT - tab2.col0 AS col1 FROM tab2, tab1 cor0
----
9 values hashing to 3000337dd3f11e9cfd5a312b01ef3f8b

query I rowsort
SELECT 92 + + col2 * 99 AS col2 FROM tab1
----
5438
5735
9596

query I rowsort
SELECT DISTINCT col1 + + col1 * ( + 84 ) * - col0 + col1 FROM tab2
----
-112778
-18166
-386450

query I rowsort
SELECT DISTINCT col0 + col1 * col1 AS col2 FROM tab1 cor0
----
164
249
679

query I rowsort
SELECT DISTINCT - col2 * 3 FROM tab2 AS cor0
----
-114
-78
-81

query I rowsort
SELECT col0 * ( + 61 ) + + col2 * col1 FROM tab1 AS cor0
----
1587
4474
6128

query I rowsort
SELECT DISTINCT - + col2 * + 43 + - ( col2 ) FROM tab0 AS cor0
----
-1452
-3608
-44

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2, tab0 AS cor1, tab1, tab2 AS cor2
----
3645 values hashing to 9aea36b1adc82580fae09bf05c24fd77

query I rowsort
SELECT - - col0 + col2 * col0 FROM tab1 AS cor0
----
165
3712
7760

query I rowsort
SELECT 3 + cor0.col0 * - col1 FROM tab0 AS cor0
----
-2061
-3392
-8096

query I rowsort
SELECT - cor0.col0 + cor0.col1 FROM tab0 cor0
----
2
62
62

onlyif mysql # use DIV operator for integer division
query I rowsort label-4586
SELECT 2 DIV col1 AS col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4586
SELECT 2 / col1 AS col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - tab0.col2 * 69 FROM tab0
----
-2277
-5658
-69

query I rowsort
SELECT 14 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 409c1790b702540dd9dc067c1965b7c0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col0 + ( cor0.col0 ) col2 FROM tab2, tab1, tab2 AS cor0
----
14
156
158

query I rowsort
SELECT ALL 57 AS col1 FROM tab0
----
57
57
57

query I rowsort
SELECT DISTINCT - 21 AS col0 FROM tab2, tab2 AS cor0
----
-21

query I rowsort
SELECT - 33 * - 19 AS col2 FROM tab0 AS cor0
----
627
627
627

query I rowsort
SELECT DISTINCT - col0 * cor0.col0 AS col2 FROM tab2 AS cor0
----
-49
-6084
-6241

query I rowsort
SELECT DISTINCT - - ( 59 ) + - col1 * cor0.col1 FROM tab0 AS cor0
----
-7337
-8222
-9350

onlyif mysql # use DIV operator for integer division
query I rowsort label-4595
SELECT - 94 DIV - col2 + col2 FROM tab0 AS cor0
----
35
83
95

skipif mysql # not compatible
query I rowsort label-4595
SELECT - 94 / - col2 + col2 FROM tab0 AS cor0
----
35
83
95

query I rowsort
SELECT DISTINCT + ( col0 ) * + col2 * - col2 AS col1 FROM tab1
----
-207936
-737280
-8748

query I rowsort
SELECT DISTINCT + - 87 + + col1 AS col1 FROM tab0 AS cor0
----
-1
10
4

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4598
SELECT ALL + + CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4598
SELECT ALL + + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 47 + - col0 FROM tab0 cor0
----
-42
12
23

onlyif mysql # use DIV operator for integer division
query I rowsort label-4600
SELECT ALL - col2 DIV col1 + cor0.col0 AS col0 FROM tab1 AS cor0
----
1
59
73

skipif mysql # not compatible
query I rowsort label-4600
SELECT ALL - col2 / col1 + cor0.col0 AS col0 FROM tab1 AS cor0
----
1
59
73

onlyif mysql # use DIV operator for integer division
query I rowsort label-4601
SELECT - col2 - + col0 DIV - col0 FROM tab0 AS cor0
----
-32
-81
0

skipif mysql # not compatible
query I rowsort label-4601
SELECT - col2 - + col0 / - col0 FROM tab0 AS cor0
----
-32
-81
0

query I rowsort
SELECT + 19 + col2 AS col2 FROM tab1 cor0
----
115
73
76

onlyif mysql # use DIV operator for integer division
query I rowsort label-4603
SELECT DISTINCT + - 43 DIV col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4603
SELECT DISTINCT + - 43 / col2 FROM tab1 AS cor0
----
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4604
SELECT ALL + ( - col1 ) + CAST( NULL AS SIGNED ) + - col0 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4604
SELECT ALL + ( - col1 ) + CAST ( NULL AS INTEGER ) + - col0 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col1 * col0 * 7 FROM tab2 cor0
----
1519
32214
9401

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4606
SELECT + - col0 * CAST( + col0 * col1 AS SIGNED ) + + cor0.col2 * + col0 AS col1 FROM tab2 AS cor0
----
-103095
-1330
-356928

skipif mysql # not compatible
query I rowsort label-4606
SELECT + - col0 * CAST ( + col0 * col1 AS INTEGER ) + + cor0.col2 * + col0 AS col1 FROM tab2 AS cor0
----
-103095
-1330
-356928

query I rowsort
SELECT DISTINCT + 92 AS col0 FROM tab1, tab2 AS cor0
----
92

query I rowsort
SELECT DISTINCT + + col2 + 89 FROM tab1 AS cor0
----
143
146
185

query I rowsort
SELECT DISTINCT col2 * + ( - 36 ) AS col0 FROM tab2 AS cor0
----
-1368
-936
-972

onlyif mysql # use DIV operator for integer division
query I rowsort label-4610
SELECT ALL - tab2.col0 DIV - ( tab2.col1 ) AS col0 FROM tab2
----
0
1
4

skipif mysql # not compatible
query I rowsort label-4610
SELECT ALL - tab2.col0 / - ( tab2.col1 ) AS col0 FROM tab2
----
0
1
4

onlyif mysql # use DIV operator for integer division
query I rowsort label-4611
SELECT cor0.col0 DIV + col2 AS col2 FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-4611
SELECT cor0.col0 / + col2 AS col2 FROM tab1 AS cor0
----
0
0
1

query I rowsort
SELECT col1 * ( 22 ) + + col1 FROM tab0 AS cor0
----
1978
2093
2231

query I rowsort
SELECT + + col0 * + cor0.col2 AS col2 FROM tab1 AS cor0
----
162
3648
7680

onlyif mysql # use DIV operator for integer division
query I rowsort label-4614
SELECT col2 + col0 + - col2 DIV col0 AS col2 FROM tab1 AS cor0
----
121
175
39

skipif mysql # not compatible
query I rowsort label-4614
SELECT col2 + col0 + - col2 / col0 AS col2 FROM tab1 AS cor0
----
121
175
39

query I rowsort
SELECT - 65 * cor0.col1 FROM tab2 AS cor0
----
-1105
-2015
-3835

query I rowsort
SELECT ALL - 54 + + col1 AS col1 FROM tab2 AS cor0
----
-23
-37
5

query I rowsort
SELECT - col2 * col1 * 76 + - col2 * col0 FROM tab1 AS cor0
----
-102528
-106866
-46968

query I rowsort
SELECT + col2 * col1 + + 26 AS col1 FROM tab2 AS cor0
----
1560
672
863

skipif mysql # not compatible
query I rowsort
SELECT col1 + - col0 + + CAST ( - 33 + + col0 AS REAL ) FROM tab1 AS cor0
----
-20
-23
-7

query I rowsort
SELECT - + col0 * cor0.col0 + col0 FROM tab1 AS cor0
----
-4032
-6
-6320

query I rowsort
SELECT + col1 + + 97 AS col2 FROM tab1 AS cor0
----
107
110
123

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col0 - + col0 col0 FROM tab2 cor0
----
-14
-156
-158

query I rowsort
SELECT + ( - cor1.col1 ) + + cor0.col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to f47321fdc704b303f53ecfb742fc419d

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + cor0.col1 * ( + col1 * col1 ) + + 96 col1 FROM tab0 AS cor0
----
-635960
-753475
-912577

query I rowsort
SELECT ALL + 95 AS col2 FROM tab1
----
95
95
95

query I rowsort
SELECT col2 + + col1 * + cor0.col1 AS col2 FROM tab1 AS cor0
----
157
265
730

query I rowsort
SELECT col1 + col1 * col1 * col0 FROM tab1 AS cor0
----
13533
2054
6410

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab1, tab2 AS cor1, tab1 AS cor2, tab0 AS cor3
----
3645 values hashing to 9d746e15fdb5adcb43a7518cd9743eb3

query I rowsort
SELECT ( 2 ) * + col2 FROM tab0
----
164
2
66

query I rowsort
SELECT DISTINCT 6 AS col0 FROM tab1
----
6

query I rowsort
SELECT - 44 AS col2 FROM tab1
----
-44
-44
-44

query I rowsort
SELECT ALL col0 * 19 AS col2 FROM tab1
----
1216
1520
57

query I rowsort
SELECT ALL ( col2 ) * - col2 AS col0 FROM tab1
----
-2916
-3249
-9216

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4634
SELECT CAST( + 6 AS SIGNED ) * - tab1.col0 FROM tab1
----
-18
-384
-480

skipif mysql # not compatible
query I rowsort label-4634
SELECT CAST ( + 6 AS INTEGER ) * - tab1.col0 FROM tab1
----
-18
-384
-480

query I rowsort
SELECT DISTINCT - 17 AS col2 FROM tab0 AS cor0
----
-17

query I rowsort
SELECT ALL + col0 + - cor0.col2 AS col0 FROM tab2 AS cor0
----
-20
41
52

query I rowsort
SELECT DISTINCT 98 * col2 FROM tab0 AS cor0
----
3234
8036
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + col0 col0 FROM tab2
----
104
117
34

query I rowsort
SELECT + 30 AS col1 FROM tab2, tab2 cor0, tab0 AS cor1
----
27 values hashing to 6c98840ed134c765d56389f4150075f0

query I rowsort
SELECT ALL tab0.col2 + col0 + + col2 FROM tab0
----
253
37
90

query I rowsort
SELECT + tab0.col2 * cor0.col2 FROM tab0, tab2, tab1 cor0
----
27 values hashing to 1a327f2a52a0a35b577f58109ee147a4

query I rowsort
SELECT DISTINCT + ( + tab1.col0 ) + col1 FROM tab1
----
29
74
93

onlyif mysql # use DIV operator for integer division
query I rowsort label-4643
SELECT col0 * tab0.col0 DIV col0 + 26 FROM tab0
----
115
50
61

skipif mysql # not compatible
query I rowsort label-4643
SELECT col0 * tab0.col0 / col0 + 26 FROM tab0
----
115
50
61

query I rowsort
SELECT + col2 + - col1 + - col1 * + col0 FROM tab1
----
-50
-593
-957

query I rowsort
SELECT ALL - - 57 FROM tab2 AS cor0
----
57
57
57

query I rowsort
SELECT + + 67 * + col1 AS col0 FROM tab2 AS cor0
----
1139
2077
3953

query I rowsort
SELECT ALL + col0 + 87 AS col1 FROM tab2 AS cor0
----
165
166
94

query I rowsort
SELECT + col2 * + 36 + col0 AS col1 FROM tab2 AS cor0
----
1014
1447
979

query I rowsort
SELECT - + ( - 19 ) AS col2 FROM tab0 AS cor0
----
19
19
19

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4650
SELECT + - CAST( NULL AS SIGNED ) * ( col2 ) * cor0.col1 + col2 * - col1 AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4650
SELECT + - CAST ( NULL AS INTEGER ) * ( col2 ) * cor0.col1 + col2 * - col1 AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + + 66 + 15 FROM tab1 AS cor0
----
81

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4652
SELECT DISTINCT CAST( NULL AS DECIMAL ) * + ( + col0 ) * + 10 AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4652
SELECT DISTINCT CAST ( NULL AS REAL ) * + ( + col0 ) * + 10 AS col0 FROM tab0 AS cor0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-4653
SELECT ALL - col0 + col0 DIV - cor0.col1 FROM tab0 AS cor0
----
-24
-35
-89

skipif mysql # not compatible
query I rowsort label-4653
SELECT ALL - col0 + col0 / - cor0.col1 FROM tab0 AS cor0
----
-24
-35
-89

query I rowsort
SELECT DISTINCT - col0 + 54 * col2 * 7 FROM tab0 AS cor0
----
12450
30907
343

onlyif mysql # use DIV operator for integer division
query I rowsort label-4655
SELECT DISTINCT col0 - cor0.col2 DIV col0 FROM tab2 cor0
----
4
78
79

skipif mysql # not compatible
query I rowsort label-4655
SELECT DISTINCT col0 - cor0.col2 / col0 FROM tab2 cor0
----
4
78
79

query I rowsort
SELECT ALL col1 * cor0.col2 AS col1 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT ALL 27 AS col0 FROM tab2 AS cor0
----
27
27
27

query I rowsort
SELECT 70 + - col2 FROM tab1
----
-26
13
16

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4659
SELECT DISTINCT + CAST( + 63 AS SIGNED ) FROM tab2, tab1 AS cor0
----
63

skipif mysql # not compatible
query I rowsort label-4659
SELECT DISTINCT + CAST ( + 63 AS INTEGER ) FROM tab2, tab1 AS cor0
----
63

query I rowsort
SELECT DISTINCT + 89 * + col2 AS col1 FROM tab2 AS cor0
----
2314
2403
3382

query I rowsort
SELECT + 6 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 5d1cb90ed58fa7573895d2f95b211821

query I rowsort
SELECT DISTINCT - tab1.col1 * + 30 * - 11 AS col2 FROM tab1
----
3300
4290
8580

query I rowsort
SELECT DISTINCT + col0 * col0 AS col1 FROM tab2
----
49
6084
6241

query I rowsort
SELECT ALL - + cor0.col2 * col1 + - col1 + + col1 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT ALL col2 + - ( col0 ) * - col2 AS col1 FROM tab1 AS cor0
----
216
3705
7776

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4666
SELECT ALL col0 * + CAST( NULL AS SIGNED ) + ( col0 ) * 28 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4666
SELECT ALL col0 * + CAST ( NULL AS INTEGER ) + ( col0 ) * 28 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col2 + 80 AS col0 FROM tab2 AS cor0
----
106
107
118

query I rowsort
SELECT 88 * col1 AS col1 FROM tab0
----
7568
8008
8536

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + + 16 col1 FROM tab0
----
-17
-66
15

query I rowsort
SELECT ALL + 28 * - col1 * + col2 + col2 AS col2 FROM tab0
----
-208854
-2715
-79431

query I rowsort
SELECT DISTINCT 43 * tab1.col2 AS col0 FROM tab1, tab2 AS cor0
----
2322
2451
4128

query I rowsort
SELECT 54 + tab0.col0 FROM tab0
----
143
78
89

query I rowsort
SELECT DISTINCT 68 FROM tab1, tab2 AS cor0
----
68

query I rowsort
SELECT ALL + 97 + col2 * - col2 FROM tab2
----
-1347
-579
-632

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - col1 ) col2 FROM tab0 cor0
----
-86
-91
-97

query I rowsort
SELECT DISTINCT - 96 * col1 AS col1 FROM tab0 AS cor0
----
-8256
-8736
-9312

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4677
SELECT ALL ( col0 ) + cor0.col2 * CAST( + 82 AS SIGNED ) * cor0.col2 AS col0 FROM tab0 cor0
----
117
551457
89322

skipif mysql # not compatible
query I rowsort label-4677
SELECT ALL ( col0 ) + cor0.col2 * CAST ( + 82 AS INTEGER ) * cor0.col2 AS col0 FROM tab0 cor0
----
117
551457
89322

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4678
SELECT - CAST( - 0 AS SIGNED ) + + col1 AS col0 FROM tab1 AS cor0
----
10
13
26

skipif mysql # not compatible
query I rowsort label-4678
SELECT - CAST ( - 0 AS INTEGER ) + + col1 AS col0 FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT DISTINCT - col0 * cor0.col0 + - 23 AS col2 FROM tab1 AS cor0
----
-32
-4119
-6423

query I rowsort
SELECT ALL ( col0 ) + + 62 * cor0.col1 * col0 AS col0 FROM tab0 AS cor0
----
127992
210525
502227

onlyif mysql # use DIV operator for integer division
query I rowsort label-4681
SELECT DISTINCT - - col1 DIV col1 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-4681
SELECT DISTINCT - - col1 / col1 FROM tab0 AS cor0
----
1

query I rowsort
SELECT + 81 * cor0.col1 + - col2 FROM tab0 AS cor0
----
6933
7289
7856

query I rowsort
SELECT DISTINCT - - ( col0 ) + cor0.col0 FROM tab1 AS cor0
----
128
160
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col1 * + col2 col2 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT DISTINCT + col2 + col0 * - col0 AS col2 FROM tab1
----
-4039
-6304
45

query I rowsort
SELECT DISTINCT + 57 * col1 + col1 FROM tab2
----
1798
3422
986

onlyif mysql # use DIV operator for integer division
query I rowsort label-4687
SELECT DISTINCT - 7 + col2 DIV col0 + col0 AS col2 FROM tab1
----
14
57
74

skipif mysql # not compatible
query I rowsort label-4687
SELECT DISTINCT - 7 + col2 / col0 + col0 AS col2 FROM tab1
----
14
57
74

onlyif mysql # use DIV operator for integer division
query I rowsort label-4688
SELECT - col2 DIV tab0.col0 + + col0 + - CAST( col1 AS SIGNED ) * + col2 AS col2 FROM tab0
----
-2815
-62
-7373

skipif mysql # not compatible
query I rowsort label-4688
SELECT - col2 / tab0.col0 + + col0 + - CAST ( col1 AS INTEGER ) * + col2 AS col2 FROM tab0
----
-2815
-62
-7373

query I rowsort
SELECT DISTINCT - 68 AS col0 FROM tab2 AS cor0
----
-68

query I rowsort
SELECT DISTINCT - + col1 * + cor0.col2 FROM tab0 AS cor0
----
-2838
-7462
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * + col1 col1 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT ALL col2 + + col1 * - col1 FROM tab1
----
-43
-622
-73

query I rowsort
SELECT ALL + col0 * cor0.col0 + + col2 * + 24 * + col0 FROM tab0 AS cor0
----
183073
19584
2065

query I rowsort
SELECT + - ( col2 ) + 0 FROM tab0 AS cor0
----
-1
-33
-82

query I rowsort
SELECT - + cor0.col1 + + col0 AS col0 FROM tab1 cor0
----
-23
54
67

query I rowsort
SELECT - col1 * col0 + - 63 * col2 * - col0 + - col2 FROM tab2 AS cor0
----
11663
123136
187745

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 36 * - col0 col2 FROM tab2 AS cor0
----
252
2808
2844

query I rowsort
SELECT cor0.col1 + col1 * col0 AS col2 FROM tab0 AS cor0
----
2150
3492
8190

query I rowsort
SELECT + - col1 * - ( + col2 ) + - col2 AS col2 FROM tab1 AS cor0
----
1152
1350
513

query I rowsort
SELECT - col2 + ( col2 ) * + col0 AS col2 FROM tab0 AS cor0
----
34
7216
759

query I rowsort
SELECT - 17 * - col2 FROM tab2 AS cor0
----
442
459
646

query I rowsort
SELECT - cor0.col1 + + cor0.col0 FROM tab0 AS cor0
----
-2
-62
-62

query I rowsort
SELECT cor0.col1 * col1 * + col0 AS col2 FROM tab2 cor0
----
22831
271518
6727

query I rowsort
SELECT DISTINCT - 91 + 98 - col2 FROM tab2 AS cor0
----
-19
-20
-31

query I rowsort
SELECT DISTINCT - col1 + col0 * - col2 FROM tab1 cor0
----
-188
-3658
-7693

query I rowsort
SELECT ALL - col2 + + 80 AS col0 FROM tab0 AS cor0
----
-2
47
79

query I rowsort
SELECT ALL + 36 - + col2 AS col2 FROM tab1 AS cor0
----
-18
-21
-60

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4708
SELECT col2 + CAST( - col2 AS SIGNED ) FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4708
SELECT col2 + CAST ( - col2 AS INTEGER ) FROM tab0
----
0
0
0

query I rowsort
SELECT + tab0.col0 + col1 * col1 AS col2 FROM tab0
----
7420
8370
9444

onlyif mysql # use DIV operator for integer division
query I rowsort label-4710
SELECT - 50 DIV - 15 FROM tab1
----
3
3
3

skipif mysql # not compatible
query I rowsort label-4710
SELECT - 50 / - 15 FROM tab1
----
3
3
3

onlyif mysql # use DIV operator for integer division
query I rowsort label-4711
SELECT ALL col0 * col2 * col2 + - 61 + - col1 DIV + col0 AS col0 FROM tab1
----
207875
737219
8679

skipif mysql # not compatible
query I rowsort label-4711
SELECT ALL col0 * col2 * col2 + - 61 + - col1 / + col0 AS col0 FROM tab1
----
207875
737219
8679

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4712
SELECT + CAST( NULL AS SIGNED ) AS col2 FROM tab1, tab0 AS cor0 CROSS JOIN tab0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-4712
SELECT + CAST ( NULL AS INTEGER ) AS col2 FROM tab1, tab0 AS cor0 CROSS JOIN tab0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT cor1.col1 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775

query I rowsort
SELECT DISTINCT + col1 * col1 + col1 * ( col1 ) * + cor0.col1 AS col2 FROM tab2 AS cor0
----
208860
30752
5202

query I rowsort
SELECT DISTINCT - col2 + - cor0.col2 * - col1 * + 42 FROM tab2 AS cor0
----
27094
35127
64402

query I rowsort
SELECT - 5 + col2 * + col0 FROM tab1 cor0
----
157
3643
7675

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4717
SELECT + CAST( NULL AS SIGNED ) * 67 + + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4717
SELECT + CAST ( NULL AS INTEGER ) * 67 + + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( + col2 ) * col1 col0 FROM tab1 AS cor0
----
-1248
-1404
-570

onlyif mysql # use DIV operator for integer division
query I rowsort label-4719
SELECT DISTINCT 33 DIV col0 + - col1 FROM tab0 AS cor0
----
-85
-91
-97

skipif mysql # not compatible
query I rowsort label-4719
SELECT DISTINCT 33 / col0 + - col1 FROM tab0 AS cor0
----
-85
-91
-97

query I rowsort
SELECT ALL 99 * + cor0.col0 + col1 * col1 FROM tab2 AS cor0
----
11203
1654
8110

onlyif mysql # use DIV operator for integer division
query I rowsort label-4721
SELECT - 91 DIV - 30 AS col2 FROM tab2
----
3
3
3

skipif mysql # not compatible
query I rowsort label-4721
SELECT - 91 / - 30 AS col2 FROM tab2
----
3
3
3

query I rowsort
SELECT ALL - 69 FROM tab2, tab0 AS cor0
----
9 values hashing to 3bd7460efa48c66c072ad5f3c2def7e9

query I rowsort
SELECT col0 + + cor0.col1 FROM tab0 cor0
----
110
132
180

query I rowsort
SELECT + col2 + col2 - - 93 * + col1 FROM tab0 cor0
----
8064
8627
9023

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4725
SELECT col0 + - CAST( NULL AS SIGNED ) col2 FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4725
SELECT col0 + - CAST ( NULL AS INTEGER ) col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT + - cor0.col1 + 83 FROM tab1 AS cor0
----
57
70
73

onlyif mysql # use DIV operator for integer division
query I rowsort label-4727
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-4727
SELECT + col0 / - col0 col1 FROM tab1 AS cor0
----
-1
-1
-1

query I rowsort
SELECT + ( 50 ) AS col1 FROM tab0 AS cor0
----
50
50
50

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4729
SELECT + + CAST( NULL AS SIGNED ) * + col2 / + col2 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4729
SELECT + + CAST ( NULL AS INTEGER ) * + col2 / + col2 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - ( - col0 ) + - col2 AS col0 FROM tab1 AS cor0
----
-16
-51
7

query I rowsort
SELECT DISTINCT - col1 + - cor0.col0 AS col2 FROM tab0 cor0
----
-110
-132
-180

query I rowsort
SELECT - + cor0.col0 + + 38 AS col0 FROM tab1 AS cor0
----
-26
-42
35

query I rowsort
SELECT + ( - col2 ) + col0 AS col2 FROM tab1 AS cor0
----
-16
-51
7

query I rowsort
SELECT DISTINCT - col2 * + col1 + + col1 FROM tab0 AS cor0
----
-2752
-7371
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4735
SELECT DISTINCT + CAST( + 22 AS SIGNED ) * col1 AS col0 FROM tab0 AS cor0
----
1892
2002
2134

skipif mysql # not compatible
query I rowsort label-4735
SELECT DISTINCT + CAST ( + 22 AS INTEGER ) * col1 AS col0 FROM tab0 AS cor0
----
1892
2002
2134

onlyif mysql # use DIV operator for integer division
query I rowsort label-4736
SELECT DISTINCT - CAST( col1 AS SIGNED ) DIV + cor0.col1 FROM tab1 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-4736
SELECT DISTINCT - CAST ( col1 AS INTEGER ) / + cor0.col1 FROM tab1 cor0
----
-1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4737
SELECT - - CAST( NULL AS DECIMAL ) * col1 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4737
SELECT - - CAST ( NULL AS REAL ) * col1 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col2 + - col2 * + cor0.col0 AS col0 FROM tab1 AS cor0
----
-216
-3705
-7776

onlyif mysql # use DIV operator for integer division
query I rowsort label-4739
SELECT - + 74 DIV + col2 col1 FROM tab0 AS cor0
----
-2
-74
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4739
SELECT - + 74 / + col2 col1 FROM tab0 AS cor0
----
-2
-74
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + + 2 + col2 col1 FROM tab2 AS cor0
----
-39
-50
22

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4741
SELECT DISTINCT cor0.col0 * col1 * + col2 + - CAST( + col2 * + col2 AS SIGNED ) FROM tab1 AS cor0
----
1296
33231
90624

skipif mysql # not compatible
query I rowsort label-4741
SELECT DISTINCT cor0.col0 * col1 * + col2 + - CAST ( + col2 * + col2 AS INTEGER ) FROM tab1 AS cor0
----
1296
33231
90624

query I rowsort
SELECT 80 * - col1 + col1 AS col1 FROM tab2 AS cor0
----
-1343
-2449
-4661

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4743
SELECT tab1.col0 * + col2 + CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4743
SELECT tab1.col0 * + col2 + CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort
SELECT - col1 + CAST ( + cor0.col0 AS REAL ) * - col2 AS col2 FROM tab0 AS cor0
----
-132
-7389
-878

query I rowsort
SELECT DISTINCT + cor0.col2 * - col0 AS col0 FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT ALL - col1 + - 28 * 64 FROM tab0 AS cor0
----
-1878
-1883
-1889

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4747
SELECT ALL - col0 * CAST( 16 AS SIGNED ) FROM tab0 AS cor0
----
-1424
-384
-560

skipif mysql # not compatible
query I rowsort label-4747
SELECT ALL - col0 * CAST ( 16 AS INTEGER ) FROM tab0 AS cor0
----
-1424
-384
-560

query I rowsort
SELECT DISTINCT - col0 + - 86 FROM tab1 cor0
----
-150
-166
-89

query I rowsort
SELECT ALL + + col0 - col2 FROM tab2 AS cor0
----
-20
41
52

query I rowsort
SELECT DISTINCT + + cor0.col1 * ( 32 ) + - col2 * - 88 FROM tab2 AS cor0
----
3368
3888
4176

query I rowsort
SELECT DISTINCT + + col1 * col0 FROM tab1 cor0
----
1040
640
78

onlyif mysql # use DIV operator for integer division
query I rowsort label-4752
SELECT DISTINCT - col0 DIV col0 + col0 - + col2 * cor0.col2 * + col1 AS col2 FROM tab2 AS cor0
----
-22593
-24470
-39807

skipif mysql # not compatible
query I rowsort label-4752
SELECT DISTINCT - col0 / col0 + col0 - + col2 * cor0.col2 * + col1 AS col2 FROM tab2 AS cor0
----
-22593
-24470
-39807

query I rowsort
SELECT DISTINCT + cor0.col1 * col2 AS col0 FROM tab0 AS cor0
----
2838
7462
97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4754
SELECT col0 * + CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4754
SELECT col0 * + CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col0 + + col0 + col0 AS col2 FROM tab2 AS cor0
----
21
234
237

query I rowsort
SELECT DISTINCT + - cor0.col1 + + 95 FROM tab1 cor0
----
69
82
85

query I rowsort
SELECT - + col1 * + col0 AS col1 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT ALL cor0.col2 * ( col2 ) AS col2 FROM tab2 AS cor0
----
1444
676
729

query I rowsort
SELECT DISTINCT + - ( + 47 ) + col2 AS col2 FROM tab2 AS cor0
----
-20
-21
-9

query I rowsort
SELECT + 99 AS col2 FROM tab2, tab2 AS cor0, tab0 cor1
----
27 values hashing to 05ea182fd6036c7f5e0ea08fc061cc67

query I rowsort
SELECT + col0 + + col1 * 19 * col1 FROM tab2
----
18266
5570
66217

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4762
SELECT + CAST( 30 AS SIGNED ) AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to da5de0c411a2c0f445400f1b63ea9f89

skipif mysql # not compatible
query I rowsort label-4762
SELECT + CAST ( 30 AS INTEGER ) AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to da5de0c411a2c0f445400f1b63ea9f89

query I rowsort
SELECT ALL 55 * + col2 FROM tab0 AS cor0
----
1815
4510
55

query I rowsort
SELECT DISTINCT - 68 + col0 AS col0 FROM tab0 AS cor0
----
-33
-44
21

query I rowsort
SELECT + - col2 + col0 AS col1 FROM tab0 AS cor0
----
-9
34
7

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab2 cor0, tab2, tab2 cor1
----
972 values hashing to 163d7732097d78f1cda7f65c2cea5a08

query I rowsort
SELECT + col0 + col0 * + col1 - tab2.col0 AS col0 FROM tab2
----
1343
217
4602

query I rowsort
SELECT ALL col0 + col0 * col2 * + 18 FROM tab1 cor0
----
138320
2919
65728

query I rowsort
SELECT DISTINCT + 21 * + col2 FROM tab1 AS cor0
----
1134
1197
2016

query I rowsort
SELECT + 46 * col2 + col2 * + 6 AS col0 FROM tab1 AS cor0
----
2808
2964
4992

query I rowsort
SELECT + - col1 + col2 * - col1 AS col0 FROM tab2 AS cor0
----
-1593
-663
-868

query I rowsort
SELECT + 72 AS col1 FROM tab1
----
72
72
72

query I rowsort
SELECT DISTINCT 0 - cor0.col2 FROM tab2 AS cor0
----
-26
-27
-38

query I rowsort
SELECT - + col1 + - col2 * ( + 17 ) FROM tab0 cor0
----
-114
-1485
-647

query I rowsort
SELECT ALL col2 + - col0 + + col1 FROM tab2
----
-24
51
7

query I rowsort
SELECT - + cor0.col1 + cor0.col2 * 86 FROM tab1 AS cor0
----
4618
4892
8243

query I rowsort
SELECT - cor0.col2 + cor0.col0 FROM tab0 AS cor0
----
-9
34
7

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL IN ( col0 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-4779
SELECT ALL - tab0.col0 + - col0 DIV + col1 AS col0 FROM tab0
----
-24
-35
-89

skipif mysql # not compatible
query I rowsort label-4779
SELECT ALL - tab0.col0 + - col0 / + col1 AS col0 FROM tab0
----
-24
-35
-89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * + col1 col0 FROM tab2
----
289
3481
961

query I rowsort
SELECT ALL col1 * - col1 + col1 FROM tab2 WHERE NOT ( NULL ) NOT IN ( + col0 * col2 )
----

query I rowsort
SELECT + col1 * + col1 - tab0.col1 AS col1 FROM tab0
----
7310
8190
9312

query I rowsort
SELECT DISTINCT col0 * - tab1.col0 * col2 AS col1 FROM tab1
----
-233472
-486
-614400

query I rowsort
SELECT ALL col1 * + col0 * - col2 FROM tab1
----
-36480
-4212
-99840

query I rowsort
SELECT + col1 + + col0 + col2 AS col1 FROM tab2
----
134
163
65

query I rowsort
SELECT col0 * col0 AS col0 FROM tab1 WHERE NULL NOT IN ( col1 * + col1 )
----

query I rowsort
SELECT ALL cor0.col0 + 9 AS col1 FROM tab2, tab1 cor0, tab2 AS cor1
----
27 values hashing to 5e7274997f12ee8b297da9d88315a0f8

query I rowsort
SELECT - 11 AS col0 FROM tab0
----
-11
-11
-11

query I rowsort
SELECT tab2.col1 * col0 + + tab2.col2 FROM tab2
----
1381
244
4628

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * + col2 + + col0 col2 FROM tab0 AS cor0
----
-7209
-768
0

query I rowsort
SELECT DISTINCT - - cor0.col1 + cor0.col2 FROM tab0, tab0 AS cor0
----
119
173
98

query I rowsort
SELECT ALL - 63 AS col1 FROM tab2
----
-63
-63
-63

onlyif mysql # use DIV operator for integer division
query I rowsort label-4793
SELECT ALL + col1 DIV + tab2.col0 AS col2 FROM tab2
----
0
0
4

skipif mysql # not compatible
query I rowsort label-4793
SELECT ALL + col1 / + tab2.col0 AS col2 FROM tab2
----
0
0
4

query I rowsort
SELECT col2 + col1 + col1 AS col0 FROM tab1
----
106
122
77

onlyif mysql # use DIV operator for integer division
query I rowsort label-4795
SELECT DISTINCT - col1 DIV col1 AS col2 FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-4795
SELECT DISTINCT - col1 / col1 AS col2 FROM tab1
----
-1

onlyif mysql # use DIV operator for integer division
query I rowsort label-4796
SELECT ALL col1 DIV col1 AS col1 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4796
SELECT ALL col1 / col1 AS col1 FROM tab0
----
1
1
1

query I rowsort
SELECT col2 * - col0 * col2 FROM tab0
----
-26136
-35
-598436

onlyif mysql # use DIV operator for integer division
query I rowsort label-4798
SELECT DISTINCT + col2 DIV - col1 col0 FROM tab1
----
-2
-5
-7

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4798
SELECT DISTINCT + col2 / - col1 col0 FROM tab1
----
-2
-5
-7

onlyif mysql # use DIV operator for integer division
query I rowsort label-4799
SELECT + col2 DIV col0 + - col0 AS col1 FROM tab1
----
-64
-79
15

skipif mysql # not compatible
query I rowsort label-4799
SELECT + col2 / col0 + - col0 AS col1 FROM tab1
----
-64
-79
15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + col1 * tab2.col1 - col2 col0 FROM tab2
----
268
3514
965

onlyif mysql # use DIV operator for integer division
query I rowsort label-4801
SELECT DISTINCT col1 DIV - col1 col1 FROM tab0
----
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4801
SELECT DISTINCT col1 / - col1 col1 FROM tab0
----
-1

query III rowsort
SELECT ALL * FROM tab1 WHERE ( NULL ) < NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-4803
SELECT ALL - col1 DIV col1 AS col1 FROM tab0 WHERE ( - col2 * + col1 * + col0 ) NOT IN ( col1 )
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-4803
SELECT ALL - col1 / col1 AS col1 FROM tab0 WHERE ( - col2 * + col1 * + col0 ) NOT IN ( col1 )
----
-1
-1
-1

query I rowsort
SELECT DISTINCT - col1 + + col1 * col2 AS col0 FROM tab0 AS cor0
----
0
2752
7371

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( cor0.col1 / + col1 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-4806
SELECT DISTINCT + cor0.col2 DIV + col0 AS col0 FROM tab0 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-4806
SELECT DISTINCT + cor0.col2 / + col0 AS col0 FROM tab0 AS cor0
----
0
1

query I rowsort
SELECT DISTINCT + col2 - col0 AS col0 FROM tab2
----
-41
-52
20

query I rowsort
SELECT DISTINCT col1 + - tab0.col0 AS col2 FROM tab0
----
2
62

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NULL ) >= col0
----

query I rowsort
SELECT + col2 * col1 + + col1 FROM tab2
----
1593
663
868

query I rowsort
SELECT col1 * col2 + col0 AS col2 FROM tab2
----
1612
725
844

query I rowsort
SELECT DISTINCT tab0.col2 * + col2 FROM tab0
----
1
1089
6724

query I rowsort
SELECT + tab1.col2 * - col0 + - col2 * col0 FROM tab1
----
-15360
-324
-7296

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( + col0 + - col2 * col2 ) NOT IN ( col2 )
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45

query I rowsort
SELECT ALL + tab1.col2 FROM tab1 WHERE NULL <> NULL
----

query I rowsort
SELECT + col1 * col0 * - col1 FROM tab1
----
-13520
-2028
-6400

query I rowsort
SELECT ALL - tab1.col0 * + col2 - + col0 AS col0 FROM tab1
----
-165
-3712
-7760

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 col0 FROM tab2 WHERE NULL <> NULL
----

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4819
SELECT - CAST( NULL AS SIGNED ) * 8 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4819
SELECT - CAST ( NULL AS INTEGER ) * 8 AS col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - + 36 AS col1 FROM tab2 AS cor0
----
-36
-36
-36

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT CAST ( - 18 AS REAL ) FROM tab1 AS cor0
----
-18

query I rowsort
SELECT DISTINCT - - 79 * - col0 - col1 AS col0 FROM tab2 AS cor0
----
-584
-6221
-6258

query I rowsort
SELECT + + col1 + cor0.col2 * 62 AS col2 FROM tab2 AS cor0
----
1671
1705
2373

query I rowsort
SELECT - ( + col0 ) + 11 FROM tab2 AS cor0
----
-67
-68
4

query I rowsort
SELECT col2 + col0 + + col1 FROM tab0 cor0
----
133
143
262

query I rowsort
SELECT col1 + col0 - col1 FROM tab1 AS cor0
----
3
64
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-4827
SELECT - 18 * - ( + col1 ) DIV + tab0.col1 FROM tab0
----
18
18
18

skipif mysql # not compatible
query I rowsort label-4827
SELECT - 18 * - ( + col1 ) / + tab0.col1 FROM tab0
----
18
18
18

query I rowsort
SELECT 70 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 9758da65ae4711e3e8c8def2fe026911

query I rowsort
SELECT 38 - col0 * - ( col2 + + col0 * cor0.col2 ) AS col0 FROM tab2 AS cor0
----
1550
160250
240198

query I rowsort
SELECT ALL - col2 * col2 - col0 AS col2 FROM tab2 AS cor0
----
-1523
-736
-754

query I rowsort
SELECT ALL cor0.col0 * col2 - + col1 FROM tab1 AS cor0
----
136
3638
7667

query I rowsort
SELECT ALL - col1 + 57 FROM tab2 AS cor0
----
-2
26
40

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4833
SELECT DISTINCT + col0 + CAST( NULL AS DECIMAL ) * - 67 * col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4833
SELECT DISTINCT + col0 + CAST ( NULL AS REAL ) * - 67 * col1 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL 96 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 22c5141a629f0ef396738ee2c8be6303

query I rowsort
SELECT - col1 * - 59 AS col0 FROM tab2 AS cor0
----
1003
1829
3481

query I rowsort
SELECT ALL + cor0.col0 * 40 AS col0 FROM tab1 AS cor0
----
120
2560
3200

query I rowsort
SELECT DISTINCT + + cor0.col0 + + 59 + + col0 AS col2 FROM tab0 AS cor0
----
107
129
237

query I rowsort
SELECT ALL + 83 FROM tab0
----
83
83
83

query I rowsort
SELECT ALL 3 FROM tab1, tab1 AS cor0
----
9 values hashing to 3cf1e377a943589897b8d431a834f1ba

query I rowsort
SELECT 12 + 51 FROM tab0, tab1 AS cor0, tab2 cor1, tab2 AS cor2
----
81 values hashing to 29cdb8d01f1c3eb072511674b1c6d5fd

query I rowsort
SELECT - 90 + col0 AS col2 FROM tab2 AS cor0
----
-11
-12
-83

onlyif mysql # use DIV operator for integer division
query I rowsort label-4842
SELECT DISTINCT 78 DIV tab2.col1 + + cor1.col2 AS col0 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27
28
29
30
31
39
40
42

skipif mysql # not compatible
query I rowsort label-4842
SELECT DISTINCT 78 / tab2.col1 + + cor1.col2 AS col0 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27
28
29
30
31
39
40
42

query I rowsort
SELECT - + col2 + col1 * - col0 * + col0 FROM tab1 AS cor0
----
-288
-41017
-83296

query I rowsort
SELECT DISTINCT - 2 * col2 AS col1 FROM tab2
----
-52
-54
-76

onlyif mysql # use DIV operator for integer division
query I rowsort label-4845
SELECT ALL 9 DIV - col0 AS col0 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4845
SELECT ALL 9 / - col0 AS col0 FROM tab0
----
0
0
0

query I rowsort
SELECT DISTINCT - 20 * col1 FROM tab1 AS cor0
----
-200
-260
-520

query I rowsort
SELECT DISTINCT + 20 * - col1 AS col2 FROM tab1 cor0
----
-200
-260
-520

onlyif mysql # use DIV operator for integer division
query I rowsort label-4848
SELECT DISTINCT col0 + + col0 DIV col0 AS col2 FROM tab0 AS cor0
----
25
36
90

skipif mysql # not compatible
query I rowsort label-4848
SELECT DISTINCT col0 + + col0 / col0 AS col2 FROM tab0 AS cor0
----
25
36
90

query I rowsort
SELECT - cor0.col0 + + col2 + col2 FROM tab2 cor0
----
-26
-3
47

query I rowsort
SELECT ALL + 25 + + col2 AS col2 FROM tab1 cor0
----
121
79
82

query I rowsort
SELECT ALL 14 * tab0.col1 FROM tab0
----
1204
1274
1358

query I rowsort
SELECT ( ( + tab1.col1 ) ) FROM tab1
----
10
13
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( + col2 + tab2.col0 ) col0 FROM tab2
----
104
117
34

query I rowsort
SELECT DISTINCT - 94 * - col0 * col2 FROM tab2
----
17766
190632
282188

query I rowsort
SELECT + 3 - col1 FROM tab1 cor0
----
-10
-23
-7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 * + col2 - + col1 col2 FROM tab1 AS cor0
----
2890
3239
9203

query I rowsort
SELECT - + cor0.col0 + - col1 * cor0.col2 + + col1 * col0 FROM tab1 AS cor0
----
-1329
-288
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 92 * col2 + + col0 * + col1 * - col2 + col2 * col1 col2 FROM tab1 AS cor0
----
-107424
-41154
-7776

query I rowsort
SELECT + 47 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 4fe192f296791e1e40ea00a68aa8dab7

onlyif mysql # use DIV operator for integer division
query I rowsort label-4860
SELECT - + col2 + 5 DIV col0 AS col1 FROM tab2 AS cor0
----
-26
-27
-38

skipif mysql # not compatible
query I rowsort label-4860
SELECT - + col2 + 5 / col0 AS col1 FROM tab2 AS cor0
----
-26
-27
-38

query I rowsort
SELECT - col1 * ( col2 ) * - col0 FROM tab1 AS cor0
----
36480
4212
99840

query I rowsort
SELECT - 24 * - col1 AS col0 FROM tab2 AS cor0
----
1416
408
744

query I rowsort
SELECT - + 38 + - col0 * col2 FROM tab0 AS cor0
----
-73
-7336
-830

onlyif mysql # use DIV operator for integer division
query I rowsort label-4864
SELECT - + col1 DIV - 31 AS col1 FROM tab0 cor0
----
2
2
3

skipif mysql # not compatible
query I rowsort label-4864
SELECT - + col1 / - 31 AS col1 FROM tab0 cor0
----
2
2
3

query I rowsort
SELECT ALL + 59 FROM tab0, tab2 AS cor0
----
9 values hashing to a9b9966d749d1b2ce5955ed12394f9bc

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + col0 + - col1 ) * + col1 col1 FROM tab0
----
-182
-5332
-6014

onlyif mysql # use DIV operator for integer division
query I rowsort label-4867
SELECT ALL col1 DIV 84 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4867
SELECT ALL col1 / 84 FROM tab0
----
1
1
1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4868
SELECT ALL - CAST( - 2 AS SIGNED ) * - col1 FROM tab1 AS cor0
----
-20
-26
-52

skipif mysql # not compatible
query I rowsort label-4868
SELECT ALL - CAST ( - 2 AS INTEGER ) * - col1 FROM tab1 AS cor0
----
-20
-26
-52

query I rowsort
SELECT - 22 FROM tab0, tab2 AS cor0
----
9 values hashing to fae46f8148b02964f7145eb6ed5819f9

query I rowsort
SELECT ALL 97 * col2 + col2 AS col1 FROM tab0 AS cor0
----
3234
8036
98

query I rowsort
SELECT DISTINCT cor1.col1 AS col2 FROM tab2, tab1 AS cor0, tab0 AS cor1, tab1 AS cor2
----
86
91
97

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL IN ( tab2.col1 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-4873
SELECT DISTINCT - col2 * - col1 + col0 DIV + col0 AS col2 FROM tab2 AS cor0
----
1535
647
838

skipif mysql # not compatible
query I rowsort label-4873
SELECT DISTINCT - col2 * - col1 + col0 / + col0 AS col2 FROM tab2 AS cor0
----
1535
647
838

query I rowsort
SELECT - col1 + + col2 AS col2 FROM tab0 cor0
----
-53
-9
-96

query I rowsort
SELECT DISTINCT - + col0 * col2 + col1 * - col1 AS col0 FROM tab0 AS cor0
----
-15579
-8188
-9444

query I rowsort
SELECT ALL - col1 + col1 AS col1 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT DISTINCT col0 * - col0 * col1 FROM tab0 AS cor0
----
-118825
-49536
-720811

query I rowsort
SELECT DISTINCT + col0 * col1 - cor0.col0 AS col0 FROM tab1 AS cor0
----
576
75
960

query I rowsort
SELECT DISTINCT - cor0.col1 + - cor0.col2 FROM tab1 AS cor0
----
-109
-67
-80

onlyif mysql # use DIV operator for integer division
query I rowsort label-4880
SELECT col1 DIV col1 + + col0 * col2 AS col2 FROM tab2
----
190
2029
3003

skipif mysql # not compatible
query I rowsort label-4880
SELECT col1 / col1 + + col0 * col2 AS col2 FROM tab2
----
190
2029
3003

query I rowsort
SELECT DISTINCT col0 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN NULL AND ( col0 )
----

query I rowsort
SELECT + cor0.col0 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870

query I rowsort
SELECT DISTINCT col1 * col0 AS col1 FROM tab1 cor0
----
1040
640
78

query I rowsort
SELECT + tab2.col1 * tab2.col0 * + col1 FROM tab2
----
22831
271518
6727

onlyif mysql # use DIV operator for integer division
query I rowsort label-4885
SELECT tab0.col0 DIV - tab0.col0 AS col1 FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-4885
SELECT tab0.col0 / - tab0.col0 AS col1 FROM tab0
----
-1
-1
-1

query I rowsort
SELECT + col2 + col0 * - cor0.col0 * col2 FROM tab1 AS cor0
----
-233415
-432
-614304

onlyif mysql # use DIV operator for integer division
query I rowsort label-4887
SELECT cor0.col2 DIV + col0 + cor0.col2 + + col0 FROM tab0 AS cor0
----
171
36
58

skipif mysql # not compatible
query I rowsort label-4887
SELECT cor0.col2 / + col0 + cor0.col2 + + col0 FROM tab0 AS cor0
----
171
36
58

query I rowsort
SELECT DISTINCT - col1 * col0 AS col2 FROM tab1
----
-1040
-640
-78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab2.col1 * + col0 * + col1 col1 FROM tab2
----
22831
271518
6727

onlyif mysql # use DIV operator for integer division
query I rowsort label-4890
SELECT ALL + + col1 * + col1 - - col0 DIV col0 FROM tab1 AS cor0
----
101
170
677

skipif mysql # not compatible
query I rowsort label-4890
SELECT ALL + + col1 * + col1 - - col0 / col0 FROM tab1 AS cor0
----
101
170
677

query I rowsort
SELECT + col1 - - tab2.col1 AS col1 FROM tab2
----
118
34
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - col0 + col1 col1 FROM tab1
----
-136
-3638
-7667

onlyif mysql # use DIV operator for integer division
query I rowsort label-4893
SELECT DISTINCT + col2 + + col0 DIV tab1.col1 FROM tab1
----
102
54
63

skipif mysql # not compatible
query I rowsort label-4893
SELECT DISTINCT + col2 + + col0 / tab1.col1 FROM tab1
----
102
54
63

query I rowsort
SELECT DISTINCT + tab0.col2 + + col0 + + col2 FROM tab0
----
253
37
90

query I rowsort
SELECT + col1 - col0 * col1 FROM tab1
----
-1027
-52
-630

query I rowsort
SELECT ALL - + col0 * - col2 FROM tab1 cor0
----
162
3648
7680

query I rowsort
SELECT + col1 + 75 FROM tab0 AS cor0
----
161
166
172

onlyif mysql # use DIV operator for integer division
query I rowsort label-4898
SELECT ALL + col1 + col0 + - col2 DIV col1 FROM tab2 AS cor0
----
137
38
94

skipif mysql # not compatible
query I rowsort label-4898
SELECT ALL + col1 + col0 + - col2 / col1 FROM tab2 AS cor0
----
137
38
94

query I rowsort
SELECT ALL + col1 - - ( 64 ) FROM tab0 AS cor0
----
150
155
161

query I rowsort
SELECT + + col1 + + col0 AS col0 FROM tab1 AS cor0
----
29
74
93

query I rowsort
SELECT DISTINCT - cor0.col1 + ( col2 ) AS col0 FROM tab0 cor0
----
-53
-9
-96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4902
SELECT DISTINCT - col1 + + CAST( NULL AS SIGNED ) * col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4902
SELECT DISTINCT - col1 + + CAST ( NULL AS INTEGER ) * col0 FROM tab0 AS cor0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-4903
SELECT col0 DIV ( 47 + col0 ) AS col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4903
SELECT col0 / ( 47 + col0 ) AS col0 FROM tab2
----
0
0
0

query I rowsort
SELECT - col0 - - cor0.col2 FROM tab2 AS cor0
----
-41
-52
20

query I rowsort
SELECT ALL col0 + cor0.col0 * col1 FROM tab2 AS cor0
----
1422
224
4680

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col1 - col0 * col0 col1 FROM tab1 AS cor0
----
-4086
-6387
17

onlyif mysql # use DIV operator for integer division
query I rowsort label-4907
SELECT DISTINCT + col1 + col1 * 45 DIV - col1 FROM tab0 cor0
----
41
46
52

skipif mysql # not compatible
query I rowsort label-4907
SELECT DISTINCT + col1 + col1 * 45 / - col1 FROM tab0 cor0
----
41
46
52

query I rowsort
SELECT ALL - col2 * col2 + col1 AS col0 FROM tab0 AS cor0
----
-1003
-6633
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + + 78 + col2 * cor0.col0 col2 FROM tab0 cor0
----
148
7465
894

query I rowsort
SELECT + col1 - + col2 * - col2 AS col0 FROM tab0 AS cor0
----
1175
6815
98

query I rowsort
SELECT + col1 + cor0.col2 AS col1 FROM tab1 AS cor0
----
109
67
80

query I rowsort
SELECT - col1 + 80 AS col2 FROM tab1 AS cor0
----
54
67
70

query I rowsort
SELECT ALL + tab0.col0 + col2 AS col1 FROM tab0
----
171
36
57

query I rowsort
SELECT ALL + col0 * col0 - - ( + col1 * - col2 ) AS col0 FROM tab2 AS cor0
----
-788
4550
5595

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * + col2 col0 FROM tab1 AS cor0
----
-1248
-1404
-570

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 58 col1 FROM tab2 AS cor0
----
58
58
58

onlyif mysql # use DIV operator for integer division
query I rowsort label-4917
SELECT ALL 93 DIV - col0 + ( + col1 ) * - col0 + col0 FROM tab0 AS cor0
----
-2043
-3362
-8011

skipif mysql # not compatible
query I rowsort label-4917
SELECT ALL 93 / - col0 + ( + col1 ) * - col0 + col0 FROM tab0 AS cor0
----
-2043
-3362
-8011

onlyif mysql # use DIV operator for integer division
query I rowsort label-4918
SELECT DISTINCT col0 DIV - col0 + 53 FROM tab2 AS cor0
----
52

skipif mysql # not compatible
query I rowsort label-4918
SELECT DISTINCT col0 / - col0 + 53 FROM tab2 AS cor0
----
52

query I rowsort
SELECT DISTINCT cor0.col0 * col0 - col0 * + col2 * + col2 AS col1 FROM tab0 cor0
----
-25560
-590515
1190

query I rowsort
SELECT DISTINCT - 47 AS col0 FROM tab1
----
-47

onlyif mysql # use DIV operator for integer division
query I rowsort label-4921
SELECT col1 - - col0 * col2 DIV 54 AS col1 FROM tab2
----
34
72
96

skipif mysql # not compatible
query I rowsort label-4921
SELECT col1 - - col0 * col2 / 54 AS col1 FROM tab2
----
34
72
96

query I rowsort
SELECT col2 * col0 + + col2 AS col0 FROM tab0
----
36
7380
825

query I rowsort
SELECT col2 * + ( col1 ) AS col2 FROM tab1 AS cor0
----
1248
1404
570

onlyif mysql # use DIV operator for integer division
query I rowsort label-4924
SELECT + ( - col2 ) DIV col0 + 82 AS col0 FROM tab2
----
79
82
82

skipif mysql # not compatible
query I rowsort label-4924
SELECT + ( - col2 ) / col0 + 82 AS col0 FROM tab2
----
79
82
82

query I rowsort
SELECT ( 37 ) FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to c023509f63faa044d654943e6df55ca2

query I rowsort
SELECT DISTINCT - col1 * - col2 + cor0.col2 AS col1 FROM tab2 AS cor0
----
1560
684
864

query I rowsort
SELECT col1 * - col0 + - col0 * + 55 AS col1 FROM tab2
----
-5688
-602
-8892

query I rowsort
SELECT + 47 FROM tab2
----
47
47
47

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT col1 * - col1 * + CAST ( - ( col2 ) AS REAL ) AS col0 FROM tab2
----
10982
25947
90506

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4930
SELECT + col1 + CAST( NULL AS SIGNED ) * col0 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4930
SELECT + col1 + CAST ( NULL AS INTEGER ) * col0 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col1 * 22 FROM tab1 AS cor0
----
220
286
572

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4932
SELECT + - col2 * + CAST( - ( + cor0.col0 ) AS SIGNED ) * - col1 AS col2 FROM tab2 AS cor0
----
-119652
-51034
-5859

skipif mysql # not compatible
query I rowsort label-4932
SELECT + - col2 * + CAST ( - ( + cor0.col0 ) AS INTEGER ) * - col1 AS col2 FROM tab2 AS cor0
----
-119652
-51034
-5859

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4933
SELECT DISTINCT + tab1.col1 * - CAST( - col0 AS SIGNED ) FROM tab1
----
1040
640
78

skipif mysql # not compatible
query I rowsort label-4933
SELECT DISTINCT + tab1.col1 * - CAST ( - col0 AS INTEGER ) FROM tab1
----
1040
640
78

onlyif mysql # use DIV operator for integer division
query I rowsort label-4934
SELECT + col2 DIV + 32 FROM tab2
----
0
0
1

skipif mysql # not compatible
query I rowsort label-4934
SELECT + col2 / + 32 FROM tab2
----
0
0
1

query I rowsort
SELECT tab0.col1 * 67 AS col1 FROM tab0
----
5762
6097
6499

query I rowsort
SELECT ALL - 89 FROM tab2
----
-89
-89
-89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * + col0 col1 FROM tab2
----
189
2028
3002

query I rowsort
SELECT DISTINCT - 19 AS col0 FROM tab0, tab2 AS cor0
----
-19

query I rowsort
SELECT ALL ( - 98 ) FROM tab0 AS cor0
----
-98
-98
-98

query I rowsort
SELECT col0 * cor0.col0 * col0 AS col0 FROM tab1 AS cor0
----
262144
27
512000

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4941
SELECT - CAST( NULL AS SIGNED ) FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-4941
SELECT - CAST ( NULL AS INTEGER ) FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

onlyif mysql # use DIV operator for integer division
query I rowsort label-4942
SELECT cor0.col2 + col1 DIV + col1 AS col2 FROM tab1 AS cor0
----
55
58
97

skipif mysql # not compatible
query I rowsort label-4942
SELECT cor0.col2 + col1 / + col1 AS col2 FROM tab1 AS cor0
----
55
58
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-4943
SELECT + + 51 DIV col2 AS col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4943
SELECT + + 51 / col2 AS col2 FROM tab1 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 92 col2 FROM tab1 AS cor0
----
-92
-92
-92

query I rowsort
SELECT - - 73 + col0 * + col1 FROM tab0 AS cor0
----
2137
3468
8172

query I rowsort
SELECT + 45 * col0 + ( + col2 ) * col1 FROM tab1 AS cor0
----
1539
3450
4848

query I rowsort
SELECT + + 42 * + col1 * col0 FROM tab2 AS cor0
----
193284
56406
9114

query I rowsort
SELECT 18 + tab2.col2 * + col0 AS col2 FROM tab2
----
2046
207
3020

query I rowsort
SELECT ALL - - ( 22 ) * col2 FROM tab1 AS cor0
----
1188
1254
2112

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + ( - col2 ) - cor0.col1 col2 FROM tab0 AS cor0
----
-119
-173
-98

onlyif mysql # use DIV operator for integer division
query I rowsort label-4951
SELECT DISTINCT + ( - col0 ) DIV + col1 - col2 AS col0 FROM tab1 AS cor0
----
-102
-54
-63

skipif mysql # not compatible
query I rowsort label-4951
SELECT DISTINCT + ( - col0 ) / + col1 - col2 AS col0 FROM tab1 AS cor0
----
-102
-54
-63

query I rowsort
SELECT ALL + cor0.col0 * - col2 + 5 FROM tab0 cor0
----
-30
-7293
-787

query I rowsort
SELECT ALL - col1 * col1 * 65 + - 88 FROM tab1 AS cor0
----
-11073
-44028
-6588

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4954
SELECT - CAST( 77 AS SIGNED ) FROM tab0
----
-77
-77
-77

skipif mysql # not compatible
query I rowsort label-4954
SELECT - CAST ( 77 AS INTEGER ) FROM tab0
----
-77
-77
-77

query I rowsort
SELECT ALL + - 5 * col1 AS col2 FROM tab1 AS cor0
----
-130
-50
-65

query I rowsort
SELECT DISTINCT - + col2 * col0 * + cor0.col0 FROM tab1 AS cor0
----
-233472
-486
-614400

onlyif mysql # use DIV operator for integer division
query I rowsort label-4957
SELECT col2 DIV 9 - col2 col1 FROM tab2
----
-24
-24
-34

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4957
SELECT col2 / 9 - col2 col1 FROM tab2
----
-24
-24
-34

skipif mysql # not compatible
query I rowsort
SELECT ALL + CAST ( - 79 AS REAL ) * col1 FROM tab0
----
-6794
-7189
-7663

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4959
SELECT ALL CAST( tab0.col1 AS SIGNED ) FROM tab0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-4959
SELECT ALL CAST ( tab0.col1 AS INTEGER ) FROM tab0
----
86
91
97

query I rowsort
SELECT - cor0.col0 + - ( - col2 ) * col1 AS col1 FROM tab0 AS cor0
----
2814
62
7373

query I rowsort
SELECT ALL col0 * col1 * col1 - + col0 FROM tab2 AS cor0
----
22752
271440
6720

query I rowsort
SELECT + col0 * 86 AS col0 FROM tab2 AS cor0
----
602
6708
6794

query I rowsort
SELECT + col2 * - col1 AS col0 FROM tab2 cor0
----
-1534
-646
-837

query I rowsort
SELECT ALL - col2 * + tab0.col1 AS col1 FROM tab0
----
-2838
-7462
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 73 col2 FROM tab2
----
73
73
73

query I rowsort
SELECT + - 82 FROM tab0, tab2 AS cor0, tab1, tab2 AS cor1
----
81 values hashing to c7d52549709c0d1194b36919dde4afb7

query I rowsort
SELECT ALL - tab0.col1 + + ( - tab0.col2 ) * tab0.col0 * ( 12 ) AS col2 FROM tab0
----
-517
-87667
-9590

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4968
SELECT ALL - CAST( NULL AS SIGNED ) FROM tab2, tab0 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-4968
SELECT ALL - CAST ( NULL AS INTEGER ) FROM tab2, tab0 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT - col0 + - 80 FROM tab2 AS cor0
----
-158
-159
-87

query I rowsort
SELECT - col1 * - col1 + + col2 * + tab2.col0 AS col2 FROM tab2
----
1150
3291
5509

query I rowsort
SELECT DISTINCT - col0 + - 81 FROM tab0
----
-105
-116
-170

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + + col2 + - 43 col2 FROM tab0
----
-7
128
14

query I rowsort
SELECT - col2 + + 48 * - col0 * + col2 AS col1 FROM tab2
----
-144134
-9099
-97370

query I rowsort
SELECT DISTINCT tab2.col0 * - col2 + col0 + col2 AS col2 FROM tab2
----
-155
-1924
-2885

query I rowsort
SELECT 69 AS col1 FROM tab1 AS cor0
----
69
69
69

query I rowsort
SELECT DISTINCT col1 * - col0 + + col0 * col2 FROM tab0 cor0
----
-1272
-3360
-801

query I rowsort
SELECT - col2 * - 70 + col2 FROM tab2 AS cor0
----
1846
1917
2698

query I rowsort
SELECT ALL + - 70 AS col2 FROM tab1 cor0
----
-70
-70
-70

onlyif mysql # use DIV operator for integer division
query I rowsort label-4979
SELECT DISTINCT + col1 + 85 DIV + 59 + - tab0.col0 AS col2 FROM tab0
----
3
63

skipif mysql # not compatible
query I rowsort label-4979
SELECT DISTINCT + col1 + 85 / + 59 + - tab0.col0 AS col2 FROM tab0
----
3
63

query I rowsort
SELECT col2 + 19 * 10 AS col0 FROM tab1
----
244
247
286

query I rowsort
SELECT DISTINCT tab0.col1 + 46 AS col0 FROM tab0
----
132
137
143

query I rowsort
SELECT + 86 AS col1 FROM tab1
----
86
86
86

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4983
SELECT CAST( NULL AS SIGNED ) + col0 * - tab0.col2 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4983
SELECT CAST ( NULL AS INTEGER ) + col0 * - tab0.col2 AS col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT + 88 * - cor0.col1 FROM tab0 AS cor0
----
-7568
-8008
-8536

query I rowsort
SELECT ALL col1 * 75 * cor0.col0 + col1 AS col2 FROM tab2 cor0
----
100742
16306
345209

query I rowsort
SELECT - + col1 * - col1 * col2 + - 50 FROM tab2 cor0
----
10932
25897
90456

query I rowsort
SELECT DISTINCT + col0 * 32 FROM tab0 AS cor0
----
1120
2848
768

onlyif mysql # use DIV operator for integer division
query I rowsort label-4988
SELECT + 41 DIV + 31 + col1 * - col1 FROM tab2 cor0
----
-288
-3480
-960

skipif mysql # not compatible
query I rowsort label-4988
SELECT + 41 / + 31 + col1 * - col1 FROM tab2 cor0
----
-288
-3480
-960

query I rowsort
SELECT DISTINCT - + 73 FROM tab0 cor0
----
-73

query I rowsort
SELECT - 41 * col2 + - cor0.col2 * - 65 * col1 AS col1 FROM tab2 AS cor0
----
40432
53298
98644

query I rowsort
SELECT ALL - + cor0.col1 * + 12 FROM tab2 AS cor0
----
-204
-372
-708

query I rowsort
SELECT ALL col2 + col0 * col2 * - col2 FROM tab0 AS cor0
----
-26103
-34
-598354

query I rowsort
SELECT ( col0 ) + col0 * - ( col2 ) FROM tab2 AS cor0
----
-182
-1950
-2923

query I rowsort
SELECT ALL - 32 + col0 AS col1 FROM tab0 AS cor0
----
-8
3
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 8 col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to ffc5b4c98b57ae546521175995c49c57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 54 col0 FROM tab0 cor0
----
54
54
54

query I rowsort
SELECT - 56 + - col0 AS col1 FROM tab0 AS cor0
----
-145
-80
-91

query I rowsort
SELECT col0 * - col0 * ( - col2 ) - col0 FROM tab0 AS cor0
----
1190
18984
649433

onlyif mysql # use DIV operator for integer division
query I rowsort label-4999
SELECT - - 39 + cor0.col1 DIV - ( + col0 + cor0.col0 ) FROM tab1 AS cor0
----
35
39
39

skipif mysql # not compatible
query I rowsort label-4999
SELECT - - 39 + cor0.col1 / - ( + col0 + cor0.col0 ) FROM tab1 AS cor0
----
35
39
39

query IIIIIIIIIIII rowsort
SELECT * FROM tab0, tab0 cor0, tab0 cor1, tab1 AS cor2
----
972 values hashing to 88213a0de4c0a44aaefe8bbffbcaf44a

onlyif mysql # use DIV operator for integer division
query I rowsort label-5001
SELECT DISTINCT + - col0 DIV col0 AS col2 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-5001
SELECT DISTINCT + - col0 / col0 AS col2 FROM tab2 AS cor0
----
-1

onlyif mysql # use DIV operator for integer division
query I rowsort label-5002
SELECT ALL - col0 + + col1 DIV - col2 AS col2 FROM tab1 AS cor0
----
-3
-64
-80

skipif mysql # not compatible
query I rowsort label-5002
SELECT ALL - col0 + + col1 / - col2 AS col2 FROM tab1 AS cor0
----
-3
-64
-80

query I rowsort
SELECT - 69 FROM tab1, tab1 AS cor0
----
9 values hashing to 3bd7460efa48c66c072ad5f3c2def7e9

query I rowsort
SELECT 54 AS col2 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 81150d59d6c3fc48b4ef5a4a5495bc7a

query I rowsort
SELECT - cor1.col0 AS col2 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to c3ebf1695ca74567bdc173dbe15186a8

query I rowsort
SELECT - col0 * 39 + col2 FROM tab1 cor0
----
-2439
-3024
-63

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( col2 ) * col1 col1 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT ALL ( + col1 ) * col2 AS col0 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT DISTINCT + ( + 32 ) * + col1 + - 24 * + col2 FROM tab0 AS cor0
----
1960
3080
944

onlyif mysql # use DIV operator for integer division
query I rowsort label-5010
SELECT ALL 55 DIV - cor0.col2 AS col1 FROM tab0 AS cor0
----
-1
-55
0

skipif mysql # not compatible
query I rowsort label-5010
SELECT ALL 55 / - cor0.col2 AS col1 FROM tab0 AS cor0
----
-1
-55
0

query I rowsort
SELECT ( col2 ) * - cor0.col2 AS col1 FROM tab2 AS cor0
----
-1444
-676
-729

query I rowsort
SELECT DISTINCT + 0 + ( - col2 * 27 ) FROM tab1 AS cor0
----
-1458
-1539
-2592

onlyif mysql # use DIV operator for integer division
query I rowsort label-5013
SELECT ALL ( + col2 ) + + cor0.col2 DIV + col0 FROM tab0 AS cor0
----
1
34
82

skipif mysql # not compatible
query I rowsort label-5013
SELECT ALL ( + col2 ) + + cor0.col2 / + col0 FROM tab0 AS cor0
----
1
34
82

query I rowsort
SELECT col1 + cor0.col2 FROM tab2 cor0
----
55
58
85

query I rowsort
SELECT ALL + - col2 + col1 AS col1 FROM tab0 AS cor0
----
53
9
96

query I rowsort
SELECT + col1 * col2 - ( 87 ) AS col2 FROM tab1 AS cor0
----
1161
1317
483

query I rowsort
SELECT ALL - 89 AS col2 FROM tab0 AS cor0
----
-89
-89
-89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 65 col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 8bef2ea1f05f3514633f851312bdd805

query I rowsort
SELECT - 86 - - col1 AS col1 FROM tab1
----
-60
-73
-76

query I rowsort
SELECT DISTINCT + cor0.col2 * + 97 FROM tab0 AS cor0
----
3201
7954
97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5021
SELECT ALL - col0 + CAST( + col2 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-41
-52
20

skipif mysql # not compatible
query I rowsort label-5021
SELECT ALL - col0 + CAST ( + col2 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-41
-52
20

query I rowsort
SELECT - + col2 + cor0.col2 AS col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL col1 + - col2 AS col0 FROM tab0 cor0
----
53
9
96

query I rowsort
SELECT DISTINCT + + col1 * 53 + 74 FROM tab2 AS cor0
----
1717
3201
975

onlyif mysql # use DIV operator for integer division
query I rowsort label-5025
SELECT col1 * - col0 + col2 DIV cor0.col1 FROM tab2 AS cor0
----
-1341
-217
-4602

skipif mysql # not compatible
query I rowsort label-5025
SELECT col1 * - col0 + col2 / cor0.col1 FROM tab2 AS cor0
----
-1341
-217
-4602

query I rowsort
SELECT col0 * - col0 + 68 * tab1.col0 FROM tab1
----
-960
195
256

query I rowsort
SELECT DISTINCT col1 * col0 + + col2 AS col1 FROM tab2 AS cor0
----
1381
244
4628

query I rowsort
SELECT + col2 * col0 + col0 * col2 FROM tab2 AS cor0
----
378
4056
6004

query I rowsort
SELECT DISTINCT + cor0.col1 * 7 FROM tab0 AS cor0
----
602
637
679

onlyif mysql # use DIV operator for integer division
query I rowsort label-5030
SELECT ALL col1 DIV + ( 23 * col0 ) AS col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5030
SELECT ALL col1 / + ( 23 * col0 ) AS col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + cor0.col1 * + 87 AS col2 FROM tab1 AS cor0
----
1131
2262
870

query I rowsort
SELECT - - 42 AS col2 FROM tab1 AS cor0
----
42
42
42

query I rowsort
SELECT ALL - - col0 + - cor0.col1 AS col0 FROM tab1 cor0
----
-23
54
67

query I rowsort
SELECT - + col0 * + col0 + col2 FROM tab0 AS cor0
----
-1224
-543
-7839

query I rowsort
SELECT ALL 64 AS col0 FROM tab2 AS cor0
----
64
64
64

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5036
SELECT DISTINCT + 44 * cor0.col2 + + cor0.col1 * CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5036
SELECT DISTINCT + 44 * cor0.col2 + + cor0.col1 * CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT 86 AS col0 FROM tab1 AS cor0
----
86
86
86

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5038
SELECT CAST( NULL AS SIGNED ) + col2 * col1 / + ( - col0 ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5038
SELECT CAST ( NULL AS INTEGER ) + col2 * col1 / + ( - col0 ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab2 AS cor0, tab0 AS cor1, tab1, tab2 AS cor2
----
3645 values hashing to 47906197307eee6829150d762058792a

query I rowsort
SELECT + + 86 * col1 FROM tab2 AS cor0
----
1462
2666
5074

query I rowsort
SELECT - - cor0.col2 + col1 * - cor0.col1 AS col0 FROM tab2 AS cor0
----
-251
-3455
-934

query I rowsort
SELECT + cor1.col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775

query I rowsort
SELECT - col1 + - ( - col0 ) * - cor0.col0 FROM tab1 AS cor0
----
-35
-4106
-6413

query I rowsort
SELECT cor0.col2 * + col2 * - col2 + + col0 FROM tab2 AS cor0
----
-17498
-19676
-54793

query I rowsort
SELECT DISTINCT + ( + col1 ) AS col1 FROM tab1
----
10
13
26

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5046
SELECT ALL - CAST( NULL AS SIGNED ) col0 FROM tab1, tab0, tab1 cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5046
SELECT ALL - CAST ( NULL AS INTEGER ) col0 FROM tab1, tab0, tab1 cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT ALL - ( + cor0.col0 ) + cor0.col1 FROM tab1 AS cor0
----
-54
-67
23

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5048
SELECT DISTINCT CAST( NULL AS SIGNED ) * 1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5048
SELECT DISTINCT CAST ( NULL AS INTEGER ) * 1 FROM tab0
----
NULL

query I rowsort
SELECT + cor0.col2 AS col0 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79

query I rowsort
SELECT - tab2.col1 + - col1 * col2 + + 61 AS col1 FROM tab2
----
-1532
-602
-807

query I rowsort
SELECT DISTINCT col2 + + col1 * tab0.col0 FROM tab0
----
2097
3396
8181

query I rowsort
SELECT DISTINCT 30 * col1 + col1 * 42 + col2 FROM tab0
----
6225
6634
6985

query I rowsort
SELECT DISTINCT col1 * - col2 + ( col0 ) FROM tab1
----
-1168
-1401
-506

query I rowsort
SELECT col1 + - ( col1 ) * - col0 FROM tab1 AS cor0
----
104
1053
650

query I rowsort
SELECT + cor0.col1 * + col0 + col1 AS col2 FROM tab2 cor0
----
1360
248
4661

query I rowsort
SELECT tab2.col2 + ( + cor0.col1 ) FROM tab2, tab1 AS cor0
----
9 values hashing to b8b62762005dc0d7237145d0538edb34

query I rowsort
SELECT - col0 * - tab1.col2 * - col0 FROM tab1
----
-233472
-486
-614400

query I rowsort
SELECT DISTINCT col1 + + tab2.col0 + + col2 * col2 AS col1 FROM tab2
----
1540
767
813

query I rowsort
SELECT ALL + col2 + tab0.col2 AS col1 FROM tab0
----
164
2
66

onlyif mysql # use DIV operator for integer division
query I rowsort label-5060
SELECT + cor0.col2 DIV ( col2 ) FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5060
SELECT + cor0.col2 / ( col2 ) FROM tab1 AS cor0
----
1
1
1

query I rowsort
SELECT DISTINCT col1 * + col1 * tab0.col0 AS col1 FROM tab0
----
177504
329315
737009

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( 45 ) col0 FROM tab0, tab2 cor0
----
45

query I rowsort
SELECT - col0 * + col1 * 15 AS col1 FROM tab1 AS cor0
----
-1170
-15600
-9600

query I rowsort
SELECT + col0 * - ( + 67 ) + col1 FROM tab1 AS cor0
----
-175
-4278
-5347

query I rowsort
SELECT col0 * col0 + + ( col1 ) * + col0 + col2 AS col1 FROM tab2 AS cor0
----
10712
293
7622

query I rowsort
SELECT DISTINCT - col0 * 25 FROM tab0 AS cor0
----
-2225
-600
-875

query I rowsort
SELECT DISTINCT - cor0.col2 * cor0.col0 * - 11 AS col2 FROM tab2 AS cor0
----
2079
22308
33022

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5068
SELECT - - col1 + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5068
SELECT - - col1 + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT cor0.col0 + 65 + - 89 AS col1 FROM tab2 AS cor0
----
-17
54
55

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 4 col1 FROM tab0
----
4
4
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * col1 + col2 col1 FROM tab0
----
7429
8363
9410

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + col1 col2 FROM tab2
----
-19
-62
24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 + col0 col2 FROM tab2 AS cor0
----
-20
41
52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 + col1 col2 FROM tab1 cor0
----
109
67
80

query I rowsort
SELECT DISTINCT col1 + 0 FROM tab2 AS cor0
----
17
31
59

onlyif mysql # use DIV operator for integer division
query I rowsort label-5076
SELECT + - col0 DIV - ( + cor0.col2 ) col0 FROM tab0 AS cor0
----
0
1
35

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5076
SELECT + - col0 / - ( + cor0.col2 ) col0 FROM tab0 AS cor0
----
0
1
35

onlyif mysql # use DIV operator for integer division
query I rowsort label-5077
SELECT - col0 DIV ( - 21 ) AS col1 FROM tab1 AS cor0
----
0
3
3

skipif mysql # not compatible
query I rowsort label-5077
SELECT - col0 / ( - 21 ) AS col1 FROM tab1 AS cor0
----
0
3
3

query I rowsort
SELECT + 96 * col1 FROM tab0
----
8256
8736
9312

query I rowsort
SELECT ALL + cor0.col2 + - 51 AS col1 FROM tab0 cor0
----
-18
-50
31

query I rowsort
SELECT DISTINCT - + col2 * 38 + col0 * col0 FROM tab0 AS cor0
----
-678
1187
4805

query I rowsort
SELECT ALL col0 * + col2 + col2 + - col2 AS col2 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT - + cor0.col2 + 22 AS col2 FROM tab2 cor0
----
-16
-4
-5

query I rowsort
SELECT cor0.col2 * - col2 + col1 FROM tab0 AS cor0
----
-1003
-6633
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 27 + col2 col2 FROM tab2 AS cor0
----
53
54
65

onlyif mysql # use DIV operator for integer division
query I rowsort label-5085
SELECT + 69 - - col2 DIV col2 FROM tab0 AS cor0
----
70
70
70

skipif mysql # not compatible
query I rowsort label-5085
SELECT + 69 - - col2 / col2 FROM tab0 AS cor0
----
70
70
70

query I rowsort
SELECT 47 FROM tab1, tab1 cor0
----
9 values hashing to 4fe192f296791e1e40ea00a68aa8dab7

onlyif mysql # use DIV operator for integer division
query I rowsort label-5087
SELECT DISTINCT - ( - col0 ) + + col0 DIV + ( col1 * col0 ) FROM tab0 AS cor0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-5087
SELECT DISTINCT - ( - col0 ) + + col0 / + ( col1 * col0 ) FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT - col0 * - col2 * col1 - + 52 FROM tab2 cor0
----
119600
50982
5807

query I rowsort
SELECT ALL - + ( col0 ) AS col0 FROM tab0 AS cor0
----
-24
-35
-89

onlyif mysql # use DIV operator for integer division
query I rowsort label-5090
SELECT - col2 DIV 82 FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-5090
SELECT - col2 / 82 FROM tab0
----
-1
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + col2 + col0 * - col0 col1 FROM tab2
----
-15
-5980
-6124

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + ( + col0 ) * col2 col1 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT col0 * - 43 * col1 FROM tab2 cor0
----
-197886
-57749
-9331

query I rowsort
SELECT ALL - 52 + + col0 + - col0 FROM tab1 AS cor0
----
-52
-52
-52

query I rowsort
SELECT ALL ( - cor0.col2 ) + - col1 FROM tab0 AS cor0
----
-119
-173
-98

query I rowsort
SELECT + + 6 + col1 AS col0 FROM tab0 AS cor0
----
103
92
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 57 + + col2 col0 FROM tab2 cor0
----
-19
-30
-31

query I rowsort
SELECT DISTINCT + 8 AS col1 FROM tab0, tab1 AS cor0
----
8

query I rowsort
SELECT + col2 + 3 * - col1 - + ( - col0 ) * col1 FROM tab1
----
1097
54
667

query I rowsort
SELECT DISTINCT - - col0 * cor0.col0 AS col0 FROM tab2 AS cor0
----
49
6084
6241

query I rowsort
SELECT - col0 + col1 + - cor0.col2 AS col2 FROM tab2 AS cor0
----
-100
-3
-45

query I rowsort
SELECT DISTINCT 6 * + col2 + + cor0.col1 AS col2 FROM tab2 AS cor0
----
193
215
245

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 + - col2 * + 15 col0 FROM tab2 AS cor0
----
-436
-449
-587

query I rowsort
SELECT DISTINCT + + col2 * col0 AS col2 FROM tab1 cor0
----
162
3648
7680

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col1 + + col2 col1 FROM tab2 AS cor0
----
-33
-4
21

query I rowsort
SELECT ALL - - cor0.col2 - col0 AS col0 FROM tab0 AS cor0
----
-34
-7
9

query I rowsort
SELECT DISTINCT - col2 * col0 AS col2 FROM tab1 cor0
----
-162
-3648
-7680

onlyif mysql # use DIV operator for integer division
query I rowsort label-5108
SELECT ( + col1 ) + + col1 DIV 8 + - col0 FROM tab1
----
-53
-66
26

skipif mysql # not compatible
query I rowsort label-5108
SELECT ( + col1 ) + + col1 / 8 + - col0 FROM tab1
----
-53
-66
26

onlyif mysql # use DIV operator for integer division
query I rowsort label-5109
SELECT ALL + col0 DIV + ( - col0 * - 33 ) - col2 AS col0 FROM tab2
----
-26
-27
-38

skipif mysql # not compatible
query I rowsort label-5109
SELECT ALL + col0 / + ( - col0 * - 33 ) - col2 AS col0 FROM tab2
----
-26
-27
-38

query I rowsort
SELECT ALL + col1 + col0 + + col2 * + col1 * col2 FROM tab0
----
229
612064
93764

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 46 * + col0 + 56 col2 FROM tab0 cor0
----
1160
1666
4150

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5112
SELECT col0 + - col1 * CAST( cor0.col0 AS SIGNED ) col0 FROM tab2 AS cor0
----
-1264
-210
-4524

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5112
SELECT col0 + - col1 * CAST ( cor0.col0 AS INTEGER ) col0 FROM tab2 AS cor0
----
-1264
-210
-4524

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5113
SELECT DISTINCT 97 + col1 * CAST( NULL AS SIGNED ) col1 FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5113
SELECT DISTINCT 97 + col1 * CAST ( NULL AS INTEGER ) col1 FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * cor0.col0 + col1 col0 FROM tab2 AS cor0
----
2087
220
3019

query I rowsort
SELECT DISTINCT + - 16 * cor0.col1 + col1 FROM tab1 cor0
----
-150
-195
-390

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 36 + + col1 * col0 col0 FROM tab0 AS cor0
----
2028
3359
8063

query I rowsort
SELECT cor1.col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775

query I rowsort
SELECT DISTINCT - ( cor0.col0 ) AS col1 FROM tab2 AS cor0
----
-7
-78
-79

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab2, tab0 AS cor1, tab1 AS cor2, tab0 AS cor3
----
3645 values hashing to 2566f3fa788816c8bfc482e730aaed74

query I rowsort
SELECT DISTINCT + 74 + + tab1.col2 AS col0 FROM tab1
----
128
131
170

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab2.col1 + 19 + - tab2.col2 col0 FROM tab2
----
-2
23
52

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5122
SELECT + col1 * col2 + + col2 + CAST( col1 * col2 AS SIGNED ) AS col2 FROM tab1
----
1197
2592
2862

skipif mysql # not compatible
query I rowsort label-5122
SELECT + col1 * col2 + + col2 + CAST ( col1 * col2 AS INTEGER ) AS col2 FROM tab1
----
1197
2592
2862

query I rowsort
SELECT + - ( col0 ) * - col2 - - cor0.col2 * - col2 FROM tab2 cor0
----
-540
1352
1558

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 69 * col1 - col2 col0 FROM tab0
----
5901
6197
6692

query I rowsort
SELECT ALL + - ( - 21 ) * col0 + + 44 * + cor0.col1 AS col2 FROM tab2 AS cor0
----
1511
2407
4234

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5126
SELECT DISTINCT CAST( NULL AS SIGNED ) / col0 AS col2 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5126
SELECT DISTINCT CAST ( NULL AS INTEGER ) / col0 AS col2 FROM tab0 cor0
----
NULL

query I rowsort
SELECT - + col1 + - cor0.col2 AS col0 FROM tab2 cor0
----
-55
-58
-85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * col2 * + cor0.col2 col2 FROM tab1 AS cor0
----
207936
737280
8748

onlyif mysql # use DIV operator for integer division
query I rowsort label-5129
SELECT + col1 DIV - col1 FROM tab2 cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-5129
SELECT + col1 / - col1 FROM tab2 cor0
----
-1
-1
-1

query I rowsort
SELECT ALL - - col0 + + cor0.col1 AS col1 FROM tab1 AS cor0
----
29
74
93

query I rowsort
SELECT DISTINCT + 31 * + col2 FROM tab1 AS cor0
----
1674
1767
2976

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - tab1.col1 col2 FROM tab1
----
-10
-13
-26

query I rowsort
SELECT - col2 * - col2 AS col1 FROM tab1
----
2916
3249
9216

onlyif mysql # use DIV operator for integer division
query I rowsort label-5134
SELECT + col2 DIV + tab0.col0 AS col2 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-5134
SELECT + col2 / + tab0.col0 AS col2 FROM tab0
----
0
0
1

query I rowsort
SELECT - col1 + - tab2.col0 * - tab2.col0 + col1 * col1 * col1 AS col2 FROM tab2
----
11137
211404
29809

query I rowsort
SELECT tab0.col2 AS col0 FROM tab0 WHERE NOT col0 > - col0 / + col0 + col1
----
1
33
82

query I rowsort
SELECT col0 * col1 + - col1 * - col0 FROM tab1
----
1280
156
2080

query I rowsort
SELECT col0 FROM tab2 WHERE NULL < + col1 + col1
----

query I rowsort
SELECT - col0 * col0 + + col0 * + tab1.col2 FROM tab1
----
-448
1280
153

onlyif mysql # use DIV operator for integer division
query I rowsort label-5140
SELECT col2 + - col1 DIV col2 FROM tab1
----
54
57
96

skipif mysql # not compatible
query I rowsort label-5140
SELECT col2 + - col1 / col2 FROM tab1
----
54
57
96

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col0 > col1
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d

query I rowsort
SELECT col1 + col0 * - tab2.col0 FROM tab2
----
-18
-6025
-6224

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col2 <= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL BETWEEN col1 / col2 AND NULL
----

query I rowsort
SELECT ALL col2 + col1 AS col2 FROM tab1 WHERE NOT NULL < col0 / tab1.col0
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col2 IN ( + tab0.col1 )
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7

onlyif mysql # use DIV operator for integer division
query I rowsort label-5147
SELECT - col2 + col2 DIV - col0 AS col0 FROM tab2
----
-26
-30
-38

skipif mysql # not compatible
query I rowsort label-5147
SELECT - col2 + col2 / - col0 AS col0 FROM tab2
----
-26
-30
-38

query I rowsort
SELECT DISTINCT col2 * - col0 + + col0 FROM tab0
----
-7209
-768
0

query I rowsort
SELECT DISTINCT - col1 * col0 + col2 AS col2 FROM tab1
----
-24
-583
-944

query III rowsort
SELECT ALL * FROM tab0 WHERE + col2 NOT IN ( col1 * col0 )
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + tab0.col1 * + col0 col0 FROM tab0 WHERE col1 * - col2 <> NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + col2 * - col2 col1 FROM tab0
----
-1056
-6642
0

query I rowsort
SELECT DISTINCT - col2 + - tab1.col2 AS col0 FROM tab1
----
-108
-114
-192

onlyif mysql # use DIV operator for integer division
query I rowsort label-5154
SELECT ALL + col1 DIV col0 + + col0 + col1 AS col0 FROM tab1
----
37
74
93

skipif mysql # not compatible
query I rowsort label-5154
SELECT ALL + col1 / col0 + + col0 + col1 AS col0 FROM tab1
----
37
74
93

query I rowsort
SELECT col0 * + col1 * col2 FROM tab1
----
36480
4212
99840

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * - col1 + + col2 * col2 col2 FROM tab2
----
2787
5278
946

query I rowsort
SELECT ALL col1 + col1 * - col0 + col0 FROM tab2
----
-1247
-179
-4465

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT IN ( tab0.col0 * - col0 + col0 * col1 )
----

query I rowsort
SELECT ALL + col2 * + cor0.col1 + col2 AS col0 FROM tab2 cor0
----
1560
684
864

query I rowsort
SELECT + col1 * cor0.col1 + col2 FROM tab1 AS cor0
----
157
265
730

query I rowsort
SELECT ALL + col0 * col1 + col0 + col1 FROM tab2 AS cor0
----
1439
255
4739

onlyif mysql # use DIV operator for integer division
query I rowsort label-5162
SELECT ALL col2 DIV + col2 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5162
SELECT ALL col2 / + col2 FROM tab0 AS cor0
----
1
1
1

query I rowsort
SELECT + col2 * - cor0.col1 * cor0.col2 AS col0 FROM tab2 AS cor0
----
-22599
-24548
-39884

query III rowsort
SELECT ALL * FROM tab1 WHERE ( + col1 ) > NULL
----

query I rowsort
SELECT DISTINCT col2 FROM tab2 WHERE NOT ( col0 ) < - col2
----
26
27
38

query I rowsort
SELECT ALL col2 + - tab2.col1 FROM tab2
----
-33
-4
21

query IIIIII rowsort
SELECT ALL * FROM tab1, tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-5168
SELECT + col1 + + col2 DIV + col0 FROM tab2 AS cor0
----
17
34
59

skipif mysql # not compatible
query I rowsort label-5168
SELECT + col1 + + col2 / + col0 FROM tab2 AS cor0
----
17
34
59

query I rowsort
SELECT - col2 + 10 FROM tab1 AS cor0
----
-44
-47
-86

query I rowsort
SELECT - col2 - + 63 AS col2 FROM tab2 AS cor0
----
-101
-89
-90

query I rowsort
SELECT - 37 * col1 + + col2 FROM tab2 AS cor0
----
-1120
-2157
-591

query I rowsort
SELECT DISTINCT - 72 FROM tab1, tab0 AS cor0, tab1 AS cor1, tab1 AS cor2
----
-72

onlyif mysql # use DIV operator for integer division
query I rowsort label-5173
SELECT - - col0 * 5 DIV + col0 AS col0 FROM tab0 AS cor0
----
5
5
5

skipif mysql # not compatible
query I rowsort label-5173
SELECT - - col0 * 5 / + col0 AS col0 FROM tab0 AS cor0
----
5
5
5

query I rowsort
SELECT col2 * - 3 FROM tab1
----
-162
-171
-288

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab0, tab0 AS cor1, tab1 AS cor2
----
972 values hashing to 5621675b1bd32b061d284d0444c76601

query I rowsort
SELECT ALL ( - 23 ) AS col2 FROM tab1 AS cor0
----
-23
-23
-23

query I rowsort
SELECT ALL 71 + 36 * - col2 AS col2 FROM tab2 cor0
----
-1297
-865
-901

query I rowsort
SELECT 94 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to a4d239626cf0546ac1b2f57bb8407089

query I rowsort
SELECT DISTINCT - 11 AS col1 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
-11

query I rowsort
SELECT - 30 AS col2 FROM tab2, tab2 AS cor0, tab0 cor1
----
27 values hashing to a96370a8187089b6b83ce9bfbade5142

query I rowsort
SELECT - + ( + cor0.col1 ) + + 17 AS col1 FROM tab0 AS cor0
----
-69
-74
-80

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL BETWEEN NULL AND ( + col2 + + col2 )
----

query I rowsort
SELECT + col1 + col1 - col0 FROM tab1 AS cor0
----
-44
-54
49

query I rowsort
SELECT col1 * + col2 + + col0 FROM tab1 AS cor0
----
1328
1407
634

query I rowsort
SELECT + col0 * col0 + - 37 FROM tab1 AS cor0
----
-28
4059
6363

query I rowsort
SELECT - cor0.col2 - - col1 * - ( col0 ) AS col1 FROM tab1 AS cor0
----
-1136
-132
-697

query I rowsort
SELECT DISTINCT - 75 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
-75

query I rowsort
SELECT - 65 * - col2 + col1 FROM tab2 AS cor0
----
1749
1786
2487

query I rowsort
SELECT ALL col1 * - 87 FROM tab0
----
-7482
-7917
-8439

query I rowsort
SELECT + col2 * col2 * col2 AS col1 FROM tab2
----
17576
19683
54872

query I rowsort
SELECT DISTINCT + + 2 + + ( - col0 + col2 ) AS col1 FROM tab0 cor0
----
-32
-5
11

query I rowsort
SELECT - - 36 + ( col0 ) AS col0 FROM tab2 AS cor0
----
114
115
43

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5193
SELECT DISTINCT - - CAST( - 86 AS SIGNED ) + cor0.col2 FROM tab2 AS cor0
----
-48
-59
-60

skipif mysql # not compatible
query I rowsort label-5193
SELECT DISTINCT - - CAST ( - 86 AS INTEGER ) + cor0.col2 FROM tab2 AS cor0
----
-48
-59
-60

query I rowsort
SELECT DISTINCT cor0.col2 + ( - col0 ) AS col1 FROM tab0 AS cor0
----
-34
-7
9

query I rowsort
SELECT ALL - 13 * - 96 * - col1 AS col0 FROM tab0 AS cor0
----
-107328
-113568
-121056

query I rowsort
SELECT 55 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 1626bd3008abd9f18cc88cdecf7b64d0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5197
SELECT DISTINCT - col0 + - CAST( 62 AS SIGNED ) * col1 - + col0 * col1 AS col0 FROM tab2
----
-2146
-2476
-8338

skipif mysql # not compatible
query I rowsort label-5197
SELECT DISTINCT - col0 + - CAST ( 62 AS INTEGER ) * col1 - + col0 * col1 AS col0 FROM tab2
----
-2146
-2476
-8338

query I rowsort
SELECT DISTINCT 32 + - col1 AS col2 FROM tab2
----
-27
1
15

query I rowsort
SELECT ALL + col0 + - 70 AS col0 FROM tab0
----
-35
-46
19

query I rowsort
SELECT DISTINCT col0 + 61 FROM tab0
----
150
85
96

query I rowsort
SELECT col1 * + 53 AS col2 FROM tab1
----
1378
530
689

query I rowsort
SELECT ALL 24 + - tab1.col2 AS col0 FROM tab1
----
-30
-33
-72

query I rowsort
SELECT DISTINCT - 74 + tab1.col0 FROM tab1
----
-10
-71
6

query I rowsort
SELECT DISTINCT 35 + - col1 AS col0 FROM tab1
----
22
25
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + 4 col1 FROM tab2
----
21
35
63

query I rowsort
SELECT DISTINCT col2 + 56 FROM tab1
----
110
113
152

query I rowsort
SELECT - 65 * 22 + cor0.col1 AS col1 FROM tab1 cor0
----
-1404
-1417
-1420

query I rowsort
SELECT + ( - 20 ) + + col1 * col1 FROM tab0 cor0
----
7376
8261
9389

query I rowsort
SELECT ALL ( 10 ) * col1 FROM tab0 AS cor0
----
860
910
970

query I rowsort
SELECT DISTINCT col2 + + col0 * col2 FROM tab1 AS cor0
----
216
3705
7776

query I rowsort
SELECT ALL - 36 * - col0 FROM tab1
----
108
2304
2880

query I rowsort
SELECT ALL + ( + tab1.col1 ) * col0 AS col1 FROM tab1
----
1040
640
78

query I rowsort
SELECT ALL 36 * col0 AS col2 FROM tab2
----
252
2808
2844

query I rowsort
SELECT ( + col0 ) + cor0.col0 FROM tab2 AS cor0
----
14
156
158

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * cor0.col1 col2 FROM tab0 AS cor0
----
2064
3395
8099

onlyif mysql # use DIV operator for integer division
query I rowsort label-5216
SELECT col0 DIV + ( ( + col0 ) ) - - col0 AS col1 FROM tab2 AS cor0
----
79
8
80

skipif mysql # not compatible
query I rowsort label-5216
SELECT col0 / + ( ( + col0 ) ) - - col0 AS col1 FROM tab2 AS cor0
----
79
8
80

query I rowsort
SELECT DISTINCT col0 * - 76 AS col0 FROM tab2 cor0
----
-532
-5928
-6004

query I rowsort
SELECT - + col2 - - 34 * + cor0.col1 AS col0 FROM tab1 AS cor0
----
283
346
830

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5219
SELECT ALL + col0 * CAST( col1 AS SIGNED ) + cor0.col1 FROM tab2 AS cor0
----
1360
248
4661

skipif mysql # not compatible
query I rowsort label-5219
SELECT ALL + col0 * CAST ( col1 AS INTEGER ) + cor0.col1 FROM tab2 AS cor0
----
1360
248
4661

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 19 col0 FROM tab0
----
19
19
19

query I rowsort
SELECT col1 * cor0.col2 - col0 AS col0 FROM tab2 AS cor0
----
1456
567
830

query I rowsort
SELECT + col0 + + cor0.col1 * col1 AS col1 FROM tab2 AS cor0
----
3559
368
968

query I rowsort
SELECT ALL + col1 * + col2 * - col0 AS col0 FROM tab1 AS cor0
----
-36480
-4212
-99840

query I rowsort
SELECT + col1 * - col2 - col2 AS col1 FROM tab1 AS cor0
----
-1344
-1458
-627

query I rowsort
SELECT + col1 + - ( col1 ) + - cor0.col2 FROM tab0 cor0
----
-1
-33
-82

query I rowsort
SELECT DISTINCT + + cor0.col0 * 29 FROM tab0 AS cor0
----
1015
2581
696

onlyif mysql # use DIV operator for integer division
query I rowsort label-5227
SELECT + + col1 DIV - col1 AS col2 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-5227
SELECT + + col1 / - col1 AS col2 FROM tab2 AS cor0
----
-1
-1
-1

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL IN ( col1 * - col0 ) AND ( NULL ) IN ( col0 )
----

query I rowsort
SELECT - col0 + + tab1.col0 * - col0 * + col0 AS col0 FROM tab1
----
-262208
-30
-512080

query I rowsort
SELECT ALL - + col0 + + col1 FROM tab0 cor0
----
2
62
62

query I rowsort
SELECT col2 + col0 * - col1 * col2 FROM tab1
----
-36423
-4158
-99744

query I rowsort
SELECT ALL + cor0.col2 - + col2 * - col0 * - col1 FROM tab1 AS cor0
----
-36423
-4158
-99744

query I rowsort
SELECT DISTINCT - col1 + - col2 * col0 FROM tab2 cor0
----
-2087
-220
-3019

onlyif mysql # use DIV operator for integer division
query I rowsort label-5234
SELECT DISTINCT - col0 * - col0 + + col2 DIV col1 AS col1 FROM tab1 AS cor0
----
11
4101
6407

skipif mysql # not compatible
query I rowsort label-5234
SELECT DISTINCT - col0 * - col0 + + col2 / col1 AS col1 FROM tab1 AS cor0
----
11
4101
6407

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col0 col2 FROM tab0, tab1 AS cor0
----
3
64
80

query I rowsort
SELECT DISTINCT + cor0.col0 * col2 - - col2 FROM tab1 AS cor0
----
216
3705
7776

query I rowsort
SELECT DISTINCT col2 * col0 + - col2 FROM tab2 AS cor0
----
162
2002
2964

query I rowsort
SELECT col1 + + col0 + + col2 * col2 FROM tab2 AS cor0
----
1540
767
813

query I rowsort
SELECT col1 + + col0 * + col0 FROM tab1 AS cor0
----
35
4106
6413

query I rowsort
SELECT DISTINCT - col0 + cor0.col1 * + col2 AS col1 FROM tab2 AS cor0
----
1456
567
830

query I rowsort
SELECT - - col0 + cor0.col1 FROM tab0 AS cor0
----
110
132
180

query I rowsort
SELECT ALL - + cor0.col2 * + cor0.col1 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT col1 + col0 - + col0 * + col2 AS col0 FROM tab1 AS cor0
----
-133
-3574
-7587

query I rowsort
SELECT + col1 + col0 + col0 FROM tab2 AS cor0
----
175
215
45

query I rowsort
SELECT - col2 + - tab1.col2 * + col0 AS col0 FROM tab1
----
-216
-3705
-7776

query I rowsort
SELECT DISTINCT + col0 - col1 AS col2 FROM tab2
----
-24
19
62

query I rowsort
SELECT ALL + col0 - + tab2.col0 * + col1 * - col0 FROM tab2
----
106176
1526
359034

query I rowsort
SELECT ALL - col0 - - col1 AS col1 FROM tab2
----
-19
-62
24

query I rowsort
SELECT DISTINCT + + col1 - col2 FROM tab0 AS cor0
----
53
9
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 * col0 + col0 * - col2 col0 FROM tab1 AS cor0
----
-3008
-6640
-84

query I rowsort
SELECT ALL col1 * + col0 + - col0 * - col2 AS col0 FROM tab0 AS cor0
----
15397
2856
3430

query I rowsort
SELECT DISTINCT - - cor0.col2 + + cor0.col2 * - col1 FROM tab1 AS cor0
----
-1152
-1350
-513

query I rowsort
SELECT ALL - col0 + - cor0.col2 AS col1 FROM tab1 AS cor0
----
-121
-176
-57

query I rowsort
SELECT ALL + col1 * + col2 AS col1 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT ALL + col1 * - cor0.col2 + - col0 * col2 AS col1 FROM tab0 cor0
----
-132
-14760
-3630

query I rowsort
SELECT DISTINCT - + col1 * col0 * col0 + - col1 AS col1 FROM tab1 AS cor0
----
-260
-40970
-83213

query I rowsort
SELECT DISTINCT + 87 * col1 + col2 FROM tab1
----
1227
2316
927

query I rowsort
SELECT ( col2 ) - + col0 * col1 FROM tab0
----
-2031
-3394
-8017

query I rowsort
SELECT - 43 + col1 * + col2 AS col2 FROM tab1
----
1205
1361
527

query I rowsort
SELECT DISTINCT + col1 - col2 * col0 FROM tab2 AS cor0
----
-158
-1969
-2985

query I rowsort
SELECT ALL - 35 * - col1 FROM tab0 AS cor0
----
3010
3185
3395

query I rowsort
SELECT ALL col0 + + col1 * col2 AS col0 FROM tab0 cor0
----
132
2862
7551

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 57 col2 FROM tab0
----
57

query I rowsort
SELECT DISTINCT - + col0 + - col2 * col0 AS col2 FROM tab1 cor0
----
-165
-3712
-7760

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5265
SELECT + - 60 * cor0.col2 + - CAST( col1 * col0 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-1837
-3623
-6162

skipif mysql # not compatible
query I rowsort label-5265
SELECT + - 60 * cor0.col2 + - CAST ( col1 * col0 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-1837
-3623
-6162

query I rowsort
SELECT + 66 * + col0 + - 63 FROM tab1 AS cor0
----
135
4161
5217

query I rowsort
SELECT ALL - col1 + col0 + + ( + col1 ) * - col1 FROM tab0 cor0
----
-7458
-8283
-9471

query I rowsort
SELECT 13 * + col1 AS col2 FROM tab0 AS cor0
----
1118
1183
1261

query I rowsort
SELECT col1 * ( + col1 ) + col2 * 12 AS col1 FROM tab0
----
7792
9265
9421

onlyif mysql # use DIV operator for integer division
query I rowsort label-5270
SELECT tab2.col2 + col1 DIV col0 FROM tab2
----
26
31
38

skipif mysql # not compatible
query I rowsort label-5270
SELECT tab2.col2 + col1 / col0 FROM tab2
----
26
31
38

query I rowsort
SELECT + col2 + col0 * col2 + col2 * - col2 FROM tab0
----
-264
35
656

query I rowsort
SELECT 25 + + 54 AS col0 FROM tab0
----
79
79
79

query I rowsort
SELECT col2 * col0 + col2 * col0 FROM tab0 AS cor0
----
14596
1584
70

query I rowsort
SELECT - cor0.col0 FROM tab2, tab1 AS cor0, tab0 AS cor1, tab1 AS cor2
----
81 values hashing to 08e380e50b0cb64601bc84e5254deef4

query I rowsort
SELECT + + col2 * col1 + + cor0.col1 FROM tab0 AS cor0
----
194
2924
7553

query I rowsort
SELECT ( cor1.col1 ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc

query I rowsort
SELECT DISTINCT - ( + 26 ) AS col0 FROM tab1, tab2 cor0
----
-26

query I rowsort
SELECT DISTINCT col0 * + 97 - + col1 * col0 FROM tab1
----
213
5568
6720

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * + cor0.col0 col1 FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT + 6 * col0 AS col2 FROM tab2 AS cor0
----
42
468
474

query I rowsort
SELECT ( 87 ) * + col0 * ( ( col2 ) ) AS col2 FROM tab1 AS cor0
----
14094
317376
668160

query I rowsort
SELECT DISTINCT tab1.col0 * 8 AS col0 FROM tab1
----
24
512
640

onlyif mysql # use DIV operator for integer division
query I rowsort label-5283
SELECT col2 + + col2 DIV tab2.col1 AS col1 FROM tab2
----
26
27
40

skipif mysql # not compatible
query I rowsort label-5283
SELECT col2 + + col2 / tab2.col1 AS col1 FROM tab2
----
26
27
40

query I rowsort
SELECT DISTINCT - col0 * - 15 + - col2 * col1 * ( tab1.col0 ) AS col1 FROM tab1
----
-35520
-4167
-98640

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5285
SELECT ALL - cor0.col0 * + CAST( NULL AS SIGNED ) FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-5285
SELECT ALL - cor0.col0 * + CAST ( NULL AS INTEGER ) FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT ALL col2 * 44 FROM tab2
----
1144
1188
1672

onlyif mysql # use DIV operator for integer division
query I rowsort label-5287
SELECT + col0 DIV 48 FROM tab1
----
0
1
1

skipif mysql # not compatible
query I rowsort label-5287
SELECT + col0 / 48 FROM tab1
----
0
1
1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5288
SELECT CAST( - 16 AS SIGNED ) AS col1 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to 71c8b08964ab47ce12158975c0ee1fd9

skipif mysql # not compatible
query I rowsort label-5288
SELECT CAST ( - 16 AS INTEGER ) AS col1 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to 71c8b08964ab47ce12158975c0ee1fd9

onlyif mysql # use DIV operator for integer division
query I rowsort label-5289
SELECT + col1 + 41 DIV col0 AS col2 FROM tab0
----
87
91
98

skipif mysql # not compatible
query I rowsort label-5289
SELECT + col1 + 41 / col0 AS col2 FROM tab0
----
87
91
98

query I rowsort
SELECT + col2 * - ( col1 ) * cor0.col2 AS col1 FROM tab1 AS cor0
----
-119808
-32490
-75816

query I rowsort
SELECT - ( - 25 ) * - col2 AS col2 FROM tab0 AS cor0
----
-2050
-25
-825

query I rowsort
SELECT ALL + - 29 * col0 FROM tab2 AS cor0
----
-203
-2262
-2291

query I rowsort
SELECT + - ( col0 ) * cor0.col2 FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT DISTINCT - + 92 * col2 AS col1 FROM tab0 AS cor0
----
-3036
-7544
-92

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5295
SELECT tab1.col1 * + CAST( NULL AS SIGNED ) AS col1 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-5295
SELECT tab1.col1 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT - ( - col1 ) * - tab0.col2 * col0 FROM tab0
----
-3395
-664118
-68112

query I rowsort
SELECT col2 * col0 * col2 AS col2 FROM tab1 AS cor0
----
207936
737280
8748

query I rowsort
SELECT - + 55 * + col2 AS col1 FROM tab2 AS cor0
----
-1430
-1485
-2090

query I rowsort
SELECT ALL + 83 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 18f405c31a0fb47ce3cc9f7effa8855c

query I rowsort
SELECT DISTINCT + col0 - - col1 * + col2 * col0 AS col0 FROM tab0
----
3430
664207
68136

query I rowsort
SELECT - 98 * - col0 FROM tab2
----
686
7644
7742

query I rowsort
SELECT col1 + + col1 * 12 FROM tab0
----
1118
1183
1261

query I rowsort
SELECT - + col1 + col2 + + ( - 65 ) * - col0 FROM tab2 AS cor0
----
451
5037
5156

query I rowsort
SELECT + - col2 * col0 + col2 + + cor0.col0 FROM tab1 AS cor0
----
-105
-3527
-7504

query I rowsort
SELECT - ( - col1 ) * + 2 FROM tab2 AS cor0
----
118
34
62

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab1 cor0, tab0 AS cor1, tab0, tab2 AS cor2
----
3645 values hashing to 71180f9f3efadf0ee3a7fec9678208ad

query I rowsort
SELECT DISTINCT - col2 * ( + 95 * col2 ) + - ( col1 ) AS col0 FROM tab1 AS cor0
----
-277046
-308665
-875533

query I rowsort
SELECT DISTINCT 76 AS col2 FROM tab0, tab2 AS cor0
----
76

query I rowsort
SELECT - + 26 * ( - col1 ) AS col2 FROM tab1 AS cor0
----
260
338
676

onlyif mysql # use DIV operator for integer division
query I rowsort label-5310
SELECT + 83 + col0 DIV cor0.col1 AS col1 FROM tab1 AS cor0
----
83
89
89

skipif mysql # not compatible
query I rowsort label-5310
SELECT + 83 + col0 / cor0.col1 AS col1 FROM tab1 AS cor0
----
83
89
89

query I rowsort
SELECT - - 30 * - col2 AS col1 FROM tab2 AS cor0
----
-1140
-780
-810

query I rowsort
SELECT 50 + col0 FROM tab2 cor0
----
128
129
57

onlyif mysql # use DIV operator for integer division
query I rowsort label-5313
SELECT - + ( + cor0.col1 ) DIV - col0 FROM tab1 AS cor0
----
0
0
8

skipif mysql # not compatible
query I rowsort label-5313
SELECT - + ( + cor0.col1 ) / - col0 FROM tab1 AS cor0
----
0
0
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 25 * col1 col2 FROM tab2 AS cor0
----
1475
425
775

query I rowsort
SELECT ALL 54 FROM tab0, tab0 AS cor0
----
9 values hashing to d2364c4ffc09ac2cf1f6fa4d767d8b09

query I rowsort
SELECT ALL col1 * + 81 - - col2 AS col0 FROM tab1 AS cor0
----
1149
2160
867

query I rowsort
SELECT - + col2 * 55 - col2 * col1 * + ( - 34 * + col0 ) AS col2 FROM tab0 AS cor0
----
115375
22575502
2313993

query I rowsort
SELECT DISTINCT - col1 * 19 - col2 FROM tab0 cor0
----
-1667
-1811
-1844

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 77 * col1 col2 FROM tab0
----
6622
7007
7469

onlyif mysql # use DIV operator for integer division
query I rowsort label-5320
SELECT ALL - - col1 DIV ( + col2 ) FROM tab0 AS cor0
----
1
2
97

skipif mysql # not compatible
query I rowsort label-5320
SELECT ALL - - col1 / ( + col2 ) FROM tab0 AS cor0
----
1
2
97

query I rowsort
SELECT ALL col0 - ( + col2 + col0 ) FROM tab0
----
-1
-33
-82

query I rowsort
SELECT ALL cor0.col0 * - col1 * - col0 + + 86 AS col2 FROM tab2 AS cor0
----
106183
1605
359042

query I rowsort
SELECT DISTINCT ( 88 ) * col1 AS col2 FROM tab0 AS cor0
----
7568
8008
8536

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5324
SELECT + col2 - CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5324
SELECT + col2 - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL tab0.col0 * - 29 - tab0.col1 FROM tab0
----
-1112
-2672
-782

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5326
SELECT - CAST( col0 + col2 AS SIGNED ) AS col0 FROM tab2
----
-104
-117
-34

skipif mysql # not compatible
query I rowsort label-5326
SELECT - CAST ( col0 + col2 AS INTEGER ) AS col0 FROM tab2
----
-104
-117
-34

query I rowsort
SELECT DISTINCT - 89 * 57 * col1 AS col2 FROM tab0
----
-436278
-461643
-492081

query I rowsort
SELECT DISTINCT ( col1 ) + + 15 AS col1 FROM tab0 AS cor0
----
101
106
112

query I rowsort
SELECT ALL - + ( col1 ) * ( col1 ) * col1 AS col0 FROM tab0 cor0
----
-636056
-753571
-912673

query I rowsort
SELECT DISTINCT cor0.col2 * + cor0.col1 AS col0 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT - ( + tab2.col2 ) - - col0 AS col0 FROM tab2
----
-20
41
52

query I rowsort
SELECT ( - 47 * col0 ) + col1 * col0 AS col2 FROM tab0
----
1750
3916
936

query I rowsort
SELECT + tab2.col0 + col0 * + tab2.col0 AS col0 FROM tab2
----
56
6162
6320

query I rowsort
SELECT ALL + ( - 71 ) + col1 AS col0 FROM tab1
----
-45
-58
-61

onlyif mysql # use DIV operator for integer division
query I rowsort label-5335
SELECT col2 DIV col0 - col1 FROM tab0
----
-85
-91
-97

skipif mysql # not compatible
query I rowsort label-5335
SELECT col2 / col0 - col1 FROM tab0
----
-85
-91
-97

query I rowsort
SELECT DISTINCT + - 79 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-79

query I rowsort
SELECT - col2 + + col1 * + col0 FROM tab0 AS cor0
----
2031
3394
8017

query I rowsort
SELECT col2 + - col1 * + col1 FROM tab2
----
-251
-3455
-934

query I rowsort
SELECT ALL + 68 AS col0 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 599bee15ac4cc39b859854e07dfe7990

query I rowsort
SELECT + ( + ( cor0.col2 ) ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 58 col2 FROM tab2 AS cor0
----
58
58
58

query I rowsort
SELECT ALL + 28 + + col0 AS col0 FROM tab2 AS cor0
----
106
107
35

query I rowsort
SELECT 89 * - tab2.col1 + - col1 FROM tab2
----
-1530
-2790
-5310

query I rowsort
SELECT + 13 AS col2 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to a90d0f37cec603ae1bc0a60dc7fbaeed

onlyif mysql # use DIV operator for integer division
query I rowsort label-5345
SELECT cor0.col1 DIV - 62 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2

skipif mysql # not compatible
query I rowsort label-5345
SELECT cor0.col1 / - 62 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2

onlyif mysql # use DIV operator for integer division
query I rowsort label-5346
SELECT ALL - 96 + + col2 DIV ( col0 ) AS col1 FROM tab2 AS cor0
----
-93
-96
-96

skipif mysql # not compatible
query I rowsort label-5346
SELECT ALL - 96 + + col2 / ( col0 ) AS col1 FROM tab2 AS cor0
----
-93
-96
-96

query I rowsort
SELECT ALL + - 95 - cor1.col1 AS col2 FROM tab0, tab2 AS cor0, tab0 cor1, tab2, tab0 AS cor2
----
243 values hashing to edc019857419dbfba1abf6c023e704d4

query I rowsort
SELECT ALL - - col2 * col1 + - col1 AS col2 FROM tab1 AS cor0
----
1235
1378
560

query I rowsort
SELECT 47 AS col0 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 3f991632e9c7c5142e1d80857cd10a2d

query I rowsort
SELECT - tab1.col2 + tab1.col0 AS col2 FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to a62a6691988eb243604ec6133ae5eae4

query I rowsort
SELECT DISTINCT - + col2 + + cor0.col2 * 11 AS col2 FROM tab1 AS cor0
----
540
570
960

query I rowsort
SELECT DISTINCT cor0.col0 + 97 AS col0 FROM tab2 cor0
----
104
175
176

onlyif mysql # use DIV operator for integer division
query I rowsort label-5353
SELECT ALL - cor0.col2 DIV + col0 AS col0 FROM tab2 AS cor0
----
-3
0
0

skipif mysql # not compatible
query I rowsort label-5353
SELECT ALL - cor0.col2 / + col0 AS col0 FROM tab2 AS cor0
----
-3
0
0

query I rowsort
SELECT - + cor0.col0 * + col2 * ( - col1 ) AS col1 FROM tab2 AS cor0
----
119652
51034
5859

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5355
SELECT col2 * - CAST( NULL AS SIGNED ) * col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5355
SELECT col2 * - CAST ( NULL AS INTEGER ) * col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 54 col2 FROM tab1
----
54

query I rowsort
SELECT DISTINCT cor0.col1 + - col2 * col0 FROM tab2 cor0
----
-158
-1969
-2985

onlyif mysql # use DIV operator for integer division
query I rowsort label-5358
SELECT ALL + col1 DIV 22 + - 97 + col2 FROM tab2 AS cor0
----
-59
-69
-69

skipif mysql # not compatible
query I rowsort label-5358
SELECT ALL + col1 / 22 + - 97 + col2 FROM tab2 AS cor0
----
-59
-69
-69

query I rowsort
SELECT - col2 + cor0.col1 * + col2 FROM tab0 AS cor0
----
2805
7380
96

query I rowsort
SELECT DISTINCT + col2 * - 48 FROM tab2 AS cor0
----
-1248
-1296
-1824

onlyif mysql # use DIV operator for integer division
query I rowsort label-5361
SELECT ALL + + col2 DIV - col0 AS col1 FROM tab0 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-5361
SELECT ALL + + col2 / - col0 AS col1 FROM tab0 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort
SELECT col2 * + CAST ( col2 AS REAL ) * - col0 AS col0 FROM tab0 cor0
----
-26136
-35
-598436

query I rowsort
SELECT ALL - col1 + - cor0.col1 AS col2 FROM tab1 AS cor0
----
-20
-26
-52

query I rowsort
SELECT + 84 * 32 + - cor0.col2 AS col2 FROM tab2 AS cor0
----
2650
2661
2662

query I rowsort
SELECT + col0 + + ( col0 ) FROM tab1 AS cor0
----
128
160
6

query I rowsort
SELECT 10 + 28 FROM tab0 AS cor0
----
38
38
38

query I rowsort
SELECT ALL + col1 * - col0 AS col1 FROM tab0 cor0
----
-2064
-3395
-8099

query I rowsort
SELECT DISTINCT - - ( - col1 ) + + col1 FROM tab0 AS cor0
----
0

query I rowsort
SELECT DISTINCT - + col2 * - 84 AS col0 FROM tab1 AS cor0
----
4536
4788
8064

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5370
SELECT ALL 47 * + ( col0 ) + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5370
SELECT ALL 47 * + ( col0 ) + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5371
SELECT ALL CAST( col0 AS SIGNED ) - col1 FROM tab0 AS cor0
----
-2
-62
-62

skipif mysql # not compatible
query I rowsort label-5371
SELECT ALL CAST ( col0 AS INTEGER ) - col1 FROM tab0 AS cor0
----
-2
-62
-62

query I rowsort
SELECT DISTINCT + 33 * col2 - - col2 AS col0 FROM tab1 AS cor0
----
1836
1938
3264

query I rowsort
SELECT ALL cor0.col2 * + 11 * col0 + - 15 + + 62 * col0 AS col1 FROM tab1 AS cor0
----
1953
44081
89425

query I rowsort
SELECT ALL + 71 * - 91 AS col0 FROM tab2 AS cor0
----
-6461
-6461
-6461

query I rowsort
SELECT 21 * ( cor0.col0 ) - col0 FROM tab1 AS cor0
----
1280
1600
60

query I rowsort
SELECT DISTINCT - col0 * + col1 * + col2 FROM tab0 AS cor0
----
-3395
-664118
-68112

query I rowsort
SELECT ALL + ( cor0.col0 ) AS col0 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT + - col0 * col1 + - cor0.col1 FROM tab1 AS cor0
----
-104
-1053
-650

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( col1 ) + col1 * + 89 col2 FROM tab0 AS cor0
----
7740
8190
8730

query I rowsort
SELECT DISTINCT - 93 + col0 + col1 * col0 FROM tab2 AS cor0
----
131
1329
4587

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT - CAST ( + col0 AS REAL ) * col0 col0 FROM tab1 AS cor0
----
-4096
-6400
-9

query I rowsort
SELECT ALL + col0 - col2 * + col0 FROM tab0 cor0
----
-7209
-768
0

query I rowsort
SELECT ALL + ( col0 ) + col2 * - col1 FROM tab1 AS cor0
----
-1168
-1401
-506

query I rowsort
SELECT DISTINCT - - cor0.col0 - + col1 AS col0 FROM tab1 AS cor0
----
-23
54
67

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5385
SELECT DISTINCT CAST( 95 AS SIGNED ) * cor0.col2 FROM tab1 AS cor0
----
5130
5415
9120

skipif mysql # not compatible
query I rowsort label-5385
SELECT DISTINCT CAST ( 95 AS INTEGER ) * cor0.col2 FROM tab1 AS cor0
----
5130
5415
9120

query I rowsort
SELECT ALL - 65 + - col2 FROM tab2 AS cor0
----
-103
-91
-92

query I rowsort
SELECT cor0.col1 * col2 + - ( - cor0.col2 ) + + col0 AS col1 FROM tab1 AS cor0
----
1424
1461
691

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5388
SELECT CAST( NULL AS SIGNED ) AS col0 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-5388
SELECT CAST ( NULL AS INTEGER ) AS col0 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT DISTINCT + - col1 * - col1 AS col0 FROM tab2 cor0
----
289
3481
961

query I rowsort
SELECT DISTINCT col1 + col0 + ( + col1 ) * cor0.col2 FROM tab1 AS cor0
----
1341
1433
644

query I rowsort
SELECT ALL - - cor0.col0 + + col1 * + col2 FROM tab0 AS cor0
----
132
2862
7551

query I rowsort
SELECT - col1 * col2 * + col0 AS col1 FROM tab2 AS cor0
----
-119652
-51034
-5859

query I rowsort
SELECT ALL - 35 * cor0.col1 * cor0.col0 FROM tab2 AS cor0
----
-161070
-47005
-7595

query I rowsort
SELECT ALL + + 39 + - cor0.col1 * - col1 FROM tab1 cor0
----
139
208
715

query I rowsort
SELECT DISTINCT - ( - col0 ) + col0 AS col2 FROM tab1 AS cor0
----
128
160
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + col2 * + tab1.col1 col1 FROM tab1
----
1261
1430
580

query I rowsort
SELECT - col1 * - 51 + + col1 - col0 AS col2 FROM tab2
----
1605
2990
805

query I rowsort
SELECT + col2 + tab0.col2 AS col1 FROM tab0
----
164
2
66

query I rowsort
SELECT col0 * 80 AS col0 FROM tab2
----
560
6240
6320

query I rowsort
SELECT - col2 * ( + 33 + + col2 ) FROM tab0
----
-2178
-34
-9430

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5401
SELECT + col1 * + CAST( NULL AS SIGNED ) / + 45 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5401
SELECT + col1 * + CAST ( NULL AS INTEGER ) / + 45 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 25 AS col1 FROM tab1, tab0, tab0 AS cor0, tab1 AS cor1
----
-25

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 34 col0 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 4e2ca147a59e0d5661c28cf3e5431caa

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + - 53 col1 FROM tab1 AS cor0
----
-107
-110
-149

query I rowsort
SELECT + cor0.col2 * + 39 + ( col1 ) * ( cor0.col2 ) - col1 FROM tab2 AS cor0
----
1859
2111
2489

query I rowsort
SELECT + + 13 * + col1 FROM tab2 AS cor0
----
221
403
767

query I rowsort
SELECT + col1 * - 42 + - col2 AS col1 FROM tab1 AS cor0
----
-1146
-477
-642

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5408
SELECT + CAST( NULL AS SIGNED ) * + 3 AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5408
SELECT + CAST ( NULL AS INTEGER ) * + 3 AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-5409
SELECT - 88 + + col0 DIV col2 + + col2 FROM tab0 AS cor0
----
-5
-52
-55

skipif mysql # not compatible
query I rowsort label-5409
SELECT - 88 + + col0 / col2 + + col2 FROM tab0 AS cor0
----
-5
-52
-55

onlyif mysql # use DIV operator for integer division
query I rowsort label-5410
SELECT - col1 DIV - 53 AS col1 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5410
SELECT - col1 / - 53 AS col1 FROM tab0
----
1
1
1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5411
SELECT DISTINCT + col2 * - col2 * + ( - tab1.col2 ) + - CAST( NULL AS SIGNED ) + 65 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5411
SELECT DISTINCT + col2 * - col2 * + ( - tab1.col2 ) + - CAST ( NULL AS INTEGER ) + 65 FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT col2 + - 52 * ( + col1 + + tab1.col0 ) FROM tab1
----
-1454
-3791
-4740

query I rowsort
SELECT tab2.col0 + - ( - col1 ) AS col0 FROM tab2
----
137
38
96

query I rowsort
SELECT + + cor0.col2 + - col0 + col1 AS col2 FROM tab2 AS cor0
----
-24
51
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + col2 - col1 col1 FROM tab0 AS cor0
----
-20
-95
73

query I rowsort
SELECT - col0 * col0 + + col2 + ( - col2 ) AS col1 FROM tab2 AS cor0
----
-49
-6084
-6241

query I rowsort
SELECT DISTINCT col1 * - col1 * col0 FROM tab2 cor0
----
-22831
-271518
-6727

onlyif mysql # use DIV operator for integer division
query I rowsort label-5418
SELECT DISTINCT - col0 DIV - col1 FROM tab1 AS cor0
----
0
6

skipif mysql # not compatible
query I rowsort label-5418
SELECT DISTINCT - col0 / - col1 FROM tab1 AS cor0
----
0
6

onlyif mysql # use DIV operator for integer division
query I rowsort label-5419
SELECT ALL - cor0.col0 * col2 + - 34 DIV - col0 col1 FROM tab1 AS cor0
----
-151
-3648
-7680

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5419
SELECT ALL - cor0.col0 * col2 + - 34 / - col0 col1 FROM tab1 AS cor0
----
-151
-3648
-7680

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col1 + + col0 col1 FROM tab2 cor0
----
-24
19
62

query I rowsort
SELECT - cor0.col0 + col0 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT - - 93 * + cor0.col1 AS col1 FROM tab0 AS cor0
----
7998
8463
9021

query I rowsort
SELECT + ( - col0 ) + col1 AS col1 FROM tab1 AS cor0
----
-54
-67
23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * ( - ( - col1 ) ) col1 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT ALL + - cor0.col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 3000337dd3f11e9cfd5a312b01ef3f8b

query I rowsort
SELECT + + cor1.col2 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17

query I rowsort
SELECT + col1 * col2 + 39 AS col0 FROM tab2 AS cor0
----
1573
685
876

query I rowsort
SELECT col1 * - ( col1 ) FROM tab1 cor0
----
-100
-169
-676

query I rowsort
SELECT DISTINCT + + cor0.col1 - 43 FROM tab2 AS cor0
----
-12
-26
16

query I rowsort
SELECT DISTINCT + - cor0.col2 * 27 * + col0 AS col0 FROM tab0 AS cor0
----
-197046
-21384
-945

query I rowsort
SELECT - col2 + + cor0.col1 * + ( col2 ) AS col1 FROM tab1 AS cor0
----
1152
1350
513

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * - col1 col1 FROM tab1
----
-100
-169
-676

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5433
SELECT ALL + - col0 * CAST( col0 * col0 AS SIGNED ) + - cor0.col2 col2 FROM tab1 cor0
----
-262201
-512096
-81

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5433
SELECT ALL + - col0 * CAST ( col0 * col0 AS INTEGER ) + - cor0.col2 col2 FROM tab1 cor0
----
-262201
-512096
-81

query I rowsort
SELECT ALL + - col1 + - ( - col2 ) FROM tab2 AS cor0
----
-33
-4
21

query I rowsort
SELECT DISTINCT - 83 * + col2 FROM tab2
----
-2158
-2241
-3154

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5436
SELECT DISTINCT CAST( NULL AS DECIMAL ) col0 FROM tab0, tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5436
SELECT DISTINCT CAST ( NULL AS REAL ) col0 FROM tab0, tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + 95 AS col2 FROM tab2 AS cor0
----
95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - cor0.col2 + col0 col1 FROM tab0 AS cor0
----
171
36
57

query I rowsort
SELECT + col2 * cor0.col2 * col0 FROM tab0 AS cor0
----
26136
35
598436

query I rowsort
SELECT DISTINCT + 88 FROM tab2, tab1 AS cor0
----
88

onlyif mysql # use DIV operator for integer division
query I rowsort label-5441
SELECT DISTINCT 62 + col2 DIV + col1 AS col0 FROM tab0 AS cor0
----
62

skipif mysql # not compatible
query I rowsort label-5441
SELECT DISTINCT 62 + col2 / + col1 AS col0 FROM tab0 AS cor0
----
62

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5442
SELECT DISTINCT - 98 / cor0.col0 + CAST( NULL AS SIGNED ) AS col1 FROM tab2, tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5442
SELECT DISTINCT - 98 / cor0.col0 + CAST ( NULL AS INTEGER ) AS col1 FROM tab2, tab2 cor0
----
NULL

query I rowsort
SELECT ALL tab1.col1 AS col1 FROM tab1, tab0 cor0
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775

query I rowsort
SELECT + col0 * + col1 * + col2 - col1 AS col1 FROM tab0
----
3298
664027
68026

query I rowsort
SELECT ALL 2 + - col0 * + col0 AS col2 FROM tab2
----
-47
-6082
-6239

query I rowsort
SELECT + ( tab1.col0 + - 43 ) FROM tab1
----
-40
21
37

query I rowsort
SELECT - ( col1 ) * cor0.col0 * + cor0.col0 AS col0 FROM tab2 AS cor0
----
-106097
-1519
-358956

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5448
SELECT DISTINCT CAST( NULL AS DECIMAL ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5448
SELECT DISTINCT CAST ( NULL AS REAL ) FROM tab0
----
NULL

query I rowsort
SELECT ALL - 56 + col2 AS col0 FROM tab0 AS cor0
----
-23
-55
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 92 + + col1 col2 FROM tab2 AS cor0
----
109
123
151

query I rowsort
SELECT DISTINCT - 57 * col2 FROM tab0 AS cor0
----
-1881
-4674
-57

query I rowsort
SELECT ALL - col2 + col1 + + col2 FROM tab2 AS cor0
----
17
31
59

query I rowsort
SELECT DISTINCT - ( + cor0.col1 ) * - col1 - cor0.col1 AS col2 FROM tab0 AS cor0
----
7310
8190
9312

query I rowsort
SELECT + - col0 * col2 AS col1 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT + + ( 56 ) * col0 AS col1 FROM tab2 AS cor0
----
392
4368
4424

onlyif mysql # use DIV operator for integer division
query I rowsort label-5456
SELECT ALL cor0.col2 + col2 DIV + col1 + + col2 AS col0 FROM tab0 AS cor0
----
164
2
66

skipif mysql # not compatible
query I rowsort label-5456
SELECT ALL cor0.col2 + col2 / + col1 + + col2 AS col0 FROM tab0 AS cor0
----
164
2
66

query I rowsort
SELECT ALL + 10 * col0 + cor0.col1 FROM tab2 AS cor0
----
101
807
839

query I rowsort
SELECT DISTINCT + ( ( cor0.col2 ) ) FROM tab2 AS cor0
----
26
27
38

query I rowsort
SELECT ALL 61 + 68 * - col2 FROM tab2 AS cor0
----
-1707
-1775
-2523

query I rowsort
SELECT DISTINCT + 53 * + cor0.col1 AS col0 FROM tab0 AS cor0
----
4558
4823
5141

skipif mysql # not compatible
query I rowsort
SELECT col0 * col1 * CAST ( + cor0.col2 AS REAL ) FROM tab2 AS cor0
----
119652
51034
5859

query I rowsort
SELECT DISTINCT - 22 AS col1 FROM tab0 AS cor0
----
-22

query I rowsort
SELECT DISTINCT - + ( col0 ) + + 20 AS col0 FROM tab2 AS cor0
----
-58
-59
13

query I rowsort
SELECT ALL - - 80 AS col2 FROM tab1 AS cor0
----
80
80
80

query I rowsort
SELECT + ( cor0.col2 ) * + 97 AS col1 FROM tab0 cor0
----
3201
7954
97

query I rowsort
SELECT DISTINCT cor0.col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
3
64
80

query I rowsort
SELECT + 65 + - col2 FROM tab2
----
27
38
39

query I rowsort
SELECT + col1 + col1 * - col2 FROM tab0 AS cor0
----
-2752
-7371
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5469
SELECT + col2 + - CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5469
SELECT + col2 + - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col2 + + col1 + - 67 * + col2 AS col2 FROM tab2 AS cor0
----
-1657
-1751
-2491

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5471
SELECT - - col2 * + CAST( NULL AS SIGNED ) + + col1 AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5471
SELECT - - col2 * + CAST ( NULL AS INTEGER ) + + col1 AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 65 * 99 FROM tab1, tab2 AS cor0
----
9 values hashing to 071155b0edf29420d555999a6841e3f2

onlyif mysql # use DIV operator for integer division
query I rowsort label-5473
SELECT col1 DIV col1 AS col0 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5473
SELECT col1 / col1 AS col0 FROM tab1
----
1
1
1

query I rowsort
SELECT - + col0 * + ( 72 ) + - col0 * - ( col2 ) FROM tab2 AS cor0
----
-2686
-315
-3588

query I rowsort
SELECT ALL col1 * col1 + col2 + col2 FROM tab1 AS cor0
----
214
361
784

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5476
SELECT CAST( NULL AS SIGNED ) + + tab2.col0 FROM tab2, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-5476
SELECT CAST ( NULL AS INTEGER ) + + tab2.col0 FROM tab2, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT col1 * ( col1 ) - - col2 AS col0 FROM tab2
----
327
3507
988

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5478
SELECT DISTINCT - CAST( col1 AS SIGNED ) + - col2 FROM tab2 AS cor0
----
-55
-58
-85

skipif mysql # not compatible
query I rowsort label-5478
SELECT DISTINCT - CAST ( col1 AS INTEGER ) + - col2 FROM tab2 AS cor0
----
-55
-58
-85

query I rowsort
SELECT - + col2 + 90 * col2 AS col0 FROM tab2 cor0
----
2314
2403
3382

query I rowsort
SELECT DISTINCT + tab1.col1 * + ( - col0 * - tab1.col2 ) + + ( col0 ) * tab1.col1 FROM tab1
----
100880
37120
4290

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + col0 * CAST ( col2 AS REAL ) + tab0.col1 AS col2 FROM tab0
----
132
7389
878

query I rowsort
SELECT - col1 - + 71 FROM tab0
----
-157
-162
-168

query I rowsort
SELECT DISTINCT - cor0.col2 * 2 AS col0 FROM tab1, tab1 cor0
----
-108
-114
-192

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5484
SELECT + col1 * + col0 / col2 + CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5484
SELECT + col1 * + col0 / col2 + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - ( + col1 ) * + cor0.col1 FROM tab1 AS cor0
----
-100
-169
-676

query I rowsort
SELECT DISTINCT - col1 + 48 AS col0 FROM tab1 AS cor0
----
22
35
38

query I rowsort
SELECT ALL - ( + 39 ) + col2 AS col2 FROM tab1 AS cor0
----
15
18
57

query I rowsort
SELECT ALL + tab0.col0 + ( tab0.col0 ) FROM tab0
----
178
48
70

query I rowsort
SELECT + 37 FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to c023509f63faa044d654943e6df55ca2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 98 col2 FROM tab1
----
-98
-98
-98

query I rowsort
SELECT - + 66 FROM tab0 AS cor0
----
-66
-66
-66

query I rowsort
SELECT - - col2 + + 13 AS col2 FROM tab0 AS cor0
----
14
46
95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 88 * + tab0.col2 col1 FROM tab0
----
-2904
-7216
-88

onlyif mysql # use DIV operator for integer division
query I rowsort label-5494
SELECT 1 DIV col2 AS col1 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-5494
SELECT 1 / col2 AS col1 FROM tab0
----
0
0
1

query I rowsort
SELECT DISTINCT 5 + - col2 * 15 - 99 AS col0 FROM tab1
----
-1534
-904
-949

query I rowsort
SELECT + + col2 * ( col0 ) - col0 FROM tab1 AS cor0
----
159
3584
7600

query I rowsort
SELECT ALL - ( - col2 ) + + col1 * col1 - col0 * - 85 FROM tab2
----
10137
1583
7042

query I rowsort
SELECT DISTINCT + ( col0 ) * col0 - - col0 * + col0 FROM tab2
----
12168
12482
98

query I rowsort
SELECT ALL col1 * + col1 + + col0 AS col1 FROM tab0
----
7420
8370
9444

query I rowsort
SELECT ALL ( + col2 ) * + 0 + + 99 * + col2 AS col1 FROM tab0 AS cor0
----
3267
8118
99

query I rowsort
SELECT DISTINCT - col0 * + col1 * tab1.col2 AS col0 FROM tab1
----
-36480
-4212
-99840

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col2 * col2 col0 FROM tab1 AS cor0
----
-2916
-3249
-9216

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab2.col0 * - tab2.col2 col2 FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to 24e20ca2b8a28088cc71698417e1f489

query I rowsort
SELECT ALL + col1 * ( + col2 ) * - col1 + + 72 AS col1 FROM tab2 cor0
----
-10910
-25875
-90434

query I rowsort
SELECT DISTINCT cor0.col2 - ( col1 ) FROM tab0 AS cor0
----
-53
-9
-96

query I rowsort
SELECT ALL cor0.col1 * - 14 AS col2 FROM tab1 cor0
----
-140
-182
-364

query I rowsort
SELECT - + col0 - + ( 79 ) FROM tab0 AS cor0
----
-103
-114
-168

query I rowsort
SELECT - col2 + - col2 * + col0 * col0 FROM tab0 AS cor0
----
-1226
-19041
-649604

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5509
SELECT ALL + col1 + CAST( NULL AS SIGNED ) col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5509
SELECT ALL + col1 + CAST ( NULL AS INTEGER ) col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + - col1 * ( 89 ) AS col2 FROM tab1 AS cor0
----
-1157
-2314
-890

query I rowsort
SELECT + col0 * + 80 FROM tab0 AS cor0
----
1920
2800
7120

query I rowsort
SELECT + + col1 - col2 AS col0 FROM tab0 AS cor0
----
53
9
96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5513
SELECT ALL + + col1 + CAST( NULL AS DECIMAL ) * + cor0.col0 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5513
SELECT ALL + + col1 + CAST ( NULL AS REAL ) * + cor0.col0 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col0 * col0 + 54 + + col1 AS col1 FROM tab1 AS cor0
----
4160
6467
89

onlyif mysql # use DIV operator for integer division
query I rowsort label-5515
SELECT + - col0 DIV col1 + - col0 * col0 FROM tab0 AS cor0
----
-1225
-576
-7921

skipif mysql # not compatible
query I rowsort label-5515
SELECT + - col0 / col1 + - col0 * col0 FROM tab0 AS cor0
----
-1225
-576
-7921

query I rowsort
SELECT col2 + - col0 * - col0 + cor0.col0 * + 85 FROM tab1 AS cor0
----
13296
318
9593

query I rowsort
SELECT DISTINCT - col2 + col1 * col0 FROM tab0 AS cor0
----
2031
3394
8017

query I rowsort
SELECT + - col2 * 12 AS col1 FROM tab1 AS cor0
----
-1152
-648
-684

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5519
SELECT ALL CAST( - col0 AS SIGNED ) * - col0 FROM tab0
----
1225
576
7921

skipif mysql # not compatible
query I rowsort label-5519
SELECT ALL CAST ( - col0 AS INTEGER ) * - col0 FROM tab0
----
1225
576
7921

query I rowsort
SELECT 96 + 17 AS col0 FROM tab2
----
113
113
113

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 + 54 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to d2364c4ffc09ac2cf1f6fa4d767d8b09

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + + col1 * + col1 col1 FROM tab0 AS cor0
----
7429
8363
9410

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + 43 col1 FROM tab0 AS cor0
----
129
134
140

query I rowsort
SELECT ( + col1 * col1 ) AS col2 FROM tab2
----
289
3481
961

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 85 * cor0.col0 + + col1 * col1 col0 FROM tab0 cor0
----
5356
6434
716

query I rowsort
SELECT ALL - - ( col2 ) + ( + col2 ) FROM tab1 AS cor0
----
108
114
192

query I rowsort
SELECT ALL - cor0.col2 * + cor0.col0 FROM tab0 cor0
----
-35
-7298
-792

query I rowsort
SELECT - + col2 + cor0.col2 AS col1 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5530
SELECT - col2 * - col0 - CAST( col1 AS SIGNED ) FROM tab0 AS cor0
----
-62
706
7207

skipif mysql # not compatible
query I rowsort label-5530
SELECT - col2 * - col0 - CAST ( col1 AS INTEGER ) FROM tab0 AS cor0
----
-62
706
7207

query I rowsort
SELECT ALL - + ( col2 ) * col1 AS col1 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT 67 * col1 AS col1 FROM tab0 cor0
----
5762
6097
6499

onlyif mysql # use DIV operator for integer division
query I rowsort label-5533
SELECT - 98 * col0 DIV col0 AS col0 FROM tab0 AS cor0
----
-98
-98
-98

skipif mysql # not compatible
query I rowsort label-5533
SELECT - 98 * col0 / col0 AS col0 FROM tab0 AS cor0
----
-98
-98
-98

query I rowsort
SELECT + 20 * - col1 FROM tab2 AS cor0
----
-1180
-340
-620

query I rowsort
SELECT + ( - col0 ) AS col0 FROM tab0 cor0
----
-24
-35
-89

query I rowsort
SELECT 55 * - col1 * + col0 FROM tab2 AS cor0
----
-11935
-253110
-73865

query I rowsort
SELECT + - 91 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 745d1c3a09d935465cad552325c5c945

query I rowsort
SELECT ( 65 ) AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 8bef2ea1f05f3514633f851312bdd805

query I rowsort
SELECT ALL + col0 * - col1 + - col2 + + col0 AS col2 FROM tab1 AS cor0
----
-1056
-129
-633

query I rowsort
SELECT - col2 * 94 + - col1 AS col0 FROM tab2 AS cor0
----
-2503
-2569
-3589

query I rowsort
SELECT + - col2 + - ( - col1 ) FROM tab1 AS cor0
----
-28
-47
-83

onlyif mysql # use DIV operator for integer division
query I rowsort label-5542
SELECT DISTINCT + col2 + col0 DIV 60 AS col1 FROM tab2 cor0
----
27
39

skipif mysql # not compatible
query I rowsort label-5542
SELECT DISTINCT + col2 + col0 / 60 AS col1 FROM tab2 cor0
----
27
39

query I rowsort
SELECT DISTINCT - col2 * 72 FROM tab2 cor0
----
-1872
-1944
-2736

query I rowsort
SELECT DISTINCT + - col0 + + col0 AS col2 FROM tab1 AS cor0
----
0

query I rowsort
SELECT ALL - - col2 + cor0.col1 FROM tab1 AS cor0
----
109
67
80

query I rowsort
SELECT ALL - col2 * - 9 AS col1 FROM tab2 AS cor0
----
234
243
342

query I rowsort
SELECT ALL - col0 * col2 + - col1 * + col2 * 56 FROM tab2 AS cor0
----
-39178
-47061
-87932

query I rowsort
SELECT col0 * - cor0.col2 FROM tab1 cor0
----
-162
-3648
-7680

onlyif mysql # use DIV operator for integer division
query I rowsort label-5549
SELECT DISTINCT - 58 DIV 90 AS col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5549
SELECT DISTINCT - 58 / 90 AS col0 FROM tab2 AS cor0
----
0

query I rowsort
SELECT 30 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to da5de0c411a2c0f445400f1b63ea9f89

onlyif mysql # use DIV operator for integer division
query I rowsort label-5551
SELECT ALL - tab2.col0 DIV + col1 AS col1 FROM tab2
----
-1
-4
0

skipif mysql # not compatible
query I rowsort label-5551
SELECT ALL - tab2.col0 / + col1 AS col1 FROM tab2
----
-1
-4
0

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab1, tab0 AS cor1, tab0, tab2 cor2
----
3645 values hashing to 71180f9f3efadf0ee3a7fec9678208ad

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5553
SELECT + + CAST( NULL AS SIGNED ) * 14 + cor0.col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5553
SELECT + + CAST ( NULL AS INTEGER ) * 14 + cor0.col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col2 + col0 * + tab2.col1 AS col0 FROM tab2
----
1381
244
4628

query I rowsort
SELECT - + 4 AS col1 FROM tab2 AS cor0
----
-4
-4
-4

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5556
SELECT ALL + ( cor0.col2 ) + col2 - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5556
SELECT ALL + ( cor0.col2 ) + col2 - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 + + col2 col0 FROM tab0 AS cor0
----
-34
-7
9

query I rowsort
SELECT DISTINCT + + ( + col2 ) - col2 AS col1 FROM tab1 AS cor0
----
0

query I rowsort
SELECT col2 + cor0.col2 * + col1 FROM tab1 AS cor0
----
1344
1458
627

query I rowsort
SELECT - - ( 70 ) AS col0 FROM tab1 cor0
----
70
70
70

query I rowsort
SELECT DISTINCT - + col2 * col2 AS col1 FROM tab2 AS cor0
----
-1444
-676
-729

query I rowsort
SELECT ALL - 48 * + col0 AS col2 FROM tab2 AS cor0
----
-336
-3744
-3792

query I rowsort
SELECT 66 * cor0.col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 21ddb10b9c4f379837d13f9116fdc3b2

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5564
SELECT col1 * CAST( 41 AS SIGNED ) FROM tab0 AS cor0
----
3526
3731
3977

skipif mysql # not compatible
query I rowsort label-5564
SELECT col1 * CAST ( 41 AS INTEGER ) FROM tab0 AS cor0
----
3526
3731
3977

query I rowsort
SELECT ALL tab0.col2 * + tab0.col2 FROM tab0
----
1
1089
6724

query I rowsort
SELECT + col2 + 92 * - col2 AS col1 FROM tab0 AS cor0
----
-3003
-7462
-91

query I rowsort
SELECT ALL - 76 + col1 FROM tab1
----
-50
-63
-66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * col2 col1 FROM tab0
----
2838
7462
97

query I rowsort
SELECT DISTINCT + 92 AS col2 FROM tab2, tab1 AS cor0
----
92

query I rowsort
SELECT col1 * - cor0.col2 + - col1 FROM tab2 AS cor0
----
-1593
-663
-868

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5571
SELECT + col0 + - cor0.col1 * - CAST( NULL AS SIGNED ) AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5571
SELECT + col0 + - cor0.col1 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT cor0.col0 * 85 FROM tab0 cor0
----
2040
2975
7565

query I rowsort
SELECT DISTINCT + col0 + - col1 * + col2 * col0 AS col0 FROM tab2 cor0
----
-119574
-50955
-5852

query I rowsort
SELECT ALL + - col1 * - ( col1 ) AS col0 FROM tab2 AS cor0
----
289
3481
961

query I rowsort
SELECT DISTINCT + cor0.col0 + col0 FROM tab1 cor0
----
128
160
6

onlyif mysql # use DIV operator for integer division
query I rowsort label-5576
SELECT - - col1 DIV 2 AS col1 FROM tab0 AS cor0
----
43
45
48

skipif mysql # not compatible
query I rowsort label-5576
SELECT - - col1 / 2 AS col1 FROM tab0 AS cor0
----
43
45
48

query I rowsort
SELECT - col1 * + col2 * 61 + - cor0.col1 FROM tab0 cor0
----
-173204
-455273
-6014

query I rowsort
SELECT 91 * - 43 FROM tab1, tab2 cor0
----
9 values hashing to d72fd3654de23cd596972226cc214687

query I rowsort
SELECT + col2 + + cor0.col2 AS col1 FROM tab2 AS cor0
----
52
54
76

query I rowsort
SELECT col2 + 50 - + col2 AS col1 FROM tab2
----
50
50
50

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 47 col2 FROM tab1 AS cor0
----
47
47
47

query I rowsort
SELECT ALL 49 + tab0.col2 - col1 FROM tab0
----
-4
-47
40

onlyif mysql # use DIV operator for integer division
query I rowsort label-5583
SELECT DISTINCT col0 * + 85 + + col1 DIV + col1 + tab2.col1 * + col1 FROM tab2
----
10112
1557
7005

skipif mysql # not compatible
query I rowsort label-5583
SELECT DISTINCT col0 * + 85 + + col1 / + col1 + tab2.col1 * + col1 FROM tab2
----
10112
1557
7005

query I rowsort
SELECT DISTINCT + col0 + 57 AS col0 FROM tab2 AS cor0
----
135
136
64

query I rowsort
SELECT + - 91 AS col0 FROM tab2 cor0
----
-91
-91
-91

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5586
SELECT ALL - CAST( - col0 AS SIGNED ) + - col1 FROM tab0 AS cor0
----
-2
-62
-62

skipif mysql # not compatible
query I rowsort label-5586
SELECT ALL - CAST ( - col0 AS INTEGER ) + - col1 FROM tab0 AS cor0
----
-2
-62
-62

query I rowsort
SELECT + ( 45 ) - col1 FROM tab0 AS cor0
----
-41
-46
-52

query I rowsort
SELECT DISTINCT + 53 - col1 AS col2 FROM tab2 AS cor0
----
-6
22
36

query I rowsort
SELECT DISTINCT col2 + col2 * 30 AS col0 FROM tab0 AS cor0
----
1023
2542
31

query I rowsort
SELECT - 55 + col2 AS col1 FROM tab2 AS cor0
----
-17
-28
-29

query I rowsort
SELECT DISTINCT - col1 * - cor0.col1 AS col2 FROM tab0 AS cor0
----
7396
8281
9409

query I rowsort
SELECT ALL 62 * - col2 + - col1 AS col0 FROM tab1 cor0
----
-3374
-3544
-5965

query I rowsort
SELECT ALL 83 * - col1 FROM tab0 AS cor0
----
-7138
-7553
-8051

query I rowsort
SELECT ALL + 59 AS col0 FROM tab0 AS cor0
----
59
59
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * - col2 col0 FROM tab0 AS cor0
----
2838
7462
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-5596
SELECT ALL + 74 + col2 DIV ( + col2 ) AS col0 FROM tab1 AS cor0
----
75
75
75

skipif mysql # not compatible
query I rowsort label-5596
SELECT ALL + 74 + col2 / ( + col2 ) AS col0 FROM tab1 AS cor0
----
75
75
75

query I rowsort
SELECT - col2 * col1 + ( + col0 ) AS col1 FROM tab0 AS cor0
----
-2814
-62
-7373

query I rowsort
SELECT DISTINCT - - 79 FROM tab2 AS cor0
----
79

query I rowsort
SELECT - col0 * col1 + - col0 * 69 + tab1.col1 FROM tab1
----
-259
-5046
-6547

query I rowsort
SELECT ALL 53 - + col2 * col0 FROM tab0
----
-7245
-739
18

query I rowsort
SELECT DISTINCT - tab2.col1 - col1 AS col0 FROM tab2
----
-118
-34
-62

query I rowsort
SELECT DISTINCT - tab1.col1 * - col0 - col0 FROM tab1
----
576
75
960

query I rowsort
SELECT DISTINCT - 15 - tab2.col0 FROM tab2
----
-22
-93
-94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 98 * - col1 col0 FROM tab0
----
-8428
-8918
-9506

query I rowsort
SELECT DISTINCT + cor0.col1 * - col0 + - col0 * - col1 FROM tab0 AS cor0
----
0

query I rowsort
SELECT - + 7 AS col2 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to 82db7c0390abae7ccf4512b1302a6466

query I rowsort
SELECT ( col0 * 78 ) + - col0 FROM tab2
----
539
6006
6083

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5608
SELECT 40 + + col1 * CAST( 64 AS SIGNED ) + + col0 * col0 AS col2 FROM tab0
----
13785
6120
7473

skipif mysql # not compatible
query I rowsort label-5608
SELECT 40 + + col1 * CAST ( 64 AS INTEGER ) + + col0 * col0 AS col2 FROM tab0
----
13785
6120
7473

query I rowsort
SELECT - col0 * + col0 + + col1 AS col1 FROM tab2 AS cor0
----
-18
-6025
-6224

query I rowsort
SELECT - col0 * 12 FROM tab2 AS cor0
----
-84
-936
-948

query I rowsort
SELECT col2 * - 92 AS col1 FROM tab1 AS cor0
----
-4968
-5244
-8832

query I rowsort
SELECT + 19 + - col1 AS col0 FROM tab1
----
-7
6
9

query I rowsort
SELECT ALL 76 + + col2 FROM tab0
----
109
158
77

query I rowsort
SELECT ALL ( col1 ) + - col2 - - cor0.col1 FROM tab1 AS cor0
----
-2
-37
-70

query I rowsort
SELECT DISTINCT + col1 * - ( + col2 ) + - col0 * col0 - + cor0.col1 FROM tab0 cor0
----
-1419
-15474
-3500

query I rowsort
SELECT ALL - cor0.col2 + cor0.col1 * col1 FROM tab1 AS cor0
----
43
622
73

query I rowsort
SELECT DISTINCT - ( col1 ) + - cor0.col2 + + 74 AS col0 FROM tab1 AS cor0
----
-35
-6
7

query I rowsort
SELECT + - ( - col0 ) + + cor0.col0 * 5 FROM tab0 cor0
----
144
210
534

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5619
SELECT ALL CAST( NULL AS SIGNED ) * + 99 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5619
SELECT ALL CAST ( NULL AS INTEGER ) * + 99 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 65 AS col2 FROM tab2 AS cor0
----
-65

query I rowsort
SELECT DISTINCT - 87 - col1 * + col2 FROM tab0 AS cor0
----
-184
-2925
-7549

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5622
SELECT DISTINCT - - CAST( col1 AS SIGNED ) + - cor0.col1 AS col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5622
SELECT DISTINCT - - CAST ( col1 AS INTEGER ) + - cor0.col1 AS col2 FROM tab2 AS cor0
----
0

query I rowsort
SELECT ALL + + ( - cor0.col2 ) + col1 FROM tab1 AS cor0
----
-28
-47
-83

query I rowsort
SELECT ALL - col2 * + 49 AS col0 FROM tab0 AS cor0
----
-1617
-4018
-49

query I rowsort
SELECT ( + col2 ) + - col0 FROM tab1 cor0
----
-7
16
51

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5626
SELECT DISTINCT + CAST( NULL AS SIGNED ) AS col0 FROM tab1, tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5626
SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col0 FROM tab1, tab0 cor0
----
NULL

query I rowsort
SELECT DISTINCT + col0 * + col1 AS col1 FROM tab2
----
1343
217
4602

query I rowsort
SELECT - col0 + - 59 + tab2.col2 FROM tab2
----
-100
-111
-39

query I rowsort
SELECT ALL + 82 AS col0 FROM tab2 AS cor0
----
82
82
82

skipif mysql # not compatible
query I rowsort
SELECT CAST ( col1 AS REAL ) * col1 * CAST ( 43 AS INTEGER ) FROM tab1 AS cor0
----
29068
4300
7267

query I rowsort
SELECT ( 66 ) * col1 AS col1 FROM tab2 AS cor0
----
1122
2046
3894

query I rowsort
SELECT ALL - ( - 22 ) FROM tab1 AS cor0
----
22
22
22

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5633
SELECT + - CAST( + col0 AS SIGNED ) * col2 FROM tab0 AS cor0
----
-35
-7298
-792

skipif mysql # not compatible
query I rowsort label-5633
SELECT + - CAST ( + col0 AS INTEGER ) * col2 FROM tab0 AS cor0
----
-35
-7298
-792

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5634
SELECT CAST( NULL AS SIGNED ) * ( + col0 ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5634
SELECT CAST ( NULL AS INTEGER ) * ( + col0 ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col0 * 76 + - col2 - + col1 FROM tab2 AS cor0
----
474
5843
5949

query I rowsort
SELECT + 41 * + col0 AS col1 FROM tab0 AS cor0
----
1435
3649
984

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5637
SELECT ALL CAST( NULL AS SIGNED ) + col2 AS col0 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5637
SELECT ALL CAST ( NULL AS INTEGER ) + col2 AS col0 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT cor0.col0 FROM tab0, tab0 AS cor0, tab1 AS cor1, tab1 AS cor2
----
81 values hashing to 2304fcc140e955eb2d1ee28ab1eea994

query I rowsort
SELECT - ( 49 ) FROM tab0 AS cor0
----
-49
-49
-49

query I rowsort
SELECT ALL - col0 * + 77 * tab2.col2 AS col1 FROM tab2
----
-14553
-156156
-231154

query I rowsort
SELECT - 98 FROM tab2, tab1 AS cor0
----
9 values hashing to f17b7008a7deae1eb5a2e707ec237638

query I rowsort
SELECT + - col2 + col0 FROM tab2 cor0
----
-20
41
52

query I rowsort
SELECT tab2.col1 * ( + col1 ) * + col1 AS col1 FROM tab2
----
205379
29791
4913

query I rowsort
SELECT 61 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 07149905a72bd87553381f34d19ed290

onlyif mysql # use DIV operator for integer division
query I rowsort label-5645
SELECT DISTINCT + 65 DIV + 62 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-5645
SELECT DISTINCT + 65 / + 62 FROM tab0
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - col0 ) * col0 col2 FROM tab0 AS cor0
----
-1225
-576
-7921

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5647
SELECT ALL 56 * col0 * CAST( + col0 * col2 AS SIGNED ) FROM tab0 AS cor0
----
1064448
36373232
68600

skipif mysql # not compatible
query I rowsort label-5647
SELECT ALL 56 * col0 * CAST ( + col0 * col2 AS INTEGER ) FROM tab0 AS cor0
----
1064448
36373232
68600

query I rowsort
SELECT DISTINCT + - 20 - + 73 FROM tab0, tab2, tab0 AS cor0
----
-93

query I rowsort
SELECT ALL - cor0.col1 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to d4c673b7444eb9927ec63175b43c6b84

query I rowsort
SELECT + tab1.col1 AS col1 FROM tab1, tab0, tab0 AS cor0
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892

query I rowsort
SELECT DISTINCT - 12 * tab1.col0 FROM tab1, tab2 AS cor0
----
-36
-768
-960

query I rowsort
SELECT tab1.col1 + tab1.col2 * + col1 + ( col1 ) AS col2 FROM tab1
----
1274
1456
590

query I rowsort
SELECT + 1 FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to da8a72a7967c0c73d91239275230aed9

query I rowsort
SELECT cor0.col2 * col1 + col0 + - cor0.col2 FROM tab1 AS cor0
----
1232
1353
577

query I rowsort
SELECT + - col0 - 47 * - cor0.col1 * - col0 FROM tab2 cor0
----
-10206
-216372
-63200

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 + 3 col1 FROM tab1 AS cor0
----
-61
-77
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * col2 col2 FROM tab1
----
2916
3249
9216

onlyif mysql # use DIV operator for integer division
query I rowsort label-5658
SELECT col0 DIV tab0.col2 + - col0 FROM tab0
----
-24
-88
0

skipif mysql # not compatible
query I rowsort label-5658
SELECT col0 / tab0.col2 + - col0 FROM tab0
----
-24
-88
0

query I rowsort
SELECT ALL 29 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 1e7120ba8e9191084172ddced17e5eb2

query I rowsort
SELECT - + cor0.col1 * ( - 75 ) * + col0 + - col1 * - 47 * + cor0.col2 FROM tab2 AS cor0
----
131087
417248
55614

query I rowsort
SELECT + col2 + - 80 * + col1 FROM tab1 AS cor0
----
-2026
-743
-944

query I rowsort
SELECT DISTINCT + col0 + - col0 * + col0 FROM tab0 AS cor0
----
-1190
-552
-7832

query I rowsort
SELECT DISTINCT col0 * 61 + - col2 AS col0 FROM tab2 AS cor0
----
400
4732
4781

onlyif mysql # use DIV operator for integer division
query I rowsort label-5664
SELECT ALL col1 + col2 * + cor0.col1 - col1 DIV col1 FROM tab1 cor0
----
1260
1429
579

skipif mysql # not compatible
query I rowsort label-5664
SELECT ALL col1 + col2 * + cor0.col1 - col1 / col1 FROM tab1 cor0
----
1260
1429
579

query I rowsort
SELECT + col2 + + col2 * - 24 FROM tab2 cor0
----
-598
-621
-874

query I rowsort
SELECT ALL + col1 * col2 * tab1.col0 AS col2 FROM tab1
----
36480
4212
99840

skipif mysql # not compatible
query I rowsort
SELECT ALL - CAST ( col0 AS REAL ) * + col1 * col2 FROM tab2 AS cor0
----
-119652
-51034
-5859

query I rowsort
SELECT DISTINCT - col0 + - tab1.col2 AS col0 FROM tab1
----
-121
-176
-57

query I rowsort
SELECT ALL col0 * 14 - col1 * col1 * + col2 FROM tab0
----
-243732
-677796
-8919

query I rowsort
SELECT - col1 - - ( - col2 ) FROM tab0
----
-119
-173
-98

onlyif mysql # use DIV operator for integer division
query I rowsort label-5671
SELECT ALL + col1 + tab0.col0 DIV 36 FROM tab0
----
86
93
97

skipif mysql # not compatible
query I rowsort label-5671
SELECT ALL + col1 + tab0.col0 / 36 FROM tab0
----
86
93
97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5672
SELECT + CAST( - 97 AS SIGNED ) + col1 * + col1 FROM tab1 AS cor0
----
3
579
72

skipif mysql # not compatible
query I rowsort label-5672
SELECT + CAST ( - 97 AS INTEGER ) + col1 * + col1 FROM tab1 AS cor0
----
3
579
72

query I rowsort
SELECT - 15 * tab1.col2 FROM tab1, tab0 AS cor0
----
9 values hashing to b70528ebff15fd010b47c337f13ef91b

query I rowsort
SELECT ALL tab2.col0 + - col1 AS col0 FROM tab2
----
-24
19
62

query I rowsort
SELECT ALL + - 95 * + col1 FROM tab1 AS cor0
----
-1235
-2470
-950

query I rowsort
SELECT + 0 + 26 FROM tab0 cor0
----
26
26
26

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5677
SELECT DISTINCT + + ( col2 ) + cor0.col2 * + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5677
SELECT DISTINCT + + ( col2 ) + cor0.col2 * + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + 6 FROM tab0 AS cor0
----
6

query I rowsort
SELECT 39 * 22 + - cor0.col2 * + col2 FROM tab1 AS cor0
----
-2058
-2391
-8358

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 10 + 67 col1 FROM tab2 AS cor0
----
77
77
77

query I rowsort
SELECT ALL - 92 * - col0 AS col1 FROM tab1 AS cor0
----
276
5888
7360

query I rowsort
SELECT ALL + ( + ( col1 ) ) * + col1 AS col2 FROM tab2 AS cor0
----
289
3481
961

query I rowsort
SELECT + col2 * col1 + + col2 * ( col0 ) AS col0 FROM tab1 AS cor0
----
1566
4218
8928

query I rowsort
SELECT DISTINCT 15 * + col0 AS col0 FROM tab0 AS cor0
----
1335
360
525

query I rowsort
SELECT + 40 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to b1e8ffeef334b4a2b01b2f91e649c2d3

query I rowsort
SELECT - col2 + tab1.col0 AS col0 FROM tab1
----
-16
-51
7

query I rowsort
SELECT - - 80 * cor0.col0 AS col0 FROM tab2 AS cor0
----
560
6240
6320

query I rowsort
SELECT + cor0.col0 + col2 * - 9 FROM tab0 AS cor0
----
-273
-649
26

query I rowsort
SELECT col1 * 52 FROM tab2 cor0
----
1612
3068
884

query I rowsort
SELECT ALL tab0.col0 * - col2 FROM tab0
----
-35
-7298
-792

query I rowsort
SELECT DISTINCT - 59 * col2 * col0 FROM tab1
----
-215232
-453120
-9558

query I rowsort
SELECT - col1 * + col0 - cor0.col0 AS col2 FROM tab2 AS cor0
----
-1422
-224
-4680

query I rowsort
SELECT DISTINCT + - 19 + - col2 FROM tab0 AS cor0
----
-101
-20
-52

onlyif mysql # use DIV operator for integer division
query I rowsort label-5694
SELECT DISTINCT - ( cor0.col0 ) DIV - 42 + - col0 FROM tab2 AS cor0
----
-7
-77
-78

skipif mysql # not compatible
query I rowsort label-5694
SELECT DISTINCT - ( cor0.col0 ) / - 42 + - col0 FROM tab2 AS cor0
----
-7
-77
-78

query I rowsort
SELECT col0 * col1 - col0 FROM tab0 AS cor0
----
2040
3360
8010

query I rowsort
SELECT DISTINCT + + col2 * + col1 + 39 AS col0 FROM tab2 AS cor0
----
1573
685
876

onlyif mysql # use DIV operator for integer division
query I rowsort label-5697
SELECT DISTINCT 77 + col2 DIV cor0.col0 AS col0 FROM tab0 AS cor0
----
77
78

skipif mysql # not compatible
query I rowsort label-5697
SELECT DISTINCT 77 + col2 / cor0.col0 AS col0 FROM tab0 AS cor0
----
77
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + - col0 col1 FROM tab2 AS cor0
----
-41
-52
20

query I rowsort
SELECT DISTINCT col1 + + col2 + col0 FROM tab0 AS cor0
----
133
143
262

query I rowsort
SELECT DISTINCT + col2 * col2 - col0 FROM tab1 AS cor0
----
2913
3185
9136

query I rowsort
SELECT + - 66 * + col2 + 46 * col2 FROM tab2 cor0
----
-520
-540
-760

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5702
SELECT - 57 * col2 * ( ( - cor0.col2 ) ) + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5702
SELECT - 57 * col2 * ( ( - cor0.col2 ) ) + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col2 * - col1 + - ( 95 ) + - col2 AS col0 FROM tab2 AS cor0
----
-1655
-779
-959

query I rowsort
SELECT ALL - + 48 * + col0 + col2 AS col1 FROM tab2 AS cor0
----
-309
-3718
-3754

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 - col1 col0 FROM tab1
----
-23
54
67

query I rowsort
SELECT ALL 85 + - col2 FROM tab2
----
47
58
59

query I rowsort
SELECT ALL - 19 + cor0.col0 AS col2 FROM tab0 AS cor0
----
16
5
70

query I rowsort
SELECT DISTINCT + + col1 - cor0.col0 FROM tab2 AS cor0
----
-19
-62
24

query I rowsort
SELECT 80 + cor0.col1 * + cor0.col1 AS col0 FROM tab0 AS cor0
----
7476
8361
9489

query I rowsort
SELECT - ( - col2 ) + col2 AS col2 FROM tab2 cor0
----
52
54
76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 58 * + col0 + 1 col1 FROM tab1
----
175
3713
4641

query I rowsort
SELECT - 6 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to e92b2679faac7be63701967e3f0c0934

query I rowsort
SELECT DISTINCT 14 FROM tab0, tab1 AS cor0
----
14

query I rowsort
SELECT ALL - 96 AS col1 FROM tab1 cor0
----
-96
-96
-96

query I rowsort
SELECT ALL + 15 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to d1d280d38bf9c2d5d5ec90dd43aeaffd

query I rowsort
SELECT col0 * + 86 AS col1 FROM tab1 AS cor0
----
258
5504
6880

onlyif mysql # use DIV operator for integer division
query I rowsort label-5717
SELECT cor0.col1 DIV 16 AS col0 FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-5717
SELECT cor0.col1 / 16 AS col0 FROM tab1 AS cor0
----
0
0
1

query I rowsort
SELECT DISTINCT - 45 AS col1 FROM tab0, tab1 cor0
----
-45

query I rowsort
SELECT - col1 * col0 * col1 + col0 AS col0 FROM tab0
----
-177480
-329280
-736920

query I rowsort
SELECT 27 - 30 FROM tab2 AS cor0
----
-3
-3
-3

query I rowsort
SELECT ALL - - ( col2 ) - + cor0.col1 FROM tab2 AS cor0
----
-33
-4
21

query I rowsort
SELECT - 20 * + col0 AS col2 FROM tab0
----
-1780
-480
-700

query I rowsort
SELECT DISTINCT + ( - ( col0 ) ) * - col1 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT DISTINCT 47 * - ( col1 ) FROM tab2 AS cor0
----
-1457
-2773
-799

query I rowsort
SELECT ( + 3 ) * col0 * - col2 AS col2 FROM tab1 AS cor0
----
-10944
-23040
-486

query I rowsort
SELECT 43 + + col2 * col0 FROM tab2 AS cor0
----
2071
232
3045

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5727
SELECT ALL + CAST( NULL AS SIGNED ) + - 6 / col2 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5727
SELECT ALL + CAST ( NULL AS INTEGER ) + - 6 / col2 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 36 AS col0 FROM tab1, tab2 AS cor0, tab0 cor1, tab0 AS cor2
----
36

query I rowsort
SELECT + col1 * 16 AS col1 FROM tab1 AS cor0
----
160
208
416

query I rowsort
SELECT col1 * 39 FROM tab2 AS cor0
----
1209
2301
663

query I rowsort
SELECT 12 * - col0 * col1 AS col2 FROM tab0 AS cor0
----
-24768
-40740
-97188

query I rowsort
SELECT DISTINCT + 11 * + col0 + - col0 FROM tab0 cor0
----
240
350
890

query I rowsort
SELECT ( col1 ) + + col2 FROM tab2 AS cor0
----
55
58
85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * cor0.col1 col0 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT ALL + + col1 * + col0 * + cor0.col1 AS col1 FROM tab2 cor0
----
22831
271518
6727

query I rowsort
SELECT col0 * col0 - - cor0.col1 AS col2 FROM tab0 AS cor0
----
1322
662
8012

query I rowsort
SELECT DISTINCT - - 27 AS col2 FROM tab1 AS cor0
----
27

onlyif mysql # use DIV operator for integer division
query I rowsort label-5738
SELECT - cor0.col2 + col0 + col0 DIV 13 AS col1 FROM tab1 AS cor0
----
-10
-51
11

skipif mysql # not compatible
query I rowsort label-5738
SELECT - cor0.col2 + col0 + col0 / 13 AS col1 FROM tab1 AS cor0
----
-10
-51
11

query I rowsort
SELECT - - col1 + col1 * - 41 FROM tab1 cor0
----
-1040
-400
-520

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5740
SELECT DISTINCT col2 * CAST( NULL AS SIGNED ) * col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5740
SELECT DISTINCT col2 * CAST ( NULL AS INTEGER ) * col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT col2 + - 20 AS col1 FROM tab2 AS cor0
----
18
6
7

query I rowsort
SELECT ALL - col1 + - 74 + cor0.col0 AS col0 FROM tab2 AS cor0
----
-12
-55
-98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 + + 13 * + cor0.col0 col1 FROM tab2 cor0
----
1092
1106
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + - ( + col0 ) * col1 + col1 * + col1 col0 FROM tab1 AS cor0
----
-597
-967
544

query I rowsort
SELECT ( + 90 ) AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 96f7a90428db93f472e0d219bab64853

query I rowsort
SELECT DISTINCT - - col1 + col0 * col1 + cor0.col1 AS col2 FROM tab2 AS cor0
----
1377
279
4720

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 78 col0 FROM tab0, tab0 AS cor0
----
-78

query I rowsort
SELECT ALL - col2 * 83 + col1 * + cor0.col2 FROM tab0 cor0
----
14
656
99

onlyif mysql # use DIV operator for integer division
query I rowsort label-5749
SELECT + col0 DIV 93 AS col1 FROM tab0 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5749
SELECT + col0 / 93 AS col1 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT ( col0 ) * - col2 AS col2 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT cor0.col0 + 10 FROM tab0 AS cor0
----
34
45
99

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5752
SELECT DISTINCT + 36 * col0 / + col1 + CAST( NULL AS SIGNED ) / - 82 + - col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5752
SELECT DISTINCT + 36 * col0 / + col1 + CAST ( NULL AS INTEGER ) / - 82 + - col0 FROM tab1 AS cor0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-5753
SELECT ALL - cor0.col1 DIV - 48 AS col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5753
SELECT ALL - cor0.col1 / - 48 AS col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT + + 99 AS col0 FROM tab2 AS cor0
----
99
99
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 66 col2 FROM tab0, tab2 cor0, tab0 AS cor1
----
27 values hashing to 897b6122ac98340b78905f39d81897fc

query I rowsort
SELECT + col2 * - ( col1 ) + col2 AS col2 FROM tab1
----
-1152
-1350
-513

query I rowsort
SELECT ALL + - col0 + - col0 * cor0.col2 FROM tab2 AS cor0
----
-196
-2106
-3081

onlyif mysql # use DIV operator for integer division
query I rowsort label-5758
SELECT - 54 DIV + cor0.col1 FROM tab2 AS cor0
----
-1
-3
0

skipif mysql # not compatible
query I rowsort label-5758
SELECT - 54 / + cor0.col1 FROM tab2 AS cor0
----
-1
-3
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-5759
SELECT + - 34 DIV + cor0.col1 + col1 AS col2 FROM tab0 cor0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-5759
SELECT + - 34 / + cor0.col1 + col1 AS col2 FROM tab0 cor0
----
86
91
97

query I rowsort
SELECT + col0 + col2 * col2 + col2 FROM tab2 AS cor0
----
1561
763
780

query I rowsort
SELECT - 72 AS col2 FROM tab0
----
-72
-72
-72

query I rowsort
SELECT 67 * + col1 AS col2 FROM tab1
----
1742
670
871

query I rowsort
SELECT ALL 90 * tab2.col0 FROM tab2
----
630
7020
7110

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5764
SELECT + - 48 + - col1 * col1 / CAST( NULL AS DECIMAL ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5764
SELECT + - 48 + - col1 * col1 / CAST ( NULL AS REAL ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col2 * + ( col2 ) FROM tab0 cor0
----
-1
-1089
-6724

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * cor0.col1 + col2 col0 FROM tab2 AS cor0
----
1560
684
864

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5767
SELECT ALL - CAST( NULL AS SIGNED ) * ( + col0 ) 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-5767
SELECT ALL - CAST ( NULL AS INTEGER ) * ( + col0 ) col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + - ( col0 ) AS col0 FROM tab1 AS cor0
----
-3
-64
-80

query I rowsort
SELECT + ( col2 ) + - col0 AS col1 FROM tab1 AS cor0
----
-7
16
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 - col0 col2 FROM tab1 AS cor0
----
-121
-176
-57

query I rowsort
SELECT - + col2 * col0 + + col1 AS col1 FROM tab0 cor0
----
-706
-7207
62

query I rowsort
SELECT 1 * col0 + + col1 AS col2 FROM tab1 AS cor0
----
29
74
93

query I rowsort
SELECT + 68 FROM tab2, tab2 AS cor0
----
9 values hashing to 599bee15ac4cc39b859854e07dfe7990

query I rowsort
SELECT DISTINCT - 7 * + 29 - cor0.col0 * - col0 AS col0 FROM tab0 AS cor0
----
1022
373
7718

query I rowsort
SELECT ALL col1 * ( + col1 ) FROM tab1 cor0
----
100
169
676

query I rowsort
SELECT DISTINCT - col1 + 46 AS col0 FROM tab1 AS cor0
----
20
33
36

query I rowsort
SELECT ALL + col0 * - col0 - col1 AS col0 FROM tab2 AS cor0
----
-6143
-6258
-80

query I rowsort
SELECT ALL + - 43 * + col1 AS col1 FROM tab1 cor0
----
-1118
-430
-559

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 - col2 col2 FROM tab0 cor0
----
-164
-2
-66

query I rowsort
SELECT DISTINCT + 81 FROM tab2
----
81

query I rowsort
SELECT col1 * cor0.col2 * + col0 - - col1 * col1 FROM tab2 AS cor0
----
123133
51323
6820

query I rowsort
SELECT - col0 * - col2 - col2 * 4 FROM tab1 cor0
----
-54
3420
7296

query I rowsort
SELECT + 14 * - 94 AS col2 FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to fa6859451a9f41024c0b862ca7b255b3

query I rowsort
SELECT + tab0.col1 AS col1 FROM tab0, tab0 cor0
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc

onlyif mysql # use DIV operator for integer division
query I rowsort label-5785
SELECT - col0 DIV - ( col2 ) AS col0 FROM tab0
----
0
1
35

skipif mysql # not compatible
query I rowsort label-5785
SELECT - col0 / - ( col2 ) AS col0 FROM tab0
----
0
1
35

query I rowsort
SELECT ALL col1 * col0 + 56 FROM tab2
----
1399
273
4658

query I rowsort
SELECT - col0 + + col2 * - col2 AS col1 FROM tab1 AS cor0
----
-2919
-3313
-9296

query I rowsort
SELECT + + 66 - col2 FROM tab2 AS cor0
----
28
39
40

query I rowsort
SELECT + 91 * + col1 AS col1 FROM tab1 AS cor0
----
1183
2366
910

query I rowsort
SELECT cor0.col0 + + ( col2 ) AS col1 FROM tab0 AS cor0
----
171
36
57

query I rowsort
SELECT + ( 17 ) FROM tab2, tab0 AS cor0
----
9 values hashing to 43298e43365fccb5146ea32003753c92

query I rowsort
SELECT + + col1 * + col2 AS col2 FROM tab0 cor0
----
2838
7462
97

query I rowsort
SELECT - 38 * cor0.col1 AS col0 FROM tab0 AS cor0
----
-3268
-3458
-3686

query I rowsort
SELECT + col2 * 82 AS col2 FROM tab0 cor0
----
2706
6724
82

query I rowsort
SELECT col1 + + col2 AS col0 FROM tab0 cor0
----
119
173
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col2 * ( col2 ) col1 FROM tab0 AS cor0
----
-1
-1089
-6724

query I rowsort
SELECT 20 * cor0.col1 FROM tab2, tab0 AS cor0
----
9 values hashing to b91683c1719ec2f1cb7f04c2bd7d9d5f

onlyif mysql # use DIV operator for integer division
query I rowsort label-5798
SELECT - + col2 DIV - col0 AS col2 FROM tab1 AS cor0
----
0
1
18

skipif mysql # not compatible
query I rowsort label-5798
SELECT - + col2 / - col0 AS col2 FROM tab1 AS cor0
----
0
1
18

onlyif mysql # use DIV operator for integer division
query I rowsort label-5799
SELECT ( col1 ) + col0 DIV + 82 AS col2 FROM tab1 AS cor0
----
10
13
26

skipif mysql # not compatible
query I rowsort label-5799
SELECT ( col1 ) + col0 / + 82 AS col2 FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT DISTINCT + col2 + - 12 AS col0 FROM tab2 AS cor0
----
14
15
26

query I rowsort
SELECT ALL col2 + cor0.col1 * - col1 FROM tab0 AS cor0
----
-7363
-8199
-9408

query I rowsort
SELECT ALL col0 * col1 + - col2 + col2 AS col0 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT ALL col2 * - 97 + col1 AS col0 FROM tab2 AS cor0
----
-2463
-2588
-3669

query I rowsort
SELECT ALL - col0 + + 87 AS col0 FROM tab2 AS cor0
----
8
80
9

query I rowsort
SELECT DISTINCT col2 * 14 + col1 AS col1 FROM tab2 AS cor0
----
409
423
549

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + - ( - col2 ) * + cor0.col2 col2 FROM tab0 cor0
----
1122
2
6806

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5807
SELECT ALL col2 * CAST( 37 AS SIGNED ) - + col1 * - col0 AS col0 FROM tab0 AS cor0
----
11133
3285
3432

skipif mysql # not compatible
query I rowsort label-5807
SELECT ALL col2 * CAST ( 37 AS INTEGER ) - + col1 * - col0 AS col0 FROM tab0 AS cor0
----
11133
3285
3432

query I rowsort
SELECT DISTINCT col2 + 81 * col1 * - col2 + col1 AS col0 FROM tab0 AS cor0
----
-229759
-604249
-7759

query I rowsort
SELECT + - cor0.col1 + col1 AS col1 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT + col1 + + 79 FROM tab0 AS cor0
----
165
170
176

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5811
SELECT ALL - CAST( - 84 AS SIGNED ) + col2 / CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5811
SELECT ALL - CAST ( - 84 AS INTEGER ) + col2 / CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + ( + col2 ) * + col2 FROM tab0 AS cor0
----
1
1089
6724

query I rowsort
SELECT - ( cor0.col2 ) + - col2 AS col0 FROM tab2 AS cor0
----
-52
-54
-76

query I rowsort
SELECT + - cor1.col0 + - cor1.col2 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 9b6b643191a390a3a60049db62acd1a4

query I rowsort
SELECT col1 * - ( col2 * col0 ) AS col0 FROM tab0
----
-3395
-664118
-68112

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + col1 - 4 col0 FROM tab2
----
51
54
81

query I rowsort
SELECT ALL + + col1 * - col0 + + col0 * - col2 * + col0 FROM tab1 cor0
----
-234112
-564
-615440

query I rowsort
SELECT ALL - cor0.col0 * + col2 AS col1 FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT + 86 AS col1 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to ed1a39c2752ca3723602e4a92c54bbc4

query I rowsort
SELECT ALL ( col2 ) - - ( + 5 ) FROM tab2 AS cor0
----
31
32
43

query I rowsort
SELECT DISTINCT - 52 * cor0.col1 - + col2 * + col2 FROM tab1 AS cor0
----
-3769
-4268
-9892

query I rowsort
SELECT DISTINCT col0 * col2 + + col1 * col0 AS col0 FROM tab2 AS cor0
----
406
4345
6630

query I rowsort
SELECT ALL - 93 AS col0 FROM tab1
----
-93
-93
-93

query I rowsort
SELECT ALL col2 - + col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT - + 61 + cor0.col0 AS col1 FROM tab2 AS cor0
----
-54
17
18

query I rowsort
SELECT ALL + 51 FROM tab2
----
51
51
51

query I rowsort
SELECT ALL - cor0.col0 AS col1 FROM tab1, tab0 AS cor0, tab0 cor1
----
27 values hashing to c3ebf1695ca74567bdc173dbe15186a8

query I rowsort
SELECT - + cor0.col2 * - col0 AS col1 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT col1 * - col0 * + col2 + tab1.col2 * col0 FROM tab1
----
-32832
-4050
-92160

query I rowsort
SELECT - 95 AS col2 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to cf302b83f15b730fe35c19bdd9363c13

query I rowsort
SELECT ALL - 18 FROM tab1, tab0 AS cor0
----
9 values hashing to 09afafec657a5e9f082beb6a16ec85de

query I rowsort
SELECT ALL - + col1 + 74 * col2 + - col1 AS col1 FROM tab1 AS cor0
----
3944
4198
7078

query I rowsort
SELECT DISTINCT - tab2.col0 * + col0 * col0 FROM tab2
----
-343
-474552
-493039

query I rowsort
SELECT DISTINCT - + col0 + - col2 AS col0 FROM tab1 AS cor0
----
-121
-176
-57

query I rowsort
SELECT + col1 * + ( + col1 ) * - cor0.col2 FROM tab2 cor0
----
-10982
-25947
-90506

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col1 - - col2 * 22 col0 FROM tab0 AS cor0
----
-75
1713
640

onlyif mysql # use DIV operator for integer division
query I rowsort label-5837
SELECT ALL - col0 DIV - 6 FROM tab0 AS cor0
----
14
4
5

skipif mysql # not compatible
query I rowsort label-5837
SELECT ALL - col0 / - 6 FROM tab0 AS cor0
----
14
4
5

query I rowsort
SELECT tab2.col1 * col1 AS col0 FROM tab2
----
289
3481
961

query I rowsort
SELECT tab0.col1 - - ( col2 ) * - col0 * col2 FROM tab0
----
-26050
-598345
62

query I rowsort
SELECT 70 + 60 + tab0.col2 FROM tab0
----
131
163
212

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5841
SELECT + CAST( NULL AS SIGNED ) * 99 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5841
SELECT + CAST ( NULL AS INTEGER ) * 99 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5842
SELECT 83 * + col2 + - col0 * CAST( NULL AS SIGNED ) / - col2 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5842
SELECT 83 * + col2 + - col0 * CAST ( NULL AS INTEGER ) / - col2 AS col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-5843
SELECT ALL + 59 DIV 52 col0 FROM tab0 cor0
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5843
SELECT ALL + 59 / 52 col0 FROM tab0 cor0
----
1
1
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-5844
SELECT DISTINCT col1 + col2 DIV + col0 AS col1 FROM tab2 cor0
----
17
34
59

skipif mysql # not compatible
query I rowsort label-5844
SELECT DISTINCT col1 + col2 / + col0 AS col1 FROM tab2 cor0
----
17
34
59

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5845
SELECT DISTINCT - + CAST( NULL AS SIGNED ) * col0 + - col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5845
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) * col0 + - col1 FROM tab0 AS cor0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-5846
SELECT + 21 + 26 * col0 DIV + ( 64 ) FROM tab0 cor0
----
30
35
57

skipif mysql # not compatible
query I rowsort label-5846
SELECT + 21 + 26 * col0 / + ( 64 ) FROM tab0 cor0
----
30
35
57

query I rowsort
SELECT - + 5 * - col2 AS col2 FROM tab1 AS cor0
----
270
285
480

query I rowsort
SELECT DISTINCT 62 * + cor0.col0 FROM tab2 AS cor0
----
434
4836
4898

query I rowsort
SELECT - col0 * + cor0.col2 * col1 FROM tab1 AS cor0
----
-36480
-4212
-99840

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 11 col0 FROM tab0 AS cor0
----
11
11
11

query I rowsort
SELECT 47 * col1 AS col2 FROM tab0 AS cor0
----
4042
4277
4559

query I rowsort
SELECT DISTINCT - ( cor0.col1 ) * 17 FROM tab1 AS cor0
----
-170
-221
-442

query I rowsort
SELECT ALL - + 0 * - col0 AS col1 FROM tab2 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + + col0 col0 FROM tab0
----
171
36
57

query I rowsort
SELECT DISTINCT - col1 + col0 * - col0 + - col1 AS col0 FROM tab1
----
-4116
-61
-6426

onlyif mysql # use DIV operator for integer division
query I rowsort label-5856
SELECT DISTINCT 20 + - col0 DIV col0 AS col1 FROM tab1 cor0
----
19

skipif mysql # not compatible
query I rowsort label-5856
SELECT DISTINCT 20 + - col0 / col0 AS col1 FROM tab1 cor0
----
19

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 + - col2 * - 47 col2 FROM tab1 AS cor0
----
2541
2743
4592

onlyif mysql # use DIV operator for integer division
query I rowsort label-5858
SELECT + 97 DIV 50 FROM tab0, tab0 AS cor0
----
9 values hashing to 001554c2952f1a80506b182ee04686f5

skipif mysql # not compatible
query I rowsort label-5858
SELECT + 97 / 50 FROM tab0, tab0 AS cor0
----
9 values hashing to 001554c2952f1a80506b182ee04686f5

query I rowsort
SELECT col1 * + 21 AS col1 FROM tab1
----
210
273
546

query I rowsort
SELECT ALL - + ( 23 ) AS col2 FROM tab1 AS cor0
----
-23
-23
-23

onlyif mysql # use DIV operator for integer division
query I rowsort label-5861
SELECT + col1 DIV + col0 AS col0 FROM tab1
----
0
0
8

skipif mysql # not compatible
query I rowsort label-5861
SELECT + col1 / + col0 AS col0 FROM tab1
----
0
0
8

query I rowsort
SELECT + col1 * + 33 AS col2 FROM tab1 cor0
----
330
429
858

query I rowsort
SELECT + 32 AS col1 FROM tab2 cor0
----
32
32
32

onlyif mysql # use DIV operator for integer division
query I rowsort label-5864
SELECT DISTINCT - col0 DIV - col0 - col0 * col0 FROM tab0
----
-1224
-575
-7920

skipif mysql # not compatible
query I rowsort label-5864
SELECT DISTINCT - col0 / - col0 - col0 * col0 FROM tab0
----
-1224
-575
-7920

query I rowsort
SELECT + 94 AS col0 FROM tab0
----
94
94
94

onlyif mysql # use DIV operator for integer division
query I rowsort label-5866
SELECT - 38 DIV + col2 AS col2 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5866
SELECT - 38 / + col2 AS col2 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT - cor0.col2 * - col1 AS col2 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT 41 FROM tab1, tab2 cor0, tab0 cor1
----
27 values hashing to f6a440b478f0d00f8326a8c51fe094b8

skipif mysql # not compatible
query I rowsort
SELECT + cor0.col0 + CAST ( + 86 AS REAL ) FROM tab2 cor0
----
164
165
93

query I rowsort
SELECT col0 * - ( + col1 ) AS col2 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT tab0.col0 + col1 * - ( 74 ) AS col2 FROM tab0
----
-6340
-6645
-7143

query I rowsort
SELECT col2 + ( col0 ) * col1 AS col2 FROM tab0 AS cor0
----
2097
3396
8181

query I rowsort
SELECT - col1 * - 10 * + col0 FROM tab2 AS cor0
----
13430
2170
46020

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5874
SELECT col2 + CAST( col0 AS SIGNED ) AS col0 FROM tab0
----
171
36
57

skipif mysql # not compatible
query I rowsort label-5874
SELECT col2 + CAST ( col0 AS INTEGER ) AS col0 FROM tab0
----
171
36
57

query I rowsort
SELECT DISTINCT 33 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
33

query I rowsort
SELECT ALL + col2 + - 48 AS col2 FROM tab0 AS cor0
----
-15
-47
34

query I rowsort
SELECT DISTINCT + col0 * 69 AS col2 FROM tab0 cor0
----
1656
2415
6141

query I rowsort
SELECT ALL + col0 + 70 * col1 + col1 AS col0 FROM tab1 AS cor0
----
1003
1849
774

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col1 * col2 + - 98 col0 FROM tab1 AS cor0
----
1150
1306
472

onlyif mysql # use DIV operator for integer division
query I rowsort label-5880
SELECT ALL col0 DIV + col1 + - col2 + + col1 FROM tab0 AS cor0
----
53
9
96

skipif mysql # not compatible
query I rowsort label-5880
SELECT ALL col0 / + col1 + - col2 + + col1 FROM tab0 AS cor0
----
53
9
96

query I rowsort
SELECT ALL col0 + - cor0.col0 AS col2 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5882
SELECT DISTINCT + - CAST( col2 AS SIGNED ) + + col0 FROM tab0 AS cor0
----
-9
34
7

skipif mysql # not compatible
query I rowsort label-5882
SELECT DISTINCT + - CAST ( col2 AS INTEGER ) + + col0 FROM tab0 AS cor0
----
-9
34
7

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5883
SELECT ALL + CAST( NULL AS SIGNED ) col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5883
SELECT ALL + CAST ( NULL AS INTEGER ) col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + - ( - col1 ) AS col1 FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT ALL - col2 + 42 AS col0 FROM tab0 AS cor0
----
-40
41
9

query I rowsort
SELECT DISTINCT + col2 * col0 + cor0.col0 AS col1 FROM tab1 AS cor0
----
165
3712
7760

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + col2 ) * col1 * col0 col0 FROM tab1 AS cor0
----
36480
4212
99840

query I rowsort
SELECT ALL + 63 * - col0 AS col0 FROM tab2 cor0
----
-441
-4914
-4977

query I rowsort
SELECT DISTINCT ( col1 ) * col1 + ( - col1 ) FROM tab0 AS cor0
----
7310
8190
9312

query I rowsort
SELECT col2 + + 32 FROM tab1
----
128
86
89

query I rowsort
SELECT ALL - tab1.col2 * - col0 FROM tab1
----
162
3648
7680

query I rowsort
SELECT DISTINCT + 23 * col0 AS col2 FROM tab0 AS cor0
----
2047
552
805

query I rowsort
SELECT 72 + - col1 AS col1 FROM tab2 AS cor0
----
13
41
55

query I rowsort
SELECT DISTINCT - - 40 + cor0.col2 * + col0 FROM tab2 AS cor0
----
2068
229
3042

query I rowsort
SELECT - col2 * col0 + - 85 * 44 FROM tab2 AS cor0
----
-3929
-5768
-6742

query I rowsort
SELECT + ( - cor0.col0 ) + - col1 FROM tab0 AS cor0
----
-110
-132
-180

query I rowsort
SELECT DISTINCT + + 64 * col2 + - col1 AS col1 FROM tab2 AS cor0
----
1605
1697
2415

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - ( + col2 ) + ( col2 ) * - col1 col1 FROM tab1 AS cor0
----
-1344
-1458
-627

query I rowsort
SELECT cor0.col2 * + col2 + col2 * ( col0 ) FROM tab0 cor0
----
14022
1881
36

query I rowsort
SELECT + col0 + col2 * 98 FROM tab1 AS cor0
----
5295
5650
9488

query I rowsort
SELECT ALL 37 + + col2 AS col2 FROM tab0
----
119
38
70

query I rowsort
SELECT 34 + col1 FROM tab2
----
51
65
93

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5903
SELECT - CAST( col1 AS SIGNED ) + col2 AS col0 FROM tab2
----
-33
-4
21

skipif mysql # not compatible
query I rowsort label-5903
SELECT - CAST ( col1 AS INTEGER ) + col2 AS col0 FROM tab2
----
-33
-4
21

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5904
SELECT ALL - CAST( NULL AS SIGNED ) * - col0 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5904
SELECT ALL - CAST ( NULL AS INTEGER ) * - col0 AS col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT 83 FROM tab2, tab0 AS cor0
----
9 values hashing to 18f405c31a0fb47ce3cc9f7effa8855c

query I rowsort
SELECT DISTINCT + 59 * tab0.col0 FROM tab0
----
1416
2065
5251

skipif mysql # not compatible
query I rowsort
SELECT - CAST ( + col1 AS REAL ) + - col1 * tab1.col2 AS col2 FROM tab1
----
-1261
-1430
-580

query I rowsort
SELECT ALL + 30 AS col0 FROM tab1 AS cor0
----
30
30
30

query I rowsort
SELECT DISTINCT - 95 AS col2 FROM tab0 AS cor0
----
-95

onlyif mysql # use DIV operator for integer division
query I rowsort label-5910
SELECT + + col1 DIV + col0 FROM tab2 AS cor0
----
0
0
4

skipif mysql # not compatible
query I rowsort label-5910
SELECT + + col1 / + col0 FROM tab2 AS cor0
----
0
0
4

query I rowsort
SELECT ALL + 66 AS col0 FROM tab0
----
66
66
66

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5912
SELECT ALL + CAST( NULL AS SIGNED ) + col0 * col0 * 85 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5912
SELECT ALL + CAST ( NULL AS INTEGER ) + col0 * col0 * 85 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 69 * - col0 AS col0 FROM tab2 AS cor0
----
-483
-5382
-5451

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 18 col0 FROM tab2 AS cor0
----
-18

query I rowsort
SELECT ALL + 47 * col2 - - ( col0 ) FROM tab2 AS cor0
----
1276
1300
1865

onlyif mysql # use DIV operator for integer division
query I rowsort label-5916
SELECT ALL - col2 + col2 * col2 - - col0 DIV col2 AS col2 FROM tab0 AS cor0
----
1056
35
6643

skipif mysql # not compatible
query I rowsort label-5916
SELECT ALL - col2 + col2 * col2 - - col0 / col2 AS col2 FROM tab0 AS cor0
----
1056
35
6643

query I rowsort
SELECT - 80 AS col2 FROM tab2 AS cor0
----
-80
-80
-80

query I rowsort
SELECT - cor0.col2 * col0 + col2 FROM tab1 cor0
----
-108
-3591
-7584

query I rowsort
SELECT + - 15 * - col1 FROM tab2 AS cor0
----
255
465
885

query I rowsort
SELECT + cor0.col2 * - col2 + - 95 AS col1 FROM tab0 AS cor0
----
-1184
-6819
-96

query I rowsort
SELECT ALL + + col1 + col0 + + col1 AS col1 FROM tab1 AS cor0
----
106
55
84

query I rowsort
SELECT DISTINCT + - cor0.col2 + col1 * + 72 * col1 AS col2 FROM tab2 AS cor0
----
20770
250606
69165

query I rowsort
SELECT DISTINCT - 59 * + col0 FROM tab1 AS cor0
----
-177
-3776
-4720

query I rowsort
SELECT ALL - - 26 AS col1 FROM tab1 AS cor0
----
26
26
26

query I rowsort
SELECT cor0.col2 + + col2 * + 5 FROM tab2 AS cor0
----
156
162
228

query I rowsort
SELECT ALL - - col0 + 84 * 96 FROM tab1 AS cor0
----
8067
8128
8144

query I rowsort
SELECT + col2 * 8 FROM tab0 AS cor0
----
264
656
8

query I rowsort
SELECT col1 * col0 + - col1 AS col2 FROM tab0 AS cor0
----
1978
3298
8008

onlyif mysql # use DIV operator for integer division
query I rowsort label-5929
SELECT + col1 DIV - cor0.col0 FROM tab1 cor0
----
-8
0
0

skipif mysql # not compatible
query I rowsort label-5929
SELECT + col1 / - cor0.col0 FROM tab1 cor0
----
-8
0
0

query I rowsort
SELECT ALL - + col1 * ( 47 ) FROM tab0 AS cor0
----
-4042
-4277
-4559

query I rowsort
SELECT DISTINCT col2 * - ( - 9 ) AS col0 FROM tab2 AS cor0
----
234
243
342

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + - 14 col1 FROM tab0 AS cor0
----
-103
-38
-49

query I rowsort
SELECT + col0 + + 84 AS col2 FROM tab1
----
148
164
87

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5934
SELECT ALL + col1 + - CAST( NULL AS DECIMAL ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5934
SELECT ALL + col1 + - CAST ( NULL AS REAL ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + - col0 * + col0 AS col1 FROM tab2 cor0
----
-49
-6084
-6241

query I rowsort
SELECT col2 + ( 33 + - col2 ) * cor0.col0 FROM tab1 AS cor0
----
-1479
-4944
-9

query I rowsort
SELECT DISTINCT - col1 * col2 + 13 FROM tab0 AS cor0
----
-2825
-7449
-84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 * col2 + col1 col0 FROM tab2 AS cor0
----
2087
220
3019

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 cor0.col0 + - col2 col1 FROM tab1 AS cor0
----
-16
-51
7

query I rowsort
SELECT DISTINCT col0 + + col0 FROM tab0 cor0
----
178
48
70

query I rowsort
SELECT ALL col0 * 3 + 92 AS col1 FROM tab2 cor0
----
113
326
329

query I rowsort
SELECT col1 * - 43 AS col2 FROM tab0 AS cor0
----
-3698
-3913
-4171

query I rowsort
SELECT ALL - col1 * + 90 * - col0 AS col2 FROM tab1 AS cor0
----
57600
7020
93600

query I rowsort
SELECT + col2 + ( - cor0.col0 ) FROM tab1 AS cor0
----
-7
16
51

onlyif mysql # use DIV operator for integer division
query I rowsort label-5946
SELECT col2 + + 1 * ( - col2 ) DIV col0 FROM tab1 cor0
----
36
57
95

skipif mysql # not compatible
query I rowsort label-5946
SELECT col2 + + 1 * ( - col2 ) / col0 FROM tab1 cor0
----
36
57
95

query I rowsort
SELECT DISTINCT + + col1 + - ( + col2 ) FROM tab0 AS cor0
----
53
9
96

query I rowsort
SELECT ALL - col1 * + cor0.col0 + col0 FROM tab1 AS cor0
----
-576
-75
-960

query I rowsort
SELECT - 96 AS col0 FROM tab1 AS cor0
----
-96
-96
-96

query I rowsort
SELECT + + col0 * - col1 * col2 FROM tab1 cor0
----
-36480
-4212
-99840

query I rowsort
SELECT DISTINCT + col0 * cor0.col2 + - col1 FROM tab0 AS cor0
----
-62
706
7207

query I rowsort
SELECT ALL cor0.col1 + col2 FROM tab1 AS cor0
----
109
67
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-5953
SELECT - + ( - 54 ) DIV col0 FROM tab2 AS cor0
----
0
0
7

skipif mysql # not compatible
query I rowsort label-5953
SELECT - + ( - 54 ) / col0 FROM tab2 AS cor0
----
0
0
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + ( col2 ) + cor0.col0 col0 FROM tab2 cor0
----
-20
41
52

onlyif mysql # use DIV operator for integer division
query I rowsort label-5955
SELECT ALL + + 52 DIV + 52 AS col2 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5955
SELECT ALL + + 52 / + 52 AS col2 FROM tab2 AS cor0
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 7 col0 FROM tab1, tab2 AS cor0, tab1 cor1
----
-7

query I rowsort
SELECT ALL - col1 * - col0 + - col0 AS col2 FROM tab0
----
2040
3360
8010

query I rowsort
SELECT - 74 * - 76 AS col2 FROM tab1, tab2 AS cor0, tab2, tab1 AS cor1
----
81 values hashing to d6752a362b396fd9722b238413efe42b

query I rowsort
SELECT DISTINCT - 63 + - col2 + + col0 * col0 FROM tab1 AS cor0
----
-108
3976
6241

query I rowsort
SELECT + - 10 * + 74 + - col0 FROM tab0 AS cor0
----
-764
-775
-829

onlyif mysql # use DIV operator for integer division
query I rowsort label-5961
SELECT cor0.col1 DIV col0 FROM tab1 AS cor0
----
0
0
8

skipif mysql # not compatible
query I rowsort label-5961
SELECT cor0.col1 / col0 FROM tab1 AS cor0
----
0
0
8

query I rowsort
SELECT col2 * 94 * - col2 + + cor0.col2 AS col0 FROM tab0 AS cor0
----
-102333
-631974
-93

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5963
SELECT ALL CAST( NULL AS SIGNED ) * col1 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5963
SELECT ALL CAST ( NULL AS INTEGER ) * col1 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 30 + col2 AS col0 FROM tab1 AS cor0
----
24
27
66

query I rowsort
SELECT DISTINCT - - col1 + + 86 * col0 FROM tab1 AS cor0
----
284
5514
6893

query I rowsort
SELECT - cor0.col1 * - 88 AS col2 FROM tab0 AS cor0
----
7568
8008
8536

query I rowsort
SELECT DISTINCT - 33 + cor0.col1 AS col2 FROM tab0 AS cor0
----
53
58
64

query I rowsort
SELECT ALL + col1 - - 31 * col2 FROM tab0 AS cor0
----
1109
128
2633

query I rowsort
SELECT ALL - + ( + col2 ) AS col2 FROM tab0 cor0
----
-1
-33
-82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 86 * + col1 + - col1 col0 FROM tab0 AS cor0
----
7310
7735
8245

query I rowsort
SELECT DISTINCT - col2 * + col1 * cor0.col1 AS col1 FROM tab1 AS cor0
----
-16224
-36504
-5700

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT col1 + CAST ( 69 AS REAL ) * + col2 + 55 col0 FROM tab2
----
1908
1949
2694

query I rowsort
SELECT DISTINCT col2 * + col0 + - tab2.col2 FROM tab2
----
162
2002
2964

query I rowsort
SELECT - col1 + col1 + + col1 * col0 FROM tab0
----
2064
3395
8099

onlyif mysql # use DIV operator for integer division
query I rowsort label-5975
SELECT DISTINCT - 92 DIV cor0.col2 FROM tab2, tab0 AS cor0
----
-1
-2
-92

skipif mysql # not compatible
query I rowsort label-5975
SELECT DISTINCT - 92 / cor0.col2 FROM tab2, tab0 AS cor0
----
-1
-2
-92

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5976
SELECT + CAST( + col0 AS SIGNED ) FROM tab0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-5976
SELECT + CAST ( + col0 AS INTEGER ) FROM tab0
----
24
35
89

query I rowsort
SELECT col1 * col1 * col2 FROM tab2 AS cor0
----
10982
25947
90506

query I rowsort
SELECT DISTINCT col1 - col1 * 93 FROM tab2
----
-1564
-2852
-5428

query I rowsort
SELECT + col1 + + 43 FROM tab2 AS cor0
----
102
60
74

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5980
SELECT + col0 + CAST( col2 + - col0 AS SIGNED ) FROM tab0 AS cor0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-5980
SELECT + col0 + CAST ( col2 + - col0 AS INTEGER ) FROM tab0 AS cor0
----
1
33
82

onlyif mysql # use DIV operator for integer division
query I rowsort label-5981
SELECT - col1 * col1 * col2 + - col2 DIV - col0 AS col1 FROM tab2
----
-10982
-25944
-90506

skipif mysql # not compatible
query I rowsort label-5981
SELECT - col1 * col1 * col2 + - col2 / - col0 AS col1 FROM tab2
----
-10982
-25944
-90506

query I rowsort
SELECT - 30 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 56fa25f9fb8040460fe3c894000ea8fb

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT CAST ( 11 AS REAL ) AS col2 FROM tab0, tab1 AS cor0
----
11

query I rowsort
SELECT DISTINCT - col2 + - 33 FROM tab1
----
-129
-87
-90

query I rowsort
SELECT DISTINCT - 36 AS col0 FROM tab1, tab2 AS cor0
----
-36

onlyif mysql # use DIV operator for integer division
query I rowsort label-5986
SELECT + col1 DIV + col0 col2 FROM tab0
----
1
2
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5986
SELECT + col1 / + col0 col2 FROM tab0
----
1
2
3

onlyif mysql # use DIV operator for integer division
query I rowsort label-5987
SELECT ALL - col1 + + cor0.col0 DIV - ( - col0 * CAST( 12 AS SIGNED ) ) AS col1 FROM tab2 AS cor0
----
-17
-31
-59

skipif mysql # not compatible
query I rowsort label-5987
SELECT ALL - col1 + + cor0.col0 / - ( - col0 * CAST ( 12 AS INTEGER ) ) AS col1 FROM tab2 AS cor0
----
-17
-31
-59

query I rowsort
SELECT DISTINCT + cor0.col1 * col0 - col0 FROM tab0 AS cor0
----
2040
3360
8010

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col0 * col1 IN ( col1 )
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d

query I rowsort
SELECT DISTINCT col2 AS col0 FROM tab2 WHERE NOT col0 * col1 NOT IN ( tab2.col2 )
----

query I rowsort
SELECT DISTINCT tab0.col0 FROM tab2 AS cor0 CROSS JOIN tab0
----
24
35
89

query I rowsort
SELECT - col0 * col2 + - col0 FROM tab1
----
-165
-3712
-7760

query I rowsort
SELECT ALL + col2 - + col1 FROM tab0
----
-53
-9
-96

query I rowsort
SELECT ALL - col1 + col0 FROM tab1 AS cor0 WHERE col0 NOT BETWEEN col2 * - col2 + col0 - - col0 * - col2 * + col2 AND ( NULL )
----

query I rowsort
SELECT + col2 * col0 + + tab2.col2 * + col1 + col1 FROM tab2 WHERE NOT NULL <= - col0 * + col0
----

query I rowsort
SELECT DISTINCT - col0 * + col1 FROM tab2 WHERE NOT NULL BETWEEN NULL AND - col0 * col1 + col2 + - col1 * + col2 * - col0 AND NOT NULL < NULL
----

query I rowsort
SELECT tab2.col2 AS col0 FROM tab2, tab0 cor0
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3

query I rowsort
SELECT DISTINCT + tab0.col2 * + col1 FROM tab0
----
2838
7462
97

query I rowsort
SELECT - col0 + + col1 FROM tab1 cor0
----
-54
-67
23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab2.col2 col2 FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5

query I rowsort
SELECT - + col2 + cor0.col2 * col0 FROM tab2 AS cor0
----
162
2002
2964

query III rowsort
SELECT * FROM tab2 WHERE ( - col2 * + col2 * - col0 ) BETWEEN col0 + + col2 - + col0 AND NULL
----

query I rowsort
SELECT col0 * col1 * + col1 + cor0.col0 * col0 AS col1 FROM tab2 AS cor0
----
277602
29072
6776

query IIIIII rowsort
SELECT * FROM tab1, tab1 AS cor0 WHERE NOT NULL BETWEEN NULL AND NULL
----

query I rowsort
SELECT col1 * col2 + cor0.col0 FROM tab0 cor0
----
132
2862
7551

query I rowsort
SELECT DISTINCT cor0.col1 AS col1 FROM tab2, tab1, tab1 AS cor0
----
10
13
26

query I rowsort
SELECT 93 AS col0 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 85ef191bf1b307f300b3fd49992fcae7

query I rowsort
SELECT - - tab2.col1 FROM tab2, tab0, tab1 AS cor0
----
27 values hashing to 7599b480125de521efed71b5b2413c7d

query I rowsort
SELECT DISTINCT + col0 + + tab0.col1 AS col1 FROM tab0
----
110
132
180

query I rowsort
SELECT DISTINCT col2 * col2 + col2 FROM tab1
----
2970
3306
9312

query I rowsort
SELECT - 98 * col0 + 59 AS col1 FROM tab0 AS cor0
----
-2293
-3371
-8663

query I rowsort
SELECT DISTINCT + col2 + - ( col2 ) * + col2 AS col0 FROM tab0 AS cor0
----
-1056
-6642
0

query I rowsort
SELECT - col0 + col0 * col2 * col2 FROM tab0 AS cor0
----
0
26112
598347

onlyif mysql # use DIV operator for integer division
query I rowsort label-6014
SELECT + col0 DIV 96 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6014
SELECT + col0 / 96 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT + + col0 + ( col2 ) * col0 AS col0 FROM tab1 AS cor0
----
165
3712
7760

query I rowsort
SELECT ALL + + col2 * - col0 + + ( - col1 ) * - col0 AS col1 FROM tab1 AS cor0
----
-3008
-6640
-84

query I rowsort
SELECT DISTINCT col0 * + col0 * 70 AS col0 FROM tab1
----
286720
448000
630

query I rowsort
SELECT DISTINCT - col0 * - tab2.col2 * col1 FROM tab2
----
119652
51034
5859

query I rowsort
SELECT cor0.col2 * + ( + 61 ) FROM tab1 AS cor0
----
3294
3477
5856

query I rowsort
SELECT ALL - col0 + 57 FROM tab0 AS cor0
----
-32
22
33

query I rowsort
SELECT - col0 * col0 * col1 FROM tab0
----
-118825
-49536
-720811

query I rowsort
SELECT ALL - tab1.col0 * col1 + - tab1.col0 * col1 - col0 * + col2 * col1 AS col2 FROM tab1
----
-101920
-37760
-4368

query I rowsort
SELECT DISTINCT + tab2.col2 * + col2 AS col1 FROM tab2
----
1444
676
729

query I rowsort
SELECT DISTINCT tab1.col1 + tab1.col0 * + col1 + col2 * - col2 FROM tab1
----
-2599
-2812
-8163

query I rowsort
SELECT DISTINCT + tab0.col2 * tab0.col0 AS col1 FROM tab0
----
35
7298
792

query I rowsort
SELECT col1 * col1 - - col2 FROM tab1
----
157
265
730

query I rowsort
SELECT col2 * col1 * - tab1.col2 FROM tab1
----
-119808
-32490
-75816

query I rowsort
SELECT - col2 * col1 + col2 * tab0.col1 FROM tab0
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( + col0 * col1 + - col1 ) <> - col0 * col1 / - col2
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d

query I rowsort
SELECT ALL col0 * col0 + col1 * + col0 FROM tab1
----
4736
7440
87

onlyif mysql # use DIV operator for integer division
query I rowsort label-6031
SELECT - col1 * col1 DIV tab0.col1 + + col1 col1 FROM tab0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6031
SELECT - col1 * col1 / tab0.col1 + + col1 col1 FROM tab0
----
0
0
0

query III rowsort
SELECT * FROM tab1 WHERE ( NULL ) IN ( - col1 + + col1 / + col2 )
----

query I rowsort
SELECT DISTINCT - col0 * + col1 AS col2 FROM tab1
----
-1040
-640
-78

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL NOT IN ( - tab2.col0 * col1 * - col2 )
----

query I rowsort
SELECT DISTINCT - col1 * col1 * - tab1.col1 - col2 * + tab1.col1 FROM tab1
----
16172
430
949

onlyif mysql # use DIV operator for integer division
query I rowsort label-6036
SELECT col1 DIV + col0 + col1 FROM tab1
----
10
13
34

skipif mysql # not compatible
query I rowsort label-6036
SELECT col1 / + col0 + col1 FROM tab1
----
10
13
34

query I rowsort
SELECT col1 FROM tab0 WHERE + col2 <= ( + col0 * col0 + - col1 )
----
86
91
97

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col0 * + col1 IN ( - col1 )
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7

query I rowsort
SELECT + col2 * col0 + + col2 FROM tab1
----
216
3705
7776

query I rowsort
SELECT + + col2 * - col0 + ( - 55 ) * + cor0.col1 FROM tab2 cor0
----
-1894
-3937
-5273

query I rowsort
SELECT DISTINCT ( col0 ) + cor0.col0 FROM tab2 AS cor0
----
14
156
158

query I rowsort
SELECT ALL - + col2 + col1 * col2 AS col1 FROM tab1 AS cor0
----
1152
1350
513

query I rowsort
SELECT ALL - col0 * - col2 + col2 AS col2 FROM tab0 cor0
----
36
7380
825

query I rowsort
SELECT DISTINCT col1 * col0 - col1 * tab1.col1 AS col2 FROM tab1
----
-598
540
871

onlyif mysql # use DIV operator for integer division
query I rowsort label-6045
SELECT DISTINCT col1 DIV + col1 AS col0 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-6045
SELECT DISTINCT col1 / + col1 AS col0 FROM tab0
----
1

query I rowsort
SELECT ALL col2 + - col2 * + col1 + - col2 FROM tab1
----
-1248
-1404
-570

query I rowsort
SELECT + col2 * - col2 + col1 * col1 AS col0 FROM tab0
----
1557
6307
9408

query III rowsort
SELECT * FROM tab1 WHERE ( - col0 ) < NULL
----

query I rowsort
SELECT col0 - - col1 FROM tab1
----
29
74
93

query I rowsort
SELECT - col2 + col2 - 79 FROM tab1
----
-79
-79
-79

onlyif mysql # use DIV operator for integer division
query I rowsort label-6051
SELECT DISTINCT col0 DIV - col1 + 79 FROM tab1
----
73
79

skipif mysql # not compatible
query I rowsort label-6051
SELECT DISTINCT col0 / - col1 + 79 FROM tab1
----
73
79

query I rowsort
SELECT + - col0 * 77 FROM tab1 cor0
----
-231
-4928
-6160

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6053
SELECT - + col0 * CAST( + col1 + col0 * col1 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-107440
-1736
-363558

skipif mysql # not compatible
query I rowsort label-6053
SELECT - + col0 * CAST ( + col1 + col0 * col1 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-107440
-1736
-363558

onlyif mysql # use DIV operator for integer division
query I rowsort label-6054
SELECT DISTINCT - col2 DIV - tab0.col2 + col2 * - 26 FROM tab0
----
-2131
-25
-857

skipif mysql # not compatible
query I rowsort label-6054
SELECT DISTINCT - col2 / - tab0.col2 + col2 * - 26 FROM tab0
----
-2131
-25
-857

query I rowsort
SELECT - - 61 AS col2 FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to 8d4dfe649433a599fc4b10830cc7ce55

query I rowsort
SELECT + 93 + + tab1.col0 FROM tab1
----
157
173
96

query I rowsort
SELECT - 5 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 4f346dd2f65047c836c6957f80f0ef9e

onlyif mysql # use DIV operator for integer division
query I rowsort label-6058
SELECT DISTINCT - col2 DIV tab1.col1 + - col2 + - col0 AS col0 FROM tab1
----
-126
-183
-59

skipif mysql # not compatible
query I rowsort label-6058
SELECT DISTINCT - col2 / tab1.col1 + - col2 + - col0 AS col0 FROM tab1
----
-126
-183
-59

query I rowsort
SELECT + tab2.col1 * col2 + + 82 + ( + tab2.col0 ) * tab2.col1 FROM tab2
----
1136
2071
6218

query I rowsort
SELECT - 2 * col0 * col1 + + col0 FROM tab1
----
-1216
-153
-2000

onlyif mysql # use DIV operator for integer division
query I rowsort label-6061
SELECT DISTINCT - tab2.col1 DIV cor0.col0 AS col1 FROM tab2, tab1, tab1 AS cor0
----
-10
-19
-5
0

skipif mysql # not compatible
query I rowsort label-6061
SELECT DISTINCT - tab2.col1 / cor0.col0 AS col1 FROM tab2, tab1, tab1 AS cor0
----
-10
-19
-5
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6062
SELECT DISTINCT CAST( NULL AS SIGNED ) FROM tab2, tab1 AS cor0, tab1 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-6062
SELECT DISTINCT CAST ( NULL AS INTEGER ) FROM tab2, tab1 AS cor0, tab1 AS cor1
----
NULL

query I rowsort
SELECT DISTINCT + 64 + col2 AS col2 FROM tab2
----
102
90
91

query I rowsort
SELECT - 59 + col1 + + tab2.col0 FROM tab2
----
-21
37
78

query I rowsort
SELECT DISTINCT ( 42 ) AS col1 FROM tab0, tab2 cor0
----
42

query I rowsort
SELECT 20 FROM tab1, tab1 AS cor0
----
9 values hashing to 2fdd942fe0307a6ff66b63004ef102c4

query I rowsort
SELECT ALL col2 + col0 * col2 FROM tab2 AS cor0
----
2054
216
3040

query I rowsort
SELECT + - col1 * + col0 + col2 AS col1 FROM tab0 AS cor0
----
-2031
-3394
-8017

skipif mysql # not compatible
query I rowsort
SELECT ALL + - col2 + - CAST ( col0 AS REAL ) FROM tab2 AS cor0
----
-104
-117
-34

query I rowsort
SELECT ALL - col0 * - ( 47 ) AS col2 FROM tab2 AS cor0
----
329
3666
3713

query I rowsort
SELECT DISTINCT - col1 * - cor0.col2 + col2 * col1 FROM tab2 AS cor0
----
1292
1674
3068

onlyif mysql # use DIV operator for integer division
query I rowsort label-6072
SELECT DISTINCT + - col2 DIV - col0 AS col1 FROM tab0 cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-6072
SELECT DISTINCT + - col2 / - col0 AS col1 FROM tab0 cor0
----
0
1

query I rowsort
SELECT ALL col0 * + cor0.col2 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT ALL cor0.col0 * 14 AS col2 FROM tab1 AS cor0
----
1120
42
896

onlyif mysql # use DIV operator for integer division
query I rowsort label-6075
SELECT DISTINCT + + cor0.col0 DIV - 4 + + 51 FROM tab1 cor0
----
31
35
51

skipif mysql # not compatible
query I rowsort label-6075
SELECT DISTINCT + + cor0.col0 / - 4 + + 51 FROM tab1 cor0
----
31
35
51

onlyif mysql # use DIV operator for integer division
query I rowsort label-6076
SELECT DISTINCT col0 + - col2 DIV col1 FROM tab2 AS cor0
----
7
77
78

skipif mysql # not compatible
query I rowsort label-6076
SELECT DISTINCT col0 + - col2 / col1 FROM tab2 AS cor0
----
7
77
78

onlyif mysql # use DIV operator for integer division
query I rowsort label-6077
SELECT ALL - cor0.col2 DIV + 16 FROM tab2 AS cor0
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-6077
SELECT ALL - cor0.col2 / + 16 FROM tab2 AS cor0
----
-1
-1
-2

query I rowsort
SELECT ALL + col0 * + ( - col2 ) AS col1 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT DISTINCT + 87 + + tab1.col0 + - col2 AS col1 FROM tab1
----
36
71
94

query I rowsort
SELECT col1 * - col2 * col0 FROM tab2
----
-119652
-51034
-5859

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6081
SELECT DISTINCT - CAST( col0 AS SIGNED ) * col2 FROM tab2 AS cor0
----
-189
-2028
-3002

skipif mysql # not compatible
query I rowsort label-6081
SELECT DISTINCT - CAST ( col0 AS INTEGER ) * col2 FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT + col2 * 3 * col2 FROM tab1 AS cor0
----
27648
8748
9747

query I rowsort
SELECT ALL + ( - col2 ) * + col2 + + col1 * + 96 * + col2 AS col1 FROM tab0 AS cor0
----
271359
709628
9311

query I rowsort
SELECT + + col2 * + 74 - col2 * 84 FROM tab2 AS cor0
----
-260
-270
-380

onlyif mysql # use DIV operator for integer division
query I rowsort label-6085
SELECT ALL + + 88 DIV col2 AS col2 FROM tab1 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-6085
SELECT ALL + + 88 / col2 AS col2 FROM tab1 AS cor0
----
0
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + col2 col0 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT - ( + col0 ) + col2 * + col2 + + col0 AS col1 FROM tab0 AS cor0
----
1
1089
6724

query I rowsort
SELECT cor0.col2 + - col2 + - col1 * 3 FROM tab1 AS cor0
----
-30
-39
-78

query I rowsort
SELECT DISTINCT + - col2 * + col2 + cor0.col1 FROM tab0 AS cor0
----
-1003
-6633
96

query I rowsort
SELECT ALL col0 + + col0 * + col2 FROM tab1 AS cor0
----
165
3712
7760

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + + col0 col0 FROM tab1 AS cor0
----
121
176
57

query I rowsort
SELECT DISTINCT - col0 * - tab1.col1 * - col0 FROM tab1
----
-234
-40960
-83200

query I rowsort
SELECT DISTINCT + 61 * col0 FROM tab2 AS cor0
----
427
4758
4819

query I rowsort
SELECT 74 * + 42 FROM tab1
----
3108
3108
3108

query I rowsort
SELECT ALL 6 FROM tab0, tab0 AS cor0
----
9 values hashing to 5d1cb90ed58fa7573895d2f95b211821

query I rowsort
SELECT DISTINCT - - 64 AS col0 FROM tab1 AS cor0
----
64

query I rowsort
SELECT + col1 * col1 + - 81 * col0 AS col0 FROM tab0 AS cor0
----
1072
5452
6574

query I rowsort
SELECT 7 + - col0 * col0 AS col2 FROM tab1 AS cor0
----
-2
-4089
-6393

query I rowsort
SELECT DISTINCT + 8 AS col1 FROM tab0 AS cor0
----
8

query I rowsort
SELECT - 41 * col2 + col0 FROM tab0 cor0
----
-1329
-3273
-6

query I rowsort
SELECT DISTINCT + ( col2 ) * - col1 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT + 25 * + col1 FROM tab0 AS cor0
----
2150
2275
2425

query I rowsort
SELECT + ( col0 ) * col2 - cor0.col2 AS col2 FROM tab0 AS cor0
----
34
7216
759

query I rowsort
SELECT - col1 + col2 * + cor0.col2 FROM tab0 AS cor0
----
-96
1003
6633

query I rowsort
SELECT + - col0 + col1 AS col0 FROM tab0 AS cor0
----
2
62
62

query I rowsort
SELECT DISTINCT 11 + col2 FROM tab0 AS cor0
----
12
44
93

query I rowsort
SELECT 73 + - cor0.col0 * - col0 - - col2 FROM tab2 AS cor0
----
149
6183
6352

query I rowsort
SELECT ALL - col1 * - col1 * col2 FROM tab0 cor0
----
244068
679042
9409

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( col0 ) col2 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT DISTINCT col1 + - col2 AS col2 FROM tab1 AS cor0
----
-28
-47
-83

query I rowsort
SELECT ALL + 93 FROM tab0 AS cor0
----
93
93
93

onlyif mysql # use DIV operator for integer division
query I rowsort label-6112
SELECT col1 * col0 DIV col0 + col2 - + col1 AS col2 FROM tab2 AS cor0
----
26
27
38

skipif mysql # not compatible
query I rowsort label-6112
SELECT col1 * col0 / col0 + col2 - + col1 AS col2 FROM tab2 AS cor0
----
26
27
38

query I rowsort
SELECT - col1 * col2 + col2 * col0 AS col0 FROM tab1 AS cor0
----
-1242
3078
6432

onlyif mysql # use DIV operator for integer division
query I rowsort label-6114
SELECT - col1 * col2 DIV - col2 AS col1 FROM tab0 AS cor0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-6114
SELECT - col1 * col2 / - col2 AS col1 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT + + col2 * + col1 AS col0 FROM tab1 cor0
----
1248
1404
570

query I rowsort
SELECT DISTINCT col1 + - col0 + + col1 AS col0 FROM tab1
----
-44
-54
49

query I rowsort
SELECT DISTINCT - col2 - + cor0.col0 FROM tab2 AS cor0
----
-104
-117
-34

query I rowsort
SELECT ALL cor0.col2 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5

query I rowsort
SELECT DISTINCT ( + col1 ) * col2 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT - + 80 + + 35 FROM tab1 AS cor0
----
-45
-45
-45

query I rowsort
SELECT ALL - 29 + 77 AS col1 FROM tab1 AS cor0
----
48
48
48

query I rowsort
SELECT DISTINCT + 29 + 34 AS col1 FROM tab2 AS cor0
----
63

query I rowsort
SELECT ALL - 36 * col2 - + col0 AS col2 FROM tab0 AS cor0
----
-1212
-3041
-71

query I rowsort
SELECT DISTINCT + ( 76 ) FROM tab0 AS cor0
----
76

query I rowsort
SELECT DISTINCT 55 + - 51 AS col0 FROM tab2, tab0 AS cor0
----
4

query I rowsort
SELECT - col2 * 7 - + tab2.col0 * col2 FROM tab2
----
-2210
-3268
-378

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + col2 + col0 ) col2 FROM tab0
----
171
36
57

query I rowsort
SELECT ALL - col2 * + 53 * col2 AS col0 FROM tab0
----
-356372
-53
-57717

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6129
SELECT CAST( 69 AS SIGNED ) FROM tab0
----
69
69
69

skipif mysql # not compatible
query I rowsort label-6129
SELECT CAST ( 69 AS INTEGER ) FROM tab0
----
69
69
69

onlyif mysql # use DIV operator for integer division
query I rowsort label-6130
SELECT ALL + col0 DIV col0 - + col2 DIV col0 FROM tab2
----
-2
1
1

skipif mysql # not compatible
query I rowsort label-6130
SELECT ALL + col0 / col0 - + col2 / col0 FROM tab2
----
-2
1
1

query I rowsort
SELECT 72 * tab0.col1 AS col1 FROM tab0
----
6192
6552
6984

query I rowsort
SELECT ALL col0 * col2 + col2 * - col1 FROM tab1 AS cor0
----
-1242
3078
6432

query I rowsort
SELECT ALL + col2 - cor0.col1 AS col1 FROM tab0 AS cor0
----
-53
-9
-96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6134
SELECT DISTINCT CAST( - col1 + + col0 AS SIGNED ) FROM tab1
----
-23
54
67

skipif mysql # not compatible
query I rowsort label-6134
SELECT DISTINCT CAST ( - col1 + + col0 AS INTEGER ) FROM tab1
----
-23
54
67

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6135
SELECT + + CAST( NULL AS DECIMAL ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6135
SELECT + + CAST ( NULL AS REAL ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 58 + col2 AS col0 FROM tab0
----
140
59
91

query I rowsort
SELECT ( - col1 ) + col0 * ( - cor0.col0 ) AS col2 FROM tab1 cor0
----
-35
-4106
-6413

query I rowsort
SELECT + ( 1 ) + + col1 * + 79 * col1 + col1 FROM tab0 AS cor0
----
584371
654291
743409

query I rowsort
SELECT ALL + + col0 * 1 + - col0 + col0 AS col1 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT DISTINCT 63 + ( + col0 ) AS col1 FROM tab2 cor0
----
141
142
70

query I rowsort
SELECT + + col1 * + col2 AS col2 FROM tab1 cor0
----
1248
1404
570

onlyif mysql # use DIV operator for integer division
query I rowsort label-6142
SELECT ALL - col1 DIV col2 + 33 col1 FROM tab1 AS cor0
----
33
33
33

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6142
SELECT ALL - col1 / col2 + 33 col1 FROM tab1 AS cor0
----
33
33
33

query I rowsort
SELECT 10 * col1 FROM tab0 AS cor0
----
860
910
970

query I rowsort
SELECT ALL + - col0 + - col2 * ( col1 + col2 ) * 57 FROM tab1 AS cor0
----
-217747
-246243
-596528

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6145
SELECT col2 * - col2 * + CAST( + col2 AS SIGNED ) col1 FROM tab2 AS cor0
----
-17576
-19683
-54872

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6145
SELECT col2 * - col2 * + CAST ( + col2 AS INTEGER ) col1 FROM tab2 AS cor0
----
-17576
-19683
-54872

query I rowsort
SELECT ALL + col0 * cor0.col1 + - ( + cor0.col2 ) + - col1 FROM tab2 cor0
----
1288
159
4517

query I rowsort
SELECT ALL - col0 * + ( col1 ) AS col1 FROM tab1
----
-1040
-640
-78

query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab1 cor0 CROSS JOIN tab2 AS cor1
----
243 values hashing to ea21cea53be47edd19229592e3d26141

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6149
SELECT + col0 + CAST( col0 + cor0.col0 AS SIGNED ) FROM tab0 AS cor0
----
105
267
72

skipif mysql # not compatible
query I rowsort label-6149
SELECT + col0 + CAST ( col0 + cor0.col0 AS INTEGER ) FROM tab0 AS cor0
----
105
267
72

query I rowsort
SELECT col0 + ( + 36 ) FROM tab1 AS cor0
----
100
116
39

onlyif mysql # use DIV operator for integer division
query I rowsort label-6151
SELECT + 78 DIV tab0.col2 AS col0 FROM tab0
----
0
2
78

skipif mysql # not compatible
query I rowsort label-6151
SELECT + 78 / tab0.col2 AS col0 FROM tab0
----
0
2
78

query I rowsort
SELECT + 60 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 1d2ab302ae60f95b15e68cf89083b162

query I rowsort
SELECT - 52 FROM tab0, tab2 AS cor0
----
9 values hashing to 9500afe5646d620d5e8943351a29d082

query I rowsort
SELECT - tab1.col1 + + 31 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to e25fe3c8de214eab26701350668495ae

query I rowsort
SELECT col0 * ( 45 ) * + col1 FROM tab2
----
207090
60435
9765

query I rowsort
SELECT ALL col2 * ( - col0 ) FROM tab0
----
-35
-7298
-792

query I rowsort
SELECT ALL + - 71 AS col0 FROM tab1 cor0
----
-71
-71
-71

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 * - col2 + col0 * col1 col1 FROM tab0 cor0
----
14823
3153
3396

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * + 56 col0 FROM tab1
----
1456
560
728

query I rowsort
SELECT - col0 * 9 AS col2 FROM tab0
----
-216
-315
-801

query I rowsort
SELECT ALL - cor0.col1 + - col0 * col2 AS col2 FROM tab0 AS cor0
----
-132
-7389
-878

query I rowsort
SELECT DISTINCT - ( - col0 ) + col1 - ( - col0 ) FROM tab2 cor0
----
175
215
45

query I rowsort
SELECT DISTINCT + 95 AS col0 FROM tab0 AS cor0
----
95

query I rowsort
SELECT DISTINCT col1 + + col2 * col2 * + col2 FROM tab0
----
36023
551459
98

query I rowsort
SELECT DISTINCT - + tab1.col2 + 74 * cor0.col1 FROM tab1, tab2, tab2 AS cor0
----
9 values hashing to a3d36a2204daa95c3ea2af5fa89bcca4

query I rowsort
SELECT DISTINCT - 13 FROM tab0, tab2 AS cor0
----
-13

onlyif mysql # use DIV operator for integer division
query I rowsort label-6167
SELECT DISTINCT col1 + col1 DIV + col1 AS col2 FROM tab2
----
18
32
60

skipif mysql # not compatible
query I rowsort label-6167
SELECT DISTINCT col1 + col1 / + col1 AS col2 FROM tab2
----
18
32
60

query I rowsort
SELECT ( - col2 ) * tab0.col1 AS col1 FROM tab0
----
-2838
-7462
-97

query I rowsort
SELECT col0 * + col1 + + col2 FROM tab2
----
1381
244
4628

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6170
SELECT ALL CAST( NULL AS SIGNED ) + - ( col1 ) + ( cor0.col0 ) / col1 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6170
SELECT ALL CAST ( NULL AS INTEGER ) + - ( col1 ) + ( cor0.col0 ) / col1 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab2 cor0, tab2 AS cor1, tab2 cor2
----
972 values hashing to 163d7732097d78f1cda7f65c2cea5a08

query I rowsort
SELECT ALL + col0 * - col2 + col0 * + 74 FROM tab2 AS cor0
----
2844
329
3744

query I rowsort
SELECT DISTINCT + + col1 * - 37 * - cor0.col2 + - 70 AS col0 FROM tab0 AS cor0
----
104936
276024
3519

query I rowsort
SELECT tab2.col1 * - col2 - + col1 FROM tab2
----
-1593
-663
-868

query I rowsort
SELECT ALL + 33 AS col1 FROM tab2
----
33
33
33

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 86 col1 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to ed1a39c2752ca3723602e4a92c54bbc4

onlyif mysql # use DIV operator for integer division
query I rowsort label-6177
SELECT + col1 * col0 + + col2 DIV - col0 FROM tab0 cor0
----
2063
3395
8099

skipif mysql # not compatible
query I rowsort label-6177
SELECT + col1 * col0 + + col2 / - col0 FROM tab0 cor0
----
2063
3395
8099

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - col0 + col0 * col0 * + ( ( - col0 ) ) + 88 col0 FROM tab1 AS cor0
----
-261416
-510872
139

onlyif mysql # use DIV operator for integer division
query I rowsort label-6179
SELECT DISTINCT + col1 DIV ( col0 ) - col1 AS col0 FROM tab0 AS cor0
----
-83
-90
-95

skipif mysql # not compatible
query I rowsort label-6179
SELECT DISTINCT + col1 / ( col0 ) - col1 AS col0 FROM tab0 AS cor0
----
-83
-90
-95

query I rowsort
SELECT ALL - cor0.col0 * ( col1 ) * col0 AS col1 FROM tab1 AS cor0
----
-234
-40960
-83200

query I rowsort
SELECT + - col2 + - ( - col2 ) * col1 AS col2 FROM tab0 cor0
----
2805
7380
96

query I rowsort
SELECT + col1 + col0 + 96 AS col1 FROM tab1 AS cor0
----
125
170
189

query I rowsort
SELECT + col2 + - 70 * - col1 FROM tab2 AS cor0
----
1228
2197
4156

query I rowsort
SELECT ALL + cor0.col1 * col2 - col1 FROM tab2 AS cor0
----
1475
629
806

query I rowsort
SELECT + - col0 * + col0 + col0 * + col1 FROM tab1 AS cor0
----
-3456
-5360
69

query I rowsort
SELECT DISTINCT - col2 + - col0 * - col2 * col2 FROM tab0 AS cor0
----
26103
34
598354

query I rowsort
SELECT DISTINCT - 84 * col0 FROM tab1 AS cor0
----
-252
-5376
-6720

onlyif mysql # use DIV operator for integer division
query I rowsort label-6188
SELECT - 83 DIV col0 AS col0 FROM tab2
----
-1
-1
-11

skipif mysql # not compatible
query I rowsort label-6188
SELECT - 83 / col0 AS col0 FROM tab2
----
-1
-1
-11

query I rowsort
SELECT cor0.col2 * + cor0.col1 + - 10 FROM tab2 AS cor0
----
1524
636
827

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 77 + col1 col2 FROM tab0 AS cor0
----
14
20
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 50 col0 FROM tab2 cor0
----
50
50
50

query I rowsort
SELECT ALL - - 18 FROM tab0, tab1 cor0
----
9 values hashing to b95bafa733666df39c5d3f94760d010f

query I rowsort
SELECT DISTINCT col1 + col1 * 69 AS col0 FROM tab0
----
6020
6370
6790

query I rowsort
SELECT DISTINCT col0 * tab2.col0 + + tab2.col2 FROM tab2
----
6110
6279
76

query I rowsort
SELECT 13 * - col1 FROM tab1
----
-130
-169
-338

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6196
SELECT DISTINCT - 1 + - col0 * CAST( NULL AS SIGNED ) / - col2 AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-6196
SELECT DISTINCT - 1 + - col0 * CAST ( NULL AS INTEGER ) / - col2 AS col1 FROM tab0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-6197
SELECT col2 DIV col2 AS col0 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6197
SELECT col2 / col2 AS col0 FROM tab1 AS cor0
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 99 col0 FROM tab0, tab1, tab1 cor0
----
27 values hashing to 05ea182fd6036c7f5e0ea08fc061cc67

onlyif mysql # use DIV operator for integer division
query I rowsort label-6199
SELECT DISTINCT col1 DIV - tab1.col0 FROM tab1
----
-8
0

skipif mysql # not compatible
query I rowsort label-6199
SELECT DISTINCT col1 / - tab1.col0 FROM tab1
----
-8
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-6200
SELECT DISTINCT tab0.col0 DIV + tab0.col1 + - 24 + col1 AS col0 FROM tab0
----
62
67
73

skipif mysql # not compatible
query I rowsort label-6200
SELECT DISTINCT tab0.col0 / + tab0.col1 + - 24 + col1 AS col0 FROM tab0
----
62
67
73

query I rowsort
SELECT col2 + col2 * col1 AS col1 FROM tab1
----
1344
1458
627

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 50 col0 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 314aace40e704c20a6be06204a329f80

query I rowsort
SELECT ALL col0 * 22 + col1 AS col1 FROM tab1 cor0
----
1418
1773
92

query I rowsort
SELECT DISTINCT 3 * col0 - col2 AS col1 FROM tab1 AS cor0
----
-45
135
144

query I rowsort
SELECT + + 53 * - 73 AS col1 FROM tab2 AS cor0
----
-3869
-3869
-3869

onlyif mysql # use DIV operator for integer division
query I rowsort label-6206
SELECT + col2 * col0 * + col1 + tab0.col0 DIV col2 FROM tab0
----
3430
664119
68112

skipif mysql # not compatible
query I rowsort label-6206
SELECT + col2 * col0 * + col1 + tab0.col0 / col2 FROM tab0
----
3430
664119
68112

query I rowsort
SELECT ALL + cor0.col1 - - col1 * + col2 * + 65 FROM tab0 AS cor0
----
184556
485121
6402

query I rowsort
SELECT DISTINCT - - 51 AS col1 FROM tab0 AS cor0
----
51

query I rowsort
SELECT DISTINCT 10 * col0 * col0 FROM tab1 AS cor0
----
40960
64000
90

onlyif mysql # use DIV operator for integer division
query I rowsort label-6210
SELECT ALL + - 0 DIV - col2 + - col1 + 58 FROM tab1 cor0
----
32
45
48

skipif mysql # not compatible
query I rowsort label-6210
SELECT ALL + - 0 / - col2 + - col1 + 58 FROM tab1 cor0
----
32
45
48

query I rowsort
SELECT DISTINCT + ( + 89 ) AS col2 FROM tab0 AS cor0
----
89

query I rowsort
SELECT ALL + - ( 4 ) - cor0.col0 FROM tab0 AS cor0
----
-28
-39
-93

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6213
SELECT tab0.col1 + + CAST( NULL AS SIGNED ) * - 28 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6213
SELECT tab0.col1 + + CAST ( NULL AS INTEGER ) * - 28 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-6214
SELECT col0 DIV 9 + - 6 * - col2 FROM tab1
----
324
349
584

skipif mysql # not compatible
query I rowsort label-6214
SELECT col0 / 9 + - 6 * - col2 FROM tab1
----
324
349
584

query I rowsort
SELECT col0 - - col2 * 9 * - col0 FROM tab1
----
-1455
-32768
-69040

query I rowsort
SELECT - col2 - - col1 FROM tab1
----
-28
-47
-83

query I rowsort
SELECT DISTINCT - 16 * - col0 + col0 AS col1 FROM tab2
----
119
1326
1343

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6218
SELECT ALL - CAST( - 76 AS SIGNED ) FROM tab1 AS cor0
----
76
76
76

skipif mysql # not compatible
query I rowsort label-6218
SELECT ALL - CAST ( - 76 AS INTEGER ) FROM tab1 AS cor0
----
76
76
76

query I rowsort
SELECT DISTINCT + 19 + + 16 + + col1 FROM tab0 AS cor0
----
121
126
132

query I rowsort
SELECT DISTINCT + 41 * 83 + - cor0.col0 AS col1 FROM tab1 AS cor0
----
3323
3339
3400

query I rowsort
SELECT + + ( + col2 ) + - col0 FROM tab1 cor0
----
-7
16
51

query I rowsort
SELECT DISTINCT + ( col1 ) * col0 + 26 AS col2 FROM tab0 AS cor0
----
2090
3421
8125

query I rowsort
SELECT DISTINCT 91 AS col1 FROM tab0
----
91

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT CAST ( + 75 AS REAL ) AS col2 FROM tab0 AS cor0
----
75

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6225
SELECT ALL CAST( NULL AS SIGNED ) col1 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6225
SELECT ALL CAST ( NULL AS INTEGER ) col1 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT ALL col2 + col2 * 24 FROM tab0 AS cor0
----
2050
25
825

query I rowsort
SELECT - 23 * cor0.col0 AS col2 FROM tab2 AS cor0
----
-161
-1794
-1817

query I rowsort
SELECT + + col1 * col2 - + cor0.col0 AS col2 FROM tab2 AS cor0
----
1456
567
830

query IIIIIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab2, tab0 AS cor1, tab0, tab1 AS cor2, tab1
----
13122 values hashing to 03333a301f5ed8fb6607698059c69b72

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6230
SELECT col1 + CAST( - col1 AS SIGNED ) col1 FROM tab2
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6230
SELECT col1 + CAST ( - col1 AS INTEGER ) col1 FROM tab2
----
0
0
0

query I rowsort
SELECT - col0 * 82 + col0 AS col0 FROM tab0 cor0
----
-1944
-2835
-7209

query I rowsort
SELECT + + cor0.col0 + 19 FROM tab2 AS cor0
----
26
97
98

onlyif mysql # use DIV operator for integer division
query I rowsort label-6233
SELECT + col2 + + col2 DIV 48 FROM tab1 cor0
----
55
58
98

skipif mysql # not compatible
query I rowsort label-6233
SELECT + col2 + + col2 / 48 FROM tab1 cor0
----
55
58
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col1 * col1 col2 FROM tab2 AS cor0
----
289
3481
961

query I rowsort
SELECT DISTINCT col0 * - cor0.col1 AS col2 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT DISTINCT - - col0 * col0 + col0 FROM tab2 AS cor0
----
56
6162
6320

query I rowsort
SELECT - cor0.col2 + + 81 FROM tab2 AS cor0
----
43
54
55

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * col2 col2 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT + - cor0.col1 * + cor0.col2 AS col0 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT - 54 FROM tab1, tab2 AS cor0
----
9 values hashing to 4ecdb0f1b85f0d4fdc3a826efd9f2342

query I rowsort
SELECT + ( + col2 ) * col1 AS col2 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT DISTINCT + + 5 * + col2 * col1 FROM tab2 AS cor0
----
3230
4185
7670

onlyif mysql # use DIV operator for integer division
query I rowsort label-6243
SELECT ALL + + col0 * 45 DIV col1 FROM tab1 AS cor0
----
276
288
5

skipif mysql # not compatible
query I rowsort label-6243
SELECT ALL + + col0 * 45 / col1 FROM tab1 AS cor0
----
276
288
5

query I rowsort
SELECT + col0 * col0 * + ( + col1 ) FROM tab0
----
118825
49536
720811

query I rowsort
SELECT - + ( - col0 ) * - 12 + col0 AS col0 FROM tab2 cor0
----
-77
-858
-869

query I rowsort
SELECT ( col0 ) * 19 AS col2 FROM tab0 AS cor0
----
1691
456
665

onlyif mysql # use DIV operator for integer division
query I rowsort label-6247
SELECT + 9 DIV col0 + - ( col2 ) AS col1 FROM tab2 AS cor0
----
-26
-26
-38

skipif mysql # not compatible
query I rowsort label-6247
SELECT + 9 / col0 + - ( col2 ) AS col1 FROM tab2 AS cor0
----
-26
-26
-38

onlyif mysql # use DIV operator for integer division
query I rowsort label-6248
SELECT 78 DIV col2 + + 49 + - col1 * + cor0.col1 AS col2 FROM tab1 cor0
----
-120
-50
-626

skipif mysql # not compatible
query I rowsort label-6248
SELECT 78 / col2 + + 49 + - col1 * + cor0.col1 AS col2 FROM tab1 cor0
----
-120
-50
-626

query I rowsort
SELECT - col1 * + ( + col2 ) AS col0 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT DISTINCT - col0 * - col2 FROM tab2
----
189
2028
3002

query I rowsort
SELECT + col2 * - ( + col1 ) * - col0 AS col2 FROM tab2 cor0
----
119652
51034
5859

query I rowsort
SELECT DISTINCT - col1 * col0 + + 51 FROM tab2 AS cor0
----
-1292
-166
-4551

query I rowsort
SELECT + 79 AS col1 FROM tab0 cor0
----
79
79
79

query I rowsort
SELECT + - col0 * - ( + cor0.col1 ) AS col1 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT 61 - + cor0.col1 * + col2 FROM tab1 cor0
----
-1187
-1343
-509

query I rowsort
SELECT ALL 95 * - cor0.col1 AS col2 FROM tab2, tab1 cor0
----
9 values hashing to 00e72e2bf22c3a77209a9e20b2436e55

query I rowsort
SELECT ALL + 81 AS col2 FROM tab1 AS cor0
----
81
81
81

query I rowsort
SELECT DISTINCT + col0 + cor0.col1 + - ( + col0 ) * cor0.col2 FROM tab1 AS cor0
----
-133
-3574
-7587

query I rowsort
SELECT DISTINCT + col2 * - col2 + col0 FROM tab0
----
-1065
-6635
34

query I rowsort
SELECT + col0 * 59 * - tab1.col2 FROM tab1
----
-215232
-453120
-9558

query I rowsort
SELECT - 72 AS col0 FROM tab1
----
-72
-72
-72

query I rowsort
SELECT tab1.col1 * col2 * col2 AS col1 FROM tab1
----
119808
32490
75816

query I rowsort
SELECT ALL 22 AS col1 FROM tab1
----
22
22
22

query I rowsort
SELECT - col1 * - 31 * - col0 FROM tab2
----
-142662
-41633
-6727

query I rowsort
SELECT DISTINCT + - col1 + - col0 AS col0 FROM tab0 cor0
----
-110
-132
-180

query I rowsort
SELECT 58 + - col1 FROM tab0 AS cor0
----
-28
-33
-39

query I rowsort
SELECT + cor0.col2 * - col2 FROM tab0 AS cor0
----
-1
-1089
-6724

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col1 * cor0.col0 col0 FROM tab1 AS cor0
----
1040
640
78

onlyif mysql # use DIV operator for integer division
query I rowsort label-6269
SELECT DISTINCT col0 + col2 DIV col0 AS col0 FROM tab1 AS cor0
----
21
64
81

skipif mysql # not compatible
query I rowsort label-6269
SELECT DISTINCT col0 + col2 / col0 AS col0 FROM tab1 AS cor0
----
21
64
81

query IIIIIIIII rowsort
SELECT ALL * FROM tab1, tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
243 values hashing to 4fe4780e49e612b93957f575d9b3e89f

query I rowsort
SELECT ALL col1 * col0 - 93 * + col2 FROM tab0
----
-1005
3302
473

query I rowsort
SELECT ALL tab1.col1 - - col0 FROM tab1
----
29
74
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 13 * col0 col0 FROM tab1
----
-1040
-39
-832

query I rowsort
SELECT col2 + + tab0.col2 * + col0 * - col1 - col0 FROM tab0
----
-3429
-664125
-68103

onlyif mysql # use DIV operator for integer division
query I rowsort label-6275
SELECT ALL col1 * col2 * - 18 + col1 * + col2 DIV tab1.col2 AS col1 FROM tab1
----
-10250
-22451
-25246

skipif mysql # not compatible
query I rowsort label-6275
SELECT ALL col1 * col2 * - 18 + col1 * + col2 / tab1.col2 AS col1 FROM tab1
----
-10250
-22451
-25246

query I rowsort
SELECT DISTINCT tab2.col0 + tab2.col2 FROM tab2
----
104
117
34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( cor0.col2 ) col2 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT DISTINCT + 43 FROM tab1 AS cor0
----
43

query I rowsort
SELECT ALL 34 * - col2 * + col1 AS col0 FROM tab2 AS cor0
----
-21964
-28458
-52156

query I rowsort
SELECT - 4 * 35 FROM tab0 cor0
----
-140
-140
-140

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6281
SELECT ALL + + CAST( 41 AS SIGNED ) + + col2 FROM tab2 cor0
----
67
68
79

skipif mysql # not compatible
query I rowsort label-6281
SELECT ALL + + CAST ( 41 AS INTEGER ) + + col2 FROM tab2 cor0
----
67
68
79

query I rowsort
SELECT DISTINCT - 90 AS col0 FROM tab0, tab2 AS cor0
----
-90

query I rowsort
SELECT - col1 * + col1 + + col2 * col0 AS col0 FROM tab0
----
-6604
-9374
-983

query I rowsort
SELECT col1 + col1 * - 76 AS col2 FROM tab2
----
-1275
-2325
-4425

query I rowsort
SELECT col2 * + col2 + - 98 * col0 AS col2 FROM tab1
----
-3023
1376
2622

query I rowsort
SELECT DISTINCT col1 * + col0 + - col0 AS col2 FROM tab0
----
2040
3360
8010

query I rowsort
SELECT - ( 46 ) AS col2 FROM tab0 AS cor0
----
-46
-46
-46

onlyif mysql # use DIV operator for integer division
query I rowsort label-6288
SELECT DISTINCT + + col2 DIV col1 + + cor0.col0 + + col2 AS col0 FROM tab0 AS cor0
----
171
36
57

skipif mysql # not compatible
query I rowsort label-6288
SELECT DISTINCT + + col2 / col1 + + cor0.col0 + + col2 AS col0 FROM tab0 AS cor0
----
171
36
57

query I rowsort
SELECT ALL ( col2 ) * col0 - col2 FROM tab0 AS cor0
----
34
7216
759

query I rowsort
SELECT DISTINCT + + col2 + - 52 + col1 FROM tab2 AS cor0
----
3
33
6

query I rowsort
SELECT DISTINCT + cor0.col0 - - col0 FROM tab2 AS cor0
----
14
156
158

query I rowsort
SELECT - 2 * col1 FROM tab2 AS cor0
----
-118
-34
-62

query I rowsort
SELECT - 52 * cor0.col0 AS col2 FROM tab0 AS cor0
----
-1248
-1820
-4628

query I rowsort
SELECT ALL col1 * 93 AS col2 FROM tab0 AS cor0
----
7998
8463
9021

onlyif mysql # use DIV operator for integer division
query I rowsort label-6295
SELECT - col1 DIV tab2.col0 + - tab2.col1 FROM tab2
----
-17
-35
-59

skipif mysql # not compatible
query I rowsort label-6295
SELECT - col1 / tab2.col0 + - tab2.col1 FROM tab2
----
-17
-35
-59

query I rowsort
SELECT col0 * + col1 + col2 FROM tab1
----
1136
132
697

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * 46 col0 FROM tab2 cor0
----
1426
2714
782

query I rowsort
SELECT - cor0.col1 AS col0 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to d4c673b7444eb9927ec63175b43c6b84

query I rowsort
SELECT + - col1 * + 86 FROM tab0 AS cor0
----
-7396
-7826
-8342

onlyif mysql # use DIV operator for integer division
query I rowsort label-6300
SELECT + col2 DIV - col0 AS col0 FROM tab2 AS cor0
----
-3
0
0

skipif mysql # not compatible
query I rowsort label-6300
SELECT + col2 / - col0 AS col0 FROM tab2 AS cor0
----
-3
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-6301
SELECT ALL col1 * col2 DIV 91 + col0 * - ( - 93 ) AS col0 FROM tab1 AS cor0
----
294
5958
7453

skipif mysql # not compatible
query I rowsort label-6301
SELECT ALL col1 * col2 / 91 + col0 * - ( - 93 ) AS col0 FROM tab1 AS cor0
----
294
5958
7453

query I rowsort
SELECT - + col0 * col2 AS col2 FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT ALL col0 * - 56 + col2 AS col1 FROM tab2 AS cor0
----
-365
-4342
-4386

query I rowsort
SELECT DISTINCT + 66 FROM tab0, tab0 AS cor0
----
66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 19 * col2 - cor0.col2 col0 FROM tab2 AS cor0
----
468
486
684

query I rowsort
SELECT 20 + + col2 * + col0 + - 39 AS col2 FROM tab2 AS cor0
----
170
2009
2983

onlyif mysql # use DIV operator for integer division
query I rowsort label-6307
SELECT - ( 16 ) DIV col0 - - 62 AS col1 FROM tab2 AS cor0
----
60
62
62

skipif mysql # not compatible
query I rowsort label-6307
SELECT - ( 16 ) / col0 - - 62 AS col1 FROM tab2 AS cor0
----
60
62
62

onlyif mysql # use DIV operator for integer division
query I rowsort label-6308
SELECT - + col2 DIV + col1 + col0 FROM tab0 AS cor0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-6308
SELECT - + col2 / + col1 + col0 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT + + ( + 8 ) AS col2 FROM tab1 cor0
----
8
8
8

query I rowsort
SELECT ALL + + ( - 32 ) AS col0 FROM tab0 AS cor0
----
-32
-32
-32

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + + col2 + - col2 col1 FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT 91 - + 91 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + cor0.col2 * col2 AS col1 FROM tab1 AS cor0
----
2916
3249
9216

query I rowsort
SELECT DISTINCT - 66 + + col1 AS col0 FROM tab2 cor0
----
-35
-49
-7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 67 * col0 col2 FROM tab2 AS cor0
----
469
5226
5293

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6316
SELECT - CAST( 25 AS SIGNED ) * - col1 + 91 + col0 * + col2 * col0 AS col0 FROM tab0 cor0
----
21249
3741
651888

skipif mysql # not compatible
query I rowsort label-6316
SELECT - CAST ( 25 AS INTEGER ) * - col1 + 91 + col0 * + col2 * col0 AS col0 FROM tab0 cor0
----
21249
3741
651888

query I rowsort
SELECT ALL + col1 * col0 + col2 * - col2 FROM tab2
----
-101
-512
3926

query I rowsort
SELECT - col1 + 1 FROM tab1 AS cor0
----
-12
-25
-9

skipif mysql # not compatible
query I rowsort
SELECT - + ( 19 ) * + col2 - + CAST ( - col1 AS REAL ) FROM tab2 AS cor0
----
-435
-482
-705

query I rowsort
SELECT tab2.col2 - 69 * - col2 FROM tab2
----
1820
1890
2660

onlyif mysql # use DIV operator for integer division
query I rowsort label-6321
SELECT - + tab0.col0 DIV 57 AS col0 FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to a46f44f30b2183508f32c16a79479cd9

skipif mysql # not compatible
query I rowsort label-6321
SELECT - + tab0.col0 / 57 AS col0 FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to a46f44f30b2183508f32c16a79479cd9

query I rowsort
SELECT ALL cor0.col0 + col2 - + col0 FROM tab0 AS cor0
----
1
33
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 91 col0 FROM tab1 AS cor0
----
91
91
91

query I rowsort
SELECT DISTINCT - + col1 + col1 * col0 AS col1 FROM tab2 AS cor0
----
1326
186
4543

query I rowsort
SELECT DISTINCT 74 + col1 AS col0 FROM tab1 AS cor0
----
100
84
87

onlyif mysql # use DIV operator for integer division
query I rowsort label-6326
SELECT ALL + col1 - - col2 * col2 DIV - 6 FROM tab1 cor0
----
-1523
-460
-531

skipif mysql # not compatible
query I rowsort label-6326
SELECT ALL + col1 - - col2 * col2 / - 6 FROM tab1 cor0
----
-1523
-460
-531

query I rowsort
SELECT + cor0.col0 * - col0 AS col2 FROM tab0 AS cor0
----
-1225
-576
-7921

query I rowsort
SELECT + - 32 * + col2 FROM tab0 AS cor0
----
-1056
-2624
-32

onlyif mysql # use DIV operator for integer division
query I rowsort label-6329
SELECT DISTINCT - cor0.col0 + col1 * + 57 + ( col0 + col2 ) * col0 DIV col0 FROM tab1 AS cor0
----
1536
627
837

skipif mysql # not compatible
query I rowsort label-6329
SELECT DISTINCT - cor0.col0 + col1 * + 57 + ( col0 + col2 ) * col0 / col0 FROM tab1 AS cor0
----
1536
627
837

query I rowsort
SELECT DISTINCT col1 + - cor0.col1 FROM tab2 AS cor0
----
0

query I rowsort
SELECT DISTINCT col1 * col1 + col1 FROM tab1 AS cor0
----
110
182
702

query I rowsort
SELECT ( col0 ) + + col1 AS col1 FROM tab1
----
29
74
93

query I rowsort
SELECT - col2 + + 30 AS col2 FROM tab0
----
-3
-52
29

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 44 col2 FROM tab1 AS cor0
----
44
44
44

onlyif mysql # use DIV operator for integer division
query I rowsort label-6335
SELECT DISTINCT + + col1 DIV col1 + - 55 FROM tab1 AS cor0
----
-54

skipif mysql # not compatible
query I rowsort label-6335
SELECT DISTINCT + + col1 / col1 + - 55 FROM tab1 AS cor0
----
-54

query I rowsort
SELECT + + col1 + col2 * - 38 FROM tab1 cor0
----
-2026
-2156
-3635

query I rowsort
SELECT + 67 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to eea8a0738728ea55e4e7ba1506c9905a

query I rowsort
SELECT ALL - col0 * col0 * ( + col1 ) FROM tab2
----
-106097
-1519
-358956

query I rowsort
SELECT ALL 70 AS col2 FROM tab2
----
70
70
70

query I rowsort
SELECT + - 59 AS col1 FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to 582c5aa5e5b4fc3f2ea27e7637992d1f

onlyif mysql # use DIV operator for integer division
query I rowsort label-6341
SELECT DISTINCT - cor0.col0 + - col1 * col0 DIV + col0 AS col0 FROM tab1 AS cor0
----
-29
-74
-93

skipif mysql # not compatible
query I rowsort label-6341
SELECT DISTINCT - cor0.col0 + - col1 * col0 / + col0 AS col0 FROM tab1 AS cor0
----
-29
-74
-93

query I rowsort
SELECT DISTINCT + col1 + ( + col1 * col2 ) FROM tab0 AS cor0
----
194
2924
7553

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * col0 col2 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT 97 FROM tab0, tab1 AS cor0
----
9 values hashing to 5e0d31ac41981bcdf6a665538a71a09c

query I rowsort
SELECT ALL col0 + col1 * + col2 AS col0 FROM tab2
----
1612
725
844

onlyif mysql # use DIV operator for integer division
query I rowsort label-6346
SELECT DISTINCT tab2.col1 * tab2.col1 + + col0 DIV + col0 FROM tab2
----
290
3482
962

skipif mysql # not compatible
query I rowsort label-6346
SELECT DISTINCT tab2.col1 * tab2.col1 + + col0 / + col0 FROM tab2
----
290
3482
962

query I rowsort
SELECT ALL - 10 * - 64 * + col1 AS col2 FROM tab2 AS cor0
----
10880
19840
37760

query I rowsort
SELECT 90 FROM tab1 cor0
----
90
90
90

query I rowsort
SELECT DISTINCT - + 65 * - col2 + cor0.col0 FROM tab0 AS cor0
----
100
2169
5419

query I rowsort
SELECT + 21 * ( col0 ) FROM tab2 AS cor0
----
147
1638
1659

onlyif mysql # use DIV operator for integer division
query I rowsort label-6351
SELECT ALL + ( col2 ) + col1 DIV col1 FROM tab2 cor0
----
27
28
39

skipif mysql # not compatible
query I rowsort label-6351
SELECT ALL + ( col2 ) + col1 / col1 FROM tab2 cor0
----
27
28
39

query I rowsort
SELECT ALL 66 + - col2 AS col0 FROM tab0 AS cor0
----
-16
33
65

query I rowsort
SELECT col1 * + col2 + + ( col2 ) AS col1 FROM tab2 AS cor0
----
1560
684
864

query I rowsort
SELECT col2 * col2 * - col2 FROM tab0
----
-1
-35937
-551368

query I rowsort
SELECT + 96 * + col1 AS col1 FROM tab0
----
8256
8736
9312

query I rowsort
SELECT - 72 + + col1 AS col0 FROM tab1 cor0
----
-46
-59
-62

query I rowsort
SELECT + col1 + - col0 * - col1 AS col1 FROM tab2 AS cor0
----
1360
248
4661

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * col0 + ( - col1 ) + + cor0.col1 * col2 col2 FROM tab2 AS cor0
----
3503
3631
995

query I rowsort
SELECT DISTINCT + ( cor0.col0 ) AS col1 FROM tab1, tab2 AS cor0
----
7
78
79

onlyif mysql # use DIV operator for integer division
query I rowsort label-6360
SELECT DISTINCT - cor0.col2 + - col2 DIV + cor0.col2 FROM tab1 cor0
----
-55
-58
-97

skipif mysql # not compatible
query I rowsort label-6360
SELECT DISTINCT - cor0.col2 + - col2 / + cor0.col2 FROM tab1 cor0
----
-55
-58
-97

query I rowsort
SELECT col1 + col2 * col2 * + cor0.col2 FROM tab0 AS cor0
----
36023
551459
98

query I rowsort
SELECT ALL - - cor0.col2 + - cor0.col1 * col0 AS col1 FROM tab0 AS cor0
----
-2031
-3394
-8017

onlyif mysql # use DIV operator for integer division
query I rowsort label-6363
SELECT DISTINCT + + col2 DIV col2 AS col0 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-6363
SELECT DISTINCT + + col2 / col2 AS col0 FROM tab0 AS cor0
----
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-6364
SELECT - col2 * col2 DIV + col1 AS col2 FROM tab1
----
-112
-324
-708

skipif mysql # not compatible
query I rowsort label-6364
SELECT - col2 * col2 / + col1 AS col2 FROM tab1
----
-112
-324
-708

query I rowsort
SELECT - col1 + col1 * + col1 AS col2 FROM tab2 AS cor0
----
272
3422
930

onlyif mysql # use DIV operator for integer division
query I rowsort label-6366
SELECT ALL - - col1 DIV col1 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6366
SELECT ALL - - col1 / col1 FROM tab1 AS cor0
----
1
1
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-6367
SELECT DISTINCT - cor0.col1 DIV + col1 + + col1 AS col0 FROM tab1 cor0
----
12
25
9

skipif mysql # not compatible
query I rowsort label-6367
SELECT DISTINCT - cor0.col1 / + col1 + + col1 AS col0 FROM tab1 cor0
----
12
25
9

query I rowsort
SELECT ALL + col1 * - col1 + cor0.col0 * + col1 FROM tab0 AS cor0
----
-182
-5332
-6014

query I rowsort
SELECT ALL + col2 * - col2 - - col0 * col0 FROM tab2 AS cor0
----
-680
4797
5408

query I rowsort
SELECT + + col0 + - col1 * - col2 FROM tab1 AS cor0
----
1328
1407
634

query I rowsort
SELECT ALL + cor0.col1 + + col1 FROM tab1 cor0
----
20
26
52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col1 col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775

onlyif mysql # use DIV operator for integer division
query I rowsort label-6373
SELECT - col0 DIV tab1.col2 AS col2 FROM tab1
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-6373
SELECT - col0 / tab1.col2 AS col2 FROM tab1
----
-1
0
0

query I rowsort
SELECT + col1 * - col1 - col0 AS col2 FROM tab2
----
-3559
-368
-968

query I rowsort
SELECT DISTINCT - col1 * col2 + col0 AS col0 FROM tab0
----
-2814
-62
-7373

query I rowsort
SELECT col0 - - col2 * + col2 AS col1 FROM tab1 AS cor0
----
2919
3313
9296

query I rowsort
SELECT + - col0 + col2 * col0 AS col1 FROM tab2 AS cor0
----
182
1950
2923

onlyif mysql # use DIV operator for integer division
query I rowsort label-6378
SELECT + - col2 + + cor0.col2 DIV col0 AS col0 FROM tab1 cor0
----
-36
-57
-95

skipif mysql # not compatible
query I rowsort label-6378
SELECT + - col2 + + cor0.col2 / col0 AS col0 FROM tab1 cor0
----
-36
-57
-95

query I rowsort
SELECT ALL - ( - col0 * - col0 ) AS col0 FROM tab2
----
-49
-6084
-6241

query I rowsort
SELECT DISTINCT col1 * col2 * + col0 AS col1 FROM tab0
----
3395
664118
68112

query I rowsort
SELECT - 38 * col0 * col0 FROM tab0 AS cor0
----
-21888
-300998
-46550

query I rowsort
SELECT + 92 * - col0 FROM tab0 AS cor0
----
-2208
-3220
-8188

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 + cor0.col2 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17

query I rowsort
SELECT ALL + col0 * col1 AS col1 FROM tab0
----
2064
3395
8099

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col1 + + col1 col1 FROM tab1 AS cor0
----
20
26
52

query I rowsort
SELECT ALL tab2.col0 + col1 AS col2 FROM tab2
----
137
38
96

query I rowsort
SELECT col2 FROM tab1 WHERE NOT ( + col0 ) IN ( + tab1.col0 * + col1 )
----
54
57
96

query I rowsort
SELECT - col1 * tab2.col1 AS col1 FROM tab2
----
-289
-3481
-961

query I rowsort
SELECT ALL + tab2.col1 - + col0 FROM tab2
----
-19
-62
24

query I rowsort
SELECT ALL - cor0.col2 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-6392
SELECT col0 DIV cor0.col2 AS col0 FROM tab0 AS cor0
----
0
1
35

skipif mysql # not compatible
query I rowsort label-6392
SELECT col0 / cor0.col2 AS col0 FROM tab0 AS cor0
----
0
1
35

query I rowsort
SELECT ALL - col0 * - col0 + - col2 FROM tab2 AS cor0
----
22
6058
6203

onlyif mysql # use DIV operator for integer division
query I rowsort label-6394
SELECT ALL + col1 DIV col0 AS col0 FROM tab0 AS cor0
----
1
2
3

skipif mysql # not compatible
query I rowsort label-6394
SELECT ALL + col1 / col0 AS col0 FROM tab0 AS cor0
----
1
2
3

query I rowsort
SELECT DISTINCT 39 * col0 * 54 AS col0 FROM tab0 AS cor0
----
187434
50544
73710

query I rowsort
SELECT ALL - + col2 * + col2 + col0 FROM tab2 AS cor0
----
-1365
-598
-722

onlyif mysql # use DIV operator for integer division
query I rowsort label-6397
SELECT ALL + + col0 + - cor0.col2 DIV + col0 AS col2 FROM tab1 AS cor0
----
-15
64
79

skipif mysql # not compatible
query I rowsort label-6397
SELECT ALL + + col0 + - cor0.col2 / + col0 AS col2 FROM tab1 AS cor0
----
-15
64
79

query I rowsort
SELECT DISTINCT col1 * col2 FROM tab2 WHERE NULL NOT IN ( col0 * col1 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-6399
SELECT - col1 DIV + col2 AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6399
SELECT - col1 / + col2 AS col2 FROM tab1
----
0
0
0

query I rowsort
SELECT ALL + col0 + - col1 - + 45 FROM tab0 AS cor0
----
-107
-107
-47

query I rowsort
SELECT DISTINCT - col1 + col2 * + col2 AS col2 FROM tab0
----
-96
1003
6633

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6402
SELECT DISTINCT + col0 * col0 + ( 51 + + col0 * CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6402
SELECT DISTINCT + col0 * col0 + ( 51 + + col0 * CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * col0 + col2 + col2 col1 FROM tab2 AS cor0
----
103
6136
6317

onlyif mysql # use DIV operator for integer division
query I rowsort label-6404
SELECT + col1 * + col1 DIV col1 FROM tab1 AS cor0
----
10
13
26

skipif mysql # not compatible
query I rowsort label-6404
SELECT + col1 * + col1 / col1 FROM tab1 AS cor0
----
10
13
26

onlyif mysql # use DIV operator for integer division
query I rowsort label-6405
SELECT DISTINCT cor0.col1 DIV - col1 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-6405
SELECT DISTINCT cor0.col1 / - col1 FROM tab1 AS cor0
----
-1

query I rowsort
SELECT + col2 - col1 * col2 AS col2 FROM tab0
----
-2805
-7380
-96

query I rowsort
SELECT DISTINCT col2 * + col1 - col1 FROM tab2
----
1475
629
806

query I rowsort
SELECT ALL col1 * + col2 AS col2 FROM tab2 WHERE NOT col2 * + col2 NOT IN ( col2 )
----

query I rowsort
SELECT DISTINCT - tab2.col0 + - col1 * tab2.col0 FROM tab2
----
-1422
-224
-4680

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col0 IN ( - col1 )
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7

query I rowsort
SELECT col1 * col0 + - tab2.col1 AS col0 FROM tab2
----
1326
186
4543

query III rowsort
SELECT ALL * FROM tab1 WHERE ( NULL ) < ( col2 )
----

query I rowsort
SELECT tab0.col1 + - col0 * col0 * + tab0.col0 AS col0 FROM tab0
----
-13738
-42778
-704878

query I rowsort
SELECT ALL - col0 * col0 * - tab1.col0 FROM tab1
----
262144
27
512000

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * - col0 * + col0 col2 FROM tab2
----
-343
-474552
-493039

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( NULL ) <= ( NULL )
----

query I rowsort
SELECT - col1 + tab1.col1 + - col0 * col2 FROM tab1
----
-162
-3648
-7680

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * tab0.col2 + col1 col2 FROM tab0
----
132
7389
878

query I rowsort
SELECT ALL + col0 * col2 * tab1.col1 AS col0 FROM tab1
----
36480
4212
99840

query I rowsort
SELECT + 46 AS col0 FROM tab0
----
46
46
46

query I rowsort
SELECT ALL + 61 AS col2 FROM tab1
----
61
61
61

query I rowsort
SELECT + - 99 AS col2 FROM tab2 AS cor0
----
-99
-99
-99

query I rowsort
SELECT + ( + col1 ) * + col1 AS col0 FROM tab1 AS cor0
----
100
169
676

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6424
SELECT - CAST( NULL AS SIGNED ) col1 FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6424
SELECT - CAST ( NULL AS INTEGER ) col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT 54 AS col0 FROM tab2, tab0 AS cor0 CROSS JOIN tab0
----
27 values hashing to 81150d59d6c3fc48b4ef5a4a5495bc7a

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6426
SELECT DISTINCT - col0 * col2 * + col2 + + CAST( - col0 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-208000
-737360
-8751

skipif mysql # not compatible
query I rowsort label-6426
SELECT DISTINCT - col0 * col2 * + col2 + + CAST ( - col0 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-208000
-737360
-8751

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 82 * col1 - col1 col0 FROM tab1 AS cor0
----
1053
2106
810

query I rowsort
SELECT DISTINCT - 74 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
-74

query I rowsort
SELECT DISTINCT 67 + + col1 - + col1 AS col2 FROM tab2 AS cor0
----
67

query I rowsort
SELECT ALL - 54 + - col0 FROM tab2 cor0
----
-132
-133
-61

query I rowsort
SELECT - 55 + col2 AS col0 FROM tab1 AS cor0
----
-1
2
41

query I rowsort
SELECT DISTINCT - cor0.col2 FROM tab2, tab2 cor0
----
-26
-27
-38

query I rowsort
SELECT - - 31 FROM tab1 AS cor0
----
31
31
31

query I rowsort
SELECT DISTINCT - col2 + - 40 * + tab0.col2 AS col1 FROM tab0
----
-1353
-3362
-41

query I rowsort
SELECT + col2 + - 50 * - tab0.col2 AS col0 FROM tab0
----
1683
4182
51

query I rowsort
SELECT - col2 + tab2.col1 + + tab2.col2 * - col1 * + col1 AS col1 FROM tab2
----
-11003
-25943
-90473

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * - col1 col2 FROM tab0
----
2838
7462
97

query I rowsort
SELECT ALL - col0 + ( - col0 ) FROM tab0
----
-178
-48
-70

query I rowsort
SELECT col0 + ( - col2 ) * - col2 * tab1.col0 AS col0 FROM tab1
----
208000
737360
8751

query I rowsort
SELECT DISTINCT + tab1.col2 * + col1 + col1 + - tab1.col0 AS col2 FROM tab1
----
1181
1427
516

onlyif mysql # use DIV operator for integer division
query I rowsort label-6441
SELECT DISTINCT tab1.col2 DIV col0 + - col2 FROM tab1
----
-36
-57
-95

skipif mysql # not compatible
query I rowsort label-6441
SELECT DISTINCT tab1.col2 / col0 + - col2 FROM tab1
----
-36
-57
-95

query I rowsort
SELECT DISTINCT - col0 + 1 FROM tab2
----
-6
-77
-78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * ( 4 ) col0 FROM tab0 AS cor0
----
344
364
388

query I rowsort
SELECT col2 * - col1 + + col1 AS col0 FROM tab0 AS cor0
----
-2752
-7371
0

query I rowsort
SELECT DISTINCT col2 * + 45 FROM tab1
----
2430
2565
4320

query I rowsort
SELECT 91 * col0 FROM tab2 AS cor0
----
637
7098
7189

query I rowsort
SELECT - - col1 + - col2 * col2 FROM tab0 AS cor0
----
-1003
-6633
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * - 28 col0 FROM tab1 AS cor0
----
-1792
-2240
-84

query I rowsort
SELECT DISTINCT + ( col2 ) * + col1 + - col2 FROM tab0 AS cor0
----
2805
7380
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 52 col2 FROM tab1 AS cor0
----
52

query I rowsort
SELECT ALL - 49 * ( col0 ) - + col2 FROM tab2 AS cor0
----
-370
-3848
-3909

query I rowsort
SELECT - + 2 * col1 FROM tab2 AS cor0
----
-118
-34
-62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 79 * - col0 col2 FROM tab0 AS cor0
----
-1896
-2765
-7031

query I rowsort
SELECT ALL - col2 + + 4 AS col1 FROM tab0 AS cor0
----
-29
-78
3

query I rowsort
SELECT DISTINCT + + 93 + + col2 FROM tab1 cor0
----
147
150
189

query I rowsort
SELECT - 65 * col1 FROM tab2 AS cor0
----
-1105
-2015
-3835

query I rowsort
SELECT DISTINCT - - 10 AS col0 FROM tab0 AS cor0
----
10

query I rowsort
SELECT col0 * - col1 + - 39 * - col1 AS col0 FROM tab2
----
-2301
-680
992

query I rowsort
SELECT ALL col1 * + 71 + - col1 * col2 AS col1 FROM tab0
----
-1001
3268
6790

skipif mysql # not compatible
query I rowsort
SELECT ALL + col0 * CAST ( + col0 AS REAL ) + col0 FROM tab1
----
12
4160
6480

query I rowsort
SELECT DISTINCT col0 + 79 FROM tab1
----
143
159
82

onlyif mysql # use DIV operator for integer division
query I rowsort label-6462
SELECT DISTINCT col1 DIV + col0 + + 41 * + col1 FROM tab2
----
1275
2419
697

skipif mysql # not compatible
query I rowsort label-6462
SELECT DISTINCT col1 / + col0 + + 41 * + col1 FROM tab2
----
1275
2419
697

query I rowsort
SELECT ALL + col2 + + col1 * 67 FROM tab0
----
5795
6179
6500

query I rowsort
SELECT DISTINCT + col0 + - col2 + col0 AS col1 FROM tab1
----
-48
64
71

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 * 58 + - col0 col2 FROM tab0 AS cor0
----
1890
23
4667

query I rowsort
SELECT + ( - col2 ) * col1 + ( + ( + col1 ) ) AS col1 FROM tab0 AS cor0
----
-2752
-7371
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-6467
SELECT + - col2 DIV + col0 AS col0 FROM tab2 AS cor0
----
-3
0
0

skipif mysql # not compatible
query I rowsort label-6467
SELECT + - col2 / + col0 AS col0 FROM tab2 AS cor0
----
-3
0
0

query I rowsort
SELECT ALL ( ( col2 ) ) * tab0.col0 AS col2 FROM tab0
----
35
7298
792

query I rowsort
SELECT 39 * col2 AS col2 FROM tab1
----
2106
2223
3744

query I rowsort
SELECT + ( col1 ) + + cor0.col2 FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT - cor2.col0 AS col2 FROM tab0, tab0 cor0, tab0 AS cor1, tab2, tab0 AS cor2
----
243 values hashing to 68438270ef4dcbfd48dcdbe0b98336f5

query I rowsort
SELECT + - col0 + - cor0.col0 FROM tab2 AS cor0
----
-14
-156
-158

query I rowsort
SELECT - col1 * + col0 + col2 AS col1 FROM tab0 AS cor0
----
-2031
-3394
-8017

query I rowsort
SELECT - + col2 + - col2 * + cor0.col1 * + col2 FROM tab0 AS cor0
----
-611966
-93687
-98

query I rowsort
SELECT - + col2 + + col2 * + col1 FROM tab0 AS cor0
----
2805
7380
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-6476
SELECT ALL col2 DIV col0 col1 FROM tab2 AS cor0
----
0
0
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6476
SELECT ALL col2 / col0 col1 FROM tab2 AS cor0
----
0
0
3

query I rowsort
SELECT - 14 * col1 * col0 AS col0 FROM tab2 AS cor0
----
-18802
-3038
-64428

query I rowsort
SELECT - + 92 * + col1 FROM tab2 AS cor0
----
-1564
-2852
-5428

query I rowsort
SELECT DISTINCT col0 * - 29 AS col2 FROM tab1
----
-1856
-2320
-87

query I rowsort
SELECT - 91 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 745d1c3a09d935465cad552325c5c945

query I rowsort
SELECT - col1 - + ( - col1 ) AS col1 FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT + col0 - col2 AS col0 FROM tab2 cor0
----
-20
41
52

query I rowsort
SELECT - - col2 - - 33 FROM tab1 AS cor0
----
129
87
90

query I rowsort
SELECT + col1 + 0 * - 89 * col1 AS col1 FROM tab2 AS cor0
----
17
31
59

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6485
SELECT DISTINCT - col2 + - CAST( NULL AS SIGNED ) * + col1 * + col2 + - col0 * - col2 / - col0 AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6485
SELECT DISTINCT - col2 + - CAST ( NULL AS INTEGER ) * + col1 * + col2 + - col0 * - col2 / - col0 AS col1 FROM tab2 AS cor0
----
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6486
SELECT ALL - col1 / CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6486
SELECT ALL - col1 / CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col1 * col0 + + col2 FROM tab2 cor0
----
1381
244
4628

query I rowsort
SELECT - - col0 * 34 AS col0 FROM tab2 AS cor0
----
238
2652
2686

query I rowsort
SELECT col0 + + col1 * ( + col2 ) FROM tab0
----
132
2862
7551

query I rowsort
SELECT ALL cor0.col0 * - cor0.col1 FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to 09a48fec24dd5ded01e53ec00cd6a7a1

query I rowsort
SELECT ALL col1 * 6 + + col2 + col2 FROM tab2
----
178
240
406

query I rowsort
SELECT ALL + col2 * 1 FROM tab2 AS cor0
----
26
27
38

query I rowsort
SELECT - col1 + + col0 - cor0.col2 AS col2 FROM tab1 AS cor0
----
-29
-3
-77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * - 36 + + col2 * cor0.col1 + col0 col2 FROM tab1 AS cor0
----
2686
3351
4784

query I rowsort
SELECT col1 + + ( + col2 ) * - col0 * + col1 + col0 AS col0 FROM tab2 AS cor0
----
-119515
-50938
-5821

query I rowsort
SELECT DISTINCT + 11 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
11

query I rowsort
SELECT DISTINCT - col0 + + 98 FROM tab0 AS cor0
----
63
74
9

query I rowsort
SELECT - - col2 * 14 AS col2 FROM tab1 cor0
----
1344
756
798

query I rowsort
SELECT DISTINCT - col2 + 96 AS col1 FROM tab0 AS cor0
----
14
63
95

query I rowsort
SELECT ALL + cor0.col0 * ( - 56 ) FROM tab1 AS cor0
----
-168
-3584
-4480

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col2 * 57 col1 FROM tab1 AS cor0
----
-3078
-3249
-5472

query I rowsort
SELECT 97 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 5e0d31ac41981bcdf6a665538a71a09c

query I rowsort
SELECT - col1 * - cor0.col1 AS col2 FROM tab0 cor0
----
7396
8281
9409

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab2, tab0 AS cor1, tab0 AS cor2, tab1 AS cor3
----
3645 values hashing to 25b043ae64f25e8f205735b09d2d3d6a

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6505
SELECT - col0 * - CAST( NULL AS DECIMAL ) - - col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6505
SELECT - col0 * - CAST ( NULL AS REAL ) - - col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + col2 * - col2 + CAST ( - col2 * + cor0.col2 AS REAL ) - + 66 FROM tab0 AS cor0
----
-13514
-2244
-68

query I rowsort
SELECT DISTINCT - col0 * + col2 * + 26 AS col1 FROM tab0
----
-189748
-20592
-910

query I rowsort
SELECT - 76 AS col0 FROM tab0
----
-76
-76
-76

query I rowsort
SELECT - + col2 * + cor0.col0 FROM tab0 AS cor0
----
-35
-7298
-792

onlyif mysql # use DIV operator for integer division
query I rowsort label-6510
SELECT col2 + + col1 DIV - col2 AS col1 FROM tab0 AS cor0
----
-96
31
81

skipif mysql # not compatible
query I rowsort label-6510
SELECT col2 + + col1 / - col2 AS col1 FROM tab0 AS cor0
----
-96
31
81

query I rowsort
SELECT + ( - col1 ) * + 37 FROM tab2 AS cor0
----
-1147
-2183
-629

query I rowsort
SELECT ALL + 46 * cor0.col2 FROM tab2 cor0
----
1196
1242
1748

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6513
SELECT DISTINCT - + CAST( + cor0.col2 AS SIGNED ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-26
-27
-38

skipif mysql # not compatible
query I rowsort label-6513
SELECT DISTINCT - + CAST ( + cor0.col2 AS INTEGER ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-26
-27
-38

query I rowsort
SELECT ALL + 51 + tab1.col0 AS col2 FROM tab1
----
115
131
54

query I rowsort
SELECT DISTINCT ( - 28 ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-28

query I rowsort
SELECT - col1 + ( + col0 ) * col0 FROM tab2 AS cor0
----
18
6025
6224

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6517
SELECT DISTINCT - cor0.col2 * CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6517
SELECT DISTINCT - cor0.col2 * CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT 72 AS col0 FROM tab0, tab2 AS cor0, tab2 cor1
----
27 values hashing to 92cc3d5daa550304e96c1542787691c7

onlyif mysql # use DIV operator for integer division
query I rowsort label-6519
SELECT ALL - 19 DIV + 99 FROM tab2, tab2 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

skipif mysql # not compatible
query I rowsort label-6519
SELECT ALL - 19 / + 99 FROM tab2, tab2 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

onlyif mysql # use DIV operator for integer division
query I rowsort label-6520
SELECT DISTINCT + col1 DIV col1 - + 37 FROM tab0 AS cor0
----
-36

skipif mysql # not compatible
query I rowsort label-6520
SELECT DISTINCT + col1 / col1 - + 37 FROM tab0 AS cor0
----
-36

query I rowsort
SELECT DISTINCT col1 + 44 FROM tab1 AS cor0
----
54
57
70

query I rowsort
SELECT ALL - + col2 + ( col0 ) FROM tab0 AS cor0
----
-9
34
7

query I rowsort
SELECT ALL - col1 + ( col1 ) AS col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - col2 - + ( 28 ) * + col2 FROM tab1 AS cor0
----
-1566
-1653
-2784

query I rowsort
SELECT - cor1.col1 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 6e0b7d583bc2c53842166d3e6ba2d6d2

query I rowsort
SELECT - cor0.col1 + col2 * - 19 FROM tab0 AS cor0
----
-116
-1649
-713

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6527
SELECT CAST( NULL AS SIGNED ) + - col1 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6527
SELECT CAST ( NULL AS INTEGER ) + - col1 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT ( - 49 ) - col2 FROM tab2
----
-75
-76
-87

query I rowsort
SELECT + col1 * - 76 FROM tab1
----
-1976
-760
-988

query I rowsort
SELECT DISTINCT 45 FROM tab1, tab0 cor0
----
45

query I rowsort
SELECT ALL + ( - tab0.col1 * col0 ) + - 60 + col0 * + col0 AS col0 FROM tab0
----
-1548
-2230
-238

query I rowsort
SELECT 76 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 30b8941a700cffd5b983116383bd42d5

query I rowsort
SELECT ALL + ( 69 ) + col1 FROM tab0 AS cor0
----
155
160
166

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6534
SELECT - CAST( - 69 AS SIGNED ) + + col2 + - col2 FROM tab0 AS cor0
----
69
69
69

skipif mysql # not compatible
query I rowsort label-6534
SELECT - CAST ( - 69 AS INTEGER ) + + col2 + - col2 FROM tab0 AS cor0
----
69
69
69

query I rowsort
SELECT - ( + 8 ) * col1 AS col2 FROM tab1 AS cor0
----
-104
-208
-80

query I rowsort
SELECT - 48 * + cor0.col1 + + ( 2 ) * + col0 + col2 AS col2 FROM tab2 AS cor0
----
-1447
-2650
-620

query I rowsort
SELECT ALL 27 + - col1 * - 76 FROM tab2 AS cor0
----
1319
2383
4511

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * col0 + 68 + ( + col0 ) * + 68 col2 FROM tab1 AS cor0
----
-2172
110
772

query I rowsort
SELECT DISTINCT col0 * col0 + + 30 AS col1 FROM tab2 cor0
----
6114
6271
79

query I rowsort
SELECT DISTINCT - col0 * col0 + + ( col1 ) + col2 AS col1 FROM tab0 AS cor0
----
-1127
-457
-7748

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * + cor0.col0 + ( + cor0.col1 ) * col2 + + 84 * 64 * col2 col2 FROM tab2 AS cor0
----
143338
146178
207936

onlyif mysql # use DIV operator for integer division
query I rowsort label-6542
SELECT - - col1 + col2 DIV ( - cor0.col0 ) FROM tab2 AS cor0
----
17
28
59

skipif mysql # not compatible
query I rowsort label-6542
SELECT - - col1 + col2 / ( - cor0.col0 ) FROM tab2 AS cor0
----
17
28
59

onlyif mysql # use DIV operator for integer division
query I rowsort label-6543
SELECT col2 + + cor0.col1 DIV 56 AS col2 FROM tab0 AS cor0
----
2
34
83

skipif mysql # not compatible
query I rowsort label-6543
SELECT col2 + + cor0.col1 / 56 AS col2 FROM tab0 AS cor0
----
2
34
83

query I rowsort
SELECT DISTINCT + + 95 * - col0 AS col1 FROM tab2 cor0
----
-665
-7410
-7505

query I rowsort
SELECT - + col0 + col2 * - col0 + ( + col1 + 21 ) FROM tab1 AS cor0
----
-118
-3681
-7726

query I rowsort
SELECT ALL - + col2 * - col2 * 46 AS col1 FROM tab2 AS cor0
----
31096
33534
66424

query I rowsort
SELECT DISTINCT - 95 FROM tab2, tab0 cor0
----
-95

query I rowsort
SELECT ALL + 97 * tab2.col2 - col2 FROM tab2
----
2496
2592
3648

query I rowsort
SELECT ALL 45 - - col1 AS col2 FROM tab0
----
131
136
142

skipif mysql # not compatible
query I rowsort
SELECT ALL - 5 / col1 + tab0.col2 * CAST ( - col2 AS REAL ) - - col2 AS col0 FROM tab0
----
-1056
-6642
0

query I rowsort
SELECT DISTINCT 55 * + tab2.col1 FROM tab2
----
1705
3245
935

query I rowsort
SELECT DISTINCT - + col1 + cor0.col0 + cor0.col2 AS col2 FROM tab0 AS cor0
----
-29
-61
80

query I rowsort
SELECT + 38 + col1 * - cor0.col1 AS col1 FROM tab2 AS cor0
----
-251
-3443
-923

query I rowsort
SELECT ALL ( 85 ) FROM tab1 cor0
----
85
85
85

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6555
SELECT - CAST( - col1 AS SIGNED ) * + col1 AS col1 FROM tab1 AS cor0
----
100
169
676

skipif mysql # not compatible
query I rowsort label-6555
SELECT - CAST ( - col1 AS INTEGER ) * + col1 AS col1 FROM tab1 AS cor0
----
100
169
676

query I rowsort
SELECT DISTINCT 81 * cor0.col1 + - col0 FROM tab1 AS cor0
----
2103
746
973

query I rowsort
SELECT + + col2 + - 84 * - col0 AS col2 FROM tab1 AS cor0
----
306
5433
6816

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT CAST ( 26 + col0 * - 9 AS REAL ) col2 FROM tab1
----
-1
-550
-694

query I rowsort
SELECT + tab2.col2 * - 59 FROM tab2, tab0, tab0 AS cor0
----
27 values hashing to 8d6f2287dc20360123eea72e314b0ab1

query I rowsort
SELECT + 84 * 97 + tab2.col2 FROM tab2
----
8174
8175
8186

query I rowsort
SELECT ALL - + col0 * ( col0 ) + col2 + + col2 AS col1 FROM tab1 AS cor0
----
-3982
-6208
99

query I rowsort
SELECT ALL + + 40 * + col0 + col0 AS col0 FROM tab1 AS cor0
----
123
2624
3280

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6563
SELECT - CAST( col0 * col0 + + 1 AS SIGNED ) FROM tab0
----
-1226
-577
-7922

skipif mysql # not compatible
query I rowsort label-6563
SELECT - CAST ( col0 * col0 + + 1 AS INTEGER ) FROM tab0
----
-1226
-577
-7922

query I rowsort
SELECT - 18 FROM tab1, tab0 cor0
----
9 values hashing to 09afafec657a5e9f082beb6a16ec85de

query I rowsort
SELECT ALL - col2 - col1 * + col2 AS col1 FROM tab1
----
-1344
-1458
-627

query I rowsort
SELECT DISTINCT - 68 FROM tab1, tab1 cor0, tab0 AS cor1
----
-68

query I rowsort
SELECT col0 * col1 * 42 FROM tab0
----
142590
340158
86688

query I rowsort
SELECT ALL ( - col0 ) + 72 AS col2 FROM tab2
----
-6
-7
65

query I rowsort
SELECT col1 * + col0 - 20 FROM tab0 cor0
----
2044
3375
8079

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 94 - col2 * ( 38 ) col0 FROM tab1 AS cor0
----
-1958
-2072
-3554

query I rowsort
SELECT - col2 * col0 + col1 + + col2 AS col0 FROM tab0
----
-673
-7125
63

onlyif mysql # use DIV operator for integer division
query I rowsort label-6572
SELECT col1 DIV + col1 + + 23 AS col1 FROM tab2
----
24
24
24

skipif mysql # not compatible
query I rowsort label-6572
SELECT col1 / + col1 + + 23 AS col1 FROM tab2
----
24
24
24

query I rowsort
SELECT ALL - cor0.col2 * + 80 FROM tab1 AS cor0
----
-4320
-4560
-7680

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6574
SELECT DISTINCT - col0 - - CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6574
SELECT DISTINCT - col0 - - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6575
SELECT ALL + - cor0.col0 * CAST( col0 AS SIGNED ) * - col0 + col0 col0 FROM tab0 AS cor0
----
13848
42910
705058

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6575
SELECT ALL + - cor0.col0 * CAST ( col0 AS INTEGER ) * - col0 + col0 col0 FROM tab0 AS cor0
----
13848
42910
705058

query I rowsort
SELECT ALL - - col2 + cor0.col0 AS col0 FROM tab1 AS cor0
----
121
176
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 - col1 col2 FROM tab1 AS cor0
----
-29
-74
-93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col0 * + col2 col0 FROM tab2 cor0
----
-189
-2028
-3002

skipif mysql # not compatible
query I rowsort
SELECT ALL + + col2 + CAST ( col0 + + col2 AS REAL ) AS col2 FROM tab0 AS cor0
----
253
37
90

onlyif mysql # use DIV operator for integer division
query I rowsort label-6580
SELECT + col1 + 69 DIV cor0.col2 AS col1 FROM tab1 cor0
----
11
13
27

skipif mysql # not compatible
query I rowsort label-6580
SELECT + col1 + 69 / cor0.col2 AS col1 FROM tab1 cor0
----
11
13
27

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6581
SELECT ALL - + col0 * - CAST( col2 AS SIGNED ) FROM tab0 AS cor0
----
35
7298
792

skipif mysql # not compatible
query I rowsort label-6581
SELECT ALL - + col0 * - CAST ( col2 AS INTEGER ) FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT DISTINCT - col0 + - ( - col2 ) * col0 FROM tab2 cor0
----
182
1950
2923

onlyif mysql # use DIV operator for integer division
query I rowsort label-6583
SELECT DISTINCT col2 + - 68 DIV + col1 + + col1 FROM tab1 AS cor0
----
104
61
78

skipif mysql # not compatible
query I rowsort label-6583
SELECT DISTINCT col2 + - 68 / + col1 + + col1 FROM tab1 AS cor0
----
104
61
78

query I rowsort
SELECT ALL + cor0.col2 * - col0 + col0 * - cor0.col0 FROM tab1 AS cor0
----
-14080
-171
-7744

query I rowsort
SELECT 15 FROM tab2, tab1 AS cor0
----
9 values hashing to d1d280d38bf9c2d5d5ec90dd43aeaffd

query I rowsort
SELECT tab1.col1 * 44 FROM tab1
----
1144
440
572

onlyif mysql # use DIV operator for integer division
query I rowsort label-6587
SELECT DISTINCT + col2 DIV + col1 AS col1 FROM tab2
----
0
2

skipif mysql # not compatible
query I rowsort label-6587
SELECT DISTINCT + col2 / + col1 AS col1 FROM tab2
----
0
2

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6588
SELECT col0 * CAST( - ( - col2 ) AS SIGNED ) * col2 AS col0 FROM tab0
----
26136
35
598436

skipif mysql # not compatible
query I rowsort label-6588
SELECT col0 * CAST ( - ( - col2 ) AS INTEGER ) * col2 AS col0 FROM tab0
----
26136
35
598436

query I rowsort
SELECT DISTINCT - col0 * col2 * col2 AS col1 FROM tab0
----
-26136
-35
-598436

query I rowsort
SELECT + 52 + - 6 FROM tab1, tab2 cor0
----
9 values hashing to 31818c9d4d325eb248735c97cb1dce39

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 86 col0 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to ed1a39c2752ca3723602e4a92c54bbc4

query I rowsort
SELECT cor0.col0 * + cor0.col1 * - col1 FROM tab0 AS cor0
----
-177504
-329315
-737009

query I rowsort
SELECT col2 + ( col0 ) AS col2 FROM tab2 AS cor0
----
104
117
34

query I rowsort
SELECT - col1 + - 30 * - col0 AS col0 FROM tab2 AS cor0
----
179
2281
2353

query I rowsort
SELECT + col1 * - 52 FROM tab0 AS cor0
----
-4472
-4732
-5044

query I rowsort
SELECT - cor1.col0 AS col0 FROM tab0, tab2 AS cor0, tab2 cor1, tab2 AS cor2
----
81 values hashing to adaea38eae032c1639715f21831dd376

query I rowsort
SELECT cor0.col0 * 94 + col1 + col0 FROM tab1 AS cor0
----
311
6090
7613

query I rowsort
SELECT + ( + cor0.col0 ) * cor0.col1 + 97 + - cor0.col1 FROM tab0 AS cor0
----
2075
3395
8105

query I rowsort
SELECT - - 83 AS col1 FROM tab0 AS cor0
----
83
83
83

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6600
SELECT col1 + CAST( - 33 AS SIGNED ) AS col0 FROM tab2
----
-16
-2
26

skipif mysql # not compatible
query I rowsort label-6600
SELECT col1 + CAST ( - 33 AS INTEGER ) AS col0 FROM tab2
----
-16
-2
26

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6601
SELECT - CAST( NULL AS SIGNED ) * - col2 + + col0 / - 61 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6601
SELECT - CAST ( NULL AS INTEGER ) * - col2 + + col0 / - 61 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col2 * col0 + col1 AS col2 FROM tab2 AS cor0
----
2087
220
3019

query I rowsort
SELECT ALL + + col2 * - col1 AS col0 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT DISTINCT + - col1 + cor0.col0 AS col2 FROM tab2 cor0
----
-24
19
62

query I rowsort
SELECT ALL col0 + + cor0.col1 * col1 FROM tab0 AS cor0
----
7420
8370
9444

query I rowsort
SELECT - 71 + col0 AS col2 FROM tab2 AS cor0
----
-64
7
8

query I rowsort
SELECT ALL + col2 * - cor0.col2 FROM tab1 AS cor0
----
-2916
-3249
-9216

query I rowsort
SELECT ALL + 34 + + col0 AS col0 FROM tab2 AS cor0
----
112
113
41

query I rowsort
SELECT DISTINCT col1 + + cor0.col2 * ( col1 * col1 ) AS col2 FROM tab0 AS cor0
----
244154
679133
9506

query I rowsort
SELECT cor0.col2 AS col1 FROM tab0, tab0 cor0, tab1 AS cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475

query I rowsort
SELECT - 17 * cor0.col1 FROM tab2 AS cor0
----
-1003
-289
-527

onlyif mysql # use DIV operator for integer division
query I rowsort label-6612
SELECT col1 DIV - col1 AS col1 FROM tab1 cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-6612
SELECT col1 / - col1 AS col1 FROM tab1 cor0
----
-1
-1
-1

query I rowsort
SELECT ALL + 6 * - col1 FROM tab2
----
-102
-186
-354

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6614
SELECT ALL + CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-6614
SELECT ALL + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT DISTINCT col0 + col2 + + tab0.col2 FROM tab0
----
253
37
90

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6616
SELECT + CAST( NULL AS DECIMAL ) + col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6616
SELECT + CAST ( NULL AS REAL ) + col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - col1 * + tab0.col1 AS col1 FROM tab0
----
-7396
-8281
-9409

onlyif mysql # use DIV operator for integer division
query I rowsort label-6618
SELECT col1 - + col1 * tab2.col1 DIV col0 AS col2 FROM tab2
----
-106
14
15

skipif mysql # not compatible
query I rowsort label-6618
SELECT col1 - + col1 * tab2.col1 / col0 AS col2 FROM tab2
----
-106
14
15

query I rowsort
SELECT tab2.col0 - - col0 FROM tab2
----
14
156
158

query I rowsort
SELECT - tab1.col0 + - 65 * + col1 FROM tab1
----
-1693
-714
-925

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6621
SELECT - + col0 * - cor0.col1 * + col2 + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6621
SELECT - + col0 * - cor0.col1 * + col2 + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 21 + col0 AS col1 FROM tab0 AS cor0
----
110
45
56

query I rowsort
SELECT + ( col0 ) + - cor0.col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT 76 AS col0 FROM tab1 AS cor0
----
76

query I rowsort
SELECT DISTINCT - + 91 FROM tab1 cor0
----
-91

query I rowsort
SELECT ALL + col0 * cor0.col1 * - 85 AS col1 FROM tab2 AS cor0
----
-114155
-18445
-391170

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + col2 ) * - col1 col0 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT - + col0 * + col1 AS col0 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT ALL ( - ( - col2 ) ) AS col2 FROM tab2
----
26
27
38

query I rowsort
SELECT + + col0 * + col0 FROM tab1 AS cor0
----
4096
6400
9

query I rowsort
SELECT ALL + - col1 + cor0.col1 * col1 AS col1 FROM tab1 AS cor0
----
156
650
90

query I rowsort
SELECT ALL + ( cor0.col1 ) FROM tab0 cor0
----
86
91
97

query I rowsort
SELECT ALL + - col2 * col2 + + col2 AS col0 FROM tab0 AS cor0
----
-1056
-6642
0

query I rowsort
SELECT DISTINCT - ( + col0 ) AS col1 FROM tab0 AS cor0
----
-24
-35
-89

query I rowsort
SELECT ALL + - ( + col0 ) + - ( + col2 ) + + col0 FROM tab1 AS cor0
----
-54
-57
-96

query I rowsort
SELECT - col2 - - 1 FROM tab1 AS cor0
----
-53
-56
-95

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6637
SELECT col1 - - CAST( NULL AS SIGNED ) * col0 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-6637
SELECT col1 - - CAST ( NULL AS INTEGER ) * col0 col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-6638
SELECT DISTINCT - col2 DIV 31 + 29 * col1 FROM tab1
----
289
374
753

skipif mysql # not compatible
query I rowsort label-6638
SELECT DISTINCT - col2 / 31 + 29 * col1 FROM tab1
----
289
374
753

onlyif mysql # use DIV operator for integer division
query I rowsort label-6639
SELECT - col0 DIV col0 col2 FROM tab1 AS cor0
----
-1
-1
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6639
SELECT - col0 / col0 col2 FROM tab1 AS cor0
----
-1
-1
-1

onlyif mysql # use DIV operator for integer division
query I rowsort label-6640
SELECT col0 * 7 DIV + col0 FROM tab1 AS cor0
----
7
7
7

skipif mysql # not compatible
query I rowsort label-6640
SELECT col0 * 7 / + col0 FROM tab1 AS cor0
----
7
7
7

query I rowsort
SELECT - - col0 + - 38 AS col1 FROM tab0 AS cor0
----
-14
-3
51

query I rowsort
SELECT DISTINCT cor0.col2 * + cor0.col0 AS col0 FROM tab2 AS cor0
----
189
2028
3002

onlyif mysql # use DIV operator for integer division
query I rowsort label-6643
SELECT col2 DIV - CAST( 7 AS SIGNED ) + + cor0.col2 AS col2 FROM tab0 AS cor0
----
1
29
71

skipif mysql # not compatible
query I rowsort label-6643
SELECT col2 / - CAST ( 7 AS INTEGER ) + + cor0.col2 AS col2 FROM tab0 AS cor0
----
1
29
71

query I rowsort
SELECT ALL + col1 + 21 * - col2 * cor0.col0 FROM tab0 AS cor0
----
-153167
-16546
-638

query I rowsort
SELECT - col2 * cor0.col0 + + 3 AS col2 FROM tab2 AS cor0
----
-186
-2025
-2999

query I rowsort
SELECT + - cor0.col2 + - 51 * - col2 - col0 FROM tab2 AS cor0
----
1222
1343
1821

query I rowsort
SELECT cor1.col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17

query I rowsort
SELECT ALL 88 * ( col1 ) AS col1 FROM tab1 AS cor0
----
1144
2288
880

query I rowsort
SELECT - + 21 * cor0.col0 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 842061a77290f3c487a42bebba978376

query I rowsort
SELECT DISTINCT + col0 + + 5 AS col2 FROM tab1
----
69
8
85

query I rowsort
SELECT tab1.col0 + col0 * + col2 FROM tab1
----
165
3712
7760

query I rowsort
SELECT + cor0.col2 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8

onlyif mysql # use DIV operator for integer division
query I rowsort label-6653
SELECT ALL + ( col2 ) DIV col0 + - col1 * + cor0.col2 + cor0.col0 AS col2 FROM tab2 AS cor0
----
-1456
-567
-827

skipif mysql # not compatible
query I rowsort label-6653
SELECT ALL + ( col2 ) / col0 + - col1 * + cor0.col2 + cor0.col0 AS col2 FROM tab2 AS cor0
----
-1456
-567
-827

query I rowsort
SELECT + col2 * - col1 - col1 AS col2 FROM tab1 AS cor0
----
-1261
-1430
-580

query I rowsort
SELECT ALL + 91 + - ( - col0 ) FROM tab2 AS cor0
----
169
170
98

query I rowsort
SELECT ALL + col1 * + cor0.col0 AS col0 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT - - 9 AS col0 FROM tab2 AS cor0
----
9
9
9

query I rowsort
SELECT ALL - 94 + - ( + col1 + + 71 ) * 73 AS col1 FROM tab1 cor0
----
-6007
-6226
-7175

query I rowsort
SELECT DISTINCT + 96 + + col2 FROM tab2 AS cor0
----
122
123
134

query I rowsort
SELECT DISTINCT cor0.col2 * - col2 FROM tab2 AS cor0
----
-1444
-676
-729

query I rowsort
SELECT ALL - 58 * + cor0.col0 + col1 AS col0 FROM tab0 AS cor0
----
-1306
-1933
-5071

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6662
SELECT CAST( NULL AS SIGNED ) * - col0 + - col1 * + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6662
SELECT CAST ( NULL AS INTEGER ) * - col0 + - col1 * + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + - 34 AS col2 FROM tab0 cor0
----
-34
-34
-34

query I rowsort
SELECT - 19 + 33 AS col2 FROM tab0 AS cor0
----
14
14
14

query I rowsort
SELECT - + 24 FROM tab2 cor0
----
-24
-24
-24

query I rowsort
SELECT ALL + ( col2 ) + - col0 AS col0 FROM tab2 AS cor0
----
-41
-52
20

query I rowsort
SELECT DISTINCT - cor0.col2 * + col2 AS col1 FROM tab2 AS cor0
----
-1444
-676
-729

query I rowsort
SELECT DISTINCT + ( + 68 ) * col0 AS col2 FROM tab0 cor0
----
1632
2380
6052

query I rowsort
SELECT DISTINCT + 32 AS col2 FROM tab1 AS cor0
----
32

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 37 + cor0.col0 * + col1 col0 FROM tab2 AS cor0
----
1380
254
4639

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab1.col0 * + tab1.col2 - 68 col2 FROM tab1
----
3580
7612
94

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6672
SELECT + + CAST( col1 AS SIGNED ) + col1 * ( + 59 + - cor0.col1 ) * cor0.col0 FROM tab2 cor0
----
56423
59
6107

skipif mysql # not compatible
query I rowsort label-6672
SELECT + + CAST ( col1 AS INTEGER ) + col1 * ( + 59 + - cor0.col1 ) * cor0.col0 FROM tab2 cor0
----
56423
59
6107

query I rowsort
SELECT DISTINCT + col1 + - 1 * col1 - + col0 FROM tab2
----
-7
-78
-79

query I rowsort
SELECT + - col1 + - cor0.col2 AS col1 FROM tab0 AS cor0
----
-119
-173
-98

query I rowsort
SELECT ALL + - 53 AS col2 FROM tab2 AS cor0
----
-53
-53
-53

query I rowsort
SELECT DISTINCT - cor0.col2 + - col0 AS col2 FROM tab1 AS cor0
----
-121
-176
-57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - ( - 12 ) col0 FROM tab2 AS cor0
----
-12

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( - 99 ) * - col1 + col2 col0 FROM tab2 AS cor0
----
-1645
-3042
-5815

query I rowsort
SELECT - - col2 + - col1 * - cor0.col1 FROM tab0 AS cor0
----
7429
8363
9410

query I rowsort
SELECT + 7 + col2 FROM tab2
----
33
34
45

query I rowsort
SELECT col1 * - 88 AS col2 FROM tab2
----
-1496
-2728
-5192

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6682
SELECT ALL col0 + CAST( NULL AS DECIMAL ) col0 FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6682
SELECT ALL col0 + CAST ( NULL AS REAL ) col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT + + col1 * ( col1 * + col0 + + col0 ) AS col0 FROM tab2 AS cor0
----
24174
276120
6944

onlyif mysql # use DIV operator for integer division
query I rowsort label-6684
SELECT col0 - 44 DIV - col0 AS col2 FROM tab1 AS cor0
----
17
64
80

skipif mysql # not compatible
query I rowsort label-6684
SELECT col0 - 44 / - col0 AS col2 FROM tab1 AS cor0
----
17
64
80

query I rowsort
SELECT ALL + col0 * tab2.col2 + + col0 FROM tab2
----
196
2106
3081

query I rowsort
SELECT ALL - tab1.col1 * col1 + + 84 * col2 FROM tab1
----
3860
4688
7895

query I rowsort
SELECT DISTINCT col1 + - col2 * ( col2 * col2 ) FROM tab2
----
-17517
-19652
-54855

query I rowsort
SELECT + 32 FROM tab0, tab1 cor0, tab0 AS cor1
----
27 values hashing to cf4f01ac97eb83445b1721f3ae28961a

query I rowsort
SELECT - col0 - - 70 FROM tab2 AS cor0
----
-8
-9
63

query IIIIIIIIIIII rowsort
SELECT * FROM tab0, tab0 cor0, tab1 AS cor1, tab0 cor2
----
972 values hashing to 5342fb4caf4767cb98bd21989bad099f

query I rowsort
SELECT DISTINCT - col2 + 25 + - col0 AS col0 FROM tab1 cor0
----
-151
-32
-96

query I rowsort
SELECT DISTINCT - - col0 + - ( ( col0 ) ) AS col2 FROM tab1 AS cor0
----
0

query I rowsort
SELECT ALL - + col0 * cor0.col2 FROM tab0 cor0
----
-35
-7298
-792

query I rowsort
SELECT + col0 * - 95 * col1 FROM tab2 AS cor0
----
-127585
-20615
-437190

onlyif mysql # use DIV operator for integer division
query I rowsort label-6695
SELECT DISTINCT + cor0.col0 - col1 DIV - cor0.col1 AS col1 FROM tab0 AS cor0
----
25
36
90

skipif mysql # not compatible
query I rowsort label-6695
SELECT DISTINCT + cor0.col0 - col1 / - cor0.col1 AS col1 FROM tab0 AS cor0
----
25
36
90

query I rowsort
SELECT + 83 FROM tab2, tab2 AS cor0
----
9 values hashing to 18f405c31a0fb47ce3cc9f7effa8855c

query I rowsort
SELECT - + cor0.col0 + - cor0.col2 FROM tab1 AS cor0
----
-121
-176
-57

onlyif mysql # use DIV operator for integer division
query I rowsort label-6698
SELECT ALL tab1.col1 DIV - tab1.col0 AS col2 FROM tab1
----
-8
0
0

skipif mysql # not compatible
query I rowsort label-6698
SELECT ALL tab1.col1 / - tab1.col0 AS col2 FROM tab1
----
-8
0
0

query I rowsort
SELECT - 94 + col0 + col0 FROM tab0 AS cor0
----
-24
-46
84

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6700
SELECT DISTINCT - col2 + + col0 * - CAST( 31 AS SIGNED ) FROM tab1 AS cor0
----
-147
-2041
-2576

skipif mysql # not compatible
query I rowsort label-6700
SELECT DISTINCT - col2 + + col0 * - CAST ( 31 AS INTEGER ) FROM tab1 AS cor0
----
-147
-2041
-2576

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6701
SELECT + - col2 * + col0 + CAST( col1 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-706
-7207
62

skipif mysql # not compatible
query I rowsort label-6701
SELECT + - col2 * + col0 + CAST ( col1 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-706
-7207
62

query I rowsort
SELECT ALL + col0 + col1 * + col0 FROM tab0 cor0
----
2088
3430
8188

query I rowsort
SELECT + tab0.col0 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63

onlyif mysql # use DIV operator for integer division
query I rowsort label-6704
SELECT 58 * - col2 + + col1 DIV - cor0.col1 + + col2 DIV - 24 FROM tab0 AS cor0
----
-1916
-4760
-59

skipif mysql # not compatible
query I rowsort label-6704
SELECT 58 * - col2 + + col1 / - cor0.col1 + + col2 / - 24 FROM tab0 AS cor0
----
-1916
-4760
-59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 81 * col0 * - col2 col0 FROM tab1 AS cor0
----
13122
295488
622080

query I rowsort
SELECT - - 57 + col1 + + 95 AS col0 FROM tab0 AS cor0
----
238
243
249

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6707
SELECT ALL - col1 * - cor0.col0 * - CAST( + 13 AS SIGNED ) FROM tab1 AS cor0
----
-1014
-13520
-8320

skipif mysql # not compatible
query I rowsort label-6707
SELECT ALL - col1 * - cor0.col0 * - CAST ( + 13 AS INTEGER ) FROM tab1 AS cor0
----
-1014
-13520
-8320

query I rowsort
SELECT ALL - col1 * cor0.col0 + + col1 * + col1 FROM tab2 AS cor0
----
-1054
-1121
744

query I rowsort
SELECT cor0.col0 + col1 * col1 FROM tab0 cor0
----
7420
8370
9444

query I rowsort
SELECT + + cor0.col2 + cor0.col0 AS col0 FROM tab1 AS cor0
----
121
176
57

query I rowsort
SELECT + + cor0.col0 * + col0 + - ( + col2 * + 99 ) AS col0 FROM tab2 AS cor0
----
-2624
2479
3510

query I rowsort
SELECT ALL - cor1.col0 AS col1 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 729c1edda9332398299f39cd174ed840

onlyif mysql # use DIV operator for integer division
query I rowsort label-6713
SELECT ALL 76 + + ( - col1 ) * col1 DIV col0 FROM tab2 AS cor0
----
-61
32
73

skipif mysql # not compatible
query I rowsort label-6713
SELECT ALL 76 + + ( - col1 ) * col1 / col0 FROM tab2 AS cor0
----
-61
32
73

query I rowsort
SELECT ALL + cor0.col1 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892

query I rowsort
SELECT ALL - - 35 AS col1 FROM tab0 AS cor0
----
35
35
35

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6716
SELECT DISTINCT CAST( + col2 AS SIGNED ) FROM tab0 cor0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-6716
SELECT DISTINCT CAST ( + col2 AS INTEGER ) FROM tab0 cor0
----
1
33
82

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6717
SELECT CAST( NULL AS SIGNED ) * + col1 * - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6717
SELECT CAST ( NULL AS INTEGER ) * + col1 * - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - col2 * + col0 col2 FROM tab0 AS cor0
----
3395
664118
68112

query I rowsort
SELECT DISTINCT + - col2 + ( col2 ) FROM tab2 AS cor0
----
0

query IIIIIIIIIIII rowsort
SELECT * FROM tab1, tab0 AS cor0, tab1 cor1, tab1 cor2
----
972 values hashing to 0be13143d898cc667fe1a2dd93b34703

query I rowsort
SELECT DISTINCT + - 17 * 46 AS col1 FROM tab2 AS cor0
----
-782

query I rowsort
SELECT DISTINCT - + col2 * col1 + + col1 AS col1 FROM tab0 cor0
----
-2752
-7371
0

query I rowsort
SELECT - 84 AS col2 FROM tab0 AS cor0
----
-84
-84
-84

query I rowsort
SELECT - - 47 - col1 AS col2 FROM tab1 AS cor0
----
21
34
37

query I rowsort
SELECT col1 * col0 * - col2 FROM tab1 cor0
----
-36480
-4212
-99840

onlyif mysql # use DIV operator for integer division
query I rowsort label-6726
SELECT ALL + col2 + + col2 - - tab0.col0 DIV + col2 AS col1 FROM tab0
----
165
37
66

skipif mysql # not compatible
query I rowsort label-6726
SELECT ALL + col2 + + col2 - - tab0.col0 / + col2 AS col1 FROM tab0
----
165
37
66

query I rowsort
SELECT + cor0.col2 - - cor0.col2 * 31 FROM tab1, tab1 cor0
----
9 values hashing to 4cc00c42fb3464a2bfcec3027e2e7bad

query I rowsort
SELECT DISTINCT + 65 * + col0 AS col2 FROM tab2
----
455
5070
5135

query I rowsort
SELECT DISTINCT ( ( col1 ) * - col1 + - col1 ) FROM tab0
----
-7482
-8372
-9506

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab0 AS cor0 CROSS JOIN tab0, tab2 AS cor1, tab0 AS cor2
----
3645 values hashing to 4fa4bd3038de6e74a345debc8ab4cd53

query I rowsort
SELECT ALL 58 * col1 AS col0 FROM tab2
----
1798
3422
986

query I rowsort
SELECT DISTINCT tab1.col0 FROM tab1, tab0, tab2 AS cor0, tab0 AS cor1
----
3
64
80

query I rowsort
SELECT DISTINCT + col1 * - col0 * - 14 FROM tab1
----
1092
14560
8960

query I rowsort
SELECT + - col1 * + col1 AS col1 FROM tab2 AS cor0
----
-289
-3481
-961

onlyif mysql # use DIV operator for integer division
query I rowsort label-6735
SELECT - 87 DIV col0 col0 FROM tab0 AS cor0
----
-2
-3
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6735
SELECT - 87 / col0 col0 FROM tab0 AS cor0
----
-2
-3
0

query I rowsort
SELECT ( + cor0.col1 ) AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775

query I rowsort
SELECT DISTINCT 62 AS col0 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
62

query I rowsort
SELECT - col2 + 88 AS col1 FROM tab1
----
-8
31
34

query I rowsort
SELECT ALL - col2 * ( col1 * - col1 ) AS col0 FROM tab1
----
16224
36504
5700

query I rowsort
SELECT DISTINCT - + col2 + cor0.col0 FROM tab2 AS cor0
----
-20
41
52

query I rowsort
SELECT - 59 * 10 FROM tab1, tab1 cor0
----
9 values hashing to 7a8d36aea5b6ec085092bfbf7b24d940

query I rowsort
SELECT 43 AS col0 FROM tab1 AS cor0
----
43
43
43

query I rowsort
SELECT 91 * - col0 AS col0 FROM tab2 AS cor0
----
-637
-7098
-7189

query I rowsort
SELECT + + 79 + - ( + col2 ) FROM tab0 cor0
----
-3
46
78

query I rowsort
SELECT - 39 * col0 AS col2 FROM tab0 AS cor0
----
-1365
-3471
-936

skipif mysql # not compatible
query I rowsort
SELECT - CAST ( col0 AS REAL ) * cor0.col2 AS col2 FROM tab1 AS cor0
----
-162
-3648
-7680

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6747
SELECT + CAST( NULL AS SIGNED ) * ( - col1 ) + + CAST( NULL AS SIGNED ) / cor0.col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6747
SELECT + CAST ( NULL AS INTEGER ) * ( - col1 ) + + CAST ( NULL AS INTEGER ) / cor0.col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 11 AS col0 FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to 7120875811e4d19a19b69cd34b6bc202

query I rowsort
SELECT ALL col2 - - col2 * + 39 FROM tab2
----
1040
1080
1520

onlyif mysql # use DIV operator for integer division
query I rowsort label-6750
SELECT ALL + col1 * - col0 DIV col0 + cor0.col0 AS col1 FROM tab1 AS cor0
----
-23
54
67

skipif mysql # not compatible
query I rowsort label-6750
SELECT ALL + col1 * - col0 / col0 + cor0.col0 AS col1 FROM tab1 AS cor0
----
-23
54
67

query I rowsort
SELECT ALL - ( - col2 * + tab0.col2 ) AS col2 FROM tab0
----
1
1089
6724

query I rowsort
SELECT - col1 * - col1 + col1 FROM tab1
----
110
182
702

query I rowsort
SELECT + 95 * - col2 + col0 * 79 * col0 AS col2 FROM tab0
----
42369
617969
96680

query I rowsort
SELECT DISTINCT - 8 + - cor0.col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-15
-86
-87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 - + col2 col2 FROM tab1 AS cor0
----
-109
-67
-80

query I rowsort
SELECT - col1 * col2 + + col0 FROM tab1 AS cor0
----
-1168
-1401
-506

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6757
SELECT ALL cor0.col0 * CAST( 40 AS SIGNED ) + col2 AS col2 FROM tab2 AS cor0
----
307
3146
3198

skipif mysql # not compatible
query I rowsort label-6757
SELECT ALL cor0.col0 * CAST ( 40 AS INTEGER ) + col2 AS col2 FROM tab2 AS cor0
----
307
3146
3198

query I rowsort
SELECT DISTINCT col1 * - 37 AS col0 FROM tab0 AS cor0
----
-3182
-3367
-3589

query I rowsort
SELECT ALL col0 * col0 * - 17 + + col0 FROM tab1 AS cor0
----
-108720
-150
-69568

query I rowsort
SELECT DISTINCT + col0 + 12 FROM tab1 cor0
----
15
76
92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * - 26 col2 FROM tab1 cor0
----
-1404
-1482
-2496

onlyif mysql # use DIV operator for integer division
query I rowsort label-6762
SELECT DISTINCT + col1 DIV col2 + col1 * col2 FROM tab0 AS cor0
----
194
2840
7463

skipif mysql # not compatible
query I rowsort label-6762
SELECT DISTINCT + col1 / col2 + col1 * col2 FROM tab0 AS cor0
----
194
2840
7463

query I rowsort
SELECT ALL + - cor0.col1 * + col0 + col2 * - cor0.col0 FROM tab2 AS cor0
----
-406
-4345
-6630

query IIIIIIIII rowsort
SELECT * FROM tab2, tab0 AS cor0 CROSS JOIN tab1 cor1
----
243 values hashing to 26173f1193178352de9a2e4ca7f09d53

onlyif mysql # use DIV operator for integer division
query I rowsort label-6765
SELECT - col0 DIV + cor0.col2 FROM tab0 AS cor0
----
-1
-35
0

skipif mysql # not compatible
query I rowsort label-6765
SELECT - col0 / + cor0.col2 FROM tab0 AS cor0
----
-1
-35
0

query I rowsort
SELECT 50 + col1 * col1 FROM tab2 AS cor0
----
1011
339
3531

query I rowsort
SELECT + ( 5 ) + - cor0.col1 * + cor0.col0 * - col2 FROM tab0 AS cor0
----
3400
664123
68117

query I rowsort
SELECT - + ( cor0.col0 ) * - col2 FROM tab2 cor0
----
189
2028
3002

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6769
SELECT CAST( NULL AS SIGNED ) / - 41 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6769
SELECT CAST ( NULL AS INTEGER ) / - 41 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - ( - ( - col2 ) ) * + ( cor0.col1 * col0 ) AS col1 FROM tab0 AS cor0
----
-3395
-664118
-68112

query I rowsort
SELECT + - col0 * + cor0.col1 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT DISTINCT - - col2 * - cor0.col1 FROM tab0 cor0
----
-2838
-7462
-97

query I rowsort
SELECT - col2 + cor0.col1 * col2 + 18 AS col2 FROM tab0 AS cor0
----
114
2823
7398

query I rowsort
SELECT 93 + + cor0.col1 + col2 AS col1 FROM tab1 AS cor0
----
160
173
202

query I rowsort
SELECT DISTINCT - tab2.col2 * 13 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
-338
-351
-494

query I rowsort
SELECT 70 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 9758da65ae4711e3e8c8def2fe026911

query I rowsort
SELECT ALL - col2 * - 71 AS col2 FROM tab1
----
3834
4047
6816

query I rowsort
SELECT ALL - - 85 * cor0.col0 AS col0 FROM tab0 AS cor0
----
2040
2975
7565

query I rowsort
SELECT + - col0 * col2 * col2 FROM tab1 cor0
----
-207936
-737280
-8748

query I rowsort
SELECT DISTINCT + 18 * + col0 FROM tab0 cor0
----
1602
432
630

query I rowsort
SELECT DISTINCT + col1 + + col2 + ( col2 + col0 ) * 5 AS col2 FROM tab2 AS cor0
----
228
605
640

query I rowsort
SELECT - - cor0.col1 + col1 AS col2 FROM tab1 AS cor0
----
20
26
52

query I rowsort
SELECT ALL ( col1 ) * cor0.col0 AS col2 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT ALL col0 * + col1 * 86 AS col0 FROM tab0 AS cor0
----
177504
291970
696514

query I rowsort
SELECT ALL + + col0 + - col0 * ( col0 ) * - col1 AS col0 FROM tab0 AS cor0
----
118860
49560
720900

onlyif mysql # use DIV operator for integer division
query I rowsort label-6786
SELECT ALL col0 DIV cor0.col0 AS col2 FROM tab0 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6786
SELECT ALL col0 / cor0.col0 AS col2 FROM tab0 cor0
----
1
1
1

query I rowsort
SELECT + cor0.col1 * + col2 - - 36 AS col1 FROM tab0 AS cor0
----
133
2874
7498

onlyif mysql # use DIV operator for integer division
query I rowsort label-6788
SELECT - + 37 DIV - col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6788
SELECT - + 37 / - col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - 87 * + col1 FROM tab2 AS cor0
----
-1479
-2697
-5133

onlyif mysql # use DIV operator for integer division
query I rowsort label-6790
SELECT DISTINCT ( - col2 ) + - 61 DIV + col1 AS col0 FROM tab2 AS cor0
----
-27
-28
-41

skipif mysql # not compatible
query I rowsort label-6790
SELECT DISTINCT ( - col2 ) + - 61 / + col1 AS col0 FROM tab2 AS cor0
----
-27
-28
-41

query I rowsort
SELECT DISTINCT + - 94 + + col2 AS col2 FROM tab2 AS cor0
----
-56
-67
-68

query I rowsort
SELECT col1 * + col2 * - 48 AS col2 FROM tab0
----
-136224
-358176
-4656

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6793
SELECT ALL - cor0.col1 * CAST( - 84 AS SIGNED ) * col1 FROM tab0 AS cor0
----
621264
695604
790356

skipif mysql # not compatible
query I rowsort label-6793
SELECT ALL - cor0.col1 * CAST ( - 84 AS INTEGER ) * col1 FROM tab0 AS cor0
----
621264
695604
790356

query I rowsort
SELECT 31 + + col1 FROM tab0
----
117
122
128

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6795
SELECT DISTINCT 35 * col1 + + CAST( NULL AS DECIMAL ) + 59 AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-6795
SELECT DISTINCT 35 * col1 + + CAST ( NULL AS REAL ) + 59 AS col2 FROM tab2
----
NULL

query I rowsort
SELECT tab2.col0 + tab2.col0 + col1 FROM tab2
----
175
215
45

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( col0 ) + - ( - col0 ) + - col0 col0 FROM tab1
----
3
64
80

query I rowsort
SELECT ALL 93 * - cor0.col1 FROM tab1 cor0
----
-1209
-2418
-930

query I rowsort
SELECT ALL - ( + col2 ) + cor0.col0 - - col2 FROM tab2 AS cor0
----
7
78
79

onlyif mysql # use DIV operator for integer division
query I rowsort label-6800
SELECT ALL + + 17 - - col1 DIV col2 AS col1 FROM tab1 cor0
----
17
17
17

skipif mysql # not compatible
query I rowsort label-6800
SELECT ALL + + 17 - - col1 / col2 AS col1 FROM tab1 cor0
----
17
17
17

query I rowsort
SELECT DISTINCT 14 + 36 + + col1 AS col0 FROM tab1 AS cor0
----
60
63
76

query I rowsort
SELECT - - ( 53 ) + col2 * + col1 AS col1 FROM tab1 AS cor0
----
1301
1457
623

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6803
SELECT DISTINCT + + CAST( NULL AS SIGNED ) + + col1 * - col0 AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6803
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) + + col1 * - col0 AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + CAST ( col2 AS REAL ) / + col2 + + col2 / - col2 AS col2 FROM tab1 AS cor0
----
0

query I rowsort
SELECT tab1.col0 + - col2 * + col2 FROM tab1
----
-2913
-3185
-9136

query I rowsort
SELECT ALL + - ( - col0 ) + - col2 FROM tab1 AS cor0
----
-16
-51
7

query I rowsort
SELECT ALL + col2 + + col2 * col2 AS col0 FROM tab2 AS cor0
----
1482
702
756

query I rowsort
SELECT ALL + 20 * - col0 FROM tab1
----
-1280
-1600
-60

query I rowsort
SELECT + tab1.col0 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870

query I rowsort
SELECT - 58 AS col2 FROM tab2, tab2 cor0
----
9 values hashing to de0811e670e75d2aeeb657e32bddb0c0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col2 - - col1 col2 FROM tab0 AS cor0
----
53
9
96

query I rowsort
SELECT ALL - col2 * - col2 + col0 * col1 AS col2 FROM tab0 AS cor0
----
14823
3153
3396

query I rowsort
SELECT cor0.col1 + 8 * col0 AS col2 FROM tab0 AS cor0
----
278
377
803

onlyif mysql # use DIV operator for integer division
query I rowsort label-6814
SELECT DISTINCT + col0 DIV - col0 col1 FROM tab1 cor0
----
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6814
SELECT DISTINCT + col0 / - col0 col1 FROM tab1 cor0
----
-1

query I rowsort
SELECT ALL - - col2 * - 52 AS col0 FROM tab0 AS cor0
----
-1716
-4264
-52

query I rowsort
SELECT - col2 + col1 * col2 FROM tab2 AS cor0
----
1508
608
810

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col2 * + cor0.col2 col2 FROM tab1 AS cor0
----
2916
3249
9216

query I rowsort
SELECT ALL col1 * + ( 22 ) - + col0 AS col2 FROM tab1 AS cor0
----
156
206
569

query I rowsort
SELECT + 57 * col2 AS col1 FROM tab0 AS cor0
----
1881
4674
57

query I rowsort
SELECT - 29 * + col2 * col2 - - 84 AS col2 FROM tab1 AS cor0
----
-267180
-84480
-94137

query I rowsort
SELECT col1 + - 16 * - col1 AS col1 FROM tab1 AS cor0
----
170
221
442

query I rowsort
SELECT ALL 62 AS col0 FROM tab1 cor0
----
62
62
62

query I rowsort
SELECT ALL - col0 * col1 * + ( ( + col1 ) ) FROM tab0 AS cor0
----
-177504
-329315
-737009

query I rowsort
SELECT ALL - - col0 * - col2 * + 62 AS col2 FROM tab2 AS cor0
----
-11718
-125736
-186124

query I rowsort
SELECT ALL ( col1 ) * 20 AS col2 FROM tab0
----
1720
1820
1940

query I rowsort
SELECT 58 + col0 * + 18 AS col2 FROM tab0 AS cor0
----
1660
490
688

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6827
SELECT + ( - col2 ) / + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6827
SELECT + ( - col2 ) / + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * col0 * - col1 col0 FROM tab1 AS cor0
----
-234
-40960
-83200

onlyif mysql # use DIV operator for integer division
query I rowsort label-6829
SELECT - - cor0.col2 DIV + col2 col1 FROM tab0 AS cor0
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6829
SELECT - - cor0.col2 / + col2 col1 FROM tab0 AS cor0
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 40 * - col0 col1 FROM tab1
----
-120
-2560
-3200

query I rowsort
SELECT - - col0 * - 87 FROM tab2 AS cor0
----
-609
-6786
-6873

query I rowsort
SELECT ALL + ( col0 ) * col1 AS col0 FROM tab1
----
1040
640
78

query I rowsort
SELECT ALL col2 * + col0 * + col0 FROM tab0
----
1225
19008
649522

query I rowsort
SELECT cor1.col2 FROM tab0, tab0 cor0, tab0 cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475

query I rowsort
SELECT - col1 + + col1 * col1 FROM tab2
----
272
3422
930

query I rowsort
SELECT DISTINCT cor0.col0 + + cor0.col1 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
29
74
93

query I rowsort
SELECT ALL + ( tab1.col2 * - 50 ) FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to fa152e7b63e0bbdf47a6c4fad903b281

onlyif mysql # use DIV operator for integer division
query I rowsort label-6838
SELECT ALL - col1 DIV col0 AS col0 FROM tab2 cor0
----
-4
0
0

skipif mysql # not compatible
query I rowsort label-6838
SELECT ALL - col1 / col0 AS col0 FROM tab2 cor0
----
-4
0
0

query I rowsort
SELECT + col0 * + col2 * col2 AS col1 FROM tab0 AS cor0
----
26136
35
598436

query I rowsort
SELECT DISTINCT col2 * ( + col2 ) FROM tab1 AS cor0
----
2916
3249
9216

query I rowsort
SELECT ALL ( - 53 ) FROM tab0 AS cor0
----
-53
-53
-53

query I rowsort
SELECT DISTINCT col0 * ( + col2 ) AS col0 FROM tab2
----
189
2028
3002

query I rowsort
SELECT col1 * - col2 - tab2.col1 FROM tab2
----
-1593
-663
-868

query I rowsort
SELECT col1 * - 18 FROM tab0 AS cor0
----
-1548
-1638
-1746

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6845
SELECT CAST( 27 AS SIGNED ) FROM tab0, tab2 AS cor0
----
9 values hashing to 701bf12d86392cb1585d9e4f3c72e9a8

skipif mysql # not compatible
query I rowsort label-6845
SELECT CAST ( 27 AS INTEGER ) FROM tab0, tab2 AS cor0
----
9 values hashing to 701bf12d86392cb1585d9e4f3c72e9a8

query I rowsort
SELECT + col2 * cor0.col1 + 56 * - col2 FROM tab0 AS cor0
----
2870
41
990

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6847
SELECT - CAST( NULL AS SIGNED ) * col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6847
SELECT - CAST ( NULL AS INTEGER ) * col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT + col0 * cor0.col0 + cor0.col0 FROM tab0 AS cor0
----
1260
600
8010

query I rowsort
SELECT ALL 20 AS col2 FROM tab0
----
20
20
20

query I rowsort
SELECT 9 * tab2.col0 AS col1 FROM tab2
----
63
702
711

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6851
SELECT CAST( ( col1 ) AS SIGNED ) col0 FROM tab1
----
10
13
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6851
SELECT CAST ( ( col1 ) AS INTEGER ) col0 FROM tab1
----
10
13
26

query I rowsort
SELECT + col2 * + col0 + col0 * + col2 AS col2 FROM tab0
----
14596
1584
70

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6853
SELECT DISTINCT CAST( - col2 AS SIGNED ) * - col2 FROM tab0
----
1
1089
6724

skipif mysql # not compatible
query I rowsort label-6853
SELECT DISTINCT CAST ( - col2 AS INTEGER ) * - col2 FROM tab0
----
1
1089
6724

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6854
SELECT ( + col1 ) * col0 + CAST( NULL AS DECIMAL ) * col1 + - col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6854
SELECT ( + col1 ) * col0 + CAST ( NULL AS REAL ) * col1 + - col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT + tab2.col1 * 12 * + col1 FROM tab2
----
11532
3468
41772

query I rowsort
SELECT - col1 + col0 * + 94 * - col1 FROM tab0 AS cor0
----
-194102
-319227
-761397

query I rowsort
SELECT DISTINCT col2 * col0 + col1 FROM tab1 cor0
----
188
3658
7693

query I rowsort
SELECT cor0.col1 + + col2 * 90 FROM tab2 AS cor0
----
2399
2461
3437

onlyif mysql # use DIV operator for integer division
query I rowsort label-6859
SELECT ALL + - cor0.col1 DIV col2 + - 92 FROM tab1 AS cor0
----
-92
-92
-92

skipif mysql # not compatible
query I rowsort label-6859
SELECT ALL + - cor0.col1 / col2 + - 92 FROM tab1 AS cor0
----
-92
-92
-92

query I rowsort
SELECT - 5 * col0 FROM tab2 AS cor0
----
-35
-390
-395

query I rowsort
SELECT + 24 AS col2 FROM tab2 cor0
----
24
24
24

query I rowsort
SELECT + 40 + - cor0.col2 AS col1 FROM tab0 AS cor0
----
-42
39
7

query I rowsort
SELECT DISTINCT + 9 AS col0 FROM tab0 cor0
----
9

query I rowsort
SELECT - cor0.col0 * - col2 + - col1 * col2 FROM tab0 AS cor0
----
-164
-2046
-62

query I rowsort
SELECT DISTINCT ( col1 ) * + cor0.col1 + 36 FROM tab2 cor0
----
325
3517
997

onlyif mysql # use DIV operator for integer division
query I rowsort label-6866
SELECT ALL col0 + col0 DIV col2 - col2 FROM tab0
----
-9
69
8

skipif mysql # not compatible
query I rowsort label-6866
SELECT ALL col0 + col0 / col2 - col2 FROM tab0
----
-9
69
8

query I rowsort
SELECT DISTINCT - - cor0.col0 AS col0 FROM tab0 cor0
----
24
35
89

onlyif mysql # use DIV operator for integer division
query I rowsort label-6868
SELECT ALL col2 + - col0 DIV + col0 AS col2 FROM tab0 AS cor0
----
0
32
81

skipif mysql # not compatible
query I rowsort label-6868
SELECT ALL col2 + - col0 / + col0 AS col2 FROM tab0 AS cor0
----
0
32
81

query I rowsort
SELECT - col1 + col2 + - tab2.col2 FROM tab2
----
-17
-31
-59

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6870
SELECT + tab1.col1 + col1 * + CAST( NULL AS SIGNED ) + + col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6870
SELECT + tab1.col1 + col1 * + CAST ( NULL AS INTEGER ) + + col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col0 + tab0.col1 AS col1 FROM tab0
----
110
132
180

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6872
SELECT DISTINCT CAST( NULL AS SIGNED ) * 84 AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6872
SELECT DISTINCT CAST ( NULL AS INTEGER ) * 84 AS col0 FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( col1 ) col2 FROM tab2 AS cor0
----
17
31
59

query I rowsort
SELECT DISTINCT col2 + + cor0.col0 * col0 * 55 FROM tab1 AS cor0
----
225337
352096
549

query I rowsort
SELECT ALL + + cor0.col0 + col2 AS col2 FROM tab2 AS cor0
----
104
117
34

query I rowsort
SELECT - col1 + col2 * col1 FROM tab2
----
1475
629
806

query I rowsort
SELECT col2 - col2 * - col0 FROM tab2
----
2054
216
3040

onlyif mysql # use DIV operator for integer division
query I rowsort label-6878
SELECT - 11 DIV - cor0.col1 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 14fcfa6c11198893073049d94262832c

skipif mysql # not compatible
query I rowsort label-6878
SELECT - 11 / - cor0.col1 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 14fcfa6c11198893073049d94262832c

query I rowsort
SELECT - col0 + + 92 AS col2 FROM tab1
----
12
28
89

query I rowsort
SELECT 57 + 11 FROM tab0
----
68
68
68

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6881
SELECT ALL + ( 17 ) + - col1 / CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6881
SELECT ALL + ( 17 ) + - col1 / CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-6882
SELECT - + ( - col0 ) DIV cor0.col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6882
SELECT - + ( - col0 ) / cor0.col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + + 86 + + col0 FROM tab0 AS cor0
----
110
121
175

query I rowsort
SELECT ALL + - 68 * 5 + cor0.col0 * cor0.col1 AS col1 FROM tab0 cor0
----
1724
3055
7759

query I rowsort
SELECT ALL + ( + tab1.col0 ) AS col0 FROM tab1
----
3
64
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 65 col1 FROM tab1
----
65

query I rowsort
SELECT - + 62 AS col0 FROM tab1 AS cor0
----
-62
-62
-62

query I rowsort
SELECT ALL + 3 + col2 * col1 FROM tab0 AS cor0
----
100
2841
7465

query I rowsort
SELECT DISTINCT + col2 * + ( col2 ) + col2 + + col2 AS col0 FROM tab1 AS cor0
----
3024
3363
9408

query I rowsort
SELECT DISTINCT + col0 * + col1 - col0 AS col1 FROM tab1 cor0
----
576
75
960

onlyif mysql # use DIV operator for integer division
query I rowsort label-6891
SELECT DISTINCT + col2 * col1 + cor0.col2 DIV col0 FROM tab2 AS cor0
----
1534
646
840

skipif mysql # not compatible
query I rowsort label-6891
SELECT DISTINCT + col2 * col1 + cor0.col2 / col0 FROM tab2 AS cor0
----
1534
646
840

query I rowsort
SELECT DISTINCT + 7 AS col0 FROM tab0, tab2 AS cor0
----
7

query I rowsort
SELECT ALL + 23 * col1 AS col2 FROM tab2
----
1357
391
713

query I rowsort
SELECT ALL col1 + cor0.col1 * cor0.col0 FROM tab0 AS cor0
----
2150
3492
8190

query I rowsort
SELECT ALL col2 + + col2 + col1 FROM tab1 cor0
----
124
134
205

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 66 + col1 col1 FROM tab1 AS cor0
----
-40
-53
-56

query I rowsort
SELECT DISTINCT - col2 * col2 - cor0.col1 FROM tab1 AS cor0
----
-2942
-3259
-9229

query I rowsort
SELECT DISTINCT + + 42 FROM tab2 AS cor0
----
42

query I rowsort
SELECT ( col1 * col0 ) AS col0 FROM tab1
----
1040
640
78

query I rowsort
SELECT DISTINCT + col0 + + col0 - + col0 AS col2 FROM tab2 cor0
----
7
78
79

query I rowsort
SELECT - - 8 * col0 FROM tab0 AS cor0
----
192
280
712

query I rowsort
SELECT ALL - 28 * + cor0.col0 + col0 FROM tab2 AS cor0
----
-189
-2106
-2133

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6903
SELECT ALL col2 / + CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6903
SELECT ALL col2 / + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col2 + 95 FROM tab2 AS cor0
----
121
122
133

query I rowsort
SELECT ALL - - col1 + ( - 84 ) FROM tab0 cor0
----
13
2
7

query I rowsort
SELECT - - col2 * 39 * col0 + col1 AS col1 FROM tab1 AS cor0
----
142282
299533
6344

query I rowsort
SELECT col1 * - cor0.col0 FROM tab1 cor0
----
-1040
-640
-78

query I rowsort
SELECT 29 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 1e7120ba8e9191084172ddced17e5eb2

onlyif mysql # use DIV operator for integer division
query I rowsort label-6909
SELECT ALL col2 DIV + 90 AS col2 FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-6909
SELECT ALL col2 / + 90 AS col2 FROM tab1 AS cor0
----
0
0
1

query I rowsort
SELECT col1 * + ( 57 ) + col2 FROM tab0 AS cor0
----
4935
5269
5530

query I rowsort
SELECT col0 + - cor0.col1 AS col2 FROM tab1 AS cor0
----
-23
54
67

query I rowsort
SELECT DISTINCT - - cor0.col1 AS col2 FROM tab0 cor0
----
86
91
97

query I rowsort
SELECT DISTINCT - col0 + + 67 FROM tab2 AS cor0
----
-11
-12
60

query I rowsort
SELECT - col2 + - 21 FROM tab0 AS cor0
----
-103
-22
-54

query I rowsort
SELECT ALL + col2 * col2 * - col1 FROM tab1 AS cor0
----
-119808
-32490
-75816

query I rowsort
SELECT + col2 + + 35 FROM tab0 AS cor0
----
117
36
68

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6917
SELECT ALL col1 * ( col0 ) + col2 + - CAST( - 76 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
2173
3472
8257

skipif mysql # not compatible
query I rowsort label-6917
SELECT ALL col1 * ( col0 ) + col2 + - CAST ( - 76 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
2173
3472
8257

onlyif mysql # use DIV operator for integer division
query I rowsort label-6918
SELECT DISTINCT col0 DIV ( - col0 + + cor0.col1 ) FROM tab0 AS cor0
----
0
44

skipif mysql # not compatible
query I rowsort label-6918
SELECT DISTINCT col0 / ( - col0 + + cor0.col1 ) FROM tab0 AS cor0
----
0
44

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6919
SELECT ALL col1 * + CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6919
SELECT ALL col1 * + CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 60 col2 FROM tab1 AS cor0
----
-60
-60
-60

query I rowsort
SELECT DISTINCT 80 * col2 FROM tab1 AS cor0
----
4320
4560
7680

query I rowsort
SELECT ALL cor1.col1 * 82 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 8215cfa673f637be0742c92b8c5ca241

query I rowsort
SELECT - + ( col2 ) + cor0.col1 FROM tab0 AS cor0
----
53
9
96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6924
SELECT + ( 44 ) * col1 + CAST( 33 AS SIGNED ) col2 FROM tab1 AS cor0
----
1177
473
605

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6924
SELECT + ( 44 ) * col1 + CAST ( 33 AS INTEGER ) col2 FROM tab1 AS cor0
----
1177
473
605

query I rowsort
SELECT ALL - col2 - cor0.col1 FROM tab2 AS cor0
----
-55
-58
-85

query I rowsort
SELECT DISTINCT + ( 92 ) AS col1 FROM tab1 AS cor0
----
92

onlyif mysql # use DIV operator for integer division
query I rowsort label-6927
SELECT + col1 + - col1 * - CAST( col2 AS SIGNED ) DIV col2 AS col0 FROM tab0
----
172
182
194

skipif mysql # not compatible
query I rowsort label-6927
SELECT + col1 + - col1 * - CAST ( col2 AS INTEGER ) / col2 AS col0 FROM tab0
----
172
182
194

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6928
SELECT - col1 * - CAST( NULL AS DECIMAL ) / 7 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6928
SELECT - col1 * - CAST ( NULL AS REAL ) / 7 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col2 * ( + col2 ) AS col0 FROM tab2 AS cor0
----
-1444
-676
-729

query I rowsort
SELECT 41 + + col0 AS col0 FROM tab0
----
130
65
76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * - col0 col1 FROM tab1
----
4096
6400
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 66 col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 29794915b585eea848ad670075452c88

query I rowsort
SELECT DISTINCT + tab2.col1 * - 59 * 82 FROM tab2
----
-149978
-285442
-82246

query I rowsort
SELECT DISTINCT + col1 + 45 AS col2 FROM tab0 cor0
----
131
136
142

onlyif mysql # use DIV operator for integer division
query I rowsort label-6935
SELECT ALL col1 FROM tab0 WHERE NOT col2 + col2 DIV col1 NOT IN ( tab0.col1 DIV + col0 - + col1 DIV col1 )
----
97

skipif mysql # not compatible
query I rowsort label-6935
SELECT ALL col1 FROM tab0 WHERE NOT col2 + col2 / col1 NOT IN ( tab0.col1 / + col0 - + col1 / col1 )
----
97

query I rowsort
SELECT tab0.col2 * + col2 * col0 + - col0 * - col1 FROM tab0
----
28200
3430
606535

query I rowsort
SELECT tab2.col1 * col1 + + tab2.col2 FROM tab2
----
327
3507
988

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab1.col1 - tab1.col0 * - col2 col2 FROM tab1
----
188
3658
7693

query I rowsort
SELECT col2 * col1 * - col0 FROM tab0
----
-3395
-664118
-68112

onlyif mysql # use DIV operator for integer division
query I rowsort label-6940
SELECT col0 DIV - col1 + col0 * + 76 AS col1 FROM tab2 cor0
----
532
5927
6000

skipif mysql # not compatible
query I rowsort label-6940
SELECT col0 / - col1 + col0 * + 76 AS col1 FROM tab2 cor0
----
532
5927
6000

query I rowsort
SELECT DISTINCT col1 * col2 * - col0 + col0 FROM tab1
----
-36416
-4209
-99760

query I rowsort
SELECT col0 * + col1 + + tab0.col1 AS col0 FROM tab0
----
2150
3492
8190

query I rowsort
SELECT col0 * col1 * + col2 + + col2 * col1 AS col2 FROM tab0
----
3492
671580
70950

query I rowsort
SELECT DISTINCT col2 FROM tab2 WHERE NOT NULL >= col1
----

query I rowsort
SELECT ALL + col2 * + col2 + + col0 FROM tab1
----
2919
3313
9296

query I rowsort
SELECT - col1 + col0 FROM tab2 WHERE NOT ( NULL ) >= col0
----

query I rowsort
SELECT ALL col1 + - col0 * - col2 * + col2 AS col0 FROM tab0
----
132
26222
598527

query I rowsort
SELECT DISTINCT col1 - - col1 AS col1 FROM tab1
----
20
26
52

query I rowsort
SELECT + col0 * col1 + - tab2.col2 AS col0 FROM tab2
----
1305
190
4576

query I rowsort
SELECT DISTINCT + ( - col0 ) + 82 * - col2 * cor0.col1 AS col0 FROM tab0 AS cor0
----
-232740
-611973
-7989

query I rowsort
SELECT - - 98 AS col2 FROM tab0 AS cor0
----
98
98
98

onlyif mysql # use DIV operator for integer division
query I rowsort label-6952
SELECT DISTINCT - + cor0.col2 * - cor0.col2 + col1 DIV 28 col0 FROM tab2 cor0
----
1444
678
730

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6952
SELECT DISTINCT - + cor0.col2 * - cor0.col2 + col1 / 28 col0 FROM tab2 cor0
----
1444
678
730

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab2.col1 * - tab2.col0 + 70 col0 FROM tab2, tab0, tab0 AS cor0
----
27 values hashing to 260dd99f58a3a9c67fce37250c69d603

query I rowsort
SELECT col2 * + col0 + - col0 FROM tab0 AS cor0
----
0
7209
768

query I rowsort
SELECT ALL + 60 + - col1 FROM tab2 cor0
----
1
29
43

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab2 cor0, tab0 cor1, tab1 AS cor2
----
972 values hashing to 2d99dda76af061a3fac120e0e49e6c53

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6957
SELECT DISTINCT - CAST( NULL AS SIGNED ) AS col1 FROM tab1, tab1 cor0, tab0 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-6957
SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col1 FROM tab1, tab1 cor0, tab0 AS cor1
----
NULL

query I rowsort
SELECT - 97 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to e4a6bd848a69226cbb7ad3d154be321b

query I rowsort
SELECT + 23 AS col1 FROM tab2 AS cor0
----
23
23
23

query I rowsort
SELECT col1 * col0 + + 70 + - 39 AS col0 FROM tab2 AS cor0
----
1374
248
4633

query I rowsort
SELECT cor2.col2 FROM tab2, tab1 AS cor0, tab1 cor1, tab2 AS cor2
----
81 values hashing to c4e6b1f1d28e731664a15a6f7cda4da9

query I rowsort
SELECT - col2 + col2 * 58 FROM tab2 cor0
----
1482
1539
2166

query I rowsort
SELECT DISTINCT - - col0 + 13 AS col1 FROM tab2 AS cor0
----
20
91
92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + + ( col0 ) * col1 * + col0 col2 FROM tab1 AS cor0
----
180
40903
83104

query I rowsort
SELECT ALL - 46 * - col1 FROM tab1
----
1196
460
598

onlyif mysql # use DIV operator for integer division
query I rowsort label-6966
SELECT 15 DIV - col0 AS col2 FROM tab2
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-6966
SELECT 15 / - col0 AS col2 FROM tab2
----
-2
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6967
SELECT + + CAST( NULL AS DECIMAL ) * + 68 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6967
SELECT + + CAST ( NULL AS REAL ) * + 68 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor2.col0 + - cor1.col2 col0 FROM tab1, tab2 AS cor0, tab0 cor1, tab2 AS cor2
----
81 values hashing to 447d5ddcba541fbd04516b0769d90400

query I rowsort
SELECT - col1 * 98 AS col1 FROM tab0 AS cor0
----
-8428
-8918
-9506

onlyif mysql # use DIV operator for integer division
query I rowsort label-6970
SELECT - 31 + ( + col1 ) DIV 71 + 70 FROM tab1 AS cor0
----
39
39
39

skipif mysql # not compatible
query I rowsort label-6970
SELECT - 31 + ( + col1 ) / 71 + 70 FROM tab1 AS cor0
----
39
39
39

query I rowsort
SELECT col1 + + col0 AS col2 FROM tab1 cor0
----
29
74
93

query I rowsort
SELECT ( - col0 ) * + col0 AS col2 FROM tab1
----
-4096
-6400
-9

onlyif mysql # use DIV operator for integer division
query I rowsort label-6973
SELECT - col0 DIV col1 - - col2 FROM tab1 AS cor0
----
51
54
90

skipif mysql # not compatible
query I rowsort label-6973
SELECT - col0 / col1 - - col2 FROM tab1 AS cor0
----
51
54
90

query I rowsort
SELECT col2 * - col0 - + cor0.col1 AS col0 FROM tab0 AS cor0
----
-132
-7389
-878

query I rowsort
SELECT + - col1 + cor0.col0 + + col1 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT DISTINCT 29 + col0 AS col2 FROM tab2 cor0
----
107
108
36

onlyif mysql # use DIV operator for integer division
query I rowsort label-6977
SELECT 25 DIV tab1.col2 col1 FROM tab1
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6977
SELECT 25 / tab1.col2 col1 FROM tab1
----
0
0
0

query I rowsort
SELECT ALL - col2 * col2 * tab0.col0 AS col1 FROM tab0
----
-26136
-35
-598436

query I rowsort
SELECT + col1 * tab0.col2 * - col0 AS col0 FROM tab0
----
-3395
-664118
-68112

query I rowsort
SELECT col1 * ( cor0.col2 ) FROM tab1 AS cor0
----
1248
1404
570

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6981
SELECT + col2 * + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6981
SELECT + col2 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col2 + 74 AS col0 FROM tab2 AS cor0
----
36
47
48

query I rowsort
SELECT cor0.col0 * col2 - col0 FROM tab1 cor0
----
159
3584
7600

query I rowsort
SELECT DISTINCT + 46 AS col0 FROM tab0 AS cor0
----
46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + col0 col0 FROM tab0 cor0
----
0

query I rowsort
SELECT DISTINCT - col0 * - 74 AS col1 FROM tab0
----
1776
2590
6586

query I rowsort
SELECT DISTINCT ( + col1 ) AS col1 FROM tab1 cor0
----
10
13
26

onlyif mysql # use DIV operator for integer division
query I rowsort label-6988
SELECT + - 29 DIV col1 - + cor0.col0 * 54 FROM tab2 AS cor0
----
-378
-4212
-4267

skipif mysql # not compatible
query I rowsort label-6988
SELECT + - 29 / col1 - + cor0.col0 * 54 FROM tab2 AS cor0
----
-378
-4212
-4267

query I rowsort
SELECT - tab0.col0 * ( + 52 ) AS col1 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to 76171c9b19f267521c183d98cd130edb

onlyif mysql # use DIV operator for integer division
query I rowsort label-6990
SELECT DISTINCT col2 DIV 24 col0 FROM tab2
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6990
SELECT DISTINCT col2 / 24 col0 FROM tab2
----
1

query I rowsort
SELECT DISTINCT - col1 * 85 AS col2 FROM tab2
----
-1445
-2635
-5015

query I rowsort
SELECT + tab1.col2 - - 66 FROM tab1
----
120
123
162

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 72 * + col2 * - col0 col2 FROM tab2 AS cor0
----
-13608
-146016
-216144

query I rowsort
SELECT ALL - col2 * + col0 + + cor0.col2 + - col0 AS col1 FROM tab2 AS cor0
----
-169
-2080
-3043

query I rowsort
SELECT DISTINCT col0 * + col1 + col2 FROM tab0 AS cor0
----
2097
3396
8181

query I rowsort
SELECT - 25 AS col2 FROM tab2 AS cor0
----
-25
-25
-25

query I rowsort
SELECT ALL - - 99 + col1 FROM tab0 AS cor0
----
185
190
196

query I rowsort
SELECT - col0 * col0 + ( + col2 ) FROM tab0 AS cor0
----
-1224
-543
-7839

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 - + col1 col0 FROM tab2 AS cor0
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-7000
SELECT 95 DIV col2 AS col1 FROM tab0 AS cor0
----
1
2
95

skipif mysql # not compatible
query I rowsort label-7000
SELECT 95 / col2 AS col1 FROM tab0 AS cor0
----
1
2
95

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7001
SELECT - - col1 * - col0 + + CAST( NULL AS SIGNED ) * 16 * - col0 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7001
SELECT - - col1 * - col0 + + CAST ( NULL AS INTEGER ) * 16 * - col0 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - tab2.col2 * + col1 * tab2.col0 AS col1 FROM tab2
----
-119652
-51034
-5859

query I rowsort
SELECT ALL + + 9 * - col1 AS col0 FROM tab0 AS cor0
----
-774
-819
-873

query I rowsort
SELECT DISTINCT + ( - tab1.col1 ) FROM tab1
----
-10
-13
-26

query I rowsort
SELECT cor0.col1 * - 10 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 20e870a55d9e6eb273effbc6c8080273

query I rowsort
SELECT ALL 21 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c5272facdaaa11f884c8cc0d9d4f41c7

query I rowsort
SELECT col1 * + col0 + col2 + + col2 AS col1 FROM tab1 AS cor0
----
1232
186
754

query I rowsort
SELECT + + 11 * + col2 FROM tab2 AS cor0
----
286
297
418

onlyif mysql # use DIV operator for integer division
query I rowsort label-7009
SELECT + + col2 + col1 DIV col2 FROM tab0 AS cor0
----
35
83
98

skipif mysql # not compatible
query I rowsort label-7009
SELECT + + col2 + col1 / col2 FROM tab0 AS cor0
----
35
83
98

query I rowsort
SELECT ALL - col0 + col1 AS col2 FROM tab2
----
-19
-62
24

onlyif mysql # use DIV operator for integer division
query I rowsort label-7011
SELECT + 14 DIV tab1.col2 FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2

skipif mysql # not compatible
query I rowsort label-7011
SELECT + 14 / tab1.col2 FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2

query I rowsort
SELECT col0 + + 71 * - col0 * col2 AS col2 FROM tab1 AS cor0
----
-11499
-258944
-545200

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * ( + col1 ) + col1 col2 FROM tab1 AS cor0
----
110
182
702

query I rowsort
SELECT DISTINCT - col1 * + col2 + - col2 FROM tab0
----
-2871
-7544
-98

query I rowsort
SELECT - 15 + col2 * - col1 + tab1.col1 AS col1 FROM tab1
----
-1250
-1393
-575

query I rowsort
SELECT + col1 + col1 + 31 AS col2 FROM tab0
----
203
213
225

onlyif mysql # use DIV operator for integer division
query I rowsort label-7017
SELECT DISTINCT ( + col0 ) + 10 DIV col1 AS col0 FROM tab0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-7017
SELECT DISTINCT ( + col0 ) + 10 / col1 AS col0 FROM tab0
----
24
35
89

query I rowsort
SELECT col1 + + col1 * - col2 FROM tab1
----
-1235
-1378
-560

query I rowsort
SELECT tab1.col2 + col1 * 70 AS col0 FROM tab1
----
1006
1874
757

query I rowsort
SELECT DISTINCT + 20 AS col1 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
20

query I rowsort
SELECT ALL - col0 * + 26 * + col2 + + col1 + 42 AS col1 FROM tab0 cor0
----
-189615
-20464
-771

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + - ( + col1 ) * col1 col0 FROM tab1 AS cor0
----
-36
-673
-89

query I rowsort
SELECT DISTINCT + col2 + - 16 AS col1 FROM tab1 AS cor0
----
38
41
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 * ( cor0.col2 ) col0 FROM tab2 AS cor0
----
-1444
-676
-729

query I rowsort
SELECT ALL + col1 + 42 FROM tab0 cor0
----
128
133
139

query I rowsort
SELECT ALL - + col0 + + col2 * + col0 FROM tab0 AS cor0
----
0
7209
768

query I rowsort
SELECT ALL col0 + 18 FROM tab2 AS cor0
----
25
96
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-7028
SELECT ALL - col1 * + col1 - col2 DIV col0 col1 FROM tab2 AS cor0
----
-289
-3481
-964

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7028
SELECT ALL - col1 * + col1 - col2 / col0 col1 FROM tab2 AS cor0
----
-289
-3481
-964

query I rowsort
SELECT DISTINCT cor0.col2 * ( - col2 ) FROM tab2 cor0
----
-1444
-676
-729

query I rowsort
SELECT ALL - col1 * + cor0.col0 + + col1 * col2 FROM tab2 cor0
----
-3068
-697
620

query I rowsort
SELECT - cor0.col0 + + col1 * col2 AS col2 FROM tab0 AS cor0
----
2814
62
7373

onlyif mysql # use DIV operator for integer division
query I rowsort label-7032
SELECT ( + col2 ) DIV - col1 FROM tab2
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-7032
SELECT ( + col2 ) / - col1 FROM tab2
----
-2
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * - ( + cor0.col1 ) + ( + col2 ) col0 FROM tab2 AS cor0
----
-1508
-608
-810

query I rowsort
SELECT ALL - 5 - 44 FROM tab1 AS cor0
----
-49
-49
-49

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7035
SELECT DISTINCT CAST( NULL AS SIGNED ) * + col1 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7035
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + col1 FROM tab1 cor0
----
NULL

query I rowsort
SELECT - ( - col2 ) * cor0.col0 - col2 FROM tab1 AS cor0
----
108
3591
7584

query I rowsort
SELECT col2 + + col2 * col1 * col0 AS col0 FROM tab0
----
3396
664200
68145

query I rowsort
SELECT ALL + 96 AS col2 FROM tab1 cor0
----
96
96
96

query I rowsort
SELECT ALL - col1 * col0 + - 95 AS col2 FROM tab1 AS cor0
----
-1135
-173
-735

query I rowsort
SELECT ALL - col2 * cor0.col2 + col0 FROM tab0 AS cor0
----
-1065
-6635
34

query I rowsort
SELECT DISTINCT + 4 AS col0 FROM tab1, tab1 AS cor0
----
4

query I rowsort
SELECT + 3 * col2 AS col2 FROM tab1
----
162
171
288

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + + tab1.col0 * col0 * col1 + + col1 col0 FROM tab1
----
263
41034
83293

query I rowsort
SELECT DISTINCT + 58 * col1 FROM tab0 AS cor0
----
4988
5278
5626

query I rowsort
SELECT - cor0.col1 * - col2 + - ( ( - col1 ) ) FROM tab0 AS cor0
----
194
2924
7553

query I rowsort
SELECT DISTINCT - - col2 * col2 + - col1 + col2 FROM tab1 cor0
----
2944
3296
9299

query I rowsort
SELECT + col1 * col0 + col1 FROM tab2 cor0
----
1360
248
4661

query I rowsort
SELECT col1 + + 60 * col1 AS col0 FROM tab0 AS cor0
----
5246
5551
5917

query I rowsort
SELECT - - col2 * - 96 + cor0.col2 FROM tab1 AS cor0
----
-5130
-5415
-9120

onlyif mysql # use DIV operator for integer division
query I rowsort label-7050
SELECT col2 + col0 DIV - col1 AS col0 FROM tab0 AS cor0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-7050
SELECT col2 + col0 / - col1 AS col0 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT ALL + - col1 * 45 AS col0 FROM tab1 AS cor0
----
-1170
-450
-585

query I rowsort
SELECT DISTINCT - - ( + 45 ) * col1 FROM tab1 AS cor0
----
1170
450
585

query I rowsort
SELECT cor0.col0 * - ( - col1 + cor0.col0 ) FROM tab2 AS cor0
----
-1482
-4898
168

onlyif mysql # use DIV operator for integer division
query I rowsort label-7054
SELECT - + col0 DIV - col1 FROM tab1 cor0
----
0
6
6

skipif mysql # not compatible
query I rowsort label-7054
SELECT - + col0 / - col1 FROM tab1 cor0
----
0
6
6

query I rowsort
SELECT DISTINCT - ( - col2 ) * - col1 FROM tab0 AS cor0
----
-2838
-7462
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-7056
SELECT col0 DIV col0 + 72 FROM tab0
----
73
73
73

skipif mysql # not compatible
query I rowsort label-7056
SELECT col0 / col0 + 72 FROM tab0
----
73
73
73

onlyif mysql # use DIV operator for integer division
query I rowsort label-7057
SELECT + col2 + col2 * - col0 DIV + col0 AS col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7057
SELECT + col2 + col2 * - col0 / + col0 AS col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ( + cor0.col1 ) + - cor0.col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT - + cor0.col2 * col2 + - col0 AS col2 FROM tab0 AS cor0
----
-1113
-36
-6813

query I rowsort
SELECT - col2 * 62 AS col2 FROM tab0 AS cor0
----
-2046
-5084
-62

query I rowsort
SELECT cor0.col0 + + col0 * - 19 AS col1 FROM tab2 AS cor0
----
-126
-1404
-1422

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 44 + col2 col0 FROM tab1
----
10
13
52

onlyif mysql # use DIV operator for integer division
query I rowsort label-7063
SELECT + col2 DIV 85 AS col0 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7063
SELECT + col2 / 85 AS col0 FROM tab0
----
0
0
0

query I rowsort
SELECT DISTINCT - col0 + 83 + - col1 * - tab0.col2 AS col2 FROM tab0
----
145
2897
7456

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7065
SELECT - col0 * - CAST( - col2 AS SIGNED ) + - col2 FROM tab0
----
-36
-7380
-825

skipif mysql # not compatible
query I rowsort label-7065
SELECT - col0 * - CAST ( - col2 AS INTEGER ) + - col2 FROM tab0
----
-36
-7380
-825

onlyif mysql # use DIV operator for integer division
query I rowsort label-7066
SELECT DISTINCT + tab1.col0 DIV - col1 col2 FROM tab1
----
-6
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7066
SELECT DISTINCT + tab1.col0 / - col1 col2 FROM tab1
----
-6
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-7067
SELECT col2 DIV col0 AS col1 FROM tab2 AS cor0
----
0
0
3

skipif mysql # not compatible
query I rowsort label-7067
SELECT col2 / col0 AS col1 FROM tab2 AS cor0
----
0
0
3

query I rowsort
SELECT + col1 * + 21 FROM tab2
----
1239
357
651

query I rowsort
SELECT ALL - col0 + + 74 * - col1 FROM tab2 AS cor0
----
-1337
-2301
-4444

onlyif mysql # use DIV operator for integer division
query I rowsort label-7070
SELECT ALL - - col0 DIV col0 + 96 - col0 FROM tab0 AS cor0
----
62
73
8

skipif mysql # not compatible
query I rowsort label-7070
SELECT ALL - - col0 / col0 + 96 - col0 FROM tab0 AS cor0
----
62
73
8

query I rowsort
SELECT ALL + 40 * 28 AS col1 FROM tab2 AS cor0
----
1120
1120
1120

query I rowsort
SELECT DISTINCT - col0 + + col1 * - cor0.col2 FROM tab2 AS cor0
----
-1612
-725
-844

query I rowsort
SELECT + col2 * - cor0.col2 + col0 FROM tab1 AS cor0
----
-2913
-3185
-9136

query I rowsort
SELECT cor0.col2 * 53 - - 49 FROM tab2 cor0
----
1427
1480
2063

query I rowsort
SELECT - - col1 - - col0 FROM tab1 AS cor0
----
29
74
93

query I rowsort
SELECT - tab1.col2 * + 9 AS col1 FROM tab1
----
-486
-513
-864

query I rowsort
SELECT DISTINCT col0 * - ( 51 ) AS col0 FROM tab2
----
-357
-3978
-4029

query I rowsort
SELECT ALL - ( col2 * + tab1.col2 ) + col1 * - tab1.col1 AS col1 FROM tab1
----
-3349
-3592
-9385

skipif mysql # not compatible
query I rowsort
SELECT CAST ( col1 + + col0 AS REAL ) * - col2 AS col1 FROM tab1
----
-1566
-4218
-8928

query I rowsort
SELECT 27 * col0 - + col2 AS col2 FROM tab2
----
162
2080
2095

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7081
SELECT ALL - + col1 + ( cor0.col0 ) / + CAST( NULL AS DECIMAL ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7081
SELECT ALL - + col1 + ( cor0.col0 ) / + CAST ( NULL AS REAL ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 90 * col0 * col1 + col2 col2 FROM tab2 AS cor0
----
120908
19557
414206

onlyif mysql # use DIV operator for integer division
query I rowsort label-7083
SELECT - 25 DIV + col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7083
SELECT - 25 / + col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT + + 37 + cor0.col0 * 22 AS col0 FROM tab1 AS cor0
----
103
1445
1797

query I rowsort
SELECT + 52 * col1 AS col1 FROM tab0 AS cor0
----
4472
4732
5044

query I rowsort
SELECT 1 AS col1 FROM tab2, tab2 AS cor0, tab2 cor1
----
27 values hashing to da8a72a7967c0c73d91239275230aed9

query I rowsort
SELECT + 75 + - col1 * col0 AS col2 FROM tab0 AS cor0
----
-1989
-3320
-8024

skipif mysql # not compatible
query I rowsort
SELECT col2 * CAST ( col0 AS REAL ) FROM tab2 cor0
----
189
2028
3002

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * col1 * cor0.col0 col2 FROM tab1 cor0
----
-36480
-4212
-99840

onlyif mysql # use DIV operator for integer division
query I rowsort label-7090
SELECT + col1 + - col2 DIV cor0.col0 FROM tab2 AS cor0
----
17
28
59

skipif mysql # not compatible
query I rowsort label-7090
SELECT + col1 + - col2 / cor0.col0 FROM tab2 AS cor0
----
17
28
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 * + cor0.col2 col0 FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT + col2 * col1 * col2 FROM tab2 cor0
----
22599
24548
39884

query I rowsort
SELECT + 40 * + col1 * + tab0.col1 + 71 FROM tab0
----
295911
331311
376431

onlyif mysql # use DIV operator for integer division
query I rowsort label-7094
SELECT + col2 + + col1 DIV - tab0.col1 FROM tab0
----
0
32
81

skipif mysql # not compatible
query I rowsort label-7094
SELECT + col2 + + col1 / - tab0.col1 FROM tab0
----
0
32
81

query I rowsort
SELECT - col0 * - 95 * - 73 AS col0 FROM tab1 cor0
----
-20805
-443840
-554800

query I rowsort
SELECT ALL col2 + + col1 * + col1 AS col1 FROM tab2
----
327
3507
988

query I rowsort
SELECT ALL 10 FROM tab1, tab0 AS cor0 CROSS JOIN tab2
----
27 values hashing to 0fe3e45a9ecd49584c2ab442100d5176

query I rowsort
SELECT ALL - ( - 48 ) * col0 + ( col1 * cor0.col2 ) FROM tab0 cor0
----
11734
1777
3990

query I rowsort
SELECT - ( col1 ) * col1 AS col1 FROM tab2 AS cor0
----
-289
-3481
-961

query I rowsort
SELECT DISTINCT + - ( cor0.col2 ) - cor0.col0 * col1 FROM tab0 AS cor0
----
-2097
-3396
-8181

query I rowsort
SELECT + cor0.col1 * - 35 AS col0 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 557cf3af3c49a5df0b9012922f58413a

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 17 col1 FROM tab0 AS cor0
----
-17
-17
-17

query I rowsort
SELECT DISTINCT + col0 * + col0 + + col0 FROM tab2 cor0
----
56
6162
6320

query I rowsort
SELECT + cor0.col1 * - 71 FROM tab0, tab1 AS cor0
----
9 values hashing to f3bfedb82e9f8c4f73278317e7188e94

query I rowsort
SELECT ALL + 25 AS col1 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 2c77240b60ac01c717a5ed5d0165f450

query I rowsort
SELECT DISTINCT + - col0 + col0 * col1 AS col2 FROM tab0 AS cor0
----
2040
3360
8010

query I rowsort
SELECT DISTINCT - col2 * - col2 + col1 AS col2 FROM tab0 AS cor0
----
1175
6815
98

query I rowsort
SELECT ALL - 44 + + col1 - ( - col2 ) FROM tab2 AS cor0
----
11
14
41

query I rowsort
SELECT ALL 5 * col2 * col2 FROM tab2
----
3380
3645
7220

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7110
SELECT DISTINCT CAST( NULL AS DECIMAL ) col0 FROM tab0, tab0 cor0, tab2 AS cor1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7110
SELECT DISTINCT CAST ( NULL AS REAL ) col0 FROM tab0, tab0 cor0, tab2 AS cor1
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-7111
SELECT ALL + - col1 DIV col1 + - 75 FROM tab0 cor0
----
-76
-76
-76

skipif mysql # not compatible
query I rowsort label-7111
SELECT ALL + - col1 / col1 + - 75 FROM tab0 cor0
----
-76
-76
-76

query I rowsort
SELECT DISTINCT col1 + col0 - + ( col0 ) * - col2 AS col2 FROM tab0 AS cor0
----
167
7478
902

query I rowsort
SELECT ALL + col0 * col0 AS col2 FROM tab0 cor0
----
1225
576
7921

query I rowsort
SELECT ALL + 11 + col1 * + 86 AS col1 FROM tab1 AS cor0
----
1129
2247
871

query I rowsort
SELECT ALL - + col1 * cor0.col1 * - 56 + - col2 * col2 * - col2 AS col0 FROM tab0 AS cor0
----
1015104
450113
526905

query I rowsort
SELECT ALL - col0 - col1 AS col2 FROM tab2 AS cor0
----
-137
-38
-96

query I rowsort
SELECT DISTINCT - 39 AS col2 FROM tab0, tab0 AS cor0, tab0 AS cor1, tab1 AS cor2
----
-39

query I rowsort
SELECT ALL - col1 + 70 AS col0 FROM tab2
----
11
39
53

query I rowsort
SELECT - col2 * col1 * col1 FROM tab2 AS cor0
----
-10982
-25947
-90506

onlyif mysql # use DIV operator for integer division
query I rowsort label-7120
SELECT - col2 DIV 15 AS col1 FROM tab2
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-7120
SELECT - col2 / 15 AS col1 FROM tab2
----
-1
-1
-2

query I rowsort
SELECT DISTINCT + 49 AS col2 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
49

query I rowsort
SELECT DISTINCT - 25 FROM tab1, tab0 AS cor0
----
-25

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7123
SELECT ALL - col0 * - CAST( NULL AS SIGNED ) * col0 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7123
SELECT ALL - col0 * - CAST ( NULL AS INTEGER ) * col0 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col0 + + 12 FROM tab2 AS cor0
----
19
90
91

onlyif mysql # use DIV operator for integer division
query I rowsort label-7125
SELECT + col2 + col2 * col1 DIV - col0 FROM tab2 AS cor0
----
-92
30
7

skipif mysql # not compatible
query I rowsort label-7125
SELECT + col2 + col2 * col1 / - col0 FROM tab2 AS cor0
----
-92
30
7

query I rowsort
SELECT ALL + col2 * - col2 + 65 + col1 AS col2 FROM tab1 AS cor0
----
-2825
-3174
-9138

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7127
SELECT DISTINCT cor0.col1 + CAST( 54 AS SIGNED ) * col0 FROM tab2 cor0
----
409
4271
4283

skipif mysql # not compatible
query I rowsort label-7127
SELECT DISTINCT cor0.col1 + CAST ( 54 AS INTEGER ) * col0 FROM tab2 cor0
----
409
4271
4283

query I rowsort
SELECT ALL + col0 * col1 + 60 + - cor0.col1 AS col1 FROM tab2 AS cor0
----
1386
246
4603

query I rowsort
SELECT col0 + + 0 * col2 AS col1 FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT DISTINCT + col2 + 41 FROM tab0 AS cor0
----
123
42
74

query I rowsort
SELECT ALL + 12 * col0 AS col0 FROM tab0 AS cor0
----
1068
288
420

query I rowsort
SELECT ( - col1 ) + + col0 AS col2 FROM tab2 AS cor0
----
-24
19
62

query I rowsort
SELECT + + 44 AS col2 FROM tab0 AS cor0
----
44
44
44

query I rowsort
SELECT DISTINCT - 14 + + col0 * + col2 FROM tab2 AS cor0
----
175
2014
2988

query I rowsort
SELECT ALL col1 * col1 * col1 - + col2 * col1 FROM tab2 AS cor0
----
203845
28954
4267

query I rowsort
SELECT DISTINCT - 18 * col2 FROM tab0 AS cor0
----
-1476
-18
-594

query I rowsort
SELECT ALL - - ( col0 ) + - col0 * col0 AS col2 FROM tab0 AS cor0
----
-1190
-552
-7832

query I rowsort
SELECT ALL - - cor0.col0 * 66 + - cor0.col2 * - 72 FROM tab2 cor0
----
2406
7020
7950

query I rowsort
SELECT + + ( col2 ) * col2 + + ( + col0 + cor0.col0 ) * - col0 FROM tab2 AS cor0
----
-11038
-11492
631

query I rowsort
SELECT DISTINCT ( col0 ) - - col0 FROM tab0 AS cor0
----
178
48
70

query I rowsort
SELECT ALL - ( - ( col0 ) ) FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT DISTINCT - ( cor0.col1 ) - col1 FROM tab2 AS cor0
----
-118
-34
-62

onlyif mysql # use DIV operator for integer division
query I rowsort label-7143
SELECT - col2 DIV + 77 + col2 * + 30 FROM tab0 AS cor0
----
2459
30
990

skipif mysql # not compatible
query I rowsort label-7143
SELECT - col2 / + 77 + col2 * + 30 FROM tab0 AS cor0
----
2459
30
990

query I rowsort
SELECT DISTINCT + col2 + - 53 * + col0 - - col2 * + ( - col2 ) * + tab1.col2 FROM tab1
----
-157569
-188528
-888880

query I rowsort
SELECT ALL - col1 * 28 + + ( - col1 ) AS col2 FROM tab2
----
-1711
-493
-899

onlyif mysql # use DIV operator for integer division
query I rowsort label-7146
SELECT ALL col0 + 7 * + tab0.col0 DIV + col0 FROM tab0
----
31
42
96

skipif mysql # not compatible
query I rowsort label-7146
SELECT ALL col0 + 7 * + tab0.col0 / + col0 FROM tab0
----
31
42
96

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - CAST ( + ( cor0.col1 ) AS REAL ) AS col2 FROM tab2 AS cor0
----
-17
-31
-59

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7148
SELECT col1 * col1 * col0 + CAST( NULL AS DECIMAL ) * col0 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7148
SELECT col1 * col1 * col0 + CAST ( NULL AS REAL ) * col0 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 66 FROM tab2, tab0 cor0
----
9 values hashing to 29794915b585eea848ad670075452c88

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7150
SELECT ALL - - CAST( NULL AS SIGNED ) + + col1 AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7150
SELECT ALL - - CAST ( NULL AS INTEGER ) + + col1 AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL cor0.col0 * + 4 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to d7ba7ed61b7057db35c81f7023c2891b

query I rowsort
SELECT + ( col1 ) * col1 FROM tab0 AS cor0
----
7396
8281
9409

query I rowsort
SELECT ALL + 77 * + col2 FROM tab2 cor0
----
2002
2079
2926

query I rowsort
SELECT ALL + - col0 + 97 * - col1 FROM tab2 AS cor0
----
-1728
-3014
-5801

query I rowsort
SELECT + col0 + + col0 * - col1 + col1 * col1 AS col1 FROM tab2 AS cor0
----
-1043
-975
751

query I rowsort
SELECT - + ( - col2 ) * col2 FROM tab1 AS cor0
----
2916
3249
9216

onlyif mysql # use DIV operator for integer division
query I rowsort label-7157
SELECT DISTINCT - col1 DIV + 10 + col1 FROM tab0
----
78
82
88

skipif mysql # not compatible
query I rowsort label-7157
SELECT DISTINCT - col1 / + 10 + col1 FROM tab0
----
78
82
88

query I rowsort
SELECT DISTINCT ( 32 ) + tab2.col2 * ( - col1 ) + col0 * + col0 FROM tab2
----
-756
4582
5627

query I rowsort
SELECT + col0 * + col0 + + col0 * col2 FROM tab2
----
238
8112
9243

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7160
SELECT + 61 * col0 * - CAST( + cor0.col2 * + col2 AS SIGNED ) FROM tab1 AS cor0
----
-12684096
-44974080
-533628

skipif mysql # not compatible
query I rowsort label-7160
SELECT + 61 * col0 * - CAST ( + cor0.col2 * + col2 AS INTEGER ) FROM tab1 AS cor0
----
-12684096
-44974080
-533628

query I rowsort
SELECT + + col2 * cor0.col1 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT 85 * col2 AS col0 FROM tab1
----
4590
4845
8160

query I rowsort
SELECT + col0 * - tab1.col0 + + col2 FROM tab1
----
-4039
-6304
45

query I rowsort
SELECT col1 * tab2.col1 * col2 FROM tab2
----
10982
25947
90506

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 68 col1 FROM tab0
----
68

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7166
SELECT DISTINCT CAST( NULL AS SIGNED ) * ( + col2 * col2 ) col1 FROM tab0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7166
SELECT DISTINCT CAST ( NULL AS INTEGER ) * ( + col2 * col2 ) col1 FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT - 82 * 57 + + tab2.col2 + col0 FROM tab2
----
-4557
-4570
-4640

onlyif mysql # use DIV operator for integer division
query I rowsort label-7168
SELECT ALL + tab2.col0 DIV col0 + col0 FROM tab2
----
79
8
80

skipif mysql # not compatible
query I rowsort label-7168
SELECT ALL + tab2.col0 / col0 + col0 FROM tab2
----
79
8
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-7169
SELECT ALL col0 DIV + col0 AS col0 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-7169
SELECT ALL col0 / + col0 AS col0 FROM tab0 AS cor0
----
1
1
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-7170
SELECT DISTINCT + col1 * col2 DIV - col1 + + col0 FROM tab0 AS cor0
----
-9
34
7

skipif mysql # not compatible
query I rowsort label-7170
SELECT DISTINCT + col1 * col2 / - col1 + + col0 FROM tab0 AS cor0
----
-9
34
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * - 68 col2 FROM tab1 AS cor0
----
-1768
-680
-884

query I rowsort
SELECT col1 + - col0 * col1 * + col2 FROM tab1 AS cor0
----
-36470
-4186
-99827

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * - col0 col0 FROM tab1 AS cor0
----
4096
6400
9

query I rowsort
SELECT DISTINCT - + col2 + + cor0.col2 * 57 * col2 AS col2 FROM tab1 AS cor0
----
166158
185136
525216

query I rowsort
SELECT ALL - 31 FROM tab2
----
-31
-31
-31

query I rowsort
SELECT ALL + ( col0 ) * - tab2.col1 FROM tab2
----
-1343
-217
-4602

query I rowsort
SELECT - 5 FROM tab2
----
-5
-5
-5

query I rowsort
SELECT + col2 * + tab0.col1 - - 42 FROM tab0
----
139
2880
7504

query I rowsort
SELECT 2 + + col1 FROM tab0
----
88
93
99

query I rowsort
SELECT - 98 + - col0 AS col1 FROM tab0
----
-122
-133
-187

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab1, tab0 AS cor1, tab2, tab2 AS cor2
----
3645 values hashing to bb6428239bf7f3ea361f6a10500a581d

query I rowsort
SELECT ( + 21 ) FROM tab1, tab2 AS cor0
----
9 values hashing to c5272facdaaa11f884c8cc0d9d4f41c7

onlyif mysql # use DIV operator for integer division
query I rowsort label-7183
SELECT - col1 DIV col1 AS col0 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-7183
SELECT - col1 / col1 AS col0 FROM tab1
----
-1
-1
-1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7184
SELECT DISTINCT - col0 * ( 10 ) + + tab0.col2 + - CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7184
SELECT DISTINCT - col0 * ( 10 ) + + tab0.col2 + - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * + ( + col2 * cor0.col2 ) col0 FROM tab0 AS cor0
----
26136
35
598436

onlyif mysql # use DIV operator for integer division
query I rowsort label-7186
SELECT cor0.col1 + ( col1 ) * - col0 DIV cor0.col0 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7186
SELECT cor0.col1 + ( col1 ) * - col0 / cor0.col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT col0 + 11 FROM tab2 cor0
----
18
89
90

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - col0 * CAST ( 40 AS REAL ) FROM tab1 AS cor0
----
-120
-2560
-3200

query I rowsort
SELECT ALL + + col1 + col1 * col0 AS col2 FROM tab1 AS cor0
----
104
1053
650

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - col1 * ( + col1 * - col0 ) col1 FROM tab2
----
1803649
21178404
47089

query I rowsort
SELECT cor0.col1 + + cor0.col0 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to f65167375aa80cc8b3f3f8987d2662a3

query I rowsort
SELECT + col0 * col0 * + col2 FROM tab2 AS cor0
----
1323
158184
237158

query I rowsort
SELECT ALL + cor0.col1 * tab2.col2 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 3fe7ddc736abb4b8aaa99f6b5ddeca84

query I rowsort
SELECT - + cor0.col2 - + cor0.col2 FROM tab0 cor0
----
-164
-2
-66

query I rowsort
SELECT - + cor0.col1 + 81 * + col2 AS col1 FROM tab0 AS cor0
----
-16
2587
6551

query I rowsort
SELECT col1 * cor0.col2 + col2 AS col0 FROM tab1 cor0
----
1344
1458
627

query I rowsort
SELECT + col0 * + 54 + col1 * col0 FROM tab0 AS cor0
----
12905
3360
5285

query I rowsort
SELECT - col2 + ( col1 * col0 ) FROM tab1 AS cor0
----
24
583
944

query I rowsort
SELECT + col0 + 12 AS col2 FROM tab0 AS cor0
----
101
36
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - col0 + col1 col1 FROM tab0 AS cor0
----
2150
3492
8190

onlyif mysql # use DIV operator for integer division
query I rowsort label-7201
SELECT + - col0 DIV + 71 + col1 AS col0 FROM tab1 AS cor0
----
10
12
26

skipif mysql # not compatible
query I rowsort label-7201
SELECT + - col0 / + 71 + col1 AS col0 FROM tab1 AS cor0
----
10
12
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 22 col1 FROM tab1 AS cor0
----
22
22
22

query I rowsort
SELECT DISTINCT + + ( 84 ) FROM tab0 AS cor0
----
84

query I rowsort
SELECT - 52 * col2 * - col2 AS col0 FROM tab0 cor0
----
349648
52
56628

query I rowsort
SELECT 8 * col0 AS col1 FROM tab2 cor0
----
56
624
632

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( 55 ) col0 FROM tab1 AS cor0
----
55
55
55

query I rowsort
SELECT - - col2 * 42 AS col2 FROM tab1 AS cor0
----
2268
2394
4032

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7208
SELECT + + CAST( NULL AS SIGNED ) * + col0 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7208
SELECT + + CAST ( NULL AS INTEGER ) * + col0 FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-7209
SELECT + 89 * cor0.col1 DIV col1 FROM tab2 AS cor0
----
89
89
89

skipif mysql # not compatible
query I rowsort label-7209
SELECT + 89 * cor0.col1 / col1 FROM tab2 AS cor0
----
89
89
89

query I rowsort
SELECT + cor0.col2 * col1 + 60 AS col0 FROM tab2 AS cor0
----
1594
706
897

query I rowsort
SELECT DISTINCT + - 46 AS col1 FROM tab0, tab2 AS cor0
----
-46

query I rowsort
SELECT col1 * - cor0.col2 FROM tab0 cor0
----
-2838
-7462
-97

query I rowsort
SELECT + 16 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 3fdb08ec2e3d4b642dd4594778cca8b3

onlyif mysql # use DIV operator for integer division
query I rowsort label-7214
SELECT + - col0 * col1 + col2 DIV 62 FROM tab0 cor0
----
-2064
-3395
-8098

skipif mysql # not compatible
query I rowsort label-7214
SELECT + - col0 * col1 + col2 / 62 FROM tab0 cor0
----
-2064
-3395
-8098

query I rowsort
SELECT - 21 AS col2 FROM tab0, tab2 cor0
----
9 values hashing to 631fbd1fd929405aba54a22c2a06c757

query I rowsort
SELECT + 60 + 10 FROM tab1
----
70
70
70

query I rowsort
SELECT ALL 68 * - col0 FROM tab1 AS cor0
----
-204
-4352
-5440

query I rowsort
SELECT DISTINCT + 72 * + col0 FROM tab1 AS cor0
----
216
4608
5760

onlyif mysql # use DIV operator for integ